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 |
|---|---|---|---|---|---|---|
Returns a List of String that represents how this item should appear in the ExpiredItemsReport table. | private List<String> asExpiredItemsReportTableRow(Item item) {
return Arrays.asList(item.getProduct().getDescription(), item.getStorageUnitName(),
item.getProductGroupName(), report.formatForReport(item.getEntryDate()),
report.formatForReport(item.getExpirationDate()), item.getBarcode());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ExpiredItemsReport getExpiredItemsReport() {\r\n\t\treturn expiredItemsReport;\r\n\t}",
"public ArrayList<String> returnUrgentItems() {\n ArrayList<String> urgentItemNames = new ArrayList<>();\n\n if (toDoList.getItems().isEmpty()) {\n urgentItemNames.add(\"No More Tasks! Yay!!\");\n }\n\n int i = 1;\n for (Item item : toDoList.getItems()) {\n if (Integer.parseInt(item.getDaysBeforeDue()) <= 1) {\n Categories c = item.getCategory();\n urgentItemNames.add(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n }\n\n return urgentItemNames;\n }",
"public ArrayList<String> returnItems() {\n ArrayList<String> itemNames = new ArrayList<>();\n\n if (toDoList.getItems().isEmpty()) {\n itemNames.add(\"No More Tasks! Yay!!\");\n }\n\n int i = 1;\n for (Item item : toDoList.getItems()) {\n Categories c = item.getCategory();\n itemNames.add(i + \". \" + item.getTitle() + \" due in \" + item.getDaysBeforeDue() + \" days, \" + c);\n i++;\n }\n\n return itemNames;\n }",
"@Override\n public String toString() {\n StringBuilder r = new StringBuilder(\"\");\n for (Itemset itemset : itemsets) {\n r.append(\"{t=\");\n r.append(itemset.getTimestamp());\n r.append(\", \");\n for (Item item : itemset.getItems()) {\n String string = item.toString();\n r.append(string);\n r.append(' ');\n }\n r.append('}');\n }\n return r.append(\" \").toString();\n }",
"public List<TblStockOpnameDetailItemExpiredDate>getAllDataStockOpnameItemExp(TblItem item);",
"public String toString() {\n return '[' + description + \"][\" + date + ']';\n }",
"List<ExamPackage> getListExpired();",
"public List<String> getEoiSummaries() {\n List<String> eoiStrings = new ArrayList<String>();\n for ( ElementOfInformation eoi : getFlow().getEois() ) {\n eoiStrings.add( eoi.getLabel() + ( eoi.isTimeSensitive() ? \"*\" : \"\" ) );\n }\n if ( eoiStrings.isEmpty() ) {\n eoiStrings.add( \"(none)\" );\n }\n return eoiStrings;\n }",
"public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\"value:%s;expiry:%s\", value,\n\t\t\t\tTimeHepler.getStringDateShort(expiry));\n\t}",
"public String getItemsString()\n {\n String returnString =\"\";\n if(Inventory.isEmpty()){\n returnString = \"You are not holding any items\";\n } else {\n returnString = \"Items you are holding:\";\n String temp = \"\";\n for(Items item : Inventory.values()) {\n temp += \", \" + item.getName() ; \n }\n returnString += temp.substring(1);\n }\n return returnString;\n }",
"public String visibleItems() {\n \tStringBuilder s = new StringBuilder(\"\");\n for (Item item : items) {\n if (item instanceof Visible && item.isVisible()) {\n s.append(\"\\nThere is a '\").append(item.detailDescription()).append(\"' (i.e. \" + item.description() + \" ) here.\");\n }\n }\n return s.toString();\n }",
"public String getAttempts () {\n \tStringBuilder result = new StringBuilder ();\n \t\n \tCollections.sort(attempts);\n \t\n \tresult.append(attempts.get(0).toString());\n \tfor (int i = 1; i < attempts.size(); i++) {\n \t\tresult.append(\", \" + attempts.get(i).toString());\n \t}\n \t\n \treturn result.toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn this.item.exibirEmLista(this.qntd);\r\n\t}",
"private ObservableList<ExpiringItem> getExpiringItems(ObservableList<Item> itemList) {\n ObservableList<ExpiringItem> tableRows = FXCollections.observableArrayList();\n for (int i = 0; i <= 7; i++) {\n tableRows.add(new ExpiringItem(i, itemList));\n }\n return tableRows;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn getA_title() + \",\" + getA_check() + \",\" + \n\t\t\t\tgetA_startdate() + \",\"+ getA_enddate() + \",\" + getSel_Id()+\",\" + getRemainDate();\n\t}",
"@Override\r\n \tpublic String toString() {\r\n \t\tStringBuilder result = new StringBuilder();\r\n \t\tresult.append('[');\r\n \t\tif(numItems > 0) {\r\n \t\t\tresult.append(items[0].toString());\r\n \t\t\t// We want number of spaces to be equal to numItems - 1\r\n \t\t\tfor(int i=1; i<numItems; i++) {\r\n \t\t\t\tresult.append(' ');\r\n \t\t\t\tresult.append(items[i].toString());\r\n \t\t\t}\r\n \t\t}\r\n \t\tresult.append(']');\r\n \t\treturn result.toString();\r\n \t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tIterator entriesIterator = getEntries();\r\n\r\n\t\twhile(entriesIterator.hasNext()) {\r\n\t\t\tItem item = getCurrentItem(entriesIterator);\r\n\t\t\tbuilder.append(item.getItemDescription().toString());\r\n\t\t\taddNewLine(builder, \" | Quantity: \" + item.getQuantity().toString());\r\n\t\t}\r\n\r\n\t\taddNewLine(builder, \"Total: \" + total.getTotalPrice().toString());\r\n\t\taddNewLine(builder, \"VAT: \" + total.getTotalVAT().toString());\r\n\t\treturn builder.toString();\r\n\t}",
"@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\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(Item item : this) {\n\t\t\tsb.append(\"[\" + item + \"],\");\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public List<String> recordedDateList();",
"public String toString() {\n\t\tString output = \"Day \" + day + \": \";\n\t\tif (transactionType != null) {\n\t\t\toutput += transactionType + \" \" + item.getName();\n\t\t}\n\t\tif (eventName != null) {\n\t\t\toutput += eventName;\n\t\t}\n\t\tif (damage != 0) {\n\t\t\tif (damage > 0) {\n\t\t\t\toutput += \" taking \";\n\t\t\t}else {\n\t\t\t\toutput += \" repairing \";\n\t\t\t\tdamage *= -1;\n\t\t\t}\n\t\t\toutput += damage + \" damage\";\n\t\t}\n\t\tif (cost != 0) {\n\t\t\tif (cost > 0) {\n\t\t\t\toutput += \" costing $\";\n\t\t\t} else {\n\t\t\t\toutput += \" reciving $\";\n\t\t\t\tcost *= -1;\n\t\t\t}\n\t\t\toutput += cost;\n\t\t}\n\t\tif (location != null) {\n\t\t\toutput += \" at \" + location.getName();\n\t\t}\n\t\toutput += \".\";\n\t\treturn output;\n\t}",
"public String toString() {\n return \"[Name: \" + itemName + \" Performance:\" + \" \" + itemAttribute + \" Price: \" + \" \" + itemPrice + \"]\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getItems() != null)\n sb.append(\"Items: \").append(getItems()).append(\",\");\n if (getCount() != null)\n sb.append(\"Count: \").append(getCount()).append(\",\");\n if (getScannedCount() != null)\n sb.append(\"ScannedCount: \").append(getScannedCount()).append(\",\");\n if (getLastEvaluatedKey() != null)\n sb.append(\"LastEvaluatedKey: \").append(getLastEvaluatedKey()).append(\",\");\n if (getConsumedCapacity() != null)\n sb.append(\"ConsumedCapacity: \").append(getConsumedCapacity());\n sb.append(\"}\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder stringBuilder = new StringBuilder();\n for (Item item : this) {\n stringBuilder.append(item.toString()).append(\" \");\n }\n return stringBuilder.toString();\n }",
"public String toString() {\r\n\t\treturn \"[\" + month + \"-\" + day + \"-\" + year + \"]\";\r\n\t}",
"@Override\n public String toString() {\n return \"Receipt{\"\n + \"itemsReceived=\" + itemsReceived\n + \", itemsOutOfStock=\" + itemsOutOfStock\n + \", removedItems=\" + removedItems\n + '}';\n }",
"public String toString()\n {\n long dtExpiry = getExpiryMillis();\n\n return super.toString()\n + \", priority=\" + getPriority()\n + \", created=\" + new Time(getCreatedMillis())\n + \", last-use=\" + new Time(getLastTouchMillis())\n + \", expiry=\" + (dtExpiry == 0 ? \"none\" : new Time(dtExpiry) + (isExpired() ? \" (expired)\" : \"\"))\n + \", use-count=\" + getTouchCount()\n + \", units=\" + getUnits();\n }",
"private String getOrderReport() {\n String result = \"Number of items in order: \" + items.size() + System.getProperty(\"line.separator\") +\n \"List of items: \" + System.getProperty(\"line.separator\");\n for (Item i : items) {\n result += i.getListOfPlants();\n }\n result += \"Total price: \" + calculateTotalPrice() + System.getProperty(\"line.separator\") +\n \"Delivery strategy: \" + delivery.toString() + System.getProperty(\"line.separator\") +\n \"Payment strategy: \" + payment.toString();\n return result;\n }",
"@Override\r\n public String toString() {\r\n \treturn (\"[Days=\" + days + \"], [Millis=\" + millis + \"], [Micros=\" + micros + \"]\");\r\n }",
"public List<String> getFormattedAppointments(){\n List formattedAppointments = new ArrayList();\n for (int i = 0; i < appointments.size(); i++) {\n Appointment a = appointments.get(i);\n String appInfo = (\"Date and time: \" + a.getFormattedDate() + \" Doctor: \" + a.getDoctor().getName() + \" Symptom: \" + a.getSympton() + \" Status: \" + a.getStatus());\n formattedAppointments.add(appInfo);\n }\n return formattedAppointments;\n }",
"public String eventList() {\n\n\t\tString str = \"\";\n\t\tif(map.isEmpty()) {\n\t\t\tstr = \"No Events Scheduled Yet\";\n\t\t\treturn str;\n\t\t}\n\t\tstr = \"One Time Events: \\n\";\n\t\tstr = str + \"________________ \\n2020\\n\";\n\n\t\tfor(Map.Entry<LocalDate, ArrayList<Event>> entry: map.entrySet() ) {\n\n\t\t\tLocalDate currentDate = entry.getKey();\n\t\t\tArrayList<Event> list = map.get(currentDate);\n\t\t\tDateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"EEEE MMMM dd\");\n\t\t\tDateTimeFormatter timeFormatter = DateTimeFormatter.ofPattern(\"HH:mm a\");\n\t\t\tfor(int i = 0;i<list.size();i++) {\n\t\t\t\tEvent e = list.get(i);\n\t\t\t\tif(e.recurring == false) {\n\t\t\t\t\tstr = str + \" \"+formatter.format(currentDate) +\" \" + timeFormatter.format(e.sTime) + \" - \" + timeFormatter.format(e.eTime) + \" \" + e.name + \"\\n\";\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//for recurring events, add this later\n\t\t/*\n\t\tstr = str + \"\\nRecurring Events:\\n\";\n\t\tstr = str + \"________________ \\n\";\n\t\tif(recurringEvents.size()==0) {\n\t\t\tstr = str + \"No Recurring Event Scheduled\\n\";\n\t\t\treturn str;\n\t\t}\n\t\tfor(int i = 0; i<recurringEvents.size(); i++) {\n\t\t\tEvent e = recurringEvents.get(i);\n\t\t\tstr = str + e.name +\"\\n\";\n\t\t\tstr = str + e.rdays + \" \" + e.sTime + \" \" + e.eTime + \" \" + e.recurringStartDate + \" \" + e.eDate +\"\\n\";\n\t\t}\n\t\t */\n\t\treturn str;\n\n\t}",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getItems() != null) sb.append(\"Items: \" + getItems() + \", \");\n if (getCount() != null) sb.append(\"Count: \" + getCount() + \", \");\n if (getLastEvaluatedKey() != null) sb.append(\"LastEvaluatedKey: \" + getLastEvaluatedKey() + \", \");\n if (getConsumedCapacityUnits() != null) sb.append(\"ConsumedCapacityUnits: \" + getConsumedCapacityUnits() + \", \");\n sb.append(\"}\");\n return sb.toString();\n }",
"String getNeedsInventoryIssuance();",
"public String getExpired() {\n return (String) getAttributeInternal(EXPIRED);\n }",
"@Override\n public String toString() {\n DateTimeFormatter df = DateTimeFormatter.ofPattern(\"dd MMM yyyy HHmm\");\n return \"[\" + super.getType() + \"]\" + super.toString() + \" (by: \" + df.format(this.date) + \")\";\n }",
"public String getAllEditTime() {\n StringBuilder sb = new StringBuilder();\n for (String date: editedTimeList) {\n sb.append(date + \", \\n\");\n }\n return sb.toString();\n }",
"public String toString() {\n StringBuilder s = new StringBuilder();\n for (Item item : this) {\n s.append(item + \" \");\n }\n return s.toString().substring(0, s.length() - 1);\n }",
"@Override\n public String toString() {\n String byFormatted = by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\"));\n return \"[D]\" + super.toString() + \" (by: \" + byFormatted + \")\";\n }",
"public String getItemsString()\n {\n String vReturnString = \"you got : \"+this.aItemsList.getItemString();\n return vReturnString;\n }",
"public String toString() {\n\t\treturn this.issueEvaluationList.toString();\n\t}",
"@Override\n public String toString() {\n return \"[D]\" + super.toString() + \"(by:\" + dueDate + \")\";\n }",
"@Override\n\t\tprotected String getValueAsString() {\n\t\t\tif (itemList.size() == 0) {\n\t\t\t\treturn \"\";\n\t\t\t}\n\t\t\tStringBuilder sb = new StringBuilder(itemList.size() * 8);\n\t\t\tIterator<SVGItem> i = itemList.iterator();\n\t\t\tif (i.hasNext()) {\n\t\t\t\tsb.append(i.next().getValueAsString());\n\t\t\t}\n\t\t\twhile (i.hasNext()) {\n\t\t\t\tsb.append(getItemSeparator());\n\t\t\t\tsb.append(i.next().getValueAsString());\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder resultBuilder = new StringBuilder(\"\");\n\n\t\tfor (GradedItem item : gradedItems) {\n\t\t\tresultBuilder.append(item.toString());\n\t\t\tresultBuilder.append(\"\\n\");\n\t\t}\n\n\t\treturn resultBuilder.toString();\n\t}",
"public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}",
"@Override\n public String toString() {\n StringBuffer sb = new StringBuffer(\"[RegistrationItems |\");\n sb.append(\" regItemUid=\").append(getRegItemUid());\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }",
"@Override\n public String toString() {\n return \"[D]\" + super.toString() + \" (by: \"\n + by.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\")) + \")\";\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Item [UID=\" + UID + \", TITLE=\" + TITLE + \", NOOFCOPIES=\" + NOOFCOPIES + \"]\";\r\n\t}",
"public String toString() {\n final StringBuilder builder = new StringBuilder();\n builder.append(getProductName())\n .append(\" - \")\n .append(getProductQuantity())\n .append(\" left\");\n return builder.toString();\n }",
"public String[] listItems() {\n \n\t\tif (itemCount==0) {\n\t\t\tSystem.out.println(\"\\tNo items available.\\n\");\n\t\t}\n\t\telse {\n\t\t\tfor(int index = 1; index<=itemCount; index++) {\n VendItem s = stock[index-1];\n itemList[index-1]=(s.getName());\n\t\t\t}\n System.out.println();\n \n }\n return itemList;\n\n }",
"public String toString() {\n \tString ret;\n \tint sumWait = 0;\n \tfor(Teller t : employees)\n \t{\n \t\tsumWait += t.getSumWaitTime();\n \t}\n \t\n \tret = \"Total elapsed time: \" + clock;\n \tret = ret + \"\\nTotal customers helped: \"+ numCust;\n \tret = ret + \"\\nAvg. wait time: \"+String.format(\"%.3f\",(float)sumWait/numCust);\n \tfor(Teller t : employees)\n \t{\n \t\tret = ret + \"\\nTeller \"+t.getID()+\": % time idle: \"+String.format(\"%.3f\",(float)(100*t.getIdleTime())/clock)+\" Number of customers helped: \"+t.getNumHelped();\n \t}\n \treturn ret;\n }",
"static String tellerInfo() {\r\n\t\tString tellerReport = new String();\r\n\t\tfor (int i=0; i<tellerCount.length;i++) {\r\n\t\t\ttellerReport += String.format(\r\n\t\t\t\t\"Teller %d was seen %d times today, deposited $%.2f, and withdrew $%.2f, for a total of $%.2f%n\",\r\n\t\t\t\ti+1,\r\n\t\t\t\ttellerCount[i],\r\n\t\t\t\ttellerDeposits[i],\r\n\t\t\t\ttellerWithdrawls[i],\r\n\t\t\t\ttellerDeposits[i] - tellerWithdrawls[i]);\r\n\t\t}\r\n\r\n\t\treturn tellerReport;\r\n\t}",
"public java.lang.String getExpenseTotalTime () {\n\t\treturn expenseTotalTime;\n\t}",
"public String toString() {\n return \"[E]\" + super.toString() + \" (at: \"\n + date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy hh:ss a\")) + \")\";\n }",
"@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAutomaticallyAfterDays() != null)\n sb.append(\"AutomaticallyAfterDays: \").append(getAutomaticallyAfterDays()).append(\",\");\n if (getDuration() != null)\n sb.append(\"Duration: \").append(getDuration()).append(\",\");\n if (getScheduleExpression() != null)\n sb.append(\"ScheduleExpression: \").append(getScheduleExpression());\n sb.append(\"}\");\n return sb.toString();\n }",
"public String 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 String impval = \"\";\n String urgval = \"\";\n if (important) {\n impval = \"Important\";\n } else {\n impval = \"Not Important\";\n }\n if (urgent) {\n urgval = \"Urgent\";\n } else {\n urgval = \"Not Urgent\";\n }\n return title + \", \" + assignedTo + \", \"\n + timeToComplete + \", \" + impval + \", \"\n + urgval + \", \" + status;\n }",
"@Override\n public String toString() {\n StringBuilder elapsedTime = new StringBuilder();\n\n if(days > 0) {\n elapsedTime.append(getDays()).append(\" day\");\n if(days > 1) {\n elapsedTime.append(\"s\");\n }\n \n int remainingElements = 0;\n if(hours> 0) remainingElements++;\n if(minutes> 0) remainingElements++;\n if(seconds> 0) remainingElements++;\n \n if(remainingElements > 0) {\n if(remainingElements == 1) {\n elapsedTime.append(\" and \");\n }\n else elapsedTime.append(\", \");\n }\n }\n \n if (hours > 0) {\n elapsedTime.append(getHours()).append(\" hour\");\n if (hours > 1) {\n elapsedTime.append(\"s\");\n }\n\n int remainingElements = 0;\n if (minutes > 0) remainingElements++;\n if (seconds > 0) remainingElements++;\n\n if (remainingElements > 0) {\n if (remainingElements == 1) {\n elapsedTime.append(\" and \");\n } else {\n elapsedTime.append(\", \");\n }\n }\n \n }\n \n if (minutes > 0) {\n elapsedTime.append(getMinutes()).append(\" minute\");\n if (minutes > 1) {\n elapsedTime.append(\"s\");\n }\n if (seconds > 0) {\n elapsedTime.append(\" and \");\n }\n }\n \n if (seconds > 0) {\n elapsedTime.append(getSeconds()).append(\" second\");\n if (seconds > 1) {\n elapsedTime.append(\"s\");\n }\n }\n \n return elapsedTime.toString();\n }",
"public String toString() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"M/d/yyyy\");\n\t\treturn employeeName + \" \" + EID + \" \" + address + \" \" + phoneNumber + \" \" + sdf.format(DOB) + \" \" + securityClearance;\n\t}",
"public String toString() {\n return String.format(\"[%s][%s] %s (by: %s)\", this.type,\n this.getStatusIcon(),\n this.description,\n this.date.toString());\n }",
"public String getAvailableTime() {\n String output = \"\";\n for (int i = 0; i < 24; ++i) {\n if (availableTime[i] == true) {\n output += i;\n break;\n }\n }\n output += \" to \";\n for (int i = 23; i >= 0; --i) {\n if (availableTime[i] == true) {\n output += i;\n break;\n }\n }\n return output;\n }",
"public String getInventoryString() {\n String msg = new String(\"Inventory: \\n\");\n for (Map.Entry<String, Item> me : inventory.entrySet()) {\n msg += \" item: \" + me.getKey() + \" description: \" + me.getValue().getDescription() + \"\\n\";\n }\n return msg;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getAction() != null)\n sb.append(\"Action: \").append(getAction()).append(\",\");\n if (getDateAdded() != null)\n sb.append(\"DateAdded: \").append(getDateAdded()).append(\",\");\n if (getDateDue() != null)\n sb.append(\"DateDue: \").append(getDateDue());\n sb.append(\"}\");\n return sb.toString();\n }",
"@JsonIgnore public Collection<String> getEstimatedFlightDurationStrings() {\n final Object current = myData.get(\"estimatedFlightDuration\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<String>) current;\n }\n return Arrays.asList((String) current);\n }",
"@Override\r\n public String toString() {\r\n String result = \"\";\r\n for (Map.Entry<Item, Integer> item : inventory.entrySet()) {\r\n if (item.getValue() == 0) {\r\n result += \"SOLD OUT\\n\";\r\n } else {\r\n result += item.getKey();\r\n }\r\n }\r\n return result;\r\n }",
"public int getSubstanceExpirationDateReps() {\r\n \treturn this.getReps(16);\r\n }",
"public RemovedItemsReport getRemovedItemsReport() {\r\n\t\treturn removedItemsReport;\r\n\t}",
"@Override\n public String toString() {\n return \"Available Appointment \\nDate: \" + date + \" \\nTime: \" + time;\n }",
"@Override\n public String toString() {\n return \"[D]\" + super.toString() + \"(by: \" + date.format(DateTimeFormatter.ofPattern(\"MMM d yyyy\")) + \")\";\n }",
"@Override\n public String toString() {\n String outputDate = this.date.format(outputDateFormat);\n return \"[D]\" + super.toString() + \" (by: \" + outputDate + \")\";\n }",
"public List<String> getAuditRepaymentAdjustmentFrequencies() {\n\t\treturn stateEqualMasterDao.getElementValueList(\"AUDIT_REPAYMENT_ADJUSTMENT_FREQUENCY\");\n\t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append('[');\n for (Object item : list)\n {\n builder.append(item.toString());\n builder.append(\", \");\n }\n builder.append(']');\n return builder.toString();\n }",
"public List<String> keysAsString() {\n\t\treturn iter.getItems().stream().map(e -> new String(e)).collect(toList());\n\t}",
"protected String getReportsInvoiceData() {\n String result = \"\";\n\n //sort reports by name and then commission\n List<Report> keyList = new ArrayList<>(reports.keySet());\n keyList.sort(Comparator.comparing(Report::getReportName).thenComparing(Report::getCommission));\n //get report invoice message for each report in the order\n for (Report report : keyList) {\n result += workType.generateReportInvoiceMessage(report, reports.get(report));\n }\n return result;\n }",
"@Override\n\tpublic List<String> getListDueDate() {\n\t\ttry{\n\t\t\t\n\t\t\tbegin();\n\t\t\tString sql = \"SELECT DISTINCT mo.O_DueDate\"\n\t\t\t\t\t+ \" FROM mOrders mo\"\n\t\t\t\t\t+ \"\tWHERE mo.O_Status_Code='\"+Constants.ORDER_STATUS_NOT_IN_ROUTE+\"' \"\n\t\t\t\t\t\t\t+ \"OR mo.O_Status_Code='\"+Constants.ORDER_STATUS_ARRIVED_BUT_NOT_DELIVERIED+\"'\"\n\t\t\t\t\t+ \" ORDER BY mo.O_DueDate ASC\";\n\t\t\tList<String> lstOrDate = getSession().createQuery(sql).list();\n\t\t\t//System.out.println(name()+\"::getListDueDate--lstOrDate: \"+lstOrDate.toString());\n\t\t\tcommit();\n\t\t\t\n\t\t\treturn lstOrDate;\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\te.printStackTrace();\n\t\t\trollback();\n\t\t\tclose();\n\t\t\treturn null;\n\t\t}finally{\n\t\t\tflush();\n\t\t\tclose();\n\t\t}\n\t}",
"public String[] getCurrentItemTypes() {\n \n String[] send = new String[currentTaskItems.size()];\n \n //loop through and grab the types\n for(int i = 0;i<currentTaskItems.size();i++) {\n \n String[] temp = currentTaskItems.get(i);\n send[i] = temp[1]; \n }\n \n //return the types\n return send;\n }",
"@Accessor(qualifier = \"itemsExported\", type = Accessor.Type.GETTER)\n\tpublic Integer getItemsExported()\n\t{\n\t\treturn getPersistenceContext().getPropertyValue(ITEMSEXPORTED);\n\t}",
"public String getOrderDetails(ArrayList<Item> items){\n String detailsToString=\"\";\n\n Set<Item> setOrderItems = new HashSet<>();\n for(Item each: items){ //remove duplicates and increase quanity of item instead.\n if(!setOrderItems.add(each)){\n setOrderItems.remove(each);\n each.incQuantity();\n setOrderItems.add(each);\n }\n }\n\n for(Item each: setOrderItems){\n detailsToString = \"x\"+each.getQuantity()+\" \"+each.getName()+\"\\n\"+detailsToString;\n }\n\n return detailsToString;\n }",
"@Override\n\tpublic String exibirDados() {\n\t\ttoString();\n\t\tString message = toString() + \"\\nimc: \" + calculaImc();\n\t\treturn message;\n\t}",
"@Override\n public String toString() {\n SimpleDateFormat format = new SimpleDateFormat (\"MMM d yyyy\");\n String dateString = format.format(by);\n return \"[D]\" + super.toString() + \" (by: \" + dateString + \")\";\n }",
"@Override\n public String toString() {\n return \"OrderItems{\" +\n \"itemId='\" + itemId + '\\'' +\n \", itemName='\" + itemName + '\\'' +\n \", itemPrice=\" + itemPrice +\n \", itemQuantity=\" + itemQuantity +\n \", itemAmount=\" + itemAmount +\n '}';\n }",
"@Override\n\tpublic String getEligibleTime() {\n\t\treturn model.getEligibleTime();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn this.getStringEventId()+\"-\"+this.getOccurrenceMark();\n\t}",
"@Override\n public String toString() {\n return (\"[E]\" + super.toString() + String.format(\"(at:%s)\", this.date));\n }",
"public String toString() {\n return title() + \" \" + longValue() + \" [DateTime]\";\n }",
"public String toString() {\n return name + \" with \" + kills + \" kills died \" + daysSinceDeath\n + \" days ago.\";\n }",
"@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}",
"private String marketBuyAmounts() {\r\n\t\tint[] amounts= market.getBuyAmounts();\r\n\t\tString out = \"Buy Requests Are: \";\r\n\t\tfor(int i=0; i<amounts.length;i++) {\r\n\t\t\tout=out.concat(i+\": \"+amounts[i]+\" || \");\r\n\t\t}\r\n\t\treturn out;\r\n\t}",
"@Override\n public String toString() {\n StringBuffer sb = new StringBuffer(\"[ApptranregFeesAud |\");\n sb.append(\" atrfAudUid=\").append(getAtrfAudUid());\n sb.append(\"]\");\n return sb.toString();\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn bpa_id+\" \"+group_Number+\" \"+bpa_effect_frm_dt+\" \"+bpa_effect_to_dt+\" \"+billaccountList;\r\n\t}",
"@Override\r\n public String toString()\r\n {\r\n return taskName + \",\" + dueDate + \"\";\r\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 }",
"protected String[] getItemsAfter()\n {\n return createItemList(new int[] { 0, 1, 2, 3, 4, 5 });\n }",
"public String toString(){\n return \"item1: \" + item1.toString() + \" | item2: \" + item2.toString();\n }",
"public String toString() {\r\n\t\tString result = \"\";\r\n\t\tfor ( int i= 0 ; i < openTime.length; i++ ){\r\n\t\t\tif ( openTime[i] == 0 && closeTime[i] == 0)\r\n\t\t\t\tresult += \"Closed for Today\\n\";\r\n\t\t\telse result += timeToText(openTime[i]) + \" -- \" + timeToText(closeTime[i]) + \"\\n\";\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public String getEmployees() {\n\t\tString s = \"\";\n\t\tfor (Employee e : employees) {\n\t\t\ts = s + e.getName() + \", \";\n\t\t}\n\t\ts = s.substring(0, s.length() - 2);\n\t\treturn s;\n\t}",
"@Override\n public String toString() {\n return this.toList().toString();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString entregado;\r\n\t\tif (this.dataDeDevolucao == null)\r\n\t\t\tentregado = \"Emprestimo em andamento\";\r\n\t\telse\r\n\t\t\tentregado = this.dataDevolucaoStr;\r\n\t\treturn \"EMPRESTIMO - De: \" + this.emprestimoid.getNomeDonoItem() + \", Para: \"\r\n\t\t\t\t+ this.emprestimoid.getNomeRequerenteItem() + \", \" + this.emprestimoid.getNomeItem() + \", \"\r\n\t\t\t\t+ this.dataInicialEmprestimoStr + \", \" + this.numeroDiasParaEmprestimo + \" dias, ENTREGA: \" + entregado;\r\n\t}"
] | [
"0.6594744",
"0.61823696",
"0.59944427",
"0.5817743",
"0.57158",
"0.56720465",
"0.5665921",
"0.56500965",
"0.56483585",
"0.56246513",
"0.55628943",
"0.55029464",
"0.5489531",
"0.5488322",
"0.548102",
"0.5477297",
"0.54769623",
"0.54535323",
"0.5449017",
"0.5448599",
"0.5448387",
"0.544095",
"0.5418874",
"0.5417514",
"0.5413092",
"0.54038656",
"0.53917414",
"0.53766423",
"0.53684735",
"0.53506255",
"0.5344627",
"0.53324467",
"0.5325152",
"0.5307399",
"0.5289364",
"0.52875626",
"0.52696127",
"0.52691466",
"0.5264499",
"0.52585524",
"0.52576107",
"0.5256943",
"0.5252878",
"0.52461624",
"0.5240651",
"0.523885",
"0.52354896",
"0.52020025",
"0.51998883",
"0.51969314",
"0.5188534",
"0.5182078",
"0.517386",
"0.5172918",
"0.51721054",
"0.51643217",
"0.51555675",
"0.51534945",
"0.51532686",
"0.51451737",
"0.5134612",
"0.51306516",
"0.5124631",
"0.51077354",
"0.51071745",
"0.51040256",
"0.51025903",
"0.5098767",
"0.5094345",
"0.50761694",
"0.50705725",
"0.5068261",
"0.5060563",
"0.5060386",
"0.50569916",
"0.50535464",
"0.5052562",
"0.5051627",
"0.5037181",
"0.5035849",
"0.5032639",
"0.50309795",
"0.5020379",
"0.501981",
"0.5018486",
"0.5018216",
"0.50145113",
"0.50111824",
"0.50085104",
"0.49985358",
"0.4995469",
"0.4993981",
"0.49901307",
"0.4985817",
"0.49846333",
"0.49780557",
"0.49744892",
"0.4974156",
"0.4969133",
"0.4966871"
] | 0.76366156 | 0 |
private final List authorIds; Creates new form UpdateFrame | public UpdateFrame(Database database, String ISBN, Map<String, Author> authors,
Map<String, Title> titles, Map<String, List<String>> authorTitleMap,
Map<String, List<String>> titleAuthorMap) {
try {
for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
if ("Nimbus".equals(info.getName())) {
javax.swing.UIManager.setLookAndFeel(info.getClassName());
break;
}
}
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException | javax.swing.UnsupportedLookAndFeelException ex) {
java.util.logging.Logger.getLogger(AdminLoginFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
}
this.initComponents();
this.database = database;
this.authors = authors;
this.titles = titles;
this.authorTitleMap = authorTitleMap;
this.titleAuthorMap = titleAuthorMap;
this.ISBN = ISBN;
this.initializeALlItems();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addAuthorList() {\n Intent intent = new Intent();\n ArrayList<Author> authorList = new ArrayList<>(mAuthorMap.values());\n intent.putExtra(EXTRA_AUTHOR_LIST, authorList);\n setResult(RESULT_OK, intent);\n finish();\n }",
"public void setAuthors(Author[] authors) {\n this.authors = authors;\n }",
"public void setAuthors(Author[] authors) {\n this.authors = authors;\n }",
"@Override\n \tpublic void setAuthors(String authors) {\n \t\t// TODO Auto-generated method stub\n \n \t}",
"public void setAuthors(String[] authors) {\n this.authors = authors;\n }",
"public void setAuthors(String _authors) { authors = _authors; }",
"public void setAuthors(ArrayList<String> authors) throws BadParametersException {\n\t\tif (authors == null)\n\t\t\tthrow new NullPointerException();\n\t\tif (authors.size() == 0)\n\t\t\tthrow new BadParametersException();\t\n\t\tthis.authors = authors;\n\t}",
"public BrowseHistoryContentValues putThreadAuthorId(long value) {\n mContentValues.put(BrowseHistoryColumns.THREAD_AUTHOR_ID, value);\n return this;\n }",
"public adminAuthor() {\n initComponents();\n List();\n\n }",
"public void setIds(String ids) {\n this.ids = ids;\n }",
"@Override\n\tpublic void setIds(String[] ids) {\n\t\t\n\t}",
"public String[] getAuthors() {\n return authors;\n }",
"@Override\n\tpublic void onFriendList(long[] friendIds) {\n\n\t}",
"public String getAuthorId() {\n return authorId;\n }",
"public void updateAuthor(Author author);",
"void initListRemainingId();",
"public void setUserIdentities(List<ACUserIdentity> userIdentities) {\n this.userIdentities = userIdentities;\n }",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"public void setAuthorId(Integer authorId) {\n this.authorId = authorId;\n }",
"int[] getSelectedAuthorsIndexes();",
"@Override\n\tpublic long getAuthorId() {\n\t\treturn _scienceApp.getAuthorId();\n\t}",
"public void setAuthor(Player author){\n this.playerAuthor = author;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"public Integer getAuthorId() {\n return authorId;\n }",
"List<String> getAuthorsList() {\r\n\t\tList<String> authorList = new ArrayList<String>() ;\r\n\t\t\r\n\t\t// Populate the list of authors\r\n\t\tfor(Collaborator c: collaborators) {\r\n\t\t\tauthorList.add(c.getAuthorName()) ;\r\n\t\t}\r\n\t\treturn authorList ;\r\n\t}",
"public Item2Vector<Author> getAuthorss() { return authorss; }",
"public Integer getAuthorId() {\n\t\treturn authorId;\n\t}",
"public ModifyCitedPublicationList( ArrayList <CitedPublication> StartedList ){\n \n modifiedList = new ArrayList<Integer>(); \n IndexDeletedItem = new ArrayList<Integer>();\n deletedItem = new ArrayList <CitedPublication>();\n \n KeepItem = StartedList;\n \n }",
"@Override\n public void author_()\n {\n }",
"public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByAuthorId(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.AUTHOR_ID, values);\n\t}",
"public void setAuthorId(String authorId) {\n this.authorId = authorId;\n }",
"ImmutableList<SchemaOrgType> getAuthorList();",
"public void setAuthorParameters(AuthorParameters authorParameters) {\n\t\tthis.authorParameters = authorParameters;\n\t}",
"List<Long> getAuthorisedList( Long id) ;",
"Set<URI> getAuthors();",
"public Author[] getAuthors() {\n return authors;\n }",
"public Author[] getAuthors() {\n return authors;\n }",
"private void showOldAuthorData() {\n try {\n Author author = authorService.getAuthorById(selectedId);\n nameTxt.setText(author.getName());\n surnameTxt.setText(author.getSurname());\n } catch (Exception ex) {\n Logger.getLogger(EditAuthorFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n \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 List applyAuthorRule () {\n\t\treturn authors;\n\t}",
"public void setContributors(List<Contributor> list) {\r\n this.contributors = list;\r\n }",
"public Collection getUpdatedObjectIds() {\n if (_payload == PAYLOAD_EXTENTS)\n throw new UserException(s_loc.get(\"extent-only-event\"));\n return (_updates == null) ? Collections.EMPTY_LIST : _updates;\n }",
"public List<String> getAuthors() {\n return authors;\n }",
"@JsonSetter(\"didIds\")\r\n public void setDidIds (List<Integer> value) { \r\n this.didIds = value;\r\n }",
"public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VAuthor> fetchById(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VAuthor.V_AUTHOR.ID, values);\n\t}",
"public void clearAuthors() {\r\n\t\tauthorsNum = 0;\r\n\t}",
"public ArrayList<String> getAuthors() {\n\t\treturn authors;\n\t}",
"public void addToFollowedUsers(List<String> followedUsers);",
"public void setAuthorId(Integer authorId) {\n\t\tthis.authorId = authorId;\n\t}",
"public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n authorities_.makeImmutable();\n return authorities_;\n }",
"public List<Story> listStoriesByCreatorIds(List<UUID> creatorIds) {\n EntityManager entityManager = getEntityManager();\n CriteriaBuilder criteriaBuilder = entityManager.getCriteriaBuilder();\n CriteriaQuery<Story> criteria = criteriaBuilder.createQuery(Story.class);\n Root<Story> root = criteria.from(Story.class);\n criteria.select(root);\n\n Expression<UUID> creatorExpression = root.get(Story_.creatorId);\n Predicate creatorRestriction = creatorExpression.in(creatorIds);\n criteria.where(creatorRestriction);\n\n return entityManager.createQuery(criteria).getResultList();\n }",
"public void setAuids(List<String> auids) {\n this.auids = auids;\n }",
"String[] getAuthor();",
"public com.google.protobuf.ProtocolStringList\n getAuthoritiesList() {\n return authorities_;\n }",
"private void updateLists(){\n subjects.clear();\n for(Message m : user.getMessages()){\n subjects.add(String.format(\"From - %-\" + (40 - m.getFrom().length()) +\"s %20s\", m.getFrom(), m.getTimestamp().substring(0,16)));\n }\n listViewAdapter.notifyDataSetChanged();\n }",
"public void setIdentifiers(List<Identifier> identifiers) {\r\n\r\n this.identifiers = identifiers;\r\n\r\n }",
"int[] getSelectedAuthorsBookIndexes();",
"public void setTradeIds(Iterable<? extends ObjectIdentifiable> tradeIds) {\n if (tradeIds == null) {\n _tradeIds = null;\n } else {\n _tradeIds = new ArrayList<ObjectIdentifier>();\n for (ObjectIdentifiable tradeId : tradeIds) {\n _tradeIds.add(tradeId.getObjectId());\n }\n }\n }",
"public void setOwnerList(Collection<OwnerModel> ownerList)\r\n\t{\r\n\t\tthis.ownerList = ownerList;\r\n\t}",
"@Override\n\t\tpublic void onFriendList(long[] arg0) {\n\t\t\t\n\t\t}",
"public List<String> getAuthors() {\n return Collections.unmodifiableList(mAuthors);\n }",
"public releaseAlarmByIds_args(releaseAlarmByIds_args other) {\n if (other.isSetIds()) {\n List<Integer> __this__ids = new ArrayList<Integer>();\n for (Integer other_element : other.ids) {\n __this__ids.add(other_element);\n }\n this.ids = __this__ids;\n }\n }",
"@Override\n\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\n\t\t\t}",
"public List<AuthorPaper> getAuthorPapers(int authorId) throws SQLException;",
"@Override\n\tpublic void setAuthorId(long authorId) {\n\t\t_scienceApp.setAuthorId(authorId);\n\t}",
"public void updateUserLists()\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tcell.updateUserList();\n\t\t}\n\t}",
"public final void author() throws RecognitionException {\n Token ID1=null;\n\n try {\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:8: ( '@author' ID )\n // /Users/valliant/Projects/java/CFML/cfml.parsing/antlr/Javadoc.g:13:10: '@author' ID\n {\n match(input,7,FOLLOW_7_in_author42); \n\n ID1=(Token)match(input,ID,FOLLOW_ID_in_author44); \n\n System.out.println(\"author \"+(ID1!=null?ID1.getText():null));\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onGetBookIdsStart() {\n\t\t\t\t\t\n\t\t\t\t}",
"public OwnerList()\n {\n ownerList = new ArrayList<>();\n }",
"public List<Book> getBooksByAuthorId(Long authId) {\n String queryStr = \"SELECT b FROM BookAuthor b where b.author.id = :coAuthor\";\n Query query = em.createQuery(queryStr);\n query.setParameter(\"coAuthor\", authId);\n\n return query.getResultList();\n }",
"public List<Conference> getAuthorConferenceServed(int authorId) throws SQLException;",
"public java.util.List<org.jooq.test.h2.generatedclasses.tables.pojos.VBook> fetchByCoAuthorId(java.lang.Integer... values) {\n\t\treturn fetch(org.jooq.test.h2.generatedclasses.tables.VBook.V_BOOK.CO_AUTHOR_ID, values);\n\t}",
"private void updateDocumentList(Response response) {\n\t\t\tfor (String doc : response.getEditorList()) {\n\t\t\t\tif (!RevisionList.this.listmodel.contains(doc))\n\t\t\t\t\tRevisionList.this.listmodel.addElement(doc);\n\t\t\t}\n\t\t}",
"public final native void setAuthor(String author) /*-{\n this.setAuthor(author);\n }-*/;",
"public boolean setPaperAuthors(int paperId, HashMap<Integer,Integer> authorIds) throws DLException {\n\t\tboolean isSet=false;\n\t\ttry {\t\t\t\n\t\t\tif(currentUser.getIsAdmin()==1 || checkIfAuthor(paperId,authorIds)) {\t\t \n\t\t\t\tboolean isConnected = dbObj.connect();\n\t\t\t\tif(isConnected) {\n\t\t\t\t\tArrayList<String> args = new ArrayList<String>();\n\t\t\t\t\tString sqlStr = \"INSERT INTO PaperAuthors(paperId, userId, displayOrder) VALUES\";\n\t\t\t\t\tint count=0;\n\t\t\t\t\tfor(int key: authorIds.keySet()) {\t\t\t\t\t\t\n\t\t\t\t\t\tif(count==0) {\n\t\t\t\t\t\t\tsqlStr+=\"(?,?,?)\";\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tsqlStr+=\",(?,?,?) \";\n\t\t\t\t\t\t}\n\t\t\t\t\t args.add(String.valueOf(paperId));\n\t\t\t\t\t args.add(String.valueOf(authorIds.get(key)));\n\t\t\t\t\t args.add(String.valueOf(key));\n\t\t\t\t\t count++;\n\t\t\t\t\t}\n\t\t\t\t\tsqlStr+=\"ON DUPLICATE KEY UPDATE displayOrder=VALUES(displayOrder)\";\n\t\t\t\t\tint rc = dbObj.setData(sqlStr, args);\n\t\t\t\t\tif(rc>0) {\n\t\t\t\t\t\tisSet=true;\n\t\t\t\t\t}\n\t\t\t\t\tdbObj.close();\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t}\n\t\tcatch(Exception ex) {\n\t \t\tthrow new DLException(ex, ex.getMessage());\n\t }\t\t\t\t \t \n\t\treturn isSet;\n\t}",
"public void setUserIdList(List<String> userIdList) {\r\n this.userIdList = userIdList;\r\n }",
"@Override\n public void author()\n {\n }",
"void onMultipleIssuers(final List<Issuer> issuers);",
"void approveFiles(String[] fileIds,String[] commentList,String userId)throws LMSException;",
"public void appendToFollowedUsers(List<String> followedUsers);",
"private void updateUserList() {\n\t\tUser u = jdbc.get_user(lastClickedUser);\n\t\tString s = String.format(\"%s, %s [%s]\", u.get_lastname(), u.get_firstname(), u.get_username());\n\t\tuserList.setElementAt(s, lastClickedIndex);\n\t}",
"public String getIds() {\n return this.ids;\n }",
"public String getIds() {\n return ids;\n }",
"public String getIds() {\n return ids;\n }",
"public ArrayList<Book> listOfBooksByAuthor (Author providedAuthor){\n //Array list for storing books written by provided author\n ArrayList<Book> authorBooks = new ArrayList<>();\n\n //loops through the booklist to find books with the author in the list of authors\n for (Book book : bookList) {\n //loops through the list of authors to see if the provided author is among thelist\n for (Author author1 : book.getAuthors()) {\n if (providedAuthor.equals(author1)) {\n authorBooks.add(book);\n }\n }\n }\n return authorBooks;\n }",
"public AuthorParameters getAuthorParameters() {\n\t\treturn authorParameters;\n\t}",
"public void setAuthor(String author) {\n\tthis.author = author;\n}",
"public void populateAUTHORS_DETAILS(\n\t\t\tArrayList<AuthorsDetails> authorsDetailsArray) {\n\n\t\tSQLiteStatement statement = getReadableDatabase().compileStatement(\n\t\t\t\tPOPULATE_AUTHORS_DETAILS);\n\t\t\n\t\tgetReadableDatabase().beginTransaction();\n\t\tLog.d(gtag, \"Starting - Insert into AUTHORS_DETAILS\");\n\t\tfor ( AuthorsDetails item:authorsDetailsArray) {\n\n\t\t\tstatement.clearBindings();\n\t\t\tstatement.bindString(1, item.getAuthor_uuid());\n\t\t\tstatement.bindString(2, item.getAuthor_fName());\n\t\t\tstatement.bindString(3, item.getAuthor_middleName());\n\t\t\tstatement.bindString(4, item.getAuthor_lName());\n\t\t\tstatement.bindString(5, item.getAuthor_email());\n\t\t\tlong y = statement.executeInsert();\n\t\t\tLog.d(gtag, \"INSERTED - AUTHORS_DETAILS\" + item.getAuthor_uuid()\n\t\t\t\t\t+ \" in AUTHORS_DETAILS. ID: \" + y);\n\t\t\t}\n\t\tstatement.close();\n\t\tgetReadableDatabase().setTransactionSuccessful();\n\t\tgetReadableDatabase().endTransaction();\n\t\t}",
"@RestAPI\n \t@PreAuthorize(\"hasAnyRole('A')\")\n \t@RequestMapping(value = \"/api\", params = \"action=update\", method = RequestMethod.PUT)\n \tpublic HttpEntity<String> update(@RequestParam(\"ids\") String ids) {\n \t\tString[] split = StringUtils.split(ids, \",\");\n \t\tfor (String each : split) {\n \t\t\tupdate(Long.parseLong(each));\n \t\t}\n \t\treturn successJsonHttpEntity();\n \t}",
"public int numberAuthors() {\n return authors.size();\n }",
"public void addAuthorAction()\n\t{\n\t\tViewNavigator.loadScene(\"Add Author\", ViewNavigator.ADD_AUTHOR_SCENE);\n\t}",
"void updateContent(List<Md2Entity> updates);",
"public void setMemberIDs(ArrayList<Integer> memberIDs) {\n this.memberIDs = memberIDs;\n }",
"public void candidateDetails(Author authorObject);",
"@Override\n\tpublic void actualizarIds(JSONArray array) {\n\n\t}",
"public void addToFollowedUsers(String followedUsers);",
"public AntigooSync(ArrayList<BlockPos> updateList) {\n this.antigooList = updateList;\n }",
"public Authors() {\n mAuthors = new TreeMap<>();\n }",
"public void setAuthor(String author) {\r\n this.author = author;\r\n }"
] | [
"0.5897169",
"0.5801407",
"0.5801407",
"0.5743056",
"0.5715815",
"0.5715569",
"0.5488742",
"0.54775274",
"0.542317",
"0.540666",
"0.53856224",
"0.53696114",
"0.5338542",
"0.53354406",
"0.5326555",
"0.5315897",
"0.5300461",
"0.52891254",
"0.52891254",
"0.52869624",
"0.5274634",
"0.5270221",
"0.5267615",
"0.5267615",
"0.5264057",
"0.52292126",
"0.5218526",
"0.51958734",
"0.51934516",
"0.51932496",
"0.51886404",
"0.5184363",
"0.51741064",
"0.5159226",
"0.51565284",
"0.5153177",
"0.5153177",
"0.5148133",
"0.51386476",
"0.51340276",
"0.51267433",
"0.5118988",
"0.5111522",
"0.5098066",
"0.50934696",
"0.5093454",
"0.5080462",
"0.5050901",
"0.5049003",
"0.50208384",
"0.5015225",
"0.49957672",
"0.49921858",
"0.4982329",
"0.49803665",
"0.49799573",
"0.4979011",
"0.4955039",
"0.49549493",
"0.4941563",
"0.49261189",
"0.49233454",
"0.49195367",
"0.49130854",
"0.49115238",
"0.4906713",
"0.4904425",
"0.49022716",
"0.49022716",
"0.48902562",
"0.48852006",
"0.48770005",
"0.4871639",
"0.48708367",
"0.4854279",
"0.4845058",
"0.48420534",
"0.48332283",
"0.48305503",
"0.4823245",
"0.48201886",
"0.48130783",
"0.48129562",
"0.48114333",
"0.48114333",
"0.48071128",
"0.47985655",
"0.4797892",
"0.4793458",
"0.47878012",
"0.47838458",
"0.4780615",
"0.47768375",
"0.47730592",
"0.47625825",
"0.47607744",
"0.47596824",
"0.4757502",
"0.47495013",
"0.47449708"
] | 0.4854339 | 74 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jPanel1 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
tfBookTitle = new javax.swing.JTextField();
tfEdition = new javax.swing.JTextField();
tfISBN = new javax.swing.JTextField();
tfTotalCopy = new javax.swing.JTextField();
jScrollPane1 = new javax.swing.JScrollPane();
taAuthors = new javax.swing.JTextArea();
ddAuthor = new javax.swing.JComboBox<>();
bAddAuthorDropDown = new javax.swing.JButton();
tfCopyRight = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
bCancle = new javax.swing.JButton();
bReset = new javax.swing.JButton();
bUpdateFinalize = new javax.swing.JButton();
setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
setResizable(false);
jLabel1.setFont(new java.awt.Font("DejaVu Sans", 1, 18)); // NOI18N
jLabel1.setText("Update Book Information");
jLabel2.setFont(new java.awt.Font("DejaVu Sans", 0, 14)); // NOI18N
jLabel2.setText("Title:");
jLabel3.setFont(new java.awt.Font("DejaVu Sans", 0, 14)); // NOI18N
jLabel3.setText("Author:");
jLabel4.setFont(new java.awt.Font("DejaVu Sans", 0, 14)); // NOI18N
jLabel4.setText("ISBN No.:");
jLabel5.setFont(new java.awt.Font("DejaVu Sans", 0, 14)); // NOI18N
jLabel5.setText("Edition:");
jLabel6.setFont(new java.awt.Font("DejaVu Sans", 0, 14)); // NOI18N
jLabel6.setText("Total Copy:");
tfBookTitle.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tfBookTitleActionPerformed(evt);
}
});
tfEdition.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tfEditionActionPerformed(evt);
}
});
tfISBN.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tfISBNActionPerformed(evt);
}
});
tfTotalCopy.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
tfTotalCopyActionPerformed(evt);
}
});
taAuthors.setColumns(20);
taAuthors.setRows(5);
jScrollPane1.setViewportView(taAuthors);
ddAuthor.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
bAddAuthorDropDown.setText("< Add");
bAddAuthorDropDown.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bAddAuthorDropDownActionPerformed(evt);
}
});
jLabel7.setText("Copy Right:");
bCancle.setText("Cancel");
bCancle.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bCancleActionPerformed(evt);
}
});
bReset.setText("Reset");
bReset.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bResetActionPerformed(evt);
}
});
bUpdateFinalize.setText("Update");
bUpdateFinalize.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
bUpdateFinalizeActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(105, 105, 105)
.addComponent(jLabel1)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addGap(14, 14, 14)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel7)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(tfTotalCopy))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel5)
.addGap(32, 32, 32)
.addComponent(tfEdition))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel4)
.addGap(20, 20, 20)
.addComponent(tfISBN))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel3))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 43, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 354, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(ddAuthor, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))))
.addGap(13, 13, 13))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 98, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(29, 29, 29)
.addComponent(bReset, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(26, 26, 26)
.addComponent(bUpdateFinalize, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel1)
.addGap(36, 36, 36)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(tfBookTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(32, 32, 32)
.addComponent(jLabel3))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(ddAuthor, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(bAddAuthorDropDown, javax.swing.GroupLayout.PREFERRED_SIZE, 49, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(tfISBN, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(25, 25, 25)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(tfEdition, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tfCopyRight, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel6)
.addComponent(tfTotalCopy, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
.addComponent(bUpdateFinalize, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(bReset, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(bCancle, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
);
jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {tfCopyRight, tfEdition});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public kunde() {\n initComponents();\n }",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7319573",
"0.72908455",
"0.72908455",
"0.72908455",
"0.7286827",
"0.7248724",
"0.7213511",
"0.7208325",
"0.7195998",
"0.7190202",
"0.7184771",
"0.7158966",
"0.7147921",
"0.7093225",
"0.7080275",
"0.7057302",
"0.69875276",
"0.6977057",
"0.6955658",
"0.6953942",
"0.69454855",
"0.6942884",
"0.6935925",
"0.69316167",
"0.692865",
"0.6925198",
"0.69251573",
"0.69119257",
"0.6911172",
"0.68930143",
"0.68928415",
"0.6890789",
"0.6890435",
"0.68890977",
"0.68831456",
"0.6881887",
"0.68808997",
"0.6878897",
"0.6876147",
"0.68747145",
"0.6872147",
"0.6859808",
"0.6856282",
"0.6855344",
"0.68553185",
"0.685469",
"0.6853377",
"0.68523794",
"0.68523794",
"0.68436074",
"0.68373406",
"0.6837167",
"0.68286663",
"0.68283236",
"0.6826517",
"0.682448",
"0.6823606",
"0.68170947",
"0.6817084",
"0.681006",
"0.6809135",
"0.68087894",
"0.68084186",
"0.68076634",
"0.6802823",
"0.6795054",
"0.67939687",
"0.67926705",
"0.6791137",
"0.6789317",
"0.6788968",
"0.6788417",
"0.6782546",
"0.67662394",
"0.67658025",
"0.6765246",
"0.6756509",
"0.67557156",
"0.6752202",
"0.6750687",
"0.6742804",
"0.6739344",
"0.6736661",
"0.67360824",
"0.67333126",
"0.6727312",
"0.67265683",
"0.6720307",
"0.67165637",
"0.67146873",
"0.6714614",
"0.67091054",
"0.67075574",
"0.6704629",
"0.6700793",
"0.6700504",
"0.6699442",
"0.6697844",
"0.66946405",
"0.66912174",
"0.6690615"
] | 0.0 | -1 |
Method being called when program is executed. | public static void main(String[] args) {
ComplexNumber c1 = new ComplexNumber(2, 3);
ComplexNumber c2 = ComplexNumber.parse("2.5-3i");
ComplexNumber c3 = c1.add(ComplexNumber.fromMagnitudeAndAngle(2, 1.57)).div(c2).power(3).root(2)[1];
System.out.println(c3);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void intialRun() {\n }",
"public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}",
"@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}",
"public static void main() {\n \n }",
"public void runProgram() {\n\n\t\tSystem.out.println(\"\\n Time to start the machine... \\n\");\n\n\t\tpress.pressOlive(myOlives);\n\n\t\tSystem.out.println(\"Total amount of oil \" + press.getTotalOil());\n\t}",
"public void doMyStartupStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n\t}",
"void launch();",
"void launch();",
"void launch();",
"public void doMyStartupStuff(){\r\n System.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n }",
"public static void main(){\n\t}",
"void program() {\n\n }",
"public static void main()\n\t{\n\t}",
"public void startup(){}",
"protected abstract void preRun();",
"default void run() {\n\t\tSystem.out.println(\"run\");\r\n\t}",
"public abstract void startup();",
"public void runProgram() {\n\t\tJTextPane code = ((MinLFile) tabbedPane.getSelectedComponent()).CodeArea;\n\t\tminc.consolearea.setText(\"\");\n\t\tinterpretorMainMethod(code.getText(), 0);\n\t\tdouble_variables.clear();\n\t\tstring_variables.clear();\n\t\tfunctions.clear();\n\t}",
"public void process() {\n\t\tSystem.out.println(\"snapdragonm 888\");\n\n\t}",
"void startup();",
"void startup();",
"private void before() {\n\t\tSystem.out.println(\"程序开始执行!\");\n\t}",
"public void startApp()\r\n\t{\n\t}",
"void PostRun() {\n }",
"public static void main() {\n }",
"public void Main(){\n }",
"public void engine() {\n\t\tSystem.out.println(\"Follow engine guidelines\");\n\t}",
"public static void run() {\n }",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}",
"void PrepareRun() {\n }",
"public void main(){\n }",
"public static void run(){}",
"public void startProgram()\r\n\t{\r\n\t\tview.displayPlayerNames();\r\n\t\tview.loadGameData();\r\n\t\tview.displayGame();\r\n\t}",
"public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }",
"public void myProgram();",
"boolean launch();",
"public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }",
"public void startExecuting() {}",
"@Override\n public void terminateProgram() {\n \n }",
"@Override\r\n\tpublic void program() {\n\t\tSystem.out.println(\"我是一名Java工程师\");\r\n\t}",
"public String program();",
"@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}",
"public void startup()\n\t{\n\t\t; // do nothing\n\t}",
"public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }",
"private void entryAction() {\n\t}",
"@Override\n public void programClosed() {\n super.programClosed();\n }",
"@Override\n\tprotected void postRun() {\n\n\t}",
"private void start() {\n\n\t}",
"@Override\n\tpublic void postRun() {\n\t}",
"public abstract void onProcess();",
"private static void announceProgram() {\r\n\t\t// https://www.mkyong.com/java/java-how-to-get-current-date-time-date-and-calender/\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tDate date = new Date(System.currentTimeMillis());\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t\tDL.println(\" AR Splitter launched: \" + dateFormat.format(date));\r\n\t\tDL.println(\"=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\r\n\t}",
"public void start()\r\n\t{\n\tSystem.out.println(\"normal start method\");\r\n\t}",
"void programming() {\n\t\tSystem.out.println(\"Programming is amazing\");\n\t}",
"public void startCommandLine() {\r\n Object[] messageArguments = { System.getProperty(\"app.name.display\"), //$NON-NLS-1$\r\n System.getProperty(\"app.version\") }; //$NON-NLS-1$\r\n MessageFormat formatter = new MessageFormat(\"\"); //$NON-NLS-1$\r\n formatter.applyPattern(Messages.MainModel_13.toString());\r\n TransportLogger.getSysAuditLogger().info(\r\n formatter.format(messageArguments));\r\n }",
"@Override\n public void preRun() {\n super.preRun();\n }",
"@Override\n public void startup() {\n }",
"Programming(){\n\t}",
"@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"studying\");\n\t}",
"abstract void initiateConsole();",
"@Override\n \tpublic void logProgramStart(String programName, String args, String whitelist, String blacklist) {\n \t\tSystem.out.println(\"Program started with name [\" + programName + \"] and args [\" + args + \"]\");\n \t\tSystem.out.println(\"Whitelist: \" + whitelist);\n \t\tSystem.out.println(\"Blacklist: \" + blacklist);\n \t\tSystem.out.println(\"=============================\");\n \t}",
"protected void run() {\r\n\t\t//\r\n\t}",
"private void runApp() {\n parkinglots = new ArrayList<>();\n accounts = new ArrayList<>();\n input = new Scanner(System.in);\n loadParkingLots();\n loadAccounts();\n\n processLoginCommand();\n processMainMenuCommand();\n\n saveAccounts();\n System.out.println(\"\\ngoodbye!\");\n }",
"public static void displayProgramEnd() \r\n {\n }",
"protected void execute() {\n \tTmSsAutonomous.getInstance().showAlgInfo();\n \tshowPreferenceSettings(); //P.println(\"[Preferences info TBD]\");\n }",
"private Main() {\n\n super();\n }",
"private Main ()\n {\n super ();\n }",
"public void startup() {\n neutral();\n }",
"void analysisStarting();",
"void beforeRun();",
"static void startJavaTrainer() {\n initializeMap();\n promptUser();\n startProgram();\n }",
"public void exec(OxProgram pgm) {\n }",
"public void run(){\n\t\tinputStreamReader = new InputStreamReader(System.in);\r\n\t\tin = new BufferedReader( inputStreamReader );\r\n\t\t\r\n\t\tSystem.out.println(\"\\n\" + Application.APPLICATION_VENDOR + \" \" + Application.APPLICATION_NAME + \" \" + Application.VERSION_MAJOR + \".\" + Application.VERSION_MINOR + \".\" + Application.VERSION_REVISION + \" (http://ThreatFactor.com)\");\r\n\t\t//System.out.println(\"We are here to help, just go to http://ThreatFactor.com/\");\r\n\t\t\r\n\t\tif( application.getNetworkManager().sslEnabled() )\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 443 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: https://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif( application.getNetworkManager().getServerPort() != 80 )\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1:\" + application.getNetworkManager().getServerPort());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tSystem.out.println(\"Web server running on: http://127.0.0.1\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Interactive console, type help for list of commands\");\r\n\t\t\r\n\t\tcontinueExecuting = true;\r\n\t\twhile( continueExecuting ){\r\n\r\n\t\t\tSystem.out.print(\"> \");\r\n\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tString text = in.readLine();\r\n\t\t\t\t\r\n\t\t\t\tif( continueExecuting && text != null ){\r\n\t\t\t\t\tcontinueExecuting = runCommand( text.trim() );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(AsynchronousCloseException e){\r\n\t\t\t\t//Do nothing, this was likely thrown because the read-line command was interrupted during the shutdown operation\r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t\tcatch(Exception e){\r\n\t\t\t\t//Catch the exception and move on, the console listener must not be allowed to exit\r\n\t\t\t\tSystem.err.println(\"Operation Failed: \" + e.getMessage());\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\t\r\n\t\t\t\t//Stop listening. Otherwise, an exception loop may occur. \r\n\t\t\t\tcontinueExecuting = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void starting();",
"public void start() {}",
"public void start() {}",
"public void doPrimeObjective()\n {\n getLogger().info( \"hello from TerminalComponent\" );\n }",
"void afterRun();",
"public void working()\n {\n \n \n }",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"public void execute() {\n if(isModified() && worker==null) {\n try {\n worker = new AnalyzeToolWorker();\n } catch (IOException ex) {\n setExecuting(false);\n ErrorDialog.displayIOExceptionDialog(toolName+\" Error\", \"Tool initialization failed.\", ex);\n return;\n }\n worker.start();\n }\n }",
"public void run()\n\t\t{\n\t\t}",
"@Override\r\n\tpublic void tellStarting() {\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t\t// Not used here\r\n\t}",
"public void run() {\n }",
"@Override\n public void enterApplication(final ProgramParser.ApplicationContext ctx) {\n }",
"public void run() {\n\t\t\n\t}",
"private ThoseMain()\n {\n // Do nothing\n }",
"public void exec();",
"public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}",
"public void start() {\n\t\tSystem.out.println(\"parent method\");\n\t}",
"public void runtimeCallback(final x10.core.Rail<java.lang.String> args) {\r\n // call the original app-main method\r\n p1.main(args);\r\n }",
"public void startExecuting()\n {\n super.startExecuting();\n }",
"public void programStart() {\n System.out.println(\"Type 0 to end the program, type 1 to go to Login/Register.\");\n System.out.println(\"Type RESET to complete erase and reset the database.\");\n }",
"public void doMyStartupStuff() {\n System.out.println(\"init method\");\n }",
"@Override\n\tpublic void calling() {\n\t\tSystem.out.println(\"Calling using JIO...\");\n\t}",
"void run();",
"void run();",
"void run();"
] | [
"0.7243522",
"0.68535805",
"0.67648923",
"0.67648923",
"0.67648923",
"0.67272186",
"0.6720475",
"0.66982794",
"0.6678198",
"0.66652673",
"0.66652673",
"0.66652673",
"0.6658603",
"0.6622833",
"0.6614536",
"0.65755594",
"0.65366495",
"0.65286535",
"0.6508316",
"0.65081996",
"0.64930534",
"0.6458035",
"0.64423853",
"0.64423853",
"0.6439236",
"0.6427618",
"0.6417152",
"0.6411093",
"0.6393286",
"0.63733214",
"0.636457",
"0.6333127",
"0.63231575",
"0.63156176",
"0.6315409",
"0.6273702",
"0.6270812",
"0.6270786",
"0.6269349",
"0.6266091",
"0.6239439",
"0.623106",
"0.6218308",
"0.6217854",
"0.62072355",
"0.6193325",
"0.6192369",
"0.61749107",
"0.6156067",
"0.6152742",
"0.61383086",
"0.61370856",
"0.6132569",
"0.6132474",
"0.61322814",
"0.6124465",
"0.6117234",
"0.6109801",
"0.610451",
"0.60958105",
"0.6092063",
"0.6090751",
"0.60800695",
"0.6052918",
"0.60513246",
"0.6040204",
"0.6033459",
"0.60333735",
"0.6030637",
"0.6028873",
"0.6002846",
"0.59877306",
"0.5983989",
"0.5979493",
"0.597265",
"0.5966862",
"0.59580314",
"0.59580314",
"0.59574276",
"0.5952196",
"0.5945918",
"0.5942561",
"0.5942561",
"0.5938857",
"0.5938372",
"0.5936992",
"0.59317285",
"0.59312344",
"0.5929566",
"0.592719",
"0.5926621",
"0.5924202",
"0.5923551",
"0.5920055",
"0.5916857",
"0.5914682",
"0.5905222",
"0.5897571",
"0.5895149",
"0.5895149",
"0.5895149"
] | 0.0 | -1 |
Creates new form NewJFrame | public NewJFrame() {
initComponents();
//combo box
comboCompet.addItem("Séléction officielle");
comboCompet.addItem("Un certain regard");
comboCompet.addItem("Cannes Courts métrages");
comboCompet.addItem("Hors compétitions");
comboCompet.addItem("Cannes Classics");
//redimension
this.setResizable(false);
planning = new Planning();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public NewJFrame() {\n Connect();\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n \n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\n initComponents();\n }",
"public NewJFrame() {\r\n initComponents();\r\n }",
"public NewJFrame()\r\n {\r\n initComponents();\r\n }",
"public NewJFrame() {\n initComponents();\n\n }",
"public NewJFrame() {\n initComponents();\n IniciarTabla();\n \n \n // ingreso al githup \n \n }",
"public NewJFrame1() {\n initComponents();\n }",
"public NewJFrame1(NewJFrame n) {\n main = n;\n initComponents();\n winOpen();\n setLocationFrame();\n this.setVisible(true);\n }",
"public NewJFrame() {\n initComponents();\n // HidenLable.setVisible(false);\n }",
"public void newWindow() {\n\t\tJMenuTest frame1 = new JMenuTest();\n\t\tframe1.setBounds(100, 100, 400, 400);\n\t\tframe1.setVisible(true);\n\t}",
"public NewFrame() {\n initComponents();\n }",
"public xinxiNewJFrame() {\n initComponents();\n }",
"public NewJFrame1() {\n initComponents();\n\n dip();\n sh();\n }",
"public NewJFrame17() {\n initComponents();\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 NewJFrame() {\n \n this.setIconImage(img.getImage());\n initComponents();\n \n }",
"private JFrame showNewFrame(String title) {\n\t\tJFrame f = new JFrame();\n\t\tf.setTitle(title);\n\t\tf.setSize(400, 500);\n\t\tf.setLocationRelativeTo(null);\n\t\tf.setVisible(true);\n\t\treturn f;\n\t}",
"public NewJFrame() {\n initComponents();\n mcam.setLineWrap(true);\n\n }",
"public void createAndShowGUI() {\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n\tif(open==0)\n\t\tframe = new JFrame(\"Open a file\");\n\telse if(open ==1)\n\t\tframe = new JFrame(\"Save file as\");\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane =this ;\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n // frame.setSize(500,500);\n//\tvalidate();\n }",
"public static void createMainframe()\n\t{\n\t\t//Creates the frame\n\t\tJFrame foodFrame = new JFrame(\"USDA Food Database\");\n\t\t//Sets up the frame\n\t\tfoodFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfoodFrame.setSize(1000,750);\n\t\tfoodFrame.setResizable(false);\n\t\tfoodFrame.setIconImage(icon.getImage());\n\t\t\n\t\tGui gui = new Gui();\n\t\t\n\t\tgui.setOpaque(true);\n\t\tfoodFrame.setContentPane(gui);\n\t\t\n\t\tfoodFrame.setVisible(true);\n\t}",
"public static void main(String args[]) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n \n\n}\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n \n\n} catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame1.class\n.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n\n /* Create and display the form */\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new NewJFrame1().setVisible(true);\n }\n });\n }",
"private void makeFrame(){\n frame = new JFrame(\"Rebellion\");\n\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setSize(800,800);\n\n makeContent(frame);\n\n frame.setBackground(Color.getHSBColor(10,99,35));\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Firma digital\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLocationRelativeTo(null);\r\n\r\n //Create and set up the content pane.\r\n final FirmaDigital newContentPane = new FirmaDigital(frame);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Make sure the focus goes to the right component\r\n //whenever the frame is initially given the focus.\r\n frame.addWindowListener(new WindowAdapter() {\r\n public void windowActivated(WindowEvent e) {\r\n newContentPane.resetFocus();\r\n }\r\n });\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private void buildFrame() {\n String title = \"\";\n switch (formType) {\n case \"Add\":\n title = \"Add a new event\";\n break;\n case \"Edit\":\n title = \"Edit an existing event\";\n break;\n default:\n }\n frame.setTitle(title);\n frame.setResizable(false);\n frame.setPreferredSize(new Dimension(300, 350));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n frame.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n // sets the main form to be visible if the event form was exited\n // and not completed.\n mainForm.getFrame().setEnabled(true);\n mainForm.getFrame().setVisible(true);\n }\n });\n }",
"private JFrame getJFrame() {\n\t\tif (jFrame == null) {\n\t\t\tjFrame = new JFrame();\n\t\t\tjFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tjFrame.setJMenuBar(getJJMenuBar());\n\t\t\tjFrame.setSize(400, 200);\n\t\t\tjFrame.setContentPane(getJContentPane());\n\t\t\tjFrame.setTitle(\"Mancala\");\n\t\t}\n\t\treturn jFrame;\n\t}",
"private static void createGUI(){\r\n\t\tframe = new JFrame(\"Untitled\");\r\n\r\n\t\tBibtexImport bib = new BibtexImport();\r\n\t\tbib.setOpaque(true);\r\n\r\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tframe.setContentPane(bib);\r\n\t\tframe.setJMenuBar(bib.menu);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}",
"private static void createAndShowGUI() {\n\t\tJFrame window = MainWindow.newInstance();\n\t\t\n //Display the window.\n window.pack();\n window.setVisible(true);\n \n }",
"public abstract void newWindow(ReFrame newFrame);",
"void doNew() {\r\n\t\t\r\n\t\tNewResizeDialog dlg = new NewResizeDialog(labels, true);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.success) {\r\n\t\t\tsetTitle(TITLE);\r\n\t\t\tcreatePlanetSurface(dlg.width, dlg.height);\r\n\t\t\trenderer.repaint();\r\n\t\t\tsaveSettings = null;\r\n\t\t\tundoManager.discardAllEdits();\r\n\t\t\tsetUndoRedoMenu();\r\n\t\t}\r\n\t}",
"private static void createAndShowGUI() {\n\t\t/*\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorldSwing\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the ubiquitous \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World\");\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n */\n\t\tfinal AC_GUI currentGUI = new AC_GUI();\n\t\t//currentGUI.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tcurrentGUI.setSize(900, 800);\n\t\t// make the frame full screen\n\t\t// currentGUI.setExtendedState(JFrame.MAXIMIZED_BOTH);\n }",
"private static void createAndShowGUI()\r\n {\r\n JFrame frame = new JFrame(\"ChangingTitleFrame Application\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(new FramePanel(frame).getPanel());\r\n frame.pack();\r\n frame.setLocationRelativeTo(null);\r\n frame.setVisible(true);\r\n }",
"private JFrame createFrame() {\n\t\tJFrame frmProfessorgui = new JFrame();\n\t\tfrmProfessorgui.getContentPane().setBackground(new Color(153, 204, 204));\n\t\tfrmProfessorgui.getContentPane().setForeground(SystemColor.desktop);\n\t\tfrmProfessorgui.setTitle(\"ProfessorGUI\");\n\t\tfrmProfessorgui.setBounds(100, 100, 600, 475);\n\t\tfrmProfessorgui.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmProfessorgui.getContentPane().setLayout(null);\n\n\n\t\t//List, ScrollPane and Button Components\n\t\tmodel = new DefaultListModel();\n\t\tsetList();\n\t\tlist = new JList(model);\n\t\tlist.setBackground(new Color(255, 245, 238));\n\t\tJScrollPane scrollPane = new JScrollPane(list, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tscrollPane.setBounds(10, 46, 293, 365);\n\t\tfrmProfessorgui.getContentPane().add(scrollPane);\n\n\t\tlist.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tlist.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\n\t\tcourse = new JButton(\"View Course\");\n\t\tcourse.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcourse.addActionListener(new profMainListener());\n\n\t\tcourse.setBounds(390, 207, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(course);\n\n\t\tcreate = new JButton(\"Create Course\");\n\t\tcreate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tcreate.setBounds(390, 250, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(create);\n\t\tcreate.addActionListener(new profMainListener());\n\n\t\tactivate = new JButton(\"Activate\");\n\t\tactivate.addActionListener(new profMainListener()); \n\t\tactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tactivate.setBounds(390, 296, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(activate);\n\n\t\tdeactivate = new JButton(\"Deactivate\");\n\t\tdeactivate.addActionListener(new profMainListener());\n\n\t\tdeactivate.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\n\t\tdeactivate.setBounds(390, 340, 126, 22);\n\t\tfrmProfessorgui.getContentPane().add(deactivate);\n\n\n\t\t//Aesthetic Pieces\n\t\tJLabel lblCourseList = new JLabel(\"Course List\");\n\t\tlblCourseList.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblCourseList.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblCourseList.setBounds(21, 11, 261, 24);\n\t\tfrmProfessorgui.getContentPane().add(lblCourseList);\n\n\t\tJLabel lblWelcome = new JLabel(\"Welcome\");\n\t\tlblWelcome.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblWelcome.setFont(new Font(\"Dialog\", Font.BOLD, 16));\n\t\tlblWelcome.setBounds(357, 49, 191, 46);\n\t\tfrmProfessorgui.getContentPane().add(lblWelcome);\n\n\t\tJLabel lblNewLabel = new JLabel(prof.getFirstName() + \" \" + prof.getLastName());\n\t\tlblNewLabel.setFont(new Font(\"Dialog\", Font.ITALIC, 16));\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(335, 82, 239, 40);\n\t\tfrmProfessorgui.getContentPane().add(lblNewLabel);\n\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBorder(new LineBorder(new Color(128, 128, 128), 2, true));\n\t\tpanel.setBackground(new Color(204, 255, 255));\n\t\tpanel.setBounds(367, 178, 174, 213);\n\t\tfrmProfessorgui.getContentPane().add(panel);\n\n\t\treturn frmProfessorgui;\n\t}",
"public static void showNew() {\n\t\tif (DIALOG == null) {\n\t\t\tDIALOG = new NewDialog();\n\t\t}\n\t\tDIALOG.setVisible(true);\n\t\tDIALOG.toFront();\n\t}",
"private static void createAndShowGUI() {\n\n frame = new JFrame(messages.getString(\"towers.of.hanoi\"));\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n addComponentsToPane(frame.getContentPane());\n frame.pack();\n frame.setSize(800, 600);\n frame.setVisible(true);\n }",
"private void makeGUI()\n {\n mainFrame = new JFrame();\n mainFrame.setPreferredSize(new Dimension(750,400));\n aw = new AccountWindow();\n mainFrame.add(aw);\n mainFrame.setVisible(true);\n mainFrame.pack();\n }",
"private static void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"WAR OF MINE\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new Gameframe();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.setSize(800,1000);\n frame.setVisible(true);\n }",
"public NewJFrame() {\n initComponents();\n audioObject = new PlayAudio();\n setExtendedState(MAXIMIZED_BOTH);\n initTracks(); \n this.setVisible(true);\n jDialog1.setVisible(true);\n }",
"private static void createAndShowGUI() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame();\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setSize(500, 500);\n\t\tframe.setLocationRelativeTo(null);\n\n\t\tResultLeftView view = new ResultLeftView();\n\t\tframe.setContentPane(view);\n\t\t//Display the window.\n\t\tframe.setVisible(true);\n\t}",
"Frame createFrame();",
"static public void make() {\n\t\tif (window != null)\n\t\t\treturn;\n\n\t\twindow = new JFrame();\n\t\twindow.setTitle(\"Finecraft\");\n\t\twindow.setMinimumSize(new Dimension(500, 300));\n\t\twindow.setSize(asInteger(WINDOW_WIDTH), asInteger(WINDOW_HEIGHT));\n\t\twindow.setResizable(asBoolean(WINDOW_RESIZE));\n\t\twindow.setLocationRelativeTo(null);\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }",
"protected void do_mntmStartNewForm_actionPerformed(ActionEvent arg0) {\n\t\tthis.dispose();\n\t\tmain(null);\n\t}",
"static void abrir() {\n frame = new ModificarPesos();\n //Create and set up the window.\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set up the content pane.\n frame.addComponentsToPane(frame.getContentPane());\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"@Override\n\tpublic void create() {\n\t\twithdrawFrame = new JFrame();\n\t\tthis.constructContent();\n\t\twithdrawFrame.setSize(800,500);\n\t\twithdrawFrame.show();\n\t\twithdrawFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t}",
"public createNew(){\n\t\tsuper(\"Create\"); // title for the frame\n\t\t//layout as null\n\t\tgetContentPane().setLayout(null);\n\t\t//get the background image\n\t\ttry {\n\t\t\tbackground =\n\t\t\t\t\tnew ImageIcon (ImageIO.read(getClass().getResource(\"Wallpaper.jpg\")));\n\t\t}//Catch for file error\n\t\tcatch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tJOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"ERROR: File(s) Not Found\\n Please Check Your File Format\\n\"\n\t\t\t\t\t\t\t+ \"and The File Name!\");\n\t\t}\n\t\t//Initialize all of the compenents \n\t\tlblBackground = new JLabel (background);\n\t\tlblTitle = new JLabel (\"Create Menu\");\n\t\tlblTitle.setFont(new Font(\"ARIAL\",Font.ITALIC, 30));\n\t\tlblName = new JLabel(\"Please Enter Your First Name.\");\n\t\tlblLastName= new JLabel (\"Please Enter Your Last Name.\");\n\t\tlblPhoneNumber = new JLabel (\"Please Enter Your Phone Number.\");\n\t\tlblAddress = new JLabel (\"Please Enter Your Address.\");\n\t\tlblMiddle = new JLabel (\"Please Enter Your Middle Name (Optional).\");\n\t\tbtnCreate = new JButton (\"Create\");\n\t\tbtnBack = new JButton (\"Back\");\n\t\t//set the font\n\t\tlblName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblLastName.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblPhoneNumber.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblAddress.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\t\tlblMiddle.setFont(new Font(\"Times New Roman\",Font.BOLD, 18));\n\n\t\t//add action listener\n\t\tbtnCreate.addActionListener(this);\n\t\tbtnBack.addActionListener(this);\n\t\t//set bounds for all the components\n\t\tbtnCreate.setBounds(393, 594, 220, 36);\n\t\ttxtMiddle.setBounds(333, 249, 342, 36);\n\t\ttxtName.setBounds(333, 158, 342, 36);\n\t\ttxtLastName.setBounds(333, 339, 342, 36);\n\t\ttxtPhoneNumber.setBounds(333, 429, 342, 36);\n\t\ttxtAddress.setBounds(333, 511, 342, 36);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblMiddle.setBounds(333, 201, 342, 36);\n\t\tlblName.setBounds(387, 110, 239, 36);\n\t\tlblLastName.setBounds(387, 297, 239, 36);\n\t\tlblPhoneNumber.setBounds(369, 387, 269, 36);\n\t\tlblAddress.setBounds(393, 477, 215, 30);\n\t\tbtnBack.setBounds(6,716,64,36);\n\t\tlblTitle.setBounds(417, 0, 182, 50);\n\t\tlblBackground.setBounds(0, 0, 1000, 1000);\n\t\t//add components to frame\n\t\tgetContentPane().add(btnCreate);\n\t\tgetContentPane().add(txtMiddle);\n\t\tgetContentPane().add(txtLastName);\n\t\tgetContentPane().add(txtAddress);\n\t\tgetContentPane().add(txtPhoneNumber);\n\t\tgetContentPane().add(txtName);\n\t\tgetContentPane().add(lblMiddle);\n\t\tgetContentPane().add(lblLastName);\n\t\tgetContentPane().add(lblAddress);\n\t\tgetContentPane().add(lblPhoneNumber);\n\t\tgetContentPane().add(lblName);\n\t\tgetContentPane().add(btnBack);\n\t\tgetContentPane().add(lblTitle);\n\t\tgetContentPane().add(lblBackground);\n\t\t//set size, visible and action for close\n\t\tsetSize(1000,1000);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t}",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new SplitPaneDemo2();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public static JFrame makeFrame (String title)\n {\n\t// make the frame and put a new TextOutputPanel in it\n\tJFrame frame = new JFrame (title);\n\tfinal TextOutputPanel panel = new TextOutputPanel (frame);\n\tframe.setContentPane (panel);\n\tframe.setDefaultCloseOperation (frame.HIDE_ON_CLOSE);\n\n\t// make the menubar for the frame\n\tJMenuBar menuBar = new JMenuBar ();\n\tframe.setJMenuBar (menuBar);\n\n\tJMenu fileMenu = new JMenu (\"File\");\n\tmenuBar.add (fileMenu);\n\tfileMenu.add (new AbstractAction (\"Save As...\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.saveAs ();\n\t }\n\t});\n\n\tJMenu editMenu = new JMenu (\"Edit\");\n\tmenuBar.add (editMenu);\n\teditMenu.add (new AbstractAction (\"Copy\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.copy ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Select All\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.myDocumentPane.selectAll ();\n\t }\n\t});\n\teditMenu.add (new AbstractAction (\"Clear\")\n\t{\n\t public void actionPerformed (ActionEvent event)\n\t {\n\t\tpanel.clear ();\n\t }\n\t});\n\n\tframe.pack ();\n\treturn frame;\n }",
"public NewRoomFrame() {\n initComponents();\n }",
"public JFrameConcatenar()\n {\n initComponents();\n }",
"private static void createAndShowGUI() {\r\n //Disable boldface controls.\r\n UIManager.put(\"swing.boldMetal\", Boolean.FALSE); \r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"Exertion Scripting\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n //Create and set up the content pane.\r\n NetletEditor newContentPane = new NetletEditor(null);\r\n newContentPane.setOpaque(true); //content panes must be opaque\r\n frame.setContentPane(newContentPane);\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"private JFrame makeFrame(String title, int width, int height, int close) {\r\n JFrame frame = new JFrame();\r\n frame.setTitle(title);\r\n frame.setLocation(700, 150);\r\n frame.setMinimumSize(new Dimension(width, height));\r\n frame.setResizable(false);\r\n frame.setDefaultCloseOperation(close);\r\n frame.setLayout(new BorderLayout());\r\n return frame;\r\n }",
"private void todoChooserGui() {\r\n jframe = makeFrame(\"My Todo List\", 500, 800, JFrame.EXIT_ON_CLOSE);\r\n panelSelectFile = makePanel(jframe, BorderLayout.CENTER,\r\n \"Choose a Todo\", 150, 50, 200, 25);\r\n JButton clickRetrieve = makeButton(\"retrieveTodo\", \"Retrieve A TodoList\",\r\n 175, 100, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickRetrieve);\r\n JTextField textFieldName = makeJTextField(1, 100, 150, 150, 25);\r\n textFieldName.setName(\"Name\");\r\n panelSelectFile.add(textFieldName);\r\n JButton clickNew = makeButton(\"newTodo\", \"Make New TodoList\",\r\n 250, 150, 150, 25, JComponent.CENTER_ALIGNMENT, \"cli.wav\");\r\n panelSelectFile.add(clickNew);\r\n panelSelectFile.setBackground(Color.WHITE);\r\n jframe.setBackground(Color.PINK);\r\n jframe.setVisible(true);\r\n }",
"public void makeNew() {\n\t\towner.switchMode(WindowMode.ITEMCREATE);\n\t}",
"private static void createAndShowGUI() {\n frame = new JFrame(\"Shopping Cart\");\n frame.setLocation(600,300);\n frame.setPreferredSize(new Dimension(800,700));\n frame.setResizable(false);\n //frame.setLayout(new GridLayout(2,2,5,5));\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n JComponent newContentPane = new shoppingCartTableGui();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n //Display the window.\n frame.pack();\n \n // inserting the login dialogPane here\n loginPane newLoginPane = new loginPane(frame);\n clientID = newLoginPane.getClientID();\n }",
"private void initialize() {\n\t\tfrmAddForm = new JFrame();\n\t\tfrmAddForm.setTitle(\"Add Form\");\n\t\tfrmAddForm.setBounds(100, 100, 450, 300);\n\t\tfrmAddForm.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmAddForm.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel addFormTitle = new JLabel(\"Add Form\");\n\t\taddFormTitle.setFont(new Font(\"Tahoma\", Font.BOLD, 19));\n\t\taddFormTitle.setBounds(174, 10, 108, 23);\n\t\tfrmAddForm.getContentPane().add(addFormTitle);\n\t\t\n\t\tJLabel firstNameLabel = new JLabel(\"First Name:\");\n\t\tfirstNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tfirstNameLabel.setBounds(10, 72, 76, 13);\n\t\tfrmAddForm.getContentPane().add(firstNameLabel);\n\t\t\n\t\tJLabel lastNameLabel = new JLabel(\"Last Name:\");\n\t\tlastNameLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tlastNameLabel.setBounds(10, 120, 76, 13);\n\t\tfrmAddForm.getContentPane().add(lastNameLabel);\n\t\t\n\t\tJLabel ageLabel = new JLabel(\"Age:\");\n\t\tageLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tageLabel.setBounds(10, 165, 76, 13);\n\t\tfrmAddForm.getContentPane().add(ageLabel);\n\t\t\n\t\tfirstNameText = new JTextField();\n\t\tfirstNameText.setToolTipText(\"Enter first name.\");\n\t\tfirstNameText.setBounds(146, 70, 96, 19);\n\t\tfrmAddForm.getContentPane().add(firstNameText);\n\t\tfirstNameText.setColumns(10);\n\t\t\n\t\tlastNameText = new JTextField();\n\t\tlastNameText.setToolTipText(\"Enter last name.\");\n\t\tlastNameText.setColumns(10);\n\t\tlastNameText.setBounds(146, 118, 96, 19);\n\t\tfrmAddForm.getContentPane().add(lastNameText);\n\t\t\n\t\tageText = new JTextField();\n\t\tageText.setToolTipText(\"Enter age.\");\n\t\tageText.setColumns(10);\n\t\tageText.setBounds(146, 163, 96, 19);\n\t\tfrmAddForm.getContentPane().add(ageText);\n\t\t\n\t\tJLabel statusLabel = new JLabel(\"\");\n\t\tstatusLabel.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\tstatusLabel.setBounds(294, 121, 122, 23);\n\t\tfrmAddForm.getContentPane().add(statusLabel);\n\t\t\n\t\tJButton addButton = new JButton(\"Add\");\n\t\taddButton.setFont(new Font(\"Tahoma\", Font.BOLD, 12));\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// holds the values from text fields later\n\t\t\t\t\tString firstName = \"\";\n\t\t\t\t\tString lastName = \"\";\n\t\t\t\t\tint age = 0;\n\t\t\t\t\t\n\t\t\t\t\tString user = \"root\";\n\t\t\t\t\tString password = \"\";\n\t\t\t\t\tConnection con = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/test\", user, password);\n\t\t\t\t\tStatement stmnt = con.createStatement();\n\t\t\t\t\t\n\t\t\t\t\t// get the values from text field\n\t\t\t\t\tfirstName = firstNameText.getText();\n\t\t\t\t\tlastName = lastNameText.getText();\n\t\t\t\t\tage = Integer.parseInt(ageText.getText());\n\t\t\t\t\t\n\t\t\t\t\tString sql = \"insert into test (firstName, lastName, age)\" + \n\t\t\t\t\t\"values (\" + \"'\" + firstName + \"',\" + \"'\" + lastName + \"',\" + \"'\" + age + \"')\"; \n\t\t\t\t\t\n\t\t\t\t\tif (stmnt.execute(sql) == false) {\n\t\t\t\t\t\t//System.out.println(\"Record added.\");\n\t\t\t\t\t\tString message = \"Record added.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t\tfirstNameText.setText(null);\n\t\t\t\t\t\tlastNameText.setText(null);\n\t\t\t\t\t\tageText.setText(null);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\t//System.out.println(\"Recorded failed to add.\");\n\t\t\t\t\t\tString message = \"Failed to add record.\";\n\t\t\t\t\t\tstatusLabel.setText(message);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (Exception a) {\n\t\t\t\t\ta.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\taddButton.setToolTipText(\"Add record to database.\");\n\t\taddButton.setBounds(157, 211, 85, 42);\n\t\tfrmAddForm.getContentPane().add(addButton);\n\t\t\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tfrmAddForm.setVisible(false);\n\t\t\t\tMenu menu = new Menu();\n\t\t\t\tmenu.run();\n\t\t\t}\n\t\t});\n\t\tbackButton.setBounds(0, 0, 85, 21);\n\t\tfrmAddForm.getContentPane().add(backButton);\n\t}",
"public static void buildFrame() {\r\n\t\t// Make sure we have nice window decorations\r\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\r\n\t\t\r\n\t\t// Create and set up the window.\r\n\t\t//ParentFrame frame = new ParentFrame();\r\n\t\tMediator frame = new Mediator();\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t// Display the window\r\n\t\tframe.setVisible(true);\r\n\t}",
"public static void createAndShowMatrix() {\n JFrame frame = new JFrame(\"Results Matrix\");\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n frame.getContentPane().add(new ResultsMatrix().getRootPanel());\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tframe = new JFrame(\"Captura 977R\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Set up the content pane.\r\n\t\taddComponentsToPane(frame.getContentPane());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tDimension windowSize = frame.getSize();\r\n\r\n\t\tint windowX = Math.max(0, (screenSize.width - windowSize.width) / 2);\r\n\t\tint windowY = Math.max(0, (screenSize.height - windowSize.height) / 2);\r\n\r\n\t\tframe.setLocation(windowX, windowY); // Don't use \"f.\" inside\r\n\t\t// constructor.\r\n\t\tframe.setVisible(true);\r\n\t}",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"FEEx v. \"+VERSION);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Main p = new Main();\n p.addComponentToPane(frame.getContentPane());\n\n frame.addWindowListener(new java.awt.event.WindowAdapter() {\n @Override\n public void windowClosing(java.awt.event.WindowEvent windowEvent) {\n \tstopPolling();\n \tstopMPP();\n p.port.close();\n Utils.storeSizeAndPosition(frame);\n }\n });\n \n //Display the window.\n frame.pack();\n Utils.restoreSizeAndPosition(frame);\n frame.setVisible(true);\n }",
"protected void createInternalFrame() {\n\t\tJInternalFrame frame = new JInternalFrame();\n\t\tframe.setVisible(true);\n\t\tframe.setClosable(true);\n\t\tframe.setResizable(true);\n\t\tframe.setFocusable(true);\n\t\tframe.setSize(new Dimension(300, 200));\n\t\tframe.setLocation(100, 100);\n\t\tdesktop.add(frame);\n\t\ttry {\n\t\t\tframe.setSelected(true);\n\t\t} catch (java.beans.PropertyVetoException e) {\n\t\t}\n\t}",
"public void createframe(String cid) {\n\t\tviewframe = new JFrame();\n\t\tviewconsumer(cid);\n\t\tviewframe.setTitle(\"Search result\");\n\t\tviewframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tviewframe.setLayout(new BorderLayout()); \n\t\tviewframe.add(viewpage);\n\t\tviewframe.setVisible(true); \n\t\tviewframe.setSize(500, 400);\n\t\tviewframe.setResizable(true);\n\t}",
"public static void main(String args[]) throws IOException {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (InstantiationException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(NewJFrame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n //</editor-fold>\n /* Create and display the form */\n\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n /*NewJFrame*/ clientFrame = new NewJFrame();\n clientFrame.setLocationRelativeTo(null);\n clientFrame.setVisible(true);\n clientFrame.OutputLogArea.setText(\"Welcome to DDND!\\nPlease enter your username in the log area followed by a class:\\n- cleric\\n- barbarian\\n- mage\\n- rogue\");\n //try to login to server\n\n //socket.leaveGroup(address);\n //socket.close(); \n }\n });\n }",
"private static void createAndShowGUI() {\r\n //Make sure we have nice window decorations.\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n JDialog.setDefaultLookAndFeelDecorated(true);\r\n\r\n //Create and set up the window.\r\n JFrame frame = new JFrame(\"SplitPaneDemo\");\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n SplitPaneDemo splitPaneDemo = new SplitPaneDemo();\r\n frame.getContentPane().add(splitPaneDemo.getSplitPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public QLHocSinhJFrame() {\n initComponents();\n }",
"public Hwk2JFrame() {\n initComponents();\n }",
"public void createAndShowGUI() {\n JFrame frame = new JFrame();\n frame.setSize(500, 500);\n frame.setTitle(\"Face Viewer\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); \n FaceComponent component = new FaceComponent();\n frame.add(component);\n frame.setVisible(true);\n }",
"private void createAndShowGUI()\r\n {\r\n //Create and set up the window.\r\n frame = new JFrame();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.getContentPane().add(this);\r\n frame.addKeyListener(this);\r\n\r\n //Display the window.\r\n this.setPreferredSize(new Dimension(\r\n BLOCKSIZE * ( board.getNumCols() + 3 + nextUp.getNumCols() ),\r\n BLOCKSIZE * ( board.getNumRows() + 2 )\r\n ));\r\n\r\n frame.pack();\r\n frame.setVisible(true);\r\n }",
"public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }",
"private void initialize() {\r\n\r\n\t\tfrmHistoriasDeZagas = new JFrame();\r\n\t\tfrmHistoriasDeZagas.getContentPane().setBackground(Color.BLACK);\r\n\t\tfrmHistoriasDeZagas.setTitle(\"Historias de Zagas\");\r\n\t\tfrmHistoriasDeZagas.setBackground(Color.WHITE);\r\n\t\tfrmHistoriasDeZagas\r\n\t\t\t\t.setIconImage(Toolkit\r\n\t\t\t\t\t\t.getDefaultToolkit()\r\n\t\t\t\t\t\t.getImage(\r\n\t\t\t\t\t\t\t\tArmas.class\r\n\t\t\t\t\t\t\t\t\t\t.getResource(\"/images/Historias de Zagas, logo.png\")));\r\n\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 462);\r\n\t\tfrmHistoriasDeZagas.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\r\n\t\tfrmHistoriasDeZagas.getContentPane().setLayout(null);\r\n\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\tfrmHistoriasDeZagas.setResizable(false);\r\n\r\n\t\tfinal JButton btnNewButton = new JButton(\"JUGAR\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnNewButton.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tJugar window = new Jugar();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnNewButton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnNewButton.setForeground(Color.WHITE);\r\n\t\tbtnNewButton.setBackground(new Color(139, 69, 19));\r\n\t\tbtnNewButton.setFont(mf.MyFont(0, 17));\r\n\t\tbtnNewButton.setBounds(10, 51, 414, 34);\r\n\t\tbtnNewButton.setBorderPainted(false);\r\n\t\tbtnNewButton.setContentAreaFilled(false);\r\n\t\tbtnNewButton.setFocusPainted(false);\r\n\t\tbtnNewButton.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton);\r\n\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\t\t\tbtnNewButton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\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\tfinal JButton btnCreadorDeNpcs = new JButton(\"CREADOR DE NPCs\");\r\n\t\tbtnCreadorDeNpcs.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tStartNPC.atrpoints = new AtributePoints();\r\n\t\t\t\tStartNPC.skpoints = new SkillPoints();\r\n\t\t\t\tStartNPC.atributos = new Atributes(StartNPC.atrpoints);\r\n\t\t\t\tStartNPC.combatSkills = new CombatSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowledgeSkills = new KnowledgeSkills(\r\n\t\t\t\t\t\tStartNPC.skpoints);\r\n\t\t\t\tStartNPC.magicSkills = new MagicSkills(StartNPC.skpoints);\r\n\t\t\t\tStartNPC.knowhowSkills = new KnowHowSkills(StartNPC.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStartNPC.character = new Characters(null, race, \"\", 0, 2, 10,\r\n\t\t\t\t\t\t20, 20, StartNPC.atributos, StartNPC.combatSkills,\r\n\t\t\t\t\t\tStartNPC.knowledgeSkills, StartNPC.magicSkills,\r\n\t\t\t\t\t\tStartNPC.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStartNPC window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new StartNPC();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDeNpcs.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\r\n\t\tbtnCreadorDeNpcs.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDeNpcs.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull, null, null));\r\n\t\tbtnCreadorDeNpcs.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDeNpcs.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDeNpcs.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDeNpcs.setBounds(10, 141, 414, 34);\r\n\t\tbtnCreadorDeNpcs.setBorderPainted(false);\r\n\t\tbtnCreadorDeNpcs.setContentAreaFilled(false);\r\n\t\tbtnCreadorDeNpcs.setFocusPainted(false);\r\n\t\tbtnCreadorDeNpcs.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDeNpcs);\r\n\r\n\t\tfinal JButton btnCreadorDePersonajes = new JButton(\r\n\t\t\t\t\"CREADOR DE PERSONAJES\");\r\n\t\tbtnCreadorDePersonajes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreadorDePersonajes.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreadorDePersonajes.setBorder(new BevelBorder(BevelBorder.RAISED,\r\n\t\t\t\tnull, null, null, null));\r\n\t\tbtnCreadorDePersonajes.setForeground(Color.WHITE);\r\n\t\tbtnCreadorDePersonajes.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreadorDePersonajes.setBorderPainted(false);\r\n\t\tbtnCreadorDePersonajes.setContentAreaFilled(false);\r\n\t\tbtnCreadorDePersonajes.setFocusPainted(false);\r\n\t\tbtnCreadorDePersonajes.setOpaque(false);\r\n\t\tbtnCreadorDePersonajes.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tcrear = \"pj\";\r\n\t\t\t\tStart.atrpoints = new AtributePoints();\r\n\t\t\t\tStart.skpoints = new SkillPoints();\r\n\t\t\t\tStart.atributos = new Atributes(Start.atrpoints);\r\n\t\t\t\tStart.combatSkills = new CombatSkills(Start.skpoints);\r\n\t\t\t\tStart.knowledgeSkills = new KnowledgeSkills(Start.skpoints);\r\n\t\t\t\tStart.magicSkills = new MagicSkills(Start.skpoints);\r\n\t\t\t\tStart.knowhowSkills = new KnowHowSkills(Start.skpoints);\r\n\t\t\t\tBlessing blessing = new Blessing(\"\");\r\n\t\t\t\tSetbacks setbacks = new Setbacks();\r\n\t\t\t\tPrivileges privileges = new Privileges();\r\n\t\t\t\tRace race = new Race(\"\");\r\n\t\t\t\tEquipment equipment = new Equipment();\r\n\t\t\t\tArrayList<String> posarm = new ArrayList<String>();\r\n\t\t\t\tPossesions posss = new Possesions(posarm);\r\n\t\t\t\tArmor armor = new Armor(\"\", \"\", false,false, posss);\r\n\t\t\t\tStart.character = new Characters(null, race, \"\", 0, 2, 10, 20,\r\n\t\t\t\t\t\t20, Start.atributos, Start.combatSkills,\r\n\t\t\t\t\t\tStart.knowledgeSkills, Start.magicSkills,\r\n\t\t\t\t\t\tStart.knowhowSkills, blessing, privileges, setbacks,\r\n\t\t\t\t\t\tfalse, armor, equipment,null,null,null,null,null,null,null,null,null,null,null,null, 0, 1,0,\"\",\"\",\"\");\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\tStart window;\r\n\t\t\t\ttry {\r\n\t\t\t\t\twindow = new Start();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreadorDePersonajes.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreadorDePersonajes.setBounds(10, 186, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreadorDePersonajes);\r\n\r\n\t\tfinal JButton btnCreditos = new JButton(\"CRÉDITOS\");\r\n\t\tbtnCreditos.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreditos.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnCreditos.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnCreditos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tCreditos window = new Creditos();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tfinal JButton btnHistoria = new JButton(\"GESTOR DE PARTIDAS\");\r\n\t\tbtnHistoria.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\r\n\t\t\t\tGestorMain window = new GestorMain();\r\n\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\r\n\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnHistoria.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnHistoria.setOpaque(false);\r\n\t\tbtnHistoria.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnHistoria.setForeground(Color.WHITE);\r\n\t\tbtnHistoria.setFont(mf.MyFont(0, 17));\r\n\t\tbtnHistoria.setFocusPainted(false);\r\n\t\tbtnHistoria.setContentAreaFilled(false);\r\n\t\tbtnHistoria.setBorderPainted(false);\r\n\t\tbtnHistoria.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnHistoria.setBackground(new Color(139, 69, 19));\r\n\t\tbtnHistoria.setBounds(10, 96, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnHistoria);\r\n\t\tbtnCreditos.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\t\t\t\tnull, null));\r\n\t\tbtnCreditos.setForeground(Color.WHITE);\r\n\t\tbtnCreditos.setBackground(new Color(139, 69, 19));\r\n\t\tbtnCreditos.setFont(mf.MyFont(0, 17));\r\n\t\tbtnCreditos.setBounds(10, 321, 414, 34);\r\n\t\tbtnCreditos.setBorderPainted(false);\r\n\t\tbtnCreditos.setContentAreaFilled(false);\r\n\t\tbtnCreditos.setFocusPainted(false);\r\n\t\tbtnCreditos.setOpaque(false);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnCreditos);\r\n\r\n\t\tfinal JButton button = new JButton(\"SALIR\");\r\n\t\tbutton.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer cerrar el programa?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\ttxtBienvenidoSeleccioneA = new JLabel();\r\n\t\ttxtBienvenidoSeleccioneA.setOpaque(false);\r\n\t\ttxtBienvenidoSeleccioneA.setForeground(Color.WHITE);\r\n\t\ttxtBienvenidoSeleccioneA.setBackground(new Color(205, 133, 63));\r\n\t\ttxtBienvenidoSeleccioneA.setBorder(null);\r\n\t\ttxtBienvenidoSeleccioneA.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\ttxtBienvenidoSeleccioneA.setFont(mf.MyFont(0, 13));\r\n\t\ttxtBienvenidoSeleccioneA\r\n\t\t\t\t.setText(\"Bienvenido, seleccione a qué servicio desea acceder.\");\r\n\t\ttxtBienvenidoSeleccioneA.setBounds(0, 0, 444, 40);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(txtBienvenidoSeleccioneA);\r\n\t\tbutton.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbutton.setOpaque(false);\r\n\t\tbutton.setForeground(Color.WHITE);\r\n\t\tbutton.setFont(mf.MyFont(0, 17));\r\n\t\tbutton.setFocusPainted(false);\r\n\t\tbutton.setContentAreaFilled(false);\r\n\t\tbutton.setBorderPainted(false);\r\n\t\tbutton.setBorder(new BevelBorder(BevelBorder.RAISED, null, null, null,\r\n\t\t\t\tnull));\r\n\t\tbutton.setBackground(new Color(139, 69, 19));\r\n\t\tbutton.setBounds(10, 366, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(button);\r\n\r\n\t\tfinal JButton btnAyuda = new JButton(\"AYUDA\");\r\n\t\tbtnAyuda.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tAyudaPrincipal window = new AyudaPrincipal();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\r\n\t\t\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAyuda.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAyuda.setOpaque(false);\r\n\t\tbtnAyuda.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAyuda.setForeground(Color.WHITE);\r\n\t\tbtnAyuda.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAyuda.setFocusPainted(false);\r\n\t\tbtnAyuda.setContentAreaFilled(false);\r\n\t\tbtnAyuda.setBorderPainted(false);\r\n\t\tbtnAyuda.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnAyuda.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAyuda.setBounds(10, 276, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAyuda);\r\n\r\n\t\tfinal JButton btnPerfil = new JButton(\"PERFIL\");\r\n\t\tif (Loader.usuario.equals(\"\")) {\r\n\t\t\tbtnPerfil.setEnabled(false);\r\n\r\n\t\t}\r\n\t\tbtnPerfil.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\ttry {\r\n\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\tPerfil window = new Perfil();\r\n\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t} catch (ClassNotFoundException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (InstantiationException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IllegalAccessException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (SQLException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnPerfil.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnPerfil.setOpaque(false);\r\n\t\tbtnPerfil.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnPerfil.setForeground(Color.WHITE);\r\n\t\tbtnPerfil.setFont(mf.MyFont(0, 17));\r\n\t\tbtnPerfil.setFocusPainted(false);\r\n\t\tbtnPerfil.setContentAreaFilled(false);\r\n\t\tbtnPerfil.setBorderPainted(false);\r\n\t\tbtnPerfil.setBorder(new BevelBorder(BevelBorder.RAISED, null, null,\r\n\r\n\t\tnull, null));\r\n\t\tbtnPerfil.setBackground(new Color(139, 69, 19));\r\n\t\tbtnPerfil.setBounds(10, 231, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnPerfil);\r\n\r\n\t\tfinal JButton btnAdministracin = new JButton(\"ADMINISTRACI\\u00D3N\");\r\n\t\tbtnAdministracin.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t\tAdministracionPrinc window = new AdministracionPrinc();\r\n\t\t\t\twindow.getFrame().setVisible(true);\r\n\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setVisible(false);\r\n\t\tbtnAdministracin.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio2.png\")));\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnAdministracin.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/botonesInicio.png\")));\r\n\t\tbtnAdministracin.setOpaque(false);\r\n\t\tbtnAdministracin.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbtnAdministracin.setForeground(Color.WHITE);\r\n\t\tbtnAdministracin.setFont(mf.MyFont(0, 17));\r\n\t\tbtnAdministracin.setFocusPainted(false);\r\n\t\tbtnAdministracin.setContentAreaFilled(false);\r\n\t\tbtnAdministracin.setBorderPainted(false);\r\n\t\tbtnAdministracin.setBorder(new BevelBorder(BevelBorder.RAISED, null,\r\n\t\t\t\tnull,\r\n\r\n\t\t\t\tnull, null));\r\n\t\tbtnAdministracin.setBackground(new Color(139, 69, 19));\r\n\t\tbtnAdministracin.setBounds(10, 321, 414, 34);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnAdministracin);\r\n\t\r\n\r\n\t\tfinal JButton btnNewButton_1 = new JButton(\"(Desconectar)\");\r\n\t\t\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\r\n\t\t\t\tint seleccion = JOptionPane.showOptionDialog(\r\n\t\t\t\t\t\tfrmHistoriasDeZagas,\r\n\t\t\t\t\t\t\"¿Estás seguro de querer desconectarte?.\",\r\n\t\t\t\t\t\t\"¡Atención!\", JOptionPane.YES_NO_OPTION,\r\n\t\t\t\t\t\tJOptionPane.PLAIN_MESSAGE, null, new Object[] { \"Si\",\r\n\t\t\t\t\t\t\t\t\"No\" }, // null para YES, NO y CANCEL\r\n\t\t\t\t\t\t\"opcion 1\");\r\n\t\t\t\tif (JOptionPane.YES_OPTION == seleccion) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tif (Loader.usuario.length() == 0) {\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\r\n\t\t\t\t\t\t} else {\r\n\r\n\t\t\t\t\t\t\tLoader.usuario = \"\";\r\n\t\t\t\t\t\t\tfrmHistoriasDeZagas.dispose();\r\n\t\t\t\t\t\t\tLoader window = new Loader();\r\n\t\t\t\t\t\t\twindow.getFrmHistoriasDeZagas().setVisible(true);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (InstantiationException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IllegalAccessException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (SQLException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.BLUE);\r\n\t\t\t}\r\n\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\r\n\t\t\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_1.setFont(mf.MyFont(3, 11));\r\n\t\tbtnNewButton_1.setFocusPainted(false);\r\n\t\tbtnNewButton_1.setContentAreaFilled(false);\r\n\t\tbtnNewButton_1.setBorderPainted(false);\r\n\t\tbtnNewButton_1.setForeground(Color.WHITE);\r\n\t\tbtnNewButton_1.setBounds(-10, 416, 125, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(btnNewButton_1);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(Loader.usuario);\r\n\t\tlblNewLabel_1.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_1.setFont(mf.MyFont(0, 11));\r\n\t\tlblNewLabel_1.setBounds(104, 416, 86, 17);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel_1);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"\");\r\n\t\tlblNewLabel.setIcon(new ImageIcon(Inicio.class\r\n\t\t\t\t.getResource(\"/images/background-inicio.jpg\")));\r\n\t\tlblNewLabel.setBackground(Color.BLACK);\r\n\t\tlblNewLabel.setBounds(0, 0, 444, 472);\r\n\t\tfrmHistoriasDeZagas.getContentPane().add(lblNewLabel);\r\n\t\tif (Loader.admin==1) {\r\n\t\t\tfrmHistoriasDeZagas.setBounds(100, 100, 439, 500);\r\n\t\t\tfrmHistoriasDeZagas.setLocationRelativeTo(null);\r\n\t\t\tbtnCreditos.setBounds(10, 365, 414, 34);\r\n\t\t\tbutton.setBounds(10, 410, 414, 34);\r\n\t\t\tlblNewLabel_1.setBounds(104, 455, 86, 17);\r\n\t\t\tbtnNewButton_1.setBounds(-10, 455, 125, 17);\r\n\t\t\tbtnAdministracin.setVisible(true);\r\n\t\t}\r\n\t}",
"private void initialize() {\r\n\t\tsetTitle(\"The Amazing Malaysia\");\r\n\t\tsetIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\tsetBounds(100, 100, 764, 636);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tgetContentPane().setLayout(null);\r\n\t\t//frmTheAmazingMalaysia = new JFrame();\r\n\t\t//frmTheAmazingMalaysia.setTitle(\"The Amazing Malaysia\");\r\n\t\t//frmTheAmazingMalaysia.setIconImage(Toolkit.getDefaultToolkit().getImage(MenuMWF.class.getResource(\"/A_3/icon.png\")));\r\n\t\t//frmTheAmazingMalaysia.setBounds(100, 100, 764, 636);\r\n\t\t//frmTheAmazingMalaysia.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"The Amazing Malaysia\");\r\n\t\tlblNewLabel.setForeground(Color.WHITE);\r\n\t\tlblNewLabel.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 35));\r\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel.setBounds(68, 0, 587, 56);\r\n\t\tgetContentPane().add(lblNewLabel);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/nl1.jpg\")));\r\n\t\tlblNewLabel_1.setBounds(36, 115, 179, 172);\r\n\t\tgetContentPane().add(lblNewLabel_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_1);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"New label\");\r\n\t\tlabel.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/r1.png\")));\r\n\t\tlabel.setBounds(290, 115, 179, 172);\r\n\t\tgetContentPane().add(label);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label);\r\n\t\t\r\n\t\tJLabel label_1 = new JLabel(\"New label\");\r\n\t\tlabel_1.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/rc1.jpg\")));\r\n\t\tlabel_1.setBounds(529, 115, 179, 172);\r\n\t\tgetContentPane().add(label_1);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_1);\r\n\t\t\r\n\t\tJLabel label_2 = new JLabel(\"New label\");\r\n\t\tlabel_2.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ll1.png\")));\r\n\t\tlabel_2.setBounds(290, 363, 179, 172);\r\n\t\tgetContentPane().add(label_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_2);\r\n\t\t\r\n\t\tJLabel label_3 = new JLabel(\"New label\");\r\n\t\tlabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/s1.jpg\")));\r\n\t\tlabel_3.setBounds(36, 363, 179, 172);\r\n\t\tgetContentPane().add(label_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_3);\r\n\t\t\r\n\t\tJLabel label_4 = new JLabel(\"New label\");\r\n\t\tlabel_4.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/ck1.png\")));\r\n\t\tlabel_4.setBounds(529, 363, 179, 172);\r\n\t\tgetContentPane().add(label_4);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(label_4);\r\n\t\t\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Nasi Lemak\");\r\n\t\tlblNewLabel_2.setForeground(Color.WHITE);\r\n\t\tlblNewLabel_2.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblNewLabel_2.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblNewLabel_2.setBounds(36, 287, 179, 56);\r\n\t\tgetContentPane().add(lblNewLabel_2);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_2);\r\n\t\t\r\n\t\tJLabel lblRendang = new JLabel(\"Rendang\");\r\n\t\tlblRendang.setForeground(Color.WHITE);\r\n\t\tlblRendang.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRendang.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRendang.setBounds(290, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRendang);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRendang);\r\n\t\t\r\n\t\tJButton btnExit = new JButton(\"Exit\");\r\n\t\tbtnExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnExit.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/e1.png\")));\r\n\t\tbtnExit.setHorizontalAlignment(SwingConstants.RIGHT);\r\n\t\tbtnExit.setForeground(Color.WHITE);\r\n\t\tbtnExit.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 15));\r\n\t\tbtnExit.setBackground(Color.BLACK);\r\n\t\tbtnExit.setBounds(608, 0, 138, 60);\r\n\t\tgetContentPane().add(btnExit);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(btnExit);\r\n\t\t\r\n\t\tJLabel lblRotiCanai = new JLabel(\"Roti Canai\");\r\n\t\tlblRotiCanai.setForeground(Color.WHITE);\r\n\t\tlblRotiCanai.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblRotiCanai.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblRotiCanai.setBounds(529, 287, 179, 56);\r\n\t\tgetContentPane().add(lblRotiCanai);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblRotiCanai);\r\n\t\t\r\n\t\tJLabel lblHighlightDishes = new JLabel(\"Highlight dishes: \");\r\n\t\tlblHighlightDishes.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblHighlightDishes.setForeground(Color.WHITE);\r\n\t\tlblHighlightDishes.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblHighlightDishes.setBounds(236, 46, 233, 56);\r\n\t\tgetContentPane().add(lblHighlightDishes);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblHighlightDishes);\r\n\t\t\r\n\t\tJLabel lblSatay = new JLabel(\"Satay\");\r\n\t\tlblSatay.setForeground(Color.WHITE);\r\n\t\tlblSatay.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblSatay.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblSatay.setBounds(36, 533, 179, 56);\r\n\t\tgetContentPane().add(lblSatay);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblSatay);\r\n\t\t\r\n\t\tJLabel lblCurryLaksa = new JLabel(\"Curry Laksa\");\r\n\t\tlblCurryLaksa.setForeground(Color.WHITE);\r\n\t\tlblCurryLaksa.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblCurryLaksa.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 27));\r\n\t\tlblCurryLaksa.setBounds(290, 533, 179, 56);\r\n\t\tgetContentPane().add(lblCurryLaksa);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblCurryLaksa);\r\n\t\t\r\n\t\tJLabel lblChar = new JLabel(\"Char Kuey Teow\");\r\n\t\tlblChar.setForeground(Color.WHITE);\r\n\t\tlblChar.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tlblChar.setFont(new Font(\"Times New Roman\", Font.BOLD | Font.ITALIC, 25));\r\n\t\tlblChar.setBounds(529, 533, 179, 56);\r\n\t\tgetContentPane().add(lblChar);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblChar);\r\n\t\t\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"New label\");\r\n\t\tlblNewLabel_3.setIcon(new ImageIcon(MenuMWF.class.getResource(\"/A_3/m2.png\")));\r\n\t\tlblNewLabel_3.setBounds(0, 0, 746, 589);\r\n\t\tgetContentPane().add(lblNewLabel_3);\r\n\t\t//frmTheAmazingMalaysia.getContentPane().add(lblNewLabel_3);\r\n\t}",
"public static void createAndShowGUI() {\n windowContent.add(\"Center\",p1);\n\n //Create the frame and set its content pane\n JFrame frame = new JFrame(\"GridBagLayoutCalculator\");\n frame.setContentPane(windowContent);\n\n // Set the size of the window to be big enough to accommodate all controls\n frame.pack();\n\n // Display the window\n frame.setVisible(true);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n }",
"public NewConnectionFrame() {\n initComponents();\n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Enter Character Name\");\r\n //frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.addWindowListener(new WindowListener()\r\n\t\t {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosed(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowClosing(WindowEvent arg0) {\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeactivated(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowDeiconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowIconified(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t } ) ;\r\n\r\n //Set up the content pane.\r\n addComponentsToPane(frame.getContentPane());\r\n\r\n //Display the window.\r\n frame.pack();\r\n frame.setSize(new Dimension(390,90)) ;\r\n frame.setVisible(true);\r\n frame.setResizable(false) ;\r\n }",
"public JInternalFrame createAndShow() {\r\n /** Create and set up the window. */\r\n JInternalFrame frame = new JInternalFrame(\"About\");\r\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\r\n \r\n frame.putClientProperty(\"JInternalFrame.isPallete\", Boolean.TRUE);\r\n\r\n /** Add content to the window. */\r\n frame.add(new About());\r\n \r\n frame.setClosable(true);\r\n\r\n /** Display the window. */\r\n frame.pack();\r\n frame.setVisible(true);\r\n \r\n return frame;\r\n }",
"private void createWindow() {\r\n\t\t// Create the picture frame and initializes it.\r\n\t\tthis.createAndInitPictureFrame();\r\n\r\n\t\t// Set up the menu bar.\r\n\t\tthis.setUpMenuBar();\r\n\r\n\t\t// Create the information panel.\r\n\t\t//this.createInfoPanel();\r\n\r\n\t\t// Create the scrollpane for the picture.\r\n\t\tthis.createAndInitScrollingImage();\r\n\r\n\t\t// Show the picture in the frame at the size it needs to be.\r\n\t\tthis.pictureFrame.pack();\r\n\t\tthis.pictureFrame.setVisible(true);\r\n\t\tpictureFrame.setSize(728,560);\r\n\t}",
"public MFrame() {\n this.setTitle(\"Sistema Punto de Venta\");\n this.setLocationRelativeTo(null);\n this.setSize(new Dimension(800,600));\n this.setResizable(true);\n this.setVisible(true);\n initComponents();\n this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n }",
"public NewJFrame() {\n super(\"Users\");\n //int klj = Integer.parseInt(jLabel2.getText());\n //this.klj=Integer.parseInt(jLabel2.getText());\n initComponents();\n// ds();\n show_user();\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Identification-Badge-icon.png\")));\n jButton6.setVisible(false);\n //klj=Integer.parseInt(jTextField1.getText());\n //klj=model.getValueAt(selectedRowIndex, 0).toString();\n// public int ui;\n// ui=Integer.parseInt(jTextField1.getText());\n ////jLabel2.setText(String.valueOf(ui));\n }",
"private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }",
"public FichaDeContactoJFrame() {\n initComponents();\n }",
"public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"private void buildFrame() {\n mainFrame = new JFrame();\n header = new JLabel(\"View Contact Information\");\n header.setHorizontalAlignment(JLabel.CENTER);\n header.setBorder(BorderFactory.createEmptyBorder(5, 0, 0, 0));\n \n infoTable.setFillsViewportHeight(true);\n infoTable.setShowGrid(true);\n infoTable.setVisible(true);\n scrollPane = new JScrollPane(infoTable);\n\n mainFrame.add(header, BorderLayout.NORTH);\n mainFrame.add(scrollPane, BorderLayout.CENTER);\n }",
"public frmNewArtist() {\n initComponents();\n lblID.setText(Controller.Agent.ManageController.getNewArtistID());\n lblGreeting.setText(\"Dear \"+iMuzaMusic.getLoggedUser().getFirstName()+\", please use the form below to add an artist to your ranks.\");\n \n }",
"private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"CsvPickerPane\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n CsvPickerPane demopane = new CsvPickerPane(frame);\n frame.getContentPane().add(demopane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\r\n\t\t// Create and set up the window.\r\n\t\tJFrame frame = new JFrame(\"MapReverse Data Collector\");\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Add content to the window.\r\n\t\tframe.add(new MapReverseDataCollector());\r\n\r\n\t\t// Display the window.\r\n\t\tframe.pack();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setVisible(true);\r\n\t}",
"private void initialize() {\r\n\t\tfrmCadastro = new JFrame();\r\n\t\tfrmCadastro.setFont(new Font(\"Dialog\", Font.PLAIN, 13));\r\n\t\tfrmCadastro.setTitle(\"Cadastro\");\r\n\t\tfrmCadastro.setBounds(100, 100, 410, 213);\r\n\t\tfrmCadastro.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tfrmCadastro.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewButton = new JButton(\"Aluno\");\r\n\t\tbtnNewButton.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton.setBounds(25, 65, 160, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton);\r\n\t\t\r\n\t\tJButton btnNewButton_1 = new JButton(\"Funcionario\");\r\n\t\tbtnNewButton_1.setFont(new Font(\"Tahoma\", Font.BOLD, 16));\r\n\t\tbtnNewButton_1.setBounds(217, 65, 152, 74);\r\n\t\tfrmCadastro.getContentPane().add(btnNewButton_1);\r\n\t\t\r\n\t\tJLabel lblQualCadastroDeseja = new JLabel(\"Qual cadastro deseja realizar?\");\r\n\t\tlblQualCadastroDeseja.setFont(new Font(\"Nirmala UI\", Font.BOLD | Font.ITALIC, 20));\r\n\t\tlblQualCadastroDeseja.setBounds(49, 20, 305, 34);\r\n\t\tfrmCadastro.getContentPane().add(lblQualCadastroDeseja);\r\n\r\n\t\t\r\n\t}",
"public NewJFrame(DonHang donHang) {\n initComponents();\n DhDieuKhien ddk = new DhDieuKhien(btnSubmit, jtfMaDon, jdcNgayLenDon, jtfTinhTrang, jtfNguoiMua, jtfMatHang, jpnSoLuong, jlbThanhTien,jtfGia);\n ddk.setView(donHang);\n ddk.setEvent();\n }",
"private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }",
"private void setFrame()\r\n\t{\r\n\t\tthis.setName(\"Project 3\");\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tthis.setSize(300, 300);\r\n\t\tthis.setLocation(650, 100);\r\n\t\tthis.setVisible(false);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.add(panel, BorderLayout.CENTER);\r\n\t}",
"public void createAndShowGUI(){\r\n\t\t//You want the jframe to close everything when it is closed\r\n\t\tjframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tif(maximized){\r\n\t\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\t\tsWidth = (int)screenSize.getWidth();\r\n\t\t\tsHeight = (int)screenSize.getHeight();\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\tjframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\t\tjframe.setUndecorated(true);\r\n\t\t\tjframe.setResizable(true);\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\tcWidth = sWidth;\r\n\t\t\tcHeight = sHeight;\r\n\t\t}else{\r\n\t\t\tjframe.setResizable(false);\r\n\t\t\t//Makes the jframe visible\r\n\t\t\tjframe.setVisible(true);\r\n\t\t\t//Sets the size of the jframe\r\n\t\t\tjframe.setSize(sWidth, sHeight);\r\n\t\t\t\r\n\t\t\t//I have no fucking idea why it needs this but it does\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(100);\r\n\t\t\t}catch(Exception e){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Set the content width\r\n\t\t\tcWidth = jframe.getContentPane().getWidth();\r\n\t\t\t//Set the content height\r\n\t\t\tcHeight = jframe.getContentPane().getHeight();\r\n\t\t}\r\n\r\n\t\t//Set up the game menu\r\n\t\tGameMenu gmenu = new GameMenu((Graphics2D)(jframe.getContentPane().getGraphics()),cWidth,cHeight, new Input(jframe));\r\n\t\t//Draw the main menu\r\n\t\tgmenu.drawMainMenu();\r\n\t}",
"private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }",
"private static void createAndShowMainWindow() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"HelloWorld - Swing\");\n frame.setSize(DEFAULT_WIDTH, DEFAULT_HEIGHT);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Add the \"Hello World\" label.\n JLabel label = new JLabel(\"Hello World!\");\n frame.getContentPane().setBackground(new Color(240, 240, 240));\n frame.getContentPane().add(label);\n\n //Display the window.\n frame.setVisible(true);\n }",
"private static void createAndShowGUI() {\n\t\tint width = 500, height = 300;\n\t\tJFrame frame = new JFrame(\"Text File Reader\");\n\t\tframe.setSize(new Dimension(width, height));\n\t\tframe.setContentPane(new MainExecutor(width, height)); /* Adds the panel to the frame */\n\n\t\t/* Centralizing the frame */\n\t\tDimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint upperLeftCornerX = (screenSize.width - frame.getWidth()) / 2;\n\t\tint upperLeftCornerY = (screenSize.height - frame.getHeight()) / 2;\n\t\tframe.setLocation(upperLeftCornerX, upperLeftCornerY);\n\t\tframe.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\n\t\t/* Shows the GUI */\n\t\tframe.setVisible(true);\n\t}",
"private void initialize(CurrentProfile newUser) {\n\t\tfrmSignUp = new JFrame();\n\t\tfrmSignUp.setResizable(false);\n\t\t//frmSignUp.setAlwaysOnTop(true);\n\t\tfrmSignUp.setTitle(\"SIGN UP (1/6)\");\n\t\tfrmSignUp.setBounds(100, 100, 557, 483);\n\t\tfrmSignUp.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tfrmSignUp.getContentPane().setLayout(null);\n\t\tfrmSignUp.setVisible(true);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setBounds(12, 12, 531, 432);\n\t\tfrmSignUp.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t//allfield[0] = new JTextField();\n\t\t//allfield[0].setBounds(165, 60, 246, 20);\n\t\t//panel.add(allfield[0]);\n\t\t\n\t\tJLabel lblName = new JLabel(\"NAME\");\n\t\tlblName.setBounds(33, 67, 46, 14);\n\t\tpanel.add(lblName);\n\t\t\n\t\tJLabel lblDob = new JLabel(\"D.O.B\");\n\t\tlblDob.setBounds(33, 121, 46, 14);\n\t\tpanel.add(lblDob);\n\t\t\n\t\tJLabel lblFatherName = new JLabel(\"FATHER'S NAME\");\n\t\tlblFatherName.setBounds(33, 167, 109, 14);\n\t\tpanel.add(lblFatherName);\n\t\t\n\t\tJLabel lblEmail = new JLabel(\"EMAIL\");\n\t\tlblEmail.setBounds(33, 222, 46, 14);\n\t\tpanel.add(lblEmail);\n\t\t\n\t\tJLabel lblSex = new JLabel(\"SEX\");\n\t\tlblSex.setBounds(33, 271, 46, 14);\n\t\tpanel.add(lblSex);\n\t\t\n\t\tJLabel lblPicture = new JLabel(\"PICTURE\");\n\t\tlblPicture.setBounds(33, 332, 74, 14);\n\t\tpanel.add(lblPicture);\n\t\t\n\t\tJLabel lblUid = new JLabel(\"UID\");\n\t\tlblUid.setBounds(384, 22, 107, 16);\n\t\tlblUid.setText(Integer.toString(newUser.uid));\n\t\tpanel.add(lblUid);\n\t\t\n\t\ttxtName1 = new JTextField();\n\t\ttxtName1.setBounds(158, 64, 163, 20);\n\t\tpanel.add(txtName1);\n\t\ttxtName1.setColumns(10);\n\t\t\n\t\tJRadioButton rdbtnMale = new JRadioButton(\"Male\");\n\t\trdbtnMale.setBounds(153, 267, 109, 23);\n\t\tpanel.add(rdbtnMale);\n\t\t\n\t\tJRadioButton rdbtnFemale = new JRadioButton(\"Female\");\n\t\trdbtnFemale.setBounds(356, 267, 109, 23);\n\t\tpanel.add(rdbtnFemale);\n\t\t\n\t\tButtonGroup group = new ButtonGroup();\n\t\tgroup.add(rdbtnMale);\n\t\tgroup.add(rdbtnFemale);\n\t\t\n\t\ttxtDate = new JTextField();\n\t\ttxtDate.setText(\"DD-MM-YYYY\");\n\t\ttxtDate.setBounds(158, 118, 333, 20);\n\t\tpanel.add(txtDate);\n\t\ttxtDate.setColumns(10);\n\t\t\n\t\ttxtFather = new JTextField();\n\t\ttxtFather.setBounds(160, 164, 331, 20);\n\t\tpanel.add(txtFather);\n\t\ttxtFather.setColumns(10);\n\t\t\n\t\ttxtEmail = new JTextField();\n\t\ttxtEmail.setBounds(158, 216, 333, 20);\n\t\tpanel.add(txtEmail);\n\t\ttxtEmail.setColumns(10);\n\t\t\n\t\tJButton btnSelect = new JButton(\"SELECT IMAGE\");\n\t\tbtnSelect.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\ttxtPhoto.setText(\"\");\n\t\t\t\tJFileChooser filechooser = new JFileChooser();\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\n\t\t\t\t \"Images\", \"jpg\",\"JPG\",\"GIF\", \"gif\",\"JPEG\",\"png\",\"PNG\");\n\t\t\t\tfilechooser.setFileFilter(filter);\n\t\t\t\t//ThumbNailView thumbsView = new ThumbNailView();\n\t\t\t\t//filechooser.setAccessory(new ImagePreview(filechooser));\n\t\t\t\tint returnVal = filechooser.showDialog(null,\"select an image\");\n\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION){\n\t\t\t\t\tfile = filechooser.getSelectedFile();\n\t\t\t\t\ttxtPhoto.setText(file.getPath());\n\t\t\t\t\tnewUser.picLoc=file.getPath();\n\t\t\t\t//\tnewUser.picName=file.getName();\n\t\t\t\t\tnewUser.picLoc=newUser.picLoc.replace(\"\\\\\", \"\\\\\\\\\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSelect.setBounds(374, 326, 124, 26);\n\t\tpanel.add(btnSelect);\n\t\t\n\t\tJButton btnNext = new JButton(\">>\");\n\t\tbtnNext.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t//String name,father,dob,email,photo;\n\t\t\t\t\n\t\t\t\tboolean f=false;\n\t\t\t\t\n\t\t\t\tdo{\n\t\t\t\t\tnewUser.nameFirst=txtName1.getText();\n\t\t\t\t\tnewUser.nameLast=txtName2.getText();\n\t\t\t\t\n\t\t\t\t\tnewUser.father=txtFather.getText();\n\t\t\t\t\tnewUser.dob=txtDate.getText();\n\t\t\t\t\tnewUser.email=txtEmail.getText();\n\t\t\t\t\tnewUser.picLoc=file.getPath();//.getAbsolutePath();\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnFemale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='f';\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(rdbtnMale.isSelected()){\n\t\t\t\t\t\tnewUser.sex='m';\n\t\t\t\t\t}\n\t\t\t\t\tif(newUser.nameFirst.length()!=0&&newUser.father.length()!=0&&newUser.dob.length()!=0&&newUser.email.length()!=0&&newUser.picLoc.length()!=0&&newUser.sex!=0){\n\t\t\t\t\t\tf=true;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"enter every details!!!\");\n\t\t\t\t\t}\n\t\t\t\t}while(!f);\n\t\t\t\t/*try {\n\t\t\t\t\tf=newUser.l1Tableinsert();\n\t\t\t\t} catch (SQLException e1) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\"+e1);\n\t\t\t\t}\n\t\t\t\tif(!f)\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"database connection error !!!\\t\");\n\t\t\t\t*/\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSignL2Panel window = new SignL2Panel(newUser);\n\t\t\t\t\t\t\twindow.frmSignUp2.setVisible(true);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tfrmSignUp.dispose();\n\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\tbtnNext.setBounds(433, 406, 98, 26);\n\t\tpanel.add(btnNext);\n\t\t\n\t\ttxtPhoto = new JTextField();\n\t\ttxtPhoto.setBounds(158, 329, 204, 20);\n\t\tpanel.add(txtPhoto);\n\t\ttxtPhoto.setColumns(10);\n\t\t\n\t\ttxtName2 = new JTextField();\n\t\ttxtName2.setBounds(333, 64, 158, 20);\n\t\tpanel.add(txtName2);\n\t\ttxtName2.setColumns(10);\n\t\t\n\t\t\n\t//\tpanel.setFocusTraversalPolicy(new FocusTraversalOnArray(new Component[]{textField, datePicker, lblName, lblDob, lblFatherName, lblEmail, lblSex, lblPicture, rdbtnMale, rdbtnFemale}));\n\t\t//allfield[0].setColumns(10);\n\t\t\n\t}"
] | [
"0.796484",
"0.7945892",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.7931828",
"0.79161865",
"0.78647804",
"0.7763172",
"0.76817715",
"0.7648401",
"0.75705475",
"0.7474783",
"0.7441117",
"0.7441071",
"0.7381736",
"0.7241864",
"0.7152069",
"0.7093774",
"0.70620316",
"0.7046038",
"0.7001353",
"0.6876144",
"0.68730295",
"0.6839108",
"0.67915845",
"0.668492",
"0.6595544",
"0.6589313",
"0.65322",
"0.65040064",
"0.6491264",
"0.64704055",
"0.6437297",
"0.64292765",
"0.64054906",
"0.64034057",
"0.63977015",
"0.63584495",
"0.62989986",
"0.62963825",
"0.62949085",
"0.62719226",
"0.6254402",
"0.6252156",
"0.62513596",
"0.62289715",
"0.6227046",
"0.62179726",
"0.62157875",
"0.62055755",
"0.62044173",
"0.6193791",
"0.6193326",
"0.6185335",
"0.61759156",
"0.61742026",
"0.6166754",
"0.6162535",
"0.61582863",
"0.6158079",
"0.6154202",
"0.6140779",
"0.61397743",
"0.6128629",
"0.6123062",
"0.61212313",
"0.6102532",
"0.60971355",
"0.60969436",
"0.6093347",
"0.6092785",
"0.6092317",
"0.60912186",
"0.6079369",
"0.6076933",
"0.6073533",
"0.60734314",
"0.6067038",
"0.60622036",
"0.6055792",
"0.60554165",
"0.6053233",
"0.6052203",
"0.60420203",
"0.6040655",
"0.60391635",
"0.6037928",
"0.6036092",
"0.60289246",
"0.60250616",
"0.6014197",
"0.60138345",
"0.6013661",
"0.60067236",
"0.6000157",
"0.5998613"
] | 0.71234715 | 21 |
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor. | @SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jInternalFrame1 = new javax.swing.JInternalFrame();
jInternalFrame2 = new javax.swing.JInternalFrame();
jSplitPane1 = new javax.swing.JSplitPane();
jSplitPane2 = new javax.swing.JSplitPane();
jDesktopPane1 = new javax.swing.JDesktopPane();
jDesktopPane2 = new javax.swing.JDesktopPane();
jPopupMenu1 = new javax.swing.JPopupMenu();
jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
jMenu1 = new javax.swing.JMenu();
jMenuItem1 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jOptionPane1 = new javax.swing.JOptionPane();
popupMenu1 = new java.awt.PopupMenu();
jScrollPane1 = new javax.swing.JScrollPane();
comboCompet = new javax.swing.JComboBox<>();
buttonShowProj = new javax.swing.JToggleButton();
buttonNewProj = new javax.swing.JToggleButton();
jInternalFrame1.setVisible(true);
javax.swing.GroupLayout jInternalFrame1Layout = new javax.swing.GroupLayout(jInternalFrame1.getContentPane());
jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
jInternalFrame1Layout.setHorizontalGroup(
jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jInternalFrame1Layout.setVerticalGroup(
jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 0, Short.MAX_VALUE)
);
jInternalFrame2.setVisible(true);
javax.swing.GroupLayout jInternalFrame2Layout = new javax.swing.GroupLayout(jInternalFrame2.getContentPane());
jInternalFrame2.getContentPane().setLayout(jInternalFrame2Layout);
jInternalFrame2Layout.setHorizontalGroup(
jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 191, Short.MAX_VALUE)
);
jInternalFrame2Layout.setVerticalGroup(
jInternalFrame2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 142, Short.MAX_VALUE)
);
javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);
jDesktopPane1.setLayout(jDesktopPane1Layout);
jDesktopPane1Layout.setHorizontalGroup(
jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
jDesktopPane1Layout.setVerticalGroup(
jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
javax.swing.GroupLayout jDesktopPane2Layout = new javax.swing.GroupLayout(jDesktopPane2);
jDesktopPane2.setLayout(jDesktopPane2Layout);
jDesktopPane2Layout.setHorizontalGroup(
jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
jDesktopPane2Layout.setVerticalGroup(
jDesktopPane2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 100, Short.MAX_VALUE)
);
jCheckBoxMenuItem1.setSelected(true);
jCheckBoxMenuItem1.setText("jCheckBoxMenuItem1");
jMenu1.setText("jMenu1");
jMenuItem1.setText("jMenuItem1");
jMenuItem2.setText("jMenuItem2");
popupMenu1.setLabel("popupMenu1");
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowClosed(java.awt.event.WindowEvent evt) {
formWindowClosed(evt);
}
public void windowClosing(java.awt.event.WindowEvent evt) {
formWindowClosing(evt);
}
});
comboCompet.setModel(new javax.swing.DefaultComboBoxModel<>());
comboCompet.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
comboCompetActionPerformed(evt);
}
});
buttonShowProj.setText("Afficher Projection");
buttonShowProj.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonShowProjActionPerformed(evt);
}
});
buttonNewProj.setText("Nouvelle projection");
buttonNewProj.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
buttonNewProjActionPerformed(evt);
}
});
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(44, 44, 44)
.addComponent(comboCompet, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(299, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(65, 308, Short.MAX_VALUE)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(buttonNewProj)
.addComponent(buttonShowProj))
.addGap(110, 110, 110))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(45, 45, 45)
.addComponent(comboCompet, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(24, 24, 24)
.addComponent(buttonShowProj)
.addGap(48, 48, 48)
.addComponent(buttonNewProj)
.addContainerGap(193, Short.MAX_VALUE))
);
pack();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Form() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n }",
"public frmRectangulo() {\n initComponents();\n }",
"public form() {\n initComponents();\n }",
"public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }",
"public FormListRemarking() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n \n }",
"public FormPemilihan() {\n initComponents();\n }",
"public GUIForm() { \n initComponents();\n }",
"public FrameForm() {\n initComponents();\n }",
"public TorneoForm() {\n initComponents();\n }",
"public FormCompra() {\n initComponents();\n }",
"public muveletek() {\n initComponents();\n }",
"public Interfax_D() {\n initComponents();\n }",
"public quanlixe_form() {\n initComponents();\n }",
"public SettingsForm() {\n initComponents();\n }",
"public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }",
"public Soru1() {\n initComponents();\n }",
"public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }",
"public soal2GUI() {\n initComponents();\n }",
"public EindopdrachtGUI() {\n initComponents();\n }",
"public MechanicForm() {\n initComponents();\n }",
"public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }",
"public quotaGUI() {\n initComponents();\n }",
"public BloodDonationGUI() {\n initComponents();\n }",
"public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }",
"public PatientUI() {\n initComponents();\n }",
"public myForm() {\n\t\t\tinitComponents();\n\t\t}",
"public Oddeven() {\n initComponents();\n }",
"public intrebarea() {\n initComponents();\n }",
"public Magasin() {\n initComponents();\n }",
"public RadioUI()\n {\n initComponents();\n }",
"public NewCustomerGUI() {\n initComponents();\n }",
"public ZobrazUdalost() {\n initComponents();\n }",
"public FormUtama() {\n initComponents();\n }",
"public p0() {\n initComponents();\n }",
"public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }",
"public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }",
"public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }",
"public form2() {\n initComponents();\n }",
"public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}",
"public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }",
"public kunde() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }",
"public MusteriEkle() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public frmMain() {\n initComponents();\n }",
"public DESHBORDPANAL() {\n initComponents();\n }",
"public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }",
"public frmVenda() {\n initComponents();\n }",
"public Botonera() {\n initComponents();\n }",
"public FrmMenu() {\n initComponents();\n }",
"public OffertoryGUI() {\n initComponents();\n setTypes();\n }",
"public JFFornecedores() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public EnterDetailsGUI() {\n initComponents();\n }",
"public vpemesanan1() {\n initComponents();\n }",
"public Kost() {\n initComponents();\n }",
"public FormHorarioSSE() {\n initComponents();\n }",
"public UploadForm() {\n initComponents();\n }",
"public frmacceso() {\n initComponents();\n }",
"public HW3() {\n initComponents();\n }",
"public Managing_Staff_Main_Form() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }",
"public sinavlar2() {\n initComponents();\n }",
"public P0405() {\n initComponents();\n }",
"public IssueBookForm() {\n initComponents();\n }",
"public MiFrame2() {\n initComponents();\n }",
"public Choose1() {\n initComponents();\n }",
"public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }",
"public GUI_StudentInfo() {\n initComponents();\n }",
"public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }",
"public JFrmPrincipal() {\n initComponents();\n }",
"public bt526() {\n initComponents();\n }",
"public Pemilihan_Dokter() {\n initComponents();\n }",
"public Ablak() {\n initComponents();\n }",
"@Override\n\tprotected void initUi() {\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}",
"public Pregunta23() {\n initComponents();\n }",
"public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }",
"public AvtekOkno() {\n initComponents();\n }",
"public busdet() {\n initComponents();\n }",
"public ViewPrescriptionForm() {\n initComponents();\n }",
"public Ventaform() {\n initComponents();\n }",
"public Kuis2() {\n initComponents();\n }",
"public CreateAccount_GUI() {\n initComponents();\n }",
"public POS1() {\n initComponents();\n }",
"public Carrera() {\n initComponents();\n }",
"public EqGUI() {\n initComponents();\n }",
"public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }",
"public nokno() {\n initComponents();\n }",
"public dokter() {\n initComponents();\n }",
"public ConverterGUI() {\n initComponents();\n }",
"public hitungan() {\n initComponents();\n }",
"public Modify() {\n initComponents();\n }",
"public frmAddIncidencias() {\n initComponents();\n }",
"public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }"
] | [
"0.7319037",
"0.7290621",
"0.7290621",
"0.7290621",
"0.7285163",
"0.72480375",
"0.72130316",
"0.7207723",
"0.7195822",
"0.7189463",
"0.7183591",
"0.71580946",
"0.7147075",
"0.70924276",
"0.70795405",
"0.7056352",
"0.6986753",
"0.6976759",
"0.6954958",
"0.69533294",
"0.6944831",
"0.69417095",
"0.6934517",
"0.6930924",
"0.6926761",
"0.69241685",
"0.6923851",
"0.69112706",
"0.6910913",
"0.689217",
"0.689193",
"0.6890017",
"0.68896353",
"0.6888143",
"0.68825865",
"0.6881063",
"0.6880471",
"0.6877822",
"0.68752986",
"0.6873734",
"0.68713146",
"0.6859294",
"0.6856707",
"0.685489",
"0.6854541",
"0.68543345",
"0.68526614",
"0.68516856",
"0.68516856",
"0.6842822",
"0.6836592",
"0.6836195",
"0.68277925",
"0.6827518",
"0.68260497",
"0.682339",
"0.68222433",
"0.6816619",
"0.6815844",
"0.68096834",
"0.6808133",
"0.68078655",
"0.6807532",
"0.68070555",
"0.6802426",
"0.6794083",
"0.679347",
"0.6791848",
"0.6790225",
"0.6788846",
"0.67884487",
"0.6787538",
"0.67819446",
"0.6766094",
"0.676505",
"0.6764832",
"0.67562455",
"0.6754961",
"0.67515653",
"0.6750421",
"0.6742601",
"0.673875",
"0.67371166",
"0.6735209",
"0.6732373",
"0.6727282",
"0.6726048",
"0.6719771",
"0.67154175",
"0.6714355",
"0.671359",
"0.67079127",
"0.670646",
"0.670331",
"0.6700197",
"0.669957",
"0.6698499",
"0.6697054",
"0.6693929",
"0.6690299",
"0.66896695"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
System.out.println("Enetr first linkedlist: ");
Node<Integer> list1 = takeInput();
System.out.println("Enter second linkedlist: ");
Node<Integer> list2 = takeInput();
list1 = merge2Sorted(list1, list2);
printList(list1);
} | {
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] | 0.0 | -1 |
The archive indexer manages the indexes task queue and performs archives indexing. | public interface ArchiveIndexer {
/**
* Async indexes all the archives that were marked.
* <p>Does not guarantee actual indexing, it is the responsibility of {@link ArchiveIndexer} to decide on indexing
* or even stop indexing in the middle.
*/
@Async(delayUntilAfterCommit = true)
void asyncIndexMarkedArchives();
/**
* Adds the given repo path to the archive indexing queue.
*/
@Lock
void markArchiveForIndexing(RepoPath searchPath);
/**
* Recursively adds the given repo path to the archive indexing queue.
* <p>Does not call {@link #asyncIndexMarkedArchives()}, this responsibility left to the client.
*
* @param baseRepoPath repository path to start indexing from
* @param indexAllRepos If true ignores the base repo path and index all the local/cache repositories
*/
@Async(delayUntilAfterCommit = true)
void recursiveMarkArchivesForIndexing(@Nullable RepoPath baseRepoPath, boolean indexAllRepos);
/**
* @param repoPath The repo path to check
* @return True if the binary file on this repo path is already indexed. False if doesn't exist of not indexed
*/
boolean isIndexed(RepoPath repoPath);
/**
* @param sha1 The sha1 of the binary to check
* @return True if the binary file for this checksum is already indexed. False if doesn't exist of not indexed
*/
boolean isIndexed(String sha1);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected File createIndexingArchive(String format, String jobId, JSONObject jobObject, String indexType, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tJSONObject json = IndexingHelper.getInstance(authorizationHeader).search(indexType, query, true, 0, indexingBatchSize, indexingScroll);\n\t\t\tint totalHits = json.getJSONObject(\"hits\").getInt(\"total\");\n\t\t\tString scrollId = json.getString(\"_scroll_id\");\n\t\t\tlogger.debug(String.format(\" [%s] Number of hits: %d\", jobId, totalHits));\n\t\t\tlogger.debug(String.format(\" [%s] Scroll ID: %s\", jobId, scrollId));\n\t\t\tint currentStartIndex = 0;\n\t\t\twhile (currentStartIndex < totalHits) {\n\t\t\t\tJSONArray hits = json.getJSONObject(\"hits\").getJSONArray(\"hits\");\n\n\t\t\t\tfor (int i = 0; i < hits.length(); i++) {\n\t\t\t\t\t// Get the hit\n\t\t\t\t\tJSONObject hit = hits.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = hit.getJSONObject(\"_source\").toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = hit.getString(\"_id\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: [ %5d ~ %5d ] / %5d\", jobId, currentStartIndex, currentStartIndex + indexingBatchSize - 1, totalHits));\n\n\t\t\t\t// Update the start index\n\t\t\t\tcurrentStartIndex += indexingBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * currentStartIndex / totalHits);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\n\t\t\t\tif (currentStartIndex < totalHits)\n\t\t\t\t\tjson = IndexingHelper.getInstance(authorizationHeader).scroll(indexType, indexingScroll, scrollId, true);\n\t\t\t}\n\n\t\t\t// Delete the scroll\n\t\t\tlogger.debug(String.format(\" [%s] Deleting Scroll ID\", jobId));\n\t\t\tIndexingHelper.getInstance(authorizationHeader).deleteScrollIndex(scrollId);\n\t\t\tlogger.debug(String.format(\" [%s] ... Completed\", jobId));\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}",
"@Lock\n void markArchiveForIndexing(RepoPath searchPath);",
"void initiateIndexing(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;",
"public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }",
"public static synchronized void indexDocuments(Queue<CodeIndexDocument> codeIndexDocumentQueue) throws IOException {\n // Index all documents and commit at the end for performance gains\n Directory dir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.INDEXLOCATION, Values.DEFAULTINDEXLOCATION)));\n Directory facetsdir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.FACETSLOCATION, Values.DEFAULTFACETSLOCATION)));\n\n Analyzer analyzer = new CodeAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n FacetsConfig facetsConfig = new FacetsConfig();\n SearchcodeLib scl = new SearchcodeLib();\n\n iwc.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n TaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(facetsdir);\n\n\n try {\n CodeIndexDocument codeIndexDocument = codeIndexDocumentQueue.poll();\n int count = 0;\n\n while (codeIndexDocument != null) {\n Singleton.getLogger().info(\"Indexing file \" + codeIndexDocument.getRepoLocationRepoNameLocationFilename());\n Singleton.decrementCodeIndexLinesCount(codeIndexDocument.getCodeLines());\n\n Document doc = new Document();\n // Path is the primary key for documents\n // needs to include repo location, project name and then filepath including file\n Field pathField = new StringField(\"path\", codeIndexDocument.getRepoLocationRepoNameLocationFilename(), Field.Store.YES);\n doc.add(pathField);\n\n // Add in facets\n facetsConfig = new FacetsConfig();\n facetsConfig.setIndexFieldName(Values.LANGUAGENAME, Values.LANGUAGENAME);\n facetsConfig.setIndexFieldName(Values.REPONAME, Values.REPONAME);\n facetsConfig.setIndexFieldName(Values.CODEOWNER, Values.CODEOWNER);\n\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getLanguageName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getRepoName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.REPONAME, codeIndexDocument.getRepoName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getCodeOwner()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.CODEOWNER, codeIndexDocument.getCodeOwner()));\n }\n\n String indexContents = Values.EMPTYSTRING;\n\n Singleton.getLogger().info(\"Splitting keywords\");\n indexContents += scl.splitKeywords(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Cleaning pipeline\");\n indexContents += scl.codeCleanPipeline(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Adding to spelling corrector\");\n scl.addToSpellingCorrector(codeIndexDocument.getContents()); // Store in spelling corrector\n\n indexContents = indexContents.toLowerCase();\n\n doc.add(new TextField(Values.REPONAME, codeIndexDocument.getRepoName(), Field.Store.YES));\n doc.add(new TextField(Values.FILENAME, codeIndexDocument.getFileName(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATION, codeIndexDocument.getFileLocation(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATIONFILENAME, codeIndexDocument.getFileLocationFilename(), Field.Store.YES));\n doc.add(new TextField(Values.MD5HASH, codeIndexDocument.getMd5hash(), Field.Store.YES));\n doc.add(new TextField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName(), Field.Store.YES));\n doc.add(new IntField(Values.CODELINES, codeIndexDocument.getCodeLines(), Field.Store.YES));\n doc.add(new TextField(Values.CONTENTS, indexContents, Field.Store.NO));\n doc.add(new TextField(Values.REPOLOCATION, codeIndexDocument.getRepoRemoteLocation(), Field.Store.YES));\n doc.add(new TextField(Values.CODEOWNER, codeIndexDocument.getCodeOwner(), Field.Store.YES));\n\n // Extra metadata in this case when it was last indexed\n doc.add(new LongField(Values.MODIFIED, new Date().getTime(), Field.Store.YES));\n\n writer.updateDocument(new Term(Values.PATH, codeIndexDocument.getRepoLocationRepoNameLocationFilename()), facetsConfig.build(taxoWriter, doc));\n\n count++;\n if (count >= 1000) { // Only index 1000 documents at most each time\n codeIndexDocument = null;\n }\n else {\n codeIndexDocument = codeIndexDocumentQueue.poll();\n }\n\n }\n }\n finally {\n Singleton.getLogger().info(\"Closing writers\");\n writer.close();\n taxoWriter.close();\n }\n }",
"public static void main(String[] args){\n invertedIndex(\"http://www.chenshiyu.com\");\n System.out.println(\"***************************************************\");\n search(\"Archives\");\n }",
"public static void main(String[] args) throws IOException {\n boolean passed = false;\r\n if (args.length > 0) {\r\n File f = new File(args[0]);\r\n System.out.println(\"Indexing images in \" + args[0]);\r\n if (f.exists() && f.isDirectory()) passed = true;\r\n }\r\n if (!passed) {\r\n System.out.println(\"No directory given as first argument.\");\r\n System.out.println(\"Run \\\"ParallelIndexing <directory>\\\" to index files of a directory.\");\r\n System.exit(1);\r\n }\r\n\r\n // use ParallelIndexer to index all photos from args[0] into \"index\" ... use 6 threads (actually 7 with the I/O thread).\r\n ParallelIndexer indexer = new ParallelIndexer(6, \"index\", args[0]);\r\n // use this to add you preferred builders. For now we go for CEDD, FCTH and AutoColorCorrelogram\r\n indexer.addExtractor(CEDD.class);\r\n indexer.addExtractor(FCTH.class);\r\n indexer.addExtractor(AutoColorCorrelogram.class);\r\n indexer.run();\r\n System.out.println(\"Finished indexing.\");\r\n }",
"public void setArchiveAnalyzerEnabled(boolean archiveAnalyzerEnabled) {\n this.archiveAnalyzerEnabled = archiveAnalyzerEnabled;\n }",
"public void indexFileOrDirectory(String fileName, String packageType) throws IOException {\n //===================================================\n //gets the list of files in a folder (if user has submitted\n //the name of a folder) or gets a single file name (is user\n //has submitted only the file name)\n //===================================================\n this.setThreadCount(this.queue.size());\n int originalNumDocs = writer.numDocs();\n startTime = System.currentTimeMillis();\n for (File f : queue) {\n LogReader lr = new LogReader(f.getAbsolutePath());\n \n Thread t = new Thread(new Runnable(){//Using thread \n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\tcurrentThreadCount = currentThreadCount + 1;\n\t\t\t\t\tSystem.out.println(\"Number of thread: \" + currentThreadCount);\n\t\t\t\t\ttry {\n\t\t for (int cnt = 0; ; cnt++) {\n\t\t \tif(lr == null){\n\t\t \t\tSystem.out.println(\"hello\");\n\t\t \t}\n\t\t ArrayList<Package> list = lr.PackagesWrapper(2000);\n\t\t if (list == null || list.size() <= 0)\n\t\t {\n\t\t break;\n\t\t }\n\n\t\t int size = list.size();\n\t\t ArrayList<Document> docs = new ArrayList<Document>();\n\t\t for (int i = 0; i < size; i++)\n\t\t {\n\t\t Package p = list.get(i);\n\t\t Document doc = new Document();\n\t\t deWrapString(packageType, p, doc);\n\t\t \n\t\t docs.add(doc);\n\t\t }\n\n\t\t writer.addDocuments(docs);\n\n\t\t if (cnt != 0 && cnt % 10 == 0) {\n\t\t flush();\n\t\t currentTime = System.currentTimeMillis();\n\t\t \n\t\t System.out.println(\"Current document: \" + writer.numDocs() + \n\t\t \t\t\", current indexing rate: \" + (writer.numDocs()/ (currentTime - startTime)) * 1000);\n\t\t }\n\t\t }\n\t\t System.out.println(\"Added: \" + f);\n\t\t } catch (Exception e) {\n\t\t \te.printStackTrace();\n\t\t System.out.println(\"Could not add: \" + f);\n\t\t } finally {\n\t\t \tthreadCount--;\n\t\t }\n\t\t\t\t}\n \t\n });\n t.start(); \n /*\n try {\n for (int cnt = 0; ; cnt++) {\n ArrayList<Package> list = lr.PackagesWrapper(2000);\n if (list == null || list.size() <= 0)\n {\n break;\n }\n\n int size = list.size();\n ArrayList<Document> docs = new ArrayList<Document>();\n for (int i = 0; i < size; i++)\n {\n Package p = list.get(i);\n Document doc = new Document();\n this.deWrapString(packageType, p, doc);\n \n docs.add(doc);\n }\n\n writer.addDocuments(docs);\n\n if (cnt % 10 == 0) {\n flush();\n System.out.println(\"bulk count: \" + cnt);\n }\n }\n System.out.println(\"Added: \" + f);\n } catch (Exception e) {\n System.out.println(\"Could not add: \" + f);\n } finally {\n\n }*/\n }\n \n /*\n int newNumDocs = writer.numDocs();\n System.out.println(\"\");\n System.out.println(\"************************\");\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\n System.out.println(\"************************\");\n queue.clear();\n */\n }",
"public boolean isArchiveAnalyzerEnabled() {\n return archiveAnalyzerEnabled;\n }",
"public interface IExchangeDataIndexer {\n\t/**\n\t * Get the exchange indexed by this indexer.\n\t * \n\t * @return {@link Exchange}\n\t */\n\tpublic Exchange getExchange();\n\t\n\t/**\n\t * Get the list of indexes managed by this indexer.\n\t * \n\t * @return The list of names of indexes managed by this indexer.\n\t */\n\tpublic List<String> getExchangeIndexes();\n\t\n\t/**\n\t * Updates the list of stocks in this index, by fetching latest data from the source. \n\t * \n\t * @return Updated list of the stocks.\n\t */\n\tList<MarketData> getMarketDataItems(String index);\n\t\n\t/**\n\t * Synchronizes the recently fetched stock data(of a single index) to the data store.\n\t * \n\t * @param exchangeCode Code for this exchange.\n\t * @param items Recently fetched stock data.\n\t */\n\tpublic void syncToDataStore(String exchangeCode, Collection<MarketData> items);\n}",
"public static void main(final String[] args) throws Exception {\n // captures HDFS path where input files located from command line parameters\n Path inputPath = new Path(args[0]);\n\n // captured HDFS output path where results be stored from command line parameters\n Path outputPath = new Path(args[1]);\n\n // Creates job object\n Configuration conf = new Configuration();\n Job job = Job.getInstance(conf, \"Inverted Index\");\n\n // sets jar by class - tells map reduce engine to identify right jar based on supplied class\n job.setJarByClass(InvertedIndexJob.class);\n // Mapper\n job.setMapperClass(InvertedIndexMap.class);\n // Reducer\n job.setReducerClass(InvertedIndexReducer.class);\n\n // map output key/value pair\n job.setMapOutputKeyClass(Text.class);\n job.setMapOutputValueClass(Text.class);\n\n // sets HDFS input directory path\n FileInputFormat.setInputPaths(job, inputPath);\n\n // sets HDFS output directory path\n FileOutputFormat.setOutputPath(job, outputPath);\n\n // Wait for job tio complete - Main thread blocks until job completes\n if (job.waitForCompletion(true)) {\n System.out.println(\"Job completed successfully !!!\");\n }\n }",
"public AnnotationDeploymentAnalyzer(final File archive) {\n\t\tthis.archive = archive;\n\t\tthis.ejbJarAnnotationMetadata = new EjbJarAnnotationMetadata();\n\t\tscanVisitor = new ScanClassVisitor(ejbJarAnnotationMetadata);\n\t}",
"public void run() {\n\t\t\t\t\tboolean b = false;\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tb = IreportRmiClient.rmiInterfactRemote.generateIndex();\r\n\t\t\t\t\t\tif (!b) {\r\n\t\t\t\t\t\t\t// 0个索引文件\r\n\t\t\t\t\t\t\tAddedOperator.log(\"索引到0个文件..可能你的路径配置错误,请查看服务端输出信息\",\r\n\t\t\t\t\t\t\t\t\tIreportConstant.WARN_);\r\n\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAddedOperator.log(\"新建索引成功\", IreportConstant.RIGHT_);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (RemoteException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tAddedOperator.log(\"新建索引错误:\" + e.getMessage(),\r\n\t\t\t\t\t\t\t\tIreportConstant.ERROR_);\r\n\t\t\t\t\t\tDialogFactory.showErrorMessageDialog(jb,\r\n\t\t\t\t\t\t\t\te.getMessage(), \"新建索引错误\");\r\n\t\t\t\t\t\tthrow new RuntimeException(e.getMessage());\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}",
"public interface IndexService {\n @Async\n public void indexAll(String fileName);\n\n public void deleteDoc(String accession) throws Exception;\n\n public void clearIndex(boolean commit) throws IOException;\n\n public void copySourceFile(String jsonFileName) throws IOException;\n\n}",
"public interface IIndexerDAO {\n\t\n\t/**\n\t * Inizializzazione dell'indicizzatore.\n\t * @param dir La cartella locale contenitore dei dati persistenti.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void init(File dir) throws ApsSystemException;\n\t\n\t/**\n\t * Aggiunge un contenuto nel db del motore di ricerca.\n * @param entity Il contenuto da aggiungere.\n\t * @throws ApsSystemException In caso di errori.\n\t */\n\tpublic void add(IApsEntity entity) throws ApsSystemException;\n\t\n\t/**\n * Cancella un documento indicizzato.\n * @param name Il nome del campo Field da utilizzare per recupero del documento.\n * @param value La chiave mediante il quale è stato indicizzato il documento.\n * @throws ApsSystemException In caso di errori.\n */\n public void delete(String name, String value) throws ApsSystemException;\n \n public void close();\n\t\n\tpublic void setLangManager(ILangManager langManager);\n \n\tpublic static final String FIELD_PREFIX = \"entity:\"; \n public static final String CONTENT_ID_FIELD_NAME = FIELD_PREFIX + \"id\";\n public static final String CONTENT_TYPE_FIELD_NAME = FIELD_PREFIX + \"type\";\n public static final String CONTENT_GROUP_FIELD_NAME = FIELD_PREFIX + \"group\";\n public static final String CONTENT_CATEGORY_FIELD_NAME = FIELD_PREFIX + \"category\";\n\tpublic static final String CONTENT_CATEGORY_SEPARATOR = \"/\";\n\tpublic static final String ATTACHMENT_FIELD_SUFFIX = \"_attachment\";\n\t\n}",
"@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }",
"private void scanJarArchive() throws AnalyzerException {\n\t\tJarFile jarFile;\n\t\ttry {\n\t\t\tjarFile = new JarFile(archive);\n\t\t} catch (IOException ioe) {\n\t\t\tthrow new AnalyzerException(\"Cannot build jar file on archive '\"\n\t\t\t\t\t+ archive + \"'.\", ioe);\n\t\t}\n\t\tEnumeration<? extends ZipEntry> en = jarFile.entries();\n\t\twhile (en.hasMoreElements()) {\n\t\t\tZipEntry e = en.nextElement();\n\t\t\tString name = e.getName();\n\t\t\t// iterate through the jar file\n\t\t\tif (name.toLowerCase().endsWith(\".class\")) {\n\t\t\t\ttry {\n\t\t\t\t\tnew ClassReader(jarFile.getInputStream(e)).accept(\n\t\t\t\t\t\t\tscanVisitor, ClassReader.SKIP_CODE);\n\t\t\t\t} catch (Exception ioe) {\n\t\t\t\t\tthrow new AnalyzerException(\n\t\t\t\t\t\t\t\"Error while analyzing file entry '\" + name\n\t\t\t\t\t\t\t\t\t+ \"' in jar file '\" + archive + \"'\", ioe);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tjarFile.close();\n\t\t} catch (IOException ioe) {\n\t\t\tlogger.warn(\"Error while trying to close the file '\" + jarFile\n\t\t\t\t\t+ \"'\", ioe);\n\t\t}\n\n\t}",
"abstract public WorkflowStepResult performArchiveSubmission(DatasetVersion version, ApiToken token, Map<String, String> requestedSetttings);",
"@Scheduled(fixedRate = 5000)\n public void refreshAllIndex() {\n\n HashMap<String, String> dictlist = new HashMap<>();\n\n //get the file list\n try {\n dictlist = FileUtil.subFolderList(fieryConfig.getIndexpath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //load all index if not contain on folder\n for (Map.Entry<String, String> e : dictlist.entrySet()) {\n String foldername = e.getKey();\n String folderpath = e.getValue();\n if (!readerList.containsKey(foldername)) {\n log.info(\"start load index foldername:\" + foldername + \" abspath:\" + folderpath);\n //open index\n boolean ret = this.openIndex(foldername, folderpath);\n\n //warning this may cause bug\n //loaded fail? clean it\n if (!ret) {\n FileUtil.deleteDir(folderpath);\n }\n }\n }\n\n\n /////////////////////\n // recycle expire index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n String dbname = e.getKey();\n\n try {\n Long dbtime = Long.parseLong(dbname);\n\n if (dbtime < DateTimeHepler.getBeforDay(fieryConfig.getKeepdataday())) {\n //closed all\n if (analyzerList.containsKey(dbname)) {\n analyzerList.get(dbname).close();\n analyzerList.remove(dbname);\n }\n if (directorList.containsKey(dbname)) {\n directorList.get(dbname).close();\n directorList.remove(dbname);\n }\n if (readerList.containsKey(dbname)) {\n readerList.get(dbname).close();\n readerList.remove(dbname);\n }\n\n //remove the folder\n FileUtil.deleteDir(fieryConfig.getIndexpath() + \"/\" + dbname);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n\n /////////////////////\n // refresh already loaded index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n\n String dbname = e.getKey();\n DirectoryReader diskReader = e.getValue();\n\n try {\n Date start = new Date();\n\n DirectoryReader tmp = DirectoryReader.openIfChanged(diskReader);\n if (tmp != null) {\n diskReader.close();\n diskReader = tmp;\n readerList.put(dbname, diskReader);\n Date end = new Date();\n log.info(\"Reload Index:\" + dbname + \" cost:\" + (end.getTime() - start.getTime()) + \" totalcount:\" + diskReader.numDocs());\n }\n\n } catch (Exception exx) {\n exx.printStackTrace();\n log.error(exx.getMessage());\n }\n }\n /////////////////////\n //refresh the all in one searcher\n /////////////////////\n\n this.reloadSearch();\n\n }",
"protected void doWork() throws Exception {\n\t\tSet<PluginInfo> plis = PluginManager.getInstance()\n\t\t\t\t.getPluginsFor(Defaults.MC_METAINFORMATION_PROVIDER);\n\n\t\tsetProgress(0, \"Searching ...\");\n\t\t\n\t\tint step = 10000 / plis.size();\t\t\n\t\t\n\t\tfor (PluginInfo pli : plis) {\n\n\t\t\t// check if task has being canceled\n\t\t\tif(getTaskState() == TaskStateEvent.TASK_CANCELLING) {\n\t\t\t\tdoCancel();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\t// instantiate it\n\t\t\tAbstractPlugin abstractPlugin = pli.getInstance();\n\n\t\t\t// check if this is a real AnnotationProvider\n\t\t\tif (abstractPlugin instanceof AbstractAnnotationProvider) {\n\t\t\t\tAbstractAnnotationProvider abstractProvider = (AbstractAnnotationProvider) abstractPlugin;\n\t\n\t\t\t\tsetProgress(getProgress(), abstractProvider.getName());\n\t\t\t\t\n\t\t\t\t// try to initialize it\n\t\t\t\tif (!abstractProvider.getStatus())\n\t\t\t\t\tabstractProvider.initProvider();\n\n\t\t\t\t\n\t\t\t\t// if it worked, add it to the working AnnotationProviders\n\t\t\t\t// and add IdSettings\n\t\t\t\tif (abstractProvider.getStatus())\n\t\t\t\t\tannotationManager.addProvider(abstractProvider);\n\t\t\t\telse\n\t\t\t\t\t// write a short error log\n\t\t\t\t\twriteLog(abstractProvider.getName()\n\t\t\t\t\t\t\t+ \" initialization failed!\\n\");\n\t\t\t\n\t\t\t\t\tif(abstractProvider.getErrorLog().size() > 0) {\n\t\t\t\t\t\tfor(String errorMessage : abstractProvider.getErrorLog()) {\n\t\t\t\t\t\twriteLog(abstractProvider.getName()\n\t\t\t\t\t\t\t\t+ \" -> \" + errorMessage + \"!\\n\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsetProgress(getProgress() + step, abstractProvider.getName());\n\t\t\t}\n\t\t}\n\t\tsetProgress(10000);\n\t}",
"void index(IDocument document, IIndexerOutput output) throws java.io.IOException;",
"public void setArchiveInd(String archiveInd) {\n\t\tthis.archiveInd = archiveInd;\n\t}",
"@Override\n protected void executeJob( final JobConfig jobCfg )\n throws JobExecutionException {\n\n try {\n // Get the enrich interval from the job configuration.\n final JobAttribute enrichIntervalAttr = jobCfg.getAttributeValue( INDEX_ENRICH_INTERVAL ) ;\n int enrichInterval = DEF_ENRICH_INTERVAL ;\n if( enrichIntervalAttr != null ) {\n enrichInterval = Integer.parseInt( enrichIntervalAttr.getValue().trim() ) ;\n }\n\n // Get the list of registered indexes.\n final List<JobAttribute> indexes = jobCfg.getAttributeValues( INDEX_NAME_KEY ) ;\n final List<AsyncIndexITDImportTask> tasks = new ArrayList<AsyncIndexITDImportTask>() ;\n\n if( indexes != null && !indexes.isEmpty() ) {\n for( final JobAttribute indexInfo : indexes ) {\n AsyncIndexITDImportTask task = null ;\n task = new AsyncIndexITDImportTask( indexInfo, enrichInterval ) ;\n tasks.add( task ) ;\n }\n }\n\n if( !tasks.isEmpty() ) {\n ServiceMgr.getAsyncExecutorSvc().submitAndWait( tasks ) ;\n }\n\n // Get the real time ITD values\n final IExIndexSvc svc = ServiceMgr.getExIndexSvc() ;\n LogMsg.info( \"Importing low resolution index values\" ) ;\n svc.importLowResITDIndices() ;\n }\n catch ( final Throwable e ) {\n final String jobName = jobCfg.getName() ;\n LogMsg.error( \"NSE index ITD data import failed. Msg =\" + e.getMessage() ) ;\n logger.debug( \"Job \" + jobName + \" aborted due to exception.\", e ) ;\n logger.error( jobName + \" aborted. Msg =\" + e.getMessage() ) ;\n new JobExecutionException( e ) ;\n }\n }",
"private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }",
"private void executeAddAndArchive(Task tryUpdate)\n throws Exception {\n model.addTask(tryUpdate);\n model.archiveTask(helper.getLastAppendedOccurrence(tryUpdate));\n }",
"public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}",
"@Override\r\n public void setArchive(String archive) {\n }",
"public interface IIndexer {\n /**\n * Returns the file types the <code>IIndexer</code> handles.\n */\n String[] getFileTypes();\n /**\n * Indexes the given document, adding the document name and the word references \n * to this document to the given <code>IIndex</code>.The caller should use \n * <code>shouldIndex()</code> first to determine whether this indexer handles \n * the given type of file, and only call this method if so. \n */\n void index(IDocument document, IIndexerOutput output) throws java.io.IOException;\n /**\n * Sets the document types the <code>IIndexer</code> handles.\n */\n public void setFileTypes(String[] fileTypes);\n /**\n * Returns whether the <code>IIndexer</code> can index the given document or not.\n */\n public boolean shouldIndex(IDocument document); }",
"public void indexFileOrDirectory(String fileName) {\r\n\r\n addFiles(new File(fileName));\r\n\r\n int originalNumDocs = writer.numRamDocs();\r\n for (File f : queue) {\r\n try {\r\n Document doc = new Document();\r\n\r\n // Creation of a simpledateformatter in order to print the last-modified-date of our files.\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\r\n String date = sdf.format(f.lastModified());\r\n\r\n if (f.getName().endsWith(\".html\")) {\r\n\r\n // Creation of a jsoup document to help us with our html parsing.\r\n org.jsoup.nodes.Document htmlFile = Jsoup.parse(f, null);\r\n String body = htmlFile.body().text();\r\n String title = htmlFile.title();\r\n String summary = getSummary(htmlFile);\r\n\r\n\r\n doc.add(new TextField(\"contents\", body + \" \" + title + \" \" + date, Field.Store.YES));\r\n doc.add(new TextField(\"title\", title, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n doc.add(new StringField(\"summary\", summary, Field.Store.YES));\r\n\r\n }\r\n else {\r\n String content = FileUtils.readFileToString(f, StandardCharsets.UTF_8);\r\n\r\n doc.add(new TextField(\"contents\", content + \" \" + date, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n }\r\n doc.add(new StringField(\"filename\", f.getName(), Field.Store.YES));\r\n\r\n writer.addDocument(doc);\r\n System.out.println(\"Added: \" + f);\r\n } catch (Exception e) {\r\n System.out.println(\"Could not add: \" + f);\r\n }\r\n }\r\n\r\n int newNumDocs = writer.numDocs();\r\n System.out.println(\"\");\r\n System.out.println(\"************************\");\r\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\r\n System.out.println(\"************************\");\r\n\r\n queue.clear();\r\n }",
"public static void main(String[] args) throws IOException\r\n\t{\n\t\tif (args.length <= 0)\r\n\t\t{\r\n System.out.println(\"Expected corpus as input\");\r\n System.exit(1);\r\n }\r\n\r\n\t\t// Analyzer that is used to process TextField\r\n\t\tAnalyzer analyzer = new StandardAnalyzer();\r\n\r\n\t\t// ArrayList of documents in the corpus\r\n\t\tArrayList<Document> documents = new ArrayList<Document>();\r\n\r\n\t\t// Open the directory that contains the search index\r\n\t\tDirectory directory = FSDirectory.open(Paths.get(INDEX_DIRECTORY));\r\n\r\n\t\t// Set up an index writer to add process and save documents to the index\r\n\t\tIndexWriterConfig config = new IndexWriterConfig(analyzer);\r\n\t\tconfig.setOpenMode(IndexWriterConfig.OpenMode.CREATE);\r\n\t\tIndexWriter iwriter = new IndexWriter(directory, config);\r\n\r\n\r\n\t\tfor (String arg : args)\r\n\t\t{\r\n\r\n\t\t\t// Load the contents of the file\r\n\t\t\t//System.out.printf(\"Indexing \\\"%s\\\"\\n\", arg);\r\n\t\t\tString content = new String(Files.readAllBytes(Paths.get(arg)));\r\n\r\n\t\t\tString[] big = content.split(\".I\");\r\n\t\t\tfor (String a : big) {\r\n\t\t\t\tDocument doc = new Document();\r\n\t\t\t\tint count = 0;\r\n\t\t\t\tString[] small = a.split(\".A\");\r\n\t\t\t\tfor (String b : small) {\r\n\t\t\t\t\tif (count == 0) {\r\n\t\t\t\t\t\tdoc.add(new StringField(\"filename\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tdoc.add(new TextField(\"content\", b, Field.Store.YES));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t\tdocuments.add(doc);\r\n\t\t\t}\r\n\t\t\tfor (Document doc : documents) {\r\n\t\t\t\tSystem.out.println(doc.get(\"filename\"));\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Write all the documents in the linked list to the search index\r\n\t\tiwriter.addDocuments(documents);\r\n\r\n\t\t// Commit everything and close\r\n\t\tiwriter.close();\r\n\t\tdirectory.close();\r\n\t}",
"public interface SnIndexerBatchRunnable extends Runnable\r\n{\r\n\t/**\r\n\t * Initializes the indexer batch runnable.\r\n\t *\r\n\t * @param indexerContext\r\n\t * - the indexer context\r\n\t * @param indexerItemSourceOperations\r\n\t * - the indexer item source operations\r\n\t * @param indexerBatchId\r\n\t * - the indexer batch id\r\n\t */\r\n\tvoid initialize(SnIndexerContext indexerContext, List<SnIndexerItemSourceOperation> indexerItemSourceOperations,\r\n\t\t\tString indexerBatchId);\r\n\r\n\t/**\r\n\t * Returns the indexer batch response.\r\n\t *\r\n\t * @return the indexer batch response\r\n\t */\r\n\tSnIndexerBatchResponse getIndexerBatchResponse();\r\n}",
"protected File createObjectArchive(String format, String jobId, JSONObject jobObject, String database, String collection, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tint cursor = 0;\n\t\t\tint archived = 0;\n\n\t\t\tJSONObject initialJson = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, 0, 1);\n\t\t\tint total = initialJson.getInt(\"total\");\n\t\t\twhile(cursor < total) {\n\t\t\t\tJSONObject json = ObjectHelper.getInstance(authorizationHeader).search(query, database, collection, cursor, objectBatchSize);\n\t\t\t\tJSONArray items = json.getJSONArray(\"items\");\n\n\t\t\t\tfor (int i = 0; i < items.length(); i++) {\n\t\t\t\t\t// Get the item\n\t\t\t\t\tJSONObject item = items.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = item.toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = item.getJSONObject(\"_id\").getString(\"$oid\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\n\t\t\t\t\tarchived += 1;\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: %5d / %5d\", jobId, archived, total));\n\n\t\t\t\t// update the cursor\n\t\t\t\tcursor += objectBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * cursor / total);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\t\t\t}\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}",
"public synchronized void recreateIndex()\n throws InterruptedException, CancellationException, ExecutionException, IOException, IndexServiceException {\n // Clear index first\n clear();\n recreateService(IndexRecreateObject.Service.Groups);\n recreateService(IndexRecreateObject.Service.Acl);\n recreateService(IndexRecreateObject.Service.Themes);\n recreateService(IndexRecreateObject.Service.Series);\n recreateService(IndexRecreateObject.Service.Scheduler);\n recreateService(IndexRecreateObject.Service.Workflow);\n recreateService(IndexRecreateObject.Service.AssetManager);\n recreateService(IndexRecreateObject.Service.Comments);\n }",
"@Async\n public void indexAllPublicBlogEntries() {\n try {\n // so as to not use all the ram, i loop through a page at a time and save the blog\n // entries in a batch of 100 at a time to ES\n // since i can't use java 8 on this project, i don't have streams.\n\n final Security sec = securityDao.findByName(\"public\");\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage(), e);\n }\n }",
"public void analyze() throws AnalyzerException {\n\n\t\t// two cases :\n\t\t// - archive is a jar file\n\t\t// - archive is an exploded directory\n\n\t\tif (archive.isFile()) {\n\t\t\tscanJarArchive();\n\t\t} else {\n\t\t\t// exploded mode\n\t\t\t// need recursion on all directories of the archive\n\t\t\tscanDirectory(archive);\n\t\t}\n\t}",
"private Hashtable getGTArchiveByDocumentArchiveInfo(ArchiveSummary archiveSummary, String jobID)\n {\n String archiveName = archiveSummary.getArchiveName()+\"_DOC\";\n String description = archiveSummary.getArchiveDescription();\n boolean isEnabledSearchArchived = false;\n boolean isEnabledRestore = true;\n String archiveID = archiveSummary.getArchiveID();\n \n ArchiveCriteria criteria = archiveSummary.getArchiveCriteria();\n Long fromStartDateTime = criteria.getFromStartDate().getTime();\n Long toStartDateTime = criteria.getToStartDate().getTime();\n \n String groupList = criteria.getGroup();\n _logger.logMessage(\"\", null, \"Group List is \"+groupList);\n \n String customerList = mapGroupToCustomerID(groupList);\n _logger.logMessage(\"\", null, \"Customer list is \"+customerList);\n \n Boolean archiveOrphanRecord = criteria.isArchiveOrphanRecord();\n \n Hashtable<String, Object> archiveInfo = new Hashtable<String, Object>();\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_NAME, archiveName);\n \n if(description != null)\n {\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_DESCRIPTION, description);\n }\n archiveInfo.put(IGTArchiveConstant.FROM_START_DATE_TIME, fromStartDateTime);\n archiveInfo.put(IGTArchiveConstant.TO_START_DATE_TIME, toStartDateTime);\n archiveInfo.put(IGTArchiveConstant.IS_ENABLED_ARCHIVED_SEARCHED, isEnabledSearchArchived);\n archiveInfo.put(IGTArchiveConstant.IS_ENABLED_RESTORE, isEnabledRestore);\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_ID, archiveID);\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_TYPE, IGTArchiveConstant.ARCHIVE_TYPE_DOCUMENT);\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_OPERATION, IGTArchiveConstant.ARCHIVE_OP_ARCHIVE);\n archiveInfo.put(IGTArchiveConstant.CUSTOMER_ID, customerList);\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_ORPHAN_RECORD, archiveOrphanRecord);\n archiveInfo.put(IGTArchiveConstant.ARCHIVE_JOBS_ID, jobID);\n \n return archiveInfo;\n }",
"public Archive getArchive();",
"@ManagedOperation(description = \"Starts rebuilding the index\", displayName = \"Rebuild index\")\n void start();",
"@Override\r\n public void extractArchive(ArchiveExtractor decompressor) throws ArcException {\r\n\r\n\tString fileName = ManipString.substringAfterFirst(this.idSource, \"_\");\r\n\r\n\tboolean uncompressInProgress=false;\r\n\tFile dir = new File(this.archiveChargement + \".dir\");\r\n\tif (!dir.exists()) {\r\n\t\ttry {\r\n\t\t if (dir.mkdir())\r\n\t\t {\r\n\t\t \tStaticLoggerDispatcher.debug(LOGGER,\"$$\"+Thread.currentThread().getId()+\" is decompressing \"+dir.getAbsolutePath());\r\n\t\t \tdecompressor.extract(this.archiveChargement);\r\n\t\t \tuncompressInProgress=true;\r\n\t\t }\r\n\t\t}\r\n\t\t catch (Exception ex)\r\n\t\t{\r\n\t\t\t throw new ArcException(ex, ArcExceptionMessage.FILE_EXTRACT_FAILED, this.archiveChargement).logFullException();\r\n\t\t}\r\n\t}\r\n\t\r\n\tif (!uncompressInProgress) {\r\n\t\t\t// check if file exists\r\n\t File toRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\t while (!toRead.exists()) {\r\n\t \ttry {\r\n\t\t\t\tThread.sleep(MILLISECOND_UNCOMPRESSION_CHECK_INTERVAL);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tThread.currentThread().interrupt();\r\n\t\t\t StaticLoggerDispatcher.error(LOGGER, \"Error in thread sleep extractArchive()\");\r\n\t\t\t}\r\n\t \ttoRead = new File(dir + File.separator + ManipString.redoEntryName(fileName));\r\n\t }\r\n\t}\r\n\r\n\r\n\t\r\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n public void finalise() {\n if(indexFieldConfiguration != null){\n FieldMapper mapper = FieldMappingUtils.createDefaultFieldMapper(indexFieldConfiguration);\n try {\n CacheUtils.storeBaseMappingsConfiguration(solrYard, mapper);\n } catch (YardException e) {\n log.error(\"Unable to store FieldMapperConfiguration to the Store!\",e);\n }\n }\n log.info(\" ... optimize SolrCore\");\n try {\n solrYard.optimize();\n } catch (YardException e) {\n log.error(\"Unable to optimize SolrIndex after indexing! IndexArchive will not be optimized ...\",e);\n }\n //build the FST models\n if(fstConfigs != null){\n //(1) FST config initialisation\n log.info(\" ... init FST configuration(s)\");\n IndexSchema schema = core.getLatestSchema();\n File fstDir = new File(new File(core.getDataDir()),\"fst\");\n if(!fstDir.isDirectory()){\n try {\n FileUtils.forceMkdir(fstDir);\n } catch (IOException e) {\n throw new IllegalStateException(\"Unable to create Directory \"\n + fstDir.getAbsolutePath() + \"for storing the FST models \"\n + \"of SolrCore \"+core.getName());\n }\n }\n RefCounted<SolrIndexSearcher> searcherRef = core.getSearcher();\n try {\n for(FstConfig fstConfig : fstConfigs){\n fstConfig.setFstDirectory(fstDir); //set the FST directory\n log.info(\"> FST config {}\", fstConfig);\n fstConfig.buildConfig(schema, searcherRef.get().getAtomicReader());\n for(CorpusCreationInfo corpus : fstConfig.getCorpusCreationInfos()){\n log.info(\" - {}\",corpus);\n }\n }\n } finally {\n searcherRef.decref();\n }\n\n List<Future<?>> fstCreationTasks = new ArrayList<Future<?>>();\n ExecutorService es = Executors.newFixedThreadPool(fstThreads);\n log.info(\" ... build FST models \");\n for(FstConfig config : fstConfigs){\n for(final CorpusCreationInfo corpus : config.getCorpusCreationInfos()){\n fstCreationTasks.add(es.submit(new CorpusCreationTask(core, corpus)));\n }\n }\n //now wait for the completion of the tasks\n Iterator<Future<?>> taskIt = fstCreationTasks.iterator();\n while(taskIt.hasNext()){\n Future<?> task = taskIt.next();\n try {\n task.get(); //wait until ready\n taskIt.remove();\n } catch (ExecutionException e) {\n log.error(\"Exception while building FST models for SolrCore \"\n + core.getName(),e);\n } catch (InterruptedException e) {\n log.error(\"Interupped while building FST models for SolrCore \"\n + core.getName(),e);\n Thread.currentThread().interrupt();\n \n }\n }\n if(!fstCreationTasks.isEmpty()){\n log.warn(\"Unable to build {} FST models for SolrCore {}\",\n fstCreationTasks.size(), core.getName());\n } else {\n log.info(\"All FST modles for SolrCore {} build successfully!\",\n core.getName());\n }\n } //no FST modles to build\n \n //all Solr specific stuff is now ready\n log.info(\" ... close SolrCore\");\n solrYard.close();\n \n //if a indexing config is present we need to create the distribution files\n if(indexingConfig != null){\n \t//first check if the distribution folder needs to be created and is valid\n \tFile distFolder = indexingConfig.getDistributionFolder();\n \tif(!distFolder.exists()){\n \t\tif(!distFolder.mkdirs()){\n \t\t\tthrow new IllegalStateException(\"Unable to create distribution folder \" +\n \t\t\t\t\tdistFolder.getAbsolutePath());\n \t\t}\n \t} else if(!distFolder.isDirectory()){\n \t\tthrow new IllegalStateException(\"Distribution folder\" + distFolder.getAbsolutePath()\n \t\t\t\t+ \"is not a Directory!\");\n \t}\n //zip the index and copy it over to distribution\n log.info(\" ... build Solr index archive\");\n if(solrArchive != null){\n try {\n writeSolrIndexArchive(indexingConfig);\n }catch (IOException e) {\n log.error(\"Error while creating Solr Archive \"+solrArchive.getAbsolutePath()+\n \"! The archive will not be created!\",e);\n log.error(\"As a Workaround you can manually create the Solr Archive \" +\n \"by creating a ZIP archive with the contents of the Folder \" +\n solrIndexLocation+\"!\");\n }\n }\n if(solrArchiveRef != null){\n try {\n writeSolrIndexReference(indexingConfig);\n } catch (IOException e) {\n log.error(\"Error while creating Solr Archive Reference \"+\n solrArchiveRef.getAbsolutePath()+\n \"! The file will not be created!\",e);\n }\n }\n //finally create the Osgi Configuration\n try {\n OsgiConfigurationUtil.writeSiteConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the referenced site\",e);\n }\n try {\n OsgiConfigurationUtil.writeCacheConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the Cache\",e);\n }\n //create the SolrYard configuration\n try {\n writeSolrYardConfiguration(indexingConfig);\n } catch (IOException e) {\n log.error(\"Unable to write OSGI configuration file for the SolrYard\",e);\n }\n //create the bundle\n OsgiConfigurationUtil.createBundle(indexingConfig);\n }\n }",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodtoArray() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.toArray() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }",
"public void start() throws Exception {\n\n createIndex();\n }",
"public interface ArchiveService {\n// 返回所有的Archive对象\n public ArrayList<Archive> getAllArchive();\n}",
"public Indexer() {\n }",
"private void blockCompressAndIndex(String in, String bgzfOut, boolean deleteOnExit) throws IOException {\n\t\t\n\t\t// System.err.print(\"Compressing: \" + in + \" to file: \" + bgzfOut + \"... \");\n\t\t\n\t\tFile inFile= new File(in);\n\t\tFile outFile= new File(bgzfOut);\n\t\t\n\t\tLineIterator lin= IOUtils.openURIForLineIterator(inFile.getAbsolutePath());\n\n\t\tBlockCompressedOutputStream writer = new BlockCompressedOutputStream(outFile);\n\t\tlong filePosition= writer.getFilePointer();\n\t\t\n\t\tTabixIndexCreator indexCreator=new TabixIndexCreator(TabixFormat.BED);\n\t\tBedLineCodec bedCodec= new BedLineCodec();\n\t\twhile(lin.hasNext()){\n\t\t\tString line = lin.next();\n\t\t\tBedLine bed = bedCodec.decode(line);\n\t\t\tif(bed==null) continue;\n\t\t\twriter.write(line.getBytes());\n\t\t\twriter.write('\\n');\n\t\t\tindexCreator.addFeature(bed, filePosition);\n\t\t\tfilePosition = writer.getFilePointer();\n\t\t}\n\t\twriter.flush();\n\t\t\n\t\t// System.err.print(\"Indexing... \");\n\t\t\n\t\tFile tbi= new File(bgzfOut + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\tif(tbi.exists() && tbi.isFile()){\n\t\t\twriter.close();\n\t\t\tthrow new RuntimeException(\"Index file exists: \" + tbi);\n\t\t}\n\t\tIndex index = indexCreator.finalizeIndex(writer.getFilePointer());\n\t\tindex.writeBasedOnFeatureFile(outFile);\n\t\twriter.close();\n\n\t\t// System.err.println(\"Done\");\n\t\t\n\t\tif(deleteOnExit){\n\t\t\toutFile.deleteOnExit();\n\t\t\tFile idx= new File(outFile.getAbsolutePath() + TabixUtils.STANDARD_INDEX_EXTENSION);\n\t\t\tidx.deleteOnExit();\n\t\t}\n\t}",
"@Override\n public void reindexImpl()\n {\n List<StoreRef> storeRefs = nodeService.getStores();\n int count = 0;\n for (StoreRef storeRef : storeRefs)\n {\n // prompt the FTS reindexing\n if (!ftsIndexerCalled)\n {\n ftsIndexer.requiresIndex(storeRef);\n }\n // reindex missing content\n count += reindexMissingContent(storeRef);\n // check if we have to break out\n if (isShuttingDown())\n {\n break;\n }\n }\n \n // The FTS indexer only needs to be prompted once\n ftsIndexerCalled = true;\n\n // done\n if (logger.isDebugEnabled())\n {\n logger.debug(\"Missing content indexing touched \" + count + \" content nodes\");\n }\n }",
"public void finishedDirectIndexBuild()\n\t{\n\t\tif(logger.isInfoEnabled()){\n\t\t\tlogger.info(\"flushing utf block lexicon to disk after the direct index completed\");\n\t\t}\n\t\t//only write a temporary lexicon if there are any items in it\n\t\tif (TempLex.getNumberOfNodes() > 0)\n\t\t\twriteTemporaryLexicon();\n\n\t\t//merges the temporary lexicons\n\t\tif (tempLexFiles.size() > 0)\n\t\t{\n\t\t\ttry{\n\t\t\t\tmerge(tempLexFiles);\n\t\n\t\t\t\t//creates the offsets file\n\t\t\t\tfinal String lexiconFilename = \n\t\t\t\t\tindexPath + ApplicationSetup.FILE_SEPARATOR + \n\t\t\t\t\tindexPrefix + ApplicationSetup.LEXICONSUFFIX;\n\t\t\t\tLexiconInputStream lis = getLexInputStream(lexiconFilename);\n\t\t\t\tcreateLexiconIndex(\n\t\t\t\t\tlis,\n\t\t\t\t\tlis.numberOfEntries(),\n\t\t\t\t\t/* after inverted index is built, the lexicon will be transformed into a\n\t\t\t\t\t * normal lexicon, without block frequency */\n\t\t\t\t\tUTFLexicon.lexiconEntryLength\n\t\t\t\t\t); \n\t\t\t\tTermCount = lis.numberOfEntries();\n\t\t\t\tif (index != null)\n\t\t\t\t{\n\t\t\t\t\tindex.addIndexStructure(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexicon\");\n\t\t\t\t\tindex.addIndexStructureInputStream(\"lexicon\", \"uk.ac.gla.terrier.structures.UTFBlockLexiconInputStream\");\n\t\t\t\t\tindex.setIndexProperty(\"num.Terms\", \"\"+lis.numberOfEntries());\n\t\t\t\t\tindex.setIndexProperty(\"num.Pointers\", \"\"+lis.getNumberOfPointersRead());\n\t\t\t\t}\n\t\t\t} catch(IOException ioe){\n\t\t\t\tlogger.error(\"Indexing failed to write a lexicon index file to disk\", ioe);\n\t\t\t}\t\n\t\t}\n\t\telse\n\t\t\tlogger.warn(\"No temporary lexicons to merge, skipping\");\n\t\t\n\t}",
"@Test(timeout = TIMEOUT)\n public void createArchiveTaskLifecycle() throws Exception {\n final Result<TaskResponse> uploadImportTaskResponseResult = docSDKClient.importUsing().upload(new UploadImportRequest(), jpgTest1InputStream);\n assertThat(uploadImportTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse uploadImportTaskResponse = uploadImportTaskResponseResult.getBody();\n assertThat(uploadImportTaskResponse.getOperation()).isEqualTo(Operation.IMPORT_UPLOAD);\n\n // Archive\n final CreateArchivesTaskRequest createArchivesTaskRequest = new CreateArchivesTaskRequest().setInput(uploadImportTaskResponse.getId()).setOutputFormat(ZIP);\n final Result<TaskResponse> archiveTaskResponseResult = docSDKClient.tasks().archive(createArchivesTaskRequest);\n assertThat(archiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_CREATED);\n\n final TaskResponse archiveTaskResponse = archiveTaskResponseResult.getBody();\n assertThat(archiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n\n // Wait\n final Result<TaskResponse> waitArchiveTaskResponseResult = docSDKClient.tasks().wait(archiveTaskResponse.getId());\n assertThat(waitArchiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse waitArchiveTaskResponse = waitArchiveTaskResponseResult.getBody();\n assertThat(waitArchiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n assertThat(waitArchiveTaskResponse.getStatus()).isEqualTo(Status.FINISHED);\n assertThat(waitArchiveTaskResponse.getId()).isEqualTo(archiveTaskResponse.getId());\n\n // Show\n final Result<TaskResponse> showArchiveTaskResponseResult = docSDKClient.tasks().show(archiveTaskResponse.getId());\n assertThat(showArchiveTaskResponseResult.getStatus()).isEqualTo(HttpStatus.SC_OK);\n\n final TaskResponse showArchiveTaskResponse = showArchiveTaskResponseResult.getBody();\n assertThat(showArchiveTaskResponse.getOperation()).isEqualTo(Operation.ARCHIVE);\n assertThat(showArchiveTaskResponse.getStatus()).isEqualTo(Status.FINISHED);\n assertThat(showArchiveTaskResponse.getId()).isEqualTo(archiveTaskResponse.getId());\n\n // Delete\n final Result<Void> deleteVoidResult = docSDKClient.tasks().delete(archiveTaskResponse.getId());\n assertThat(deleteVoidResult.getStatus()).isEqualTo(HttpStatus.SC_NO_CONTENT);\n }",
"@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}",
"public FilesArchived(File rootDir, String zip) {\n this.root = rootDir;\n this.compression = (\"zstd\".equals(zip)) ? Compression.ZSTD : Compression.GZIP;\n rescan();\n Thread thread = new Thread(this::run);\n thread.setDaemon(true);\n thread.setName(\"FilesArchived-maintainer\");\n thread.start();\n }",
"private IndexHandler (boolean test) throws IOException {\n analyzer = new StandardAnalyzer();\n indexDir = test ? new RAMDirectory() : new DistributedDirectory(new MongoDirectory(mongoClient, \"search-engine\", \"index\"));\n //storePath = storedPath;\n config = new IndexWriterConfig(analyzer);\n\n // write separate IndexWriter to RAM for each IndexHandler\n // writer will have to be manually closed with each instance call\n // see IndexWriter documentation for .close()\n // explaining continuous closing of IndexWriter is an expensive operation\n try {\n writer = new IndexWriter(indexDir, config);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Test\n public void testProcessAll() throws TikaException, SAXException, IOException, Exception {\n PaperIndexer indexer = new PaperIndexer(BaseDirInfo.getPath(\"test.properties\"));\n indexer.processAll();\n\n Properties prop = indexer.getProperties();\n String paraIndexPath = prop.getProperty(\"para.index\");\n prop.setProperty(\"para.index\", paraIndexPath + \"/1\");\n\n final String[] indexes = { \"index\", \"para.index\", \"para.index.all\" };\n\n // Test global index and para index\n for (String indexPath : indexes) {\n File indexDir = new File(BaseDirInfo.getPath(indexer.getProperties().getProperty(indexPath)));\n try (Directory dir = FSDirectory.open(indexDir.toPath());\n IndexReader reader = DirectoryReader.open(dir)) {\n assertNotNull(reader); // reader must not be null\n\n int nDocs = reader.numDocs();\n assertNotEquals(nDocs, 0); // Number of docs must not be zero\n }\n }\n\n // Since we put one document in the test folder, we should have one folder in the para index\n prop.setProperty(\"para.index\", paraIndexPath);\n File[] dirs = new File(prop.getProperty(\"para.index\")).listFiles();\n assertEquals(dirs.length, 1);\n\n // clean folders\n indexer.removeIndexDirs();\n }",
"@Scheduled(cron = \"0 0 */1 * * ?\")\n\tpublic void schedule() {\n\t\tif (!active) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// do not process if there is no update\n\t\tif (updateService.count() == 0) {\n\t\t\treturn;\n\t\t}\n\n\t\tLOGGER.info(\"Updating indices\");\n\t\t\n\t\t// import all indices list\n\t\ttry {\n\t\t\tList<String> indices = getAllIndices();\n\t\t\tfor (String index : indices) {\n\t\t\t\tStockIndex indexEntity = getIndex(index);\n\t\t\t\ttry {\n\t\t\t\t\tprocessIndexCompanies(indexEntity);\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tLOGGER.error(\"EXCEPTION.DOWNLOAD.CMPS.\" + index, ex);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"EXCEPTION.DOWNLOAD.IDXS\", e);\n\t\t}\n\t}",
"public static synchronized void indexDocument(CodeIndexDocument codeIndexDocument) throws IOException {\n Queue<CodeIndexDocument> queue = new ConcurrentLinkedQueue<CodeIndexDocument>();\n queue.add(codeIndexDocument);\n indexDocuments(queue);\n queue = null;\n }",
"public void indexAssets() {\n\t\tString json = null;\n\t\tString assetUrl = minecraftVersion.getAssetIndex().getUrl().toString();\n\t\ttry {\n\t\t\tjson = JsonUtil.loadJSON(assetUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tassetsList = (AssetIndex) JsonUtil.getGson().fromJson(json, AssetIndex.class);\n\t\t}\n\t}",
"private void indexUpdates(UpdateQueryResult updates) {\r\n Iterator<HashMap<String, String>> i = updates.getIterator();\r\n while (i.hasNext()) {\r\n HashMap<String, String> values = i.next();\r\n \r\n \t// during index default solr fields are indexed separately\r\n \tString articleId = values.get(\"KnowledgeArticleId\");\r\n \tString title = values.get(\"Title\");\r\n \tvalues.remove(\"Title\");\r\n \tString summary = values.get(\"Summary\");\r\n \tvalues.remove(\"Summary\");\r\n \t\r\n \ttry {\r\n \t\tif (UtilityLib.notEmpty(articleId) && UtilityLib.notEmpty(title)) {\r\n \t\t\t// index sObject\r\n \t\t\t// default fields every index must have\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tContent c = new Content();\r\n \t\t\tc.setKey(articleId);\r\n \t\t\tsb.setLength(0);\r\n \t\t\tsb.append(summary);\r\n \t\t\tc.setData(sb.toString().getBytes());\r\n \t\t\tc.addMetadata(\"Content-Type\", \"text/html\");\r\n \t\t\tc.addMetadata(\"title\", title);\r\n \t\t\t\r\n \t\t\tLOG.debug(\"Salesforce Crawler: Indexing articleId=\"+articleId+\" title=\"+title+\" summary=\"+summary);\r\n \t\t\t\r\n \t\t\t// index articleType specific fields\r\n \t\t\tfor (Entry<String, String> entry : values.entrySet()) {\r\n \t\t\t\tc.addMetadata(entry.getKey(), entry.getValue().toString());\r\n \t\t\t\tif (!entry.getKey().equals(\"Attachment__Body__s\")) {\r\n \t\t\t\t\tLOG.debug(\"Salesforce Crawler: Indexing field key=\"+entry.getKey()+\" value=\"+entry.getValue().toString());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tstate.getProcessor().process(c);\r\n \t\t}\r\n } catch (Exception e) {\r\n \tUtilityLib.errorException(LOG, e);\r\n \tstate.getStatus().incrementCounter(Counter.Failed);\r\n }\r\n }\r\n }",
"public IndexSearchSharderManager() {\n log = LoggerFactory.getLogger(IndexSearchSharderManager.class);\n }",
"@Override\n\tpublic int run(String[] args) throws Exception {\n\t\tPath inpath = null;\n\t\tPath outpath = null;\n\t\tPath filemap = null;\n\t\tboolean isSearch = false;\n\t\tboolean useMR = false;\n\t\tboolean useFilemap = false;\n\t\tboolean indexonly = false;\n\n\t\tList<String> other_args = new ArrayList<String>();\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i].equals(\"-search\")) {\n\t\t\t\tisSearch = true;\n\t\t\t} else if (args[i].toLowerCase().equals(\"-usemr\")) {\n\t\t\t\tuseMR = true;\n\t\t\t} else if (args[i].toLowerCase().equals(\"-filemap\")) {\n\t\t\t\tfilemap = new Path(args[++i]);\n\t\t\t\tuseFilemap = true;\n\t\t\t} else if (args[i].toLowerCase().equals(\"-indexonly\")) {\n\t\t\t\tindexonly = true;\n\t\t\t} else if (args[i].contains(\"-\")) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tother_args.add(args[i]);\n\t\t}\n\n\t\tinpath = new Path(other_args.get(0));\n\t\toutpath = new Path(other_args.get(1));\n\t\tif (!useFilemap)\n\t\t\tfilemap = new Path(outpath.getParent().toString() + \"/filemap.txt\");\n\n\t\tif (!isSearch) {\n\t\t\tJobConf conf = new JobConf(getConf(), InvertedIndex.class);\n\t\t\tif (args.length == 3) {\n\t\t\t\tPath stop_word_path = new Path(other_args.get(2));\n\t\t\t\tif (FileSystem.get(conf).isFile(stop_word_path)) {\n\t\t\t\t\tDistributedCache.addCacheFile(stop_word_path.toUri(), conf);\n\t\t\t\t} else {\n\t\t\t\t\tFileStatus[] filestatus = FileSystem.get(conf).globStatus(\n\t\t\t\t\t\t\tnew Path(other_args.get(2) + \"/p*\"));\n\t\t\t\t\tfor (FileStatus fs : filestatus) {\n\t\t\t\t\t\tDistributedCache.addCacheFile(fs.getPath().toUri(),\n\t\t\t\t\t\t\t\tconf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tconf.setBoolean(\"invertedindex.use.stopword\", true);\n\t\t\t}\n\t\t\tconf.setJobName(\"inverted index\");\n\t\t\tconf.setMapperClass(Map.class);\n\t\t\tconf.setCombinerClass(Combine.class);\n\t\t\tconf.setReducerClass(Reduce.class);\n\t\t\tconf.setOutputKeyClass(Text.class);\n\t\t\tconf.setOutputValueClass(Text.class);\n\t\t\tconf.setInputFormat(MyInputFormat.class);\n\n\t\t\tMyInputFormat.setInputPaths(conf, inpath);\n\t\t\tFileOutputFormat.setOutputPath(conf, outpath);\n\n\t\t\tFileSystem fs = FileSystem.get(conf);\n\t\t\tFSDataOutputStream os = fs.create(filemap);\n\n\t\t\tFileStatus[] inputnames = fs.globStatus(new Path(other_args.get(0)\n\t\t\t\t\t+ \"/*\"));\n\t\t\tBufferedWriter br = new BufferedWriter(new OutputStreamWriter(os));\n\t\t\tfor (int i = 0; i < inputnames.length; i++) {\n\t\t\t\tbr.append(i + \":\" + inputnames[i].getPath().getName());\n\t\t\t\tbr.newLine();\n\t\t\t}\n\t\t\tbr.close();\n\t\t\tconf.set(\"invertedindex.filename.map\", filemap.toString());\n\t\t\tJobClient.runJob(conf);\n\t\t}\n\n\t\tif (indexonly)\n\t\t\treturn 0;\n\n\t\tString word;\n\t\tBufferedReader ibr = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tif (useMR) {\n\t\t\tSystem.out.print(\"input some words(or 'q' to exit): \");\n\t\t\tPath searchOutput = new Path(outpath.getParent().toString()\n\t\t\t\t\t+ \"/search\");\n\t\t\twhile (!(word = ibr.readLine()).equals(\"q\")) {\n\t\t\t\tJobConf searchJob = new JobConf(getConf(), InvertedIndex.class);\n\t\t\t\tDistributedCache.addCacheFile(filemap.toUri(), searchJob);\n\t\t\t\tsearchJob.setJobName(\"Search\");\n\t\t\t\tsearchJob.set(\"search.word\", word.toLowerCase());\n\t\t\t\tsearchJob.setMapperClass(SearchMap.class);\n\t\t\t\tsearchJob.setReducerClass(SearchReduce.class);\n\t\t\t\tsearchJob.setInputFormat(KeyValueTextInputFormat.class);\n\t\t\t\tsearchJob.setOutputKeyClass(Text.class);\n\t\t\t\tsearchJob.setOutputValueClass(Text.class);\n\t\t\t\tKeyValueTextInputFormat.setInputPaths(searchJob, outpath);\n\t\t\t\tFileOutputFormat.setOutputPath(searchJob, searchOutput);\n\t\t\t\tJobClient.runJob(searchJob);\n\t\t\t\tFileSystem sfs = FileSystem.get(searchJob);\n\t\t\t\tFileStatus[] sout = sfs.globStatus(new Path(searchOutput\n\t\t\t\t\t\t.toString() + \"/p*\"));\n\t\t\t\tfor (FileStatus sfile : sout) {\n\t\t\t\t\tFSDataInputStream sin = FileSystem.get(searchJob).open(\n\t\t\t\t\t\t\tsfile.getPath());\n\t\t\t\t\tBufferedReader sbr = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(sin));\n\t\t\t\t\tString pr;\n\t\t\t\t\twhile ((pr = sbr.readLine()) != null)\n\t\t\t\t\t\tSystem.out.println(pr);\n\t\t\t\t\tsbr.close();\n\t\t\t\t}\n\t\t\t\tsfs.delete(searchOutput, true);\n\t\t\t\tSystem.out.print(\"input some words(or 'q' to exit): \");\n\t\t\t}\n\t\t} else {\n\t\t\tFileSystem fs = FileSystem.get(new Configuration());\n\t\t\tHashMap<String, String> fidpair = new HashMap<String, String>();\n\t\t\tHashMap<String, String> invertedindex = new HashMap<String, String>();\n\t\t\tFSDataInputStream is = fs.open(filemap);\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\n\t\t\tparseFileMap(br, fidpair);\n\t\t\tbr.close();\n\t\t\tFileStatus[] iis = fs.globStatus(new Path(outpath.toString()\n\t\t\t\t\t+ \"/p*\"));\n\t\t\tfor (FileStatus ii : iis) {\n\t\t\t\tis = fs.open(ii.getPath());\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(is));\n\t\t\t\tparseInvertedIndex(br, invertedindex);\n\t\t\t\tbr.close();\n\t\t\t}\n\n\t\t\tSystem.out.print(\"input a word(or 'q' to exit): \");\n\t\t\tString line;\n\t\t\twhile (!(line = ibr.readLine()).equals(\"q\")) {\n\t\t\t\tif (invertedindex.containsKey(line)) {\n\t\t\t\t\tString val = invertedindex.get(line);\n\t\t\t\t\tString outVal = parseOutValue(val, fidpair);\n\t\t\t\t\tSystem.out.println(outVal);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"input a word(or 'q' to exit): \");\n\t\t\t}\n\t\t}\n\t\tibr.close();\n\t\treturn 0;\n\t}",
"@Async\n public void indexAllBlogEntries() {\n try {\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findAll(pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findAll(pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage());\n }\n }",
"public interface InvertedIndex extends Serializable {\n\n\n /**\n * Sampling for creating mini batches\n * @return the sampling for mini batches\n */\n double sample();\n\n /**\n * Iterates over mini batches\n * @return the mini batches created by this vectorizer\n */\n Iterator<List<VocabWord>> miniBatches();\n\n /**\n * Returns a list of words for a document\n * @param index\n * @return\n */\n List<VocabWord> document(int index);\n\n /**\n * Returns the list of documents a vocab word is in\n * @param vocabWord the vocab word to get documents for\n * @return the documents for a vocab word\n */\n int[] documents(VocabWord vocabWord);\n\n /**\n * Returns the number of documents\n * @return\n */\n int numDocuments();\n\n /**\n * Returns a list of all documents\n * @return the list of all documents\n */\n int[] allDocs();\n\n\n\n /**\n * Add word to a document\n * @param doc the document to add to\n * @param word the word to add\n */\n void addWordToDoc(int doc,VocabWord word);\n\n\n /**\n * Adds words to the given document\n * @param doc the document to add to\n * @param words the words to add\n */\n void addWordsToDoc(int doc,List<VocabWord> words);\n\n\n /**\n * Finishes saving data\n */\n void finish();\n\n /**\n * Total number of words in the index\n * @return the total number of words in the index\n */\n int totalWords();\n\n /**\n * For word vectors, this is the batch size for which to train on\n * @return the batch size for which to train on\n */\n int batchSize();\n\n /**\n * Iterate over each document\n * @param func the function to apply\n * @param exec exectuor service for execution\n */\n void eachDoc(Function<List<VocabWord>, Void> func, ExecutorService exec);\n}",
"@RequestMapping(value = \"/archive\", method = RequestMethod.POST)\n\t@ResponseBody\n\tString archieveWorkItem(HttpServletRequest request, HttpServletResponse response) {\n\n\t\tString id = request.getParameter(\"id\");\n\t\tRetrieveItems ri = new RetrieveItems(env);\n\t\tri.flipItemArchive(id );\n\t\treturn id ;\n\t}",
"public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}",
"private void updateIndex() throws IOException {\n // maintain the document store (corpus) - if there is one\n if (currentMemoryIndex.containsPart(\"corpus\")) {\n // get all corpora + shove into document store\n ArrayList<DocumentReader> readers = new ArrayList<>();\n readers.add((DocumentReader) currentMemoryIndex.getIndexPart(\"corpus\"));\n for (String path : geometricParts.getAllShards().getBinPaths()) {\n String corpus = path + File.separator + \"corpus\";\n readers.add(new CorpusReader(corpus));\n }\n }\n // finally write new checkpointing data (checkpoints the disk indexes)\n Parameters checkpoint = createCheckpoint();\n this.checkpointer.saveCheckpoint(checkpoint);\n }",
"public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}",
"@Override\n protected Void doInBackground() {\n PropertyPage.resetCachedFilesCount();\n scanListSize = scanList.size();\n /*\n * Timer to update cache progress\n */\n final int TIMER_VALUE = 10 * scanListSize;\n\n fileIterator = new FileIterator[scanList.size()];\n for (int i = 0; i < scanListSize; i++) {\n fileIterator[i] = new FileIterator(cachePage.getIncludedCachePath(scanList.get(i).toString()), cachePage, this);\n fileIterator[i].runScanner();\n sendProgress(); //update progress to user\n }\n while (!isCancelled() && PropertyPage.getIteratorThreadAliveCount() >= 1) {\n sendProgress(); //update progress to user\n try {\n if (!PropertyPage.getFileIteratorStopper()) {\n Thread.sleep(TIMER_VALUE);\n }\n } catch (InterruptedException interruptedEx) {\n LOGGER.log(Level.SEVERE, \"Current Thread interrupted\", interruptedEx);\n Thread.currentThread().interrupt();\n }\n }\n cachePage.saveCacheConfigToFile();\n return null;\n }",
"private Indexers()\r\n {\r\n // Private constructor to prevent instantiation\r\n }",
"public void createIndex() throws IOException {\n\t\tindexWriter.commit();\n\t\ttaxoWriter.commit();\n\n\t\t// categories\n\t\tfor (Article.Facets f : Article.Facets.values()) {\n\t\t\ttaxoWriter.addCategory(new CategoryPath(f.toString()));\n\t\t}\n\t\ttaxoWriter.commit();\n\n\t\tfinal Iterable<Article> articles = articleRepository.findAll();\n\t\tint c = 0;\n\t\tfor (Article article : articles) {\n\t\t\taddArticle(indexWriter, taxoWriter, article);\n\t\t\tc++;\n\t\t}\n\t\t// commit\n\t\ttaxoWriter.commit();\n\t\tindexWriter.commit();\n\n\t\ttaxoWriter.close();\n\t\tindexWriter.close();\n\n\t\ttaxoDirectory.close();\n\t\tindexDirectory.close();\n\t\tLOGGER.debug(\"{} articles indexed\", c);\n\t}",
"public abstract void updateIndex();",
"public abstract <T extends TrajEntry> void index(Trajectory<T> trajectories);",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodEntrySet() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.entrySet() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"public void WriteIndex() throws Exception {\n CorpusReader corpus = new CorpusReader();\n // initiate the output object\n IndexWriter output = new IndexWriter();\n\n // Map to hold doc_id and doc content;\n Map<String, String> doc;\n\n // index the corpus, load the doc one by one\n while ((doc = corpus.NextDoc()) != null){\n // get the doc_id and content of the current doc.\n String doc_id = doc.get(\"DOC_ID\");\n String content = doc.get(\"CONTENT\");\n\n // index the doc\n output.IndexADoc(doc_id, content);\n }\n output.close_index_writer();\n }",
"public void handleGTArchiveStatus(Hashtable archiveStatusHT) throws Exception\n {\n String methodName = \"handleGTArchiveRestoreStatus\";\n _logger.logMessage(methodName, null, \"Receving the GT achive status !\");\n ArchiveActivityHelper.obtainArchiveSummaryLock(); //Obtain global lock so that the update on ArchiveSummary, ArchiveJob.properties will in sync\n \n String archiveOp = (String)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_OPERATION);\n if(IGTArchiveConstant.ARCHIVE_OP_ARCHIVE.equals(archiveOp))\n {\n boolean isArchived = IGTArchiveConstant.ARCHIVE_OP_ARCHIVE.equals(archiveOp) ? true : false;\n String archiveType = (String)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_TYPE);\n Boolean isArchiveSuccess = (Boolean)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_STATUS);\n String summaryFilename = (String)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_SUMMARY_FILE);\n String archiveID = (String)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_ID);\n String jobID = (String)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_JOBS_ID);\n boolean isArchiveOrphanRecord = (Boolean)archiveStatusHT.get(IGTArchiveConstant.ARCHIVE_ORPHAN_RECORD);\n Long fromStartDate = (Long)archiveStatusHT.get(IGTArchiveConstant.FROM_START_DATE_TIME);\n Long toStartDate = (Long)archiveStatusHT.get(IGTArchiveConstant.TO_START_DATE_TIME);\n \n _logger.debugMessage(methodName, null,\"isArchived: \"+isArchived+\" archiveRestoreStatusHT: \"+archiveStatusHT);\n \n updateGTArchiveStatus(archiveType,isArchiveSuccess, summaryFilename, archiveID);\n \n if(IGTArchiveConstant.ARCHIVE_TYPE_PI.equals(archiveType) && isArchiveSuccess && ! isArchiveOrphanRecord)\n {\n delegateArchiveByDocumentRequest(archiveID, jobID, fromStartDate, toStartDate);\n }\n \n //update the archive job properties of the current node and the master node\n updateJobStatus(archiveType, jobID, isArchiveSuccess, archiveID, isArchiveOrphanRecord);\n \n }\n }",
"@RequestMapping(value = \"search/async/index\", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE, produces = MediaType.APPLICATION_JSON_VALUE)\n public @ResponseBody String createIndexAsync(@RequestBody String body) {\n Map<String,Object> request = gson.fromJson(body, Map.class);\n Map<String,Object> responseMap = new HashMap<>(0);\n try {\n log.debug(\"starting index creation process in async mode\");\n ftsSearchService.createTsvectorIndexAsync(request);\n responseMap.put(Field.RESULT, \"scheduled\");\n responseMap.put(Field.MESSAGE, \"check later for index create status\");\n responseMap.put(Field.ERROR,false);\n } catch (Exception e) {\n log.error(\"failed index creation {}\",e);\n log.error(\"index create error: {}\",e.getMessage());\n responseMap.put(Field.ERROR,true);\n responseMap.put(Field.ERROR_MSG,e.getMessage());\n }\n return gson.toJson(responseMap);\n }",
"Csar getArchive(String archiveName, String archiveVersion);",
"public void forceUpdateSearchIndexes() throws InterruptedException {\n\t getFullTextEntityManager().createIndexer().startAndWait();\n\t}",
"private IndexingManager() {\n Provider provider = new BouncyCastleProvider();\n Security.addProvider(provider);\n utility = Database_Utility.getInstance();\n conn = utility.getConnection();\n IMbuffer = IndexingManagerBuffer.getInstance();\n\n // This statement is to create purge table.\n\n boolean k = checkTable1(\"PurgeTable\");\n if (!k) {\n utility.createtable2(\"PurgeTable\");\n }\n boolean k1 = checkTable1(\"UserToCertMap\");\n if (!k1) {\n utility.createtable1();\n }\n\n // This statement is to run maintenance thread on loading of class to purge entries whose timer has expired.\n\n //maintenancethread();\n\n // This statement is to run maintenance thread on loading of class to ascertain root nodes.\n\n // maintenancethread1();\n\n // This statement is to run maintenance thread on loading of class to delete entries from purge table.\n\n // maintenancethread2();\n\n }",
"public synchronized void setNewReader(File indexDir) throws IOException{\r\n \tsynchronized (mReaders) {\r\n \t\ttry{\r\n \tList<ReaderContainer> lReader;\r\n \tif (!mReaders.containsKey(indexDir)){\r\n \t\tlReader = new ArrayList<ReaderContainer>();\r\n \t\tlReader.add(new ReaderContainer(IndexReader.open(FSDirectory.open(indexDir))));\r\n \t\tmReaders.put(indexDir, lReader);\r\n \t} else {\r\n \t\tlReader = mReaders.get(indexDir);\r\n \t\t\r\n \t\tif (lReader.size() > 0){\r\n \t\t\tlog.debug(\"setNewReader-STEP1 :: lReader.size() = \" + lReader.size());\r\n// \t\t\tfor (int i = lReader.size() - 1; i >= 0 ; i--) {\r\n// \t\t\t\tReaderContainer readerContainer = lReader.get(i);\r\n \t\t\tReaderContainer readerContainer = lReader.get(lReader.size() - 1);\r\n \t\t\t\r\n \tif (readerContainer.isClosable()){\r\n \t\treaderContainer.close();\r\n \t\tlReader.remove(readerContainer);\r\n \t}\r\n// \t\t\t}\r\n \t}\r\n \t\tlReader.add(new ReaderContainer(IndexReader.open(FSDirectory.open(indexDir))));\r\n \t\tlog.debug(\"setNewReader :: lReader.size() = \" + lReader.size());\r\n \t}\r\n \t\r\n \t\t} catch(Exception ex){\r\n \t\tlog.fatal(\"setNewReader :: mReaders.containsKey(indexDir)\" +mReaders.containsKey(indexDir)+\" indexDir \"+indexDir.getCanonicalPath()+\" ERR:\"+ex);\r\n \t}\r\n\t\t}\r\n }",
"public static void main(String[] args) throws Exception {\n final long startTime = System.currentTimeMillis();\n\n // Parse and assign the input variables:\n String location = args[0];\n int numCharacters = Integer.parseInt(args[1]);\n\n // Load the input file paths into a list:\n File path = new File( new File(location).getAbsolutePath() );\n File[] inputFiles = path.listFiles((File filename) -> filename.getName().endsWith(\".txt\"));\n // Create an array of uninstantiated IndexThread objects (one for each file):\n GlobalIndexThread[] indices = new GlobalIndexThread[inputFiles.length];\n\n // Instantiate each of the IndexThread objects with the file name and character count:\n for (int i = 0; i < inputFiles.length; i++) {\n indices[i] = new GlobalIndexThread(inputFiles[i], numCharacters);\n indices[i].start();\n }\n\n // Test and join the threads:\n for (GlobalIndexThread index : indices) {\n if (index.isAlive()) {\n index.join();\n }\n }\n\n // Build a structure ready to store the processed index prior to printing/writing:\n TreeMap<String, ArrayList<StringBuilder>> finalIndex = new TreeMap<>();\n\n // Write all of the words/keys to the final object, and instantiate a new array of strings:\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> file : fileIndices.entrySet()) {\n for (Map.Entry<String, TreeSet<Integer>> entry : file.getValue().entrySet()) {\n if (!finalIndex.containsKey(entry.getKey().toLowerCase())) {\n finalIndex.put(entry.getKey().toLowerCase(), new ArrayList<>());\n }\n }\n }\n\n // Process each object in fileIndices. If it contains a given key, add the value to the array.\n // Otherwise add an empty string.\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> file : fileIndices.entrySet()) {\n for (Map.Entry<String, ArrayList<StringBuilder>> entry : finalIndex.entrySet()) {\n if (file.getValue().containsKey(entry.getKey())) {\n StringBuilder val = new StringBuilder();\n val.append(joinInts(file.getValue().get(entry.getKey()), \":\"));\n entry.getValue().add(val);\n }\n else {\n StringBuilder filler = new StringBuilder();\n entry.getValue().add(filler);\n }\n }\n }\n\n // Process and print the global index:\n\n // 1. Collect and store the header row:\n StringBuilder header = new StringBuilder();\n header.append(\"Word\");\n for (Map.Entry<File, TreeMap<String, TreeSet<Integer>>> entry : fileIndices.entrySet()) {\n header.append(\", \").append(entry.getKey().getName());\n }\n header.append(\"\\n\");\n\n // 2. Create each row of content:\n StringBuilder content = new StringBuilder();\n for (Map.Entry<String, ArrayList<StringBuilder>> entry : finalIndex.entrySet()) {\n content.append(entry.getKey());\n for (StringBuilder sb : entry.getValue()) {\n content.append(\", \").append(sb);\n }\n content.append(\"\\n\");\n }\n\n // 3. Write the index to a text file:\n try {\n // Build the output filepath:\n File parent = new File(path.getParent());\n String fileName = parent.getAbsolutePath() + \"/output.txt\";\n\n // Open a buffered file writer at the output location:\n BufferedWriter writer = new BufferedWriter(new FileWriter(fileName));\n // Write the index to the file:\n writer.write(header.toString());\n writer.write(content.toString());\n // Close the writer:\n writer.flush();\n writer.close();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n // Print the runtime of the program to the console window (in milliseconds):\n System.out.println(System.currentTimeMillis() - startTime);\n }",
"public void scanZipFile() {\r\n\t\tnew SwingWorker<Void, String>() {\r\n\t\t\tprotected Void doInBackground() throws Exception {\r\n\t\t\t\tZipInputStream zin = new ZipInputStream(new FileInputStream(\r\n\t\t\t\t\t\tzipname));\r\n\t\t\t\tZipEntry entry;\r\n\t\t\t\twhile ((entry = zin.getNextEntry()) != null) {\r\n\t\t\t\t\tpublish(entry.getName());\r\n\t\t\t\t\tzin.closeEntry();\r\n\t\t\t\t}\r\n\t\t\t\tzin.close();\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\r\n\t\t\tprotected void process(List<String> names) {\r\n\t\t\t\tfor (String name : names)\r\n\t\t\t\t\tfileCombo.addItem(name);\r\n\r\n\t\t\t}\r\n\t\t}.execute();\r\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tString index = args[0];\n\t\tString field = \"contents\";\n\t\tString queries = \"resources/query.txt\";\n\t\tString queryString = null;\n\t\tint hitsPerPage = 10;\n\n\t\tIndexReader reader = DirectoryReader.open(FSDirectory.open(new File(\n\t\t\t\tindex)));\n\t\tIndexSearcher searcher = new IndexSearcher(reader);\n\t\tFile stopWordsFile = new File(\"resources/stop.txt\");\n\t\tCharArraySet stopWordsCharArraySet = WordlistLoader.getWordSet(\n\t\t\t\tnew FileReader(stopWordsFile), Version.LUCENE_47);\n\t\tAnalyzer analyzer = new RomanianAnalyzerUsingAnotherConstructorForStopwordAnalyzer(\n\t\t\t\tVersion.LUCENE_47, stopWordsCharArraySet);\n\n\t\tBufferedReader in = null;\n\t\tin = new BufferedReader(new InputStreamReader(new FileInputStream(\n\t\t\t\tqueries), codification));\n\t\tQueryParser parser = new QueryParser(Version.LUCENE_47, field, analyzer);\n\t\twhile (true) {\n\t\t\tString line = in.readLine();\n\t\t\tif (line == null || line.length() == -1) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tline = line.trim();\n\t\t\tif (line.length() == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tQuery query = parser.parse(line);\n\t\t\tSystem.out.println(\"Looking for: \" + query.toString(field));\n\t\t\tdoPagingSearch(in, searcher, query);\n\n\t\t\tif (queryString != null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"public static void main(String[] args) throws Exception {\n\t\tqueryIndexPattern();\n\t\t\n\t}",
"private void archiveDocumentTransaction(Collection<DocumentTransaction> docTransList, ArchiveHelper archiveHelper,\n DocTransDAO docTransDAO)\n throws ArchiveTrailDataException\n {\n String methodName = \"archiveDocumentTransaction\";\n if(docTransList != null && docTransList.size() > 0)\n {\n _logger.logMessage(methodName, null, \"Retrieve doc trans size is \"+docTransList.size());\n \n TraceEventInfoDAO eventDAO = new TraceEventInfoDAO();\n Hashtable<String, Boolean> archivedTracingIDs = new Hashtable<String, Boolean>();\n \n Iterator<DocumentTransaction> ite = docTransList.iterator();\n \n while(ite.hasNext())\n {\n DocumentTransaction docTrans = (DocumentTransaction)ite.next();\n String tracingID = docTrans.getTracingID();\n \n //Check whether some Document transaction from diff Process Trans sharing the same tracing ID. It can happen\n //while in the reprocessing of OB doc. 2 action PIP auto confirmation\n boolean isExistDependentDoc = isExistDependentDocumentTrans(docTrans.getTracingID(), docTrans.getProcessInstanceUID(), docTransDAO);\n if(! isExistDependentDoc)\n {\n if(!archivedTracingIDs.containsKey(tracingID)) //to handle the resend case, auto 3A4C that share the same tracingID\n {\n //archive doc correspond event\n _logger.logMessage(methodName, null, \"Archiving DocumentTrans with UID \"+docTrans.getUID());\n Collection eventInfoList = eventDAO.getTraceEventInfoByTracingID(tracingID);\n archiveTraceEventInfo(eventInfoList, archiveHelper);\n \n //archive event header\n archiveTraceEventInfoHeader(tracingID, eventDAO, archiveHelper);\n \n archivedTracingIDs.put(tracingID, true);\n }\n }\n else\n {\n _logger.logMessage(methodName, null, \"DocumentTransaction \"+docTrans+ \"correspond event history with tracingID \"+tracingID+\"is refered from \" +\n \"other docuemnt transaction. No archive will be performed on the event history list.\");\n }\n \n// archive doc trans\n archiveHelper.addAuditTrailEntity(docTrans, null, archiveHelper.getArchiveZipCategory()+IArchiveConstant.CATEGORY_DOC_TRANS);\n deleteAuditTrailEntity(eventDAO, docTrans);\n \n //archvie biz document\n String bizDocumentUID = docTrans.getBizDocumentUID();\n archiveBizDocument(bizDocumentUID, archiveHelper);\n }\n\n }\n }",
"public void search(Indexer indexer, CityIndexer cityIndexer, Ranker ranker, String query, boolean withSemantic, ArrayList<String> chosenCities, ObservableList<String> citiesByTag, boolean withStemming, String saveInPath, String queryId, String queryDescription) {\n String[] originalQueryTerms = query.split(\" \");\n String originQuery = query;\n docsResults = new HashMap<>();\n parser = new Parse(withStemming, saveInPath, saveInPath);\n HashSet<String> docsOfChosenCities = new HashSet<>();\n query = \"\" + query + queryDescription;\n HashMap<String, Integer> queryTerms = parser.parseQuery(query);\n HashMap<String, ArrayList<Integer>> dictionary = indexer.getDictionary();\n if (!withStemming){\n setDocsInfo(saveInPath + \"\\\\docsInformation.txt\");\n }\n else{\n setDocsInfo(saveInPath + \"\\\\docsInformation_stemming.txt\");\n }\n\n\n //add semantic words of each term in query to 'queryTerms'\n if(withSemantic) {\n HashMap<String,ArrayList<String>> semanticWords = ws.connectToApi(originQuery);\n }\n\n //give an ID to query if it's a regular query (not queries file)\n if(queryId.equals(\"\")){\n queryId = \"\" + Searcher.queryID;\n Searcher.queryID++;\n }\n\n String postingDir;\n if (!withStemming) {\n postingDir = \"\\\\indexResults\\\\postingFiles\";\n } else {\n postingDir = \"\\\\indexResults\\\\postingFiles_Stemming\";\n }\n int pointer = 0;\n\n //find docs that contain the terms in the query in their text\n HashMap<String, Integer> queryTermsIgnoreCase = new HashMap<>();\n for (String term : queryTerms.keySet()) {\n String originTerm = term;\n if (!dictionary.containsKey(term.toUpperCase()) && !dictionary.containsKey(term.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(term.toLowerCase())){\n term = term.toLowerCase();\n }\n else {\n term = term.toUpperCase();\n }\n queryTermsIgnoreCase.put(term,queryTerms.get(originTerm));\n pointer = dictionary.get(term).get(2);\n String chunk = (\"\" + term.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsResults'\n if(line != null) {\n findDocsFromLine(line, term);\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their text\n for (String cityTerm : chosenCities) {\n if (!dictionary.containsKey(cityTerm) && !dictionary.containsKey(cityTerm.toLowerCase())) {\n continue;\n }\n if(dictionary.containsKey(cityTerm.toLowerCase())){\n cityTerm = cityTerm.toLowerCase();\n }\n pointer = dictionary.get(cityTerm).get(2);\n // char chunk = indexer.classifyToPosting(term).charAt(0);\n String chunk = (\"\" + cityTerm.charAt(0)).toUpperCase();\n\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + postingDir + \"\\\\posting_\" + chunk + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(0, line.indexOf(\"[\") - 1); //get 'docsListStr'\n String[] docsArr = docs.split(\";\");\n for (String docInfo : docsArr) {\n String doc = docInfo.substring(0, docInfo.indexOf(\": \"));\n while(doc.charAt(0) == ' '){\n doc = doc.substring(1);\n }\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //find docs that contain the chosen cities in their city tag\n if(!chosenCities.isEmpty()){\n for (String cityDicRec: chosenCities) {\n //get pointer to posting from cityDictionary\n try {\n pointer = cityIndexer.getCitiesDictionary().get(cityDicRec);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n //get the relevant line from posting file\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(new File(saveInPath + \"\\\\cityIndexResults\" + \"\\\\posting_city\" + \".txt\")));\n String line = \"\";\n int i = 1;\n while ((line = (br.readLine())) != null) {\n if (i == pointer) {\n break;\n }\n i++;\n }\n br.close();\n\n //get docs from posting line and add them to the data structure 'docsOfChosenCities'\n String docs = line.substring(line.indexOf(\"[\") + 1, line.indexOf(\"]\")); //get 'docsListStr'\n String[] docsArr = docs.split(\"; \");\n for (String doc : docsArr) {\n docsOfChosenCities.add(doc);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n\n ranker.rank(docsResults, docsOfChosenCities, queryTermsIgnoreCase, dictionary, docsInfo,entities, queryId);\n }",
"public static void main(String[] args)\n\t{\n\t\tsqlindexer si=new sqlindexer();\n\t\tsi.indexAll();\n\t\t\n\t\t\n\t}",
"private Reindex() {}",
"private Reindex() {}",
"@Test\n public void testIndexMaintenanceWithIndexOnMethodGetEntries() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"entries.value.getID\",\n SEPARATOR + \"portfolio.getEntries() entries\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForEntries(ri);\n }",
"public void delegateArchiveRequestToGT(Hashtable criteria, String archiveID) throws ArchiveTrailDataException\n {\n String methodName = \"delegateArchiveRequestToGT\";\n \n _logger.logMessage(methodName, null, \"Delegating archive request to GT ..... \");\n String archiveName = (String)criteria.get(IArchiveConstant.ARCHIVE_NAME);\n String description = (String)criteria.get(IArchiveConstant.ARCHIVE_DESCRIPTION);\n Long fromStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_FROM_START_DATE_TIME);\n Long toStartDateTime = (Long)criteria.get(IArchiveConstant.CRITERIA_TO_START_DATE_TIME); \n Boolean archiveOrphanRecord = (Boolean)criteria.get(IArchiveConstant.ARCHIVE_ORPHAN_RECORD);\n String jobID = (String)criteria.get(IArchiveConstant.ARCHIVE_JOBS_ID);\n String archiveType = IGTArchiveConstant.ARCHIVE_TYPE_PI;\n \n boolean isEnabledSearchArchived = false;\n boolean isEnabledRestore = true;\n \n String groupList = (String)criteria.get(IArchiveConstant.GROUP_INFO);\n _logger.logMessage(\"\", null, \"Group List is \"+groupList);\n \n String customerList = mapGroupToCustomerID(groupList);\n _logger.logMessage(\"\", null, \"Customer list is \"+customerList);\n \n //create map msg\n Hashtable<String, Object> archiveCriteria = new Hashtable<String, Object>();\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_NAME, archiveName);\n \n if(description != null)\n {\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_DESCRIPTION, description);\n }\n \n archiveCriteria.put(IGTArchiveConstant.FROM_START_DATE_TIME, fromStartDateTime);\n archiveCriteria.put(IGTArchiveConstant.TO_START_DATE_TIME, toStartDateTime);\n archiveCriteria.put(IGTArchiveConstant.IS_ENABLED_ARCHIVED_SEARCHED, isEnabledSearchArchived);\n archiveCriteria.put(IGTArchiveConstant.IS_ENABLED_RESTORE, isEnabledRestore);\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_ID, archiveID);\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_TYPE, archiveType);\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_OPERATION, IGTArchiveConstant.ARCHIVE_OP_ARCHIVE);\n archiveCriteria.put(IGTArchiveConstant.CUSTOMER_ID, customerList);\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_ORPHAN_RECORD, archiveOrphanRecord);\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_JOBS_ID, jobID);\n \n _logger.logMessage(methodName, null, \"TM Archive Criteria for Process passing to GT is \"+archiveCriteria);\n \n try\n {\n //ArchiveActivityHelper.sendJmsMsg(archiveCriteria, IISATProperty.GT_ARCHIVE_JMS_CATEGORY);\n delegateArchiveRequest(archiveCriteria, IISATProperty.GT_ARCHIVE_JMS_CATEGORY);\n }\n catch(Exception ex)\n {\n archiveCriteria.put(IGTArchiveConstant.ARCHIVE_STATUS, false);\n \n try\n {\n handleGTArchiveStatus(archiveCriteria);\n }\n catch(Exception e)\n {\n _logger.logError(ILogErrorCodes.AT_ARCHIVE_STATUS_UPDATE_ERROR, methodName, null, \"Can't update the archive status. ArchiveID: \"+archiveID+\" jobID: \"+jobID+\" Archive type: \"+archiveType+\" archiveStatus: \"+Boolean.FALSE.toString(), e);\n }\n \n throw new ArchiveTrailDataException(\"Error in sending the archive request to GT \"+ex.getMessage(), ex);\n }\n }",
"ArchiveInfoInterface getArchiveInfo();",
"public List<ArchiveInfo> getArchiveList() {\n return archiveList;\n }",
"protected void index(long from, long to, IndexationListener indexationListener) {\n // Ordering\n if (from > to) {\n long t = from;\n from = to;\n to = t;\n }\n\n // Opens a transaction\n Transaction transaction = transactionService.start();\n try {\n // SVN URL\n SVNURL url = SVNUtils.toURL(subversionConfigurationExtension.getUrl());\n // Filters the revision range using the repository configuration\n long startRevision = indexationConfigurationExtension.getStartRevision();\n from = Math.max(startRevision, from);\n // Filters the revision range using the SVN repository\n long repositoryRevision = subversionService.getRepositoryRevision(url);\n to = Math.min(to, repositoryRevision);\n // Final check of range\n if (from > to) {\n throw new IllegalArgumentException(String.format(\"Cannot index range from %d to %d\", from, to));\n }\n // Log\n logger.info(String.format(\"[indexation] Indexing revisions from %d to %d\", from, to));\n // SVN range\n SVNRevision fromRevision = SVNRevision.create(from);\n SVNRevision toRevision = SVNRevision.create(to);\n // Calls the indexer, including merge revisions\n IndexationHandler handler = new IndexationHandler(indexationListener);\n subversionService.log(url, SVNRevision.HEAD, fromRevision, toRevision, true, true, 0, false, handler);\n } finally {\n transaction.close();\n }\n }",
"public void createIndex() {\n String indexName = INDEX_BASE + \"-\" +\n LocalDateTime.now().format(DateTimeFormatter.ofPattern(\"yyyyMMddHHmmss\"));\n\n Settings settings = Settings.builder()\n .put(\"number_of_shards\", 1)\n .put(\"number_of_replicas\", 0)\n .build();\n CreateIndexRequest request = new CreateIndexRequest(indexName, settings);\n\n String mapping = \"{\\n\" +\n \" \\\"article\\\": {\\n\" +\n \" \\\"properties\\\": {\\n\" +\n \" \\\"title\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"author\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"issue\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"link\\\": {\\n\" +\n \" \\\"type\\\": \\\"keyword\\\"\\n\" +\n \" },\\n\" +\n \" \\\"description\\\": {\\n\" +\n \" \\\"type\\\": \\\"text\\\"\\n\" +\n \" },\\n\" +\n \" \\\"postDate\\\": {\\n\" +\n \" \\\"type\\\": \\\"date\\\",\\n\" +\n \" \\\"format\\\": \\\"yyyy-MM-dd\\\"\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\\n\" +\n \" }\";\n\n request.mapping(\"article\", mapping, XContentType.JSON);\n request.alias(new Alias(INDEX_BASE));\n\n try {\n CreateIndexResponse createIndexResponse = this.client.admin().indices().create(request).get();\n if (!createIndexResponse.isAcknowledged()) {\n throw new ElasticExecutionException(\"Create java_magazine index was not acknowledged\");\n }\n } catch (InterruptedException | ExecutionException e) {\n logger.error(\"Error while creating an index\", e);\n throw new ElasticExecutionException(\"Error when trying to create an index\");\n }\n }",
"public NSEIndexITDImportJob() {\n super() ;\n }",
"@Override\r\n\tprotected Map<String, int[]> doInBackground() throws Exception {\n\t\tcp.SetProgressBarVisabel(true);\r\n\t\tcp.SetProgressBarLabelVisabel(true);\r\n\t\tcp.SetConfirmInfomationVisabel(false);\r\n\t\tcp.setEnable(false);\r\n\t\t\r\n\t\tMap<String,int[]> m=new HashMap<String,int[]>();\r\n\t\tint size=file.size();\r\n\t\tfor(int i=0;i<size;i++){\r\n\t\t\tString s=file.get(i).replaceAll(\"<[^>]+>\",\"\");\t\t//删除html标签\r\n\t\t\tVector<String> obj=sp.t.GetDataID(s);\r\n\t\t\tint[] res=sp.CommitIndex(Path.urlpath,s,Path.indexpath,i,size-1);\r\n\t\t\tm.put(s,res);\r\n\t\t\tif(res[0]==res[1]&&res[0]!=-1&&res[1]!=-1){\r\n\t\t\t\tsp.RemoveData(obj);\r\n\t\t\t\tsp.t.RemoveDataID(s);\r\n\t\t\t}\r\n\t\t\tpublish(\"(\"+(i+1)+\"/\"+size+\")\"+\" \"+s);\r\n\t\t}\r\n\t\treturn m;\r\n\t}",
"public static void main(String args[]) throws Exception{\n\t\tString path_to_index;\r\n\t\ttry{\r\n\t\t\tpath_to_index = args[0];\r\n\t\t\tSearching_query search = new Searching_query(path_to_index);\r\n\t\t\tString query;\r\n\t\t\tboolean flag = true;\r\n\t\t\twhile(flag==true){\r\n\t\t\t input_query = new Scanner(System.in);\r\n\t\t\t System.out.println(\"ENTER QUERY : \");\r\n\t\t\t query = input_query.nextLine();\r\n\t\t\t System.out.println(\"YOUR QUERY IS: \" + query);\r\n\t\t\t /*calculating the start time*/\r\n\t\t\tdouble start_time_of_query = System.currentTimeMillis();\r\n\t\t\t\tsearch.searching_query(query);\r\n\t\t\t\t/*calculating the end time*/\r\n\t\t\tdouble end_time_of_query = System.currentTimeMillis();\r\n\t\t\tdouble timetaken = end_time_of_query - start_time_of_query;\r\n\t\t\tSystem.out.println(\"SEARCH TIME : \"+ timetaken/1000 + \" sec\");\r\n\t\t\t\r\n\t\t\t System.out.print(\"Want next Query (1 for YES,0 for NO)? : \");\r\n\t\t\t if(!(input_query.nextLine()).equalsIgnoreCase(\"1\")){\r\n\t\t\t\t flag = false;\r\n\t\t\t\t System.out.println();\r\n\t\t\t }\r\n\t\t\t}\t\r\n\t\t\t\r\n\t\t\t}\r\n\t\tcatch(ArrayIndexOutOfBoundsException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.out.println(\"EXCEPTION : Enter path of the index folder.\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"abstract void postProcess(long zipSize, SynchronizationRequest[] results)\n throws IOException;",
"public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}",
"public void indexFileOrDirectory(String fileName) throws IOException {\n\t// gets the list of files in a folder (if user has submitted\n\t// the name of a folder) or gets a single file name (is user\n\t// has submitted only the file name)\n\t// ===================================================\n\taddFiles(new File(fileName));\n\n\tint originalNumDocs = writer.numDocs();\n\tfor (File f : queue) {\n\t FileReader fr = null;\n\t try {\n\t\tDocument doc = new Document();\n\n\t\t// ===================================================\n\t\t// add contents of file\n\t\t// ===================================================\n\t\tfr = new FileReader(f);\n\t\tdoc.add(new TextField(\"contents\", fr));\n\t\tdoc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\n\t\tdoc.add(new StringField(\"filename\", f.getName(),\n\t\t\tField.Store.YES));\n\n\t\twriter.addDocument(doc);\n\t\t//System.out.println(\"Added: \" + f);\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Could not add: \" + f);\n\t } finally {\n\t\tfr.close();\n\t }\n\t}\n\n\tint newNumDocs = writer.numDocs();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"************************\");\n\tSystem.out\n\t\t.println((newNumDocs - originalNumDocs) + \" documents added.\");\n\tSystem.out.println(\"************************\");\n\n\tqueue.clear();\n }",
"InstAssignIndex createInstAssignIndex();"
] | [
"0.6303627",
"0.6107907",
"0.56967336",
"0.5647633",
"0.5575114",
"0.55067134",
"0.5362945",
"0.5349123",
"0.53143936",
"0.52806425",
"0.5279508",
"0.5263958",
"0.52527434",
"0.52450144",
"0.5235446",
"0.52199",
"0.5199082",
"0.51973003",
"0.5146097",
"0.5132816",
"0.5130165",
"0.5121926",
"0.51153654",
"0.50503314",
"0.5025599",
"0.50135577",
"0.5011134",
"0.50057966",
"0.49879327",
"0.4981117",
"0.49808434",
"0.4958478",
"0.49577564",
"0.49453363",
"0.4938895",
"0.49366897",
"0.49346152",
"0.49332708",
"0.49122375",
"0.49096027",
"0.49047545",
"0.4893138",
"0.48843288",
"0.48671067",
"0.4833796",
"0.48337105",
"0.48237425",
"0.48173842",
"0.4816143",
"0.4789967",
"0.47834802",
"0.47698393",
"0.47645453",
"0.47581294",
"0.47424886",
"0.47338435",
"0.47327608",
"0.47217977",
"0.47209114",
"0.47066286",
"0.46932647",
"0.46905524",
"0.46903595",
"0.46875966",
"0.46827102",
"0.4680345",
"0.46726745",
"0.4668203",
"0.4666711",
"0.4659307",
"0.46576923",
"0.4648813",
"0.4642712",
"0.46422127",
"0.46357962",
"0.4629692",
"0.46261698",
"0.46201524",
"0.46199727",
"0.4610535",
"0.4609459",
"0.45962945",
"0.45865053",
"0.45858395",
"0.4580462",
"0.45788115",
"0.45788115",
"0.45781007",
"0.45767376",
"0.4576116",
"0.45750245",
"0.45738155",
"0.45631707",
"0.4561733",
"0.4561245",
"0.45591334",
"0.45547676",
"0.45445603",
"0.45441446",
"0.45399252"
] | 0.68807936 | 0 |
Adds the given repo path to the archive indexing queue. | @Lock
void markArchiveForIndexing(RepoPath searchPath); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addToQueue(String path) {\n ArrayList<String> temp = Global.uploadMetaData;\n\n boolean inQueue = checkInQueue(path, temp);\n\n if (!inQueue) {\n temp.add(path);\n }\n\n Global.uploadMetaData = temp;\n }",
"public interface ArchiveIndexer {\n\n /**\n * Async indexes all the archives that were marked.\n * <p>Does not guarantee actual indexing, it is the responsibility of {@link ArchiveIndexer} to decide on indexing\n * or even stop indexing in the middle.\n */\n @Async(delayUntilAfterCommit = true)\n void asyncIndexMarkedArchives();\n\n /**\n * Adds the given repo path to the archive indexing queue.\n */\n @Lock\n void markArchiveForIndexing(RepoPath searchPath);\n\n /**\n * Recursively adds the given repo path to the archive indexing queue.\n * <p>Does not call {@link #asyncIndexMarkedArchives()}, this responsibility left to the client.\n *\n * @param baseRepoPath repository path to start indexing from\n * @param indexAllRepos If true ignores the base repo path and index all the local/cache repositories\n */\n @Async(delayUntilAfterCommit = true)\n void recursiveMarkArchivesForIndexing(@Nullable RepoPath baseRepoPath, boolean indexAllRepos);\n\n /**\n * @param repoPath The repo path to check\n * @return True if the binary file on this repo path is already indexed. False if doesn't exist of not indexed\n */\n boolean isIndexed(RepoPath repoPath);\n\n /**\n * @param sha1 The sha1 of the binary to check\n * @return True if the binary file for this checksum is already indexed. False if doesn't exist of not indexed\n */\n boolean isIndexed(String sha1);\n}",
"public void addToDirQueue(Path pathDir) {\n synchronized (this.queueDir) {\n this.queueDir.add(pathDir);\n }\n }",
"void addPath(String path) {\n\t\t\tsearchPath.add(path);\n\t\t}",
"protected void add(String path) throws IOException {\n String[] command = {SVN, ADD, path};\n run(command, null, null, null);\n }",
"void addIndexForRepository(long repositoryId);",
"public static byte[] updateRepositoryMap(String repo, Map<String, String> add) {\n \t\tMap<String, String> repoMap = assetLoader.getRepositoryMap(repo);\n \t\trepoMap.putAll(add);\n \t\tbyte[] index = assetLoader.createIndexFile(repo);\n \t\ttry {\n \t\t\tassetLoader.storeIndexFile(repo, index);\n \t\t} catch (IOException e) {\n \t\t\tlog.error(\"Couldn't save updated index to local repository cache\", e);\n \t\t\te.printStackTrace();\n \t\t}\n \t\treturn index;\n \t}",
"@Override\n\tpublic void addToQueue() {\n\t}",
"public void add(String path, String url) throws IOException, IllegalArgumentException {\n if (url == null || url.length() == 0 || path == null || path.length() == 0) {\n throw new IllegalArgumentException(\"Zero length path or url\");\n }\n connect();\n writeHeader();\n _dos.writeBytes(\"ADD\\0\");\n _dos.writeInt(url.length() + path.length() + 10);\n _dos.writeInt(path.length() + 1);\n _dos.writeInt(url.length() + 1);\n _dos.writeBytes(path + \"\\0\");\n _dos.writeBytes(url + \"\\0\");\n _baos.writeTo(_out);\n readReply();\n switch(_reply_com) {\n case PushCacheProtocol.OK:\n break;\n case PushCacheProtocol.ERR:\n serverError();\n break;\n default:\n unexpectedReply();\n }\n }",
"public void advPath(BGPPath incPath) {\n this.incUpdateQueue.add(new BGPUpdate(incPath));\n }",
"public AddContentToZip path(final String path) {\n\t\t\tthis.path = path;\n\t\t\treturn this;\n\t\t}",
"private void addFileToTarGz(TarArchiveOutputStream tOut, String path, String base) throws IOException {\n File f = new File(path);\n String entryName = base + f.getName();\n TarArchiveEntry tarEntry = new TarArchiveEntry(f, entryName);\n tOut.putArchiveEntry(tarEntry);\n Platform.runLater(() -> fileLabel.setText(\"Processing \" + f.getPath()));\n\n if (f.isFile()) {\n FileInputStream fin = new FileInputStream(f);\n IOUtils.copy(fin, tOut);\n fin.close();\n tOut.closeArchiveEntry();\n } else {\n tOut.closeArchiveEntry();\n File[] children = f.listFiles();\n if (children != null) {\n for (File child : children) {\n addFileToTarGz(tOut, child.getAbsolutePath(), entryName + \"/\");\n }\n }\n }\n }",
"@Override\n\t\tpublic void add(File explodedAar) {\n if (!isShared(explodedAar))\n files.addAll(getJars(explodedAar));\n\t\t}",
"public JobBuilder archivePath(String archivePath) {\r\n job.setArchivePath(archivePath);\r\n return this;\r\n }",
"public void addPath(Path path)\n\t{\n\t\tpathList.add(path);\n\t}",
"@Override\r\n public void run() {\r\n \t// increases the internal producers counter of the queue by one.\r\n this.directory_queue.registerProducer();\r\n directory_queue.enqueue(this.root);\r\n try {\r\n \taddPath(this.root);\r\n } catch (IllegalArgumentException e) {\r\n \tSystem.err.println(e.toString());\r\n \t//e.printStackTrace();\r\n }\r\n // Unregisters a producer from the queue.\r\n this.directory_queue.unregisterProducer();\r\n }",
"public void addPath(Path aPath) {\n _thePaths.add(aPath);\n }",
"public void addTracksToQueue() {\n for(String uri : getMoreTracks())\n player.queue(uri);\n }",
"public abstract RepositoryOperation getAddOperation(URI repoLocation);",
"public void addSearchPath(String path) {\n if (!path.endsWith(\"/\") && !path.endsWith(\"\\\\\"))\n path = path + \"/\";\n searchPaths.add(path);\n }",
"private void addToQueue (Parcel[] packagesAssigned){\n\n }",
"public void addPath(String path, IPathItem pathItem){\r\n pathsMap.put(path,pathItem);\r\n }",
"public void add(Path path) {\n\t\tthis.possibleSolutionPaths.add(path);\n\t}",
"public FileObject add(String path){\r\n FileObject fileObject = order.add(path);\r\n if (fileObject != null) {\r\n calendar = new DateControll();\r\n }\r\n return fileObject;\r\n }",
"public void produceDirPath(String path) {\n\t\tqueue.lockQueue();\n\t\t\n\t\tqueue.addDirPath(mainDir.getName());\n\t\tqueue.notifyDirPath();\n\t\t\n\t\tqueue.unlockQueue();\n\t}",
"public void addLocation(CmsPath path)\r\n {\r\n locations.add(path);\r\n }",
"void enqueue(T item) {\n contents.addAtTail(item);\n }",
"public void addJARFolder() {\n btAddJARFolder().push();\n }",
"public void addPath(File path) throws IllegalArgumentException {\r\n File[] PathFiles;\r\n if (path.isDirectory() == true) {\r\n \tPathFiles = path.listFiles();\r\n for (int i=0; i<PathFiles.length; i++) {\r\n \tFile currentfile = PathFiles[i];\r\n if (currentfile.isDirectory()) {\r\n \tdirectory_queue.enqueue(currentfile);\r\n \taddPath(currentfile);\r\n }\r\n }\r\n } else {\r\n throw new IllegalArgumentException(\"Can't resolve the directory path \" + path);\r\n }\r\n }",
"public void add(FileSystemEntry entry);",
"public void addHandle(RepositoryServerHandleImpl handle) {\n\t\tsynchronized (handleList) {\n\t\t\thandleList.add(handle);\n\t\t}\n\t}",
"public void doAddPlaceable(TreePath path) {\n \n \t\tNode node = (Node) path.getLastPathComponent();\n \t\t// load and add palceable to tree here\n \t\trepaint();\n \t}",
"public AddFileToZip path(final String path) {\n\t\t\tthis.path = path;\n\t\t\treturn this;\n\t\t}",
"public static void addSongs(String path) {\n try {\n InputStream stream = plugin.getResource(path);\n byte[] bytes = new byte[0];\n if (stream != null) {\n bytes = new byte[stream.available()];\n stream.read(bytes);\n File file = new File(\"plugins/GuitarPlugin/\" + path);\n OutputStream out = new FileOutputStream(file);\n out.write(bytes);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public static synchronized void indexDocuments(Queue<CodeIndexDocument> codeIndexDocumentQueue) throws IOException {\n // Index all documents and commit at the end for performance gains\n Directory dir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.INDEXLOCATION, Values.DEFAULTINDEXLOCATION)));\n Directory facetsdir = FSDirectory.open(Paths.get(Properties.getProperties().getProperty(Values.FACETSLOCATION, Values.DEFAULTFACETSLOCATION)));\n\n Analyzer analyzer = new CodeAnalyzer();\n IndexWriterConfig iwc = new IndexWriterConfig(analyzer);\n FacetsConfig facetsConfig = new FacetsConfig();\n SearchcodeLib scl = new SearchcodeLib();\n\n iwc.setOpenMode(IndexWriterConfig.OpenMode.CREATE_OR_APPEND);\n\n IndexWriter writer = new IndexWriter(dir, iwc);\n TaxonomyWriter taxoWriter = new DirectoryTaxonomyWriter(facetsdir);\n\n\n try {\n CodeIndexDocument codeIndexDocument = codeIndexDocumentQueue.poll();\n int count = 0;\n\n while (codeIndexDocument != null) {\n Singleton.getLogger().info(\"Indexing file \" + codeIndexDocument.getRepoLocationRepoNameLocationFilename());\n Singleton.decrementCodeIndexLinesCount(codeIndexDocument.getCodeLines());\n\n Document doc = new Document();\n // Path is the primary key for documents\n // needs to include repo location, project name and then filepath including file\n Field pathField = new StringField(\"path\", codeIndexDocument.getRepoLocationRepoNameLocationFilename(), Field.Store.YES);\n doc.add(pathField);\n\n // Add in facets\n facetsConfig = new FacetsConfig();\n facetsConfig.setIndexFieldName(Values.LANGUAGENAME, Values.LANGUAGENAME);\n facetsConfig.setIndexFieldName(Values.REPONAME, Values.REPONAME);\n facetsConfig.setIndexFieldName(Values.CODEOWNER, Values.CODEOWNER);\n\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getLanguageName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getRepoName()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.REPONAME, codeIndexDocument.getRepoName()));\n }\n if (Helpers.isNullEmptyOrWhitespace(codeIndexDocument.getCodeOwner()) == false) {\n doc.add(new SortedSetDocValuesFacetField(Values.CODEOWNER, codeIndexDocument.getCodeOwner()));\n }\n\n String indexContents = Values.EMPTYSTRING;\n\n Singleton.getLogger().info(\"Splitting keywords\");\n indexContents += scl.splitKeywords(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Cleaning pipeline\");\n indexContents += scl.codeCleanPipeline(codeIndexDocument.getContents());\n Singleton.getLogger().info(\"Adding to spelling corrector\");\n scl.addToSpellingCorrector(codeIndexDocument.getContents()); // Store in spelling corrector\n\n indexContents = indexContents.toLowerCase();\n\n doc.add(new TextField(Values.REPONAME, codeIndexDocument.getRepoName(), Field.Store.YES));\n doc.add(new TextField(Values.FILENAME, codeIndexDocument.getFileName(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATION, codeIndexDocument.getFileLocation(), Field.Store.YES));\n doc.add(new TextField(Values.FILELOCATIONFILENAME, codeIndexDocument.getFileLocationFilename(), Field.Store.YES));\n doc.add(new TextField(Values.MD5HASH, codeIndexDocument.getMd5hash(), Field.Store.YES));\n doc.add(new TextField(Values.LANGUAGENAME, codeIndexDocument.getLanguageName(), Field.Store.YES));\n doc.add(new IntField(Values.CODELINES, codeIndexDocument.getCodeLines(), Field.Store.YES));\n doc.add(new TextField(Values.CONTENTS, indexContents, Field.Store.NO));\n doc.add(new TextField(Values.REPOLOCATION, codeIndexDocument.getRepoRemoteLocation(), Field.Store.YES));\n doc.add(new TextField(Values.CODEOWNER, codeIndexDocument.getCodeOwner(), Field.Store.YES));\n\n // Extra metadata in this case when it was last indexed\n doc.add(new LongField(Values.MODIFIED, new Date().getTime(), Field.Store.YES));\n\n writer.updateDocument(new Term(Values.PATH, codeIndexDocument.getRepoLocationRepoNameLocationFilename()), facetsConfig.build(taxoWriter, doc));\n\n count++;\n if (count >= 1000) { // Only index 1000 documents at most each time\n codeIndexDocument = null;\n }\n else {\n codeIndexDocument = codeIndexDocumentQueue.poll();\n }\n\n }\n }\n finally {\n Singleton.getLogger().info(\"Closing writers\");\n writer.close();\n taxoWriter.close();\n }\n }",
"@Override\r\n public void setArchive(String archive) {\n }",
"public boolean archive(String owner, String repo, String archive) {\n return apiClient.get(String.format(\"/repos/%s/%s/archive/%s\", owner, repo, archive)).isOk();\n }",
"public void addFromJAR() {\n btAddFromJAR().push();\n }",
"public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}",
"void addToQueue(WebhookMessage msg);",
"public void addInvokeLater(DirItem item) {\n\t\tsynchronized (stack) {\n\t\t\tstack.add(0, item);\n\t\t}\n\n\t\tsynchronized (thread) {\n\t\t\t// Starts the worker thread if waiting\n\t\t\tthread.notify();\n\t\t}\n\t}",
"public void add(File toAdd, boolean alsoRemove)\n \tthrows Exception {\n \t\tValidate.notNull(toAdd, \"File toAdd must not be null!\");\n \t\t\n \t\tfinal File root = db.getWorkDir();\n \t\tfinal String toAddCanon = toAdd.getCanonicalPath();\n \t\tfinal String rootCanon = root.getCanonicalPath();\n \t\t\n \t\tValidate.isTrue(toAddCanon.startsWith(rootCanon),\n \t\t\t\t\"File toAdd must be within repository {0} but is {1}!\", root, toAdd);\n \n \t\tfinal ObjectWriter ow = new ObjectWriter(db);\n \t\tfinal DirCache dc = DirCache.lock(db);\n \t\tfinal DirCacheBuilder edit = dc.builder();\n \t\tfinal TreeWalk tw = new TreeWalk(db);\n \t\ttw.reset();\n \t\tif (toAddCanon.equals(rootCanon))\n \t\t\ttw.setFilter(TreeFilter.ALL);\n \t\telse\n \t\t\ttw.setFilter(PathFilter.create(toAddCanon.substring(\n \t\t\t\t\trootCanon.length() + 1).replace('\\\\', '/')));\n \t\ttw.addTree(new DirCacheBuildIterator(edit));\n \t\ttw.addTree(new FileTreeIterator(root));\n \t\twhile (tw.next()) {\n \t\t\tfinal DirCacheBuildIterator i;\n \t\t\tfinal FileTreeIterator d;\n \t\t\tfinal DirCacheEntry e;\n \t\t\t\n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\t// Entry doesn't yet exist in the index. If its an ignored\n \t\t\t\t// path name, skip over the entry.\n \t\t\t\t//\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\tif (ignores.isIgnored(f))\n \t\t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tif (tw.isSubtree()) {\n \t\t\t\t// The index doesn't allow trees directly, we need to\n \t\t\t\t// recurse and process only leaf nodes.\n \t\t\t\t//\n \t\t\t\ttw.enterSubtree();\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\ti = tw.getTree(0, DirCacheBuildIterator.class);\n \t\t\td = tw.getTree(1, FileTreeIterator.class);\n \n \t\t\tif (tw.getRawMode(0) == 0) {\n \t\t\t\te = new DirCacheEntry(tw.getRawPath());\n \t\t\t\tedit.add(e);\n \n \t\t\t} else if (tw.getRawMode(1) == 0) {\n \t\t\t\t// Entry is no longer in the directory, but is still in the\n \t\t\t\t// index. If we aren't supposed to process removals, keep\n \t\t\t\t// the entry in the cache.\n \t\t\t\t//\n \t\t\t\tif (!alsoRemove)\n \t\t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else if (FileMode.SYMLINK.equals(tw.getFileMode(0))) {\n \t\t\t\t// Entry exists as a symlink. We can't process that in Java.\n \t\t\t\t//\n \t\t\t\tedit.add(i.getDirCacheEntry());\n \t\t\t\tcontinue;\n \n \t\t\t} else {\n \t\t\t\te = i.getDirCacheEntry();\n \t\t\t\tedit.add(e);\n \t\t\t}\n \n \t\t\tfinal FileMode mode = d.getEntryFileMode();\n \t\t\tif (FileMode.GITLINK.equals(mode)) {\n \t\t\t\t// TODO: FileTreeIterator doesn't implement objectId right\n \t\t\t\t// for a GITLINK yet.\n \t\t\t\t//\n \t\t\t\te.setLength(0);\n \t\t\t\te.setLastModified(0);\n \t\t\t\te.setObjectId(d.getEntryObjectId());\n \n \t\t\t} else if (e.getLength() != d.getEntryLength()\n \t\t\t\t\t|| !timestampMatches(e, d)) {\n \t\t\t\tfinal File f = new File(root, tw.getPathString());\n \t\t\t\te.setLength((int) d.getEntryLength());\n \t\t\t\te.setLastModified(d.getEntryLastModified());\n \t\t\t\te.setObjectId(ow.writeBlob(f));\n \t\t\t}\n \t\t\te.setFileMode(mode);\n \t\t}\n \t\tif (!edit.commit())\n \t\t\tthrow new IOException(\"Can't update index\");\n \t}",
"@SneakyThrows\n public void addURL(Path path) {\n if (ADD_URL == null || this.classLoader == null) {\n return;\n }\n try {\n ADD_URL.invoke(this.classLoader, path.toUri().toURL());\n } catch (IllegalAccessException | InvocationTargetException | MalformedURLException e) {\n e.printStackTrace();\n }\n }",
"public void addArtifact(ArtifactModel artifact);",
"public void addSong(String song){\n\t\tqueueInsertion(song);\n\t}",
"private void referenceAdd(Integer cacheKey, String filePath)\n {\n mLinkedHashMap.put(cacheKey, filePath);\n cacheSize = mLinkedHashMap.size();\n\n // Get current file size and sum with existing file size\n int curFileSize = (int) new File(filePath).length();\n cacheByteSize = cacheByteSize + curFileSize;\n }",
"public void addPath(PathItem pathItem) {\r\n pathItems.add(pathItem);\r\n }",
"public void add(IEvent event){\r\n\t\tqueue.add(event);\r\n\t}",
"public void add(AState state){ this.path_solution.add(0,state);}",
"public abstract void add(T item) throws RepositoryException;",
"public static void enQueue(Queue q, String entry){ \n if (q.queuesize < q.names.length){ //If the queue isn't full - Size of queue is less than the set array size \n q.names[q.queuesize] = entry; //Set the value at the index of queue size to the input (Using the array in the Queue class to store this)\n q.queuesize +=1; //Increment the size of queue \n }\n }",
"private void sendTransactionQueue(final List<TransactionData> queue, final Path path) {\n List<Long> setsToIgnore = new ArrayList<Long>();\n for (TransactionData txn : queue) {\n setsToIgnore.add(txn.currentWriteId);\n }\n\n Node latestState = this.getLatestState(path, setsToIgnore);\n Node snapToSend = latestState;\n String latestHash = \"badhash\";\n if (!hijackHash) {\n latestHash = latestState.getHash();\n }\n\n for (TransactionData txn : queue) {\n hardAssert(\n txn.status\n == TransactionStatus.RUN); // sendTransactionQueue: items in queue should all be run.'\n txn.status = TransactionStatus.SENT;\n txn.retryCount++;\n Path relativePath = Path.getRelative(path, txn.path);\n // If we've gotten to this point, the output snapshot must be defined.\n snapToSend = snapToSend.updateChild(relativePath, txn.currentOutputSnapshotRaw);\n }\n\n Object dataToSend = snapToSend.getValue(true);\n\n final Repo repo = this;\n\n // Send the put.\n connection.compareAndPut(\n path.asList(),\n dataToSend,\n latestHash,\n new RequestResultCallback() {\n @Override\n public void onRequestResult(String optErrorCode, String optErrorMessage) {\n DatabaseError error = fromErrorCode(optErrorCode, optErrorMessage);\n warnIfWriteFailed(\"Transaction\", path, error);\n List<Event> events = new ArrayList<Event>();\n\n if (error == null) {\n List<Runnable> callbacks = new ArrayList<Runnable>();\n for (final TransactionData txn : queue) {\n txn.status = TransactionStatus.COMPLETED;\n events.addAll(\n serverSyncTree.ackUserWrite(\n txn.currentWriteId, /*revert=*/ false, /*persist=*/ false, serverClock));\n\n // We never unset the output snapshot, and given that this\n // transaction is complete, it should be set\n Node node = txn.currentOutputSnapshotResolved;\n final DataSnapshot snap =\n InternalHelpers.createDataSnapshot(\n InternalHelpers.createReference(repo, txn.path), IndexedNode.from(node));\n\n callbacks.add(\n new Runnable() {\n @Override\n public void run() {\n txn.handler.onComplete(null, true, snap);\n }\n });\n // Remove the outstanding value listener that we added\n removeEventCallback(\n new ValueEventRegistration(\n Repo.this,\n txn.outstandingListener,\n QuerySpec.defaultQueryAtPath(txn.path)));\n }\n\n // Now remove the completed transactions\n pruneCompletedTransactions(transactionQueueTree.subTree(path));\n\n // There may be pending transactions that we can now send\n sendAllReadyTransactions();\n\n repo.postEvents(events);\n\n // Finally, run the callbacks\n for (int i = 0; i < callbacks.size(); ++i) {\n postEvent(callbacks.get(i));\n }\n } else {\n // transactions are no longer sent. Update their status appropriately\n if (error.getCode() == DatabaseError.DATA_STALE) {\n for (TransactionData transaction : queue) {\n if (transaction.status == TransactionStatus.SENT_NEEDS_ABORT) {\n transaction.status = TransactionStatus.NEEDS_ABORT;\n } else {\n transaction.status = TransactionStatus.RUN;\n }\n }\n } else {\n for (TransactionData transaction : queue) {\n transaction.status = TransactionStatus.NEEDS_ABORT;\n transaction.abortReason = error;\n }\n }\n\n // since we reverted mergedData, we should re-run any remaining\n // transactions and raise events\n rerunTransactions(path);\n }\n }\n });\n }",
"public int add(int index, Path item) {\n // Gracefully handle items beyond end\n final int size = mItems.size();\n index = constrain(index, 0, size);\n\n mItems.add(index, item);\n return index;\n }",
"public void addResultList(String path) {\n synchronized (this.paths) {\n this.paths.add(path);\n }\n }",
"public scheduleAsyncPersistence_args setPath(String path) {\n this.path = path;\n return this;\n }",
"public KeywordMapperImpl addNewPath(String path){\n\t\tpaths.add(path);\n\t\treturn this;\n\t}",
"public void add(DVDPackage dvd){\n\t\tqueue.addLast(dvd);\n\t}",
"DexArchive(BundleArchiveImpl ba, FileTree dir, int rev) {\n super(ba, dir, rev);\n }",
"@NonNull\n\t\tBuilder addFile(@NonNull String path);",
"public void add(int pos, String dir) throws IndexOutOfBoundsException {\n list.add(pos, dir);\n }",
"public void add(E e) throws FileQueueClosedException;",
"private static void addLibraryPath(String pathToAdd) throws Exception{\n\t\tfinal Field usrPathsField = ClassLoader.class.getDeclaredField(\"usr_paths\");\n\t\tusrPathsField.setAccessible(true);\n\t \n\t\t//get array of paths\n\t\tfinal String[] paths = (String[])usrPathsField.get(null);\n\t \n\t\t//check if the path to add is already present\n\t\tfor(String path : paths) {\n\t\t\tif(path.equals(pathToAdd)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t \n\t\t//add the new path\n\t\tfinal String[] newPaths = Arrays.copyOf(paths, paths.length + 1);\n\t\tnewPaths[newPaths.length-1] = pathToAdd;\n\t\tusrPathsField.set(null, newPaths);\n\t}",
"@NonNull\n\t\tBuilder addFile(@NonNull Path path);",
"private static void indexFromJarFile(InputStream in) throws IOException {\n\n\t\tZipInputStream zis = new ZipInputStream(in);\n\t\tZipEntry e;\n\n\t\twhile((e = zis.getNextEntry()) != null) {\n\n\t\t\tString name = e.getName();\n\t\t\tzis.closeEntry();\n\n\t\t\tif(name.contains(relationRepositoryPath) && name.endsWith(classExtension)) {\n\n\t\t\t\taddToIndex(name.replace(jarFileRelationRepositoryPath, \"\"));\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t}",
"public JBIArchive(String pathName) throws Exception {\n this(new File(pathName));\n }",
"private void addMessageToQueue( byte[] buffer ){\n \tsynchronized (this.messages) {\n byte message[] = new byte[buffer.length\n - Constants.MESSAGE_ID_LEN - 1];\n for (int i = Constants.MESSAGE_ID_LEN + 1; i < buffer.length; i++) {\n message[i - Constants.MESSAGE_ID_LEN - 1] = buffer[i];\n }\n messages.add(message);\n }\n }",
"private void addProjectPath(final Path path) {\n addToClassPool(path);\n\n if (path.toFile().isFile() && path.toString().endsWith(\".jar\")) {\n addJarClasses(path);\n } else if (path.toFile().isDirectory()) {\n addDirectoryClasses(path, Paths.get(\"\"));\n } else {\n throw new IllegalArgumentException(\"The project path '\" + path + \"' must be a jar file or a directory\");\n }\n }",
"public void pushToStack(Directory dir) {\n directoryStack.push(dir);\n }",
"@Override\n\t\tpublic void pubPath(Uri path) throws RemoteException {\n\t\t}",
"private boolean addJournal(Journal journal) {\n\t\tfor (int i = 0; i < items.size(); i++)\n\t\t\tif (items.get(i).keyEquals(journal))\n\t\t\t\treturn false;\n\t\titems.add(journal);\n\t\treturn true;\n\t}",
"void addPathFromStart() {\n for (String aPathFromStart : pathFromStart) {\n newFutureTargets.push(aPathFromStart);\n }\n }",
"public void addStorageBinToAssemblyLine(StorageBin bin, int identifier) {\n\t\tfor(int i = 0; i < lines.size(); i++) {\n\t\t\tif(lines.get(i).getIdentifier() == identifier) {\n\t\t\t\tlines.get(i).addStorageBin(bin);\n\t\t\t}\n\t\t}\n\t}",
"public ParsingResult<Csar> upload(Path path) throws ParsingException, CSARVersionAlreadyExistsException {\n // TODO issue tolerance should depends of the version (SNAPSHOT) ?\n\n // parse the archive.\n ParsingResult<ArchiveRoot> parsingResult = parser.parse(path);\n postProcessor.postProcess(parsingResult);\n\n String archiveName = parsingResult.getResult().getArchive().getName();\n String archiveVersion = parsingResult.getResult().getArchive().getVersion();\n\n // check if the archive already exists\n Csar archive = csarService.getIfExists(archiveName, archiveVersion);\n if (archive != null) {\n if (!VersionUtil.isSnapshot(archive.getVersion())) {\n // Cannot override RELEASED CSAR .\n throw new CSARVersionAlreadyExistsException(\"CSAR: \" + archiveName + \", Version: \" + archiveVersion + \" already exists in the repository.\");\n }\n }\n\n ArchiveRoot archiveRoot = parsingResult.getResult();\n if (archiveRoot.hasToscaTopologyTemplate()) {\n AuthorizationUtil.checkHasOneRoleIn(Role.ARCHITECT, Role.ADMIN);\n }\n if (archiveRoot.hasToscaTypes()) {\n AuthorizationUtil.checkHasOneRoleIn(Role.COMPONENTS_MANAGER, Role.ADMIN);\n }\n\n ParsingResult<Csar> simpleResult = toSimpleResult(parsingResult);\n\n if (ArchiveUploadService.hasError(parsingResult, null)) {\n // save the parsing results so users can keep track of the warnings or infos from parsing.\n archiveRepositry.storeParsingResults(archiveName, archiveVersion, simpleResult);\n\n // check if any blocker error has been found during parsing process.\n if (ArchiveUploadService.hasError(parsingResult, ParsingErrorLevel.ERROR)) {\n // do not save anything if any blocker error has been found during import.\n return toSimpleResult(parsingResult);\n }\n }\n\n // save the archive (before we index and save other data so we can cleanup if anything goes wrong).\n csarService.save(parsingResult.getResult().getArchive());\n // save the archive in the repository\n archiveRepositry.storeCSAR(archiveName, archiveVersion, path);\n // manage images before archive storage in the repository\n imageLoader.importImages(path, parsingResult);\n // index the archive content in elastic-search\n archiveIndexer.indexArchive(archiveName, archiveVersion, parsingResult.getResult(), archive != null);\n \n // if a topology has been added we want to notify the user\n if (parsingResult.getResult().getTopology() != null) {\n Topology topology = parsingResult.getResult().getTopology();\n if (archiveRoot.hasToscaTypes()) {\n // the archive contains types\n // we assume those types are used in the embedded topology\n // so we add the dependency to this CSAR\n CSARDependency selfDependency = new CSARDependency(archiveRoot.getArchive().getName(), archiveRoot.getArchive().getVersion());\n topology.getDependencies().add(selfDependency);\n }\n\n String topologyTemplateName = topologyServiceCore.ensureNameUnicity(archiveName + \"-\" + archiveVersion, 0);\n simpleResult\n .getContext()\n .getParsingErrors()\n .add(new ParsingError(ParsingErrorLevel.INFO, ErrorCode.TOPOLOGY_DETECTED, \"\", null, \"A topology template has been detected\", null,\n topologyTemplateName));\n\n topologyServiceCore.createTopologyTemplate(topology, topologyTemplateName, parsingResult.getResult().getTopologyTemplateDescription());\n }\n\n return simpleResult;\n }",
"public void archiveVersion(String token, String projectKey, String versionName, boolean archive) throws\r\n JiraManagerException {\r\n Util.logEnter(log, \"archiveVersion\", token, projectKey, versionName, archive);\r\n Util.checkString(log, \"token\", token);\r\n Util.checkString(log, \"projectKey\", projectKey);\r\n Util.checkString(log, \"versionName\", versionName);\r\n\r\n try {\r\n getJiraManagementServicePort().archiveVersion(token, projectKey, versionName, archive);\r\n Util.logExit(log, \"archiveVersion\");\r\n } catch (JiraServiceException e) {\r\n throw processError(e);\r\n }\r\n }",
"public boolean addToSortedQueue(ArrayList<Integer> job) throws RemoteException;",
"private void addFileToQueue(JavaScriptObject nativeFile) {\n this.nativeFilesQueued.add(nativeFile);\n this.nativeFilesQueuedById.put(nativeFile.<File>cast().getId(), nativeFile);\n\n // need to keep the global stats up to date manually\n nativeSetProperty(getStats(), FILES_QEUED, this.nativeFilesQueued.size());\n\n // If requested, notify the app each time a new file is added to the queue\n if (this.fileQueuedHandler != null) {\n this.fileQueuedHandler.onFileQueued(\n new FileQueuedEvent(\n nativeUpdateFileProperties(nativeFile,\n File.Status.QUEUED.toInt()).<File>cast()\n )\n );\n }\n }",
"public void pushDirectory(Directory directory) {\r\n directoryStack.push(directory);\r\n }",
"private void addToHistory(String msg){\n\t\ttry{\n\t\t\tlockHistory.writeLock().lock();\n\t\t\thistory.add(msg);\n\t\t\tlogOut.write(msg);\n\t\t\tlogOut.newLine();\n\t\t\tlogOut.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tlockHistory.writeLock().unlock();\n\t\t}\n\t}",
"protected void add(Query query) {\n queries.add(query);\n executeThread();\n }",
"public void addTrackerListener(IXArchRelativePathTrackerListener listener) {\n listeners.add(listener);\n }",
"public void addItem(RpgJournal journal){\n boolean journalExists = false;\n for(int i = 0; i < journals.size(); i++){\n if(journal.getId().equals(journals.get(i).getId()))\n journalExists = true;\n }\n\n if(!journalExists){\n journals.add(journal);\n this.notifyItemInserted(journals.size()-1);\n }\n }",
"private boolean psDoAddAsset(String assetPath, String localAssetPath) {\n downloadedProjectAssets.put(assetPath, localAssetPath);\n if (DEBUG) {\n System.out.println(\"Adding asset \" + assetPath);\n }\n final String assetName = assetNameFromAssetPath(assetPath);\n return psPushAssetToPhone(assetName, localAssetPath, false);\n }",
"private void indexItem(IndexDocument indexDoc) {\n if(bDebug) System.out.println(\"\\n*** document to index - \" + indexDoc);\n Indexer indexer=null;\n try {\n indexer=new Indexer(PetstoreConstants.PETSTORE_INDEX_DIRECTORY, false);\n PetstoreUtil.getLogger().log(Level.FINE, \"Adding document to index: \" + indexDoc.toString());\n indexer.addDocument(indexDoc);\n } catch (Exception e) {\n PetstoreUtil.getLogger().log(Level.WARNING, \"index.exception\", e);\n e.printStackTrace();\n } finally {\n try {\n // must close file or will not be able to reindex\n if(indexer != null) {\n indexer.close();\n }\n } catch (Exception ee) {\n ee.printStackTrace();\n }\n }\n }",
"public Builder addJar(\n int index, com.google.devtools.kythe.proto.Java.JarDetails.Jar.Builder builderForValue) {\n if (jarBuilder_ == null) {\n ensureJarIsMutable();\n jar_.add(index, builderForValue.build());\n onChanged();\n } else {\n jarBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }",
"public void addPackage(String path) {\n\t\tscopeStack.peek().addPath(path);\n\t}",
"@Override\r\n protected void addPath(File path, int depth) throws SAXException {\r\n List<ZipEntry> contents = new ArrayList<ZipEntry>();\r\n if (depth > 0) {\r\n ZipFile zipfile = null;\r\n try {\r\n zipfile = new ZipFile(path, Charset.forName(\"UTF-8\"));\r\n Enumeration<? extends ZipEntry> entries = zipfile.entries();\r\n while (entries.hasMoreElements()) contents.add((ZipEntry)entries.nextElement());\r\n } catch (ZipException e) {\r\n throw new SAXException(e);\r\n } catch (IOException e) {\r\n throw new SAXException(e);\r\n } finally {\r\n if (zipfile != null) {\r\n try {\r\n zipfile.close();\r\n } catch (IOException e) {\r\n }\r\n }\r\n } // finally\r\n } // if depth > 0\r\n startNode(DIR_NODE_NAME, path);\r\n processZipEntries(contents, \"\", depth);\r\n endNode(DIR_NODE_NAME);\r\n }",
"public synchronized void addMetadataToQueue(FileMetadata fileMetadata){\n queue.add(fileMetadata);\n notifyAll();\n }",
"private void addToRepoList(String repoName, String lastUpdated) {\n String strRow = repoName + \" / \" + lastUpdated;\n String currentText = tvRepoList.getText().toString();\n this.tvRepoList.setText(currentText + \"\\n\\n\" + strRow);\n }",
"@Override\n\tprotected void doAction(Object message) {\n\t\tlogger.info(\"File Scanner Fetch message Name -->:\"+message.toString());\n\t\ttry {\n\t\t\tFileParser.queue.put(message);\n\t\t} catch (InterruptedException e) {\n\t\t\tlogger.error(\"Error on add message to Parser\");\n\t\t}\n\t}",
"public void addToMessageQueue(String message)\r\n {\r\n messageQueue.appendText(message + \"...\" + \"\\n\");\r\n }",
"public void addItem(String itemPath) {\n\n\t\tImage img = new Image(itemPath);\n\t\titemsList.add(img);\n\n\t}",
"public void addArchive (Particle p) {\n\t\tArchive a = new Archive(p.getPosition(),p.getFitness(),this.countArchiveParticleId);\n\t\tthis.countArchiveParticleId++;\n\t\tif(this.archive.size()==this.archiveSize) {\n\t\t\tthis.removeArchive();\n\t\t}\n\t\tdouble[] pFitness = p.getFitness();\n\t\tdouble[] archiveFitness =new double[3];\n\t\tif(this.archive.size()==0) {\n\t\t\tthis.archive.add(a);\n\t\t}else {\n\t\t\tfor(int i =0; i<this.archive.size();i++) {\n\t\t\t\tarchiveFitness =this.archive.get(i).getFitness();\n\t\t\t\tif(pFitness[0]<=archiveFitness[0]) {\n\t\t\t\t\tthis.archive.add(i, a);\n\t\t\t\t\tSystem.out.print(\"addmiddle\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif(i==this.archive.size()-1) {\n\t\t\t\t\tthis.archive.add(a);\n\t\t\t\t\tSystem.out.print(\"addEnd\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public <T> void addToRequestQueue(Request<T> request) {\n getRequestQueue().add(request); // Add the specified request to the request queue\n }",
"public void indexFileOrDirectory(String fileName) {\r\n\r\n addFiles(new File(fileName));\r\n\r\n int originalNumDocs = writer.numRamDocs();\r\n for (File f : queue) {\r\n try {\r\n Document doc = new Document();\r\n\r\n // Creation of a simpledateformatter in order to print the last-modified-date of our files.\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\r\n String date = sdf.format(f.lastModified());\r\n\r\n if (f.getName().endsWith(\".html\")) {\r\n\r\n // Creation of a jsoup document to help us with our html parsing.\r\n org.jsoup.nodes.Document htmlFile = Jsoup.parse(f, null);\r\n String body = htmlFile.body().text();\r\n String title = htmlFile.title();\r\n String summary = getSummary(htmlFile);\r\n\r\n\r\n doc.add(new TextField(\"contents\", body + \" \" + title + \" \" + date, Field.Store.YES));\r\n doc.add(new TextField(\"title\", title, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n doc.add(new StringField(\"summary\", summary, Field.Store.YES));\r\n\r\n }\r\n else {\r\n String content = FileUtils.readFileToString(f, StandardCharsets.UTF_8);\r\n\r\n doc.add(new TextField(\"contents\", content + \" \" + date, Field.Store.YES));\r\n doc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\r\n doc.add(new TextField(\"modified-date\", date, Field.Store.YES));\r\n }\r\n doc.add(new StringField(\"filename\", f.getName(), Field.Store.YES));\r\n\r\n writer.addDocument(doc);\r\n System.out.println(\"Added: \" + f);\r\n } catch (Exception e) {\r\n System.out.println(\"Could not add: \" + f);\r\n }\r\n }\r\n\r\n int newNumDocs = writer.numDocs();\r\n System.out.println(\"\");\r\n System.out.println(\"************************\");\r\n System.out.println((newNumDocs - originalNumDocs) + \" documents added.\");\r\n System.out.println(\"************************\");\r\n\r\n queue.clear();\r\n }",
"protected File createIndexingArchive(String format, String jobId, JSONObject jobObject, String indexType, String query) throws IOException {\n\t\tFile archive = File.createTempFile(jobId, \".zip.tmp\");\n\t\tFileOutputStream fos = null;\n\t\tZipOutputStream zos = null;\n\n\t\t// try to add to the archive\n\t\ttry {\n\t\t\tfos = new FileOutputStream(archive);\n\t\t\tzos = new ZipOutputStream(fos);\n\t\t\tlogger.debug(String.format(\" [%s] Archive file: %s\", jobId, archive.getAbsolutePath()));\n\n\t\t\tJSONObject json = IndexingHelper.getInstance(authorizationHeader).search(indexType, query, true, 0, indexingBatchSize, indexingScroll);\n\t\t\tint totalHits = json.getJSONObject(\"hits\").getInt(\"total\");\n\t\t\tString scrollId = json.getString(\"_scroll_id\");\n\t\t\tlogger.debug(String.format(\" [%s] Number of hits: %d\", jobId, totalHits));\n\t\t\tlogger.debug(String.format(\" [%s] Scroll ID: %s\", jobId, scrollId));\n\t\t\tint currentStartIndex = 0;\n\t\t\twhile (currentStartIndex < totalHits) {\n\t\t\t\tJSONArray hits = json.getJSONObject(\"hits\").getJSONArray(\"hits\");\n\n\t\t\t\tfor (int i = 0; i < hits.length(); i++) {\n\t\t\t\t\t// Get the hit\n\t\t\t\t\tJSONObject hit = hits.getJSONObject(i);\n\t\t\t\t\t// Get the data to output\n\t\t\t\t\tString output = hit.getJSONObject(\"_source\").toString();\n\t\t\t\t\tif (\"xml\".equalsIgnoreCase(format))\n\t\t\t\t\t\toutput = XML.toString(new JSONObject(output.replaceAll(\"\\\\$\", \"\")), \"source\");\n\t\t\t\t\t// Define the filename\n\t\t\t\t\tString filename = hit.getString(\"_id\") + \".\" + format;\n\t\t\t\t\t// Create a new entry in the zip file\n\t\t\t\t\tZipEntry ze = new ZipEntry(filename);\n\t\t\t\t\tzos.putNextEntry(ze);\n\t\t\t\t\tzos.write(output.getBytes());\n\t\t\t\t\tzos.closeEntry();\n\t\t\t\t}\n\n\t\t\t\tlogger.debug(String.format(\" [%s] Archived items: [ %5d ~ %5d ] / %5d\", jobId, currentStartIndex, currentStartIndex + indexingBatchSize - 1, totalHits));\n\n\t\t\t\t// Update the start index\n\t\t\t\tcurrentStartIndex += indexingBatchSize;\n\n\t\t\t\t// Update progress\n\t\t\t\tjobObject.put(\"progress\", PROGRESS_REQUESTINGDATA * currentStartIndex / totalHits);\n\t\t\t\tObjectHelper.getInstance(authorizationHeader).updateObject(jobId, jobObject);\n\n\t\t\t\tif (currentStartIndex < totalHits)\n\t\t\t\t\tjson = IndexingHelper.getInstance(authorizationHeader).scroll(indexType, indexingScroll, scrollId, true);\n\t\t\t}\n\n\t\t\t// Delete the scroll\n\t\t\tlogger.debug(String.format(\" [%s] Deleting Scroll ID\", jobId));\n\t\t\tIndexingHelper.getInstance(authorizationHeader).deleteScrollIndex(scrollId);\n\t\t\tlogger.debug(String.format(\" [%s] ... Completed\", jobId));\n\n\t\t\tlogger.debug(String.format(\" [%s] ... Archiving completed: %s\", jobId, archive.getAbsolutePath()));\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(e);\n\t\t} finally {\n\t\t\tif (zos != null)\n\t\t\t\tzos.close();\n\t\t\tif (fos != null)\n\t\t\t\tfos.close();\n\t\t}\n\n\t\treturn archive;\n\t}",
"public void addToFiles(Path pathDir) {\n this.files.add(pathDir);\n }",
"public void indexFileOrDirectory(String fileName) throws IOException {\n\t// gets the list of files in a folder (if user has submitted\n\t// the name of a folder) or gets a single file name (is user\n\t// has submitted only the file name)\n\t// ===================================================\n\taddFiles(new File(fileName));\n\n\tint originalNumDocs = writer.numDocs();\n\tfor (File f : queue) {\n\t FileReader fr = null;\n\t try {\n\t\tDocument doc = new Document();\n\n\t\t// ===================================================\n\t\t// add contents of file\n\t\t// ===================================================\n\t\tfr = new FileReader(f);\n\t\tdoc.add(new TextField(\"contents\", fr));\n\t\tdoc.add(new StringField(\"path\", f.getPath(), Field.Store.YES));\n\t\tdoc.add(new StringField(\"filename\", f.getName(),\n\t\t\tField.Store.YES));\n\n\t\twriter.addDocument(doc);\n\t\t//System.out.println(\"Added: \" + f);\n\t } catch (Exception e) {\n\t\tSystem.out.println(\"Could not add: \" + f);\n\t } finally {\n\t\tfr.close();\n\t }\n\t}\n\n\tint newNumDocs = writer.numDocs();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"************************\");\n\tSystem.out\n\t\t.println((newNumDocs - originalNumDocs) + \" documents added.\");\n\tSystem.out.println(\"************************\");\n\n\tqueue.clear();\n }",
"public synchronized static void addIndex(File fileName, TreeMap<String, TreeSet<Integer>> index) {\n if (!fileIndices.containsKey(fileName)) {\n fileIndices.put(fileName, index);\n } else {\n System.out.println(\"There exist files with the same name in the input location.\");\n }\n }",
"public void enqueue(Comparable item);",
"public void addRequest(T request) {\n\t\tinputQueue.add(request);\n\t}"
] | [
"0.6363809",
"0.631094",
"0.59239227",
"0.55307996",
"0.5510872",
"0.5269802",
"0.52275085",
"0.5185909",
"0.51280874",
"0.512546",
"0.5094258",
"0.49931458",
"0.489093",
"0.48901471",
"0.48872393",
"0.4840998",
"0.48316616",
"0.48189193",
"0.48139134",
"0.47880223",
"0.47767338",
"0.47662565",
"0.47355118",
"0.4722823",
"0.46938947",
"0.4691975",
"0.46710035",
"0.46385086",
"0.4629196",
"0.46286467",
"0.45968452",
"0.45859718",
"0.45856646",
"0.45822734",
"0.45804334",
"0.45625874",
"0.45375967",
"0.45344746",
"0.45123994",
"0.451192",
"0.45017195",
"0.44876423",
"0.44866055",
"0.44796544",
"0.44728464",
"0.44679448",
"0.44421244",
"0.44317827",
"0.44164118",
"0.44152305",
"0.44142035",
"0.4402051",
"0.4399475",
"0.43950394",
"0.43823653",
"0.4380436",
"0.43798813",
"0.4378922",
"0.43762973",
"0.43753225",
"0.43740106",
"0.43731552",
"0.4363887",
"0.4362293",
"0.43581495",
"0.435782",
"0.4356984",
"0.4354547",
"0.43515953",
"0.43500757",
"0.4350028",
"0.43492758",
"0.4346396",
"0.434632",
"0.43427148",
"0.433683",
"0.43308553",
"0.43286645",
"0.43220115",
"0.4313088",
"0.4311107",
"0.43022752",
"0.4302169",
"0.4300215",
"0.42961863",
"0.42953512",
"0.42891198",
"0.42868865",
"0.42830437",
"0.4279209",
"0.4275294",
"0.42717612",
"0.4266807",
"0.42667657",
"0.42573658",
"0.42521796",
"0.42493737",
"0.42428708",
"0.4242699",
"0.42399734"
] | 0.686771 | 0 |
metodo que abre el seleccionador de archivos | public static ArrayList<String[]> open() {
int r = file.showOpenDialog(null);
ArrayList<String> data = new ArrayList<>();
String line = "";
ArrayList<String[]> datosF = new ArrayList<String[]>();
if (r == JFileChooser.APPROVE_OPTION) {
arch = file.getSelectedFile();
ruta = arch.getAbsolutePath();
System.out.println("\nArchivo a utilizar: " + arch.getAbsolutePath());
try {
FileReader read = new FileReader(ruta);
BufferedReader read1 = new BufferedReader(read);
data.add(read1.readLine());
while ((line = read1.readLine()) != null) {
line = line.toLowerCase();
data.add(line);
}
} catch (ArithmeticException | IOException | NumberFormatException e) {
System.out.println(e.toString());
}
}
for (int i = 0; i < data.size(); i++) {
String[] l = data.get(i).toLowerCase().split(" ");
datosF.add(l);
}
return datosF;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void seleccionarArchivo(){\n JFileChooser j= new JFileChooser();\r\n FileNameExtensionFilter fi= new FileNameExtensionFilter(\"pdf\",\"pdf\");\r\n j.setFileFilter(fi);\r\n int se = j.showOpenDialog(this);\r\n if(se==0){\r\n this.txtCurriculum.setText(\"\"+j.getSelectedFile().getName());\r\n ruta_archivo=j.getSelectedFile().getAbsolutePath();\r\n }else{}\r\n }",
"public void llenarListaArchivos(int op) {\n String[] archivosPermitidos = {\".HA\", \".HE\"};\n if (op == 1) {\n archivos_directorio.removeAllItems();\n } else {\n archivos_directorio2.removeAllItems();\n }\n File directorio = new File(\"./\");\n File[] archivos = null;\n if (directorio.exists()) {\n archivos = directorio.listFiles();\n }\n int i;\n\n for (i = 0; i < archivos.length; i++) {\n if (op == 1 && (\"\" + archivos[i]).contains(\".txt\")) {\n archivos_directorio.addItem(\"\" + archivos[i]);\n } else {\n int j;\n for (j = 0; j < archivosPermitidos.length; j++) {\n if ((\"\" + archivos[i]).contains(archivosPermitidos[j])) {\n archivos_directorio2.addItem(\"\" + archivos[i]);\n break;\n }\n }\n }\n }\n\n }",
"private void cargarArchivoAlumnos() {\n String aux = \"\";\n String texto = \"\";\n\n JFileChooser file = new JFileChooser();\n file.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\n\n //Filtro\n FileNameExtensionFilter filtro = new FileNameExtensionFilter(\"*.XML\", \"xml\");\n\n file.setFileFilter(filtro);\n\n int seleccion = file.showOpenDialog(this);\n\n if (seleccion == JFileChooser.APPROVE_OPTION) {\n File fichero = file.getSelectedFile();\n\n insertarAlumnos(fichero.getPath());\n\n }\n }",
"private void fileChooser(){\n JFileChooser chooser = new JFileChooser();\n // Note: source for ExampleFileFilter can be found in FileChooserDemo,\n // under the demo/jfc directory in the JDK.\n //ExampleFileFilter filter = new ExampleFileFilter();\n// filter.addExtension(\"jpg\");\n// filter.addExtension(\"gif\");\n// filter.setDescription(\"JPG & GIF Images\");\n // chooser.setFileFilter(new javax.swing.plaf.basic.BasicFileChooserUI.AcceptAllFileFilter());\n int returnVal = chooser.showOpenDialog(this.getContentPane());\n if(returnVal == JFileChooser.APPROVE_OPTION) {\n System.out.println(\"You chose to open this file: \" +\n chooser.getSelectedFile().getName());\n try{\n this.leerArchivo(chooser.getSelectedFile());\n\n }\n catch (Exception e){\n System.out.println(\"Imposible abrir archivo \" + e);\n }\n }\n }",
"public void seleccionarFichero(){\n JFileChooser fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"xml\", \"xml\");\n fileChooser.setFileFilter(filter);\n fileChooser.setCurrentDirectory(new java.io.File(\"./ficheros\"));\n int seleccion = fileChooser.showOpenDialog(vista_principal);\n if (seleccion == JFileChooser.APPROVE_OPTION){\n fichero = fileChooser.getSelectedFile();\n vista_principal.getTxtfield_nombre_fichero().\n setText(fichero.getName().substring(0, fichero.getName().length()-4));\n }\n }",
"public void btn_action_abrirArchivo() {\n FileChooser fileChooser = new FileChooser();\n\n //Set extension filter\n FileChooser.ExtensionFilter extFilter = new FileChooser.ExtensionFilter(\"TXT files (*.txt)\", \"*.txt\");\n fileChooser.getExtensionFilters().add(extFilter);\n\n //Show save file dialog\n File file = fileChooser.showOpenDialog(miPrimaryStage);\n //File file = new File(\"fichero.txt\");\n if(file != null){\n // ta_insertar_texto_id.setText(readFile(file));\n ca_insertar_texto_id.replaceText(readFile(file));\n }\n }",
"public void Listar()\n {\n File diretorio = new File(dir_arq_download);\n File[] arquivos = diretorio.listFiles();\n if(arquivos != null)\n {\n int length = arquivos.length;\n for(int i = 0; i < length; ++i)\n {\n File f = arquivos[i];\n if (f.isFile())\n {\n Arquivos.add(f.getName());\n }\n }\n\n ArrayAdapter<String> arrayAdapter = new ArrayAdapter<String>\n (this,android.R.layout.simple_dropdown_item_1line, Arquivos);\n SpnListarArquivos.setAdapter(arrayAdapter);\n }\n }",
"public void subir_file()\n {\n FileChooser fc = new FileChooser();\n\n fc.getExtensionFilters().addAll(new FileChooser.ExtensionFilter(\"PDF Files\",\"*.pdf\")\n , new FileChooser.ExtensionFilter(\"Jpg Images\",\"*.jpg\",\"*.JPEG\",\"*.JPG\",\"*.jpeg\",\"*.PNG\",\"*.png\"));\n\n File fileSelected = fc.showOpenDialog(null);\n\n if (fileSelected!= null){\n txt_ruta.setText(fileSelected.getPath());\n\n if(txt_ruta.getText().contains(\".pdf\"))\n {\n System.out.println(\"si es pdf\");\n Image image = new Image(\"/sample/Clases/pdf.png\");\n image_esquema.setImage(image);\n\n }\n else\n {\n File file = new File(txt_ruta.getText());\n javafx.scene.image.Image image = new Image(file.toURI().toString());\n image_esquema.setImage(image);\n }\n\n }\n else{\n System.out.println(\"no se seleccinoó\");\n }\n }",
"public void getListaArchivos() {\n\n File rutaAudio = new File(Environment.getExternalStorageDirectory() + \"/RecordedAudio/\");\n File[] archivosAudio = rutaAudio.listFiles();\n\n for (int i = 0; i < archivosAudio.length; i++) {\n File file = archivosAudio[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n\n File rutaVideos = new File(Environment.getExternalStorageDirectory() + \"/RecordedVideo/\");\n File[] archivosVideo = rutaVideos.listFiles();\n\n for (int i = 0; i < archivosVideo.length; i++) {\n File file = archivosVideo[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n }",
"private void abrirFichero() {\r\n\t\tJFileChooser abrir = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tabrir.setFileFilter(filtro);\r\n\t\tif(abrir.showOpenDialog(abrir) == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tGestion.liga = (Liga) Gestion.abrir(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setAbierto(true);\r\n\t\t\t\tGestion.setFichero(abrir.getSelectedFile());\r\n\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t} catch (ClassNotFoundException | IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"No se ha podido abrir el fichero\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }",
"public GestorArchivos(String numeroArchivo)\r\n {\r\n this.rutaArchivoEntrada = new File(\"archivostexto/in/in\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n this.rutaArchivoSalida = new File(\"archivostexto/out/out\" + numeroArchivo + \".txt\").getAbsolutePath().replace(\"\\\\\", \"/\");\r\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJFileChooser jfc=new JFileChooser(); \r\n\t\t jfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES ); \r\n\t\t jfc.showDialog(new JLabel(), \"选择\"); \r\n\t\t File file=jfc.getSelectedFile();\r\n\t\t if(null==file){\r\n\t\t \treturn;\r\n\t\t }\r\n\t\t if(file.isDirectory()){\r\n\t\t System.out.println(\"文件夹:\"+file.getAbsolutePath()); \r\n\t\t }else if(file.isFile()){\r\n\t\t System.out.println(\"文件:\"+file.getAbsolutePath()); \r\n\t\t }\r\n\t\t if(Util.isImage(file)){\r\n\t\t \tImageIcon img = new ImageIcon(file.getAbsolutePath());\r\n\t\t\t\t\tlbImage.setIcon(img);\r\n\t\t\t\t\tMain.img = img.getImage();\r\n\t\t }else{\r\n\t\t \tJOptionPane.showMessageDialog(Main.this, \"请选择图片\");\r\n\t\t }\r\n\t\t\t}",
"public void seleccionarFotoPerfil(View v) {\n //Crea un Intent\n Intent intent = new Intent();\n //con intent.setType(\"image/*\") indicamos que en la nueva actividad solo se mostraran imagenes\n intent.setType(\"image/*\");\n //Muestra contenido que el usuario puede escoger, y que devolvera una URI resultante\n intent.setAction(Intent.ACTION_GET_CONTENT);\n //Inicia una nueva actividad que mostrara el seleccionador de imagenes\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"public void actionPerformed(ActionEvent e) {\n\t \tJFileChooser fileChooser = new JFileChooser(lastChoosenDir);\n\t int returnValue = fileChooser.showOpenDialog(null);\n\t if (returnValue == JFileChooser.APPROVE_OPTION) {\n\t selectedFile = fileChooser.getSelectedFile();\n\t lastChoosenDir = selectedFile.getParentFile();\n\t System.out.println(selectedFile.getName());\n\t // lblSlika=new JLabel(\"aa\");\n\t displayChosen();\n\t \n\t // content.add(lblSlika);\n\t \n\t }\n\t }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJFileChooser jfc=new JFileChooser();\n\t\t\n\t\t//显示文件和目录\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES );\n\t\tjfc.showDialog(new JLabel(), \"选择\");\n\t\tFile file=jfc.getSelectedFile();\n\t\t\n\t\t//file.getAbsolutePath()获取到的绝对路径。\n\t\tif(file.isDirectory()){\n\t\t\tSystem.out.println(\"文件夹:\"+file.getAbsolutePath());\n\t\t}else if(file.isFile()){\n\t\t\tSystem.out.println(\"文件:\"+file.getAbsolutePath());\n\t\t}\n\t\t\n\t\t//jfc.getSelectedFile().getName() 获取到文件的名称、文件名。\n\t\tSystem.out.println(jfc.getSelectedFile().getName());\n\t\t\n\t}",
"@FXML private void handleExaminar() {\r\n \tDirectoryChooser dc = new DirectoryChooser();\r\n \tdc.setTitle(\"Examinar archivos\");\r\n \t\r\n \t\r\n \tFile dir = dc.showDialog(null); \r\n \t\r\n \tif(dir != null) {\r\n \t\tpath = dir.getAbsolutePath().replace('\\\\', '/');\r\n \t\ttext_examinar.setText(path);\r\n \t}\r\n \t\r\n \tlista_usuarios.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\r\n \tlista_usuarios.setMouseTransparent( false );\r\n \tlista_usuarios.setFocusTraversable( true );\r\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 1);\n\n }",
"private void performFileSearch() {\n Intent intent = new Intent();\n intent.setType(\"*/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent( Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.setType(\"image/*\");\n startActivityForResult(Intent.createChooser(intent, \"Select File\"), 1);\n }",
"private void jButtonBrowseInputFilesActionPerformed(ActionEvent e) {\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tfileChooser.addChoosableFileFilter(new RootFileFilter());\n\t\tfileChooser.setAcceptAllFileFilterUsed(false);\n\t\tint result = fileChooser.showOpenDialog(this);\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\tjTextFieldInputFiles.setText(file.getAbsolutePath());\n\t\t}\n\t}",
"public void actionPerformed(ActionEvent e) {\n\tif (\"open\".equals(e.getActionCommand())) {\n\t\tfd.show(); \n\t\t if (fd.getFile() == null) \n\t\t { \n\t\t Label1.setText(\"You have not select\"); \n\t\t } else \n\t\t { \n\t\t in = new File [30];\n\t\t\tin = fd.getFiles ();\t\n\t\t\tLabel1.setText(\"You have selected \" + in.length + \" images\"); \n\t\t }\n\t}\n\tif (\"apply\".equals(e.getActionCommand())) {\n\t\tif (in == null) Label1.setText(\"You have not select\"); \n\t\telse {\n\t\t\tif (in.length < 30) Label1.setText(\"Chưa đủ 30 ảnh. Đã có \" + in.length + \"/30 ảnh\"); \n\t\t\telse {\n\t\tString S = nameImage.getText();\n\t\tif (S.equals(\"\")) Label1.setText(\"Không được để trống tên\");\n\t\telse {\n\t\tFile file = new File(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\"+ S);\n\t\t if (!file.exists()) {\n\t\t if (file.mkdir()) {\n\t\t System.out.println(\"Directory is created!\");\n\t\t } else {\n\t\t System.out.println(\"Failed to create directory!\");\n\t\t }\n\t\t }\n\t\t InputStream inStream= null;\n\t\t OutputStream outStream = null;\n\t\t \n\t\t //for(int i = 0; i <= in.length - 1; i ++) System.out.println(\"i = \" + i +\" name: \" + in[i].toString());\n\t\t \n\t\t try {\n\t\t\t //File [] getFiles () \n\t\t\t for(int i = 0; i <= in.length - 1; i ++) {\n\t\t\t if (i == 30) {\n\t\t\t\t //Label1.setText(\"Thừa ảnh. Bỏ từ ảnh \"+ in[i].getName()); \n JOptionPane.showMessageDialog(fr, \"Thừa ảnh. Bỏ từ ảnh \"+ in[i].getName());\n\t\t\t break;\n\t\t\t }\n\t\t inStream = new FileInputStream(in[i]);\n\t\t outStream = new FileOutputStream(new File(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\"+ S+\"\\\\icon\"+(i+1)+\".jpg\"));\n\n\t\t int length;\n\t\t byte[] buffer = new byte[2097152];\n\n\t\t // copy the file content in bytes\n\t\t while ((length = inStream.read(buffer)) > 0) {\n\t\t outStream.write(buffer, 0, length);\n\t\t }\n\t\t\t }\n\t\t System.out.println(\"File is copied successful!\");\n\t\t \n\t\t } catch (IOException ex) {\n\t\t ex.printStackTrace();\n\t\t }\t\t \n\t\t fr.setVisible(false);\n\t\t}}}\n\t}\n\tif (\"replace\".equals(e.getActionCommand())) {\n\t\tif (in == null) Label1.setText(\"You have not select\"); \n\t\telse {\n\t\t\tif (in.length > 30) Label1.setText(\"Thừa ảnh\"); \n\t\t\telse {\n\t\t\tfd.setDirectory(\"D:\\\\java\\\\PROJECT_I\\\\src\\\\\");\n\t\t\tfd.show(); \n\t\t\tFile[] in2;\n\t\t\t in2 = new File [30];\n\t\t\t\tin2 = fd.getFiles ();\n\t\t File tmp = new File(in2[0].getParent());\n\t\t String tv = tmp.getName();\n\t\t int kq = 0;\n\t\t File folder = new File(\"D:\\\\java\\\\PROJECT_I\\\\src\");\n\t\t\t //&& s != \"HighScore\" && s !=\"icon\" && s != \"icon\" && s != \"sound\"\n\t\t\t for (final File fileEntry : folder.listFiles()) {\n\t\t\t if (fileEntry.isDirectory()) {\n\t\t\t \tString s = fileEntry.getName();\n\t\t if (!s.equals(\"Game_lat_hinh\") && !s.equals(\"HighScore\") && !s.equals(\"icon\") && !s.equals(\"img\") && !s.equals(\"sound\")) {\n\t\t \tif (s.equals(tv)) kq = 1; \t\n\t\t }\n\t\t\t }\n\t\t\t }\n\t\t if (kq == 0) Label1.setText(\"File đã chọn không trong thư viện\" );\n\t\t else {\n if (in2.length != in.length ) Label1.setText(\"Số lượng chọn sai . Đã chọn\" + in2.length + \"/\" + in.length + \" ảnh\"); \n else {\n\t\t InputStream inStream= null;\n\t\t OutputStream outStream = null;\n\t\t \n\t\t //for(int i = 0; i <= in.length - 1; i ++) System.out.println(\"i = \" + i +\" name: \" + in[i].toString());\n\t\t \n\t\t try {\n\t\t\t //File [] getFiles () \n\t\t\t for(int i = 0; i <= in2.length - 1; i ++) {\t\t\n\t\t inStream = new FileInputStream(in[i]);\n\t\t outStream = new FileOutputStream(new File(in2[i].getAbsolutePath()));\n\t\t\t in2[i].delete();\n\t\t int length;\n\t\t byte[] buffer = new byte[2097152];\n\n\t\t // copy the file content in bytes\n\t\t while ((length = inStream.read(buffer)) > 0) {\n\t\t outStream.write(buffer, 0, length);\n\t\t }\n\t\t\t }\n\t\t System.out.println(\"File is copied successful!\");\n\t\t \n\t\t } catch (IOException ex) {\n\t\t ex.printStackTrace();\n\t\t }\t\t \n\t\t fr.setVisible(false);\n }}}}\n}\n}",
"public void getFileChooser(){\r\n \r\n FileNameExtensionFilter txtfilter = new FileNameExtensionFilter(\"*.txt\", \"txt\");\r\n //FileNameExtensionFilter pngfilter = new FileNameExtensionFilter(\"*.png\", \"png\");\r\n FileNameExtensionFilter zipfilter = new FileNameExtensionFilter(\"*.zip\", \"zip\");\r\n \r\n final JFileChooser fc = new JFileChooser();\r\n fc.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r\n fc.setAcceptAllFileFilterUsed(false);\r\n fc.setDialogTitle(\"Choose directory [USQ_DATA] or File\");\r\n //filter txt and png\r\n //fc.setFileFilter(pngfilter);\r\n fc.setFileFilter(txtfilter);\r\n fc.setFileFilter(zipfilter);\r\n \r\n try{\r\n fc.setCurrentDirectory(new File(workplace));\r\n }catch(Exception e) {\r\n FileSystemView fsv = FileSystemView.getFileSystemView();\r\n wppath = fsv.getDefaultDirectory();\r\n File rd = new File(wppath.getAbsolutePath() + \"/USQ_Reporter.txt\");\r\n rd.delete();\r\n try {\r\n setDir();\r\n } catch (FileNotFoundException ex) {\r\n JOptionPane.showMessageDialog(null, \"file not found.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } catch (IOException ex) {\r\n JOptionPane.showMessageDialog(null, \"IOException when get file.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }\r\n int returnVal = fc.showOpenDialog(this);\r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n File file = fc.getSelectedFile();\r\n //if txt from zip, dont copy to old\r\n fromzip = false;\r\n if(!file.exists()) {\r\n JOptionPane.showMessageDialog(null, \"file doesn't exist.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n } else if(file.isDirectory()) {\r\n File files[] = file.listFiles();\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(!old.exists())old.mkdir();\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n for(int i=0 ; i<files.length ; i++) {\r\n if(files[i].isFile()) {\r\n readFile(files[i]);\r\n if(files[i].getName().equals(\"USQRecorders.txt\"))\r\n createSes(files[i]);\r\n }\r\n }\r\n //delete read in dir\r\n for(int i=0 ; i<files.length ; i++){\r\n boolean b =files[i].delete();\r\n System.out.println(files[i].getAbsolutePath() + \" \" + b);\r\n }\r\n file.delete(); \r\n } else if (file.isFile()) {\r\n File old = new File(workplace + \"/old\");\r\n //create old folder\r\n if(old.exists()&&old.isFile())old.mkdir();\r\n if(!old.exists())old.mkdir();\r\n if(file.getName().endsWith(\".zip\")){fromzip=true;}else{fromzip=false;}\r\n readFile(file);\r\n if(file.getName().equals(\"USQRecorders.txt\"))\r\n createSes(file);\r\n }\r\n \r\n //delete read in file\r\n file.delete();\r\n }\r\n }",
"private void grabarArchivo() {\n\t\tPrintWriter salida;\n\t\ttry {\n\t\t\tsalida = new PrintWriter(new FileWriter(super.salida));\n\t\t\tsalida.println(this.aDevolver);\n\t\t\tsalida.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void selectImage(String path);",
"public void approveSelection(){\n\t\t\t\tFile file=getSelectedFile();\n\t\t\t\tSupportedImageFilesFilter filter=new SupportedImageFilesFilter();\n\t\t\t\tif (file.exists() && filter.accept(file)) \n\t\t\t\t\tsuper.approveSelection(); \n\t\t\t\telse \n\t\t\t\t\tJOptionPane.showMessageDialog(this, \"The selected file is not supported or does not exist!\", \"Error\", JOptionPane.ERROR_MESSAGE); \n\t\t\t}",
"public static void processOneFileSelecction()\n {\n int answer = JSoundsMainWindowViewController.jfcOneFile.showOpenDialog(JSoundsMainWindowViewController.jSoundsMainWindow);\n \n if (answer == JFileChooser.APPROVE_OPTION)\n {\n File actualDirectory = JSoundsMainWindowViewController.jfcOneFile.getCurrentDirectory();\n String directory = actualDirectory.getAbsolutePath() + \"/\" + JSoundsMainWindowViewController.jfcOneFile.getSelectedFile().getName();\n UtilFunctions.listOneFile(JSoundsMainWindowViewController.jfcOneFile.getSelectedFile());\n JSoundsMainWindowViewController.orderBy(true, false, false); \n }\n }",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n Intent pickIntent = new Intent(Intent.ACTION_PICK, MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n pickIntent.setType(\"image/*\");\n Intent chooserIntent = Intent.createChooser(intent, \"Select Image\");\n chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS, new Intent[] {pickIntent});\n startActivityForResult(chooserIntent,PICK_IMAGE_REQUEST);\n }",
"@Override\n public void actionPerformed(AnActionEvent event) {\n\n Project project = event.getData(PlatformDataKeys.PROJECT);\n\n DataContext dataContext = event.getDataContext();\n VirtualFile file = DataKeys.VIRTUAL_FILE.getData(dataContext);\n if(file != null){\n //获取选中的文件\n file = DataKeys.VIRTUAL_FILE.getData(dataContext);\n if(file == null){\n Messages.showErrorDialog(\"未选中文件\",\"error\");\n return;\n }\n }\n Module module = StringUtil.getModule(event.getProject(),dataContext,file.getPath());\n ExportDialog exportDialog = new ExportDialog(project,module,file);\n exportDialog.setTitle(\"Export Files\");\n exportDialog.show();\n }",
"public void cargararchivo() throws InterruptedException {\n sleep(1000);\n cargararchivo.click();\n sleep(1000);\n selectDescargas.click();\n sleep(1000);\n selectarchivoEvidencia.click();\n // waitVisibilityOfElement(btnnext);\n /* tomaEvidencia(evidencia,\"PantallaCargadaImagen\");*/\n //btnnext.click();\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(path.getAbsolutePath().startsWith(Constants.getAppDirectory())) {\n\t\t\t\t\tshowToast(\"Not implemented for Home dir yet\");\n\t\t\t\t\t//open file browser\n\t\t\t\t}\n\t\t\t\telse {\n//\t\t\t\t\tCopyTask copyTask = new CopyTask();\n//\t\t\t\t\tcopyTask.destination = Constants.getAppDirectory();\n//\t\t\t\t\tcopyTask.execute(selList);\n\t\t\t\t\t// Just copy the files to home directory\n\t\t\t\t\tfor(File sel:selList) {\n\t\t\t\t\t\tUtils.copy(sel, Constants.getAppDirectory());\n\t\t\t\t\t}\n\t\t\t\t\tshowToast(\"Import complete\");\n\t\t\t\t}\n\t\t\t\t// Clean up\n\t\t\t\tcancelAction();\n\t\t\t}",
"public Abrir() {\r\n\t\tsetDialogTitle(\"Abrir Archivo de DDC-Net\");\r\n\t\tsetFileFilter(new FileFilter() {\r\n\t\t\tpublic boolean accept(File f) {\r\n\t\t\t\tif(f.toString().endsWith(\".ddc\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif(f.isDirectory()){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\tpublic String getDescription() {\r\n\t\t\t\treturn \"DDC-Net archivos\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tsetMultiSelectionEnabled(false);\r\n\t\teleccion = showOpenDialog(this);\r\n\t\t\r\n\t\tif(eleccion == JFileChooser.APPROVE_OPTION){\r\n\t\t\ttry {\r\n\t\t\t\tKOMLDeserializer open = new KOMLDeserializer(getSelectedFile().getAbsolutePath(), false);\r\n\t\t\t\tMarcoDeGraficacion.vistas.abrirVista(open.readObject());\r\n\t\t\t\topen.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void startFileSelection() {\n final Intent chooseFile = new Intent(Intent.ACTION_GET_CONTENT);\n chooseFile.setType(getString(R.string.file_type));\n startActivityForResult(chooseFile, PICK_FILE_RESULT_CODE);\n }",
"@Override\n public void actionPerformed(ActionEvent ae) {\n if (ae.getSource() == btnAbrir) {\n JFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.home\"));\n fileChooser.setFileFilter(new FolderFilter());\n fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\n int returnValue = fileChooser.showDialog(this, \"Escolha o diretório para o seu projeto\");\n if (returnValue == JFileChooser.APPROVE_OPTION) {\n File file = fileChooser.getSelectedFile();\n\n String caminho = file.getAbsolutePath();\n\n txtCaminho.setText(caminho);\n } else {\n\n }\n\n }\n }",
"private void selectImage() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(\n Intent.createChooser(\n intent,\n \"Select Image from here...\"),\n PICK_IMAGE_REQUEST);\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n String src;\n JFileChooser fileChooser = new JFileChooser();\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\n int result = fileChooser.showOpenDialog(getParent());\n if (result == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fileChooser.getSelectedFile();\n textSalida.append(\"\\nAutómata seleccionado \" + selectedFile.getAbsolutePath() );\n automa = null;\n automataready = false;\n compilar.setEnabled(false);\n try {\n src = selectedFile.getAbsolutePath();\n automa = new AFDVault(src);\n automataready = automa.allready();\n if (automataready){\n compilar.setEnabled(true);\n textSalida.append(\"\\nAutomata cargado\");\n //automa.PrintAFD();\n }else{\n compilar.setEnabled(false);\n textSalida.append(\"\\nAutomata no cargado verifique el archivo\");\n }\n }catch (IOException|ParserException ex){\n textSalida.append(ex.getMessage()+\"\\n\");\n }\n }\n }",
"void selectFile(){\n JLabel lblFileName = new JLabel();\n fc.setCurrentDirectory(new java.io.File(\"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showOpenDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n lblFileName.setText(fc.getSelectedFile().toString());\n }else {\n lblFileName.setText(\"the file operation was cancelled\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }",
"private void selectButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tCyFileFilter tempCFF = new CyFileFilter();\n\n\t\tFile file = FileUtil.getFile(\"Import Network Files\", FileUtil.LOAD);\n\n\t\tfileNameTextField.setText(file.getAbsolutePath());\n\t\trunButton.setEnabled(true);\n\t}",
"public void RenameArchivo()//Método que renombra un archivo\n {\n JFileChooser fichero = new JFileChooser();//Creamos objeto de la clase JFileChooser\n fichero.showOpenDialog(null);//Abrimos la ventana para seleccionar el archivo\n ARCHIVO = fichero.getSelectedFile();//En objeto File asignamos el objeto fichero a renombrar\n\n //Se ingresa el nuevo nombre\n String newName = JOptionPane.showInputDialog(null, \"Ingrese el nuevo nombre del archivo: \");\n newName = ARCHIVO.getParent() + \"\\\\\" + newName + \".txt\";//Agregamos el path y le concatenamos nombre y extension\n File archivo = new File(newName);//Creamos nuevo archivo para que almacene el nuevo nombre\n boolean ren = ARCHIVO.renameTo(archivo);//Realizamos el renombramiento\n\n if (ren)//Si se hizo correctamente, muestra le mensaje\n {\n JOptionPane.showMessageDialog(null, \"Renombrado correcto del archivo en: \" + archivo.getParent());\n } else//Si no, muestra mensaje de error\n {\n JOptionPane.showMessageDialog(null, \"El renombrado no se ha podido realizar\");\n }\n ARCHIVO = null;//Volvemos a null la constante ARCHIVO\n }",
"public void listarCarpetas() {\n\t\tFile ruta = new File(\"C:\" + File.separator + \"Users\" + File.separator + \"ram\" + File.separator + \"Desktop\" + File.separator+\"leyendo_creando\");\n\t\t\n\t\t\n\t\tSystem.out.println(ruta.getAbsolutePath());\n\t\t\n\t\tString[] nombre_archivos = ruta.list();\n\t\t\n\t\tfor (int i=0; i<nombre_archivos.length;i++) {\n\t\t\t\n\t\t\tSystem.out.println(nombre_archivos[i]);\n\t\t\t\n\t\t\tFile f = new File (ruta.getAbsoluteFile(), nombre_archivos[i]);//SE ALMACENA LA RUTA ABSOLUTA DE LOS ARCHIVOS QUE HAY DENTRO DE LA CARPTEA\n\t\t\t\n\t\t\tif(f.isDirectory()) {\n\t\t\t\tString[] archivos_subcarpeta = f.list();\n\t\t\t\tfor (int j=0; j<archivos_subcarpeta.length;j++) {\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(archivos_subcarpeta[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t}",
"private void choixRepertoire(int format){\n\t\tString path = \"\"; //Chemin a parcourir\n\t\tJFileChooser chooser = null;\n\t\tif(SauvegardeRepertoire.getPaths().isEmpty()){//Si la liste des repertoires est vide\n\t\t\tchooser = new JFileChooser();\n\t\t}\n\t\telse{//si elle n'est pas vide\n\t\t\tIterator<String> it = SauvegardeRepertoire.getPaths().iterator();\n\t\t\twhile (it.hasNext() && path.equals(\"\")) {\n\t\t\t\tString str = (String) it.next();\n\t\t\t\tFile file = new File(str);\n\n\t\t\t\tif (file.exists()) //on recupere le premier repertoire possible\t\n\t\t\t\t\tpath = file.getAbsolutePath();\n\t\t\t}\n\n\t\t\tif(path.equals(\"\"))//si on a pas trouvé de chemin coherent\n\t\t\t\tchooser = new JFileChooser();\n\t\t\telse\n\t\t\t\tchooser = new JFileChooser(path);\n\t\t}\n\t\tFileNameExtensionFilter filter=null;\n\t\tswitch(format)\n\t\t{\n\t\t\tcase PDFFile:\n\t\t\t\tfilter = new FileNameExtensionFilter(\"PDF\",\"pdf\");\n\t\t\t\tbreak;\n\t\t\tcase ARFFFile:\n\t\t\t\tchooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\tchooser.setAcceptAllFileFilterUsed(false);\n\t\t\t\tbreak;\n\t\t}\n\n\t\tchooser.setFileFilter(filter);\n\t\tchooser.setMultiSelectionEnabled(false);\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tSauvegardeRepertoire.ajoutPath(chooser);//permet de sauvegarder les repertoires\n\t\t\tif(filter!=null && filter.getExtensions()[0].equals(\"pdf\")) {\n\t\t\t\tgestionFichier(chooser);\n\t\t\t\tunlockButton();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgestionFichierDataSet(chooser);\n\t\t\t\tbDataTraining.setEnabled(true);\n\t\t\t}\n\n\t\t}\n\t}",
"@FXML \r\n private void handleIrDescargas() {\r\n \tmain.mostrarVistaDescargarArchivos();\r\n }",
"public void actionPerformed(ActionEvent arg0) {\n\t\t\t JFileChooser chooser = new JFileChooser();\r\n\t\t\t FileNameExtensionFilter filter = new FileNameExtensionFilter(\"Image files\", ImageIO.getReaderFileSuffixes());\r\n\t\t\t chooser.setAcceptAllFileFilterUsed(false);\r\n\t\t\t chooser.setFileFilter(filter);\r\n\t\t\t int returnVal = chooser.showOpenDialog(getParent());\r\n\t\t\t if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\t try {\r\n\t\t\t\t\t loaded=chooser.getSelectedFile();\r\n\t\t\t\t\t image=new ImageIcon(ImageIO.read(loaded));\r\n\t\t\t\t\t imagename.setForeground(Color.DARK_GRAY);\r\n\t\t\t\t\t imagename.setText(loaded.getName());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t flag=true;\r\n\t\t\t \r\n\t\t\t }\r\n\t\t}",
"public void fileChooser() {\n\t\tWindow stage = mediaView.getScene().getWindow();\n// configureFileChooser(fileChooser);\n\t\tfileChooser.setTitle(\"Open Resource File\");\n\t\tfileChooser.getExtensionFilters().addAll(new ExtensionFilter(\"Video Files\", \"*.mp4\", \"*.mpeg\"),\n\t\t\t\tnew ExtensionFilter(\"Audio Files\", \"*.mp3\"),\n\t\t\t\tnew ExtensionFilter(\"All Files\", \"*.*\"));\n\t\tFile selectedFile = fileChooser.showOpenDialog(stage);\n\t\tif (selectedFile != null) {\n\t\t\ttry {\n\t\t\t\tif(arrayList.size() != 0) {\n\t\t\t\t\tmp.stop();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdesktop.open(selectedFile);\n\t\t\t\tdirectory = selectedFile.getAbsolutePath();\n\t\t\t\t\n\t\t\t\tplayMedia(directory);\n\t\t\t\t\n\t\t\t\tarrayList.add(new File(directory));\n//\t\t\t\tSystem.out.println(arrayList.get(i).getName());\n\t\t\t\ti++;\n\t\t\t\t\n\n\t\t\t} catch (IOException ex) {\n\t\t\t\tLogger.getLogger(MainController.class.getName()).log(Level.SEVERE, null, ex);\n\t\t\t}\n\t\t}\n\t}",
"public Resource cargarArchivo(String nombreArchivo) throws MalformedURLException;",
"private void chooseRemaindersFile() {\n JFileChooser setEF = new JFileChooser(System.getProperty(\"user.home\"));\n setEF.setDialogType(JFileChooser.OPEN_DIALOG);\n setEF.showDialog(this, \"Выбрать файл\");\n remainderFile = setEF.getSelectedFile();\n putLog(\"Файл остатков: \" + remainderFile.getPath());\n jbParse.setEnabled(workingDirectory != null && remainderFile != null);\n }",
"private void chooseFilesDirectory() {\n JFileChooser setWD = new JFileChooser(System.getProperty(\"user.home\"));\n setWD.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n setWD.setDialogType(JFileChooser.OPEN_DIALOG);\n setWD.showDialog(this, \"Выбрать папку\");\n workingDirectory = setWD.getSelectedFile();\n putLog(\"Директория с файлами: \" + workingDirectory.getPath());\n jbParse.setEnabled(workingDirectory != null && remainderFile != null);\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n jPanel2 = new javax.swing.JPanel();\n jFileChooserFoto = new javax.swing.JFileChooser();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"August- Selecione uma imagem\");\n\n jFileChooserFoto.setApproveButtonText(\"Carregar\");\n jFileChooserFoto.setCurrentDirectory(new java.io.File(\"H:\\\\Pedro\\\\WEB\\\\Arquivos_htm\\\\doctor whosite\"));\n jFileChooserFoto.setDialogTitle(\"Selecione uma imagem\");\n jFileChooserFoto.addActionListener(new java.awt.event.ActionListener()\n {\n public void actionPerformed(java.awt.event.ActionEvent evt)\n {\n jFileChooserFotoActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jFileChooserFoto, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n\n pack();\n }",
"public void ImportNaimoZipFileByUser(){\n File mPath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOWNLOADS);\n final Manager_FileDialog managerFileDialog = new Manager_FileDialog(this, mPath, \".zip\");\n managerFileDialog.addFileListener(new Manager_FileDialog.FileSelectedListener() {\n public void fileSelected(File file) {\n managerFileDialog.removeFileListener(this);\n //ImportNaimoZipFile(file.getPath());\n new ImportNaimoZipFile(WordListActivity.this,file.getPath()).execute();\n }\n });\n managerFileDialog.showDialog();\n }",
"public void KivKvtbaValt()\r\n {\r\n// int nIdx = 0 ;\r\n// int nExtLen = 0 ;\r\n// int nKiterjPoz = 0 ;\r\n File cAktKvt = null ;\r\n Object aKivElemek[] ;\r\n \r\n// boolean bRC = false ;\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt()\") ;\r\n\r\n try\r\n {\r\n aKivElemek = m_jKvtTartList.getSelectedValues() ;\r\n\r\n // Ha netan tobb lenne kivalasztva (bas single selection lett beallitva) ...\r\n if ( aKivElemek.length > 0 )\r\n {\r\n cAktKvt = new File( m_sAktKonyvtar /*GetAktKonyvtar()*/ + System.getProperty( IKonstansok.sFileSeparator) + aKivElemek[0].toString()) ;\r\n \r\n if ( cAktKvt != null && cAktKvt.isDirectory() == true )\r\n {\r\n KvtTartListFrissit( cAktKvt.getCanonicalPath()) ;\r\n// KonyvtarTartKiir( cAktKvt) ; ez csak pont a listaablakot nem frissiti !\r\n \r\n // A felso edit kontorlba valo beiras hianyzik !\r\n// E:\\TAMAS\\PROG\\JAVA\\ecl_wrkspc\\CPolar\\2003 v. E:\\TAMAS\\PROG\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt() cAktKvt.getCanonicalPath() : \" + cAktKvt.getCanonicalPath()) ;\r\n// E:\\TAMAS\\PROG\\JAVA\\ecl_wrkspc\\CPolar\\.\\2003 v. E:\\TAMAS\\PROG\\JAVA\\..\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt() cAktKvt.getAbsolutePath() : \" + cAktKvt.getAbsolutePath()) ; \r\n//m_jKonyvtarTxtFld.setText( cAktKvt.getCanonicalPath()) ; ??? <-> KvtTartListFrissit()\r\n }\r\n }\r\n }\r\n catch( IOException cIOException)\r\n {\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt() : cIOException\") ;\r\n ExceptionTrace( (Exception) cIOException) ;\r\n }\r\n catch( SecurityException cSecurityException)\r\n {\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt() : SecurityException\") ;\r\n ExceptionTrace( (Exception) cSecurityException) ;\r\n }\r\n catch( NullPointerException cNullPointerException)\r\n {\r\n//System.out.println( \"JFileValasztDlg::KivKvtbaValt() : NullPointerException\") ;\r\n ExceptionTrace( (Exception) cNullPointerException) ;\r\n } \r\n }",
"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 }",
"private void selectFolderBtnMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_selectFolderBtnMouseClicked\n if (workingDirectory == null)\n {\n workingDirectory = new File(\".\");\n }\n JFileChooser selectFolderUI = new JFileChooser();\n selectFolderUI.setCurrentDirectory(workingDirectory);\n selectFolderUI.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n int response = selectFolderUI.showOpenDialog(mainUI.this);\n if (response == JFileChooser.APPROVE_OPTION)\n {\n ArrayList<FileItem> fileList = new ArrayList<>();\n workingDirectory = selectFolderUI.getSelectedFile();\n ArrayList<File> files = \n new ArrayList<>(Arrays.asList(workingDirectory.listFiles()));\n \n for (File f : files)\n {\n if (!f.isDirectory())\n {\n FileItem fi = null;\n try {\n fi = new FileItem(f);\n } catch (IOException ex) {\n Logger.getLogger(mainUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n fileList.add(fi);\n }\n }\n \n CSPB.testFiles = fileList;\n mainUI.this.refresh();\n } \n }",
"private JFileChooser getFileChooser() {\t\t\n\t\treturn getFileChooser(JFileChooser.FILES_AND_DIRECTORIES);\n\t}",
"private void guardarComo() {\r\n\t\tJFileChooser guardar = new JFileChooser();\r\n\t\tFileNameExtensionFilter filtro = new FileNameExtensionFilter(\"obj\",\"obj\");\r\n\t\tguardar.setFileFilter(filtro);\r\n\t\tif(guardar.showSaveDialog(guardar) == JFileChooser.APPROVE_OPTION){\r\n\t\t\tGestion.setFichero(Gestion.extensionValida(guardar.getSelectedFile()));\r\n\t\t\ttry {\r\n\t\t\t\tif(!Gestion.existe(Gestion.getFichero())){\r\n\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tswitch(JOptionPane.showConfirmDialog(null, \"El archivo existe. Desea sobreescribirlo?\", \"Aviso\", JOptionPane.WARNING_MESSAGE)){\r\n\t\t\t\t\tcase JOptionPane.OK_OPTION:\r\n\t\t\t\t\t\tGestion.escribir(Gestion.getFichero());\r\n\t\t\t\t\t\tGestion.setModificado(false);\r\n\t\t\t\t\t\t\t\tfrmLigaDeFtbol.setTitle(Gestion.getFichero().getName());\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\t\t\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tJOptionPane.showMessageDialog(null, e.getMessage(), \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tTreePath[] paths = tree.getSelectionPaths();\n\t\t\t\tcurrentFile = new File(paths+\"\");\n\t\t\t\tint result = JOptionPane.showConfirmDialog(null, \"Bạn muốn xóa file này\",\"Xóa File\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\tif(result==JOptionPane.OK_OPTION)\n\t\t\t\t{\n\t\t\t\t\tcurrentFile.delete();\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onClick(View v) {\n BaseResultEvent event = new FileMultipleResultEvent(mSelectedList);\n for (NormalFile file : mSelectedList) {\n Log.e(TAG, file.getName());\n }\n RxBus.getDefault().post(event);\n RxBus.getDefault().clear();\n finish();\n }",
"public void actionPerformed(ActionEvent e) {\n\t\t int returnVal = fc.showOpenDialog(GenerateWindow.this);\n\n\t\t if (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t File imagefile = fc.getSelectedFile();\n\t\t imageSelect.setText(\"images/\"+imagefile.getName());\n\t\t }}",
"public void fileChooserOpener(){\r\n fileChooser = new FileChooser();\r\n fileChooser.getExtensionFilters().addAll( \r\n new FileChooser.ExtensionFilter(\"PDF Files\",\"*.pdf\")\r\n// new FileChooser.ExtensionFilter(\"All Files\",\"*.*\") \r\n// new FileChooser.ExtensionFilter(\"Excel Files\",\"*.xslx\") \r\n// new FileChooser.ExtensionFilter(\"Text Files\",\"*.txt\"),\r\n// new FileChooser.ExtensionFilter(\"Word Files\",\"*.docx\"),\r\n// new FileChooser.ExtensionFilter(\"Image Files\",\"*.png\",\"*.jpg\",\"*.gif\"),\r\n// new FileChooser.ExtensionFilter(\"Audio Files\",\"*.wav\",\"*.mp3\",\"*.mp4\",\"*.acc\") \r\n \r\n ); \r\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), 234);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_settings:\n // search action\n return true;\n\n case R.id.action_newFolder:\n if(string1==null) {\n dir = new File(Environment.getExternalStorageDirectory(), \"Folder\");\n try {\n if (dir.mkdir()) {\n Log.v(TAG, \"Directory is created\");\n } else {\n Log.v(TAG, \"Directory is not created\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else dir = new File(string1,\"Folder\");\n try {\n if (dir.mkdir()) {\n Log.v(TAG, \"Directory is created\");\n } else {\n Log.v(TAG, \"Directory is not created\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n notifyMediaStoreScanner(dir);\n adapter.notifyDataSetChanged();\n // search action\n return true;\n\n case R.id.action_sort:\n showRadioButtonDialog();\n // location found\n return true;\n\n case R.id.action_rename:\n etRenameFile.setText(myList.get(fileIndex));\n etRenameFile.setTextColor(getResources().getColor(R.color.colorBlack));\n etRenameFile.selectAll();\n alert.show();\n Log.i(\"ZAA\", \"Image Gallery action rename\");\n // location found\n return true;\n\n case R.id.action_selectAll:\n adapter.selectAll();\n adapter.notifyDataSetChanged();\n selectallflag = true;\n // location found\n Log.i(\"ZAA\", \"Image Gallery action action_selectAll\");\n return true;\n\n case R.id.action_properties:\n properties();\n // location found\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n\t\t\t\t\t\t\"Image Files\", // 파일 이름에 창에 출력될 문자열\r\n\t\t\t\t\t\t\"jpg\", \"gif\", \"PNG\"); // 파일 필터로 사용되는 확장자. *.jpg. *.gif만\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 나열됨\r\n\t\t\t\tchooser.setFileFilter(filter); // 파일 다이얼로그에 파일 필터 설정\r\n\t\t\t\tchooser.setMultiSelectionEnabled(false);//다중 선택 불가\r\n\r\n\t\t\t\t// 파일 다이얼로그 출력\r\n\t\t\t\tint ret = chooser.showOpenDialog(null);\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) { // 사용자가 창을 강제로 닫았거나 취소\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 버튼을 누른 경우\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"파일을 선택하지 않았습니다\", \"경고\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// 사용자가 파일을 선택하고 \"열기\" 버튼을 누른 경우\r\n\t\t\t\tfilePath = chooser.getSelectedFile().getPath(); // 파일 경로명을\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 알아온다.\r\n\t\t\t\t\r\n\t\t\t\tteethP3.setIcon(new ImageIcon(((new ImageIcon(filePath))\r\n\t\t\t\t\t\t.getImage()).getScaledInstance(300, 250,\r\n\t\t\t\t\t\tjava.awt.Image.SCALE_SMOOTH))); // 파일을 로딩하여 이미지 레이블에\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 출력한다.\r\n\t\t\t\tteethP3.addMouseListener(new EnlargeListener());\r\n\t\t\t}",
"public void getFile(JPanel panel) {\n listOfFile= new ArrayList();\n for(int x=0; x<listOfFiles.length;x++) {\n listOfFile.add(listOfFiles[x]);\n }\n if(FileManaging.isMac()) {\n if(listOfFile.contains(Mac_DS_Store))\n listOfFile.remove(Mac_DS_Store);\n if(listOfFile.contains(Mac_Option))\n listOfFile.remove(Mac_Option);\n //if(listOfFile.contains(Mac_Log))\n // listOfFile.remove(Mac_Log);\n }\n if(panel!=null)\n for(int x=0; x<listOfFile.size();x++) {\n buttons.put(x, new JButton(listOfFile.get(x).getName()));\n buttons.get(x).setVisible(true);\n buttons.get(x).setActionCommand(x+\"\");\n buttons.get(x).addActionListener(this);\n buttons.get(x).setBackground(Color.green);\n panel.add(buttons.get(x));\n }\n }",
"public ManejadorArch(String Usuario) {\n initComponents();\n \n NombreUs = Usuario;\n vertical[ver]=\"\\\\\";\n ver++;\n //modelo.addRow();\n if (Usuario.equals(\"admin\")) {\n Rutax = \"\\\\\";\n Rutay =Ruta;\n }else{\n Rutax = \"\\\\\";\n Rutay =Ruta;\n }\n //path actual para crear archivos y crear carpetas\n \n if (Usuario.equals(\"admin\")) {\n // this.jFileChooser1.setCurrentDirectory(new java.io.File(Ruta));\n }else{\n // this.jFileChooser1.setCurrentDirectory(new java.io.File(Ruta+Usuario));\n }\n \n if (Usuario.equals(\"admin\")) {\n this.jb_cargausuarios.setVisible(true);\n this.jb_reporteusuarios.setVisible(true);\n }else{\n this.jb_cargausuarios.setVisible(false);\n this.jb_reporteusuarios.setVisible(false);\n }\n }",
"@Override\n public void onClick(View v) {\n SharedPreferences.Editor prefsEditor = settingsPreferences.edit();\n if (settingsPreferences.getBoolean(TAG_ASCAN_MODIFIED_FILES, false)) {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, false);\n cbModFiles.setImageResource(R.drawable.check2);\n } else {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, true);\n cbModFiles.setImageResource(R.drawable.check0);\n }\n prefsEditor.commit();\n }",
"@Override\r\n public void actionPerformed(ActionEvent e) {\r\n JFileChooser fileChooser = new JFileChooser();\r\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\r\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\"*.Images\", \"jpg\", \"gif\", \"png\");\r\n fileChooser.addChoosableFileFilter(filter);\r\n int result1 = fileChooser.showOpenDialog(null);\r\n if(result1 == JFileChooser.APPROVE_OPTION) {\r\n \tselectedFile = fileChooser.getSelectedFile();\r\n \treview.setText(selectedFile.getAbsolutePath());\r\n }\r\n }",
"private List<String> returnFiles(int selection) {\n\t\tString path = System.getProperty(\"user.dir\");\n\t\tList<String> allImages = new ArrayList<String>();\n\t\tpath += this.setFolderPath(selection);\n\t\tFile[] files = new File(path).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif (file.isFile() && isCorrectFile(file)) {\n\t\t\t\tallImages.add(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\treturn allImages;\n\t}",
"public void sauverListe(ActionEvent evt)\n\t{\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tMyFileFilter filter = new MyFileFilter();\n\t\tfilter.addExtension(\"xml\");\n\t\tfileChooser.setFileFilter(filter);\n\t\tfileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);\t\t\n\t\tint returnVal = fileChooser.showOpenDialog(FormJoueur.this);\n\t\t\n\t\tif (returnVal == JFileChooser.APPROVE_OPTION)\n\t\t{\n\t\t\tFile file = fileChooser.getSelectedFile();\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// si le fichier n'existe pas on le créer\n\t\t\t\tif(!file.exists())\n\t\t\t\t{\n\t\t\t\t\tif(!file.getName().endsWith(\".xml\")&&!file.getName().endsWith(\".XML\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tfile = new File(file.getAbsolutePath()+\".xml\");\n\t\t\t\t\t\tif(!file.createNewFile())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(this,\"Erreur lors de l'enregistrement !\",\"Erreur\",JOptionPane.ERROR_MESSAGE);\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\tXMLEncoder e = new XMLEncoder(\n\t\t\t\t\t\t\t\t new BufferedOutputStream(\n\t\t\t\t\t\t\t\t\t new FileOutputStream(file)));\n\t\t\t\tIterator joueurs = ((JoueursTableModel)sorter.getTableModel()).getJoueurs().iterator();\n\t\t\t\twhile(joueurs.hasNext())\n\t\t\t\t{\n\t\t\t\t\tJoueur joueur = (Joueur)joueurs.next();\n\t\t\t\t\tjoueur.setHere(false);\n\t\t\t\t\te.writeObject(joueur);\n\t\t\t\t}\n\t\t\t\te.close();\n\t\t\t}\n\t\t\tcatch(Exception exp)\n\t\t\t{\n\t\t\t\tlogger.error(exp);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t}\t\t\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n\t\t\t\t\t\t\"Image Files\", // 파일 이름에 창에 출력될 문자열\r\n\t\t\t\t\t\t\"jpg\", \"gif\", \"PNG\"); // 파일 필터로 사용되는 확장자. *.jpg. *.gif만\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 나열됨\r\n\t\t\t\tchooser.setFileFilter(filter); // 파일 다이얼로그에 파일 필터 설정\r\n\t\t\t\tchooser.setMultiSelectionEnabled(false);//다중 선택 불가\r\n\r\n\t\t\t\t// 파일 다이얼로그 출력\r\n\t\t\t\tint ret = chooser.showOpenDialog(null);\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) { // 사용자가 창을 강제로 닫았거나 취소\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 버튼을 누른 경우\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"파일을 선택하지 않았습니다\", \"경고\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// 사용자가 파일을 선택하고 \"열기\" 버튼을 누른 경우\r\n\t\t\t\tfilePath = chooser.getSelectedFile().getPath(); // 파일 경로명을\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 알아온다.\r\n\t\t\t\t\r\n\t\t\t\tteethP2.setIcon(new ImageIcon(((new ImageIcon(filePath))\r\n\t\t\t\t\t\t.getImage()).getScaledInstance(300, 250,\r\n\t\t\t\t\t\tjava.awt.Image.SCALE_SMOOTH))); // 파일을 로딩하여 이미지 레이블에\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 출력한다.\r\n\t\t\t\tteethP2.addMouseListener(new EnlargeListener());\r\n\t\t\t}",
"public void showSelectedFiles() {\n\t\tCIVLTable tbl_fileTable = (CIVLTable) getComponentByName(\"tbl_fileTable\");\n\t\tDefaultTableModel fileModel = (DefaultTableModel) tbl_fileTable\n\t\t\t\t.getModel();\n\t\tif (fileModel.getRowCount() != 0) {\n\t\t\tfileModel.setRowCount(0);\n\t\t\ttbl_fileTable.clearSelection();\n\t\t}\n\n\t\tArrayList<File> files = currConfig.getSelectedFiles();\n\t\tfor (int i = 0; i < files.size(); i++) {\n\t\t\tFile f = files.get(i);\n\t\t\tfileModel\n\t\t\t\t\t.addRow(new Object[] { f.getName(), f.getPath(), \"Delete\" });\n\t\t}\n\t}",
"public void invokeSelectPhotosAction() {\n\t\tfinal File root = new File(Environment.getExternalStorageDirectory()\n\t\t\t\t+ File.separator + PgrsConstants.DIRECTORY_CAMERA_IMAGE\n\t\t\t\t+ File.separator);\n\t\troot.mkdirs();\n\t\tfinal String fname = PgrsHelper.getInstance()\n\t\t\t\t.getUniqueImageFilename();\n\t\tfinal File sdImageMainDirectory = new File(root, fname);\n\t\toutputFileUri = Uri.fromFile(sdImageMainDirectory);\n\n\t\t// Camera.\n\t\tfinal List<Intent> cameraIntents = new ArrayList<Intent>();\n\t\tfinal Intent captureIntent = new Intent(\n\t\t\t\tandroid.provider.MediaStore.ACTION_IMAGE_CAPTURE);\n\t\tfinal PackageManager packageManager = getPackageManager();\n\t\tfinal List<ResolveInfo> listCam = packageManager.queryIntentActivities(\n\t\t\t\tcaptureIntent, 0);\n\t\tfor (ResolveInfo res : listCam) {\n\t\t\tfinal String packageName = res.activityInfo.packageName;\n\t\t\tfinal Intent intent = new Intent(captureIntent);\n\t\t\tintent.setComponent(new ComponentName(res.activityInfo.packageName,\n\t\t\t\t\tres.activityInfo.name));\n\t\t\tintent.setPackage(packageName);\n\t\t\tintent.putExtra(MediaStore.EXTRA_OUTPUT, outputFileUri);\n\t\t\tcameraIntents.add(intent);\n\t\t}\n\n\t\t// Filesystem.\n\t\tIntent galleryIntent = null;\n\t\tif (Build.VERSION.SDK_INT < 19) {\n\t\t\tgalleryIntent = new Intent();\n\t\t\tgalleryIntent.setType(\"image/*\");\n\t\t\tgalleryIntent.setAction(Intent.ACTION_GET_CONTENT);\n\n\t\t} else {\n\n\t\t\tgalleryIntent = new Intent(\n\t\t\t\t\tIntent.ACTION_PICK,\n\t\t\t\t\tandroid.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t}\n\n\t\t// Set Common Flags to Gallery Intent\n\t\tif (Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD_MR1) {\n\t\t\tgalleryIntent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);\n\t\t}\n\t\tgalleryIntent.putExtra(Intent.CATEGORY_OPENABLE, true);\n\n\t\t// Chooser of filesystem options.\n\t\tfinal Intent chooserIntent = Intent.createChooser(galleryIntent,\n\t\t\t\tPgrsConstants.INTENT_TITLE_PICK_PHOTOS);\n\n\t\t// Add the camera options.\n\t\tchooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,\n\t\t\t\tcameraIntents.toArray(new Parcelable[] {}));\n\n\t\tstartActivityForResult(chooserIntent,\n\t\t\t\tPgrsConstants.REQUEST_CODE_PICK_PICTURES_FOR_COMPLAINTS);\n\t}",
"private void pickFile() {\n\n String[] mimeTypes = {\"application/pdf\"};\n\n Intent intent = new Intent(Intent.ACTION_GET_CONTENT);\n intent.addCategory(Intent.CATEGORY_OPENABLE);\n intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE,false);\n intent.setType(\"*/*\");\n intent.putExtra(Intent.EXTRA_MIME_TYPES, mimeTypes);\n startActivityForResult(intent, 2);\n\n\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n\t\t\t\t\t\t\"Image Files\", // 파일 이름에 창에 출력될 문자열\r\n\t\t\t\t\t\t\"jpg\", \"gif\", \"PNG\"); // 파일 필터로 사용되는 확장자. *.jpg. *.gif만\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 나열됨\r\n\t\t\t\tchooser.setFileFilter(filter); // 파일 다이얼로그에 파일 필터 설정\r\n\t\t\t\tchooser.setMultiSelectionEnabled(false);//다중 선택 불가\r\n\r\n\t\t\t\t// 파일 다이얼로그 출력\r\n\t\t\t\tint ret = chooser.showOpenDialog(null);\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) { // 사용자가 창을 강제로 닫았거나 취소\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 버튼을 누른 경우\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"파일을 선택하지 않았습니다\", \"경고\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// 사용자가 파일을 선택하고 \"열기\" 버튼을 누른 경우\r\n\t\t\t\tfilePath = chooser.getSelectedFile().getPath(); // 파일 경로명을\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 알아온다.\r\n\t\t\t\tplaqueP3.setIcon(new ImageIcon(((new ImageIcon(filePath))\r\n\t\t\t\t\t\t.getImage()).getScaledInstance(300, 250,\r\n\t\t\t\t\t\tjava.awt.Image.SCALE_SMOOTH))); // 파일을 로딩하여 이미지 레이블에\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 출력한다.\r\n\t\t\t\tplaqueP3.addMouseListener(new EnlargeListener());\r\n\t\t\t}",
"void selectDirectory(){\n fc.setCurrentDirectory(new java.io.File( \"saved\" + File.separator));\n fc.setDialogTitle(\"FILE CHOOSER!\");\n FileNameExtensionFilter xmlfilter = new FileNameExtensionFilter(\n \"json files (*.json)\", \"json\");\n fc.setFileFilter(xmlfilter);\n int response = fc.showSaveDialog(this);\n if (response == JFileChooser.APPROVE_OPTION) {\n File selectedFile = fc.getSelectedFile();\n System.out.println(\"Save as file: \" + selectedFile.getAbsolutePath());\n } else if (response == JFileChooser.CANCEL_OPTION) {\n System.out.println(\"Cancel was selected\");\n }\n System.out.println(fc.getSelectedFile().getAbsolutePath());\n }",
"public void abrirArchivo() {\r\n try {\r\n entrada = new Scanner(new File(\"estudiantes.txt\"));\r\n } // fin de try\r\n catch (FileNotFoundException fileNotFoundException) {\r\n System.err.println(\"Error al abrir el archivo.\");\r\n System.exit(1);\r\n } // fin de catch\r\n }",
"private static void escribirArchivo(String nombre, String contenido, boolean agregar) {\n\n\t\tFileOutputStream archivo = null;\n\t\tBufferedOutputStream buffer = null;\n\t\tbyte entrada[] = new byte [100];\n\t\tArrayList<String> lista = new ArrayList<String>(5);\n\n\t\ttry {\n\t\t\tarchivo = new FileOutputStream(nombre, agregar);\n\t\t} catch (FileNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbuffer = new BufferedOutputStream(archivo);\n\t\t\tbuffer.write(contenido.getBytes());\n\t\t\tbuffer.write(\"\\n\".getBytes());\n\t\t\tbuffer.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"SELECT IMAGE\"), GALLERY_PICK);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n\t\t\t\t\t\t\"Image Files\", // 파일 이름에 창에 출력될 문자열\r\n\t\t\t\t\t\t\"jpg\", \"gif\", \"PNG\"); // 파일 필터로 사용되는 확장자. *.jpg. *.gif만\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 나열됨\r\n\t\t\t\tchooser.setFileFilter(filter); // 파일 다이얼로그에 파일 필터 설정\r\n\t\t\t\tchooser.setMultiSelectionEnabled(false);//다중 선택 불가\r\n\r\n\t\t\t\t// 파일 다이얼로그 출력\r\n\t\t\t\tint ret = chooser.showOpenDialog(null);\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) { // 사용자가 창을 강제로 닫았거나 취소\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 버튼을 누른 경우\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"파일을 선택하지 않았습니다\", \"경고\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// 사용자가 파일을 선택하고 \"열기\" 버튼을 누른 경우\r\n\t\t\t\tfilePath = chooser.getSelectedFile().getPath(); // 파일 경로명을\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 알아온다.\r\n\t\t\t\t\r\n\r\n\t\t\t\tteethP1.setIcon(new ImageIcon(((new ImageIcon(filePath))\r\n\t\t\t\t\t\t.getImage()).getScaledInstance(300, 250,\r\n\t\t\t\t\t\tjava.awt.Image.SCALE_SMOOTH))); // 파일을 로딩하여 이미지 레이블에\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 출력한다.\r\n\t\t\t\tteethP1.addMouseListener(new EnlargeListener());\r\n\t\t\t}",
"private void openFileChoose() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PEGA_IMAGEM);\n }",
"private void showFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), PICK_IMAGE_REQUEST);\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), SELECT_PICTURE);\n }",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tJFileChooser chooser = new JFileChooser();\r\n\t\t\t\tFileNameExtensionFilter filter = new FileNameExtensionFilter(\r\n\t\t\t\t\t\t\"Image Files\", // 파일 이름에 창에 출력될 문자열\r\n\t\t\t\t\t\t\"jpg\", \"gif\", \"PNG\"); // 파일 필터로 사용되는 확장자. *.jpg. *.gif만\r\n\t\t\t\t\t\t\t\t\t\t\t\t// 나열됨\r\n\t\t\t\tchooser.setFileFilter(filter); // 파일 다이얼로그에 파일 필터 설정\r\n\t\t\t\tchooser.setMultiSelectionEnabled(false);//다중 선택 불가\r\n\r\n\t\t\t\t// 파일 다이얼로그 출력\r\n\t\t\t\tint ret = chooser.showOpenDialog(null);\r\n\t\t\t\tif (ret != JFileChooser.APPROVE_OPTION) { // 사용자가 창을 강제로 닫았거나 취소\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 버튼을 누른 경우\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"파일을 선택하지 않았습니다\", \"경고\",\r\n\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// 사용자가 파일을 선택하고 \"열기\" 버튼을 누른 경우\r\n\t\t\t\tfilePath = chooser.getSelectedFile().getPath(); // 파일 경로명을\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 알아온다.\r\n\t\t\t\tplaqueP2.setIcon(new ImageIcon(((new ImageIcon(filePath))\r\n\t\t\t\t\t\t.getImage()).getScaledInstance(300, 250,\r\n\t\t\t\t\t\tjava.awt.Image.SCALE_SMOOTH))); // 파일을 로딩하여 이미지 레이블에\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 출력한다.\r\n\t\t\t\tplaqueP2.addMouseListener(new EnlargeListener());\r\n\t\t\t}",
"public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (e.getSource() == browseBtn) {\n\t\t\t\t\tfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\n\t\t\t\t\tint returnVal = fc.showOpenDialog(browseBtn);\n\t\t\t\t\tif (returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\tFile file = fc.getSelectedFile();\n\t\t\t\t\t\tcomboBox.setSelectedItem(file.getAbsolutePath());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n public void actionPerformed(ActionEvent ae) {\r\n String option = ae.getActionCommand();\r\n PracticaProgramacion3Swing.log.append(ae.getActionCommand()+\"\\n\");\r\n switch(option){\r\n \r\n case \"Crear txt\":\r\n \r\n FuncionesMenus.newFile();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Crear bin\":\r\n FuncionesMenus.newFileBin();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Eliminar txt\":\r\n case \"Eliminar bin\": \r\n FuncionesMenus.delFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Renombrar txt\":\r\n case \"Renombrar bin\":\r\n FuncionesMenus.renameFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Escribir dni\":\r\n FuncionesMenus.writeLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Escribir DNI\":\r\n FuncionesMenus.writeLineBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Buscar dni\":\r\n FuncionesMenus.getID();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Buscar DNI\":\r\n FuncionesMenus.getIDBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Eliminar dni\":\r\n FuncionesMenus.delLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Eliminar DNI\":\r\n FuncionesMenus.delLineBin();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Extraer ficheros\": \r\n FuncionesMenus.getFiles();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Almacenar\":\r\n FuncionesMenus.getAll();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n default:\r\n break;\r\n } \r\n }",
"public void setArchiver(String sArchiver);",
"public void descargarArchivoVeri()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_veri, nombre FROM anexoverificacion where idverificacion=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n // image k selection k liey requesting code jo hai upar vo 1234 hai ye dena hota hai\n startActivityForResult(Intent.createChooser(intent, \"Select Image\"), REQUEST_CODE);\n }",
"public void selectedImageButtonPushed(ActionEvent event) throws IOException {\n // get the Stage to open a new window\n Stage stage = (Stage)((Node)event.getSource()).getScene().getWindow();\n FileChooser fileChooser = new FileChooser();\n fileChooser.setTitle(\"open Image\");\n //filter for .jpg and .png\n FileChooser.ExtensionFilter imageFilter = new FileChooser.ExtensionFilter(\"Image Files\",\"*.jpg\",\"*.png\");\n fileChooser.getExtensionFilters().add(imageFilter);\n // set the start directory\n String userDirectoryString = System.getProperty(\"user.home\")+\"\\\\Pictures\";\n File userDirectory = new File(userDirectoryString);\n // confirm that system can reach the directory\n if (!userDirectory.canRead())\n userDirectory = new File(System.getProperty(\"user.home\"));\n //set the file chooser to select initial directory\n fileChooser.setInitialDirectory(userDirectory);\n File imageFile = fileChooser.showOpenDialog(stage);\n if (imageFile != null && imageFile.isFile())\n {\n selectImage.setImage(new Image(imageFile.toURI().toString()));\n }\n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n JFileChooser fc = new JFileChooser(); \n int returnVal = fc.showOpenDialog(null);\n if (returnVal == JFileChooser.APPROVE_OPTION) {\n File file = fc.getSelectedFile();\n System.out.println(file.getAbsolutePath()); \n image = loadImage( file);\n }\n }",
"public static void processDirectorySelecction()\n {\n int answer = JSoundsMainWindowViewController.jFileChooser1.showOpenDialog(JSoundsMainWindowViewController.jSoundsMainWindow);\n \n if (answer == JFileChooser.APPROVE_OPTION)\n {\n File actualDirectory = JSoundsMainWindowViewController.jFileChooser1.getCurrentDirectory();\n String directory = actualDirectory.getAbsolutePath() + \"/\" + JSoundsMainWindowViewController.jFileChooser1.getSelectedFile().getName();\n UtilFunctions.listFilesAndFilesSubDirectories(directory);\n JSoundsMainWindowViewController.orderBy(true, false, false);\n \n \n }\n }",
"private void selectImage(){\n final CharSequence[] options = { \"Choose from Gallery\",\"Cancel\" };\n AlertDialog.Builder builder = new AlertDialog.Builder(activity);\n builder.setItems(options, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int item) {\n if (options[item].equals(\"Choose from Gallery\"))\n {\n Intent intent = new Intent(Intent.ACTION_PICK, android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n intent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);\n startActivityForResult(intent, 2);\n }\n else if (options[item].equals(\"Cancel\")) {\n dialog.dismiss();\n }\n }\n });\n builder.show();\n }",
"private void openFileChooser() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(intent, PICK_IMAGE_REQUEST);\n\n }",
"public String getArchiver();",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t dia.dismiss();\n\t\t\t\tIntent intent = new Intent( Intent.ACTION_PICK,android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI);\n\t\t\t\t startActivityForResult(intent, 1);\n\t\t\t\t\n\t\t\t}",
"public void descargarArchivo()throws SQLException, IOException {\n //conexion con el resultset\n st = cn.createStatement();\n\n // consulta de descarga el getId es la variable que utilizo para ubicarme en la base de datos\n ResultSet rs = st.executeQuery(\"select anexo_justi, nombre FROM anexoitem where iditem=\"+rt.getId());\ntry {\n \nrs.next();\n// pone en la variable el nombre del archivo de la base de datos\nnombre= rs.getString(\"nombre\");\n// inserta la ruta completa\nFile file = new File(rt.getPath()+nombre);\n// salida del archivo de flujo\nFileOutputStream output = new FileOutputStream(file);\nBlob archivo = rs.getBlob(1);\nInputStream inStream = archivo.getBinaryStream();\n// almacenamiento del tamaño y descarga byte a byte\nint length= -1;\nint size = (int) archivo.length();\nbyte[] buffer = new byte[size];\nwhile ((length = inStream.read(buffer)) != -1) {\noutput.write(buffer, 0, length);\nJOptionPane.showMessageDialog(null,\"El archivo se descargo correctamente\");\n// output.flush();\n\n}\n// inStream.close();\noutput.close();\n} catch (Exception ioe) {\nthrow new IOException(ioe.getMessage());\n}\n}",
"public javax.swing.JMenu getArchivoMenu() {\n\t\treturn archivoMenu;\n\t}",
"@Override\n public void onClick(View v) {\n\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent,\n \"Select Picture\"), IMG_RESULT);\n\n }",
"@Override\n public void onClick(View v) {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n ((MainActivity) getActivity()).startActivityForResult(\n Intent.createChooser(intent, \"Select Picture\"),\n MainActivity.GALLERY_CODE);\n\n }",
"public Elegir()\n {\n initComponents();\n\n try\n {\n ObjectInputStream directorios = new ObjectInputStream(new FileInputStream(\"dirFav.dat\"));\n directoriosFavoritos = (ArrayList<String>) directorios.readObject();\n if (directoriosFavoritos == null)\n {\n directoriosFavoritos = new ArrayList<>();\n } else\n {\n for (int i = 0; i < directoriosFavoritos.size(); i++)\n {\n JMenuItem menuItem = new JMenuItem(directoriosFavoritos.get(i));\n menuItem.addActionListener(this);\n jMenuFavoritos.add(menuItem);\n submenus.add(menuItem);\n }\n }\n directorios.close();\n } catch (Exception e)\n {\n }\n }",
"private void chooseImageAndUpload() {\n Intent intent = new Intent();\n intent.setType(\"image/*\");\n intent.setAction(Intent.ACTION_GET_CONTENT);\n startActivityForResult(Intent.createChooser(intent, \"Select Picture\"), Common.PICK_IMAGE_REQUEST);\n\n }"
] | [
"0.76664567",
"0.6878355",
"0.6839025",
"0.66826606",
"0.6666317",
"0.66111094",
"0.6530392",
"0.64566004",
"0.640832",
"0.63534665",
"0.6334532",
"0.60977525",
"0.6095437",
"0.60662884",
"0.6048442",
"0.60072786",
"0.60051084",
"0.6003482",
"0.59996563",
"0.5983712",
"0.5961794",
"0.5943452",
"0.59224325",
"0.59195274",
"0.5919506",
"0.59181976",
"0.59145784",
"0.5902255",
"0.5882966",
"0.5882096",
"0.58691806",
"0.5863369",
"0.58122766",
"0.5803811",
"0.5802622",
"0.57916784",
"0.57846814",
"0.57817554",
"0.57726806",
"0.57668644",
"0.5765528",
"0.57492083",
"0.5747925",
"0.5739835",
"0.5734925",
"0.5729848",
"0.57210857",
"0.5705198",
"0.5696137",
"0.56953925",
"0.5692319",
"0.56840986",
"0.56836337",
"0.5675456",
"0.5660953",
"0.5659714",
"0.56562287",
"0.56553376",
"0.56544685",
"0.5649229",
"0.56479895",
"0.56472063",
"0.5646548",
"0.5642099",
"0.5641295",
"0.5637325",
"0.563297",
"0.56184",
"0.56172985",
"0.56153476",
"0.5612928",
"0.56127036",
"0.560911",
"0.56061023",
"0.56058383",
"0.56005824",
"0.56005824",
"0.55884254",
"0.5585653",
"0.5584762",
"0.55837375",
"0.55819505",
"0.55803615",
"0.55779165",
"0.55731624",
"0.55656904",
"0.5564777",
"0.5563863",
"0.55612564",
"0.5556572",
"0.5551276",
"0.5547564",
"0.55444926",
"0.5540259",
"0.5532269",
"0.5531323",
"0.5524931",
"0.5523477",
"0.5521045",
"0.5520895",
"0.5507"
] | 0.0 | -1 |
metodo que verifica si lo ingresado es un numero | public static int verif(String cadena) {
Scanner l = new Scanner(System.in);
int m1 = -1;
do {
try {
System.out.println(cadena);
m1 = l.nextInt();
} catch (InputMismatchException e) {
System.out.println("Valor no valido, ingrese un valor nuimerico");
}
l.nextLine();
} while (m1 < 0);
return m1;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }",
"boolean hasNumber();",
"private boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }",
"public static boolean IsNumber(int par_Numer) {\n return true;\n }",
"public boolean hasNumber(){\n return (alg.hasNumber(input.getText().toString()));\n }",
"public boolean checkNumber() {\n\t\treturn true;\n\t}",
"public static boolean verificarNumeros(String numero) {\n\t\ttry{\n\t\t\tInteger.parseInt(numero);\n\t\t\treturn true;\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasNum();",
"boolean hasNum();",
"boolean hasNum();",
"private boolean validar_numero(String numero) {\n boolean es_valido;\n es_valido = numero.charAt(0) != '0';\n return es_valido;\n }",
"public static boolean IsNumber(long par_Number) {\n return true;\n }",
"public static boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }",
"public boolean isNumber(String num)\t{\n\t\tfor(int i=0;i<13;i++)\t{\n\t\t\tif(Integer.parseInt(num)==i)\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean testForNumber() throws IOException {\n int token = fTokenizer.nextToken();\n\tfTokenizer.pushBack();\n return (token == StreamTokenizer.TT_NUMBER);\n }",
"private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}",
"public default boolean hasNumber() {\n\t\treturn false;\n\t}",
"public void ingresarNumero() {\n do {\r\n System.out.print(\"\\nIngrese un numero entre 0 y 100000: \");\r\n numero = teclado.nextInt();\r\n if (numero < 0 || numero > 100000){\r\n System.out.println(\"Error, rango invalido. Intentelo de nuevo.\");\r\n }\r\n } while(numero < 0 || numero > 100000);\r\n contarDigitos(numero); //el numero ingresado se manda como parametro al metodo\r\n menu();\r\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 boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}",
"private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }",
"private int getNumero() {\n\t\treturn numero;\n\t}",
"static boolean blanco(int numero){\n\t\tboolean resultado; \n\t\tif (numero > 43){\n\t\t\tresultado = true;\n\t\t}else{\n\t\t\tresultado = false;\n\t\t}\n\t\treturn resultado;\t\n\t}",
"public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\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 int pedirNIF(){\n int NIF = 0;\n boolean validado = false;\n do{\n System.out.println(\"Introduce la NIF:\");\n try {\n NIF = Integer.parseInt(lector.nextLine());\n validado = true;\n\n if(NIF <= 0){\n validado = false;\n System.out.println(\"El NIF no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n return NIF;\n }",
"private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}",
"boolean hasNum1();",
"private boolean isNumerico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"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}",
"private static int isEntero(String palabra) {\n int resultado;//declaramos la variable a retornar\n\n try {\n Integer.parseInt(palabra);//convertimos la palabra a Integer\n resultado = 1;//Si no hay un error entonces es un numero y retornamos true\n } catch (NumberFormatException excepcion) {//de lo contrario es una palabra\n resultado = 0;\n }\n\n return resultado;//retornamos el valor\n }",
"public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }",
"public void leerNumero() {\r\n\t\tdo {\r\n\t\t\tnumeroDNI=Integer.parseInt(JOptionPane.showInputDialog(\"Numero de DNI: \"));\r\n\t\t\tSystem.out.println(\"Numero de 8 digitos...\");\r\n\t\t}while(numeroDNI<9999999||numeroDNI>99999999);\r\n\t\tletra=hallarLetra();\r\n\t}",
"public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}",
"boolean hasNumb();",
"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 boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }",
"public static boolean IsNumber(double par_Number) {\n return true;\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 hasNumber() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasNumber() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public static boolean esNumerico (int tipoSQL) {\n\t \n\t switch (tipoSQL) {\n\t \tcase Types.BIGINT :\n\t \tcase Types.DECIMAL :\n\t \tcase Types.DOUBLE :\n\t \tcase Types.FLOAT :\n\t \tcase Types.INTEGER :\n\t \tcase Types.NUMERIC :\n\t \tcase Types.REAL :\n\t \tcase Types.SMALLINT :\n\t \tcase Types.TINYINT :\n\t \t return true;\n\t }\n\t return false;\n\t}",
"private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }",
"public static void OrdenarNumeros(){\n\t\t//Variables\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tString tomar;\n\n\t\tScanner reader = new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese tres numeros numero\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tc=reader.nextInt();\n\t\tif(a>b && b>c){\n\t\t\tTexto=a+\",\"+b+\",\"+c;\n\t\t}else if(a>c && c>b){\n\t\t\tTexto=a+\",\"+c+\",\"+b;\n\t\t}else if(b>a && a>c){\n\t\t\tTexto=b+\",\"+a+\",\"+c;\n\t\t}else if(b>c && c>a){\n\t\t\tTexto=b+\",\"+c+\",\"+a;\n\t\t}else if(c>a && a>b){\n\t\t\tTexto=c+\",\"+a+\",\"+b;\n\t\t}else if(c>b && b>a ){\n\t\t\tTexto=c+\",\"+b+\",\"+a;\n\t\t}\n\t\tSystem.out.println(Texto);\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }",
"public static boolean IsNumber(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() || IsInteger(par_Number);\n }",
"public static boolean menosONo(){\n Scanner cifra = new Scanner(System.in);\n System.out.println(\"Задание №6. Введите любое число\");\n int number = cifra.nextInt();\n if (number < 0){\n System.out.println(\"Вы ввели отрицательное число.\");\n return true;\n }else\n System.out.println(\"Вы ввели положительное число.\");\n return false;\n }",
"private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: false;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"@Override\n\tpublic boolean number()\n\t{\n\t\treturn true;\n\t}",
"private boolean isNumber(final String number) {\n try {\n Integer.parseInt(number);\n return true;\n } catch (Exception e) {\n LOGGER.error(\"Not a number \" + number, e);\n return false;\n }\n }",
"public boolean ValidarCantidad(String c) {\n String numCuenta = c;\n int NOnum = 0;\n for (int i = 0; i < numCuenta.length(); i++) {\n if (!Character.isDigit(numCuenta.charAt(i))) {\n NOnum++;\n }\n }\n return NOnum == 0;\n }",
"public abstract boolean isNumeric();",
"protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }",
"public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}",
"boolean hasNum2();",
"public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }",
"public int getNumero() {\n return numero;\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}",
"@Override\n public boolean isMaybeAnyNum() {\n checkNotPolymorphicOrUnknown();\n return (flags & NUM) == NUM;\n }",
"public boolean isInteger();",
"private boolean hasNumberThreshold() {\r\n return entity.getActualNumber() < entity.getTheoreticalNumber();\r\n }",
"boolean hasInt();",
"public static boolean checkUnlucky(int num) {\n\t\twhile (num != 0) {\n\t\t\tif (num == 13) {\n\t\t\t\treturn true;\n\t\t\t} \n\t\t\tnum = num / 10;\n\t\t}\n\t\treturn false;\n\t}",
"public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}",
"public boolean isNumberValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_NUMBER);\n }",
"private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}",
"public boolean isNumber(InputStream in) {\n boolean result = false;\n try (BufferedReader reader = new BufferedReader(new InputStreamReader(in))) {\n int number = Integer.parseInt(reader.readLine());\n\n if (number % 2 == 0) {\n result = true;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }",
"public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }",
"public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }",
"public boolean restarUno(){\n\t\tif (numero>0){\n\t\t\tnumero--;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isNumberSet(int number) {\n int[] pos = boardMapper.get(number);\n String c = boardArray[pos[0]][pos[1]];\n return c.equalsIgnoreCase(\"X\") || c.equalsIgnoreCase(\"O\");\n }",
"public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }",
"private boolean numeroValido(int numero, int ren, int col){\n return verificaArea(numero,ren,col)&&verificaRenglon(numero,ren) && verificaColumna(numero,col);\n }",
"private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }",
"boolean hasIntValue();",
"public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}",
"public String getPremierNumeroLibre() {\n\t\tString requete_s = \"SELECT id from LIVRES\";\n\t\tint i = 0;\n\t\tboolean egalite = true;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\tdo{\n\t\t\t\ti++;\n\t\t\t\trs.next();\n\t\t\t\tegalite = (i ==((Integer) rs.getObject(1)));\n\t\t\t}while(egalite);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tString s = \"\" + i;\n\t\t\n\t\treturn s;\n\t}",
"public boolean isSetNum() {\n return this.Num != null;\n }",
"int generarNumeroNota();",
"public static boolean isNumeric(Object number) {\n\t\treturn isNumericClass(number.getClass());\n\t}",
"private boolean checkId() {\n int sum = 0;\n int id;\n\n try\n {\n id = Integer.parseInt(ID.getText().toString());\n }\n catch (Exception e)\n {\n return false;\n }\n\n if (id >= 1000000000)\n return false;\n\n for (int i = 1; id > 0; i = (i % 2) + 1) {\n int digit = (id % 10) * i;\n sum += digit / 10 + digit % 10;\n\n id=id/10;\n }\n\n if (sum % 10 != 0)\n return false;\n\n return true;\n }",
"private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }",
"public static void checkNumber(List<Token> token) {\r\n\t\tfor (Token tk : token) {\r\n\t\t\tif (tk.getName().matches(\"^\\\\d+$\")) {\r\n\t\t\t\ttk.getFeatures().setLexicalType(String.valueOf(Lexical.NUMBER));\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean numeroLivreDejaEnregistre(int numero_livre) {\n\t\t\n\t\tString requete_s = \"SELECT id from LIVRES where id = \" + numero_livre;\n\t\t\n\t\ttry{\n\t\t\trequete.execute(requete_s);\n\t\t\t\n\t\t\tResultSet rs = requete.getResultSet();\n\t\t\t\n\t\t\tif(rs.next())\n\t\t\t\treturn (numero_livre == ((Integer) rs.getObject(\"id\")));\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean checkForNumber(int m, int n){\r\n\t\tif ( count[m][n] > 0 & count[m][n] < 9 & !bombs[m][n])\r\n\t\t\treturn true ;\r\n\t\treturn false;\r\n\t}",
"public int getNumNudo() {\n return numNudo;\n }",
"public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}",
"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 }",
"@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}",
"private static void obterNumeroLugar(String nome) {\n\t\tint numero = gestor.obterNumeroLugar(nome);\n\t\tif (numero > 0)\n\t\t\tSystem.out.println(\"O FUNCIONARIO \" + nome + \" tem LUGAR no. \" + numero);\n\t\telse\n\t\t\tSystem.out.println(\"NAO EXISTE LUGAR de estacionamento atribuido a \" + nome);\n\t}",
"private boolean esPrimo(int pNumero)\r\n\t{\r\n\t\tboolean esPrimo = true;\r\n\t\tfor(int i=2; i<=pNumero/2 && esPrimo;i++)\r\n\t\t{\r\n\t\t\tif(pNumero%i == 0)\r\n\t\t\t{\r\n\t\t\t\tesPrimo = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn esPrimo;\r\n\t}",
"boolean isNumber(Formula pTt);",
"public int getNumero() { return this.numero; }",
"private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }",
"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 }",
"public static void NumeroAmigo(){\n\t\tint a;\n\t\tint b;\n\t\tString tomar;\n\t\tint resultado;\n\t\tScanner reader= new Scanner(System.in);\n\t\tSystem.out.println(\"Ingrese dos numeros\");\n\t\ta=reader.nextInt();\n\t\tb=reader.nextInt();\n\t\tif(a>=0 && b>=0){\n\t\t\tresultado=RepetidorFor(a);\n\t\t\t\tif(resultado==b){\n\t\t\t\tresultado=RepetidorFor(b);\n\t\t\t\tif(resultado==a){\n\t\t\t\t\tSystem.out.println(\"Son numeros amigos\");\n\t\t\t\t}\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"No son numeros amigos\");\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"Ingrese numeros positivos\");\n\t\t}\n\t\tSystem.out.println(\"Desea regresar al menu anterior?\");\n\t\treader.nextLine();\n\t\ttomar=reader.nextLine();\n\t\tif(tomar.equals(\"si\")){\n\t\t\trepetidor=true;\n\t\t}else{\n\t\t\trepetidor=false;\n\t\t}\n\t}",
"public static boolean esPrimo(int numero) {\n int contador = 2;\n boolean primo = true;\n while ((primo) && (contador != numero)) {\n if (numero % contador == 0) {\n primo = false;\n }\n contador++;\n }\n\n return primo;\n }",
"private boolean isNumberAhead() {\r\n\t\treturn Character.isDigit(expression[currentIndex]);\r\n\t}"
] | [
"0.7505959",
"0.7363107",
"0.7360615",
"0.72953266",
"0.71202976",
"0.7117274",
"0.71139586",
"0.70554703",
"0.70554703",
"0.70554703",
"0.6876943",
"0.6833293",
"0.6775988",
"0.67684174",
"0.67540413",
"0.66565543",
"0.6645541",
"0.661189",
"0.6607231",
"0.6583045",
"0.65384567",
"0.64910877",
"0.64886045",
"0.64851236",
"0.644094",
"0.6439053",
"0.64073384",
"0.63592184",
"0.6355919",
"0.6335647",
"0.63239396",
"0.6314536",
"0.62898797",
"0.6257024",
"0.6236011",
"0.62313116",
"0.62110317",
"0.6210172",
"0.62078506",
"0.6207328",
"0.62016934",
"0.6162996",
"0.6152365",
"0.6137638",
"0.61357975",
"0.61354065",
"0.6128463",
"0.61194164",
"0.61139226",
"0.6098422",
"0.609451",
"0.60932535",
"0.6079418",
"0.607155",
"0.606069",
"0.6058896",
"0.60464394",
"0.60407287",
"0.60407287",
"0.60407287",
"0.6038727",
"0.6032209",
"0.6029556",
"0.60272396",
"0.6026038",
"0.59990495",
"0.5987026",
"0.5972833",
"0.59703606",
"0.5967363",
"0.59651273",
"0.5952185",
"0.59473014",
"0.5941642",
"0.5936295",
"0.5929483",
"0.5921677",
"0.59184396",
"0.5911794",
"0.5904962",
"0.5899364",
"0.58969396",
"0.58537024",
"0.58523524",
"0.585099",
"0.5847014",
"0.58353686",
"0.5833106",
"0.5831039",
"0.5828514",
"0.58210987",
"0.5821029",
"0.5818878",
"0.58123857",
"0.580446",
"0.5802492",
"0.57999754",
"0.5795047",
"0.5792445",
"0.5791216",
"0.5790725"
] | 0.0 | -1 |
Constructs a FindCommand that handles command of finding a task by searching for a keyword. | public FindCommand(String keyword) throws EmptyDescriptionException {
ExceptionChecker.checkEmptyDescription("find", keyword);
this.keyword = keyword;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FindCommand(String keyword) {\n this.keyword = keyword;\n }",
"public FindCommand(String keyword) {\n super();\n this.keyword = keyword;\n }",
"public FindCommand(WordContainsKeywordsPredicate predicate) {\n this.predicate = predicate;\n }",
"public FindCommand(String keyWord) {\n this.keyWord = keyWord;\n }",
"public FindCommand(String searchTerms) {\n super(false);\n this.searchTerms = searchTerms;\n }",
"public FindCommand(String[] command, String response) {\n try {\n if (command[1].isEmpty()) {\n throw new TaskException(\"specify what you would like to find?\");\n }\n keyword = response.substring(FIND_LENGTH);\n } catch (TaskException e) {\n System.out.println(e.getMessage());\n }\n }",
"public FindCommand(String trimmedInput) throws InvalidCommandException {\n Matcher matcher = COMMAND_PATTERN.matcher(trimmedInput);\n if (matcher.find()) {\n keyword = matcher.group(\"keyword\").trim();\n } else {\n throw new InvalidCommandException();\n }\n }",
"public String find(String keyword) {\n ArrayList<Task> result = new ArrayList<>();\n final StringBuilder matchedTasks = new StringBuilder(\"Here are the matching tasks in your list:\\n\\t\");\n\n for (int i = 0; i < records.size(); i++) {\n Task current = records.get(i);\n if (current.description.toLowerCase().contains(keyword.toLowerCase())) {\n result.add(current);\n }\n }\n result.forEach((el) -> matchedTasks.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n result.indexOf(el) + 1, el.toString())));\n return matchedTasks.toString();\n }",
"public CommandResult execute(TaskList tasks) {\n TaskList filteredTasks = new TaskList();\n for (int i = 0; i < tasks.size(); i++) {\n if (tasks.get(i).getDescription().toLowerCase().contains(keyword.toLowerCase())) {\n filteredTasks.add(tasks.get(i));\n }\n }\n return new CommandResult(FIND_MESSAGE, filteredTasks);\n }",
"public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }",
"private CommandResult executeFindCommand(Command userCommand) {\n String keyword = userCommand.getCommandDescription();\n if (userCommand.getCommandDescription().equals(Command.BLANK_DESCRIPTION)) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_FAIL, keyword);\n }\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, keyword);\n }",
"public String find(String kw) {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n if (t.toString().contains(kw)) {\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n }\n\n return result.toString();\n }",
"public int findCommand(TokenizedCommand tc);",
"public void findTask(String keyword) {\n int index = 1;\n for (Task task : taskList) {\n if (task.toString().contains(keyword)) {\n if (isNoTaskYetFound(index)) {\n System.out.println(\"Here are the matching tasks in your list:\");\n }\n\n System.out.println(String.format(\"%d. %s\", index++, task.toString()));\n }\n }\n\n if (isNoTaskYetFound(index)) {\n System.out.println(\"There are no matching results\");\n }\n }",
"@Test\n public void parse_validArgs_returnsFindCommand() {\n FindRecordCommand expectedFindCommand =\n new FindRecordCommand(new ResidencyContainsKeywordsPredicate(Arrays.asList(\"001\", \"Alice\")));\n assertParseSuccess(parser, \"001 Alice\", expectedFindCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n 001 \\n \\t Alice \\t\", expectedFindCommand);\n }",
"@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }",
"@Test\n\tpublic void testSearchCommand3() {\n\t\tString label = \"TEST\";\n\t\ttestData.getTaskMap().put(label, new ArrayList<Task>());\n\t\ttestData.addTask(new Task(1, label , \"Task 1\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(2, label, \"Task 2\",\n\t\t\t\tnew TDTDateAndTime(), false));\n\t\ttestData.addTask(new Task(3, label, \"Task 3\",\n\t\t\t\tnew TDTDateAndTime(\"12/12/2014\", \"null\", \"null\", \"null\"), false));\n\t\ttestData.addTask(new Task(3, label, \"This is task 4\",\n\t\t\t\tnew TDTDateAndTime(\"12/12/2014\", \"null\", \"null\", \"null\"), false));\n\n\t\tSearchCommand comd = new SearchCommand(\"@12/12/2014\");\n\t\tassertEquals(String.format(SearchCommand.SEARCH_FEEDBACK, 2), comd.execute(testData));\n\t\tassertEquals(\"Task 3\", comd.getSearchedResult().get(0).getDetails());\n\t\tassertEquals(\"This is task 4\", comd.getSearchedResult().get(1).getDetails());\n\n\t\tcomd = new SearchCommand(\"this @12/12/2014\");\n\t\tassertEquals(String.format(SearchCommand.SEARCH_FEEDBACK, 1), comd.execute(testData));\n\t\tassertEquals(\"This is task 4\", comd.getSearchedResult().get(0).getDetails());\n\t}",
"FindResponse find(@NonNull String title, @NonNull String space);",
"public SearchRepositoryTask(RepositorySearchCriteria taskData, TaskResultHandlerI handler,\n DexStatusController statusController) {\n super( taskData, handler, statusController );\n\n // Replace start message from super-type.\n msgBuilder = new StringBuilder( \"Searching repository: \" );\n msgBuilder.append( taskData.getQuery() );\n updateMessage( msgBuilder.toString() );\n }",
"public TaskList findMatchingItems(String keyword) {\n if (keyword.contains(\"#\")) {\n System.out.println(\"#\");\n return new TaskList(listItems.stream().filter(\n x -> x.containTag(keyword.replace(\"#\", \"\"))).collect(Collectors.toList()));\n } else {\n return new TaskList(listItems.stream().filter(\n x -> x.getTask().contains(keyword)).collect(Collectors.toList()));\n }\n }",
"public void findTask() {\n System.out.println(LINEBAR);\n System.out.println(\"Below are a list of tasks matching your description\\n\");\n\n String targetDesc = userIn.substring(FIND_HEADER);\n\n int matching = 0;\n\n for (Task t : tasks.TaskList) {\n String currDesc = t.taskDescription;\n\n if (currDesc.contains(targetDesc)) {\n matching++;\n System.out.println(matching + \". \" + t);\n }\n }\n\n if (matching == 0) {\n System.out.println(\"No matches found\\n\");\n }\n System.out.println(LINEBAR);\n }",
"public abstract Search create(String search, SearchBuilder builder);",
"public String findKeywords(String keyword) {\n String searchResult = Messages.EMPTY_STRING;\n ArrayList<Integer> indexNumList = new ArrayList<>();\n\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n if (recordedTask.get(i).getTaskName().contains(keyword)) {\n indexNumList.add(i);\n }\n }\n\n for (int i = 0; i < indexNumList.size(); i++) {\n searchResult = searchResult.concat((i + 1) + DOT_SPACE + recordedTask.get(indexNumList.get(i)).returnTaskListing()\n + ((i == indexNumList.size() - 1) ? Messages.EMPTY_STRING : Messages.NEW_LINE));\n }\n return searchResult;\n }",
"private TaskFactory findCommandFactory(PipelineJob job)\r\n {\n List<File> files = job.getJobSupport(FileAnalysisJobSupport.class).getInputFiles();\r\n if (files == null || files.size() != 1)\r\n return null;\r\n\r\n // Otherwise, find the appropriate converter.\r\n File fileInput = getInputFile(job);\r\n for (TaskId tid : _commands)\r\n {\r\n TaskFactory<? extends TaskFactorySettings> factory = PipelineJobService.get().getTaskFactory(tid);\r\n for (FileType ft : factory.getInputTypes())\r\n {\r\n try\r\n {\r\n // If we have a match based on the file type and the factory says that it's a participant based\r\n // on the search protocol parameters, use it\r\n if (ft.isType(fileInput) && factory.isParticipant(job))\r\n return factory;\r\n }\r\n catch (IOException ignored)\r\n {\r\n // Consider this command out of the running, caller will report an error if there are no other options\r\n }\r\n }\r\n }\r\n\r\n return null;\r\n }",
"public void findClick(View v){\n String taskName = justAddedTextView.getText().toString();\n PlannerDBHandler handler = new PlannerDBHandler(this);\n\n //Task task = handler.findTask(taskName);\n }",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public TaskList matchTasks(String keyword) {\n TaskList matches = new TaskList();\n\n for (int i = 0; i < tasks.size(); i++) {\n Task task = tasks.get(i);\n if (task.toString().contains(keyword)) {\n matches.addTask(task);\n }\n }\n return matches;\n }",
"protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }",
"@Test\n public void find() {\n String command = \" \" + FindCommand.COMMAND_WORD + \" n/\" + KEYWORD_MATCHING_STATIONARY + \" \";\n Model expectedModel = getModel();\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 1 expense found\n */\n command = FindCommand.COMMAND_WORD + \" t/\" + KEYWORD_MATCHING_DINNER;\n assertCommandSuccess(command, expectedModel, 1);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\" + \"7/4/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: repeat previous find command where expense list is displaying the expense we are finding\n * -> 0 expense found\n */\n command = FindCommand.COMMAND_WORD + \" d/\"\n + KEYWORD_MATCHING_START_DATE + \":\" + \"26/04/2019\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n\n /* Case: find expense where expense list is not displaying the expense we are finding -> 0 expense found */\n command = FindCommand.COMMAND_WORD + \" n/\" + \"Invalid name\";\n assertCommandSuccess(command, expectedModel, 0);\n assertSelectedCardUnchanged();\n // /* Case: find multiple persons in address book, 2 keywords -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Benson Daniel\";\n // ModelHelper.setFilteredList(expectedModel, BENSON, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords in reversed order -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 keywords with 1 repeat -> 2 persons found */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson Daniel\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find multiple persons in address book, 2 matching keywords and 1 non-matching keyword\n // * -> 2 persons found\n // */\n // command = FindCommand.COMMAND_WORD + \" Daniel Benson NonMatchingKeyWord\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: undo previous find command -> rejected */\n // command = UndoCommand.COMMAND_WORD;\n // String expectedResultMessage = UndoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: redo previous find command -> rejected */\n // command = RedoCommand.COMMAND_WORD;\n // expectedResultMessage = RedoCommand.MESSAGE_FAILURE;\n // assertCommandFailure(command, expectedResultMessage);\n //\n // /* Case: find same persons in address book after deleting 1 of them -> 1 person found */\n // executeCommand(DeleteCommand.COMMAND_WORD + \" 1\");\n // assertFalse(getModel().getEPiggy().getPersonList().contains(BENSON));\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n /* Case: find person in address book, keyword is same as name but of different case -> 1 person found */\n // command = FindCommand.COMMAND_WORD + \" MeIeR\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, keyword is substring of name -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mei\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person in address book, name is substring of keyword -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Meiers\";\n // ModelHelper.setFilteredList(expectedModel);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find person not in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" Mark\";\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find phone number of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getPhone().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find address of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getAddress().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find email of person in address book -> 0 persons found */\n // command = FindCommand.COMMAND_WORD + \" \" + DANIEL.getEmail().value;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find tags of person in address book -> 0 persons found */\n // List<Tag> tags = new ArrayList<>(DANIEL.getTags());\n // command = FindCommand.COMMAND_WORD + \" \" + tags.get(0).tagName;\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n //\n // /* Case: find while a person is selected -> selected card deselected */\n // showAllPersons();\n // //selectPerson(Index.fromOneBased(1));\n //assertFalse(getPersonListPanel().getHandleToSelectedCard().getName().equals(DANIEL.getName().fullName));\n // command = FindCommand.COMMAND_WORD + \" Daniel\";\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardDeselected();\n //\n // /* Case: find person in empty address book -> 0 persons found */\n // deleteAllPersons();\n // command = FindCommand.COMMAND_WORD + \" \" + KEYWORD_MATCHING_MEIER;\n // expectedModel = getModel();\n // ModelHelper.setFilteredList(expectedModel, DANIEL);\n // assertCommandSuccess(command, expectedModel);\n // assertSelectedCardUnchanged();\n\n /* Case: mixed case command word -> rejected */\n // command = \"FiNd Meier\";\n // assertCommandFailure(command, FindCommand.MESSAGE_USAGE);\n\n }",
"public TaskList find(String[] keywords) {\n TaskList viewToReturn = new TaskList();\n Set<Task> taskSet = new HashSet<>();\n\n for (Task task : tasks) {\n for (String keyword : keywords) {\n if (task.getTaskDescription().contains(keyword) && !taskSet.contains(task)) {\n taskSet.add(task);\n viewToReturn.add(task);\n }\n }\n }\n\n return viewToReturn;\n }",
"@Test\n public void parse_validArgs_returnsFindTagCommand() {\n FindTagCommand expectedFindTagCommand =\n new FindTagCommand(new TagContainsKeywordsPredicate(Arrays.asList(\"owesMoney\", \"colleagues\")));\n assertParseSuccess(parser, \"owesMoney colleagues\", expectedFindTagCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n owesMoney \\n \\t colleagues \\t\", expectedFindTagCommand);\n }",
"public MagicSearch createMagicSearch();",
"public ArrayList<Task> find(String word) {\n ArrayList<Task> newlist = new ArrayList<Task>();\n for (Task t : list) {\n if (t.contain(word)) {\n newlist.add(t);\n }\n }\n return newlist;\n }",
"RecipeCommand findCommandById(Long id);",
"public static void placeFinderOptions(String keyword) {\n PlaceFinderFactory factory = new PlaceFinderFactory();\n IPlaceFinder finder = factory.getFinder(keyword);\n if(finder == null) {\n logger.log(Level.SEVERE, \"finder not found\");\n return;\n }\n\n MessageOut.printPlaceFinderOptions();\n while(scanner.hasNextLine()) {\n String input = scanner.nextLine().strip();\n if (ValidInput.FINDALL.getInput().equals(input)) {\n MessageOut.printResults(finder.find());\n } else if (ValidInput.FINDOPENNOW.getInput().equals(input)) {\n List<? extends Place> results = finder.findOpenNow();\n if (!results.isEmpty()) {\n MessageOut.printResults(results);\n } else {\n MessageOut.printNoResults();\n }\n // paginated request\n } else if (ValidInput.FINDOPENNOWPAGINATED.getInput().equals(input)) {\n handlePaginated(finder, 10);\n } else if (ValidInput.END.getInput().equals(input)) {\n break;\n } else {\n MessageOut.notValidInput();\n }\n MessageOut.printPlaceFinderOptions();\n }\n }",
"public T find (T target);",
"public SearchCommand(String[] args) {\n super(args);\n\n try{\n pathToDir = validatePathToDir(args[1]);\n maxFileSize = validateMaxFileSize(args[2]);\n keywords = validateKeywords(args);\n }\n catch (IndexOutOfBoundsException e){\n isValid = false;\n invalidReasonString = \"The search command didn`t contain enough arguments\";\n } catch (Exception nfe){\n isValid = false;\n invalidReasonString = nfe.getMessage();\n }\n }",
"private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }",
"Command createCommand();",
"Iterable<Entry<K, V>> find(LegacyFindByCondition find);",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"public abstract Search defaultSearch(StringBuilder sb);",
"public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}",
"private Search() {}",
"public void testFindByKeyword() {\n }",
"@Override\r\n\tprotected Task<String> createTask() {\r\n\t\t\r\n return new Task<String>() {\r\n @Override\r\n protected String call() {\r\n \t\tif (scannedFiles == null) {\r\n \t\t\tscannedFiles = FolderScanner.scan(Settings.SOURCE_TXT_FOLDER);\r\n \t\t\t\r\n \t\t\t// Return null since this step is only used for search engine \r\n \t\t\t// initialization (scan files).\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t\r\n \treturn SearchingAdapter.getResultsPage(scannedFiles, keyword);\r\n }\r\n };\r\n\t}",
"public XMLFindTagHandeler() {super(Object.class, \"FIND\", false);}",
"@Test\n public void parse_validArgs_returnsSearchCommand() {\n SearchCommand expectedSearchCommand =\n new SearchCommand(new NamePhoneTagContainsKeywordsPredicate(Arrays.asList(\"Alice\", \"Bob\")));\n assertParseSuccess(parser, \"Alice Bob\", expectedSearchCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Alice \\n \\t Bob \\t\", expectedSearchCommand);\n }",
"abstract public void search();",
"@In String search();",
"private Command findCommand( String commandName )\n {\n Command command = null;\n CommandLine[] commands = commandList;\n\n for (int cmd = 0; cmd < commandList.length; ++cmd)\n {\n if (commandList[cmd].equals( commandName ))\n {\n command = commandList[cmd].command;\n break;\n }\n }\n\n return (command);\n }",
"public search() {\n }",
"private void invoke(String searchStr) {\n String userInput = concatWithNewLineFeed(searchStr,replacementStr,srcFile.getAbsolutePath(),destFile.getAbsolutePath());\n System.setIn(new ByteArrayInputStream(userInput.getBytes()));\n FindAndReplace.main(null);\n }",
"@Override\n public String executeCommand(TaskList taskList, Storage storage) {\n return taskList.findTasks(this.keyword);\n }",
"private static Command<?> getCommand(@NonNull String inputStr) {\n int seperatorIndex = inputStr.indexOf(' ');\n String commandStr = seperatorIndex == -1 ? inputStr : inputStr.substring(0, seperatorIndex);\n String paramStr = seperatorIndex == -1 ? \"\" : inputStr.substring(seperatorIndex + 1).trim();\n\n if (\"Tag\".equalsIgnoreCase(commandStr)) {\n List<String> tagList = Splitter.on(\",\")\n .trimResults()\n .omitEmptyStrings()//可以 选择是否对 空字符串 做处理\n .splitToList(paramStr.replace(',', ','));\n return new TagCommand(tagList.toArray(new String[]{}));\n } else if (\"Name\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify file path\");\n }\n return new NameCommand(paramStr);\n } else if (\"Where\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify search criteria\");\n }\n return new WhereCommand(paramStr);\n } else if (\"Analyze\".equalsIgnoreCase(commandStr)) {\n return new AnalyzeCommand();\n } else if (\"Export\".equalsIgnoreCase(commandStr)) {\n if (isBlank(paramStr)) {\n throw new IllegalArgumentException(\"Need to specify export file path\");\n }\n return new ExportCommand(paramStr);\n } else {\n throw new IllegalArgumentException(\"Use either Tag, Where, Name, Export, or Analyze\");\n }\n }",
"private Command getCommand(String s) throws Exception {\n Class c = Class.forName(\"model.command.\" + this.getSymbol(this.getSymbol(s, translations), commandTranslations));\n Constructor ct = c.getConstructor();\n return (Command) ct.newInstance();\n }",
"public SearchResult search(String text, String subText);",
"public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;",
"public void doSearch(String searchText){\n }",
"public static void printFindTaskResult(ArrayList<Task> listOfTasksFound, String keyword) {\n int listSize = listOfTasksFound.size();\n\n printDivider();\n // Indicates that there are no tasks found\n if (listOfTasksFound.isEmpty()) {\n Ui.printFindTaskEmptyError(keyword);\n } else {\n // Prints the list of result\n System.out.println(\"Here are the tasks found with the keyword -- \\\"\" + keyword + \"\\\" :\");\n for (int i = 0; i < listSize ; i++) {\n Task currentTask = listOfTasksFound.get(i);\n System.out.println((i + 1) + \".\" + currentTask);\n }\n }\n printDivider();\n }",
"public List<Task> findWord(String word) throws DukeException {\n assert !word.isBlank();\n List<Task> findArray = new ArrayList<>();\n int count = 0;\n outer:\n for (Task x: tasks) {\n String[] nameArray = x.getName().split(\" \");\n inner:\n for (String y: nameArray) {\n if (word.equals(y)) {\n findArray.add(x);\n count += 1;\n continue outer;\n }\n }\n findArray.add(null);\n }\n if (count == 0) {\n throw new DukeException(\"Sorry I can't find any tasks containing that word!\");\n } else {\n return findArray;\n }\n }",
"@Override\r\n\tpublic List<QnAVO> searchQnA(String searchOption, String keyword, int boardNum) {\n\t\treturn QnARepository.searchQnA(searchOption, keyword, boardNum);\r\n\t}",
"Keyword findKeywordByName(String name);",
"public CommandMatch findMatch(String input) throws InvalidCommandException {\n String trimmedInput = input.trim();\n for (Command command : this) {\n String pattern = getMatchPattern(command.getPattern());\n if (trimmedInput.matches(pattern)) {\n return new CommandMatch(command, trimmedInput);\n }\n }\n\n throw new InvalidCommandException(input);\n }",
"public void setUpFindButton() {\n\t\tButton btn_find = (Button) findViewById(R.id.find);\n\n\t\t// Defining button click event listener for the find button\n\t\tOnClickListener findClickListener = new OnClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// Getting reference to EditText to get the user input location\n\t\t\t\tEditText etLocation = (EditText) findViewById(R.id.location);\n\n\t\t\t\t// Getting user input location\n\t\t\t\tString location = etLocation.getText().toString();\n\n\t\t\t\tif (location != null && !location.equals(\"\")) {\n\t\t\t\t\tfindPlace = new GeocoderTask(getBaseContext(), googleMap);\n\t\t\t\t\t\t\tfindPlace.execute(location);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// Setting button click event listener for the find button\n\t\tbtn_find.setOnClickListener(findClickListener);\n\t}",
"public static By text(String text)\n\t{\n\t\treturn new FindByText(text);\n\t}",
"public AddCommand(Task task){\r\n this.task = task;\r\n }",
"public SearchKeywordDao() {\r\n super(SearchKeyword.class);\r\n }",
"public interface SearchCallback<T, O> extends IClusterable {\r\n public SearchCallbackResult<T> search(String searchString, O searchBy);\r\n }",
"SearchResultCompany search(String keywords);",
"public void search(final String editable){\n CountDownTimer timer = new CountDownTimer(500, 100) {\n @Override\n public void onTick(long l) {\n\n }\n public void onFinish() {\n updateResults(editable.toString());\n adapter.notifyDataSetChanged();\n }};\n timer.start();\n }",
"public abstract T findByName(String name) ;",
"default E find(String key, Object value) {\n\t\tSearchCritera searchCritera = new SearchCritera(key, value);\n\t\treturn find(() -> searchCritera);\n\t}",
"public void search() {\n }",
"public static void findTask(String input) {\n int taskCount = 1;\n ui.showToUser(ui.DIVIDER, \"Here are the matching tasks in your list:\");\n for (Task task : Tasks) {\n if (task.getDescription().contains(input)){\n ui.showToUser(taskCount + \".\" + task.toString());\n taskCount++;\n }\n }\n ui.showToUser(ui.DIVIDER);\n }",
"public void search() {\r\n \t\r\n }",
"Search getSearch();",
"@Override\n public CommandResult execute(TaskList taskList, Storage storage) throws ShiroEmptyDescriptionException {\n if (fullCommand.length() < 6) {\n throw new ShiroEmptyDescriptionException(\"oh dear :-( the description of 'find' cannot be empty\");\n }\n ArrayList<Task> matchingTasks = taskList.getMatchingTasks(fullCommand.substring(5));\n return new CommandResult(Message.matchingTasksMessage(matchingTasks));\n }",
"public void findTasks(ArrayList<Task> tasks, String keywords) {\n ArrayList<Task> filteredTasks;\n filteredTasks = (ArrayList<Task>) tasks.stream()\n .filter((t) -> t.getTask().contains(keywords))\n .collect(Collectors.toList());\n if (filteredTasks.size() == 0) {\n System.out.println(\"OOPS!!! We can't find anything that contains the description.\");\n } else {\n System.out.println(\"Here's what we have found: \");\n printList(filteredTasks);\n }\n }",
"void searchProbed (Search search);",
"public Search(String value) {\n this(value, false);\n }",
"public V search(K key);",
"public abstract S getSearch();",
"@Test\n public void parse_validArgs_returnsFindActivityTagCommand() {\n FindActivityTagCommand expectedFindActivityTagCommand =\n new FindActivityTagCommand(new ActivityTagContainsPredicate(Arrays.asList(\"Cheese\", \"Japan\")));\n assertParseSuccess(parser, \"Cheese Japan\", expectedFindActivityTagCommand);\n\n // multiple whitespaces between keywords\n assertParseSuccess(parser, \" \\n Cheese \\n \\t Japan \\t\", expectedFindActivityTagCommand);\n }",
"public List<Task> findTask(String input) throws LukeNoResultException {\n ArrayList<Task> result = new ArrayList<>();\n for (int i = 0; i < this.tasks.size(); i++) {\n Task current = this.tasks.get(i);\n if (current.getDescription().contains(input)) {\n result.add(current);\n }\n }\n if (result.size() <= 0) {\n throw new LukeNoResultException(input);\n }\n return result;\n }",
"public TaskItem findTask(String subject) throws HarnessException {\n\t Object[] params = {subject};\n\t return (TaskItem)GeneralUtility.waitFor(null, this, false, \"browseTask\", params, WAIT_FOR_OPERAND.NEQ, null, 30000, 1000);\n\t}",
"public TodoCommand(String userInputCommand) {\n this.userInputCommand = userInputCommand;\n }",
"protected abstract CommandMatch<?, ?> resolve(InvocationMatch<T> match);",
"public String getFindKeywords() {\n return getString(CommandProperties.FIND_KEYWORDS);\n }",
"private void commandFindCities(String item)\n {\n input.findcities(item);\n\n askUser();\n }",
"@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}",
"public Show search(String title){\n return super.search(title);\n }",
"void search();",
"void search();",
"TSearchResults createSearchResults(TSearchQuery searchQuery);",
"@Override\n\tpublic List<BoardVO> searchArticle(String keyword) {\n\t\t\n\t\tString sql = \"SELECT * FROM board WHERE board_writer LIKE ?\";\n\t\treturn template.query(sql,new BoardMapper(), keyword);\n\t}",
"void gnuFind(StdOutConsumer consumer) throws IOException {\n\t/*\n\t * Through options to find, we handle the Find class's\n\t * max/min depth, follow, and find files/directories.\n\t */\n\tStringBuffer findOptions = new StringBuffer();\n\tif (myFind.getMinDepth() != Find.DEFAULT_MIN_DEPTH)\n\t findOptions.append(\"-mindepth \"+myFind.getMinDepth()+\" \");\n\tif (myFind.getMaxDepth() != Find.DEFAULT_MAX_DEPTH)\n\t findOptions.append(\"-maxdepth \"+myFind.getMaxDepth()+\" \");\n\tif (myFind.getFollow())\n\t findOptions.append(\"-follow \");\n\n\tboolean dirFlag = false;\n\tif (myFind.getFindDirectories()) {\n\t findOptions.append(\"-type d \");\n\t dirFlag = true;\n\t}\n\tif (myFind.getFindFiles()) {\n\t if (dirFlag)\n\t\tfindOptions.append(\"-o \");\n\t findOptions.append(\"-type b -o -type c -o -type p -o -type f -o -type l -o -type s\");\n\t}\n\tfindOptions.append(\" \");\n\t\n\t/*\n\t * Through options to perl, we handle the Find class's\n\t * negated and directories to exclude properties.\n\t */\n\tString not;\n\tif (myFind.getNegated())\n\t not =\" ! \";\n\telse\n\t not = \"\";\n\n\tStringBuffer directoryFilter;\n\tFile[] array = myFind.getDirectoriesToExclude();\n\tif (array.length != 0) {\n\t directoryFilter = new StringBuffer(\" | \"+perlLocation+\n\t\t \" -ne 'print if ! /\");\n\t for (int i=0; i<array.length; i++) {\n\t\tif (i != 0)\n\t\t directoryFilter.append(\"|\");\n\t\tdirectoryFilter.append(\"^\");\n\t\tdirectoryFilter.append(qtool.quote(array[i].toString()));\n\t }\n\t directoryFilter.append(\"/'\");\n\t} else {\n\t directoryFilter = new StringBuffer(\"\");\n\t}\n\n\t/*\n\t * Put the command together\n\t */\n\tString command = findLocation + \" \" + myFind + \" \" + findOptions +\n\t\t\t \" | \" +\n\t\t\t perlLocation + \" \" +\n\t\t\t \"-ne 'print if \" + not + myFind.getPattern() + \"'\"+\n\t\t\t directoryFilter;\n\n\t/*\n\t * The command line is completed, so we'll now execute it\n\t */\n\tdebug(\"Executing: \"+command);\n\tGnuLauncher.exec( consumer, command );\n }",
"public CommandResult execute() {\n String message = tasks.listTasks(keyWord);\n return new CommandResult(message);\n }",
"public boolean find(T word);",
"IDbCommand createCommand();"
] | [
"0.7794826",
"0.7762499",
"0.6926939",
"0.6782853",
"0.6595118",
"0.6281986",
"0.5965048",
"0.5812202",
"0.5725757",
"0.568773",
"0.56508124",
"0.5592022",
"0.54965067",
"0.5486122",
"0.53817314",
"0.5340184",
"0.5320406",
"0.5286269",
"0.52064615",
"0.51522857",
"0.50868726",
"0.5050762",
"0.5041068",
"0.50385195",
"0.49663013",
"0.49482054",
"0.49413833",
"0.49379593",
"0.49335226",
"0.49186334",
"0.48751062",
"0.48663196",
"0.4865172",
"0.48341715",
"0.48246557",
"0.48124984",
"0.47751614",
"0.47703573",
"0.4764121",
"0.47531196",
"0.47425324",
"0.47218654",
"0.46929815",
"0.46912584",
"0.46893677",
"0.46800047",
"0.46765122",
"0.4665024",
"0.46644574",
"0.46539414",
"0.46444094",
"0.46208996",
"0.46192694",
"0.46011153",
"0.46002907",
"0.4599977",
"0.45918727",
"0.45815903",
"0.4580049",
"0.45788532",
"0.4571772",
"0.4566404",
"0.45553398",
"0.4541141",
"0.45320582",
"0.44950184",
"0.44791484",
"0.44709265",
"0.44464698",
"0.444642",
"0.44432902",
"0.44381332",
"0.44361806",
"0.44297403",
"0.4422239",
"0.43993032",
"0.43950403",
"0.4386907",
"0.4385398",
"0.4382403",
"0.43761736",
"0.43730712",
"0.43713158",
"0.43597126",
"0.4354962",
"0.4349019",
"0.43420056",
"0.4325779",
"0.4321848",
"0.43060088",
"0.42942017",
"0.42897582",
"0.42864758",
"0.42864758",
"0.42807978",
"0.42764825",
"0.4276324",
"0.42722586",
"0.42721137",
"0.42708716"
] | 0.74649644 | 2 |
Appends matched result to response. | private void appendMatched(StringBuilder response, String task, int index) {
String matchedResult = String.format(" %d.%s\n", index, task);
if (task.contains(keyword)) {
response.append(matchedResult);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addResponseToResult(String term){\n\t\tResult result = this.getResult();\n\t\tif(result==null){\n\t\t\tresult = new Result();\n\t\t\tresult.setResponse(term);\n\t\t\tthis.setResult(result);\n\t\t}\n\t\telse{\n\t\t\tString s = result.getResponse();\n\t\t\ts += \",\" + term;\n\t\t\tresult.setResponse(s);\n\t\t}\t\n\t}",
"public void addMatch() {\n totalMatches ++;\n }",
"protected void addToResult(Instance instance) {\n\t\tthis.resultBuffer.add(instance);\n\t}",
"private void writeAllMatchedAirlineMappings(HttpServletResponse response, String name) throws IOException {\r\n int matches = 0;\r\n PrintWriter pw = response.getWriter();\r\n pw.println(Messages.getMappingCount(data.size()));\r\n\r\n for (Map.Entry<String, Airline> entry : this.data.entrySet()) {\r\n if (entry.getKey().equals(name)) {\r\n pw.println(entry.getKey());\r\n for (Object flight : entry.getValue().getFlights()) {\r\n Flight flight1 = (Flight) flight;\r\n ++matches;\r\n pw.println(\"\\t\" + flight.toString() + \" Duration(minutes) \" + flight1.getDuration());\r\n }\r\n }\r\n }\r\n\r\n if (matches == 0) {\r\n pw.println(\"No airline matches exist for that search\");\r\n }\r\n pw.flush();\r\n\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n }",
"public void addMatch(Match m)\r\n {\r\n this.resultsTree.add(m);\r\n }",
"void ackResult(boolean resultMatch);",
"@Override\n public void processFinishGetMatches(List<Event> matches) {\n for (int i = 0; i < matches.size(); i++) {\n addMarker(matches.get(i));\n }\n }",
"public void add(R result) {\n results.add(result);\n }",
"private void onSuccess(AppendRowsResponse response) {\n for (int i = 0; i < inflightRequests.size(); i++) {\n AppendRowsResponse.Builder singleResponse = response.toBuilder();\n if (offsetList.get(i) > 0) {\n singleResponse.setOffset(offsetList.get(i));\n } else {\n long actualOffset = response.getOffset();\n for (int j = 0; j < i; j++) {\n actualOffset +=\n inflightRequests.get(j).message.getProtoRows().getRows().getSerializedRowsCount();\n }\n singleResponse.setOffset(actualOffset);\n }\n inflightRequests.get(i).appendResult.set(singleResponse.build());\n }\n }",
"public MatchResult getResult() {\n return result;\n }",
"private void writeAllMatchedMappings(HttpServletResponse response, String name, String src, String dest) throws IOException {\r\n int matches = 0;\r\n PrintWriter pw = response.getWriter();\r\n pw.println(Messages.getMappingCount(data.size()));\r\n\r\n for (Map.Entry<String, Airline> entry : this.data.entrySet()) {\r\n if (entry.getKey().equals(name)) {\r\n pw.println(entry.getKey());\r\n for (Object flight : entry.getValue().getFlights()) {\r\n Flight flight1 = (Flight) flight;\r\n if (flight1.getSource().equals(src.toUpperCase()) && flight1.getDestination().equals(dest.toUpperCase())) {\r\n pw.println(\"\\t\" + flight.toString() + \" Duration(minutes) \" + flight1.getDuration());\r\n ++matches;\r\n }\r\n }\r\n }\r\n }\r\n if (matches == 0) {\r\n pw.println(\"There are direct flights between the specified airports\");\r\n }\r\n\r\n pw.flush();\r\n\r\n response.setStatus(HttpServletResponse.SC_OK);\r\n }",
"Match getResultMatch();",
"public void receiveResultadd(\n org.apache.ws.axis2.WebserviceStub.AddResponse result\n ) {\n }",
"public void setMatched(boolean matched) {\r\n this.matched = matched;\r\n }",
"@Override\n public void match(Match match) {\n latestStepResult = new StepResult();\n latestStepResult.setArguments(convertArguments(match.getArguments()));\n\n resolveStepResultList().add(latestStepResult);\n }",
"private void findMatches() {\n this.user.getMatches().clear();\n final String HOST_MATCH = HOST_URL + \"/match/\" + user.getId() + \"/?page=0\" + HomeView.MATCH_LIMIT;\n RequestQueue que = Volley.newRequestQueue(this);\n JsonObjectRequest req = new JsonObjectRequest(Request.Method.GET, HOST_MATCH, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try { //String id, String firstName, String lastName, String email) {\n MatchView.parseEdges(response.getJSONArray(\"matches\"), toBeMatched);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"HomeView\", \"Could not find matches\");\n }\n });\n que.add(req);\n }",
"public void addResult(String message) {\r\n returnObject.addResult(message);\r\n }",
"private synchronized void addResultToMultiList() {\n\t addObjectToMultiList(resultArrayList);\r\n\t }",
"private void writeResults() {\n\t\tgetContext().writeName(\"searchResults\");\n\t // Open the Array of affectedParties\n\t TypeContext itemTypeContext = getContext().writeOpenArray();\n\t \n\t for(Person person : results){\n\t\t\t// Add a comma after each affectedParty object is written\n if (!itemTypeContext.isFirst()){\n \tgetContext().writeComma();\n }\n itemTypeContext.setFirst(false);\n\t\t\t\n // Open the affectedParty object and write the fields\n\t\t\tgetContext().writeOpenObject();\n\t\t\t\n\t\t\t// Write out the fields\n\t\t getContext().writeName(\"id\");\n\t\t getContext().transform(person.getId());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"name\");\n\t\t getContext().transform(person.getName());\n\t\t getContext().writeComma();\n\n\t\t getContext().writeName(\"sex\");\n\t\t getContext().transform(person.getSex());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dob\");\n\t\t getContext().transform(person.getDob() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDob()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"dod\");\n\t\t getContext().transform(person.getDod() == null?null:new SimpleDateFormat(\"dd/MM/yyyy\").format(person.getDod()));\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfBirth\");\n\t\t getContext().transform(person.getPlaceOfBirth());\n\t\t getContext().writeComma();\n\t\t \n\t\t getContext().writeName(\"placeOfDeath\");\n\t\t getContext().transform(person.getPlaceOfDeath());\n\t\t getContext().writeComma();\n \t getContext().writeName(\"href\");\n \t getContext().transform(url + \"/\" + person.getId());\n\t\t\t\n \t // Close the affectedParty object\n \t getContext().writeCloseObject();\n }\n\t\t// Close the Array of affectedParties\n getContext().writeCloseArray();\n\t}",
"void onMatched(String json);",
"public void receiveResultadd(\n by.makedon.axis.HandbookServiceStub.AddResponse result) {\n }",
"@Override\n public void matchOver(Result result) {\n }",
"@Override\n public Exchange aggregate(Exchange original, Exchange resource) {\n String cswResponse = original.getIn().getBody(String.class);\n String harvesterDetails = resource.getIn().getBody(String.class);\n String mergeResult = \"<harvestedContent>\" +\n harvesterDetails + cswResponse + \"</harvestedContent>\";\n\n if (original.getPattern().isOutCapable()) {\n original.getOut().setBody(mergeResult);\n } else {\n original.getIn().setBody(mergeResult);\n }\n return original;\n }",
"public void setMatched(String matched) {\r\n\t\tthis.matched = matched;\r\n\t}",
"public void receiveResultaddResponsible(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddResponsibleResponse result) {\n }",
"private DynamicObject getMatchResult(TruffleObject result, String inputStr) {\n return JSArray.createLazyRegexArray(context, regexResultAccessor.groupCount(result), result, inputStr);\n }",
"private void showResult() {\n int i = 0;\n matchList.forEach(match -> match.proceed());\n for (Match match : matchList) {\n setTextInlabels(match.showTeamWithResult(), i);\n i++;\n }\n }",
"private void setResult(String term){\n\t\taddResponseToResult(term);\n\t}",
"public abstract Response[] collectResponse();",
"@Override\n public void processResult(HttpResponseMessage response) {\n }",
"void setCompleteMatch(Match completeMatch);",
"@Override\n\t\tpublic void onResults(ArrayList<RecognizerResult> arg0, boolean arg1) {\n\t\t\ttext+=arg0.get(0).text.toString();\n\t\t}",
"public void addStudentResponse(Student response){\n\t\tIterator<Student> iterator = students.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tStudent student = iterator.next();\n\t\t\tif(student.getID().equals(response.getID())){\n\t\t\t\tdiscardedResponses.add(student);\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\tstudents.add(response);\n\t}",
"@Override\n protected void completeIndexerSearchResult(String response, IndexerSearchResult indexerSearchResult, AcceptorResult acceptorResult, SearchRequest searchRequest, int offset, Integer limit) {\n Document doc = Jsoup.parse(response);\n if (doc.select(\"table.xMenuT\").size() > 0) {\n Element navigationTable = doc.select(\"table.xMenuT\").get(1);\n Elements pageLinks = navigationTable.select(\"a\");\n boolean hasMore = !pageLinks.isEmpty() && pageLinks.last().text().equals(\">\");\n boolean totalKnown = false;\n indexerSearchResult.setOffset(searchRequest.getOffset());\n int total = searchRequest.getOffset() + 100; //Must be at least as many as already loaded\n if (!hasMore) { //Parsed page contains all the available results\n total = searchRequest.getOffset() + indexerSearchResult.getSearchResultItems().size();\n totalKnown = true;\n }\n indexerSearchResult.setHasMoreResults(hasMore);\n indexerSearchResult.setTotalResults(total);\n indexerSearchResult.setTotalResultsKnown(totalKnown);\n } else {\n indexerSearchResult.setHasMoreResults(false);\n indexerSearchResult.setTotalResults(0);\n indexerSearchResult.setTotalResultsKnown(true);\n }\n indexerSearchResult.setPageSize(100);\n indexerSearchResult.setOffset(offset);\n }",
"public void writeResults() {\n gfmBroker.storeResults(this.responses, fileOutputPath);\n }",
"public synchronized void addResponse( Serializable o ) {\n if ( o instanceof MessageEvent ) {\n MessageEvent event = (MessageEvent) o ;\n event.setSeqId( numSent );\n }\n responses.add( o ) ;\n numSent ++ ;\n\n // Toggle the respond changed.\n if ( !responseChanged ) {\n responseChanged = true ;\n }\n }",
"Match getCompleteMatch();",
"public void addResult(String key, String value) {\n Preconditions.checkArgument(!results.containsKey(key), \"the result already contains that key\");\n results.put(key, value);\n }",
"public void setMatched(boolean matched)\n\t{\n\t\t_isMatched = matched;\n\t}",
"@Override\n\tprotected void parseResult() {\n\t\t\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == VOICE_RECOGNITION_REQUEST_CODE && resultCode == RESULT_OK) {\n // Fill the list view with the strings the recognizer thought it could have heard\n ArrayList<String> matches = data.getStringArrayListExtra(\n RecognizerIntent.EXTRA_RESULTS);\n String[] match = new String[matches.size()];\n match = matches.toArray(match);\n AsyncTaskRunner runner = new AsyncTaskRunner(); //Creating an async task to handle the RPC request\n runner.execute(match);\n } else {\n super.onActivityResult(requestCode, resultCode, data);\n }\n }",
"public void appendMessage(String response) {\n\t\tthis.append(response + newline);\n\t}",
"public void deliverResult(ArrayList<Recept> data) {\n recepts = data;\n super.deliverResult(recepts);\n }",
"public void addNluResult(String sessionId, NluResponse response) {\n String nluId = NLU_RESULT_PREFIX + sessionId;\n if (dialogCache.getQueueLen(nluId) == MAX_QUEUE_SIZE) {\n dialogCache.popFromQueue(nluId);\n }\n dialogCache.pushToQueue(nluId, JSON.toJSONString(response));\n }",
"private void process(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAddModel model = Util.getModel(request, Const.RESULT);\n\t\t\n\t\t// Print the \"VIEW\" using the \"MODEL\"\n\t\tprintView(response, model);\n\t}",
"private void handleResponse(Message msg, String listenerId)\n {\n String requestId = popString(Message.REQUESTID_TAG, msg);\n String type = popString(Message.TYPE_TAG, msg);\n \n NamedResource res = null;\n\n if (type.equals(NamedResource.PEER))\n {\n res = (Peer) new Peer();\n }\n\n //FIXME conversion of advertisment to resource object is done in each\n // of the resource\n // thus while converting to resource object we create an Id from the\n // byte array in the message recd\n // and while storing to cache, I store it hashed on the String version\n // of the ID..thus need to convert\n //ID again to String. My other option is to store the resource hashed\n // on ID object but then for every\n //comparison in the cache , i need to convert the ID to string as the\n // ID in the message is in a string\n // Its a trade off between when to do the conversion. Can be modified\n // later:)\n\n else if (type.equals(NamedResource.GROUP))\n {\n res = (PeerGroup) new PeerGroup();\n } else if (type.equals(NamedResource.PIPE))\n {\n res = (Pipe) new Pipe();\n }\n \n boolean available = false;\n \n if (res != null)\n {\n res.RevAdvertisment(msg.getElements());\n \n // resolved adv is its own peer, don't handle\n if (res.getID().equals(peer.getID()))\n {\n LOG.debug(\"got its own peer advertisement\");\n return;\n }\n available = cache.addResource(res);\n res.touch();\n }\n\n LOG.debug(\"found resource: \"+res.getName());\n \n if (!available)\n {\n\t for(Enumeration en = queries.elements(); en.hasMoreElements();)\n\t {\n\t Query query = (Query)en.nextElement();\n\t \n\t if (res.matches(query.groupId, query.type, query.attr,query.value))\n\t query.listener.handleSearchResponse(res);\n\t }\n }\n// Listener listener = getListener(listenerId);\n// if (listener != null){\n// listener.handleSearchResponse(res);\n// }\n \n }",
"public void add(Match match){\n\t\tif(!matches.contains(match)) {\n\t\t\tmatches.add(match);\n\t\t}\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"public void setMatches() {\r\n this.matches++;\r\n\r\n }",
"public DocFile[] searchResponse(ScoreDoc[] results, Query query) {\n\n DocFile[] result = new DocFile[results.length];\n FastVectorHighlighter highlighter = new FastVectorHighlighter(true,true);\n FieldQuery highlightQuery = highlighter.getFieldQuery(query); \n\n try {\n IndexReader reader = DirectoryReader.open(indexDir);\n IndexSearcher searcher = new IndexSearcher(reader);\n\n for (int i = 0; i < results.length; i++) {\n int docId = results[i].doc;\n Document document = searcher.doc(docId);\n \n //Highlight the best Content context from each Doc\n String contextString = highlighter.getBestFragment(highlightQuery, \n searcher.getIndexReader(), results[i].doc,Constants.INDEX_KEY_CONTENT,140);\n \n DocFile toAdd = new DocFile(\n document.get(Constants.INDEX_KEY_FILENAME),\n document.get(Constants.INDEX_KEY_TITLE),\n document.get(Constants.INDEX_KEY_OWNER),\n document.get(Constants.INDEX_KEY_PATH),\n document.get(Constants.INDEX_KEY_STATUS).equalsIgnoreCase(\"true\"));\n \n if (contextString != null) {\n toAdd.setContextString(contextString);\n }\n \n toAdd.setId(document.get(Constants.INDEX_KEY_ID));\n toAdd.setPermissions(Integer.parseInt(document.get(Constants.INDEX_KEY_PERMISSION)));\n toAdd.setCourseCode(document.get(Constants.INDEX_KEY_COURSE));\n result[i] = toAdd;\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return result;\n }",
"public list_results_pat_result(list_results_pat_result other) {\n if (other.isSetSuccess()) {\n java.util.List<Examination> __this__success = new java.util.ArrayList<Examination>(other.success.size());\n for (Examination other_element : other.success) {\n __this__success.add(new Examination(other_element));\n }\n this.success = __this__success;\n }\n }",
"public void recordResult(RangingRequest requests, List<RttResult> results) {\n Map<MacAddress, ResponderConfig> requestEntries = new HashMap<>();\n for (ResponderConfig responder : requests.mRttPeers) {\n requestEntries.put(responder.macAddress, responder);\n }\n\n if (results != null) {\n for (RttResult result : results) {\n if (result == null) {\n continue;\n }\n ResponderConfig responder = requestEntries.remove(\n MacAddress.fromBytes(result.addr));\n if (responder == null) {\n Log.e(TAG,\n \"recordResult: found a result which doesn't match any requests: \"\n + result);\n continue;\n }\n\n if (responder.responderType == ResponderConfig.RESPONDER_AP) {\n updatePeerInfoWithResultInfo(mPerPeerTypeInfo[PEER_AP], result);\n } else if (responder.responderType == ResponderConfig.RESPONDER_AWARE) {\n updatePeerInfoWithResultInfo(mPerPeerTypeInfo[PEER_AWARE], result);\n } else {\n Log.e(TAG, \"recordResult: unexpected peer type in responder: \" + responder);\n }\n }\n }\n\n for (ResponderConfig responder : requestEntries.values()) {\n PerPeerTypeInfo peerInfo;\n if (responder.responderType == ResponderConfig.RESPONDER_AP) {\n peerInfo = mPerPeerTypeInfo[PEER_AP];\n } else if (responder.responderType == ResponderConfig.RESPONDER_AWARE) {\n peerInfo = mPerPeerTypeInfo[PEER_AWARE];\n } else {\n Log.e(TAG, \"recordResult: unexpected peer type in responder: \" + responder);\n continue;\n }\n peerInfo.statusHistogram.put(WifiMetricsProto.WifiRttLog.MISSING_RESULT,\n peerInfo.statusHistogram.get(WifiMetricsProto.WifiRttLog.MISSING_RESULT) + 1);\n }\n }",
"private List<ProcessorResponse> transformResult(String response) {\n return new ArrayList<ProcessorResponse>();\n }",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n \n Query query = new Query(\"DonationMatch\");\n PreparedQuery results = DatastoreServiceFactory.getDatastoreService().prepare(query);\n\n List<DonationMatch> matches = new ArrayList<>();\n for (Entity entity : results.asIterable()) {\n long id = entity.getKey().getId();\n String restaurantName = (String) entity.getProperty(\"restaurantName\");\n String charityName = (String) entity.getProperty(\"charityName\");\n String location = (String) entity.getProperty(\"location\");\n String category = (String) entity.getProperty(\"category\");\n String pickUpTime = (String) entity.getProperty(\"pickUpTime\");\n String quantity = (String) entity.getProperty(\"quantity\");\n Date timestamp = (Date) entity.getProperty(\"timestamp\");\n String specialInstructions = (String) entity.getProperty(\"specialInstructions\");\n String imageURL = (String) entity.getProperty(\"imageURL\");\n\n DonationMatch match = new DonationMatch(id, restaurantName, charityName, location, category, pickUpTime, quantity, specialInstructions, imageURL, timestamp);\n matches.add(match);\n }\n response.setContentType(JSON_CONTENT_TYPE);\n response.getWriter().println(gson.toJson(matches));\n }",
"Response filterResponse(Response currentResponse, HttpExchange exchange);",
"void onMatched(List<Offer> offers);",
"Match getMatches();",
"@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}",
"@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}",
"@Override\n public void onResult(final AIResponse result) {\n DobbyLog.i(\"Action: \" + result.getResult().getAction());\n }",
"public MatchOther processResult(ResultItems resultItems, Task task);",
"public void addResult(PeptideIdentification aPeptideIdentification) {\n\n iPeptideIdentifications.add(aPeptideIdentification);\n\n }",
"public edu.itq.soa.ResponseDocument.Response addNewResponse()\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().add_element_user(RESPONSE$0);\n return target;\n }\n }",
"public void receiveResultaddEquipment(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddEquipmentResponse result) {\n }",
"@Override\n public void execute() {\n modelFacade.getFoodItems().addAll(modelFacade.fetchMatchingFoodItemResults(sb.toString()));\n }",
"@Override\n public void filterResponse(HttpResponse response, HttpMessageContents contents, HttpMessageInfo messageInfo) {\n timestampWriter.write(new HttpResponseDetail(System.currentTimeMillis(), response, contents, messageInfo));\n }",
"@Override\n\tpublic void visit(Matches arg0) {\n\n\t}",
"public String getMatched() {\r\n\t\treturn matched;\r\n\t}",
"@Override\n public void success(Object o, Response response) {\n Log.d(TAG, \"Phrase: \" + phrase + \" was executed\");\n }",
"private JsonWriter(JsonGenerator jgen, com.sample.masking.json.JsonView result, Match currentMatch, SerializerProvider serializerProvider) {\n this.jgen = jgen;\n this.result = result;\n this.currentMatch = currentMatch;\n this.serializerProvider = serializerProvider;\n }",
"public void addMatchedElement(ElementWrapper element)\n\t{\n\t\tif (element != null)\n\t\t{\n\t\t\t_matchedElements.add(element);\n\t\t\t_isMatched = true;\n\t\t}\n\t}",
"@Override\n\tpublic void visit(Matches arg0) {\n\t\t\n\t}",
"@Override\n public void onResponse(Result appResponse, Invoker<?> invoker, Invocation invocation) {\n }",
"public void processFinish(int result) {\n MyApp myApp = (MyApp) getApplication();\n\n if (myApp.match[myApp.division()].size() > 0) {\n inflateMe();\n }\n\n }",
"protected abstract void onMatch(String value, Label end);",
"public void receiveResultaddition(\n loadbalance.LoadBalanceStub.AdditionResponse result\n ) {\n }",
"private void discoverNew(RoutingContext rctx) {\n rctx.response().end(new ObjectBuilder().build());\n }",
"public Builder addResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void process(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tresp.setHeader(\"Cache-Control\", \"no-store, no-cache, must-revalidate\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tresp.setCharacterEncoding(\"UTF-8\"); //$NON-NLS-1$\n\n\t\tint indexCompletion = 0;\n\t\tString locale = UrlUtil.getLocale(req, resp);\n\t\tSearchProgressMonitor pm = SearchProgressMonitor\n\t\t\t\t.getProgressMonitor(locale);\n\t\tif (pm.isDone()) {\n\t\t\tindexCompletion = 100;\n\t\t} else {\n\t\t\tindexCompletion = pm.getPercentage();\n\t\t\tif (indexCompletion >= 100) {\n\t\t\t\t// 38573 We do not have results, so index cannot be 100\n\t\t\t\tindexCompletion = 100 - 1;\n\t\t\t}\n\t\t}\n\n\t\tString returnType = req.getParameter(Utils.RETURN_TYPE);\n\t\tboolean isXML = Utils.XML.equalsIgnoreCase(returnType);\n\t\tif (isXML) {\n\t\t\tresp.setContentType(\"application/xml\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toXML(indexCompletion));\n\t\t} else {\n\t\t\tresp.setContentType(\"text/plain\"); //$NON-NLS-1$\n\t\t\tresp.getWriter().write(toString(indexCompletion));\n\t\t}\n\t\tresp.getWriter().flush();\n\t}",
"void onResult(AIResponse result);",
"public void addAll(XResultSet r) {\n this.getNodeRefs().addAll(r.getNodeRefs());\n this.numberFound += r.numberFound;\n }",
"@Override\n\tpublic void sendJobResult(int[] result) throws RemoteException {\n\t\tServer.results.add(result);\n Server.listResults();\n\t}",
"public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder() {\n return getResultsFieldBuilder().addBuilder(\n org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());\n }",
"@Override\n\tpublic void processResponse(Response response)\n\t{\n\t\t\n\t}",
"public void receiveResultaddWriteoff(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.AddWriteoffResponse result) {\n }",
"void add(CheckResult result) {\r\n checkResults.add(result);\r\n }",
"protected void writeRemoteInvocationResult(HttpExchange exchange, RemoteInvocationResult result)\n/* */ throws IOException\n/* */ {\n/* 143 */ exchange.getResponseHeaders().set(\"Content-Type\", getContentType());\n/* 144 */ exchange.sendResponseHeaders(200, 0L);\n/* 145 */ writeRemoteInvocationResult(exchange, result, exchange.getResponseBody());\n/* */ }",
"@Override\n\tpublic void addResult(User user) {\n\n\t}",
"public void addExecutionResponse(PPSRuleExecutionResponse ruleExecutionResponse) {\r\n\t\tgetExecutionResponseList().add(ruleExecutionResponse);\r\n\t}",
"@Override\n public void begin() throws IOException {\n ps.write(\"{ \\\"results\\\": [\\n\");\n }",
"private void outputMatchedLines(Pattern grepPattern, BufferedReader reader, BufferedWriter writer) throws IOException {\n String line = null;\n while ((line = reader.readLine()) != null) {\n Matcher matcher = grepPattern.matcher(line);\n if (matcher.find()) {\n writer.write(line);\n writer.write(System.getProperty(\"line.separator\"));\n writer.flush();\n }\n }\n }",
"@Override\n public void onResults(Bundle results) {\n ArrayList<String> matches = results\n .getStringArrayList(SpeechRecognizer.RESULTS_RECOGNITION);\n\n //displaying the first match\n if (matches != null)\n editText.setText(matches.get(0));\n\n }",
"private void writeSpecificResult(GroupOfLogs res) throws ServiceFailureException {\r\n writeStartOfElement(\"Log\");\r\n \r\n if(res.getType().compareTo(\"Error\") == 0 || res.getType().compareTo(\"Critical\") == 0) {\r\n writeElementWithCharacters(\"info\", removeNonValidXMLCharacters(res.getIdentity()));\r\n } else {\r\n writeElementWithCharacters(\"info\", String.valueOf(res.getIdentity()));\r\n }\r\n \r\n writeElementWithCharacters(\"startID\", String.valueOf(res.getStartID()));\r\n writeElementWithCharacters(\"endID\", String.valueOf(res.getEndID()));\r\n writeElementWithCharacters(\"startDate\", res.getStartDate());\r\n writeElementWithCharacters(\"endDate\", res.getEndDate());\r\n writeElementWithCharacters(\"module\", String.valueOf(res.getModule()));\r\n writeElementWithCharacters(\"level\", String.valueOf(res.getLevel()));\r\n writeElementWithCharacters(\"type\", res.getType());\r\n writeElementWithCharacters(\"tid\", String.valueOf(res.getThreadID()));\r\n writeElementWithCharacters(\"pid\", String.valueOf(res.getProcessID()));\r\n writeElementWithCharacters(\"count\", String.valueOf(res.getCount()));\r\n writeEndOfElement();\r\n }",
"public void mergeResponse(ToDeviceMsg response) {\n this.response = response;\n }",
"@Override\r\n\tpublic void onAccountMatch(int result, String userId)\r\n\t{\n\r\n\t}",
"public Builder addResults(org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }",
"public T validateMatchingLastRenderedResponse(String matcherExpression)\n {\n BooleanListRulesFactory<String> factory = new BooleanListRulesFactory<String>();\n Matcher<String> match = factory.createMatcher(matcherExpression);\n return _validateMatchingLastRenderedResponse(match);\n }",
"public Builder addResults(entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }",
"public void setTotalMatched(Double totalMatched){\n this.totalMatched = totalMatched;\n }"
] | [
"0.63138884",
"0.6199104",
"0.59785587",
"0.58750814",
"0.5840814",
"0.58376575",
"0.5663542",
"0.55986744",
"0.5525046",
"0.54766804",
"0.543184",
"0.5368601",
"0.5326524",
"0.52850354",
"0.52756405",
"0.5257975",
"0.52571046",
"0.5241939",
"0.5237291",
"0.5225404",
"0.5211029",
"0.51977634",
"0.51868296",
"0.5180443",
"0.5110595",
"0.5089636",
"0.5089632",
"0.506775",
"0.5063734",
"0.50634813",
"0.50364673",
"0.5028565",
"0.50113213",
"0.50104755",
"0.50025827",
"0.49908993",
"0.49670738",
"0.49414632",
"0.49156845",
"0.4912298",
"0.48750737",
"0.48698312",
"0.48640704",
"0.48489213",
"0.4844633",
"0.4841348",
"0.48281714",
"0.48222026",
"0.48222026",
"0.48207685",
"0.4806815",
"0.48033446",
"0.479204",
"0.4784969",
"0.47799435",
"0.47756475",
"0.4773942",
"0.476478",
"0.47642726",
"0.47642726",
"0.47605586",
"0.47542787",
"0.47535688",
"0.47427738",
"0.47388604",
"0.47306725",
"0.47241154",
"0.4719258",
"0.47055408",
"0.47027788",
"0.4699973",
"0.46952537",
"0.46919116",
"0.46915847",
"0.46868727",
"0.46825984",
"0.4682196",
"0.4681752",
"0.46771201",
"0.4672727",
"0.4672719",
"0.4668542",
"0.4661871",
"0.46606737",
"0.46599895",
"0.4659869",
"0.46542948",
"0.46480143",
"0.46470648",
"0.46430033",
"0.46416804",
"0.46388155",
"0.46362403",
"0.46359536",
"0.46331954",
"0.46305752",
"0.4618407",
"0.46111366",
"0.46022177",
"0.46021572"
] | 0.6747066 | 0 |
Returns the response after finding a task by searching for a keyword. | @Override
public String execute(TaskList tasks, Ui ui, Storage storage) {
StringBuilder response = new StringBuilder("Oh? You're approaching me?\n"
+ "Here are the matching tasks in your list:\n");
int index = 1;
for (Task task : tasks.getTasks()) {
String taskString = task.toString().substring(6);
appendMatched(response, taskString, index++);
}
return response.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void findTask(String keyword) {\n int index = 1;\n for (Task task : taskList) {\n if (task.toString().contains(keyword)) {\n if (isNoTaskYetFound(index)) {\n System.out.println(\"Here are the matching tasks in your list:\");\n }\n\n System.out.println(String.format(\"%d. %s\", index++, task.toString()));\n }\n }\n\n if (isNoTaskYetFound(index)) {\n System.out.println(\"There are no matching results\");\n }\n }",
"public CommandResult execute() {\n int i = 0;\n int found = 0;\n for (Task task : Duke.taskList) {\n i++;\n if (task.description.contains(keyword)) {\n System.out.println(i + \".[\" + task.getTaskID() + \"]\" +\n \"[\" + task.getStatusIcon() +\n \"] \" + task.description + \" \" + task.getDate());\n found++;\n }\n }\n if (found == 0) {\n return new CommandResult(\"No results found :(\");\n } else {\n return new CommandResult(System.lineSeparator() + found + \" results found!\");\n }\n }",
"public String find(String keyword) {\n ArrayList<Task> result = new ArrayList<>();\n final StringBuilder matchedTasks = new StringBuilder(\"Here are the matching tasks in your list:\\n\\t\");\n\n for (int i = 0; i < records.size(); i++) {\n Task current = records.get(i);\n if (current.description.toLowerCase().contains(keyword.toLowerCase())) {\n result.add(current);\n }\n }\n result.forEach((el) -> matchedTasks.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n result.indexOf(el) + 1, el.toString())));\n return matchedTasks.toString();\n }",
"public void findTask() {\n System.out.println(LINEBAR);\n System.out.println(\"Below are a list of tasks matching your description\\n\");\n\n String targetDesc = userIn.substring(FIND_HEADER);\n\n int matching = 0;\n\n for (Task t : tasks.TaskList) {\n String currDesc = t.taskDescription;\n\n if (currDesc.contains(targetDesc)) {\n matching++;\n System.out.println(matching + \". \" + t);\n }\n }\n\n if (matching == 0) {\n System.out.println(\"No matches found\\n\");\n }\n System.out.println(LINEBAR);\n }",
"public String findKeywords(String keyword) {\n String searchResult = Messages.EMPTY_STRING;\n ArrayList<Integer> indexNumList = new ArrayList<>();\n\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n if (recordedTask.get(i).getTaskName().contains(keyword)) {\n indexNumList.add(i);\n }\n }\n\n for (int i = 0; i < indexNumList.size(); i++) {\n searchResult = searchResult.concat((i + 1) + DOT_SPACE + recordedTask.get(indexNumList.get(i)).returnTaskListing()\n + ((i == indexNumList.size() - 1) ? Messages.EMPTY_STRING : Messages.NEW_LINE));\n }\n return searchResult;\n }",
"public FindCommand(String[] command, String response) {\n try {\n if (command[1].isEmpty()) {\n throw new TaskException(\"specify what you would like to find?\");\n }\n keyword = response.substring(FIND_LENGTH);\n } catch (TaskException e) {\n System.out.println(e.getMessage());\n }\n }",
"public String find(String kw) {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n if (t.toString().contains(kw)) {\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n }\n\n return result.toString();\n }",
"public static void printFindTaskResult(ArrayList<Task> listOfTasksFound, String keyword) {\n int listSize = listOfTasksFound.size();\n\n printDivider();\n // Indicates that there are no tasks found\n if (listOfTasksFound.isEmpty()) {\n Ui.printFindTaskEmptyError(keyword);\n } else {\n // Prints the list of result\n System.out.println(\"Here are the tasks found with the keyword -- \\\"\" + keyword + \"\\\" :\");\n for (int i = 0; i < listSize ; i++) {\n Task currentTask = listOfTasksFound.get(i);\n System.out.println((i + 1) + \".\" + currentTask);\n }\n }\n printDivider();\n }",
"private void appendMatched(StringBuilder response, String task, int index) {\n String matchedResult = String.format(\" %d.%s\\n\", index, task);\n if (task.contains(keyword)) {\n response.append(matchedResult);\n }\n }",
"public CommandResult execute(TaskList tasks) {\n TaskList filteredTasks = new TaskList();\n for (int i = 0; i < tasks.size(); i++) {\n if (tasks.get(i).getDescription().toLowerCase().contains(keyword.toLowerCase())) {\n filteredTasks.add(tasks.get(i));\n }\n }\n return new CommandResult(FIND_MESSAGE, filteredTasks);\n }",
"public TaskList findMatchingItems(String keyword) {\n if (keyword.contains(\"#\")) {\n System.out.println(\"#\");\n return new TaskList(listItems.stream().filter(\n x -> x.containTag(keyword.replace(\"#\", \"\"))).collect(Collectors.toList()));\n } else {\n return new TaskList(listItems.stream().filter(\n x -> x.getTask().contains(keyword)).collect(Collectors.toList()));\n }\n }",
"public List<Task> findTask(String input) throws LukeNoResultException {\n ArrayList<Task> result = new ArrayList<>();\n for (int i = 0; i < this.tasks.size(); i++) {\n Task current = this.tasks.get(i);\n if (current.getDescription().contains(input)) {\n result.add(current);\n }\n }\n if (result.size() <= 0) {\n throw new LukeNoResultException(input);\n }\n return result;\n }",
"public TaskList matchTasks(String keyword) {\n TaskList matches = new TaskList();\n\n for (int i = 0; i < tasks.size(); i++) {\n Task task = tasks.get(i);\n if (task.toString().contains(keyword)) {\n matches.addTask(task);\n }\n }\n return matches;\n }",
"public TaskList find(String[] keywords) {\n TaskList viewToReturn = new TaskList();\n Set<Task> taskSet = new HashSet<>();\n\n for (Task task : tasks) {\n for (String keyword : keywords) {\n if (task.getTaskDescription().contains(keyword) && !taskSet.contains(task)) {\n taskSet.add(task);\n viewToReturn.add(task);\n }\n }\n }\n\n return viewToReturn;\n }",
"@Override\n public CommandResult execute(TaskList tasks, Storage storage) throws NoActionException {\n assert tasks != null;\n assert storage != null;\n if (this.searchTerms.length() == 0) {\n throw new NoActionException(\"Command 'find' requires search terms to be provided.\");\n }\n ArrayList<Task> matchList = new ArrayList<>();\n for (int i = 0; i < tasks.size(); i++) {\n Task currTask = tasks.get(i);\n if (currTask.contains(searchTerms)) {\n matchList.add(currTask);\n continue;\n }\n if (currTask.getTag().contains(searchTerms)) {\n matchList.add(currTask);\n }\n }\n return new CommandResult(Reply.showMatchingTasks(new TaskList(matchList)),\n true, super.isExit());\n }",
"SearchResponse search(SearchRequest searchRequest) throws IOException;",
"@Override\n\tString search(String text) throws Exception {\n\t\tString result = null;\n\t\tthis.text = text;\n\t\tthis.connection = this.getConnection();\n\n\t\tresult = searchRes();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tresult = searchTour();\n\t\tif (result != null)\n\t\t\treturn result;\n\n\t\tconnection.close();\n\t\tthrow new Exception(\"NOT FOUND\");\n\t}",
"public void search (String title, AsyncHttpResponseHandler handler) {\n String apiUrl = getApiUrl(\"track.search\");\n RequestParams params = new RequestParams();\n params.put(\"track\", title);\n params.put(\"api_key\", API_KEY);\n //client.addHeader(\"Authorization\", \"Bearer \" + accessToken );\n client.get(apiUrl, params, handler);\n }",
"public ArrayList<Task> find(String word) {\n ArrayList<Task> newlist = new ArrayList<Task>();\n for (Task t : list) {\n if (t.contain(word)) {\n newlist.add(t);\n }\n }\n return newlist;\n }",
"public static void findTask(String input) {\n int taskCount = 1;\n ui.showToUser(ui.DIVIDER, \"Here are the matching tasks in your list:\");\n for (Task task : Tasks) {\n if (task.getDescription().contains(input)){\n ui.showToUser(taskCount + \".\" + task.toString());\n taskCount++;\n }\n }\n ui.showToUser(ui.DIVIDER);\n }",
"public void findTasks(ArrayList<Task> tasks, String keywords) {\n ArrayList<Task> filteredTasks;\n filteredTasks = (ArrayList<Task>) tasks.stream()\n .filter((t) -> t.getTask().contains(keywords))\n .collect(Collectors.toList());\n if (filteredTasks.size() == 0) {\n System.out.println(\"OOPS!!! We can't find anything that contains the description.\");\n } else {\n System.out.println(\"Here's what we have found: \");\n printList(filteredTasks);\n }\n }",
"entities.Torrent.SearchResponse getSearchResponse();",
"SearchResult<TimelineMeta> search(SearchParameter searchParameter);",
"public void findClick(View v){\n String taskName = justAddedTextView.getText().toString();\n PlannerDBHandler handler = new PlannerDBHandler(this);\n\n //Task task = handler.findTask(taskName);\n }",
"@Override\n protected String doInBackground(Void... voids) {\n RequestHandler requestHandler = new RequestHandler();\n\n //creating request parameters\n HashMap<String, String> params = new HashMap<>();\n params.put(\"kata_kunci\", keyword);\n params.put(\"id_masjid\", idMasjid);\n\n //returing the response\n return requestHandler.sendPostRequest(URLs.URL_SEARCHPENGUMUMAN, params);\n }",
"@Override\r\n\tprotected Task<String> createTask() {\r\n\t\t\r\n return new Task<String>() {\r\n @Override\r\n protected String call() {\r\n \t\tif (scannedFiles == null) {\r\n \t\t\tscannedFiles = FolderScanner.scan(Settings.SOURCE_TXT_FOLDER);\r\n \t\t\t\r\n \t\t\t// Return null since this step is only used for search engine \r\n \t\t\t// initialization (scan files).\r\n \t\t\treturn null;\r\n \t\t}\r\n \t\t\r\n \treturn SearchingAdapter.getResultsPage(scannedFiles, keyword);\r\n }\r\n };\r\n\t}",
"@GET(\"w/api.php?action=opensearch&format=json&suggest&redirects=resolve\")\n Call<JsonElement> getSuggestionsFromSearch(@Query(\"search\") String search);",
"public List<Task> findWord(String word) throws DukeException {\n assert !word.isBlank();\n List<Task> findArray = new ArrayList<>();\n int count = 0;\n outer:\n for (Task x: tasks) {\n String[] nameArray = x.getName().split(\" \");\n inner:\n for (String y: nameArray) {\n if (word.equals(y)) {\n findArray.add(x);\n count += 1;\n continue outer;\n }\n }\n findArray.add(null);\n }\n if (count == 0) {\n throw new DukeException(\"Sorry I can't find any tasks containing that word!\");\n } else {\n return findArray;\n }\n }",
"@GET(\"search.php\")\n Call<MealData> getMealsBySearchQuery(@Query(\"s\") String searchKeyword);",
"SearchResult<TimelineMeta> search(SearchQuery searchQuery);",
"public IndexedList<Task> search() {\n\t\treturn null;\n\t}",
"public String showFind(ArrayList<String> tasks) {\n String response = \"\";\n response += showLine();\n response += \"Here are the matching tasks in your list:\" + System.lineSeparator();\n for (int i = 0; i < tasks.size(); i++) {\n response += \" \" + (i + 1) + \".\" + tasks.get(i) + System.lineSeparator();\n }\n response += showLine();\n return response;\n }",
"public IndexedList<Task> search(String partTitle) {\n\t\tpartTitle=partTitle.toLowerCase();\n\t\tLinkedList<Task> result=new LinkedList<Task>();\n\t\tfor(Task task : tasks) {\n\t\t\tif(task.getTitle().toLowerCase().contains(partTitle))\n\t\t\t\tresult.add(task);\n\t\t}\n\t\treturn result;\n\t}",
"@Override\n public String execute(String request) {\n String author = request.substring(request.indexOf(separator) + 1);\n\n ServiceFactory service = ServiceFactory.getInstance();\n NewsService newsService = service.getNewsService();\n\n String response;\n try {\n newsService.findByAuthor(author);\n response = \"It is search results.\"; ///look it\n } catch (ServiceException e) {\n response = \"News not found.\";\n }\n return response;\n }",
"public FindCommand(String keyword) {\n this.keyword = keyword;\n }",
"@CSIContractTest( Project.SWA_MOPP )\n @Test\n public void testSearch_Success() throws Exception {\n TaskDefinitionSearchParameters taskDefSearchParams = new TaskDefinitionSearchParameters();\n\n taskDefSearchParams.setClassCode( taskDef1.getClassCd() );\n taskDefSearchParams.setSubclassCode( taskDef1.getSubclassCd() );\n taskDefSearchParams.setStatusCodes( Arrays.asList( taskDef1.getStatusCd() ) );\n taskDefSearchParams.setAssemblyId( taskDef1.getAssmblId() );\n\n List<TaskDefinition> results = testTaskDefinitionResource.search( taskDefSearchParams );\n\n assertEquals( \"Unexpected number of results returned: \", 1, results.size() );\n\n assertTaskDefinition( taskDef1, results.get( 0 ) );\n }",
"public SearchResponse search(SearchRequest request) throws SearchServiceException;",
"List<SearchResult> search(SearchQuery searchQuery);",
"void searchFinished (Search search);",
"SearchResultCompany search(String keywords);",
"public void doSearch(String searchText){\n }",
"FindResponse find(@NonNull String title, @NonNull String space);",
"MetaTag findByNameAndTask(String metaTagName, int taskId) ;",
"@In String search();",
"public abstract int search(String[] words, String wordToFind) throws ItemNotFoundException;",
"public void serviceSearchCompleted(int transID, int respCode) {\n }",
"private void search() {\n \t\tString searchString = m_searchEditText.getText().toString();\n \n \t\t// Remove the refresh if it's scheduled\n \t\tm_handler.removeCallbacks(m_refreshRunnable);\n \t\t\n\t\tif ((searchString != null) && (!searchString.equals(\"\"))) {\n \t\t\tLog.d(TAG, \"Searching string: \\\"\" + searchString + \"\\\"\");\n \n \t\t\t// Save the search string\n \t\t\tm_lastSearch = searchString;\n \n \t\t\t// Disable the Go button to show that the search is in progress\n \t\t\tm_goButton.setEnabled(false);\n \n \t\t\t// Remove the keyboard to better show results\n \t\t\t((InputMethodManager) this\n \t\t\t\t\t.getSystemService(Service.INPUT_METHOD_SERVICE))\n \t\t\t\t\t.hideSoftInputFromWindow(m_searchEditText.getWindowToken(),\n \t\t\t\t\t\t\t0);\n \n \t\t\t// Start the search task\n \t\t\tnew HTTPTask().execute(searchString);\n \t\t\t\n \t\t\t// Schedule the refresh\n \t\t\tm_handler.postDelayed(m_refreshRunnable, REFRESH_DELAY);\n \t\t} else {\n \t\t\tLog.d(TAG, \"Ignoring null or empty search string.\");\n \t\t}\n \t}",
"public void apiFindSongReverseSearchSpotify(Messenger handler,Song song, int playlistPos){\n\n String termSearch = (song.getArtist() + \" \" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_spotify_search) + \"?q=\"+termSearch+\"&type=track\"+\"&limit=50\")\n .header(\"Authorization\", \"Bearer \"+ dh.getSpotifyUserToken())\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Spotify Find Songs Response: \" + res);\n spotifyMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public MatchOther processResult(ResultItems resultItems, Task task);",
"@Override\n\tprotected void executeSearch(String term) {\n\t\t\n\t}",
"public abstract HashMap search(String keyword);",
"public Object getResult(String term) throws ExecutionException, InterruptedException {\n CompletableFuture<HashMap<String, Object>> responseApple = getMovieAndSongsFromApple(term);\n CompletableFuture<HashMap<String, Object>> responseTvMaze = getShowsFromTvMaze(term);\n CompletableFuture.allOf(responseApple,responseTvMaze).join();\n SearchResult responses = new SearchResult();\n HashMap<String, Object> providers = new HashMap<>();\n providers.put(\"Apple\", responseApple.get());\n providers.put(\"TvMaze\", responseTvMaze.get());\n responses.setProviders(providers);\n\n return responses;\n }",
"private String executeSearch(String search, int beginResult) {\n\n\t\tHttpClient httpClient = new DefaultHttpClient();\n\t\tString request = null;\n\t\ttry {\n\t\t\trequest = SERVER_URL + \"yacysearch.json?query=\"\n\t\t\t\t\t+ URLEncoder.encode(search, \"UTF-8\") + \"&startRecord=\" + beginResult;\n\t\t} catch (UnsupportedEncodingException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHttpGet getRequest = new HttpGet(request);\n\n\t\tHttpResponse response = null;\n\t\ttry {\n\t\t\tresponse = httpClient.execute(getRequest);\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t// if (null != httpClient) {\n\t\t// httpClient.;\n\t\t// }\n\n\t\tString result = parseHttpResponse(response);\n\n\t\treturn result;\n\t}",
"public CommandResult execute() {\n String message = tasks.listTasks(keyWord);\n return new CommandResult(message);\n }",
"abstract public boolean performSearch();",
"entities.Torrent.LocalSearchResponse getLocalSearchResponse();",
"public void search(final String word){\n\t\tif (listener != null){\n\t\t\thandler.post(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\tlistener.lookup(word.trim());\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"private void executeSearchQuery(JsonObject json, HttpServerResponse response) {\n database.searchQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Search Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Search Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t\tpostParameters[0] = new PostParameter(\"keyword\", searchKeyword);\n\t\t\t\tpostParameters[1] = new PostParameter(\"university\", university);\n\t\t\t\tpostParameters[2] = new PostParameter(\"page\", Integer.toString(requestTime));\n\t\t\t\t\n\t\t\t\tjsonString = HttpUtil.httpRequest(HttpUtil.USER_SEARCHBOOKS, postParameters, HttpUtil.POST);\n\t\t\t\tif (jsonString != null) {\t\t\t\t\t\n\t\t\t\t\tMessage msg = handler.obtainMessage();\n\t\t\t\t\tmsg.what = what;\n\t\t\t\t\thandler.sendMessage(msg);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\thandler.sendEmptyMessage(-1);\n\t\t\t\t}\n\t\t\t}",
"public TaskItem findTask(String subject) throws HarnessException {\n\t Object[] params = {subject};\n\t return (TaskItem)GeneralUtility.waitFor(null, this, false, \"browseTask\", params, WAIT_FOR_OPERAND.NEQ, null, 30000, 1000);\n\t}",
"@Override\n public void doIT() throws RepositoryException {\n Repository repo = taskData.getRepository();\n\n if (repo instanceof RemoteRepository && taskData.getSubject() != null) {\n RemoteRepository rr = (RemoteRepository) repo;\n NamedEntity entity = (NamedEntity) taskData.getSubject().getTL();\n boolean includeIndirect = true;\n\n repoResults = new ArrayList<>();\n rr.getEntityWhereExtended( entity ).forEach( e -> repoResults.add( e ) );\n repoResults.addAll( rr.getEntityWhereUsed( entity, includeIndirect ) );\n // Returns list of repo items\n // RepositoryItem item = null;\n // rr.getItemWhereUsed( item, includeIndirect );\n log.debug( \"Found \" + repoResults.size() + \" entities.\" );\n } else {\n // Run full-text search\n // Result list contains both entity and library result items\n repoResults = repo.search( taskData.getQuery(), taskData.getIncludeStatus(),\n taskData.isLatestVersionsOnly(), taskData.getItemType() );\n log.debug( \"Found \" + repoResults.size() + \" items in repo.\" );\n }\n }",
"public List<String> searchTasks(String textToSearch) {\n return USER_TASKS.stream().filter(task -> task.getName().contains(textToSearch))\n .map(Task::toString).collect(Collectors.toList());\n }",
"public SearchResult search(String text, String subText);",
"public AsyncLoadingHandler obtain(EntityQueryCriteria<E> criteria, AsyncCallback<EntitySearchResult<E>> handlingCallback);",
"@Override\n public String executeCommand(TaskList taskList, Storage storage) {\n return taskList.findTasks(this.keyword);\n }",
"entities.Torrent.SearchRequest getSearchRequest();",
"private void performSearch() {\n String text = txtSearch.getText();\n String haystack = field.getText();\n \n // Is this case sensitive?\n if (!chkMatchCase.isSelected()) {\n text = text.toLowerCase();\n haystack = haystack.toLowerCase();\n }\n \n // Check if it is a new string that the user is searching for.\n if (!text.equals(needle)) {\n needle = text;\n curr_index = 0;\n }\n \n // Grab the list of places where we found it.\n populateFoundList(haystack);\n \n // Nothing was found.\n if (found.isEmpty()) {\n Debug.println(\"FINDING\", \"No occurrences of \" + needle + \" found.\");\n JOptionPane.showMessageDialog(null, \"No occurrences of \" + needle + \" found.\",\n \"Nothing found\", JOptionPane.INFORMATION_MESSAGE);\n \n return;\n }\n \n // Loop back the indexes if we have reached the end.\n if (curr_index == found.size()) {\n curr_index = 0;\n }\n \n // Go through the findings one at a time.\n int indexes[] = found.get(curr_index);\n field.select(indexes[0], indexes[1]);\n curr_index++;\n }",
"Search getSearch();",
"@GET\n @Produces(value= MediaType.APPLICATION_JSON_VALUE)\n @Path(value = \"/search/{token}\")\n @Timed\n public ResponseEntity<String> searchProduct(@PathVariable final String token) {\n AsyncViewResult viewResult = couchbaseService.findAllBeersAsync().toBlocking().single();\n if (viewResult.success()) {\n return couchbaseService.searchBeer(viewResult.rows(), token)\n //transform the array into a ResponseEntity with correct status\n .map(new Func1<JsonArray, ResponseEntity<String>>() {\n @Override\n public ResponseEntity<String> call(JsonArray objects) {\n return new ResponseEntity<String>(objects.toString(), HttpStatus.OK);\n }\n })\n //in case of errors during this processing, return a ERROR 500 response with detail\n .onErrorReturn(new Func1<Throwable, ResponseEntity<String>>() {\n @Override\n public ResponseEntity<String> call(Throwable throwable) {\n return new ResponseEntity<String>(\"Error while parsing results - \" + throwable,\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n })\n //block and send back the response\n .toBlocking().single();\n } else {\n return new ResponseEntity<String>(\"Error while searching - \" + viewResult.error(),\n HttpStatus.INTERNAL_SERVER_ERROR);\n }\n }",
"public String searchTweet(String searchString) {\n\t\treturn restClient.searchTweet(searchString);\n\t}",
"public void searchKeyword() throws Exception {\n\t\t\n\t\tString keyword = dataHelper.getData(DataColumn.Keyword);\n\n\t\twh.sendKeys(CommonElements.searchTxtBox, keyword);\n\t\twh.clickElement(CommonElements.searchBtn);\n\n\t\tif (wh.isElementPresent(PLPUI.VerifyPLPPage, 4)\n\t\t\t\t&& wh.getText(CommonElements.breadCumb).contains(\n\t\t\t\t\t\tkeyword)) {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User navigated to search plp page.\", StepResult.PASS);\n\t\t} else {\n\n\t\t\treport.addReportStep(\"Type '\" + keyword\n\t\t\t\t\t+ \"' in search text box and click on search button\",\n\t\t\t\t\t\"User is not navigated to search plp page.\",\n\t\t\t\t\tStepResult.FAIL);\n\n\t\t\tterminateTestCase(\"search plp page\");\n\t\t}\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception 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}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tgetResultByKeyword(page);\n\t\t\t\t} catch (Exception 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 FindCommand(String keyword) {\n super();\n this.keyword = keyword;\n }",
"private void search(){\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.clearEditText(0);\n solo.typeText(0, searchTerm);\n }",
"public String searchUserWithKeyword(){\r\n\t\tlog.info(\"Starting to search user(s) with keyword = \"+ searchkeyword);\r\n\t\tthis.clearErrorsAndMessages();\r\n\t\tusersList = new ArrayList<Users>();\r\n\t\tusersList.clear();\t\t\r\n\t\ttry {\t\t\r\n\t\t\tusersList = userService.findUsersWithNameLike(searchkeyword);\r\n\t\t\tmessage = usersList.size() + \" users found .\";\t\r\n\t\t\tlog.info(message);\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tmessage = \"Error in finding users for keyword [\" +searchkeyword+\"]. \"+ e.getMessage();\r\n\t\t\tthis.addActionError(message);\r\n\t\t\tlog.error(message, e);\r\n\t\t}\t\r\n\t\t// reset the keyword\r\n\t\tsearchkeyword = \"\";\r\n\t\treturn SUCCESS;\r\n\t}",
"@Override\n public String search(String word) {\n return search(word, root);\n }",
"public void apiFindSongReverseSearchApple(Messenger handler, Song song, int playlistPos){\n String termSearch = (song.getArtist() + \"+\" + song.getTrack());\n termSearch = termSearch.replace(\"&\", \"\");\n termSearch = termSearch.replace(\"?\", \"\");\n termSearch = termSearch.replace(\"#\", \"\");\n termSearch.replace(' ', '+');\n Log.v(TAG, \"Term Search: \" + termSearch);\n\n Request request = new Request.Builder()\n .url(getString(R.string.api_apple_search_track) + \"?term=\"+termSearch+\"&limit=20\"+\"&types=songs\")\n .header(\"Authorization\", \"Bearer \"+ getString(R.string.apple_dev_token))\n .build();\n\n try(Response response = client.newCall(request).execute()){\n if(response.isSuccessful()){\n String res = response.body().string();\n //Log.v(TAG,\"Apple Music Find Songs Response: \" + res);\n appleMusicMatchSong(handler,res,playlistPos,song,true);\n } else {\n Log.v(TAG,\"Failed \" + response.toString());\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public SearchRepositoryTask(RepositorySearchCriteria taskData, TaskResultHandlerI handler,\n DexStatusController statusController) {\n super( taskData, handler, statusController );\n\n // Replace start message from super-type.\n msgBuilder = new StringBuilder( \"Searching repository: \" );\n msgBuilder.append( taskData.getQuery() );\n updateMessage( msgBuilder.toString() );\n }",
"private void handleSearchPendingOnPost(String result) {\n SearchContactsFragment frag = (SearchContactsFragment) getSupportFragmentManager()\n .findFragmentByTag(getString(R.string.keys_fragment_searchConnections));\n\n try {\n JSONObject resultsJSON = new JSONObject(result);\n boolean success = resultsJSON.getBoolean(\"success\");\n String username = resultsJSON.getString(\"usernameB\");\n\n if (success) {\n frag.handlePendingOnPost(success, username);\n } else {\n Toast.makeText(this, \"Your action for contact request was not valid\",\n Toast.LENGTH_SHORT).show();\n }\n\n } catch (JSONException e) {\n frag.setError(\"Something strange happened\");\n frag.handleOnError(e.toString());\n }\n }",
"@Step(\"Work Order ServiceActivity Search Lookup\")\n public boolean lookupWorkOrderServiceActivitySearch(String searchText) {\n boolean flag = false;\n try {\n pageActions.clickAt(assignToMeBtn, \"Clicking on Assign to me button\");\n pageActions.clickAt(itemizedCostsButton, \"Clicking on Itemized Cost Button\");\n new WebDriverWait(driver, 45)\n .until(ExpectedConditions.frameToBeAvailableAndSwitchToIt(itemizedFrame));\n logger.info(\"Switched to ItemizedCost Frame successfully\");\n new WebDriverWait(driver, 30).until(ExpectedConditions.visibilityOf(itemizedSubmitButton));\n pageActions.selectDropDown(itemize_CostType, \"Local Job Code\");\n pageActions.clickAt(localJobCodeLookup, \"Clicking on Local Job Code Look Up Search\");\n\n SeleniumWait.hold(GlobalVariables.ShortSleep);\n functions.switchToWindow(driver, 1);\n pageActions.selectDropDown(wrkOrdLookupSearchBy, \"Short Description\");\n pageActions.typeAndPressEnterKey(wrkOrdLookupSearch, searchText,\n \"Searching in the lookUp Window\");\n pageActions.typeAndPressEnterKey(shortDescriptionSearch, searchText,\n \"Searching in the lookUp Window Grid\");\n new WebDriverWait(driver, 30).until(ExpectedConditions\n .elementToBeClickable(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")));\n flag =\n driver.findElement(By.xpath(\"//td[contains(text(),'\" + searchText + \"')]\")).isDisplayed();\n } catch (Exception e) {\n e.printStackTrace();\n System.out.println(e.getMessage());\n }\n finally {\n functions.switchToWindow(driver, 0);\n }\n return flag;\n }",
"List<ShipmentInfoPODDTO> search(String query);",
"@RequestMapping(value = \"/search-in-doc/{id}\", \n\t\t\t\t\tmethod = RequestMethod.GET)\n\tpublic ResponseEntity<?> searchInDoc(@PathVariable(\"id\") String id, \n\t\t\t\t\t\t\t\t\t\t\t @RequestParam(value = \"word\", required = true) String word) throws IOException {\n\n\t\tboolean foundFile = false; // denota si el archivo fue encontrado\n\t\t\n\t\tString pageToken = null;\n\t\tdo { // proceso de busqueda\n\t\t\tFileList result = DriveConnection.driveService.files().list() \n\t\t\t\t .setSpaces(\"drive\")\n\t\t\t .setFields(\"nextPageToken, files(id)\") \n\t\t\t .setPageToken(pageToken)\n\t\t\t .execute();\n\t\t\n\t\t\t\t for (File file : result.getFiles()) { \n\t\t\t\t\t if (file.getId().equals(id)) {\n\t\t\t\t\t\t\tfoundFile = true;\n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \n\t\t\t pageToken = result.getNextPageToken();\n\t\t} while (pageToken != null);\n\t\t\n\t\tif (foundFile) {\n\t\t\t\n\t\t\tFile content = DriveConnection.driveService.files().get(id).execute();\t\n\t\t\tcontent.toString().contains(word);\t\n\t\t\treturn new ResponseEntity<>(\"Found\", HttpStatus.OK); // mostramos rpta en consola\n\t\t\t\t\n\t\t} else {\t\n\t\t\t\n\t\t\treturn new ResponseEntity<>(\"Not found\", HttpStatus.NOT_FOUND); // mostramos rpta en consola\n\t\t\t\n\t\t}\n\t\n\t}",
"static String search(String sentence) {\r\n\t\tString result = null;\r\n\t\tif (sentence.contains(\"search\")) {\r\n\t\t\tint index = sentence.indexOf(\"search\");\r\n\t\t\tString search = sentence.substring(index + 6);\r\n\t\t\tresult = googleSearch(search);\r\n\t\t} else if (sentence.contains(\"find\")) {\r\n\t\t\tint index = sentence.indexOf(\"find\");\r\n\t\t\tString search = sentence.substring(index + 6);\r\n\t\t\tresult = googleSearch(search);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"@Override\r\n\t\tprotected void onPostExecute(String result) {\n\t\t\tsuper.onPostExecute(result);\r\n\t\t\tToast.makeText(PlayerActivity.this, result, 1).show();\r\n\t\t\tfindtalk ft=new findtalk();\r\n\t\t\tft.execute();\r\n\t\t}",
"public static void printFindList(ArrayList<Task> tasks, String Key) {\n \n if (tasks.isEmpty()) {\n System.out.println(\" No matching tasks in your list (search: \" + Key + \")\");\n return;\n }\n printLine();\n System.out.println(\" Here are the matching tasks in your list (search: \" + Key + \"):\");\n int i = 0;\n for (Task t : tasks) {\n System.out.println((i + 1) + \".\" + tasks.get(i).toFindString());\n i++;\n }\n printLine();\n }",
"@Override\n\tpublic List queryfind(String type, String query)\n\t{\n\t\treturn teataskMapper.queryfind(type, query);\n\t}",
"private void searchItem(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}",
"public V search(K key);",
"protected final void searchForText() {\n Logger.debug(\" - search for text\");\n final String searchText = theSearchEdit.getText().toString();\n\n MultiDaoSearchTask task = new MultiDaoSearchTask() {\n @Override\n protected void onSearchCompleted(List<Object> results) {\n adapter.setData(results);\n }\n\n @Override\n protected int getMinSearchTextLength() {\n return 0;\n }\n };\n task.readDaos.add(crDao);\n task.readDaos.add(monsterDao);\n task.readDaos.add(customMonsterDao);\n task.execute(searchText.toUpperCase());\n }",
"@Override\n\tpublic SuccessMessage search(String kw, int size, int offset) {\n\t\tthrow new I18nMessageException(\"502\");\n\t}",
"@Override\n\tpublic Etape find(String search) {\n\t\treturn null;\n\t}",
"abstract public void search();",
"public ArrayList<String> findTaskID(String title) {\n DataManager.getTasks getTask = new DataManager.getTasks(getActivity());\n ArrayList<String> queryList = new ArrayList<>();\n ArrayList<Task> taskList = new ArrayList<>();\n\n // Fetch the task from the server with a given title\n queryList.clear();\n queryList.add(\"or\");\n queryList.add(\"title\");\n queryList.add(title);\n\n try {\n getTask.execute(queryList);\n taskList = getTask.get();\n }\n catch (Exception e) {\n Log.e(\"Task ID Error\", \"Error getting Task ID from server\");\n e.printStackTrace();;\n assertTrue(Boolean.FALSE);\n }\n\n // If we got a task back, return it's ID to the caller, else report the error\n if (!taskList.isEmpty()) {\n queryList.clear();\n queryList.add(taskList.get(0).getID());\n }\n\n return queryList;\n }",
"@Override\r\n\tpublic List<Post> searchInfResult(String word) {\n\t\tpostDao=new PostDaoImpl(TransactionManager.connection);\r\n\t\treturn postDao.selectPosts(word);\r\n\t}",
"@Override\n protected String doInBackground(URL... params) {\n URL searchUrl = params[0];\n String talk2meSearchResults = null;\n try {\n talk2meSearchResults = NetworkUtils.getResponseFromHttpUrl(searchUrl);\n Log.d(TAG, \"talk2meSearchResults is : \" + talk2meSearchResults.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return talk2meSearchResults;\n }",
"@Override\n protected void onPostExecute(String s) {\n\n\n mainInterface.onResultsFound(pokemons);\n }",
"private void postSearch (String status) {\n if (status.equals(\"NO_RESULT_FOUND\")) {\n Context context = getActivity();\n CharSequence text = getString(R.string.search_artist_field_no_result_found);\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.setGravity(Gravity.TOP, (int) getActivity().findViewById(R.id.artist_detail_listview).getX(),\n (int)getActivity().findViewById(R.id.artist_detail_listview).getY());\n toast.show();\n }\n }",
"List<DataTerm> search(String searchTerm);",
"void search();",
"void search();"
] | [
"0.69509",
"0.6678856",
"0.66211444",
"0.63281786",
"0.6183019",
"0.61657655",
"0.61321473",
"0.6045603",
"0.6034242",
"0.5995378",
"0.5870099",
"0.5858116",
"0.5826248",
"0.5768328",
"0.57478565",
"0.57367444",
"0.57013345",
"0.56677365",
"0.5625176",
"0.559076",
"0.55113566",
"0.5509519",
"0.55000806",
"0.5492123",
"0.54515237",
"0.5450994",
"0.543687",
"0.5433828",
"0.54250926",
"0.5396304",
"0.5365537",
"0.5359695",
"0.53357714",
"0.532714",
"0.53233093",
"0.5316473",
"0.53113216",
"0.5297068",
"0.5293422",
"0.52801996",
"0.52358896",
"0.5224684",
"0.5220923",
"0.52169174",
"0.51951396",
"0.51887125",
"0.51858306",
"0.5183828",
"0.51827675",
"0.51760626",
"0.51601195",
"0.5146422",
"0.51396",
"0.51351696",
"0.51248014",
"0.5123092",
"0.51204467",
"0.51088876",
"0.5107854",
"0.50836575",
"0.5078478",
"0.50740784",
"0.50605035",
"0.50571036",
"0.5056283",
"0.505599",
"0.5055909",
"0.5038599",
"0.5037202",
"0.5035193",
"0.5030964",
"0.50085866",
"0.50085866",
"0.500702",
"0.50018597",
"0.49884355",
"0.4978819",
"0.4975855",
"0.49675226",
"0.4966432",
"0.49641317",
"0.49640447",
"0.49587142",
"0.49547747",
"0.4949343",
"0.49468648",
"0.49403167",
"0.49373937",
"0.49365082",
"0.49252254",
"0.4922925",
"0.49189913",
"0.49135283",
"0.4908238",
"0.490693",
"0.49057293",
"0.49027774",
"0.49025694",
"0.48967397",
"0.48966673",
"0.48966673"
] | 0.0 | -1 |
Returns the boolean false since it is not a command that exits the program. | @Override
public boolean isExit() {
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private Boolean quitCommand() {\n output.println(\"QUIT COMMAND\");\n return false;\n }",
"boolean hasExitStatus();",
"public boolean isExit() {\n return false;\n }",
"@Override\n public boolean isExit() {\n return true;\n }",
"public abstract boolean isExit();",
"public boolean isExit(){\n return true;\n }",
"@Override\r\n\tpublic boolean hasExited() {\n\t\treturn false;\r\n\t}",
"abstract boolean isExit();",
"public boolean isExit() {\n return exit;\n }",
"public boolean hasExitCode() {\n return result.hasExitCode();\n }",
"public boolean hasExitCode() {\n return result.hasExitCode();\n }",
"public boolean hasExitCode() {\n return result.hasExitCode();\n }",
"boolean isExecutable();",
"protected boolean isExiting ()\n\t{\n\t\treturn exit;\n\t}",
"public boolean isQuit() {\r\n\t\treturn quit;\r\n\t}",
"public boolean isExited() {\n return this.applicationState.checkFlag().equals(Flag.IS_EXITED);\n }",
"public boolean exitChecker() {\n isExit = false;\n return isExit;\n }",
"private boolean promptCommand() {}",
"static private boolean quit(Command command) {\n if (command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n } else {\n return true;\n }\n }",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // these shows that we want to quit\n }\n }",
"public boolean doQuit() {\n return false;\n }",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"boolean hasCommand();",
"boolean hasCommand();",
"public static boolean isExit(String command) {\r\n\t\tassert command != null;\r\n\t\tcommandType = Logic.determineCommandType(command);\r\n\t\tswitch (commandType) {\r\n\t\tcase EXIT:\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean hasExited()\n {\n try\n {\n proc.exitValue();\n return true;\n }\n catch(IllegalThreadStateException ex)\n {\n return false;\n }\n }",
"@Override\n public boolean shouldExit() {\n return true;\n }",
"private boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n Logger.Log(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"public boolean getExit() {\r\n return exit;\r\n }",
"public boolean quit(Command command) \n {\n if(command.hasSecondWord()) {\n System.out.println(\"Quit what?\");\n return false;\n }\n else {\n return true; // signal that we want to quit\n }\n }",
"if(false==adhocTicket.hasExited()){\n System.out.println(\"hasExit() is passed\");\n }",
"public boolean exit()\n {\n if(select == 0)\n {\n return true;\n }\n else\n return false;\n }",
"public boolean hasExited() {\n return this.exited;\n }",
"public boolean hasExitStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"public boolean hasExitStatus() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }",
"boolean isTerminated();",
"@Override\n public boolean exitChecker() {\n return false;\n }",
"public Guard isFinishedExecution() {\n if (depth == PSymGlobal.getConfiguration().getMaxStepBound()) {\n return Guard.constTrue();\n } else {\n return allMachinesHalted;\n }\n }",
"public boolean hasCommand() {\n return this.command != null;\n }",
"public boolean terminate() {\n return (msgType == MessageType.QUIT);\n }",
"public abstract boolean terminal();",
"public boolean isMainProgram() {\n return this.getName() == null;\n }",
"@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}",
"public boolean isTerminated() {\n \n \t\tfinal Thread executingThread = this.environment.getExecutingThread();\n \t\tif (executingThread.getState() == Thread.State.TERMINATED) {\n \t\t\treturn true;\n \t\t}\n \n \t\treturn false;\n \t}",
"public boolean macShutdown() {\r\n boolean result = promptUserWantsShutdown();\r\n\r\n if (result) {\r\n prepareForShutdown();\r\n }\r\n\r\n return result;\r\n }",
"private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n if(command.isUnknown()) {\n System.out.println(\"I don't know what you mean...\");\n return false;\n }\n\n String commandWord = command.getCommandWord();\n if (commandWord.equals(\"help\"))\n printHelp();\n else if (commandWord.equals(\"go\"))\n goRoom(command);\n else if (commandWord.equals(\"quit\"))\n wantToQuit = quit(command);\n\n return wantToQuit;\n }",
"public static boolean isRunningCommand() {\n return runningCommand;\n }",
"boolean isShutdown();",
"public boolean stop() {\n\t\tboolean didStop = true;\n\t\ttry {\n\t\t\tmShell.sendCommand(\"STOP:\" + mStag + \":\" + mCommand + \":\");\n\t\t} catch (IOException ioEx) {\n\t\t\tdidStop = false;\n\t\t}\n\t\tif (didStop) {\n\t\t\tmShell.stopProcess(this);\n\t\t}\n\t\treturn didStop;\n\t}",
"protected boolean isFinished()\n\t{\n\t\treturn !Robot.oi.respoolWinch.get();\n\t}",
"int getExitStatus();",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n\t\treturn false;\n\t}",
"public boolean isCommand()\n {\n return aCommands.containsKey(this);\n }",
"protected boolean isFinished() {\n\t\treturn false;\r\n\t}",
"protected boolean isFinished()\n\t{\n\t\treturn false;\n\t}",
"protected boolean isFinished() {\n return Math.abs(pid.getError()) < 0.25;\n }",
"@Override\n public int getExitCode() {\n return 1;\n }",
"public static void main(String[] args) throws Exception {\n\n\n\n\n boolean success = false;\n }",
"private boolean processCommand(Command command) \n {\n boolean wantToQuit = false;\n\n CommandWord commandWord = command.getCommandWord();\n\n switch (commandWord) {\n case UNKNOWN:\n System.out.println(\"I don't know what you mean...\");\n break;\n\n case HELP:\n printHelp();\n break;\n\n case GO:\n goRoom(command);\n break;\n\n case QUIT:\n wantToQuit = quit(command);\n break;\n \n case LOOK:\n look();\n break;\n \n case RELAX:\n relax();\n break;\n \n case BACK:\n back();\n break;\n }\n return wantToQuit;\n }",
"private CommandResult executeExitCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, CommandResult.BLANK_DESCRIPTION);\n }",
"public static int quit() {\r\n int quit = JOptionPane.showConfirmDialog(null, \"Exit Program? \", null, JOptionPane.YES_NO_OPTION);\r\n if (quit != 0) {//Confirms Program Termination\r\n //do nothing \r\n } else\r\n System.exit(quit);\r\n return quit;\r\n }",
"protected boolean isFinished() {\r\n\treturn false;\r\n }",
"public boolean done() {\n\t\treturn pos>=program.length();\n }",
"@Override\n public int getExitCode() {\n return 0;\n }",
"protected boolean isCommandExecuting() {\n // long start = System.nanoTime();\n // boolean inCommand = false;\n // for (StackTraceElement e : Thread.currentThread().getStackTrace()) {\n // if (e.getMethodName().equals(\"handleCommand\")) {\n // inCommand = true;\n // break;\n // }\n // }\n // long now = System.nanoTime();\n // double elapsedMillis = (now - start) * 1e-6;\n // getLogger().info(\"handleCommand: \" + inCommand + \" elapsed ms: \" +\n // elapsedMillis);\n\n try {\n Field playerCommandState = Bukkit.getServer().getClass().getField(\"playerCommandState\");\n return playerCommandState.getBoolean(Bukkit.getServer());\n } catch (IllegalArgumentException | IllegalAccessException | NoSuchFieldException | SecurityException ex) {\n getLogger().severe(\"This plugin needs to be updated for the current server (EasyRider.isCommandExecuting()).\");\n return false;\n }\n }",
"public static boolean defaultExit() {\n\t\tif (blockContext.targetCircles[blockContext.exitFlag] == -1) {\n\t\t\treturn (true);\n\t\t} else {\n\t\t\treturn (false);\n\t\t}\n\t}",
"public static boolean isExitOnException() {\n return exitOnException; \n }",
"private boolean isComplete() {\n return redisCommand != null && redisCommand.getAction() != null && !\"\".equals(redisCommand.getAction().trim()) && redisCommand.getArgList().size() == argSize - 1;\n }",
"protected boolean isFinished() {\n\t\treturn pid.onTarget();\n\t}",
"public boolean closeOnExit() {\n return false;\n }",
"@Override\n\tpublic boolean isShutdown() {\n\t\treturn false;\n\t}",
"boolean hasExecution();",
"protected boolean isFinished() {\n //return !RobotMap.TOTE_SWITCH.get();\n \treturn false;\n }",
"public boolean foundUncleanShutdown()\n {\n return this.unclean;\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n return false;\r\n }",
"protected boolean isFinished() {\r\n\t \treturn (timeSinceInitialized() > .25) && (Math.abs(RobotMap.armarm_talon.getClosedLoopError()) < ARM_END_COMMAND_DIFFERENCE_VALUE); //TODO:\r\n\t }",
"public void exitTheProgram(){\n System.exit(0);\n }",
"@Override\npublic boolean hasCommands() {\n\treturn false;\n}",
"void exit( boolean enabled ) ;",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }",
"protected boolean isFinished() {\n return false;\n }"
] | [
"0.7491973",
"0.7464659",
"0.73367774",
"0.7111384",
"0.703174",
"0.70214415",
"0.6906493",
"0.6877848",
"0.6828523",
"0.6787101",
"0.6787101",
"0.6787101",
"0.67842823",
"0.67622787",
"0.67435783",
"0.6727922",
"0.6722395",
"0.6623472",
"0.66186917",
"0.6615549",
"0.6586232",
"0.65820014",
"0.65820014",
"0.65624136",
"0.65624136",
"0.65556324",
"0.65252763",
"0.650879",
"0.64736235",
"0.64597225",
"0.6451718",
"0.64508414",
"0.6384547",
"0.6367849",
"0.63071126",
"0.62957406",
"0.62324065",
"0.6178692",
"0.61532086",
"0.6131279",
"0.6072632",
"0.60687304",
"0.60268366",
"0.60180664",
"0.6003828",
"0.5983131",
"0.59720737",
"0.59680265",
"0.5921962",
"0.5898701",
"0.58801895",
"0.5878941",
"0.58386815",
"0.58386815",
"0.58386815",
"0.58386815",
"0.58386815",
"0.58386815",
"0.58320534",
"0.58271736",
"0.58238745",
"0.5818983",
"0.5800827",
"0.57977915",
"0.5797593",
"0.5784482",
"0.57795334",
"0.57776666",
"0.5771833",
"0.576164",
"0.574701",
"0.5745311",
"0.5738611",
"0.573441",
"0.57328147",
"0.57237333",
"0.56835157",
"0.5674073",
"0.5665377",
"0.565885",
"0.5658218",
"0.5658218",
"0.5652532",
"0.5650094",
"0.5640027",
"0.5639133",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467",
"0.5631467"
] | 0.71709377 | 7 |
return getSkill(15648, 1); //tank | protected Skill getNpcSuperiorBuff()
{
return getSkill(15649, 1); //warrior
// return getSkill(15650, 1); //wizzard
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getFishingSkill();",
"Skill getSkill(String name);",
"public Skills getChosenSkill();",
"public abstract SkillData skill();",
"public Skills chooseSkill();",
"String getSkills();",
"int getSkillId();",
"public Skills getSkillPrediction();",
"int getIndividualAttack();",
"String getSkill( String key, Integer index ) {\n return developer.skills.get( index );\n }",
"int getBonusHP();",
"public wbcadventure.Skill getSkill(int skillNumber){\n switch(skillNumber){\n case 0 : return skill1;\n case 1 : return skill2;\n case 2 : return skill3;\n case 3 : return skill4;\n }\n return null;\n }",
"int getArmor();",
"public String getSkill() {\n\t\treturn skill;\n\t}",
"public int getSkillRechargeTime(Skills currentSkill);",
"public void AddNewSkill()\n\t{\n\t\t\n\t}",
"public abstract int getBonus();",
"int getShirt();",
"int getAttackRoll();",
"private void getAI(){\n\n }",
"@Override\n public String getFunction() {\n return \"Gets all skills a player character has.\";\n }",
"@Override\n\tpublic Skills chooseSkill() {\n\t\t\n\t\treturn null;\n\t}",
"public int getSkillType() {\n\t\treturn 1;\n\t}",
"public int getExperience();",
"public Double getSkillNumber() {\n return skillNumber;\n }",
"int getMana();",
"public Skill(String skillName, double skillDamage, int skillManaCost, double skillHeal){\n name = skillName;\n damage = skillDamage;\n manaCost = skillManaCost;\n heal = skillHeal;\n//sets up skills to return as their name.\n }",
"public int giveDamage();",
"@Override\r\n\tpublic void useSkill() {\n\t\tthis.defense+=20;\r\n\t\tthis.maxHp+=(this.maxHp/2);\r\n\t\tthis.hp+=(this.hp/2);\r\n\t\tthis.skillActive = true;\r\n\t\tthis.skillLast = 2;\r\n\t}",
"int getBonusExp();",
"int getBonusExp();",
"public Skill(Player player){\n this.player = player;\n this.name = player.name;\n this.intellect = player.intellect;\n this.defense = player.defense;\n this.attack = player.attack;\n this.weapon = player.weapon;\n this.armor = player.armor;\n this.defense = player.defense;\n\n }",
"public short getSiegeWeaponDamage();",
"Skill getSkill(Long skillId) throws DbException;",
"public int getGold();",
"public int getAttack(){\r\n return attack;\r\n }",
"public static short getModFromSkill( CreatureTemplate ctr, String skillName )\n {\n\n // Charisma based skills\n if( \"Bluff\".equals( skillName ) || \"Diplomacy\".equals( skillName ) || \"Intimidate\".equals( skillName ) || \"Streetwise\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.CHA ) - 10) / 2);\n }\n\n // Constitution based skills\n if( \"Endurance\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.CON ) - 10) / 2);\n }\n\n // Dex based skills\n if( \"Acrobatics\".equals( skillName ) || \"Stealth\".equals( skillName ) || \"Thievery\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.DEX ) - 10) / 2);\n }\n\n // Int based skills\n if( \"Arcana\".equals( skillName ) || \"History\".equals( skillName ) || \"Religion\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.INT ) - 10) / 2);\n }\n\n // STR based skills\n if( \"Athletics\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.STR ) - 10) / 2);\n }\n // WIS based skills\n if( \"Dungeoneering\".equals( skillName ) || \"Heal\".equals( skillName ) || \"Insight\".equals( skillName ) || \"Nature\".equals( skillName )\n || \"Perception\".equals( skillName ) )\n {\n return (short)((ctr.getAbilityScore( D20Rules.Ability.WIS ) - 10) / 2);\n }\n\n return -10; // Skill not found in list\n }",
"AttackResult userAttack();",
"AttackResult randomAttack();",
"void updateSkill(Skill skill);",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getDefense();",
"int getResultMonster();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"int getDamage();",
"protected Entity findPlayerToAttack() {\n/* 339 */ double var1 = 8.0D;\n/* 340 */ return getIsSummoned() ? null : this.field_70170_p.func_72890_a(this, var1);\n/* */ }",
"public abstract double experience();",
"@Override\n public int damage(){\n int damage = 0;\n Random rand = new Random();\n int x = rand.nextInt(20) + 1;\n if (x == 1)\n damage = 50;\n return damage; \n }",
"public skills(){\n\t\tname = \"tempName\";\n\t\tmanaCost =0;\n\t\tskillDmg = 0;\n\t\tcritFactor = 0;\n\t\tcritChance = 0;\n\t\tnoOfTargets = 1;\n\t\thitChance = 0;\n\t\tmyAttribute = null;\n\t\t\n\t\t//instantiates the original values, prob will have no need\n\t\torigSkillDmg = 0;\n\t\torigCritFac = 0;\n\t\torigCritChan = 0;\n\t\torigHitChan =0;\n\t\t\n\t\t//stores the current buffs on the person\n\t\tcurrBuff = null;\n\t}",
"public int getToughness();",
"int getQuestID();",
"int getQuestID();",
"int getQuestID();",
"int getQuestID();",
"public int getEnchantmentLevel() {\n/* 48 */ return this.enchantmentLevel;\n/* */ }",
"@Override\n public int attack(){\n //create an int list to store the numbers\n int[] arr = {zero, six, ten};\n //get a random index of the list\n int index = getRandom().nextInt(arr.length);\n //return the number on that random index\n int damageVal = arr[index];\n return damageVal;\n }",
"@Test\n public void testUpgradeSkill_01() {\n System.out.println(\"upgradeSkill\");\n \n// Skill s = mock(Skill.class);\n// when(s.getName()).thenReturn(\"Java\");\n// when(s.getType()).thenReturn(\"Technical\");\n// when(s.getCost()).thenReturn(2);\n// when(s.getLevel()).thenReturn(4);\n// when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n Skill s = new Skill(\"Java\",\"Technical\",2,4,Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==5);\n }",
"public Ability getConfigurationSkill() {\n\n\n if (frameworkAbility.hasAdvantage(advantageCosmic.advantageName) || frameworkAbility.hasAdvantage(advantageNoSkillRollRequired.advantageName)) {\n return null;\n } else {\n ParameterList pl = frameworkAbility.getPowerParameterList();\n Ability skill = null;\n\n Object o = pl.getParameterValue(\"Skill\");\n if (o instanceof AbilityAlias) {\n skill = ((AbilityAlias) o).getAliasReferent();\n } else if (o instanceof Ability) {\n skill = (Ability) o;\n }\n\n return skill;\n }\n }",
"@Override\n\tpublic double getAttack() {\n return attack;\n\t}",
"public abstract int getRandomDamage();",
"int getIndividualDefense();",
"public int getHealth();",
"int getRightMonster();",
"int getAbilityValue(Unit source);",
"int getMaxHP();",
"int getMaxHP();",
"int getMaxHP();",
"int getMaxHP();",
"int getMaxHP();",
"int getMaxHP();",
"int getMaxHP();",
"public int getGov();",
"static public int getHobgoblinArmor(){\n armor = rand.nextInt(4) + 2;\n return armor;\n }",
"public int getHighestCombatSkill() {\r\n int id = 0;\r\n int last = 0;\r\n for (int i = 0; i < 5; i++) {\r\n if (staticLevels[i] > last) {\r\n last = staticLevels[i];\r\n id = i;\r\n }\r\n }\r\n return id;\r\n }",
"int getHealth();",
"public void spellLevelUp() {\n \n }",
"public int monsterAttack(){\n Random ran = new Random();\n return ran.nextInt(4);\n }",
"@Override\n\tpublic ArrayList<Unit> useSkill() {\n\t\tArrayList<Unit> canExit = new ArrayList<Unit>();\n\t\tGameBoard gameBoard = GameController.gameBoard;\n\t\tfor (int i = 0; i < gameBoard.getWidth(); i++) {\n\t\t\tfor (int j = 0; j < gameBoard.getHeight(); j++) {\n\t\t\t\tif (gameBoard.getUnit(i, j) instanceof Defender) {\n\t\t\t\t\tdef = (Defender) gameBoard.getUnit(i, j);\n\t\t\t\t\tif (def.getCaptureUnit() == null) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (def.getCaptureUnit() instanceof Silva) {\n\t\t\t\t\t\tfor (Unit u: gameBoard.getAdjacentUnit(i, j)) {\n\t\t\t\t\t\t\tif (u instanceof Empty) {\n\t\t\t\t\t\t\t\tcanExit.add(u);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\treturn canExit;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn canExit;\n\t}",
"@Test\r\n\tvoid testGetPlayerSkillsShouldPass() {\r\n\t\tController ctrl = new Controller();\r\n\t\t\r\n\t\tint sru = 1000;\r\n\t\t\r\n\t\t//Passing\r\n\t\tint standard = ctrl.getSkillRatingByName(sru, \"Standard\");\r\n\t\tint spin= ctrl.getSkillRatingByName(sru, \"Spin\");\r\n\t\tint pop = ctrl.getSkillRatingByName(sru, \"Pop\");\r\n\t\t\r\n\t\t//Tackling\r\n\t\tint front = ctrl.getSkillRatingByName(sru, \"Front\");\r\n\t\tint rear = ctrl.getSkillRatingByName(sru, \"Rear\");\r\n\t\tint side = ctrl.getSkillRatingByName(sru, \"Side\");\r\n\t\tint scrabble = ctrl.getSkillRatingByName(sru, \"Scrabble\");\r\n\t\t\r\n\t\t//Kicking\r\n\t\tint drop = ctrl.getSkillRatingByName(sru, \"Drop\");\r\n\t\tint punt = ctrl.getSkillRatingByName(sru, \"Punt\");\r\n\t\tint grubber = ctrl.getSkillRatingByName(sru, \"Grubber\");\r\n\t\tint goal = ctrl.getSkillRatingByName(sru, \"Goal\");\r\n\t\t\r\n\t\tboolean success = false;\r\n\t\t\r\n\t\tif(standard == 1 && spin == 1 && pop == 1 && front == 1 && rear == 1 && side == 1 \r\n\t\t\t\t&& scrabble == 1 && drop == 1 && punt == 1 && grubber == 1 && goal == 1) {\r\n\t\t\tsuccess = true;\r\n\t\t}\r\n\t\t\r\n\t\tassertTrue(success);\r\n\t}",
"public int getSuit(){\n return suit;\n }",
"int getCurrentHP();",
"public int getAtk()\r\n {\r\n return attack;\r\n }",
"public int getAttack() { return this.attack; }",
"private int lightAttack() {\n return attack(9, 0);\n }",
"public int rollAttack()\n {\n Random random2 = new Random();\n int atk = random2.nextInt(20) +1 + attackBonus;\n return atk;\n }",
"int getRent(Player owner, int tenantDiceRoll);",
"public com.transerainc.aha.gen.agent.SkillDocument.Skill getSkill()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.transerainc.aha.gen.agent.SkillDocument.Skill target = null;\n target = (com.transerainc.aha.gen.agent.SkillDocument.Skill)get_store().find_element_user(SKILL$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"@Test\n public void testUpgradeSkill_04() {\n System.out.println(\"upgradeSkill\");\n \n Skill s = mock(Skill.class);\n when(s.getName()).thenReturn(\"Java\");\n when(s.getType()).thenReturn(\"Technical\");\n when(s.getCost()).thenReturn(2);\n when(s.getLevel()).thenReturn(10);\n when(s.getCostFormula()).thenReturn(Skill.PLUS_2);\n \n SkillsList instance = new SkillsList();\n instance.add(s);\n instance.upgradeSkill(\"Java\");\n int result = instance.get(\"Java\").getLevel();\n assertTrue(result==10);\n }",
"public int getInstabilityScore();",
"@Override\n\tpublic Skill getSkill(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t//now retrieve/read from database using the primary key\n\t\tSkill theSkill = currentSession.get(Skill.class, theId);\n\t\t\n\t\treturn theSkill;\n\t}",
"public void attack() {\n\n }",
"public int getMetadata(int damage) {\n/* 50 */ return damage;\n/* */ }",
"void giveReward(BPlayer bPlayer, int tier, int status);"
] | [
"0.75478244",
"0.75434244",
"0.7443185",
"0.7247855",
"0.7205357",
"0.71797436",
"0.699831",
"0.69461954",
"0.67777",
"0.6715842",
"0.6699433",
"0.6633383",
"0.654483",
"0.6481332",
"0.6464162",
"0.6370301",
"0.6342065",
"0.63406694",
"0.6323099",
"0.6289658",
"0.6274003",
"0.6263193",
"0.62482417",
"0.6245238",
"0.62352335",
"0.6233758",
"0.6217637",
"0.6213941",
"0.6189746",
"0.61760694",
"0.61760694",
"0.61722356",
"0.61713165",
"0.61652505",
"0.616193",
"0.61466986",
"0.6130921",
"0.6118913",
"0.6111556",
"0.6088318",
"0.6071825",
"0.6071825",
"0.6071825",
"0.6071825",
"0.6071825",
"0.6071825",
"0.6022602",
"0.6013133",
"0.6013133",
"0.6013133",
"0.6013133",
"0.6013133",
"0.60128087",
"0.6010726",
"0.60073096",
"0.59846586",
"0.5972822",
"0.59719664",
"0.59719664",
"0.59719664",
"0.59719664",
"0.5963224",
"0.59592736",
"0.5958092",
"0.5956606",
"0.59506583",
"0.5944529",
"0.59436697",
"0.59409714",
"0.5936269",
"0.5936065",
"0.5934054",
"0.5934054",
"0.5934054",
"0.5934054",
"0.5934054",
"0.5934054",
"0.5934054",
"0.5929335",
"0.5928019",
"0.5922284",
"0.59205496",
"0.591044",
"0.59095657",
"0.59034276",
"0.5899701",
"0.5897353",
"0.58954215",
"0.58950704",
"0.58907384",
"0.5882737",
"0.5874425",
"0.58715314",
"0.58652985",
"0.5863835",
"0.58623886",
"0.5861002",
"0.58607435",
"0.5860301",
"0.58560145"
] | 0.66405934 | 11 |
Create a variables to pass to the graphql query | private static String createGraphqlAddTemplate(InputStream iStream, String issuerSector) throws IOException {
ObjectNode variables = new ObjectMapper().createObjectNode();
// add a nested node object to our current node
ObjectNode input = variables.putObject("issuerSector");
input.put(ISSUER_SECTOR_FIELD,issuerSector);
// Now parse the graphql file to a request payload string
String graphqlPayload = GraphqlTemplate.parseGraphql(iStream, variables);
return graphqlPayload;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Variables createVariables();",
"Graph callConstructQuery(String name, Map<String, String> params);",
"@SuppressWarnings(\"boxing\")\n @Override\n protected String getCustomQueryStringVariables() {\n String unitsParam = \"\";\n if (radiusUnitOverride != null) {\n unitsParam = String.format(\"&spatialUnits=%s\", SharpEnum.value(radiusUnitOverride));\n }\n return String.format(Constants.getDefaultLocale(), \"queryShape=%s&spatialRelation=%s&spatialField=%s&distErrPrc=%.5f%s\", UrlUtils.escapeDataString(queryShape), SharpEnum.value(spatialRelation), spatialFieldName,\n distanceErrorPercentage, unitsParam);\n }",
"private void generateQuery() {\n\t\tString edgeType = \"\";\n\n\t\tif (isUnionTraversal || isTraversal || isWhereTraversal) {\n\t\t\tString previousNode = prevsNode;\n\t\t\tif (isUnionTraversal) {\n\t\t\t\tpreviousNode = unionMap.get(unionKey);\n\t\t\t\tisUnionTraversal = false;\n\t\t\t}\n\n\t\t\tEdgeRuleQuery edgeRuleQuery = new EdgeRuleQuery.Builder(previousNode, currentNode).build();\n\t\t\tEdgeRule edgeRule = null;\n\n\t\t\ttry {\n\t\t\t\tedgeRule = edgeRules.getRule(edgeRuleQuery);\n\t\t\t} catch (EdgeRuleNotFoundException | AmbiguousRuleChoiceException e) {\n\t\t\t}\n\n\t\t\tif (edgeRule == null) {\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t} else if (\"none\".equalsIgnoreCase(edgeRule.getContains())){\n\t\t\t\tedgeType = \"EdgeType.COUSIN\";\n\t\t\t}else {\n\t\t\t\tedgeType = \"EdgeType.TREE\";\n\t\t\t}\n\n\t\t\tquery += \".createEdgeTraversal(\" + edgeType + \", '\" + previousNode + \"','\" + currentNode + \"')\";\n\n\t\t}\n\n\t\telse\n\t\t\tquery += \".getVerticesByProperty('aai-node-type', '\" + currentNode + \"')\";\n\t}",
"GraphQLResolverContext getContext();",
"public static RuntimeVariablesExpression runtimeVariables(ParameterExpression[] arguments) { throw Extensions.todo(); }",
"public abstract String createQuery();",
"public void addVarToJoiningVariables( String var ) ;",
"@Override\n public CycList<Object> queryVariables(final CycList<CycVariable> variables,\n final CycList<Object> query,\n final CycObject mt,\n final InferenceParameters queryProperties)\n throws CycConnectionException, com.cyc.base.exception.CycApiException {\n return queryVariablesLow(variables, query, mt, queryProperties, 0);\n }",
"protected String getComposedQuery() {\n\n\t\tif (this.variableList.isEmpty()) {\n\t\t\tthrow new IllegalArgumentException(\"Can't compose a query with no \" +\n\t\t\t\"select variables! Add some variables using addSelectVariable()!\");\n\t\t}\n\t\t// variables that are used in the SPARQL query\n\t\tString variables = \"\";\n\t\t// SPARQL query\n\t\tString queryString = \"\";\n\n\t\t// append variables \n\t\tfor(String var : this.variableList ) {\n\t\t\tvariables+=\" \"+var;\n\t\t}\t\n\n\t\t//cheesy mechanism to allow UNION statements to parse correctly\n\t\tString startBracket = \" {\";\n\t\tString endBracket = \"} \";\n\t\tfor (String queryTriplet : queryTriplets) {\n\t\t\tif (queryTriplet.contains(\"UNION\")) {\n\t\t\t\tstartBracket = \" {{\";\n\t\t\t\tendBracket = \" }}\";\n\t\t\t}\n\t\t}\n\n\t\t//add prefixes into the query statement if they have been added.\n\t\tif (prefixMap.keySet().isEmpty() == false ) {\n\t\t\tfor (String prefix : prefixMap.keySet()) {\n\t\t\t\tqueryString += \"PREFIX \" + prefix + \": \" + \n\t\t\t\tprefixMap.get(prefix) + \" \";\n\t\t\t}\n\t\t}\n\n\t\t// make sure we have some variables\n\t\tif(variables != \"\")\n\t\t\tqueryString += \"select DISTINCT\" + variables + startBracket;\n\n\t\t// wrap up query string from queryTripletList\n\t\tfor (String queryTriplet : queryTriplets) {\n\t\t\tqueryString += queryTriplet;\t\n\t\t\tif (queryTriplet.contains(\"UNION\") == false && \n\t\t\t\t\tqueryTriplet.contains(\"FILTER\") == false)\n\t\t\t\tqueryString += \" . \";\n\n\t\t}\n\n\t\tqueryString += endBracket;\n\t\tif(this.neurolexData)\n\t\t\tqueryString +=\"ORDER BY $name \"+\"LIMIT \"+getCurrentLimit()+\" OFFSET \"+getCurrentOffset();\n\t\tif(this.comesFromBAMS)\n\t\t\tqueryString += \"LIMIT \"+getCurrentLimit()+\" OFFSET \"+getCurrentOffset();\n\n\t\tSystem.out.println(queryString);\n\t\treturn queryString;\n\t}",
"public String parseVariable(String statement) {\r\n if (Asserts.isNullString(statement)) {\r\n return statement;\r\n }\r\n String[] strs = statement.split(SystemConfiguration.getInstances().getSqlSeparator());\r\n StringBuilder sb = new StringBuilder();\r\n for (int i = 0; i < strs.length; i++) {\r\n String str = strs[i];\r\n if (str.trim().length() == 0) {\r\n continue;\r\n }\r\n str = strs[i];\r\n if (str.contains(FlinkSQLConstant.FRAGMENTS)) {\r\n String[] strs2 = str.split(FlinkSQLConstant.FRAGMENTS);\r\n if (strs2.length >= 2) {\r\n if (strs2[0].length() == 0) {\r\n throw new ExpressionParserException(\"Illegal variable name.\");\r\n }\r\n String valueString = str.substring(str.indexOf(FlinkSQLConstant.FRAGMENTS) + 2);\r\n this.registerSqlFragment(strs2[0], replaceVariable(valueString));\r\n } else {\r\n throw new ExpressionParserException(\"Illegal variable definition.\");\r\n }\r\n } else {\r\n sb.append(replaceVariable(str));\r\n }\r\n }\r\n return sb.toString();\r\n }",
"private Node registerVariables(final Node n, final List<Node> variables) {\n if (n.isVariable() && !variables.contains(n)) {\n variables.add(n);\n }\n return n;\n }",
"boolean stageQueryVariables(Object input) throws ValidationFailedException;",
"DynamicVariable createDynamicVariable();",
"public static Map<String, Object> get (Request request, Response response) {\n JsonNode varsJson = null;\n try {\n varsJson = mapper.readTree(request.queryParams(\"variables\"));\n } catch (IOException e) {\n LOG.warn(\"Error processing variables\", e);\n halt(400, \"Malformed JSON\");\n }\n String queryJson = request.queryParams(\"query\");\n return doQuery(varsJson, queryJson, response);\n }",
"private static void createVars(JsProgram program, JsBlock block,\n Collection<JsStringLiteral> toCreate, Map<JsStringLiteral, JsName> names) {\n if (toCreate.size() > 0) {\n // Create the pool of variable names.\n JsVars vars = new JsVars(program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string pool\"));\n SourceInfo sourceInfo = program.createSourceInfoSynthetic(\n JsStringInterner.class, \"Interned string assignment\");\n for (JsStringLiteral literal : toCreate) {\n JsVar var = new JsVar(sourceInfo, names.get(literal));\n var.setInitExpr(literal);\n vars.add(var);\n }\n block.getStatements().add(0, vars);\n }\n }",
"private void initVariables(){\n int counter = 1;\n for (int vCount = 0; vCount < vertexCount; vCount++){\n for (int pCount = 0; pCount < positionCount; pCount++){\n variables[vCount][pCount] = counter++;\n }\n }\n }",
"CampusSearchQuery generateQuery();",
"String getDeclareCursorVarSql(String sql, DataSet dataSet, String key,\r\n FieldsRepository fieldsRepository, Set<String> variables);",
"String getVariable();",
"public Map<String, Object> getVariables();",
"Variable(String _var) {\n this._var = _var;\n }",
"VariableExp createVariableExp();",
"Variable createVariable();",
"Variable createVariable();",
"public Var(String var) {\r\n this.variable = var;\r\n }",
"public void construct(String con) {\n\tvariables.append(\" \").append(con).append(\" \");\n }",
"Node getVariable();",
"public String getVariable();",
"private String buildQuery(String ... sql) {\n\t\tfinal StringBuffer sb = new StringBuffer();\n\t\t\n\t\tfor (String s : sql) {\n\t\t\tsb.append(ParsingUtil.QUERY + \" \" + s + \"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString(); \n\t}",
"public static void main(String args[]) {\n int variableEntera = 10;\n System.out.println(variableEntera);\n //Cambio de valor de una Variable\n variableEntera = 5;\n System.out.println(variableEntera);\n \n String variableCadena = \"Saludos\";\n System.out.println(variableCadena);\n \n variableCadena = \"Adios\";\n System.out.println(variableCadena);\n \n //var hace inferencias de tipos en Java\n \n var variableEntera2 = 15;\n System.out.println(variableEntera2);\n \n var variableCadena2 = \"Nueva Cadena\";\n System.out.println(\"miVariableCadena2 = \" + variableCadena2);\n \n }",
"void setupVariables(IVariableFactory factory);",
"QueryArgs getQueryArgs();",
"@Override\n\tpublic List<Shipment> generateVariables(Connection connection, ResultSet rawData)\n\t{\n\t\treturn null;\n\t}",
"public static RuntimeVariablesExpression runtimeVariables(Iterable<ParameterExpression> expressions) { throw Extensions.todo(); }",
"public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }",
"public VariableNode(String name) {\n\t\tthis.name = name;\n\t}",
"String buildQueryResultXml(QueryContextTo queryContextTo);",
"private void buildUserParams(GraphUser user) {\n\t\tif (user != null) {\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject jsonObject = new JSONObject();\r\n\t\t\t\tjsonObject.put(\"account\", user.getId());\r\n\t\t\t\tjsonObject.put(\"headUrl\", \"123\");\r\n\t\t\t\tjsonObject.put(\"nick\", user.getName());\r\n\t\t\t\tmClient.putRequestParam(\"thirdInfo\", jsonObject.toString());\r\n\t\t\t} catch (JSONException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"String getAllTitlesDataQuery(String graph);",
"@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }",
"private static void serializeTrackingDataVariables(final StringBuilder stringBuilder,\n final List<TrackingDataVar> variables) {\n // open JSON object\n stringBuilder.append(\"{\\\"vars\\\":{\");\n\n final Iterator<TrackingDataVar> varsIter = variables.iterator();\n while (varsIter.hasNext()) {\n\n final TrackingDataVar var = varsIter.next();\n\n // double quotes must be escaped!\n stringBuilder.append(\"\\\"\").append(var.getName()).append(\"\\\":\\\"\")\n .append(StringEscapeUtils.escapeJavaScript(var.getData())).append(\"\\\"\");\n\n if (varsIter.hasNext()) {\n stringBuilder.append(\",\");\n }\n }\n\n // close JSON object\n stringBuilder.append(\"}\");\n\n }",
"public String createHealthyQuery(String userQuery, String searchCategory, String[] healthKeys) {\n String space = \" \";\n String healthyQuery = userQuery + space + searchCategory;\n for (String key: healthKeys) {\n healthyQuery = healthyQuery + space + key;\n }\n return healthyQuery;\n }",
"private Map<String, Object> buildResourcesParameters() {\n Map<String, Object> parameters = new HashMap<String, Object>();\n \n parameters.put(\"portalSiteSelectedNodes\", getSelectedResources(StagingService.SITES_PORTAL_PATH));\n parameters.put(\"groupSiteSelectedNodes\", getSelectedResources(StagingService.SITES_GROUP_PATH));\n parameters.put(\"userSiteSelectedNodes\", getSelectedResources(StagingService.SITES_USER_PATH));\n parameters.put(\"siteContentSelectedNodes\", getSelectedResources(StagingService.CONTENT_SITES_PATH));\n parameters.put(\"applicationCLVTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_CLV_PATH));\n parameters.put(\"applicationSearchTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_APPLICATION_SEARCH_PATH));\n parameters.put(\"documentTypeTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_DOCUMENT_TYPE_PATH));\n parameters.put(\"metadataTemplatesSelectedNodes\", getSelectedResources(StagingService.ECM_TEMPLATES_METADATA_PATH));\n parameters.put(\"taxonomySelectedNodes\", getSelectedResources(StagingService.ECM_TAXONOMY_PATH));\n parameters.put(\"querySelectedNodes\", getSelectedResources(StagingService.ECM_QUERY_PATH));\n parameters.put(\"driveSelectedNodes\", getSelectedResources(StagingService.ECM_DRIVE_PATH));\n parameters.put(\"scriptSelectedNodes\", getSelectedResources(StagingService.ECM_SCRIPT_PATH));\n parameters.put(\"actionNodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_ACTION_PATH));\n parameters.put(\"nodeTypeSelectedNodes\", getSelectedResources(StagingService.ECM_NODETYPE_PATH));\n parameters.put(\"registrySelectedNodes\", getSelectedResources(StagingService.REGISTRY_PATH));\n parameters.put(\"viewTemplateSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_TEMPLATES_PATH));\n parameters.put(\"viewConfigurationSelectedNodes\", getSelectedResources(StagingService.ECM_VIEW_CONFIGURATION_PATH));\n parameters.put(\"userSelectedNodes\", getSelectedResources(StagingService.USERS_PATH));\n parameters.put(\"groupSelectedNodes\", getSelectedResources(StagingService.GROUPS_PATH));\n parameters.put(\"roleSelectedNodes\", getSelectedResources(StagingService.ROLE_PATH));\n \n parameters.put(\"selectedResources\", selectedResources);\n parameters.put(\"selectedOptions\", selectedOptions);\n \n return parameters;\n }",
"public Query createQuery(String hql, Object... values) {\n Assert.hasText(hql);\n Query query = getSession().createQuery(hql);\n for (int i = 0; i < values.length; i++) {\n query.setParameter(i, values[i]);\n }\n return query;\n }",
"public String[] camposDivididos3(String[] vars){\r\nString[] args=vars;\r\nreturn args;\r\n}",
"public abstract List createQuery(String query);",
"private QueryResults query(String queryName, Object[] args) {\n Command command = CommandFactory.newQuery(\"persons\", queryName, args);\n String queryStr = template.requestBody(\"direct:marshall\", command, String.class);\n\n String json = template.requestBody(\"direct:test-session\", queryStr, String.class);\n ExecutionResults res = (ExecutionResults) template.requestBody(\"direct:unmarshall\", json);\n return (QueryResults) res.getValue(\"persons\");\n }",
"QuerySql addParamer(Object... paramers);",
"@Override String opStr() { return \"var\"; }",
"public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }",
"@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}",
"private Tuple<String,String> extractQueryAndQueryExecution(String query){\n\t\tString[] elements = query.split(\"--\");\n\t\treturn new Tuple<String,String>(elements[0].trim(), elements[1].trim());\n\t}",
"private String buildParams(){\n HashMap<String,String> items = new HashMap<>();\n if(paramValid(param1name,param1value))\n items.put(param1name,param1value);\n if(paramValid(param2name,param2value))\n items.put(param2name,param2value);\n if(paramValid(param3name,param3value))\n items.put(param3name,param3value);\n return JsonOutput.toJson(items);\n }",
"AliasVariable createAliasVariable();",
"ZZW queryByHql(String hql,Map<String,Object> param);",
"HumidityQuery createHumidityQuery();",
"@Override\n public void fillVertexInfo(String[] args) {\n this.age = Integer.valueOf(args[0]);\n this.sex = args[1];\n }",
"private String getCreateQuery() {\n String query = null;\n try {\n query = crudQueryComposer.composeCreateQuery();\n } catch (MissingPropertyException e) {\n logger.error(e);\n }\n return query;\n }",
"public interface GoodreadsRecRepository extends GraphRepository<GoodreadsRecRelationship> {\n\n @Query(\"MATCH (user:User) - [grec:GR_REC {friendGoodreadsId:{0}}]-(book: Book) return grec\")\n public List<GoodreadsRecRelationship> getGoodreadsRecById(Integer goodreadsId);\n\n}",
"@Override\r\n public void init(String args) {\n String[] arguments = args.split(\" \");\r\n arg = Integer.parseInt(arguments[0]);\r\n //If there is more than one argument then set var to the \r\n //second argument, which is the variable name\r\n if(arguments.length > 1){\r\n this.var = arguments[1];\r\n }\r\n }",
"public static void main (String[] args) {\n EntityQuery query = new EntityQuery();\n Harvestable res = new OaiPmhResource();\n query.setFilter(\"test\", res);\n query.setAcl(\"diku\");\n query.setStartsWith(\"cf\",\"name\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"a\"));\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"x\"));\n\n query = new EntityQuery();\n query.setQuery(\"(usedBy=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"b\"));\n query.setQuery(\"usedBy=*library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"c\"));\n query.setQuery(\"(=library\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"d\"));\n query.setQuery(\"usedBy=\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"e\"));\n query.setQuery(\"(usedBy!=library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"f\"));\n query.setQuery(\"(usedBy==library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"g\"));\n query.setQuery(\"(usedBy===library)\");\n System.out.println(query.asUrlParameters());\n System.out.println(query.asWhereClause(\"h\"));\n }",
"public Sql appendInsert(String... variables) {\n\n formatted = false;\n \n String separator = \" (\";\n for (String variable : variables) {\n appendBuffer.append(separator);\n appendBuffer.append(variable);\n separator = \", \";\n }\n separator = \") values (:\";\n for (String variable : variables) {\n appendBuffer.append(separator);\n appendBuffer.append(variable);\n separator = \", :\";\n }\n appendBuffer.append(\") \");\n \n return this;\n }",
"public Variable(String name){\n this.name = name;\n }",
"SearchResponse query(SearchRequest request, Map<SearchParam, String> params);",
"public interface VariableExpander {\n /**\n * Return the input string with any variables replaced by their\n * corresponding value. If there are no variables in the string,\n * then the input parameter is returned unaltered.\n */\n public String expand(String param);\n }",
"public void leerVariable(String nombre, Dato variable);",
"public interface GremlinScriptLiteral {\n\n /**\n * Generate the insert query from source (Vertex, Edge or Graph).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return insert script\n */\n <T> List<String> generateInsertScript(GremlinSource<T> source);\n\n /**\n * Generate the deleteAll query from source (Vertex, Edge or Graph).\n *\n * @return deleteAll script\n */\n List<String> generateDeleteAllScript();\n\n /**\n * Generate the deleteAll By Domain Class query from source (Vertex, Edge or Graph).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return deleteAllByClass script\n */\n <T> List<String> generateDeleteAllByClassScript(GremlinSource<T> source);\n\n /**\n * Generate the findById query from source (Vertex, Edge).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return findById script script\n */\n <T> List<String> generateFindByIdScript(GremlinSource<T> source);\n\n /**\n * Generate the update query from source (Vertex, Edge or Graph).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return update script\n */\n <T> List<String> generateUpdateScript(GremlinSource<T> source);\n\n /**\n * Generate the findAll query from source (Vertex, Edge or Graph).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return findAll script\n */\n <T> List<String> generateFindAllScript(GremlinSource<T> source);\n\n /**\n * Generate the DeleteById query from source (Vertex, Edge or Graph).\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return deleteById script\n */\n <T> List<String> generateDeleteByIdScript(GremlinSource<T> source);\n\n /**\n * Generate the Count query from Source (Vertex, Edge)\n *\n * @param <T> The type of domain.\n * @param source the gremlin source\n * @return count query\n */\n <T> List<String> generateCountScript(GremlinSource<T> source);\n}",
"public VariableToken(String text) {\n super(text);\n }",
"public void setSelectClauseVarList( List<String> listVars ) ;",
"public static int vars(int varCount, Node n) {\n for (int i = 0; i < n.tokens.size(); i++) {\n if (n.tokens.get(i).tokenID == Token.TokenID.IDENT_tk) {\n if (varCount > 0) {\n int k = find(n.tokens.get(i).instanc);\n if (k == -1) {\n //do nothing\n } else {\n support.error(\"This variable has already been defined: \" + n.tokens.get(i).instanc);\n }\n }\n push(n.tokens.get(i));\n varCount++;\n }\n\n }\n if (n.child1 != null) {\n varCount = +vars(varCount, n.child1);\n }\n\n return varCount;\n }",
"public QueryBuilder()\n {\n\tlabel = null;\n\tqueryCondition = null;\n\tselectionLimiter = null;\n\tselectionSorter = null;\n\n\tvariablesMap = new HashMap<String, Expression>();\n\tselectionLabelsReferencedByStats = new HashSet<String>();\n }",
"public SemanticWorkflow addQueryGraph(String q){\n SPARQLProcess sp = new SPARQLProcess(q);\n sp.setResult(GRAPH);\n return add(sp);\n }",
"public void addVariable(Variable var1, Variable var2){\r\n \tvar1.addVariable(var2);\r\n }",
"private Triple registerBGPTriple(final Triple t, final List<Node> variables) {\n registerVariables(t.getSubject(), variables);\n registerVariables(t.getPredicate(), variables);\n registerVariables(t.getObject(), variables);\n return t;\n }",
"public interface SqlQueries {\n\n /**\n * The constant QUOTATION.\n */\n String QUOTATION = \"'\";\n\n /**\n * The constant SELECT_ALL_CARS.\n */\n String SELECT_ALL_CARS = \"SELECT * FROM Car\";\n\n /**\n * The constant SELECT_ALL_USERS.\n */\n String SELECT_ALL_USERS = \"SELECT * FROM Users\";\n\n /**\n * The constant FIND_CAR_BY_ID.\n */\n String FIND_CAR_BY_ID = \"Select * from Car Where id = \";\n\n /**\n * The constant CREATE_A_CAR.\n */\n String CREATE_A_CAR = \"insert into car values({0},{1}, {2}, {3}, {4})\";\n\n}",
"final public void define() throws ParseException {\n String name=\"\";\n Long value;\n jj_consume_token(DEFINE);\n jj_consume_token(VARIABLE);\n name = token.image;\n jj_consume_token(NUMERO);\n try {\n value = Long.parseLong(token.image);\n }\n catch(Exception e) {\n {if (true) throw new ParseException(\"Una variable solo puede guardar numeros\");}\n }\n userVals.put(name, value);\n }",
"private String resolveVars(String s, Module m, Call c)\n {\n HashMap<String,String> vars = getVarValues(m,c);\n // System.out.println(vars);\n s = groundVars(s, vars, c);\n return s;\n }",
"String buildInsertQuery(String... args);",
"public List<RDFNode> executeQuery(String wherePart) {\n\t\tQueryExecution qexec = returnQueryExecObject(\"SELECT ?var WHERE \" + wherePart);\n\t\tList<RDFNode> result = new ArrayList<RDFNode>();\n\t\ttry {\n\t\t\tResultSet rs = qexec.execSelect();\n\n\t\t\twhile (rs.hasNext()) {\n\t\t\t\tQuerySolution soln = rs.nextSolution();\n\t\t\t\tresult.add(soln.get(\"?var\"));\n\t\t\t}\n\t\t} finally {\n\t\t\tqexec.close();\n\t\t}\n\t\treturn result;\n\t}",
"public Variable(String name) {\r\n\tthis.name = name;\r\n }",
"public void addVariable(String varName)\n\t{\n\t\tget(VARSTRATEGY).addVariable(this, varName);\n\t}",
"private void updateVars()\n {\n\n }",
"public Query(Class c, String variable, String expression) {\r\n\t\t_product = c;\r\n\t\t_variable = variable;\r\n\t\t_expression = expression;\r\n\r\n\t}",
"TSearchQuery prepareSearchQuery(SearchQueryDefinitionAPI searchQueryDefinition);",
"private void extractVariables(String codeString) {\n // Remove array initializations\n codeString = arrayInitializer.matcher(codeString).replaceAll(\"\");\n \n // Merge multi declarations and instantiations\n codeString = codeString.replace(\" = \", \"=\").replace(\" , \", \",\");\n \n // Keep only declaration and initialization part\n String[] tmp = codeString.split(\" \");\n if (tmp.length > 1) {\n codeString = tmp[tmp.length - 2];\n \n // Split per declaration\n String[] declarations = codeString.split(\",\");\n for (String declaration : declarations) {\n int endIndex = declaration.indexOf('=');\n if (endIndex != -1) {\n declaration = declaration.substring(0, endIndex);\n }\n declaration = declaration.trim();\n \n // Check that we did not accidentally extracted a keyword, parenthesis or other language elements.\n if (!KEYWORDS.contains(declaration)) {\n addResult(new GlobalVariable(currentFile, declaration));\n }\n }\n }\n }",
"String getInsertDataLiteralQuery(String graph, String subject, String predicate, String object, String datatype);",
"String getAskQuery(String... args);",
"private void buildPostParam(Context context, List<ThirdPartFriend> friends, GraphUser user) {\n\t\tPhotoTalkParams.buildBasicParams(context, mClient);\r\n\t\tbuildFriendParams(friends);\r\n\t\tbuildUserParams(user);\r\n\t\tbuildOtherParams();\r\n\t}",
"public void setVar(String var)\n {\n this.var = var;\n }",
"protected String generateSQL() {\n String fields = generateFieldsJSON();\n return String.format(QUERY_PATTERN, fields, esQuery.generateQuerySQL(), from, size);\n }",
"public static void addVars(Var[] vars) {\n if (vars != null) {\n for (Var var : vars) {\n addVar(var);\n }\n }\n }",
"@Override\n protected List<String> getEntityParameters(Subscription entity) {\n List<String> parameters = new ArrayList<>();\n\n int clientId = entity.getClientId();\n String clientIdValue = String.valueOf(clientId);\n parameters.add(clientIdValue);\n\n Date purchaseDate = entity.getPurchaseDate();\n String purchaseDateValue = String.valueOf(purchaseDate);\n parameters.add(purchaseDateValue);\n\n Date expirationDate = entity.getExpirationDate();\n String expirationDateValue = String.valueOf(expirationDate);\n parameters.add(expirationDateValue);\n\n SubscriptionType trial = entity.getSubscriptionType();\n String trialValue = String.valueOf(trial);\n parameters.add(trialValue);\n\n BigDecimal price = entity.getPrice();\n String priceValue = String.valueOf(price);\n parameters.add(priceValue);\n\n int ibm = entity.getIbm();\n String ibmValue = String.valueOf(ibm);\n parameters.add(ibmValue);\n\n int isCoachNeeded = entity.getIsCoachNeeded();\n String isCoachNeededValue = String.valueOf(isCoachNeeded);\n parameters.add(isCoachNeededValue);\n\n int isPayed = entity.getIsPayed();\n String isPayedValue = String.valueOf(isPayed);\n parameters.add(isPayedValue);\n\n String feedback = entity.getFeedback();\n if (feedback == null) {\n parameters.add(NULL_PARAMETER);\n } else {\n parameters.add(feedback);\n }\n\n return parameters;\n }",
"String getAuthorPublicationsQuery(String... varargs);",
"public VariableNode(String attr)\n {\n this.name = attr;\n }",
"public void createQuery(String s) throws HibException;",
"public interface BackTestOperation {\n\n\n @Select( \"SELECT * FROM ${listname}\")\n public ArrayList<BackTestDailyResultPo> getResult(@Param(\"listname\") String resultid);\n\n @Select(\" SELECT resultid FROM backtesting WHERE userid = #{0,jdbcType=BIGINT} AND sid = #{1,jdbcType=BIGINT} AND start = #{2,jdbcType=LONGVARCHAR}\\n\" +\n \" AND end = #{3,jdbcType=LONGVARCHAR}\")\n public String getResultid(String userid, String strategyid, String startdate, String enddate);\n}",
"private void extractVars(Expression expr,List<Var> list){\n\t\tif (expr.isVar()){\n\t\t\tlist.add((Var)expr);}\n\t\telse {\n\t\t\tif (expr.isBinaryExpression()){\n\t\t\t\textractVars(((BinaryExpression)expr).getLeft(),list);\n\t\t\t\textractVars(((BinaryExpression)expr).getRight(),list);\n\t\t\t}\n\t\t}\n\t}",
"public interface PersonApi {\n\n // results=[int]\n // gender=[male|female]\n // page=[int]\n // seed=[string]\n // nat=[AU|BR|CA|CH|DE|DK|ES|FI|FR|GB|IE|IR|NL|NZ|TR|US|...]\n @GET(\"/api\")\n Call<PersonQuery> getPerson(\n @Query(\"results\") int results,\n @Nullable @Query(\"gender\") String gender,\n @Nullable @Query(\"seed\") String seed,\n @Nullable @Query(\"nat\") String nationality,\n @Nullable @Query(\"page\") String page\n );\n}",
"public static void store(String varName) {\n emit(newVariable(varName).getStore());\n }"
] | [
"0.5589245",
"0.5221484",
"0.51750743",
"0.51471496",
"0.49801415",
"0.49094486",
"0.4859731",
"0.48244798",
"0.47849464",
"0.47299847",
"0.4699051",
"0.46856698",
"0.46341246",
"0.4626571",
"0.46044132",
"0.45945606",
"0.45860744",
"0.45860735",
"0.45518553",
"0.45396602",
"0.45100212",
"0.45034397",
"0.44907868",
"0.4476805",
"0.4476805",
"0.44748527",
"0.44645762",
"0.44634065",
"0.44551614",
"0.44541928",
"0.44526634",
"0.44437623",
"0.4443724",
"0.44407237",
"0.44344208",
"0.44230825",
"0.44228426",
"0.44149044",
"0.44142246",
"0.4408405",
"0.44029695",
"0.4399624",
"0.43887767",
"0.43879813",
"0.43876478",
"0.43744284",
"0.43723866",
"0.4360454",
"0.4359597",
"0.435573",
"0.43521217",
"0.43498364",
"0.43491027",
"0.43446222",
"0.43225744",
"0.4321072",
"0.4310652",
"0.43089738",
"0.43075445",
"0.42996773",
"0.4299196",
"0.42919683",
"0.42855155",
"0.42755553",
"0.42668426",
"0.4257299",
"0.42571852",
"0.42417607",
"0.4239053",
"0.42384797",
"0.4237351",
"0.42344692",
"0.4233961",
"0.42320326",
"0.4223029",
"0.42208713",
"0.4219742",
"0.42178583",
"0.42165837",
"0.42165458",
"0.4192013",
"0.41908026",
"0.41819537",
"0.41777587",
"0.41682768",
"0.41652486",
"0.41621727",
"0.41608682",
"0.4160635",
"0.41564867",
"0.41563708",
"0.41546625",
"0.4152744",
"0.4144194",
"0.4143261",
"0.4141166",
"0.41377714",
"0.4133507",
"0.41322225",
"0.41297892"
] | 0.47764426 | 9 |
get fragment content view | protected abstract int getContentView(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int getFragmentView();",
"@Override\r\n\tpublic View getContentView() {\n\t\treturn contentView;\r\n\t}",
"public abstract Fragment getFragment();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_content, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_content, container, false);\n }",
"public String getViewContent() {\r\n\t\treturn viewContent;\r\n\t}",
"public Fragment getFragment() {\n return fragment;\n }",
"@Override\n\tpublic View getView(int position) {\n\t\treturn pagerFragments.get(position).getContent();\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_comment_fra, container, false);\n findview();\n return view;\n }",
"@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater,\n\t\t\t@Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n\n\t\tViewGroup viewGroup = (ViewGroup) inflater.inflate(\n\t\t\t\tR.layout.frag_content_lay, null);\n\n\t\tViewUtils.inject(this, viewGroup);\n\t\tshowDataInView();\n\t\treturn viewGroup;\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tv, container, false);\n pb = view.findViewById(R.id.pb);\n pb.setVisibility(View.VISIBLE);\n setRecyclerView(view);\n\n return view;\n }",
"public String getFragment() {\n return m_fragment;\n }",
"public View getView() { return view; }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (savedInstanceState != null) {\n currentText = savedInstanceState.getString(ARG_TEXT);\n }\n return inflater.inflate(R.layout.data_content_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_content, container, false);\n ButterKnife.bind(this, view);\n //面板分类\n getFragmentManager().beginTransaction().replace(R.id.categorylayout, new CategoryFragment()).commit();\n getData2();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_news_mixed_content, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }",
"public WindowContent getViewContent() {\r\n return this.windowContent;\r\n }",
"public int getContentViewId() {\n return R.id.tv_content;\n }",
"public View getView() {\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_explore, container, false);\n return view;\n }",
"public abstract int getFragmentLayout();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n viewDataBinding = DataBindingUtil.inflate(inflater, R.layout.fragment_content,container,false);\n httpUtils = HttpUtils.getHttpUtils();\n myAdapter = new MyAdapter(ctx);\n viewDataBinding.setAdapter(myAdapter);\n\n return viewDataBinding.getRoot();\n }",
"@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_conta, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_forum, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"public String getView();",
"public String getView();",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_latest, container, false);\n\n articlesRecycle = view.findViewById(R.id.articlesRecycle);\n emptyView = view.findViewById(R.id.emptyView);\n\n getNews();\n\n\n\n return view;\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_explore, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_find, container, false);\n initView(view);\n getData(page,userId,token);\n setLister();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_display, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_a, container, false);\n findView(view);\n\n Log.i(TAG, \"onCreateView\");\n return view;\n }",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"protected abstract int getFragmentLayout();",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_find, container, false);\n initView(view);\n initSend();\n getXgimi();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_all_post, container, false);\n\n tvPrueba = v.findViewById(R.id.tv_Prueba);\n\n //requestServer(v);\n loadPost();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bookmark, container, false);\n context = getActivity();\n init(view);\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_wo_de, container, false);\n initView(view);\n return view;\n }",
"protected abstract Fragment getFragmentByPosition(int position);",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n return inflater.inflate(R.layout.fragment_forum, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\tmContentView = LayoutInflater.from(getActivity()).inflate(\r\n\t\t\t\tR.layout.med_send_medicine_fragment, null);\r\n\t\tm_AppContext = (AppContext) this.getActivity().getApplication();\r\n\t\tinitSendMedViews(mContentView);\r\n\t\tloadMedicineData();\r\n\t\treturn mContentView;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_detail_post, container, false);\n }",
"public View getView() {\n\t\treturn view;\n\t}",
"private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_detail_list_news, container, false);\n imgDetail = view.findViewById(R.id.imgNews);\n txtTitle = view.findViewById(R.id.txtTitleNews);\n txtDesc = view.findViewById(R.id.txtDesc);\n navController = Navigation.findNavController(getActivity(), R.id.my_nav_host_fragment);\n return view;\n }",
"@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_contentslist, container, false);\n //View tv = v.findViewById(R.id.text);\n //((TextView)tv).setText(mLabel != null ? mLabel : \"(no label)\");\n //tv.setBackgroundDrawable(getResources().getDrawable(android.R.drawable.gallery_thumb));\n webView = (WebView)v.findViewById(ddoba.android.lwsoft.ddoba.R.id.webView);\n\n customViewContainer = (FrameLayout) v.findViewById(ddoba.android.lwsoft.ddoba.R.id.customViewContainer);\n mWebViewClient = new myWebViewClient();\n webView.setWebViewClient(mWebViewClient);\n\n mWebChromeClient = new myWebChromeClient();\n webView.setWebChromeClient(mWebChromeClient);\n\n //MainActivity.setWebViewSettings(webView);\n setwebsetting(webView);\n\n\n webView.loadUrl(\"http://www.dasibogi.com/\");\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_mentions, container, false);\n\n //Inflate the views\n rvTweets = v.findViewById(R.id.rvTweet);\n pbNetwork = v.findViewById(R.id.pbNetwork);\n // finding swiperefresher\n swipeContainer = v.findViewById(R.id.swipeContainer);\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_current, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_main4, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstance){\n View rootView = inflater.inflate(R.layout.fragement_body_layout,container,false);\n // get the reference to imageView in the fragment layout\n ImageView imageView = (ImageView) rootView.findViewById(R.id.body_part_image_view);\n //set the image view to daisplay\n imageView.setImageResource(AndroidImageAssets.getHeads().get(0));\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_detail, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_detail, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return secondfragmentLayout;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"private View getView() {\n try {\n return (View) this.webView.getClass().getMethod(\"getView\", new Class[0]).invoke(this.webView, new Object[0]);\n } catch (Exception unused) {\n return (View) this.webView;\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tv_show, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_video, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(\n R.layout.fragment_first, container, false);\n\n txt = v.findViewById(R.id.txt);\n txt.setText(\"First Fragment\");\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_selection, container, false);\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = getThisView(inflater,container);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater\n .inflate(R.layout.static_fragment, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_overview, container, false);\n \n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_frame, container, false);\n }",
"private Fragment getLessonFragment() {\n\t\treturn MediaPlayerFragmentFactory.getMediaPlayerFragment(lesson);\n\t}",
"@Override\r\n \tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n \t\t\tBundle savedInstanceState) {\n \t\tv = inflater.inflate(R.layout.fragment_oweboard, container, false);\r\n \t\temptyView = (TextView) v.findViewById(R.id.empty_friendlist);\r\n \t\trAct = (RootActivity) getActivity();\r\n \t\tdb = rAct.database;\r\n \t\tsetTotalFriendListView();\r\n \t\tif (!MainActivity.isSinglePane) {\r\n \t\t\t// Set selector if in tab\r\n \t\t\tlistViewOwelist.setSelector(R.color.blue_header);\r\n \t\t}\r\n \t\ttotalFriends = (TextView) v.findViewById(R.id.listFriends);\r\n \t\t\r\n \t\tsetHasOptionsMenu(true);\r\n \t\t((MainActivity)getActivity()).getSupportActionBar().setDisplayHomeAsUpEnabled(false);\r\n \t\t((MainActivity)getActivity()).getSupportActionBar().setTitle(R.string.oweboard_title);\r\n \t\t//Utils.showLog(getClass().getSimpleName(), \"onCreateView() ends\", Log.VERBOSE);\r\n \t\treturn v;\r\n \t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_content, container, false);\n FloatingActionButton fab = (FloatingActionButton) view.findViewById(R.id.fab);\n fab.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.main_container,new CreateContentFragment());\n fragmentTransaction.commit();\n }\n });\n\n //\n PublishedContentViewAdapter adapter = new PublishedContentViewAdapter(this.getActivity(),testTable());\n ListView contentListView = (ListView) view.findViewById(R.id.content_list_view);\n\n contentListView.setAdapter(adapter);\n contentListView.setOnItemClickListener(this);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = FragmentExploreBinding.inflate(getLayoutInflater());\n\n loadExploreData();\n\n return binding.getRoot();\n }",
"public abstract int getContentView();",
"protected View getDisplayView(final T field, Fragment frag){\n return null;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = FragmentComposeBinding.inflate(getLayoutInflater());\n View view = binding.getRoot();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video_live, container, false);\n ButterKnife.bind(this, view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n\n\n return inflater.inflate(R.layout.fragment_short, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_synthetic_video, container, false);\n }",
"public int getFragmentPlace()\r\n {\r\n int id = R.id.left_pane_body;\r\n if (DisplayUtils.hasCentralPane(this))\r\n {\r\n id = R.id.central_pane_body;\r\n }\r\n return id;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_story_for_khaild, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_chat, container, false);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view= inflater.inflate(R.layout.fragment_galley_videos_fragment, container, false);\n return view;\n }",
"ViewElement getViewElement();",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_message_viewer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_sites, container, false);\n }",
"@Override\n public Context getActivityContext() {\n return mView.get().getActivityContext();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mMovieFragBinding = FragmentMovieBinding.inflate(inflater, container, false);\n return mMovieFragBinding.getRoot();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_me, container, false);\n activity = getActivity();\n initView(inflate);\n return inflate;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_vicky, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container , savedInstanceState);\n View rootView = inflater.inflate(R.layout.fragment_info_, container, false);\n //return inflater.inflate(R.layout.fragment_info_, container, false);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cv, container, false);\n }"
] | [
"0.7587255",
"0.69661033",
"0.68915564",
"0.65917087",
"0.65917087",
"0.65858084",
"0.65115356",
"0.6509243",
"0.6458942",
"0.64200944",
"0.6363448",
"0.6361907",
"0.6336133",
"0.62938976",
"0.62902117",
"0.628575",
"0.6269912",
"0.6261035",
"0.6259743",
"0.62463224",
"0.6245822",
"0.6235206",
"0.62310815",
"0.6225184",
"0.62216",
"0.6220668",
"0.62181634",
"0.62181455",
"0.62114215",
"0.6210266",
"0.6210266",
"0.6202876",
"0.619099",
"0.6183121",
"0.61799407",
"0.6178689",
"0.61707175",
"0.61696595",
"0.61696595",
"0.61696595",
"0.61685115",
"0.61684096",
"0.61677873",
"0.6163398",
"0.6161474",
"0.6151024",
"0.614559",
"0.61372113",
"0.6132996",
"0.61325675",
"0.6128328",
"0.61257774",
"0.61212385",
"0.61190695",
"0.61163825",
"0.6113691",
"0.61119705",
"0.6103136",
"0.6102815",
"0.6102815",
"0.6099603",
"0.60953075",
"0.60938483",
"0.60899824",
"0.6089529",
"0.60869616",
"0.6080531",
"0.6075168",
"0.6075066",
"0.60733926",
"0.60728586",
"0.6072639",
"0.60720026",
"0.60712117",
"0.60701436",
"0.606993",
"0.6064704",
"0.6058757",
"0.6058427",
"0.6055909",
"0.6055787",
"0.60504097",
"0.604941",
"0.60418403",
"0.60389376",
"0.6037557",
"0.60360837",
"0.6036039",
"0.6034296",
"0.60340226",
"0.6033897",
"0.60319805",
"0.6031921",
"0.6027373",
"0.6026239",
"0.60258657",
"0.6024509",
"0.6020081",
"0.6019957",
"0.60162616"
] | 0.6100919 | 60 |
inject you need fragment | protected abstract void injectFragment(FragmentComponent fragmentComponent); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void inject(SubscriberDetailsFragment fragment);",
"void inject(MoviesListFragment moviesListFragment);",
"private void initFragmentAutoInjection() {\n BucketApplication app;\n app = (BucketApplication) getApplication();\n\n getSupportFragmentManager().registerFragmentLifecycleCallbacks(new FragmentLifecycleCallbacks() {\n @Override\n public void onFragmentAttached(FragmentManager fm, Fragment f, Context context) {\n super.onFragmentAttached(fm, f, context);\n if(f instanceof ListingFragment) {\n app.getAppComponentInjector().inject((ListingFragment) f);\n } else if (f instanceof ListingPreferencesFragment) {\n app.getAppComponentInjector().inject((ListingPreferencesFragment) f);\n }\n }\n }, false);\n }",
"void inject(SubscriberListFragment fragment);",
"void inject(WebClientFragment fragment);",
"@FragmentScope\n@Component(modules = NoticeFragModule.class,dependencies = AppComponent.class)\npublic interface NoticeFragComponent {\n void inject(NoticeFrag demoFrag);\n}",
"private void initFragments() {\n\t\tZhiBoFragment zhiBoFragment = ZhiBoFragment.newInstance(null);\n\t\tzhiBoFragment.setSquareFragmentListener(this);\n\t\tLiaotianFragment liaotianFragment = LiaotianFragment.newInstance(null);\n\t\tliaotianFragment.setSquareFragmentListener(this);\n\t\tfragments.add(zhiBoFragment);\n\t\tfragments.add(liaotianFragment);\n\t\t\n\t\t\n\t}",
"private void loadFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(com.limkee1.R.id.flContent, fragment);\n fragmentTransaction.commit();\n\n }",
"public interface FragmentCallback {\n void addFragment(int container, Class fragment, Bundle params);\n}",
"@PerFragment\n@Component(dependencies = AppComponent.class , modules = SaleHandPresenterModule.class)\npublic interface SaleHandFragmentComponent {\n void inject(SaleHandFragment fragment);\n}",
"private void setupFragment(Bundle savedInstanceState) {\n if (findViewById(R.id.fl_caller) != null) {\n // However, if we're being restored from a previous state,\n // then we don't need to do anything and should return or else\n // we could end up with overlapping fragments.\n if (savedInstanceState != null) {\n return;\n }\n\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fl_caller, getActiveFragment())\n .commit();\n }\n }",
"private void initFragment(Fragment fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(R.id.contentFrame, fragment);\n transaction.commit();\n }",
"private void setupFragments() {\n FragmentManager fm = getSupportFragmentManager();\n sb_frag = (StatusBar)fm.findFragmentById(R.id.statusmarket);\n\n if(sb_frag == null)\n {\n sb_frag = new StatusBar();\n fm.beginTransaction().add(R.id.statusmarket, sb_frag).commit();\n }\n sb_frag.setupInitial(currentPlayer);\n\n ai_frag = (AreaInfo) fm.findFragmentById(R.id.overviewlayout);\n\n //try find the fragment, if it doesnt exist then create it\n if (ai_frag == null) {\n //create the fragment if not exist\n ai_frag = new AreaInfo();\n fm.beginTransaction().add(R.id.overviewlayout, ai_frag).commit();\n }\n\n ai_frag.setCurrentArea(null);\n\n\n\n\n }",
"public interface IBaseFragment extends IBaseView {\n /**\n * 出栈到目标fragment\n * @param targetFragmentClass 目标fragment\n * @param includeTargetFragment 是否包涵目标fragment\n * true 目标fragment也出栈\n * false 出栈到目标fragment,目标fragment不出栈\n */\n void popToFragment(Class<?> targetFragmentClass, boolean includeTargetFragment);\n\n /**\n * 跳转到新的fragment\n * @param supportFragment 新的fragment继承SupportFragment\n */\n void startNewFragment(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并出栈当前fragment\n * @param supportFragment\n */\n void startNewFragmentWithPop(@NonNull SupportFragment supportFragment);\n\n /**\n * 跳转到新的fragment并返回结果\n * @param supportFragment\n * @param requestCode\n */\n void startNewFragmentForResult(@NonNull SupportFragment supportFragment,int requestCode);\n\n /**\n * 设置fragment返回的result\n * @param requestCode\n * @param bundle\n */\n void setOnFragmentResult(int requestCode, Bundle bundle);\n\n /**\n * 跳转到新的Activity\n * @param clz\n */\n void startNewActivity(@NonNull Class<?> clz);\n\n /**\n * 携带数据跳转到新的Activity\n * @param clz\n * @param bundle\n */\n void startNewActivity(@NonNull Class<?> clz,Bundle bundle);\n\n /**\n * 携带数据跳转到新的Activity并返回结果\n * @param clz\n * @param bundle\n * @param requestCode\n */\n void startNewActivityForResult(@NonNull Class<?> clz,Bundle bundle,int requestCode);\n\n /**\n * 当前Fragment是否可见\n * @return true 可见,false 不可见\n */\n boolean isVisiable();\n\n /**\n * 获取当前fragment绑定的activity\n * @return\n */\n Activity getBindActivity();\n\n}",
"public abstract Fragment getFragment();",
"private void getFragment(Fragment fragment) {\n // create a FragmentManager\n FragmentManager fm = getFragmentManager();\n // create a FragmentTransaction to begin the transaction and replace the Fragment\n FragmentTransaction fragmentTransaction = fm.beginTransaction();\n // replace the FrameLayout with new Fragment\n fragmentTransaction.replace(R.id.fragment_layout, fragment);\n // save the changes\n fragmentTransaction.commit();\n }",
"protected abstract FragmentComponent setupComponent();",
"private void initFragment(Fragment newsFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.fl_news, newsFragment);\n transaction.commit();\n\n }",
"@Override\r\n\tpublic void onFragmentStart() {\n\t}",
"private void addFragments() {\n\n Fragment f = SideFilterFragment.newInstance();\n getFragmentManager().beginTransaction().replace(R.id.side_filter_container, f).commit();\n }",
"@Override\n public Fragment getFragment() {\n// uuid = (UUID)getIntent().getSerializableExtra(UUID);\n// return GoalDetailViewFragment.newInstance(uuid);\n return null;\n }",
"@FragmentScope\n@Component(modules = GirlModel.class)\npublic interface GirlFragmentComponent {\n\n void inject(GirlFragment girlFragment);\n}",
"@PerFragment\n@Component(dependencies = ApplicationComponent.class, modules = SignUpStaffModule.class)\npublic interface SignUpStaffComponent {\n void inject(SignUpStaffFragment signUpStaffFragment);\n}",
"@Override\r\n\tpublic void onFragmentCreate(Bundle savedInstanceState) {\n\t}",
"@FragmentScope\n@Component(dependencies = AppComponent.class,\n modules = WeiXinFragmentModule.class)\npublic interface WeiXinFragmentComponent {\n\n void inject(WeiXinFragment weiXinFragment);\n\n}",
"private void changeFragment() {\n TeacherAddNotificationFragment fragment = new TeacherAddNotificationFragment();\n // Put classIds to bundle and set bundle to fragment\n Bundle bundle = new Bundle();\n bundle.putString(\"ListIDs\", classesIds);\n fragment.setArguments(bundle);\n\n // Replace fragment\n getFragmentManager().beginTransaction().replace(R.id.main, fragment)\n .addToBackStack(null)\n .commit();\n }",
"public interface FragmentPresenter {\n void onViewCreated();\n void setBusId(String busId);\n void refreshClick();\n RecyclerView.Adapter getAdapter();\n}",
"private void fillUpFragment() {\n try {\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n sensorFragment = getSensorFragment();\n transaction.replace(R.id.sensor_frame, sensorFragment, getSensorName());\n transaction.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void createFragment() {\n\n }",
"@FragmentScope\n@Component(dependencies = AppComponent.class, modules = FragmentModule.class)\npublic interface FragmentComponent {\n\n Activity getActivity();\n\n void inject(SceneFragment sceneFragment);\n void inject(AmuseFragment amuseFragment);\n\n}",
"public RegisterFragment() {\n }",
"private void loadFragment(Fragment frag) {\n if (frag instanceof ConnectionsFragment) {\n String tag = getString(R.string.keys_fragment_connections);\n\n android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.homeFragmentContainer, frag, tag);\n transaction.commit();\n } else {\n\n android.support.v4.app.FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.homeFragmentContainer, frag);\n transaction.commit();\n }\n }",
"@Override\n protected Fragment setFragment() {\n Bundle extras = getIntent().getExtras();\n String photoUrl = extras.getString(EXTRA_URL_PHOTO, \"https://www.flickr.com/images/buddyicon.gif\");\n String photoId = extras.getString(EXTRA_PHOTO_ID);\n String photoUrlNoSecret = extras.getString(EXTRA_URL_PHOTO_NO_SECRET);\n String photoUrlLarge = extras.getString(EXTRA_URL_PHOTO_LARGE);\n\n return PhotoFragment.newInstance(photoUrl, photoId, photoUrlNoSecret, photoUrlLarge);\n }",
"public void resolve()\n{\n getFragment().resolveFragment();\n}",
"@FragmentScope\n@Component(dependencies = AppComponent.class, modules = FragmentModule.class)\npublic interface FragmentComponent {\n\n Activity getActivity();\n\n void inject(NewsMainFragment newsMainFragment);\n\n void inject(NewsPagerFragment newsPagerFragment);\n\n void inject(JokeFragment jokeFragment);\n\n void inject(WechatMainFragment wechatMainFragment);\n\n void inject(LikeFragment likeFragment);\n}",
"private void loadFragment(Fragment fragment, String tag) {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.replace(R.id.frame_tut, fragment, tag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_OPEN);\n ft.commit();\n }",
"public WelcomeFragment() {}",
"private void addBaseFragment(Fragment fragment) {\n\n if (mFragmentManager == null)\n mFragmentManager = getSupportFragmentManager();\n\n FragmentTransaction mFragmentTransaction = mFragmentManager.beginTransaction();\n mFragmentTransaction.replace(R.id.content_frame, fragment, fragment.getClass().getSimpleName().toString()).commit();\n\n }",
"@Singleton\n@Component\npublic interface FragmentComponent {\n void inject(MovieTop250Fragment fragment);\n\n void inject(MovieHotFragment fragment);\n\n void inject(MovieUpcomingFragment fragment);\n\n void inject(ZhihuDailyFragment fragment);\n\n void inject(ZhihuThemeFragment fragment);\n\n void inject(ZhihuSectionFragment fragment);\n\n}",
"private void loadBookPageFragment() {\n\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.addToBackStack(\"ListView\"); // enables to press \"return\" and go back to the list view\n transaction.replace(R.id.main_fragment_container, new BookPageFragment());\n transaction.commit();\n }",
"@Override\n public void onClick(View view) {\n\n Fragment fragment1 = getSupportFragmentManager().findFragmentByTag(fragment1Tag);\n if(fragment1 == null) {\n fragment1 = new IngrediantFragment();\n getSupportFragmentManager().beginTransaction()\n .add(R.id.fram1, fragment1,fragment1Tag)\n .commit();\n }\n else\n Toast.makeText(getApplicationContext(),\"fragment = null\",Toast.LENGTH_LONG).show();\n }",
"@FragmentScope\n@Component(dependencies = AppComponent.class,modules = FragmentModule.class)\npublic interface FragmentComponent {\n Activity getActivity();\n\n void inject(HomeFragment homeFragment);\n\n void inject(NewsWebFragment newsWebFragment);\n\n void inject(MyModelFragment myModelFragment);\n}",
"public interface NerdMartGraph {\n void inject(NerdMartAbstractFragment fragment);\n}",
"protected abstract Fragment createFragment();",
"@Override\n public void onFragmentAttached() {\n }",
"public ExploreFragment() {\n\n }",
"@Singleton\n@Component(modules = AppModule.class)\npublic interface AppComponent {\n void inject(ArtListFragment fragment);\n}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n\r\n View v = inflater.inflate(R.layout.fragment_halaman, container, false);\r\n\r\n TextView tv = (TextView) v.findViewById(R.id.tv_halaman);\r\n String halaman = getArguments().getString(EXTRAS);\r\n tv.setText(halaman);\r\n\r\n Log.e(TAG, \"onCreateView : Halaman Fragment\" + halaman);\r\n\r\n return v;\r\n\r\n }",
"@FragmentScoped\n@Component(dependencies = SnApiComponent.class, modules = NewsListPresenterModule.class)\npublic interface NewsListFragmentComponent {\n\n void inject(NewsListFragment newsListFragment);\n\n}",
"@Override\n\tprotected void setupFragmentComponent(AppComponent appComponent) {\n\t}",
"private void instanciateFragments() {\r\n connectionFragment = new ConnectionFragment();\r\n mNetworkConnectionFragment = new NetworkConnectionFragment();\r\n mMotorFragment = new MotorFragment();\r\n mProcessorFragment = new ProcessorFragment();\r\n mPWMFragment = new PWMFragment();\r\n mOrderTestFragment = new OrderTestFragment();\r\n mTestsFragment = new TestsFragment();\r\n mPositionTestFragment = new PositionTestFragment();\r\n mOrderPilotFragment = new OrderPilotFragment();\r\n mCommandPilotFragment = new CommandPilotFragment();\r\n mPositionPilotFragment = new PositionPilotFragment();\r\n mCartographerFragment = new CartographerFragment();\r\n mHistoryFragment = new HistoryFragment();\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_find, container, false);\n initView(view);\n getData(page,userId,token);\n setLister();\n return view;\n }",
"private void loadFragment(String fragmentTag)\n {\n\n FragmentManager fm = getSupportFragmentManager();\n FragmentTransaction ft = fm.beginTransaction();\n ft.setCustomAnimations(android.R.anim.slide_in_left, android.R.anim.slide_out_right);\n\n Fragment taggedFragment = (Fragment) fm.findFragmentByTag(fragmentTag);\n if (taggedFragment == null)\n {\n\n if (fragmentTag == LondonFragment.TAG)\n {\n taggedFragment = new LondonFragment();\n }\n\n if (fragmentTag == ParisFragment.TAG)\n {\n taggedFragment = new ParisFragment();\n }\n\n if (fragmentTag == CopenhagenFragment.TAG)\n {\n taggedFragment = new CopenhagenFragment();\n }\n\n if (fragmentTag == DualFragment.TAG)\n {\n taggedFragment = new DualFragment();\n }\n\n }\n ft.replace(R.id.container, taggedFragment, fragmentTag);\n ft.commit();\n\n //Ezt fontos hívni\n getSupportFragmentManager().executePendingTransactions();\n\n Fragment frag2 = (Fragment) fm.findFragmentByTag(fragmentTag);\n frag2.getActivity();\n\n\n\n\n\n drawerLayout.closeDrawer(Gravity.LEFT);\n }",
"public interface MainF4Presenter {\n void loadItem();\n\n public interface fragment{\n void updateView();\n }\n}",
"private void setUpLoggedInFragments() {\n fragmentList = new ArrayList<>();\n\n fragmentList.add(new PostListFragment());\n //fragmentList.add(new TabFragment());\n fragmentList.add(new AboutFragment());\n fragmentList.add(new PostListFragment());\n }",
"@FragmentScope\n@Component(modules = GatheringModule.class, dependencies = AppComponent.class)\npublic interface GatheringComponent {\n void inject(GatheringFragment gatheringFragment);\n}",
"public Fragment_Tutorial() {}",
"@Override\n public void onClick(View view) {\n Fragment fragment = null;\n fragment = new CommentPeopleDetail();\n Bundle bundle = new Bundle();\n bundle.putString(\"queid\", details.getQueId());\n\n if (fragment != null) {\n fragment.setArguments(bundle);\n FragmentManager fm = ((FragmentActivity) context).getSupportFragmentManager();\n FragmentTransaction transaction = fm.beginTransaction();\n transaction.replace(R.id.frame_contain_layout, fragment);\n transaction.commit();\n }\n }",
"private void wireUpFragments(Bundle savedInstanceState) { savedInstanceState is non-null when there is fragment state\n // saved from previous configurations of this activity\n // (e.g. when rotating the screen from portrait to landscape).\n // In this case, the fragment will automatically be re-added\n // to its container so we don't need to manually add it.\n // For more information, see the Fragments API guide at:\n //\n // http://developer.android.com/guide/components/fragments.html\n //\n if (savedInstanceState == null) {\n }\n }",
"public FragmentMy() {\n }",
"@Override\n\tprotected void initParamsForFragment() {\n\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }",
"RecommendSecondFragment(Place ref) {\n this.mPlace = ref;\n }",
"void fragment(String fragment);",
"void fragment(String fragment);",
"@Singleton\n@Component(modules = {BudgetFragmentProvider.class, BaseExpenditureProvider.class})\npublic interface BudgetFragmentComponent {\n void inject(BudgetFragment fragment);\n}",
"void onFragmentInteraction(int spotId);",
"public interface FragMainLife\n{\n\tpublic void onResumeFragMainLife();\n}",
"public void a(String str) {\n Fragment newInstance;\n boolean z = true;\n if (this.b != null && !TextUtils.isEmpty(str)) {\n if (str.equals(\"mol_pin\")) {\n newInstance = APRegionMolpinFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else if (str.equals(\"fortumo\")) {\n newInstance = APRegionFortumoFragment.newInstance(str, APPayMananger.singleton().getCurBaseRequest().country, APPayMananger.singleton().getCurBaseRequest().currency_type);\n } else {\n if (this.b.size() != 1) {\n z = false;\n }\n newInstance = APRegionGridContentFragment.newInstance(str, z);\n }\n FragmentTransaction beginTransaction = getSupportFragmentManager().beginTransaction();\n beginTransaction.replace(APCommMethod.getId(this, \"unipay_id_mainContent\"), newInstance);\n beginTransaction.commit();\n }\n }",
"private void setFragment() {\r\n dataModelArrayList.clear();\r\n fm = getSupportFragmentManager();\r\n mTaskFragment = (ViewPagerAsyncTask) fm.findFragmentByTag(TAG_TASK_FRAGMENT);\r\n\r\n // If the Fragment is non-null, then it is currently being\r\n // retained across a configuration change.\r\n if (mTaskFragment == null) {\r\n mTaskFragment = new ViewPagerAsyncTask();\r\n fm.beginTransaction().add(mTaskFragment, TAG_TASK_FRAGMENT).commit();\r\n }\r\n }",
"private void loadFragment(Fragment fragment)\n {\n if(fragment != null)\n {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.frameLayout, fragment);\n fragmentTransaction.addToBackStack(\"fragment\");\n fragmentTransaction.commit();\n }\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blood_pressure, container, false);\n\n BloodPressureFragment.setBloodPressureFragment(this);\n FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n\n PersonsFragment personsFragment;\n\n if(mParam1.equals(\"A\")||mParam1.equals(\"B\")||mParam1.equals(\"C\")) {\n startFragmentPressureMeasurements(mParam1);\n BloodPressureActivity.getBloodPressureActivity().setTheName(mParam1,\"Πίεση\");\n }\n\n personsFragment = PersonsFragment.newInstance(\"blah\",\"blah\");\n fragmentManager.beginTransaction().add(R.id.container_pressure_top_row,personsFragment).commit();\n\n return view;\n }",
"private void loadFragment(Fragment fragment){\n FragmentTransaction trans = getSupportFragmentManager().beginTransaction();\n trans.replace(R.id.frame_event, fragment);\n trans.commit();\n\n appbar.setExpanded(true);\n }",
"public void launchFragment(String str, Bundle bundle) {\n getFragmentManager().beginTransaction().replace(16908290, Fragment.instantiate(this, str, bundle)).commit();\n Log.i(TAG, String.format(\"Fragment %s Displayed\", new Object[]{str}));\n }",
"@Override\n //This will handle how the fragment will display content\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle saveInstanceState) {\n View layout = inflater.inflate(R.layout.fragment_main, container, false);\n\n FeedListView mFeedListView = new FeedListView(getActivity());\n Log.d(TAG, \"MyFragment::onCreate\");\n mFeedListView.inflate(layout);\n\n //Getting a reference to the TextView (as defined in fragment_main) and set it to a value\n Bundle bundle = getArguments();\n\n switch (bundle.getInt(\"point\")){\n case 0:\n //TODO : add tag query\n break;\n case 1:\n //TODO : add tag query\n break;\n case 2:\n //TODO : add tag query\n break;\n case 3:\n //TODO : add tag query\n break;\n default:\n }\n\n return layout;\n }",
"private void configureAndShowDetailFragment(){\n detailFragment = (DetailFragment) getSupportFragmentManager().findFragmentById(R.id.frame_layout_detail);\n\n if (detailFragment == null) {\n // Create new main fragment\n detailFragment = new DetailFragment();\n // Add it to FrameLayout container\n getSupportFragmentManager().beginTransaction()\n .add(R.id.frame_layout_detail, detailFragment)\n .commit();\n }\n }",
"@Override\n public Fragment getItem(int position) {\n\n Fragment fragment = null;\n Bundle bundle = new Bundle();\n bundle.putString(\"e\", \"test\");\n switch (position) {\n case 0:\n fragment = new OriginalFragment();\n // fragment.setArguments(bundle);\n break;\n\n case 1:\n fragment = new DecodedFragment();\n fragment.setArguments(bundle);\n }\n return fragment;\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"void onFragmentInteraction(Object ref);",
"protected void initFragment(Fragment fragment, String id, int resId) {\n getSupportFragmentManager()\n .beginTransaction()\n .add(resId, fragment, id)\n .addToBackStack(null)\n .commit();\n }",
"private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }",
"@Override\n // The onCreateView is where you will create the fragment and all the listeners in the fragment\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n View view = inflater.inflate(R.layout.fragment_tutorial, container, false); //create the view of the fragment\n // the next lines are finding the elements that are inside the fragment to then set the listeners and things\n ((MainActivity)getActivity()).setAddToBackStack(true);\n\n return view; // This returns the view(Fragment) with all the initializers\n }",
"private void setUpFragments() {\n fragmentList = new ArrayList<>();\n\n fragmentList.add(new PostListFragment());\n fragmentList.add(new AboutFragment());\n fragmentList.add(new LoginActivityFragment());\n\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"@Override\n public void run() {\n Fragment fragment = getHomeFragment();\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.setCustomAnimations(android.R.anim.fade_in,\n android.R.anim.fade_out);\n fragmentTransaction.replace(R.id.frame, fragment, CURRENT_TAG);\n fragmentTransaction.commitAllowingStateLoss();\n }",
"protected abstract void fragmentTrigger(Fragment fragment);",
"private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame, fragment);\n fragmentTransaction.commit();\n\n }",
"void OpenFragmentInteraction();",
"public BackEndFragment() {\n }",
"@FragmentScope\n@Component(dependencies = AppComponent.class)\npublic interface AllFragmentComponent {\n void inject(GAllFrament gAllFrament);\n void inject(GFuLiFragment gFuLiFragment);\n void inject(GCommonFragment gCommonFragment);\n}",
"@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n getChildFragmentManager()\n .beginTransaction()\n .add(R.id.container_wifi_presenter, WifiMainFragment.newInstance(), Constant.TAG_WIFI_FRAGMENT)\n .commit();\n\n // declare var to register to broadcast receiver\n mWifiReciever = new ScanWifiBroadcastReceiver(this);\n }",
"private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }",
"private void setUpFragments(Bundle savedInstanceState) {\n List<Fragment> fragments = new ArrayList<>(5);\n\n fragments.add(HomeFragment.newInstance(0));\n fragments.add(SearchFragment.newInstance(0));\n fragments.add(NearbyFragment.newInstance(0));\n fragments.add(FavoritesFragment.newInstance(0));\n fragments.add(FriendsFragment.newInstance(0));\n\n navController = new FragNavController(getSupportFragmentManager(), R.id.container, fragments);\n\n bottomBar = BottomBar.attach(this, savedInstanceState);\n bottomBar.setItemsFromMenu(R.menu.bottombar_menu, new OnMenuTabClickListener() {\n @Override\n public void onMenuTabSelected(int menuItemId) {\n switch (menuItemId) {\n case R.id.id1:\n navController.switchTab(INDEX_RECENTS);\n break;\n /* case R.id.id2:\n navController.switchTab(INDEX_SEARCH);\n break;*/\n case R.id.id2:\n navController.switchTab(INDEX_NEARBY);\n break;\n case R.id.id3:\n navController.switchTab(INDEX_FAVORITES);\n break;\n case R.id.id4:\n navController.switchTab(INDEX_FRIENDS);\n break;\n }\n }\n\n @Override\n public void onMenuTabReSelected(int menuItemId) {\n\n }\n });\n }",
"@Component(\n dependencies = AppComponent.class,\n modules = WeatherModule.class\n)\n@PerFragment\npublic interface WeatherComponent extends HasPresenter<WeatherPresenter> {\n void inject(WeatherFragment fragment);\n}",
"void onFragmentInteraction(int position);",
"private void setFragment(Fragment fragment, String tag){\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n //fragmentTransaction.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n //fragmentTransaction.add(R.id.content, fragment, tag);\n fragmentTransaction.replace(R.id.content, fragment);\n fragmentTransaction.commit();\n }"
] | [
"0.73440474",
"0.72345996",
"0.717971",
"0.7152742",
"0.7089114",
"0.6848232",
"0.6846245",
"0.6680025",
"0.66772157",
"0.6660864",
"0.6632376",
"0.66128904",
"0.66076595",
"0.6601506",
"0.6582406",
"0.65633094",
"0.65420496",
"0.6507362",
"0.6506472",
"0.64961934",
"0.64703214",
"0.6466744",
"0.6442704",
"0.64406294",
"0.6440254",
"0.6437607",
"0.64307827",
"0.6425417",
"0.64251584",
"0.6417723",
"0.640311",
"0.63993466",
"0.6381378",
"0.63729995",
"0.6368606",
"0.6360248",
"0.6357917",
"0.63550353",
"0.63489914",
"0.6348919",
"0.634769",
"0.6336274",
"0.6336014",
"0.6330014",
"0.63257897",
"0.6322974",
"0.62958646",
"0.6267691",
"0.6265011",
"0.6255567",
"0.6250533",
"0.6243814",
"0.62367004",
"0.62357414",
"0.6230803",
"0.6229184",
"0.6206023",
"0.61922127",
"0.6191706",
"0.61911416",
"0.61879677",
"0.61876947",
"0.6185348",
"0.618157",
"0.618157",
"0.6168359",
"0.61668926",
"0.6162227",
"0.6155344",
"0.6150728",
"0.61430925",
"0.61368185",
"0.6136806",
"0.61312777",
"0.61240643",
"0.61230236",
"0.6118427",
"0.6114454",
"0.61135995",
"0.61134136",
"0.6109666",
"0.6108683",
"0.61075693",
"0.61069214",
"0.61069214",
"0.61069214",
"0.61069214",
"0.61069214",
"0.61069214",
"0.61063105",
"0.6104689",
"0.61018807",
"0.61005646",
"0.6095971",
"0.6095917",
"0.60951746",
"0.6093247",
"0.60788107",
"0.60726595",
"0.6071021"
] | 0.74417984 | 0 |
init view or config | protected abstract void init(); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected abstract void initView();",
"protected abstract void initViews();",
"public abstract void initViews();",
"public abstract void initView();",
"void initView();",
"private void initViews() {\n\n\t}",
"public void initView(){}",
"private void initView() {\n\n }",
"private void initViews() {\n\n }",
"public void initViews(){\n }",
"@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}",
"protected abstract void initializeView();",
"private void viewInit() {\n }",
"public void initView() {\n\t\t view.initView(model);\t \n\t }",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}",
"public void init(ViewConfigData config) {\n\r\n this.viewConfig = config;\r\n\r\n /* fill the ontologyMap\r\n String ontologyMapFile = viewConfig.getOntologyMap(); */\r\n\r\n /* try {\r\n ontologyMapStore.parse(ontologyMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"IOException while trying to parse the ontology map file: \"\r\n + ontologyMapFile, e);\r\n } */\r\n\r\n //fill the schemaMap\r\n String schemaMapFile = viewConfig.getSchemaMap();\r\n try {\r\n schemaMapStore.parse(schemaMapFile, false);\r\n } catch (FileNotFoundException e) {\r\n throw new ConfigurationException(\r\n \"FileNotFoundException for the schema map file: \"\r\n + schemaMapFile, e);\r\n } catch (IOException e) {\r\n throw new ConfigurationException(\r\n \"ConfigurationException for the schema map file: \"\r\n + schemaMapFile, e);\r\n }\r\n\r\n //build the DTree. It also fills the ontologyStore\r\n dTree = buildDTree();\r\n \r\n //build the hash table for ont map properites\r\n String ontMappropertiesFilePath = viewConfig.getOntMapProperties();\r\n ReadPropFile.loadToHashTableFromOntmapPropertiesFile(ontMappropertiesFilePath); \r\n \r\n }",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}",
"@Override\n\tprotected void initView()\n\t{\n\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tprotected void initView() {\n\t\t\n\t}",
"@Override\n\tpublic void initView() {\n\t\t\n\t}",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initView() {\n }",
"@Override\n protected void initViewSetup() {\n }",
"@Override\n public void initView() {\n }",
"public void configure(T aView) { }",
"@Override\n\tpublic void InitView() {\n\t\t\n\t}",
"private void init() {\n //set view to presenter\n presenter.setView(this, service);\n\n setupView();\n }",
"@Override\n\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}",
"private void initView() {\n\t\tsna_viewpager = (ViewPager) findViewById(R.id.sna_viewpager);\r\n\t\thost_bt = (Button) findViewById(R.id.host_bt);\r\n\t\tcomment_bt = (Button) findViewById(R.id.comment_bt);\r\n\t\tback_iv = (ImageView) findViewById(R.id.back_iv);\r\n\t\trelativeLayout_project = (RelativeLayout) findViewById(R.id.relativeLayout_project);\r\n\t\trelativeLayout_addr = (RelativeLayout) findViewById(R.id.relativeLayout_addr);\r\n\t\trelativeLayout_activity = (RelativeLayout) findViewById(R.id.relativeLayout_activity);\r\n\t\trelativeLayout_host = (RelativeLayout) findViewById(R.id.relativeLayout_host);\r\n\t\trelativeLayout_comment = (RelativeLayout) findViewById(R.id.relativeLayout_comment);\r\n\t\tll_point = (LinearLayout) findViewById(R.id.ll_point);\r\n\t\tstoyrName = (TextView) findViewById(R.id.stoyrName);\r\n\t\tstory_addr = (TextView) findViewById(R.id.story_addr);\r\n\t\t\r\n\t}",
"protected abstract void initViews(View mView);",
"protected void initView(View rootView) {\n\n }",
"@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n initViews();\r\n }",
"@Override\n public void initView() {\n\n }",
"protected abstract void initContentView(View view);",
"private void initializePhaseConfigView() {\n resetViews();\n phaseConfigView.initialize(phasesUI, skin);\n }",
"private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }",
"public void init() {\n\t\tdropViewCollections();\n\t\tbuildViewCollections();\n\t\tthis.populateViewCollections();\n\t}",
"private void initView() {\n initRefreshListView(mListview);\n }",
"@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}",
"public MainView() {\r\n\t\tinitialize();\r\n\t}",
"protected abstract void initializeComponent(View view);",
"private void initView(View view) {\n\t\tif (imageView == null) {\n\t\t\timageView = new MyImageView(getActivity());\n\t\t\tscrollView = (MyScrollView) view.findViewById(R.id.my_scroll_view);\n\t\t}\n\t}",
"public interface ISettingsView {\r\n void initViews();\r\n}",
"private void initView(View view) {\n rlMain = view.findViewById(R.id.rlMain);\n llHeader = view.findViewById(R.id.llHeader);\n tvManually = view.findViewById(R.id.tvManually);\n tbPerson = view.findViewById(R.id.tbPerson);\n viewPagerPerson = view.findViewById(R.id.viewPagerPerson);\n tvPersonHeader = view.findViewById(R.id.tvPersonHeader);\n tvPersonHeader.setText(getString(R.string.choose_vehicle));\n tbPerson.setTabMode(TabLayout.MODE_SCROLLABLE);\n\n isPopulateView();\n\n aRightsMapper = db.getSectionList();\n validateRights();\n setPersonPagerData();\n tvManually.setOnClickListener(this);\n }",
"private void initView() {\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerGraz.refresh(true);\r\n\t\tviewerKapfenberg.refresh(true);\r\n\t\tviewerLeoben.refresh(true);\r\n\t\tviewerMariazell.refresh(true);\r\n\t\tviewerWien.refresh(true);\r\n\t}",
"public SchemaViewController( SchemaView view )\n {\n this.view = view;\n viewer = view.getViewer();\n \n initActions();\n initToolbar();\n initMenu();\n initContextMenu();\n initProjectsHandlerListener();\n initDoubleClickListener();\n initAuthorizedPrefs();\n initPreferencesListener();\n }",
"private void init() {\n initView();\n setListener();\n }",
"private void initView() {\n\t\tmSeekButton = (Button) findViewById(R.id.seekButton);\r\n\t\tmViewPager = (ViewPager) findViewById(R.id.viewPager);\r\n\t}",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public ViewInit() {\n initComponents();\n }",
"public ViewSinFaltante() {\n initComponents();\n }",
"public viewOpe() {\n initComponents();\n }",
"private void initViews() {\n setActionBarTitle(R.string.my_energy_metabolism);\n mViewPager = (CustomViewPager) findViewById(R.id.viewPager);\n }",
"private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }",
"private void initView(View view) {\n mRecyclerView = view.findViewById(R.id.recycler_view);\n mSearchView = view.findViewById(R.id.search_view);\n mFloatingActionButton = view.findViewById(R.id.message_floating_action_button);\n }",
"@Override\r\n\tprotected void initView(View view) {\n\t\trly_personal_info = (RelativeLayout) view.findViewById(R.id.rly_personal_info);\r\n\t\t\r\n\t}",
"private void initView() {\n\t\tlogin = (Button) pageViews.get(2).findViewById(R.id.sendbtn);\n\t\tlogin.setOnClickListener(this);\n\t}",
"private void initView() {\n\t\tbtnBack = (Button) findViewById(R.id.btn_regist_back);\n\t\tbtnRegist = (Button) findViewById(R.id.btn_regist_regist);\n\t\tuseret=(EditText)findViewById(R.id.userID);\n\t\tcellet=(EditText)findViewById(R.id.pNUM);\n\t\tpwet=(EditText)findViewById(R.id.et_regist_userPwd);\n\t\trpwet=(EditText)findViewById(R.id.rp_userPwd);\n\t\tmProgressView = findViewById(R.id.login_progress);\n\t\tbtnConf=(Button) findViewById(R.id.btn_msg);\n\t\tconfet=(EditText)findViewById(R.id.et_confirm);\n\n\t}",
"public View() {\n initComponents();\n }",
"private void initView() {\n\t\ttopbar = findViewById(R.id.topbar);\n\t\t// 顶部导航栏控件id\n\t\tll_returnbtn = (LinearLayout) topbar.findViewById(R.id.ll_returnbtn);\n\t\ttv_title = (TextView) topbar.findViewById(R.id.tv_title);\n\t\t// 顶部导航栏控件相关设置\n\t\ttv_title.setText(\"省份\");\n\t\t// 隐藏不要的内容\n\t\ttopbar.findViewById(R.id.tv_name_function)\n\t\t\t\t.setVisibility(View.INVISIBLE);\n\n\t\tlist_province = (ListView) findViewById(R.id.list_province);\n\t}",
"private void initview() {\n\t\tbtn_connect = (Button) findViewById(R.id.btn_connect);\n\t\tbtn_disconnect = (Button) findViewById(R.id.btn_disconnect);\n\t\tbtn_send = (Button) findViewById(R.id.pinpad_controller_btn_send);\n\t\tbtn_recv = (Button) findViewById(R.id.pinpad_controller_btn_recv);\n\t\tbtn_clear = (Button) findViewById(R.id.btn_clear);\n\t\tbtn_random = (Button) findViewById(R.id.btn_random);\n\t\tbtn_connect.setOnClickListener(this);\n\t\tbtn_recv.setOnClickListener(this);\n\t\tbtn_send.setOnClickListener(this);\n\t\tbtn_disconnect.setOnClickListener(this);\n\t\tbtn_clear.setOnClickListener(this);\n\t\tbtn_random.setOnClickListener(this);\n\t\ttv_read = (TextView) findViewById(R.id.pinpad_controller_tv_recv);\n\t\tet_send = (EditText) findViewById(R.id.pinpad_controller_et_send);\n\t\ttv_version = (TextView) findViewById(R.id.pinpad_controller_tv_version);\n\t\ttv_version.setText(\"\");\n\t\tsetViewEnabledFalse();\n\t}",
"public myView() {\n initComponents();\n CreatMenu();\n }",
"private void initView() {\n mRetrofit = new Retrofit.Builder()\n .baseUrl(Challenge1Activity.MY_BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .build();\n\n mTextViewDisplayTopRated = findViewById(R.id.text_view_display_toprated_movies);\n\n mTextViewPrev = findViewById(R.id.text_view_prev);\n mTextViewCurrentAndMaxPage = findViewById(R.id.text_view_current_and_max_page);\n mTextViewNext = findViewById(R.id.text_view_next);\n }",
"private void initViews() {\n webView = (WebView)findViewById(R.id.crop_webview);\n confirm_location = (Button)findViewById(R.id.btn_confirm_location);\n toolbar = (Toolbar)findViewById(R.id.map_toolbar);\n }",
"protected abstract void _init(DynMap config);",
"void init(Config config);",
"public void init(){\n\t\tcfg = new Configuration();\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), \"WEB-INF/templates\");\r\n }",
"@Override\n public void init(View view) {\n this.view = (BackstoryView) view;\n }",
"private void initViews() {\n\t\t\r\n\t\tTypeface face = Typeface.createFromAsset(getAssets(), \"Teko_Light.ttf\");\r\n\r\n\t\tet_pin = (EditText) findViewById(R.id.et_pin);\r\n\t\tet_pin.setTypeface(face);\r\n\t\tbtn_admin_login = (Button) findViewById(R.id.btn_admin_login);\r\n\t\tbtn_admin_login.setTypeface(face);\r\n\r\n\t\td = new DialogView();\r\n\t}",
"@Override\r\n protected void setupViews(Bundle bundle) {\n initPersonalInfo();\r\n }",
"private void initView(){\n\t\tinitSize();\n\t\tinitText();\n\t\tinitBackground();\n\t\tthis.setOnClickListener(this);\n\t\tthis.setOnLongClickListener(this);\n\t}",
"private void init(Context context) {\n getViewTreeObserver().addOnGlobalLayoutListener(this);\n inflate(context, R.layout.new_rp_resultview, this);\n mMainPanel = (ViewAnimator) findViewById(R.id.viewanimator);\n mInfoPanel = (ViewAnimator) findViewById(R.id.va_text);\n \n \n mInfoPanelText1 = (TextView) mInfoPanel.findViewById(R.id.tv1);\n mMainPanel.setDisplayedChild(0);\n\t}",
"private void initViews() {\n View view = getView();\n if (view != null) {\n edtConfirmPassword = view.findViewById(R.id.edt_reg_confim_password);\n edtConfirmPassword.setTag(\"Confirm Password\");\n edtEmail = view.findViewById(R.id.edt_reg_email);\n edtEmail.setTag(\"Email\");\n edtPhone = view.findViewById(R.id.edt_reg_phone);\n edtPhone.setTag(\"Phone\");\n edtPassword = view.findViewById(R.id.edt_reg_password);\n edtPassword.setTag(\"Password\");\n tv_RegisterSignIn = view.findViewById(R.id.tv_register_sign_in);\n btn_reg_signup = view.findViewById(R.id.btn_reg_signup);\n edtUserName = view.findViewById(R.id.edt_reg_name);\n edtUserName.setTag(\"Name\");\n }\n }",
"protected abstract void setupMvpView();",
"public MainView() {\n initComponents();\n \n }",
"private void loadViews(){\n\t}",
"private View() {}",
"public config() {\n initComponents();\n }",
"private void setViews() {\n\n }",
"@Override \n protected void startup() {\n GretellaView view = new GretellaView(this);\n show( view );\n view.initView(); \n }",
"private void initViews() {\n\t\tet_area = (EditText) findViewById(R.id.et_area);\r\n\t\tbtn_search = (Button) findViewById(R.id.btn_search);\r\n\t\tll_main = (LinearLayout) findViewById(R.id.ll_main);\r\n\t}",
"private void initView() {\n\n SwingUtilities.invokeLater(() -> {\n view = new MainWindow();\n view.setMinimumSize(new Dimension(1080, 720));\n view.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n view.setVisible(true);\n view.aboutListener(actionEvent -> showAboutDialog());\n view.helpListener(actionEvent -> showHelpDialog());\n view.addComboBox(comboBox);\n\n });\n\n }",
"public HomeView() {\n initComponents();\n }",
"void initUI(View x) {\n }",
"@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }",
"@Override\n protected void initView() {\n getPresenter().getRxManager().on(C.EVENT_LOGIN, new Action1<Object>() {\n\n @Override\n public void call(Object o) {\n\n Log.e(TAG, \"call() called with: o = [\" + o.toString() + \"]\"+o.getClass());\n }\n });\n\n }",
"public void initWeidget(View view) {\n\t\tswitch (tem_type) {\n\t\tcase 1:// 数据库\n\t\t\tpagerAdapter = new PagerAdapter<HashMap<String, String>>(getFragmentManager(), mapList,\n\t\t\t\t\tConstants.PageType_data) {\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getName(HashMap<String, String> item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn item.get(\"pro_cn_name\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tbreak;\n\t\tcase 0:// 价格库\n\t\t\tpagerAdapter = new PagerAdapter<HashMap<String, String>>(getFragmentManager(), mapList,\n\t\t\t\t\tConstants.PageType_price) {\n\n\t\t\t\t@Override\n\t\t\t\tpublic String getName(HashMap<String, String> item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn item.get(\"pro_cn_name\");\n\t\t\t\t}\n\n\t\t\t};\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t\tocvp.setAdapter(pagerAdapter);\n\t\tpsts.setViewPager(ocvp);\n\t}",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"@Override\n public void initViews() {\n adapter = new PaymentAdapter(context, MainActivity.os.getPayments());\n ((ListView)views.get(\"LIST_VIEW\")).setAdapter(adapter);\n (views.get(\"ADD_BUTTON\")).setOnClickListener(this);\n }",
"@Override\n public void initialize(URL url, ResourceBundle rb) {\n try {\n model = Model.getInstance();\n setUpTableView();\n setUpIndicator();\n }\n catch (Exception ex) {\n Logger.getLogger(AssignFolderWindowController.class.getName()).log(Level.SEVERE, null, ex);\n EventLogger.log(EventLogger.Level.ERROR, \"An error occured: \" + ex.getMessage());\n }\n }",
"public void init(IViewPart arg0) {\n\n\t}",
"private void initView() {\n\t\tsetContentView(R.layout.activity_main);\n\t\tlv_showdatas = (ListView) findViewById(R.id.lv_datas);\n\t\t\n\t\tmyAdapter = new MyAdapter();\n\t\tlv_showdatas.setAdapter(myAdapter);\n\t\tbt_speak = (Button) findViewById(R.id.bt_speak);\n\t}",
"@Override\n\tprotected void initView() {\n\t\tsuper.initView();\n mLnSelectLanguage = (LinearLayout) findViewById(R.id.lnSelectLanguage);\n mBtnContinue = (Button) findViewById(R.id.btnContinue);\n mEdtPhoneNumber = (EditText) findViewById(R.id.edtPhoneNumber);\n mTvNationNameView = (TextView) findViewById(R.id.tvNationNameView);\n mChkAccept = (CheckBox) findViewById(R.id.chkAccept);\n mTvDieuKhoan = (TextView) findViewById(R.id.tvDieuKhoan);\n mTvNotifi1 = (TextView) findViewById(R.id.tvNotifi1);\n Utils.setTextViewHtml(mTvDieuKhoan,getString(R.string.dieukhoan));\n mLnSelectLanguage.setOnClickListener(this);\n mBtnContinue.setOnClickListener(this);\n mTvDieuKhoan.setOnClickListener(this);\n\n\t}",
"private void init(View view) {\n\t\t\r\n\t\tFunSub = (CustemGallery)view.findViewById(R.id.FragMain_Pack);\r\n\t\t\r\n\t\tfragMain_Pack_CustemCalleryAdapter = new FragMain_Pack_CustemCalleryAdapter(getActivity());\r\n\t\t\r\n\t\tFunSub.setAdapter(fragMain_Pack_CustemCalleryAdapter);\r\n\t\t\r\n\t\t\r\n\t}",
"private void init(View view){\n errorText = (TextView) view.findViewById(R.id.error_text);\n refreshButton = (TextView) view.findViewById(R.id.refreshButton);\n contactList = (ListView) view.findViewById(R.id.contactList);\n\n chatArrayList = new ArrayList<Chat>();\n profileRemoteDAO = new ProfileRemoteDAO(getContext(), this);\n chatRemoteDAO = new ChatRemoteDAO(getContext(), this);\n customArrayAdapter = new CustomArrayAdapter(getContext(), this, chatArrayList, profileRemoteDAO.getUserId());\n contactList.setAdapter(customArrayAdapter);\n }",
"private void initView() {\n\t\tcb_show = (CheckBox) findViewById(R.id.cb_show);\r\n\t\tbtn_next = (Button) findViewById(R.id.btn_next);\r\n\t}"
] | [
"0.7564971",
"0.7463099",
"0.7436261",
"0.74270827",
"0.7362355",
"0.7358974",
"0.7357497",
"0.7350582",
"0.7256072",
"0.72189677",
"0.71929675",
"0.71793646",
"0.71793646",
"0.71506083",
"0.7142233",
"0.71063644",
"0.7077541",
"0.7077541",
"0.70598924",
"0.7032228",
"0.7032228",
"0.7000093",
"0.69832236",
"0.69832236",
"0.6939272",
"0.6852987",
"0.6852987",
"0.6828288",
"0.6814506",
"0.6780324",
"0.67566425",
"0.6716672",
"0.6701891",
"0.66359013",
"0.6616592",
"0.6610272",
"0.65903986",
"0.6579514",
"0.6569609",
"0.6504836",
"0.6500222",
"0.64684105",
"0.6423781",
"0.64204746",
"0.6399969",
"0.6399561",
"0.6365368",
"0.63633865",
"0.63484555",
"0.6314341",
"0.62990975",
"0.62935966",
"0.6290126",
"0.6288586",
"0.6242441",
"0.62421674",
"0.6234421",
"0.6234114",
"0.6214933",
"0.6212623",
"0.61913806",
"0.61725247",
"0.6161359",
"0.6150274",
"0.6141319",
"0.61359584",
"0.61291736",
"0.61248285",
"0.61159337",
"0.6115689",
"0.6109422",
"0.61035764",
"0.610295",
"0.61002356",
"0.60993487",
"0.60770774",
"0.6066205",
"0.60543114",
"0.6050621",
"0.60472614",
"0.60365474",
"0.6032094",
"0.6020018",
"0.6016742",
"0.60099536",
"0.6004653",
"0.60035104",
"0.6000888",
"0.5999056",
"0.5992131",
"0.5988438",
"0.5980725",
"0.59709203",
"0.5964322",
"0.59598637",
"0.59575677",
"0.5956748",
"0.59545046",
"0.5950665",
"0.5942281",
"0.5928827"
] | 0.0 | -1 |
TODO code application logic here | public static void main(String[] args) {
System.out.println("Escribe los tres números:");
Scanner sc = new Scanner(System.in);
Numero numeros = new Numero(sc.nextFloat(),sc.nextFloat(),sc.nextFloat());
numeros.calcularMaior();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void autoDetails() {\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 protected void execute() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"protected void onFirstUse() {}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n protected void execute() {\n \n }",
"@Override\n public void feedingHerb() {\n\n }",
"public void designBasement() {\n\t\t\r\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 gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void execute() {\n \n \n }",
"@Override\n\tpublic void view() {\n\t\t\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\r\n protected void fetchData() {\n\r\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\n public void onCancelled(CancelledException arg0) {\n }",
"@Override\r\n\t\t\tprotected void saveContext() {\n\t\t\t\t\r\n\t\t\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}",
"@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"private static void oneUserExample()\t{\n\t}",
"@Override\n public void onCancelled(CancelledException arg0) {\n\n }",
"@Override\n protected void execute() {\n\n }",
"public void logic(){\r\n\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t\t \n\t\t\t super.onPreExecute();\n\t\t}",
"@Override\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\r\n\tprotected void onPreExecute() {\n\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}",
"@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void redibujarAlgoformers() {\n\t\t\n\t}",
"@Override\n protected void startUp() {\n }",
"protected void mo6255a() {\n }",
"protected void viewSetup() {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tpublic void manage() {\n\t\t\r\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"private void poetries() {\n\n\t}",
"public void mo38117a() {\n }",
"@Override\n\tpublic void queryData() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t}",
"@Override\n\tpublic void getStatus() {\n\t\t\n\t}",
"protected void index()\r\n\t{\n\t}",
"@Override\n protected void onPreExecute() {\n \n }",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6082568",
"0.5913159",
"0.5844445",
"0.58351505",
"0.581159",
"0.575886",
"0.5741742",
"0.5722983",
"0.57077605",
"0.5667302",
"0.5660212",
"0.56133604",
"0.561261",
"0.561261",
"0.5596802",
"0.5594944",
"0.557857",
"0.5573299",
"0.5567435",
"0.55486387",
"0.5536881",
"0.55354965",
"0.5534435",
"0.5469041",
"0.5462494",
"0.5444488",
"0.5431441",
"0.542305",
"0.54225206",
"0.54225206",
"0.5417206",
"0.53777087",
"0.53685355",
"0.5364482",
"0.5362287",
"0.5330373",
"0.5328605",
"0.5328605",
"0.5326248",
"0.53228897",
"0.53206074",
"0.5311253",
"0.5310774",
"0.5307674",
"0.5299073",
"0.52984184",
"0.52984184",
"0.52984184",
"0.5295585",
"0.52954054",
"0.5284093",
"0.5279334",
"0.5279334",
"0.52729785",
"0.52701396",
"0.52678275",
"0.5267085",
"0.52630967",
"0.52629685",
"0.525921",
"0.5255334",
"0.5254829",
"0.5246719",
"0.5244053",
"0.52381295",
"0.523649",
"0.52246886",
"0.5224552",
"0.52244025",
"0.52207154",
"0.52202666",
"0.5216567",
"0.5207913",
"0.52047724",
"0.5197085",
"0.5194873",
"0.5194127",
"0.5187583",
"0.5181503",
"0.5181503",
"0.5177967",
"0.51757514",
"0.51757514",
"0.51757514",
"0.51757514",
"0.51757514",
"0.51757514",
"0.5174267",
"0.5174267",
"0.5171048",
"0.5170343",
"0.51659155",
"0.51599836",
"0.5157835",
"0.5157622",
"0.51531744",
"0.5152915",
"0.5150129",
"0.51492256",
"0.5144795",
"0.51426333"
] | 0.0 | -1 |
Created by PauLinHo on 17/01/2018. | public interface IStrategy<T extends Object> {
static final String BITCOIN_BASE64 = "1NwaKCqfb532vVRFmBAixPbGQJhTfwpbzk";
static final String BITCOIN = "BITCOIN";
SimpleDateFormat SDF_DDMMYYYY_HHMMSS = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
SimpleDateFormat SDF_DDMMYYYY = new SimpleDateFormat("yyyy/MM/dd");
LinkedList<T> getObjects(String dados);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"public final void mo51373a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void poetries() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n protected void getExras() {\n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\n\tpublic void anular() {\n\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"public void mo4359a() {\n }",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public int getOrder() {\n return 0;\n }",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n public int getSize() {\n return 1;\n }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"public void mo12628c() {\n }",
"@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\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n public void init() {\n }",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tprotected void doF4() {\n\t\t\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 protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n public int getOrder() {\n return 4;\n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public String toString() {\n return \"\";\n }",
"@Override\n void init() {\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"protected MetadataUGWD() {/* intentionally empty block */}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n protected void initialize() {\n\n \n }",
"private Rekenhulp()\n\t{\n\t}",
"public void mo12930a() {\n }",
"@Override\r\n\tpublic void init() {}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public final void mo91715d() {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"public void mo6081a() {\n }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n public void init() {}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\tpublic void just() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\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\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"private void init() {\n\n\t}",
"public void Tyre() {\n\t\t\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initialize() {\n\n\t}"
] | [
"0.5858172",
"0.5730281",
"0.5687612",
"0.55761266",
"0.55761266",
"0.5560818",
"0.55303097",
"0.5507796",
"0.55039537",
"0.54594743",
"0.545888",
"0.54580426",
"0.54568607",
"0.5411961",
"0.54103965",
"0.53979385",
"0.5394361",
"0.537928",
"0.5363684",
"0.5326079",
"0.53247905",
"0.53242147",
"0.5322575",
"0.53157777",
"0.5307761",
"0.530447",
"0.5263388",
"0.52545404",
"0.5249364",
"0.5223744",
"0.52118886",
"0.52064073",
"0.5192993",
"0.51888824",
"0.5186977",
"0.51800156",
"0.5179265",
"0.5171504",
"0.51674616",
"0.51370084",
"0.5134781",
"0.51286775",
"0.51286775",
"0.51286775",
"0.51286775",
"0.51286775",
"0.5123257",
"0.51228917",
"0.5104955",
"0.5104534",
"0.51016885",
"0.5093718",
"0.5093718",
"0.5093718",
"0.5093718",
"0.5093718",
"0.5093718",
"0.5093718",
"0.5090843",
"0.5090843",
"0.5090843",
"0.5090843",
"0.5090843",
"0.5090843",
"0.5090627",
"0.50902885",
"0.5089354",
"0.50852436",
"0.50802016",
"0.50745505",
"0.5070807",
"0.50652474",
"0.50605136",
"0.5054701",
"0.50523436",
"0.5050003",
"0.50488836",
"0.50484",
"0.50484",
"0.5045597",
"0.5042626",
"0.50407404",
"0.5040596",
"0.5040596",
"0.503681",
"0.50366455",
"0.5036327",
"0.5034593",
"0.50279564",
"0.50279564",
"0.50279564",
"0.50242525",
"0.5023181",
"0.5023181",
"0.5023181",
"0.50084245",
"0.49988443",
"0.49979553",
"0.49965662",
"0.49964574",
"0.49942634"
] | 0.0 | -1 |
Default constructor for a floor. | public Floor(){
populateRooms();
level = new Room[5][5];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"FloorType createFloorType();",
"public Floor(int floorNum)\n { System.out.print(\"Initializing Floor #\" + floorNum + \"...\\n\");\n this.floorNum= floorNum;\n this.occupants=0;\n }",
"public FloorCrate(int x, int y){\r\n super(null, \"There is nothing interesting here.\", x, y);\r\n }",
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"public Floor() {\r\n\t\tRoom[][] rooms = new Room[Constants.WIDTH][Constants.LENGTH];\r\n\t\tfor (int i = 0; i < Constants.WIDTH; i++) {\r\n\t\t\tfor (int j = 0; j < Constants.LENGTH; j++) {\r\n\t\t\t\trooms[i][j] = GenerationUtilities.randomRoom(i, j);\r\n\t\t\t\trooms[i][j].setFloor(this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tthis.rooms = rooms;\r\n\t\tthis.length = rooms.length;\r\n\t\tthis.width = rooms[0].length;\r\n\t\tGenerationUtilities.placeRandomItems(this);\r\n\t\tenemies = new ArrayList<>();\r\n\t}",
"public void setFloor(double input) {\r\n floor=input;\r\n }",
"public TileFloor(int x, int y)\r\n {\r\n random = new Random(12345);\r\n ROWS = DEFAULT_ROWS;\r\n COLUMNS= DEFAULT_COLUMNS;\r\n this.x = x;\r\n this.y = y;\r\n }",
"public String getFloor() {\n return this.floor;\n }",
"public int getFloor() {\n return floor;\n }",
"public String getFloor() {\n\t\treturn floor;\n\t}",
"public int getFloor();",
"public Floor floor() {\r\n\t\treturn this.floor;\r\n\t}",
"public FloorCrate(Crate r, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(r);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") : \r\n get(size()-1).description;\r\n }",
"public void setFloorLimit(java.lang.String floorLimit) {\r\n this.floorLimit = floorLimit;\r\n }",
"public Elevator(int floorCnt) {\n\t\tthis.floorCnt = floorCnt;\n\t\tinitialize();\n\t}",
"public TileFloor( int x, int y, int rows, int columns)\r\n {\r\n random = new Random(12345);\r\n ROWS = rows;\r\n COLUMNS= columns;\r\n this.x = x;\r\n this.y = y;\r\n }",
"public void setDefault(int floorNum) {\n\t\t\n\t\tDEFAULT = floorNum;\n\t\tcurrFloor = DEFAULT;\n\t}",
"public int getFloorNumber(){\r\n\t\treturn iFloorNumber;\r\n\t}",
"public TileStoneFloor(int id, String name, int index)\n\t{\n\t\tsuper(id, name, index);\n\t}",
"public Vector2f floor() {\n x = (float) Math.floor(x);\n y = (float) Math.floor(y);\n return this;\n }",
"public Car(int floor, String color){\n\t\tthis.carPosition = floor;\n\t\tthis.carColor = color;\n\t}",
"public int getMinFloor();",
"public int getCurrentFloor();",
"public FloorCrate(Item i, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n push(i);\r\n }",
"@JSProperty(\"floor\")\n void setFloor(double value);",
"public Room() {\n\t\twall=\"\";\n\t\tfloor=\"\";\n\t\twindows=0;\n\t}",
"public int floorNumber() {\n return _number;\n }",
"@Nullable\n/* */ public Floor getFloor(int floorLevel) {\n/* 6423 */ if (this.floors != null)\n/* */ {\n/* 6425 */ for (Floor floor : this.floors) {\n/* */ \n/* 6427 */ if (floor.getFloorLevel() == floorLevel)\n/* 6428 */ return floor; \n/* */ } \n/* */ }\n/* 6431 */ return null;\n/* */ }",
"public Request(int floorIn) throws InvalidParamException {\n if (floorIn < 1 || floorIn > Building.getInstance().getNumFloors()) {\n throw new InvalidParamException(\"Invalid floorIn in Request c'tor\");\n }\n floor = floorIn;\n direction = null;\n }",
"public PaxosRound createRound()\n {\n return createRound(0);\n }",
"public BasicSensor() {}",
"public FloorImpl(int story) throws InvalidParameterException {\n\t\tsetStory(story);\n\t\tpeople = new ArrayList<Person>();\n\t\tcontrolBox = new ControlBox(getStory());\n\t}",
"Elevator() {\n _currentFloor = Floor.FIRST;\n _passengersOnboard = 0;\n _directionOfTravel = DirectionOfTravel.UP;\n\n }",
"public Elevator(ElevatorSpecs spec, int[] floors, float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n zonedFloors = floors; \n }",
"public Level(String name) {\n\t\t\n\t\tthis.name = name;\n\t\t\n\t\ttry {\n\t\t\tlevelType = new LevelType(DEFAULT_LEVEL_TYPE, true);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(0);\n\t\t}\n//\t\tscreen = new Screen(300*3/SCREEN_SCALE, 168*3/SCREEN_SCALE, SCREEN_SCALE);\n\t\tscreen = new Screen(Game.width/SCREEN_SCALE, Game.height/SCREEN_SCALE, SCREEN_SCALE);\n\t\t\n\t\twidth = 800;\n//\t\theight = 500;\n\t\theight = 200;\n\t\t\n\t\tWall wall0 = new Wall(100,80,30,40);\n\t\tWall wall1 = new Wall(166,80,16,40);\n\t\t\n\t\t//Construct a default level\n\t\tFloor defaultFloor0 = new Floor(1,44,62, \"Floor 0\");\n\t\tFloor defaultFloor1 = new Floor(53,60,96, \"Floor 1\");\n\t\tFloor defaultFloor2 = new Floor(70,50,96, \"Floor 2\");\n\t\tFloor defaultFloor3 = new Floor(90,40,96, \"Floor 3\");\n\t\t\n\t\tPlatform pf0 = new Platform(186,40,100);\n\t\tPlatform pf1 = new Platform(130,80,36);\n\t\t\n\t\tBackground bg = new Background();\n\t\tadd(bg);\n\t\t\n\t\t//Background scrolling slower is probably going to have to wait a bit\n//\t\tBackgroundObject bgo = new BackgroundObject(100,25, 2);\n//\t\tadd(bgo);\n\t\t\n\t\tCoin c0 = new Coin(10, 44);\n\t\t\n\t\t\n\t\t//Note well- floors should be added in decreasing order of height, starting with the tallest.\n\t\t//\tWay to sort objects by a variable?\n\t\tadd(defaultFloor1);\n\t\tadd(defaultFloor2);\n\t\tadd(defaultFloor3);\n\t\tadd(defaultFloor0);\n\t\t\n\t\tadd(wall0);\n\t\tadd(wall1);\n\t\tadd(pf0);\n\t\tadd(pf1);\n\t\t\n\t\tadd(c0);\n\t\t\n\t}",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"public Light(){\n this(0.0, 0.0, 0.0);\n }",
"public int currentFloor(){\n return currentFloor;\n }",
"public QuestObj floor(int key) {\n Node x = floor(root, key);\n if (x == null)\n return null;\n return new QuestObj(x.key, x.val);\n }",
"Unit() {\n\t\tthis(new Apfloat(\"0.0\", APFLOATPRECISION), SCALAR, 1);\n\t}",
"public FloorCrate(ArrayList<Item> ary, int x, int y){\r\n super(null, \"You shouldn't be reading this.\", x, y);\r\n addAll(ary);\r\n description = isEmpty() ? new Description(\"tile\", \"There is nothing interesting here.\") :\r\n get(size()-1).description;\r\n }",
"public Line()\n\t{\n\t\tthis(1.0f, 1.0f, 0.0f);\n\t}",
"public Elevator() {\n currentFloor = 1;\n elevatorState = IDLE;\n request = null;\n }",
"public WallTile()\n\t{\n\t\t\n\t}",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"@Override\n\tpublic Structure createNew() {\n\t\treturn new FloorSwitch();\n\t}",
"public void setCurrentFloor(int i);",
"@JSProperty(\"floor\")\n double getFloor();",
"public Location(int id, int x, int y, String floor, String code, String name){\n this(id,x,y,floor,code);\n requireNonNull(name);\n if (!name.equals(\"\")) this.name = name;\n }",
"public final void addFloor(Floor floor) {\n/* 6453 */ if (this.floors == null)\n/* 6454 */ this.floors = new HashSet<>(); \n/* 6455 */ this.floors.add(floor);\n/* 6456 */ if (floor.isStair())\n/* */ {\n/* 6458 */ Stairs.addStair(hashCode(), floor.getFloorLevel());\n/* */ }\n/* 6460 */ if (this.vitems != null)\n/* */ {\n/* 6462 */ for (Item pile : this.vitems.getPileItems())\n/* */ {\n/* 6464 */ pile.updatePosZ(this);\n/* */ }\n/* */ }\n/* 6467 */ if (this.watchers != null)\n/* */ {\n/* 6469 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6473 */ vz.updateFloor(this.structure.getWurmId(), floor);\n/* */ }\n/* 6475 */ catch (Exception e) {\n/* */ \n/* 6477 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ }",
"public IntervalNode(int low, int high, Object proxy) {\n\t// if the user gave high < low, reverse it\n\tif (high < low) {\n\t int lowtemp = low;\n\t low = high;\n\t high = lowtemp;\n\t}\n\n\t// set the internal values\n\tthis.low = low;\n\tthis.high = high;\n\tthis.max = high;\n\tthis.min = low;\n\n\t// node is \"free\" floating\n\tthis.right = nullIntervalNode;\n\tthis.left = nullIntervalNode;\n\tthis.p = nullIntervalNode;\n\n\tthis.proxyObj = proxy;\n\n\t//System.out.println(low + \" \" + high + \" \" + proxy);\n }",
"public Shape() { this(X_DEFAULT, Y_DEFAULT); }",
"public T caseFloorCast(FloorCast object) {\n\t\treturn null;\n\t}",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public ElectricShower() {\r\n\t\tthis(12, 0, 4);\r\n\t}",
"public static IntValueSelector mid_value_selector(boolean floor) {\n return new IntDomainMiddle(floor);\n }",
"public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }",
"public Elevator() {\n\t\tthis.motor = new Motor(this);\n\t\tthis.door = new Door(false);\n\t\tthis.elevatorButtons = new HashMap<Integer, ElevatorButton>();\n\t\t\n\t\tgenerateElevatorButtons();\n\n\t\tstate = new ElevatorState(Floor.MINIMUM_FLOOR_NUM, Direction.STATIONARY, Floor.MINIMUM_FLOOR_NUM);\n\t}",
"public Wall(Point loc,int _length) {\n\t\tlocation=loc;\n\t\tlength=_length;\n\t\timage = new Rectangle(loc.getX(),loc.getY(),10,_length);\n\t\timage.setFill(Color.WHITE);\n\t}",
"public IntervalNode(int low, int high) {\n\tthis(low,high,null);\n }",
"Rectangle()\n {\n this(1.0,1.0);\n }",
"public Elevator(ElevatorSpecs spec, int[] floors, int zonedFloors[], float currentFloor) {\n specs = spec;\n this.floors = floors;\n currentPassengers = new LinkedList<Passenger>();\n queue = new LinkedList<ElevatorQueueObject>();\n waitingTime = 0;\n this.currentFloor = currentFloor;\n distancePerFloor = (float)specs.getBuildingHeight() / (float)specs.getFloors();\n totalWaitTime = new BigInteger(\"0\");\n totalTravelTime = new BigInteger(\"0\");\n totalTravelDistance = new BigDecimal(\"0\");\n passengersServed = new BigInteger(\"0\"); \n this.zonedFloors = zonedFloors;\n }",
"public Room(int noOfWindows) {\n\t\tthis.windows = noOfWindows;\n\t\tthis.floor=\"\";\n\t\tthis.wall=\"\";\n\t}",
"public ScaleInformation() {\n\t\tthis(0.0, 0.0, 800.0, 540.0, 800, 540);\n\t}",
"public Person(Person o){\n destinationFloor=o.getDestinationFloor();\n }",
"public Loan() {\n this(2.5, 1, 1000);\n }",
"public Camera() {\r\n this(1, 1);\r\n }",
"public java.lang.String getFloorLimit() {\r\n return floorLimit;\r\n }",
"private RoundOffUtil()\n {\n\n }",
"@SuppressWarnings(\"unused\")\n private Flight() {\n this(null, null, null, null, null, null, null, null, null, null, null);\n }",
"public Circle() {\n this( 1.0 ); \n }",
"protected String getFloorDescription(int floorNumber) {\n return \"Floor \" + (floorNumber + 1);\n }",
"public Rectangle() {\n this(50, 40);\n }",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}",
"public Wall(int x, int y)\r\n\t{\r\n\t\tsuper(x,y);\r\n\t}",
"public Room () {\n humidity = null;\n temperature = null;\n illumination = null;\n }",
"Fraction () {\n this (0, 1);\n }",
"public String floorName() {\n return _name;\n }",
"public WaterMeter()\r\n\t{\r\n\t\tsuper(DeviceTypeEnum.WATER_METER);\r\n\t}",
"public Round() {\n\t\tthis.niceMoves = null;\n\t\tthis.roundNo = 1;\n\t}",
"public DateTime() {\n this((BusinessObject) null);\n }",
"public Rol() {}",
"public InternalFloaterFactory() {\n super();\n }",
"public Building() {\n\t}",
"public ADocument(Number min, Number max) {\n this.min = min;\n this.max = max;\n\n if (min.getClass().equals(Byte.class)) {\n currentVal = new Byte((byte) 0);\n } else {\n if (min.getClass().equals(Short.class)) {\n currentVal = new Short((short) 0);\n } else {\n if (min.getClass().equals(Integer.class)) {\n currentVal = new Integer(0);\n } else {\n if (min.getClass().equals(Long.class)) {\n currentVal = new Long(0L);\n } else {\n if (min.getClass().equals(Float.class)) {\n currentVal = new Float(0f);\n } else {\n currentVal = new Double(0d);\n }\n }\n }\n }\n }\n }",
"public Rational() {\n\t\tthis(1,1);\n\t}",
"public Intervals() {\n }",
"public Room (Float temperature, Float humidity, Float illumination) {\n this.temperature = temperature;\n this.humidity = humidity;\n this.illumination = illumination;\n }",
"public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }",
"public void makeRequest(int floor) {\n }",
"public NullUnit() {\n super(1, 0, new InvalidLocation(), 0);\n }",
"public Room() {\n\n\t}",
"public AOI() \n {\n westLongitude = -180;\n eastLongitude = 180;\n southLatitude = -90;\n northLatitude = 90;\n }",
"public HiloM() { }",
"protected IntervalNode() {\n\tthis.low = -1;\n\tthis.high = -1;\n\tthis.max = -1;\n\tthis.min = -1;\n\tthis.right = this;\n\tthis.left = this;\n\tthis.p = this;\n }",
"public Doolhof()\n {\n this(255, 255, new RechtKaart(1, false));\n }",
"public Elevator(int elevatorID) {\n this.elevatorID = elevatorID;\n currentFloor = 0;\n }",
"public Building() {\n mElevators = new ArrayList<>();\n mFloors = new ArrayList<>();\n }",
"public Boleto() {\n this(3.0);\n }"
] | [
"0.71335346",
"0.7086641",
"0.707227",
"0.6874935",
"0.6809516",
"0.6751117",
"0.64884907",
"0.63746965",
"0.63397765",
"0.63264567",
"0.62125105",
"0.616386",
"0.6146007",
"0.6031966",
"0.60018295",
"0.59997207",
"0.5989642",
"0.5982826",
"0.5980521",
"0.59420115",
"0.5919228",
"0.59034127",
"0.58054984",
"0.5796698",
"0.5759503",
"0.5755067",
"0.5699723",
"0.56937057",
"0.566486",
"0.56482184",
"0.56450236",
"0.56420344",
"0.5640213",
"0.5627541",
"0.562432",
"0.55841875",
"0.5561778",
"0.55592185",
"0.5552639",
"0.5504542",
"0.54955554",
"0.54882604",
"0.54806167",
"0.54794914",
"0.54669964",
"0.54654014",
"0.5464778",
"0.5438557",
"0.54156846",
"0.54140186",
"0.5407255",
"0.54028225",
"0.5399703",
"0.5375186",
"0.5373173",
"0.5373173",
"0.53407586",
"0.53343993",
"0.5311435",
"0.5306767",
"0.5294503",
"0.52905905",
"0.5288372",
"0.52862096",
"0.5278378",
"0.5264825",
"0.5244361",
"0.52431536",
"0.52388847",
"0.5231821",
"0.52311015",
"0.52236",
"0.52219987",
"0.5217467",
"0.52131635",
"0.5203605",
"0.5199214",
"0.51948464",
"0.5190984",
"0.5189305",
"0.5186999",
"0.5179272",
"0.5172715",
"0.5171352",
"0.5170367",
"0.5155444",
"0.51470965",
"0.51365715",
"0.51317483",
"0.5131628",
"0.5128571",
"0.51266795",
"0.51215905",
"0.51192886",
"0.5109504",
"0.51063627",
"0.51036483",
"0.51036006",
"0.51031566",
"0.51008826",
"0.50920177"
] | 0.0 | -1 |
Add enemies and items to the room. | public void populateRooms(){
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void addEnemies() {\n\t\tred_ghost = new Enemy();\r\n\t\tthis.add(red_ghost);\r\n\t\tenemies.add(red_ghost);\r\n\t\t\r\n\t}",
"public void addEnemy(Enemy enem)\r\n\t{\r\n\t\tenemy.add(new Enemy(enem));\r\n\t}",
"private void createBasicEnemies() {\n\t\tint xTemp1 = (int) app.random(60, 500);\n\t\tint xTemp2 = (int) app.random(650, 1140);\n\t\tint yTemp = -60;\n\t\t\n\t\t//Contador para crear enemigo cada cierto tiempo\n\t\tapp.frameRate(80);\n\t\t\n\t\t//Agregar enemigos basicos\n\t\tif (app.frameCount%120 == 0) {\n\t\t\tbasicEnemies1.add(new BasicEnemy(app, xTemp1, yTemp));\n\t\t\tbasicEnemies2.add(new BasicEnemy(app, xTemp2, yTemp));\n\t\t}\n\t\t\n\t\t//Agregar enemigos que disparan\t\t\n\t\tif (app.frameCount%250 == 0) {\n\t\t\thardEnemies1.add(new HardEnemy(app, xTemp1, yTemp));\n\t\t\thardEnemies2.add(new HardEnemy(app, xTemp2, yTemp));\n\t\t}\n\t}",
"public void addToGame(GameLevel g) {\r\n for (Enemy e : enemies) {\r\n e.addToGame(g);\r\n }\r\n }",
"public void addSpawners(Room room) {\n\t\tint shiftX = (map.chunkX * 16) - (map.room.length / 2) + 8;\n\t\tint shiftZ = (map.chunkZ * 16) - (map.room.length / 2) + 8;\n\t\t//for(Room room : rooms) {\t\t\t\n\t\t\t//DoomlikeDungeons.profiler.startTask(\"Adding to room \" + room.id);\n\t\t\tfor(Spawner spawner : room.spawners) {\n\t\t\t\t\tDBlock.placeSpawner(map.world, shiftX + spawner.x, spawner.y, shiftZ + spawner.z, spawner.mob);\n\t\t\t}\n\t\t\tfor(BasicChest chest : room.chests) {\n\t\t\t\tchest.place(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz, random);\n\t\t\t}\n\t\t\t//DoomlikeDungeons.profiler.endTask(\"Adding to room \" + room.id);\n\t\t//}\t\n\t}",
"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 }",
"public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\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 enemyEncounter()\n {\n currentEnemies = currentRoom.getEnemies();\n \n if(currentEnemies.size() > 0)\n {\n for(Enemy e : currentEnemies)\n {\n System.out.println(\"\\n\" + \"A \" + e.getName() + \" stares menacingly!\" + \"\\n\");\n enemyName = e.getName();\n \n }\n enemyPresent = true;\n clearExits();\n }\n else{\n setExits(); \n }\n }",
"private void generateEnemies(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tEnemy enemy = new Enemy(coordX,coordY);\n\t\tenemies.put(0, enemy);\n\t\tcoordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tcoordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tenemy = new Enemy(coordX,coordY);\n\t\tenemies.put(1, enemy);\n\t}",
"private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila = new Item(\"Mochila\",1,50,true,true);\n medicamentos = new Item(\"Medicamentos\",5,10,true,false);\n comida = new Item(\"Comida\",2,5,true,false);\n itemInutil = new Item(\"Inutil\",10,0,false,false);\n itemPesado = new Item(\"Pesas\",50,0,false,false);\n\n // create the rooms\n inicio = new Room(\"Tu celda de la prision\");\n pasilloCeldas = new Room(\"Pasillo donde se encuentan las celdas\");\n celdaVacia1 = new Room(\"Celda vacia enfrente de la tuya\");\n celdaVacia2 = new Room(\"Celda de tu compaņero, esta vacia\");\n pasilloExterior = new Room(\"Pasillo exterior separado de las celdas\");\n vestuarioGuardias = new Room(\"Vestuario de los guardias de la prision\");\n comedorReclusos = new Room(\"Comedor de reclusos\");\n enfermeria = new Room(\"Enfermeria de la prision\");\n ventanaAbierta = new Room(\"Saliente de ventana de la enfermeria\");\n salidaEnfermeria = new Room(\"Salida de la prision por la enfermeria\");\n patioReclusos = new Room(\"Patio exterior de los reclusos\");\n tunelPatio = new Room(\"Tunel escondido para escapar de la prision\");\n salidaPatio = new Room(\"Salida de la prision a traves del tunel del patio\");\n\n // initialise room items\n\n comedorReclusos.addItem(\"Comida\",comida);\n enfermeria.addItem(\"Medicamentos\",medicamentos);\n pasilloCeldas.addItem(\"Inutil\",itemInutil);\n patioReclusos.addItem(\"Pesas\",itemPesado);\n vestuarioGuardias.addItem(\"Mochila\",mochila);\n\n // initialise room exits\n\n inicio.setExits(\"east\", pasilloCeldas);\n pasilloCeldas.setExits(\"north\",pasilloExterior);\n pasilloCeldas.setExits(\"east\",celdaVacia1);\n pasilloCeldas.setExits(\"south\",patioReclusos);\n pasilloCeldas.setExits(\"west\",inicio);\n pasilloCeldas.setExits(\"suroeste\",celdaVacia2);\n celdaVacia1.setExits(\"west\", pasilloCeldas);\n pasilloExterior.setExits(\"north\",comedorReclusos);\n pasilloExterior.setExits(\"west\",enfermeria);\n pasilloExterior.setExits(\"east\",vestuarioGuardias);\n comedorReclusos.setExits(\"south\", pasilloExterior);\n enfermeria.setExits(\"east\",pasilloExterior);\n enfermeria.setExits(\"south\", ventanaAbierta);\n ventanaAbierta.setExits(\"north\",enfermeria);\n ventanaAbierta.setExits(\"south\", salidaEnfermeria);\n patioReclusos.setExits(\"north\", pasilloCeldas);\n patioReclusos.setExits(\"east\", tunelPatio);\n tunelPatio.setExits(\"east\",salidaPatio);\n tunelPatio.setExits(\"west\", patioReclusos);\n // casilla de salida\n\n return inicio;\n }",
"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 }",
"private void addUpdateablesToGameLoop(){\n GameLoop.getInstance().addUpdateables(playerController.getPlayers().get(0));\n for (Enemy e : enemyController.getEnemies()){\n GameLoop.getInstance().addUpdateables(e);\n }\n\n GameLoop.getInstance().addUpdateables(foodController.getFood().get(0));\n }",
"public void add(WorldObject obj) {\n\troomList.add(obj);\n}",
"private void generateEnemies() {\n for(int i =0; i < currentEnemies.length; i++) {\n Attributes a = genAttributes();\n double[] healthSpeed = genHealthAndSpeed();\n LinkedList<Pathing> paths = map.getPathings();\n this.currentEnemies[i] = new Enemy(determineImage(a, healthSpeed[0]), healthSpeed[0], healthSpeed[1], 10+currentDifficulty/20, a, paths);\n }\n\n }",
"public void addItemToRoom(Item item) {\n this.ItemsInRoom.put(item.getName(), item);\n }",
"public void updateEnemies() {\n for (Map.Entry<Integer, Enemy> entry :enemies.entrySet()) {\n entry.getValue().update(mainPlayerPosX, mainPlayerPosY);\n if (entry.getValue().isDead()) {\n enemiesSize--;\n }\n }\n }",
"@Override\n\tpublic void loadEnemies() {\n\t\t\n\t}",
"private void addEnemyPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (egrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tegrid[x][y] = 2;\n\t\t}\n\t}",
"public static void main(String[] args) {\n\tArrayList<Item> hallInventory = new ArrayList<>();\n\tArrayList<Exit> hallExits = new ArrayList<>();\n\tRoom Hall = new Room(\"Entrance Hall\", \"It is an entrance hall of a very grand house\", hallInventory, hallExits);\n\n\t//kitchen\n\tArrayList<Item> kitchenInventory = new ArrayList<>();\n\tArrayList<Exit> kitchenExits = new ArrayList<>();\n\tRoom Kitchen = new Room(\"Kitchen\", \"This is a very large kitchen.\", kitchenInventory, kitchenExits);\n\n\t//dining room\n\tArrayList<Item> diningInventory = new ArrayList<>();\n\tArrayList<Exit> diningExits = new ArrayList<>();\n\tRoom Dining = new Room(\"Dining Room\", \"This dining room is set for 12 people\", diningInventory, diningExits);\n\n\t//lounge\n\tArrayList<Item> loungeInventory = new ArrayList<>();\n\tArrayList<Exit> loungeExits = new ArrayList<>();\n\tRoom Lounge = new Room(\"Lounge\", \"The Lounge is a mess, and there are blood spatters on the wall\", loungeInventory, loungeExits);\n\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"Fill rooms with objects\">\n\thallInventory.add(new Item(\"a fruit bowl\", \"The fruit bowl contains some fruit\"));\n\thallInventory.add(new Item(\"a clock\", \"Tick Tock\"));\n\tkitchenInventory.add(new Item(\"a stove\", \"The stove is very hot\"));\n\tkitchenInventory.add(new Item(\"a knife\", \"The knife is blunt\"));\n\t//</editor-fold>\n\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"add exits to rooms\">\n\thallExits.add(new Exit(1, Lounge));\n\thallExits.add(new Exit(4, Dining));\n\tloungeExits.add(new Exit(2, Hall));\n\tdiningExits.add(new Exit(3, Hall));\n\tdiningExits.add(new Exit(4, Kitchen));\n\tkitchenExits.add(new Exit(3, Dining));\n\t//</editor-fold>\n\n\t//create character : Avatar\n\t//<editor-fold defaultstate=\"collapsed\" desc=\"character creation\">\n\tArrayList<Item> invent = new ArrayList<>();\n\tCharacter Avatar = new Character(\"Tethys\", \"A tall elf dressed in armour\", 100, invent);\n\tinvent.add(new Item(\"armour\", \"leather armour\"));\n\t//</editor-fold>\n\t//begin\n\tRoom currentLoc = Hall;\n\tSystem.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\tcurrentLoc.printInventory();\n\tcurrentLoc.printExits();\n\n\tBufferedReader command = new BufferedReader(new InputStreamReader(System.in));\n\tString orders = null;\n\twhile (true) {\n\t System.out.print(\"What do you want to do? \");\n\t try {\n\t\torders = command.readLine();\n\t } catch (IOException ioe) {\n\t\tSystem.out.println(\"I'm sorry, I didn't understand that!\");\n\t\tSystem.exit(1);\n\t }\n\n\t String[] orderWords = orders.split(\" \");\n\n//\t for (String s : orderWords){\n//\t\tSystem.out.print(s);\n\t switch (orderWords[0].toLowerCase()) {\n\t\tcase \"go\":\n\t\t int count = 0;\n\t\t for (Exit e : currentLoc.getExits()) {\n\t\t\tString direct = orderWords[1].toUpperCase();\n\t\t\tif (direct.equals(e.getDirectionName())) {\n\t\t\t currentLoc = e.getLeadsTo();\n\t\t\t count++;\n\t\t\t System.out.print(\"You are standing in the \" + currentLoc.getName() + \"\\n\" + currentLoc.getDesc() + \"\\n\");\n\t\t\t currentLoc.printInventory();\n\t\t\t currentLoc.printExits();\n\t\t\t break;\n\t\t\t}\n\t\t }\n\t\t if (count == 0) {\n\t\t\tSystem.out.print(\"I'm sorry, I can't go that way.\\n\");\n\t\t }\n\t\t break;\n\n\t\tcase \"pick\":\n\n\n\t\tcase \"put\":\n\n\n\t\tcase \"exit\":\n\t\t System.exit(0);\n\t\t break;\n\t }\n\n\t}\n\n\n }",
"private void setEnemy(){\n depths.setEnemy(scorpion);\n throne.setEnemy(rusch);\n ossuary.setEnemy(skeleton);\n graveyard.setEnemy(zombie);\n ramparts.setEnemy(ghoul);\n bridge.setEnemy(concierge);\n deathRoom1.setEnemy(ghost);\n deathRoom2.setEnemy(cthulu);\n deathRoom3.setEnemy(wookie); \n }",
"void makeMoreRooms() {\n\t\twhile(rooms.size() < size.maxRooms) {\n\t\t\t\tRoom made;\n\t\t\t\tint height = baseHeight;\n\t\t\t\tint x = random.nextInt(size.width);\n\t\t\t\tint z = random.nextInt(size.width);\n\t\t\t\tint xdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tint zdim = random.nextInt(size.maxRoomSize - 5) + 6;\n\t\t\t\tif(bigRooms.use(random)) {\n\t\t\t\t\txdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t\tzdim += random.nextInt((size.maxRoomSize / 2)) + (size.maxRoomSize / 2);\n\t\t\t\t}\n\t\t\t\tint ymod = (xdim <= zdim) ? (int) Math.sqrt(xdim) : (int) Math.sqrt(zdim);\n\t\t\t\tint roomHeight = random.nextInt((verticle.value / 2) + ymod + 1) + 2;\n\t\t\t\tmade = new PlaceSeed(x, height, z).growRoom(xdim, zdim, roomHeight, this, null, null);\n\t\t\t}\t\t\n\t\t//DoomlikeDungeons.profiler.endTask(\"Adding Extra Rooms (old)\");\n\t\t}",
"protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}",
"public void popEnemies() {\n\t\t\n\t\tEnemyList.add(orc);\n\t\tEnemyList.add(goblin);\n\t\tEnemyList.add(necromancer);\n\t\tEnemyList.add(troll);\n\t\tEnemyList.add(minotaur);\n\t\tEnemyList.add(hydra);\n\t\tEnemyList.add(zombie);\n\t\tEnemyList.add(thrall);\n\t\tEnemyList.add(demon);\n\t\tEnemyList.add(witch);\n\t\tEnemyList.add(boss);\n\t}",
"private void createEnemy()\n {\n scorpion = new Enemy(\"Giant Scorpion\", 5, 10); \n rusch = new Enemy(\"Mr. Rusch\", 10, 1000);\n skeleton = new Enemy(\"Skeleton\", 10, 50);\n zombie = new Enemy(\"Zombie\", 12, 25);\n ghoul = new Enemy(\"Ghoul\", 15, 45);\n ghost = new Enemy(\"Ghost\", 400, 100);\n cthulu = new Enemy(\"Cthulu\", 10000000, 999999);\n concierge = new Enemy(\"Concierge\", 6, 100);\n wookie = new Enemy(\"Savage Wookie\", 100, 300);\n }",
"public void drawEnemies(){\n for (Object e : world.getEnemies()) {\n Enemy enemy = (Enemy) e;\n if (enemy instanceof EnemyPistol) {\n spriteBatch.draw(enemyPistolTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyAwp){\n spriteBatch.draw(enemyAWPTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyStalker){\n spriteBatch.draw(enemyStalkerTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }else if (enemy instanceof EnemyBoss){\n spriteBatch.draw(enemyBossTexture, enemy.getPosition().x * ppuX, enemy.getPosition().y * ppuY,\n enemy.WIDTH * ppuX, enemy.HEIGHT * ppuY);\n }\n }\n }",
"private ArrayList<Room> createRooms() {\n //Adding starting position, always rooms(index0)\n\n rooms.add(new Room(\n \"Du sidder på dit kontor. Du kigger på uret og opdager, at du er sent på den. WTF! FISKEDAG! Bare der er fiskefilet tilbage, når du når kantinen. Du må hellere finde en vej ud herfra og hen til kantinen.\",\n false,\n null,\n null\n ));\n\n //Adding offices to <>officerooms, randomly placed later \n officeRooms.add(new Room(\n \"Du bliver kort blændet af en kontorlampe, som peger lige mod døråbningen. Du ser en gammel dame.\",\n false,\n monsterList.getMonster(4),\n itemList.getItem(13)\n ));\n\n officeRooms.add(new Room(\n \"Der er ingen i rummet, men rodet afslører, at det nok er Phillipas kontor.\",\n false,\n null,\n itemList.getItem(15)\n ));\n\n officeRooms.add(new Room(\n \"Du vader ind i et lokale, som er dunkelt oplyst af små, blinkende lamper og har en stank, der siger så meget spar fem, at det kun kan være IT-lokalet. Du når lige at høre ordene \\\"Rick & Morty\\\".\",\n false,\n monsterList.getMonster(6),\n itemList.getItem(7)\n ));\n\n officeRooms.add(new Room(\n \"Det var ikke kantinen det her, men hvorfor er der så krummer på gulvet?\",\n false,\n null,\n itemList.getItem(1)\n ));\n\n officeRooms.add(new Room(\n \"Tine sidder ved sit skrivebord. Du kan se, at hun er ved at skrive en lang indkøbsseddel. Hun skal nok have gæster i aften.\",\n false,\n monsterList.getMonster(0),\n itemList.getItem(18)\n ));\n\n officeRooms.add(new Room(\n \"Du træder ind i det tekøkken, hvor Thomas plejer at opholde sig. Du ved, hvad det betyder!\",\n false,\n null,\n itemList.getItem(0)\n ));\n\n officeRooms.add(new Room(\n \"Du går ind i det nok mest intetsigende rum, som du nogensinde har set. Det er så intetsigende, at der faktisk ikke er mere at sige om det.\",\n false,\n monsterList.getMonster(1),\n itemList.getItem(9)\n ));\n\n //Adding copyrooms to <>copyrooms, randomly placed later \n copyRooms.add(new Room(\n \"Døren knirker, som du åbner den. Et kopirum! Det burde du have set komme. Især fordi det var en glasdør.\",\n false,\n null,\n itemList.getItem(19)\n ));\n\n copyRooms.add(new Room(\n \"Kopimaskinen summer stadig. Den er åbenbart lige blevet færdig. Du går nysgerrigt over og kigger på alle de udskrevne papirer.\",\n false,\n null,\n itemList.getItem(12)\n ));\n\n //Adding restrooms to <>restrooms, randomly placed later \n restRooms.add(new Room(\n \"Ups! Dametoilettet. Der hænger en klam stank i luften. Det må være Ruth, som har været i gang.\",\n false,\n null,\n itemList.getItem(5)\n ));\n\n restRooms.add(new Room(\n \"Pedersen er på vej ud fra toilettet. Han vasker ikke fingre! Slut med at give ham hånden.\",\n false,\n monsterList.getMonster(7),\n itemList.getItem(11)\n ));\n\n restRooms.add(new Room(\n \"Du kommer ind på herretoilettet. Du skal simpelthen tisse så meget, at fiskefileterne må vente lidt. Du åbner toiletdøren.\",\n false,\n monsterList.getMonster(2),\n null\n ));\n\n restRooms.add(new Room(\n \"Lisette står og pudrer næse på dametoilettet. Hvorfor gik du herud?\",\n false,\n monsterList.getMonster(8),\n itemList.getItem(14)\n ));\n\n //Adding meetingrooms to<>meetingrooms, randomly placed later\n meetingRooms.add(new Room(\n \"Du træder ind i et lokale, hvor et vigtigt møde med en potentiel kunde er i gang. Du bliver nødt til at lade som om, at du er en sekretær.\",\n false,\n monsterList.getMonster(9),\n itemList.getItem(6)\n ));\n\n meetingRooms.add(new Room(\n \"Mødelokalet er tomt, men der står kopper og service fra sidste møde. Sikke et rod!\",\n false,\n null,\n itemList.getItem(3)\n ));\n\n meetingRooms.add(new Room(\n \"Projektgruppen sidder i mødelokalet. Vil du forsøge at forsinke dem i at nå fiskefileterne i kantinen?\",\n false,\n monsterList.getMonster(10),\n itemList.getItem(2)\n ));\n\n //Adding specialrooms to<>specialrooms, randomly placed later\n specialRooms.add(new Room(\n \"Du vader ind på chefens kontor. På hans skrivebord sidder sekretæren Phillipa.\",\n false,\n monsterList.getMonster(5),\n itemList.getItem(8)\n ));\n\n specialRooms.add(new Room(\n \"Det her ligner øjensynligt det kosteskab, Harry Potter boede i.\",\n false,\n monsterList.getMonster(3),\n itemList.getItem(4)\n ));\n\n specialRooms.add(new Room(\n \"OMG! Hvad er det syn?! KANTINEN!! Du klarede det! Du skynder dig op i køen lige foran ham den arrogante fra din afdeling. Da du når frem til fadet er der kun 4 fiskefileter tilbage. Du snupper alle 4!\",\n true,\n null,\n null\n ));\n\n //Adding rooms(Inde1-5)\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addMeetingRoom(rooms, meetingRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n\n //Adding rooms(Inde6-10)\n addMeetingRoom(rooms, meetingRooms);\n addCopyRoom(rooms, copyRooms);\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n addCopyRoom(rooms, copyRooms);\n\n //Adding rooms(Inde11-15)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addOfficeRoom();\n addRestRoom(rooms, restRooms);\n addOfficeRoom();\n\n //Adding rooms(Inde16-19)\n addOfficeRoom();\n addSpecialRoom(rooms, specialRooms);\n addSpecialRoom(rooms, specialRooms);\n addMeetingRoom(rooms, meetingRooms);\n\n return rooms;\n }",
"public Battle(Player player, ArrayList<Entity> enemies) {\n this.playerInCombat = player;\n this.enemiesInCombat = enemies;\n this.entitiesInCombat.add(playerInCombat);\n this.entitiesInCombat.addAll(enemiesInCombat);\n }",
"void updateEnemies() {\n getEnemies().forEach(e -> {\n if (!e.isAlive()) {\n e.die();\n SoundPlayer.play(SoundPlayer.enemyDestroyed);\n }\n });\n objectsInMap.removeIf(o -> o instanceof Enemy && !(((Enemy) o).isAlive()));//Removing Dead Enemies\n getEnemies().forEach(e -> e.setTarget(objectsInMap.stream().filter(p -> p.identifier.contains(\"PlayerTank0.\") &&\n p.isBlocking && ((Tank) p).isVisible()).collect(Collectors.toList())));//Giving Possible target to enemies to decide\n }",
"void generateEnemy(){\n\t\tEnemy e = new Enemy((int)(Math.random()*\n\t\t\t(cp.getWidthScreen() - (ss.getWidth()/2)))\n\t\t\t,ss.getHeight(), cp.getHieghtScreen());\t\t\t\t//Enemy (int x, int y, int heightScreen)\n\t\tcp.shapes.add(e);\n\t\tenemies.add(e);\n\t}",
"private void updateEnemies()\n\t \n\t {\n\t for(int i = 0; i < EnemyList.size(); i++)\n\t {\n\t \t//get and update enemy for the enemy list\n\t Enemy eh = EnemyList.get(i);\n\t eh.Update();\n\t \n\t //checks for enemy and player crashes \n\t Rectangle playerRectangel = new Rectangle(pl.xCoord, pl.yCoord, pl.PlayerImage.getWidth(), pl.PlayerImage.getHeight());\n\t Rectangle enemyRectangel = new Rectangle(eh.xCoord, eh.yCoord, eh.EnemyHelicopterImage.getWidth(), eh.EnemyHelicopterImage.getHeight());\n\t if(playerRectangel.intersects(enemyRectangel)){\n\t \n\t \t//set player health to zero\n\t \tpl.Health = 0;\n\t \n\t // Remove helicopter from the list.\n\t EnemyList.remove(i);\n\t \n\t //creates new explosion coordinates \n\t enExplosionX = eh.xCoord; \n\t enExplosionY = eh.yCoord; \n\t plExplosionX = pl.xCoord+120;\n\t plExplosionY = pl.yCoord;\n\t GameOn = false;\n\t \n\t }\n\t \n\t // Check health.\n\t if(eh.Health <= 0){\n\t \n\t // Increase the number of destroyed enemies and removes a helicopter froma list.\n\t DestroyedEnemies++;\n\t \n\t \n\t if(DestroyedEnemies == 10)\n\t {\n\t \t//WinsState = true; \n\t \t\n\t }\n\t EnemyList.remove(i);\n\t \n\t }\n\t \n\t // If the current enemy has left the scree it is removed from the list and the number of runAwayEnemies is increased.\n\t if(eh.HasLeftScreen())\n\t {\n\t \tEnemyList.remove(i);\n\t RunAwayEnemies++;\n\t }\n\t \n\t if(RunAwayEnemies > 5)\n\t {\n\t \tGameOn = false; \n\t \t\n\t }\n\t }\n\t \n\t }",
"public void addAll(Equipment e){\r\n if(e.weapon !=null) add(e.weapon );\r\n if(e.helmet !=null) add(e.helmet );\r\n if(e.chestplate !=null) add(e.chestplate);\r\n if(e.leggings !=null) add(e.leggings );\r\n if(e.boots !=null) add(e.boots );\r\n if(e.amulet1 !=null) add(e.amulet1 );\r\n if(e.amulet2 !=null) add(e.amulet2 );\r\n }",
"private void toBeAddedEntities()\n\t{\n\t\tif( entitiesToAdd.isEmpty() )\n\t\t{\n\t\t\treturn ;\n\t\t}\n\n\t\tfinal List<Event<?>> events = MalletList.<Event<?>>newList() ;\n\n\t\tfinal int size = entitiesToAdd.size() ;\n\t\tfor( int i = 0; i < size; ++i )\n\t\t{\n\t\t\tfinal Entity entity = entitiesToAdd.get( i ) ;\n\t\t\thookEntity( eventSystem, events, entity ) ;\n\t\t\tentities.add( entity ) ;\n\t\t}\n\t\tentitiesToAdd.clear() ;\n\t\t\n\t\tif( size > capacity )\n\t\t{\n\t\t\t// If the size of entitiesToAdd exceeds our capacity then \n\t\t\t// we want to resize the array - it's easy for an \n\t\t\t// array to expand, it's much harder to shrink it!\n\t\t\tentitiesToAdd = MalletList.<Entity>newList( capacity ) ;\n\t\t}\n\t}",
"public void addToInventory(IWeapon weapon){\n if (weaponsInventory.size() < 12) {\n this.weaponsInventory.add(weapon);\n lenInventory += 1;\n }\n }",
"public static void addItem(Item item)\n {\n inventory.add(item);\n if(!(item.getRoomNumber() == -1 || item.getEventNumber() == -1))\n {\n Map.getRoom(item.getRoomNumber()).getEvent(item.getEventNumber()).enable();\n }\n }",
"private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<String,Room>();\r\n\t\t\r\n\t\tArrayList<Coordinates> spaEntrances = new ArrayList<Coordinates>();\r\n\t\tspaEntrances.add(grid[5][6].getCoord());\r\n\r\n\t\tArrayList<Coordinates> theatreEntrances = new ArrayList<Coordinates>();\r\n\t\ttheatreEntrances.add(grid[13][2].getCoord());\r\n\t\ttheatreEntrances.add(grid[10][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> livingRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tlivingRoomEntrances.add(grid[13][5].getCoord());\r\n\t\tlivingRoomEntrances.add(grid[16][9].getCoord());\r\n\r\n\t\tArrayList<Coordinates> observatoryEntrances = new ArrayList<Coordinates>();\r\n\t\tobservatoryEntrances.add(grid[21][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> patioEntrances = new ArrayList<Coordinates>();\r\n\t\tpatioEntrances.add(grid[5][10].getCoord());\r\n\t\tpatioEntrances.add(grid[8][12].getCoord());\r\n\t\tpatioEntrances.add(grid[8][16].getCoord());\r\n\t\tpatioEntrances.add(grid[5][18].getCoord());\r\n\r\n\t\t// ...\r\n\t\tArrayList<Coordinates> poolEntrances = new ArrayList<Coordinates>();\r\n\t\tpoolEntrances.add(grid[10][17].getCoord());\r\n\t\tpoolEntrances.add(grid[17][17].getCoord());\r\n\t\tpoolEntrances.add(grid[14][10].getCoord());\r\n\r\n\t\tArrayList<Coordinates> hallEntrances = new ArrayList<Coordinates>();\r\n\t\thallEntrances.add(grid[22][10].getCoord());\r\n\t\thallEntrances.add(grid[18][13].getCoord());\r\n\t\thallEntrances.add(grid[18][14].getCoord());\r\n\r\n\t\tArrayList<Coordinates> kitchenEntrances = new ArrayList<Coordinates>();\r\n\t\tkitchenEntrances.add(grid[6][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> diningRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tdiningRoomEntrances.add(grid[12][18].getCoord());\r\n\t\tdiningRoomEntrances.add(grid[16][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> guestHouseEntrances = new ArrayList<Coordinates>();\r\n\t\tguestHouseEntrances.add(grid[20][20].getCoord());\r\n\r\n\t\t// setup entrances map\r\n\t\tthis.roomEntrances = new HashMap<Coordinates, Room>();\r\n\t\tfor (LocationCard lc : this.listOfLocationCard) {\r\n\t\t\tString name = lc.getName();\r\n\t\t\tRoom r;\r\n\t\t\tif (name.equals(\"Spa\")) {\r\n\t\t\t\tr = new Room(name, lc, spaEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : spaEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Theatre\")) {\r\n\t\t\t\tr = new Room(name, lc,theatreEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : theatreEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"LivingRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,livingRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : livingRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Observatory\")) {\r\n\t\t\t\tr = new Room(name, lc,observatoryEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : observatoryEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Patio\")) {\r\n\t\t\t\tr = new Room(name,lc, patioEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : patioEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Pool\")) {\r\n\t\t\t\tr = new Room(name,lc,poolEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : poolEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Hall\")) {\r\n\t\t\t\tr = new Room(name, lc,hallEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : hallEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Kitchen\")) {\r\n\t\t\t\tr = new Room(name, lc,kitchenEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : kitchenEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"DiningRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,diningRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : diningRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"GuestHouse\")) {\r\n\t\t\t\tr = new Room(name, lc,guestHouseEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : guestHouseEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void addEnemy(int e_num){\n\t\tRandom r_gen = new Random();\n\t\t\n\t\tenemy_num = e_num;\n\t\tenemy = new int[enemy_num][3];\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tenemy[i][0] = r_gen.nextInt(1000)+20;\n\t\t\tenemy[i][1] = r_gen.nextInt(750)+20;\n\t\t\n\t\t}\n\t\tenemy_arrows = new int[e_num][30][4];\n\t\tenemy_arrow_num = new int[e_num];\n\t\tfor(int i=0;i<e_num;i++){\n\t\t\tenemy_arrow_num[i] = 0;\n\t\t}\n\t\tenemy_choose_player();\n\t\n\t}",
"public void equip(Equipment e){\n equipment.add(e);\n }",
"public static void addNewRoom() {\n Services room = new Room();\n room = addNewService(room);\n\n ((Room) room).setFreeService(FuncValidation.getValidFreeServices(ENTER_FREE_SERVICES,INVALID_FREE_SERVICE));\n\n //Get room list from CSV\n ArrayList<Room> roomList = FuncGeneric.getListFromCSV(FuncGeneric.EntityType.ROOM);\n\n //Add room to list\n roomList.add((Room) room);\n\n //Write room list to CSV\n FuncReadWriteCSV.writeRoomToFileCSV(roomList);\n System.out.println(\"----Room \"+room.getNameOfService()+\" added to list---- \");\n addNewServices();\n\n }",
"public void generate() {\n\n enemies.clear();\n\n for (int i = 0; i < (GRID_SIZE * ROOM_WIDTH); i++) {\n for (int j = 0; j < (GRID_SIZE * ROOM_HEIGHT); j++) {\n terrain[i][j] = null;\n }\n }\n\n RoomType[][] rooms = new RoomType[GRID_SIZE][GRID_SIZE];\n for(int i = 0; i < GRID_SIZE; i++) {\n for (int j = 0; j < GRID_SIZE; j++) {\n rooms[i][j] = RoomType.None;\n }\n }\n\n left = down = false;\n int x = random.nextInt(GRID_SIZE), y = 0;\n\n startPosition = new Vector2();\n startPosition.y = 4 * Tile.SIZE;\n startPosition.x = ((x + 1) * ROOM_WIDTH * Tile.SIZE) + 5 * Tile.SIZE;\n\n\n startRoom = true;\n while(true) {\n down = false;\n getDir();\n\n if(left) {\n x--;\n }\n else {\n x++;\n }\n\n if(x >= GRID_SIZE) {\n x--;\n down = true;\n }\n else if(x < 0) {\n x++;\n down = true;\n }\n\n if(down) {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.Down;\n y++;\n left = !left;\n if(y >= GRID_SIZE) {\n rooms[x][y - 1] = RoomType.Standard;\n endRoomX = x;\n endRoomY = y - 1;\n break;\n }\n }\n\n if(!down) {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.Standard;\n }\n else {\n if(startRoom) {\n startRoomX = x;\n startRoomY = y;\n startRoom = false;\n }\n rooms[x][y] = RoomType.getEnum(random.nextInt(1) + 3);\n }\n }\n\n for (int i = 0; i < GRID_SIZE; i++) {\n for (int j = 0; j < GRID_SIZE; j++) {\n System.out.print(rooms[i][j].VALUE + \" \");\n generateRoom(i, j, rooms[i][j]);\n }\n System.out.println(\"\");\n }\n }",
"public void paintEnemies(Graphics g)\n {\n for(Entity e: enemies)\n {\n if(inBounds(e))\n {\n if(e instanceof Enemy)\n {\n paintEntity(g, e);\n }\n else if(e instanceof Boss)\n {\n paintBoss(g, (Boss)e);\n }\n }\n }\n }",
"public void createLevel(){\n for(LevelController rc: rooms ) {\n rc.loadContent();\n rc.setScreenListener(listener);\n rc.setCanvas(canvas);\n }\n }",
"public Enemy() {\n createModel();\n enemyCounter++;\n }",
"public void initRooms(Room room) {\n rooms.add(room);\n internalList.add(room);\n }",
"public void add(Equipment equipment) {\n equipments.add(equipment);\n }",
"private void generateEnemies(int count) {\n generateEnemiesOnLayer(map.getHell(), count);\n generateEnemiesOnLayer(map.getEarth(), count);\n generateEnemiesOnLayer(map.getHeaven(), count);\n }",
"public void addHitListenerToEnemy(HitListener hl) {\r\n for (Enemy e : enemies) {\r\n e.addHitListener(hl);\r\n }\r\n }",
"@Override\n\tpublic void onAdd() {\n\t\tsuper.onAdd();\n\n\t\tsetIdleAnimation(4527);\n\t\tsetNeverRandomWalks(true);\n\t\tsetWalkingHomeDisabled(true);\n\n\t\tthis.region = Stream.of(AbyssalSireRegion.values()).filter(r -> r.getSire().getX() == getSpawnPositionX()\n\t\t && r.getSire().getY() == getSpawnPositionY()).findAny().orElse(null);\n\n\t\tRegion region = Region.getRegion(getSpawnPositionX(), getSpawnPositionY());\n\n\t\tif (region != null) {\n\t\t\tregion.forEachNpc(npc -> {\n\t\t\t\tif (npc instanceof AbyssalSireTentacle) {\n\t\t\t\t\tif (!npc.isDead()) {\n\t\t\t\t\t\tnpc.setDead(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\tList<Position> tentaclePositions = Arrays.asList(\n\t\t\t\tthis.region.getTentacleEast(),\n\t\t\t\tthis.region.getTentacleWest(),\n\t\t\t\tthis.region.getTentacleNorthEast(),\n\t\t\t\tthis.region.getTentacleNorthWest(),\n\t\t\t\tthis.region.getTentacleSouthEast(),\n\t\t\t\tthis.region.getTentacleSouthWest()\n\t\t );\n\n\t\ttentaclePositions.forEach(position -> {\n\t\t\ttentacles.add(NpcHandler.spawnNpc(5909, position.getX(), position.getY(), position.getZ()));\n\t\t});\n\n\t\tList<Position> respiratoryPositions = Arrays.asList(\n\t\t\t\tthis.region.getRespiratorySystemNorthEast(),\n\t\t\t\tthis.region.getRespiratorySystemNorthWest(),\n\t\t\t\tthis.region.getRespiratorySystemSouthEast(),\n\t\t\t\tthis.region.getRespiratorySystemSouthWest()\n\t\t );\n\n\t\trespiratoryPositions.forEach(position -> respiratorySystems.add(\n\t\t\t\tNpcHandler.spawnNpc(5914, position.getX(), position.getY(), position.getZ())));\n\t}",
"private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\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 createRooms()\n {\n // create the rooms\n prison = new Room(\"Prison\", \"Prison. You awake in a cold, dark cell. Luckily, the wall next to you has been blown open. \\nUnaware of your current circumstances, you press on... \\n\");\n promenade = new Room(\"Promenade\",\"Promenade. After stumbling upon a ladder, you decided to climb up. \\n\" + \n \"You appear outside a sprawling promenade. There appears to be something shiny stuck in the ground... \\n\");\n sewers = new Room(\"Sewers\",\"Sewers. It smells... interesting. As you dive deeper, you hear something creak\");\n ramparts = new Room(\"Ramparts\", \"Ramparts. You feel queasy as you peer down below. \\nAs you make your way along, you're greated by a wounded soldier.\" +\n \"\\nIn clear agony, he slowly closes his eyes as he says, 'the king... ki.. kil... kill the king..' \\n\");\n depths = new Room(\"Depths\", \"Depths. You can hardly see as to where you're going...\" + \"\\n\");\n ossuary = new Room(\"Ossuary\", \"Ossuary. A chill runs down your spine as you examine the skulls... \\n\" +\n \"but wait... is.. is one of them... moving? \\n\" +\"\\n\" + \"\\n\" + \"There seems to be a chest in this room!\" + \"\\n\");\n bridge = new Room(\"Bridge\", \"Bridge. A LOUD SHREIK RINGS OUT BEHIND YOU!!! \\n\");\n crypt = new Room(\"Crypt\", \"Crypt. An eerire feeling begins to set in. Something about this place doesn't seem quite right...\" + \"\\n\");\n graveyard = new Room(\"Graveyard\", \"Graveyard. The soil looks rather soft. \\n\" +\n \"As you being to dive deeper, you begin to hear moans coming from behind you...\");\n forest = new Room(\"Forest\", \"Forest. It used to be gorgeous, and gleaming with life; that is, until the king came...\" + \"\\n\" +\n \"there's quite a tall tower in front of you... if only you had something to climb it.\" + \"\\n\");\n tower = new Room(\"Tower\", \"Tower. As you look over the land, you're astounded by the ruin and destruction the malice and king have left behind. \\n\");\n castle = new Room(\"Castle\", \"Castle. Used to be the most elegant and awe-inspiring building in the land. \\n\" +\n \"That is, before the king showed up... \\n\" +\n \"wait... is that... is that a chest? \\n\");\n throneRoomEntrance = new Room(\"Throne Entrance\", \"You have made it to the throne room entrance. Press on, if you dare.\");\n throne = new Room(\"Throne Room\", \"You have entered the throne room. As you enter, the door slams shut behind you! \\n\" +\n \"Before you stands, the king of all malice and destruction, Mr. Rusch\" + \"\\n\");\n deathRoom1 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom2 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom3 = new Room(\"Death Room\", \"THE DOOR SLAMS SHUT BEHIND YOU\");\n deathRoom4 = new Room(\"Death Room\", \"depths of the earth... well part of you at least.\" + \"\\n\" + \"You fell off the peaks of the castle to your untimely death\");\n \n // initialise room exits\n\n currentRoom = prison; // start game outside player.setRoom(currentRoom);\n player.setRoom(currentRoom);\n \n }",
"public void placeMandatoryObjects()\r\n {\r\n Random rng = new Random();\r\n //Adds an endgame chest somewhere (NOT in spawn)\r\n Room tempRoom = getRoom(rng.nextInt(dungeonWidth - 1) +1, rng.nextInt(dungeonHeight - 1) +1);\r\n tempRoom.addObject(new RoomObject(\"Endgame Chest\", \"overflowing with coolness!\"));\r\n if (tempRoom.getMonster() != null)\r\n {\r\n tempRoom.removeMonster();\r\n }\r\n tempRoom.addMonster(new Monster(\"Pelo Den Stygge\", \"FINAL BOSS\", 220, 220, 12));\r\n //Adds a merchant to the spawn room\r\n getRoom(0,0).addObject(new RoomObject(\"Merchant\", \"like a nice fella with a lot of goods (type \\\"wares\\\" to see his goods)\"));\r\n }",
"private void createRooms()\n {\n Room outside, garden, kitchen, frontyard, garage, livingroom,\n upperhallway, downhallway, bedroom1, bedroom2, toilet,teleporter;\n\n // create the rooms\n outside = new Room(\"outside the house\",\"Outside\");\n garden = new Room(\"in the Garden\", \"Garden\");\n kitchen = new Room(\"in the Kitchen\",\"Kitchen\");\n frontyard = new Room(\"in the Frontyard of the house\", \"Frontyard\");\n garage = new Room(\"in the Garage\", \"Garage\");\n livingroom = new Room(\"in the Living room\", \"Living Room\");\n upperhallway = new Room(\"in the Upstairs Hallway\",\"Upstairs Hallway\");\n downhallway = new Room(\"in the Downstairs Hallway\", \"Downstairs Hallway\");\n bedroom1 = new Room(\"in one of the Bedrooms\", \"Bedroom\");\n bedroom2 = new Room(\"in the other Bedroom\", \"Bedroom\");\n toilet = new Room(\"in the Toilet upstairs\",\"Toilet\");\n teleporter = new Room(\"in the Warp Pipe\", \"Warp Pipe\");\n\n // initialise room exits\n outside.setExit(\"north\", garden);\n outside.setExit(\"east\", frontyard);\n\n garden.setExit(\"south\", outside);\n garden.setExit(\"east\", kitchen);\n\n kitchen.setExit(\"west\", garden);\n kitchen.setExit(\"north\", livingroom);\n kitchen.setExit(\"south\", downhallway);\n\n frontyard.setExit(\"west\", outside);\n frontyard.setExit(\"north\", downhallway);\n frontyard.setExit(\"east\", garage);\n\n garage.setExit(\"west\", frontyard);\n garage.setExit(\"north\", downhallway);\n\n livingroom.setExit(\"west\", kitchen);\n\n downhallway.setExit(\"north\",kitchen);\n downhallway.setExit(\"west\",frontyard);\n downhallway.setExit(\"south\",garage);\n downhallway.setExit(\"east\",upperhallway);\n\n upperhallway.setExit(\"north\", bedroom2);\n upperhallway.setExit(\"east\", bedroom1);\n upperhallway.setExit(\"south\", toilet);\n upperhallway.setExit(\"west\", downhallway);\n\n toilet.setExit(\"north\", upperhallway);\n\n bedroom1.setExit(\"west\",upperhallway);\n\n bedroom2.setExit(\"south\", upperhallway);\n\n rooms.add(outside);\n rooms.add(garden);\n rooms.add(kitchen);\n rooms.add(frontyard);\n rooms.add(garage);\n rooms.add(livingroom);\n rooms.add(upperhallway);\n rooms.add(downhallway);\n rooms.add(bedroom1);\n rooms.add(bedroom2);\n rooms.add(toilet);\n }",
"public EnemyCollection(int numOfEnemies, Point upperLeft, int speed, GameLevel game,\r\n String pathToImg, GameEnvironment gameEnvironment) {\r\n this.numOfEnemies = new Counter(numOfEnemies);\r\n double x = upperLeft.getX();\r\n double y = upperLeft.getY();\r\n this.startLocations = new ArrayList<>();\r\n this.game = gameEnvironment;\r\n this.enemies = new ArrayList<Enemy>();\r\n for (int i = 0; i < numOfEnemies; i++) {\r\n Point p = new Point(x, y);\r\n this.startLocations.add(p);\r\n Block b = new Block(p, 40, 30, Color.BLACK);\r\n Enemy e = new Enemy(pathToImg, b, speed, game);\r\n e.addHitListener(this);\r\n enemies.add(e);\r\n x = x + 50;\r\n if (i % 10 == 9) {\r\n y = y + 40;\r\n x = upperLeft.getX();\r\n }\r\n }\r\n this.checkLeftAndRightXs();\r\n\r\n }",
"public void createRooms()\n { \n // create the rooms\n //RDC//\n hall = new Room(\"Hall\", \"..\\\\pictures\\\\Rooms\\\\hall.png\");\n banquetinghall = new Room (\"Banqueting hall\", \"..\\\\pictures\\\\Rooms\\\\banquet.png\");\n poolroom = new Room (\"PoolRoom\", \"..\\\\pictures\\\\Rooms\\\\billard.png\");\n dancingroom = new Room (\"Dancing Room\", \"..\\\\pictures\\\\Rooms\\\\bal.png\");\n kitchen = new Room(\"Kitchen\", null);\n garden = new Room(\"Garden\", null);\n well = new Room(\"Well\", null);\n gardenerhut = new Room(\"Gardener hut\", null);\n //Fin RDN //\n \n //-1//\n anteroom = new Room(\"Anteroom\", null);\n ritualroom = new Room(\"Ritual Room\", null);\n cellar = new Room(\"Cellar\", null);\n // FIN -1//\n // +1 //\n livingroom = new Room(\"Living Room\", null); \n library = new Room (\"Library\", null);\n laboratory = new Room(\"Laboratory\", null);\n corridor= new Room(\"Corridor\", null);\n bathroom = new Room(\"Bathroom\", null);\n bedroom = new Room(\"Bedroom\", null);\n guestbedroom = new Room(\"Guest Bedroom\", null); \n //FIN +1 //\n //+2//\n attic = new Room(\"Attic\", null);\n //Fin +2//\n //Fin create room // \n \n // initialise room exits\n //RDC\n hall.setExits(\"north\",garden, false, \"> You must explore the mansion before\");\n hall.setExits(\"south\",banquetinghall, true, null); \n banquetinghall.setExits(\"north\",hall, true, null);\n banquetinghall.setExits(\"south\",dancingroom, false, \"> The door is blocked by Bob's toys\");\n banquetinghall.setExits(\"east\",kitchen, true, null);\n banquetinghall.setExits(\"west\",poolroom, true, null);\n //poolroom.setExits(\"east\",banquetinghall, false, \"> You have not finished examining the crime scene\");\n poolroom.setExits(\"east\",banquetinghall, true, \"> You have not finished examining the crime scene\");\n dancingroom.setExits(\"north\",banquetinghall, true, null);\n dancingroom.setExits(\"up\",livingroom, true, null);\n kitchen.setExits(\"west\",banquetinghall, true, null);\n kitchen.setExits(\"down\",cellar, true, null);\n garden.setExits(\"south\",hall, true, null);\n garden.setExits(\"north\",well, true, null);\n garden.setExits(\"east\",gardenerhut, true, null);\n well.setExits(\"south\",garden, true, null);\n gardenerhut.setExits(\"west\",garden, true, null);\n //gardenerhut.setExits(\"down\",anteroom, false, null);\n //-1// \n anteroom.setExits(\"south\",ritualroom, true, null);\n anteroom.setExits(\"up\",gardenerhut, false, \"> The door is locked. You cannot go backward\");\n anteroom.setExits(\"west\",cellar, true, null);\n ritualroom.setExits(\"north\",anteroom, true, null);\n cellar.setExits(\"up\",kitchen, true, null);\n //cellar.setExits(\"east\", anteroom, false); To unlock\n //+1//\n livingroom.setExits(\"down\",dancingroom, true, null);\n livingroom.setExits(\"north\",library, true, null);\n livingroom.setExits(\"west\",corridor, true, null);\n library.setExits(\"south\",livingroom, true, null);\n //library.setExits(\"north\",laboratory, false); To unlock\n laboratory.setExits(\"south\",library, true, null);\n corridor.setExits(\"north\",bathroom, true, null);\n corridor.setExits(\"south\",bedroom, false, \"> The door is locked. A key may be mandatory\");\n corridor.setExits(\"east\",livingroom, true, null);\n corridor.setExits(\"west\",guestbedroom, true, null);\n corridor.setExits(\"up\",attic, false, \"> You see a weird lock in the ceiling\");\n bathroom.setExits(\"south\",corridor, true, null);\n bedroom.setExits(\"north\",corridor, true, null);\n guestbedroom.setExits(\"east\",corridor, true, null);\n attic.setExits(\"down\",corridor, true, null);\n \n //currentRoom = poolroom; // start game outside\n currentRoom = poolroom;\n }",
"public Scenario() {\n Room ninjaRoom, weaponroom, meetingRoom, zenTemple, stealthRoom, restRoom, masterRoom, ninjaTransporter;\n\n // create the rooms\n ninjaRoom = new Room(\"in the main enterence to the camp. You'll need to walk 10000 steps to get to the next room.\");\n weaponroom = new Room(\"in the Weapon's room. Normally this is where you go to grab your Nunchaku, but not today.\");\n meetingRoom = new Room(\"in the Meeting room. This is where classes are normally held. We will be here tomorrow to be sure\");\n zenTemple = new Room(\"in the Meditation room. When done for the day, this is where you clear your head.\");\n stealthRoom = new Room(\"in the Stealth training room. Ninja are made here, slow but steady will keep you alive.\");\n restRoom = new Room(\"in the Barracks. When I am done for th day, I will come back here for some rest.\");\n masterRoom = new Room(\"in the Master's room. Master is current meditating right now. Better leave him alone.\");\n ninjaTransporter = new TransporterRoom(\"in the secret Shumpo room...with this I can teleport anywhere\", this);\n\n weaponroom.addItem(new Item(\"Katana\", 3));\n weaponroom.addItem(new Item(\"Nunchaku\", 1));\n weaponroom.addItem(new Item(\"Bo\", 2));\n weaponroom.addItem(new Item(\"Sai\", 2));\n ninjaRoom.addItem(new Item(\"Master's Keys\", 1));\n meetingRoom.addItem(new Item(\"Secret Plans\", 1));\n zenTemple.addItem(new Item(\"Prayer beads\", 1));\n stealthRoom.addItem(new Item(\"Throwing Star\", 2));\n restRoom.addItem(new Item(\"Risque magazines\", 1));\n masterRoom.addItem(new Item(\"Ancient Shinobi Scroll\", 5));\n\n // initialise room exits\n ninjaRoom.setExits(\"north\", ninjaTransporter);\n\n ninjaTransporter.setExits(\"north\", weaponroom);\n ninjaTransporter.setExits(\"south\", ninjaRoom);\n\n weaponroom.setExits(\"north\", meetingRoom);\n weaponroom.setExits(\"south\", ninjaTransporter);\n\n meetingRoom.setExits(\"north\", stealthRoom);\n meetingRoom.setExits(\"east\", restRoom);\n meetingRoom.setExits(\"south\", weaponroom);\n meetingRoom.setExits(\"west\", zenTemple);\n\n zenTemple.setExits(\"east\", meetingRoom);\n\n stealthRoom.setExits(\"south\", meetingRoom);\n\n restRoom.setExits(\"east\", masterRoom);\n restRoom.setExits(\"west\", meetingRoom);\n\n masterRoom.setExits(\"west\", restRoom);\n\n // Set the start room\n startRoom = ninjaRoom; // start game @ ninjaRoom\n\n rooms = new ArrayList();\n rooms.add(ninjaRoom);\n rooms.add(weaponroom);\n rooms.add(meetingRoom);\n rooms.add(zenTemple);\n rooms.add(stealthRoom);\n rooms.add(restRoom);\n rooms.add(masterRoom);\n rooms.add(ninjaTransporter);\n\n random = new Random();\n }",
"public Room() {\r\n\t\troomObjects = new ArrayList<GameObject>();\r\n\t\troom_listener = new RoomListener();\r\n\t\tlisteners = new ListenerContainer(room_listener);\r\n\t}",
"private void createEnemyHelicopter()\n\t {\n\t \t\tRandNum = 0 + (int)(Math.random()*700);\n\t\t \t\tint xCoordinate = 1400;\n\t int yCoordinate = RandNum; \n\t eh = new Enemy(xCoordinate,yCoordinate);\n\t \n\t // Add created enemy to the list of enemies.\n\t EnemyList.add(eh);\n\t \n\t }",
"private void placeRooms() {\n if (roomList.size() == 0) {\n throw new IllegalArgumentException(\"roomList must have rooms\");\n }\n // This is a nice cool square\n map = new int[MAP_SIZE][MAP_SIZE];\n\n for (Room room : roomList) {\n assignPosition(room);\n }\n }",
"public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }",
"public static void createItem() {\n //Initializing an item and putting it in a room airport\n itemLocation.addItem(airport, new PickableItem(\"Bottle\", \"This is a bottle that have been left behind by someone\", 2, false));\n itemLocation.addItem(airport, new PickableItem(\"Boardingpass\", \"This is a boardingpass to get on the plane to Hawaii: 126AB\", 1, false));\n\n //Initializing an item and putting it in a room beach\n itemLocation.addItem(beach, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Fish\", \"Why are you inspecting this item, its GOD damn fish\", 1, true));\n itemLocation.addItem(beach, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash \", 2, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(beach, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(beach, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n itemLocation.addItem(beach, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room jungle\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Berry\", \"this is berries, maybe its poisonous try ur luck!! \", 1, true));\n itemLocation.addItem(jungle, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Lian\", \"This is a lian from the jungle, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(jungle, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n //non pickable item\n itemLocation.addItem(jungle, new Item(\"GiantLog\", \"The giant log dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room mountain\n itemLocation.addItem(mountain, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(mountain, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n itemLocation.addItem(mountain, new PickableItem(\"Lumber\", \"This is a log of tree, maybe it can be used to craft something to get away from this island \", 3, false));\n\n //Initializing an item and putting it in a room cave\n itemLocation.addItem(cave, new PickableItem(\"Shroom\", \"these shrooms look suspecius, but maybe the can be\", 1, true));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new PickableItem(\"Waterbottle\", \"This is freshwater found in the jungle, maybe you can drink it\", 2, true));\n itemLocation.addItem(cave, new PickableItem(\"Flint\", \"This a flint, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(cave, new Item(\"GiantRock\", \"The giant rock dont look like it can be moved\", 100));\n\n //Initializing an item and putting it in a room camp\n itemLocation.addItem(camp, new PickableItem(\"Stone\", \"This is a stone, maybe it can be used to create something more usefull\", 2, false));\n itemLocation.addItem(camp, new PickableItem(\"Stick\", \"This is a small stick, maybe it can be used to create something more usefull\", 1, false));\n itemLocation.addItem(camp, new PickableItem(\"Egg\", \"This is some wild eggs, maybe it can be used for food\", 1, true));\n\n //Initializing an item and putting it in a room seaBottom\n itemLocation.addItem(seaBottom, new PickableItem(\"Backpack\", \"This is a backpack from the plane crash maybe you can use it to carry more items \", 0, false));\n itemLocation.addItem(seaBottom, new PickableItem(\"WaterBottle\", \"This is a water bottle from the plan crash \", 1, true));\n itemLocation.addItem(seaBottom, new PickableItem(\"Rope\", \"This is some rope that has been washed up on the beach shore from the plane crash\", 2, false));\n }",
"public void addAsteroid() \n\t{\n\t\tgameObj[0].add(new Asteroid());\n\t\tSystem.out.println(\"Asteroid added\");\n\t}",
"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 startGame() {\n\t\tgameStart = true;\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tenemys[i] = new Enemy(1 + (-i * 164), 192, pacman, 64, 64, 2.5, 0.0, 50);\n\t\t}\n\t\tfor(int i = 2; i < 10; i++) {\n\t\t\tenemys[i] = new Enemy(-100 + (-i * 164), 192, msPacman, 64, 64, 2.5, 0.0, 75);\n\t\t}\n\t\t\n\t\trepaint();\n\t}",
"public void addEntity(Entity entity)\n\t{\n\t\t\n\t\tif (entity.getClass() == PlayerMP.class)\n\t\t{\n\t\t\t//System.out.println(\"ADDING PLAYER TO PLAYER LIST\");\n\t\t\tplayers.add((PlayerMP)entity);\n\t\t\t//System.out.println(\"World Player Count: \" + players.size());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tentities.add(entity);\n\t\t}\n\t}",
"private void addEnemySheild() {\n this.enemyShield += 1;\n }",
"public void setRoomItems(ArrayList<Item> newRoomItems) {\n roomItems = newRoomItems;\n }",
"private void spawnEnemy() {\n float randomEnemy = (float) Math.random();\n\n if (round == 1) {\n addActorFunction.accept(new SimpleEnemy(tileSet));\n } else {\n float speedMultiplier = 1 + (0.08f * round);\n float healthMultiplier = 1 + (0.01f * round * round);\n\n if (randomEnemy < (round - 1) * 0.1) {\n addActorFunction.accept(new HeavyEnemy(tileSet, speedMultiplier, healthMultiplier));\n } else {\n addActorFunction.accept(new SimpleEnemy(tileSet, speedMultiplier, healthMultiplier));\n }\n }\n }",
"private void placeAsteroids() {\r\n\t\taddParticipant(new Asteroid(0, 2, EDGE_OFFSET, EDGE_OFFSET, speed, this));\r\n\t\taddParticipant(new Asteroid(1, 2, SIZE - EDGE_OFFSET, EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(2, 2, EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t\taddParticipant(new Asteroid(3, 2, SIZE - EDGE_OFFSET, SIZE - EDGE_OFFSET, 3, this));\r\n\t}",
"@Override\n public ArrayList<Entity> getEntities() {\n ArrayList<Entity> enemies = new ArrayList<>();\n\n // Fire Dragon (Near Starting Area)\n enemies.add(new Enemy(\"Dracoflame\", 31, 32) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Evil Tree (Far Right)\n enemies.add(new Enemy(\"Trevil\", 90, 40) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Evil Mushroom (Bottom Left)\n enemies.add(new Enemy(\"Mycovolence\", 72, 80) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n // Ship\n enemies.add(new Enemy(\"SailingShip\", 11, 76) {\n @Override\n public void doAction() {\n //Globals.SBG.enterState(Globals.STATES.get(\"CHALLENGE\"));\n }\n });\n\n return enemies;\n }",
"public void setBasicNewGameWorld()\r\n\t{\r\n\t\tlistCharacter = new ArrayList<Character>();\r\n\t\tlistRelationship = new ArrayList<Relationship>();\r\n\t\tlistLocation = new ArrayList<Location>();\r\n\t\t\r\n\t\t//Location;\r\n\t\t\r\n\t\tLocation newLocationCity = new Location();\r\n\t\tnewLocationCity.setToGenericCity();\r\n\t\tLocation newLocationDungeon = new Location();\r\n\t\tnewLocationDungeon.setToGenericDungeon();\r\n\t\tLocation newLocationForest = new Location();\r\n\t\tnewLocationForest.setToGenericForest();\r\n\t\tLocation newLocationJail = new Location();\r\n\t\tnewLocationJail.setToGenericJail();\r\n\t\tLocation newLocationPalace = new Location();\r\n\t\tnewLocationPalace.setToGenericPalace();\r\n\t\t\r\n\t\tlistLocation.add(newLocationCity);\r\n\t\tlistLocation.add(newLocationDungeon);\r\n\t\tlistLocation.add(newLocationForest);\r\n\t\tlistLocation.add(newLocationJail);\r\n\t\tlistLocation.add(newLocationPalace);\r\n\t\t\r\n\t\t\r\n\t\t//Item\r\n\t\tItem newItem = new Item();\r\n\t\t\r\n\t\tString[] type =\t\tnew String[]\t{\"luxury\"};\r\n\t\tString[] function = new String[]\t{\"object\"};\t\r\n\t\tString[] property = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900101,\"diamond\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationPalace.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"weapon\"};\r\n\t\tfunction = new String[]\t{\"equipment\"};\t\r\n\t\tproperty = new String[]\t{\"weapon\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(500101,\"dagger\", type, function, \"null\", property, 1, false);\t\t\r\n\t\tnewLocationJail.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\ttype =\t\tnew String[]\t{\"quest\"};\r\n\t\tfunction = new String[]\t{\"object\"};\t\r\n\t\tproperty = new String[]\t{\"\"};\r\n\t\tnewItem.setNewItem(900201,\"treasure_map\", type, function, \"null\", property, 2, true);\r\n\t\tnewLocationDungeon.addOrUpdateItem(newItem);\r\n\r\n\t\t\r\n\t\t////// Add very generic item (10+ items of same name)\r\n\t\t////// These item start ID at 100000\r\n\t\t\r\n\t\t//Add 1 berry\r\n\t\t//100000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"berry\"};\r\n\t\tnewItem.setNewItem(100101,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100102,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100103,\"berry\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t*/\r\n\r\n\t\t\r\n\t\t//Add 2 poison_plant\r\n\t\t//101000\r\n\t\tnewItem = new Item();\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem.setNewItem(100201,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(100202,\"poison_plant\", type, function, \"null\", property, 0, false);\r\n\t\tnewLocationForest.addOrUpdateItem(newItem);\r\n\t\tnewItem = new Item();\r\n\r\n\t\t//player\r\n\t\tCharacter newChar = new Character(\"player\", 1, true,\"city\", 0, false);\r\n\t\tnewChar.setIsPlayer(true);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//UNIQUE NPC\r\n\t\tnewChar = new Character(\"mob_NPC_1\", 15, true,\"city\", 0, false);\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\t\t\r\n\t\tnewChar = new Character(\"king\", 20, true,\"palace\", 3, true);\r\n\t\tnewChar.addOccupation(\"king\");\r\n\t\tnewChar.addOccupation(\"noble\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\tlistCharacter.add(newChar);\r\n\r\n\r\n\t\t//Mob character\r\n\t\tnewChar = new Character(\"soldier1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// REMOVE to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"soldier2\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"soldier3\", 20, true,\"palace\", 2, true);\r\n\t\tnewChar.addOccupation(\"soldier\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t//listLocation.add(newLocationCity);\r\n\t\t//listLocation.add(newLocationDungeon);\r\n\t\t//listLocation.add(newLocationForest);\r\n\t\t//listLocation.add(newLocationJail);\r\n\t\t//listLocation.add(newLocationPalace);\r\n\t\t\r\n\t\tnewChar = new Character(\"doctor1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addSkill(\"heal\");\r\n\t\tnewChar.addOccupation(\"doctor\");\r\n\t\tlistCharacter.add(newChar);\t\r\n\t\tnewChar = new Character(\"blacksmith1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"blacksmith\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"thief1\", 20, true,\"jail\", 2, true);\r\n\t\tnewChar.addOccupation(\"thief\");\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"unlock\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(300101,\"lockpick\", type, function, \"thief1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t// Remove to improve performance\r\n\t\t/*\r\n\t\tnewChar = new Character(\"messenger1\", 20, true,\"city\", 2, true);\r\n\t\tnewChar.addOccupation(\"messenger\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t*/\r\n\t\t\r\n\t\tnewChar = new Character(\"miner1\", 20, true,\"dungeon\", 1, true);\r\n\t\tnewChar.addOccupation(\"miner\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"lumberjack1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"lumberjack\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t/* REMOVE 19-2-2019 to increase performance\r\n\t\t\r\n\t\tnewChar = new Character(\"scout1\", 20, true,\"forest\", 2, true);\r\n\t\tnewChar.addOccupation(\"scout\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\tnewChar = new Character(\"farmer1\", 20, true,\"forest\", 1, true);\r\n\t\tnewChar.addOccupation(\"farmer\");\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t*/\r\n\t\t\r\n\t\t\r\n\t\tnewChar = new Character(\"merchant1\", 20, true,\"city\", 3, true);\r\n\t\tnewChar.addOccupation(\"merchant\");\r\n\t\tnewChar.addStatus(\"rich\");\r\n\t\t\r\n\t\t// Merchant Item\r\n\t\t//NPC item start at 50000\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200101,\"potion_poison\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"healing\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200201,\"potion_heal\", type, function, \"merchant1\", property, 1, false);\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\ttype =\t \tnew String[]\t{\"supply\"};\r\n\t\tfunction = new String[]\t{\"consumable\"};\t\r\n\t\tproperty = new String[]\t{\"cure_poison\"};\r\n\t\tnewItem = new Item();\r\n\t\tnewItem.setNewItem(200301,\"antidote\", type, function, \"merchant1\", property, 1, false);\t\r\n\t\tnewChar.addOrUpdateItem(newItem);\r\n\t\t\r\n\t\t\r\n\t\t//add merchant to List\r\n\t\tlistCharacter.add(newChar);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Relation\r\n\t\tRelationship newRelation = new Relationship();\r\n\t\tnewRelation.setRelationship(\"merchant1\", \"soldier1\", \"friend\");\r\n\t\tlistRelationship.add(newRelation);\r\n\t\t\r\n\t\t//\r\n\t\r\n\t}",
"public EventRoomBuilder(int capacity){\r\n itemFactory = new ItemFactory();\r\n newRoom = new EventRoom(capacity);\r\n eventRoomItems = new EventRoomItems();\r\n }",
"public void spawn(Integer spawnSize) {\n for (Integer i = 0; i < spawnSize; i++) {\n Enemy enemy = new Enemy(mainPlayerPosX, mainPlayerPosY);\n enemies.put(i, enemy);\n }\n initEnemiesSpawned = spawnSize;\n enemiesSize = spawnSize;\n }",
"public void levelBuilder() {\r\n\t\t//round 1\r\n\t\tEnemy[] round1Enemy = new Enemy[1];\r\n\t\tround1Enemy[0] = new Enemy();\r\n\t\t\tround1Enemy[0].type = 0;\r\n\t\t\tround1Enemy[0].imag = (MyFrame.refFrame).client.getOtherPlayer(0).getCardLeader().getCardImage();\r\n\t\t\tround1Enemy[0].position = new vec2(157, 0); \r\n\t\t\tround1Enemy[0].size = new vec2(185, 201); //X: 0~500 Y:250 lower\r\n\t\t\tround1Enemy[0].blood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].currentBlood = (MyFrame.refFrame).client.getOtherPlayer(0).getHp();\r\n\t\t\tround1Enemy[0].attackCD = 0;\r\n\t\t\tround1Enemy[0].attack = 0;\r\n\t\t\tround1Enemy[0].initialCD = 0;\r\n\t\t\tround1Enemy[0].defense = 0;\r\n\t\t\t\r\n\t\tround[0].addEnemy(round1Enemy);\r\n\t}",
"void addUses(Equipment newUses);",
"public void lootObject(Items loot) {\n if (loot != null)\n this.inventory.add(loot);\n }",
"public Room(roomContents content) {\n contents.add(content);\n\n }",
"public void addAsteroid() \n\t{\n\t\tgameObj.add(new Asteroid(getHeight(), getWidth()));\n\t\tSystem.out.println(\"Asteroid added\");\n\t\tnotifyObservers();\n\t}",
"public void tick(){\r\n scoreKeep++;\r\n if(scoreKeep >= 500){\r\n scoreKeep = 0;\r\n hud.setLevel(hud.getLevel()+1);\r\n // continuous addition of enemies at each new level\r\n if(game.diff == 0) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new BasicEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }else if(game.diff == 1) {\r\n \tif((hud.getLevel() >= 2 && hud.getLevel() <= 3)||(hud.getLevel() >= 7 && hud.getLevel() <= 9))\r\n \thandler.addObject(new HardEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.BasicEnemy, handler));\r\n if(hud.getLevel() == 4 || hud.getLevel() == 6)\r\n handler.addObject(new FastEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.FastEnemy, handler));\r\n if(hud.getLevel() == 5)\r\n \thandler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n if(hud.getLevel() == 10){\r\n handler.clearEnemies();\r\n handler.addObject(new SmartEnemy(r.nextInt(Game.width-50), r.nextInt(Game.height-50), ID.SmartEnemy, handler));\r\n handler.addObject(new BossEnemy((Game.width/2)-48, -100, ID.BossEnemy, handler));\r\n }\r\n }\r\n }\r\n }",
"private static void checkForEnemies() throws GameActionException {\n //No need to hijack code for structure\n if (rc.isWeaponReady()) {\n // basicAttack(enemies);\n HQPriorityAttack(enemies, attackPriorities);\n }\n \n //Old splash damage code\n //Preserve because can use to improve current splash damage code\n //But not so simple like just checking directions, since there are many more \n //locations to consider hitting.\n /*if (numberOfTowers > 4) {\n //can do splash damage\n RobotInfo[] enemiesInSplashRange = rc.senseNearbyRobots(37, enemyTeam);\n if (enemiesInSplashRange.length > 0) {\n int[] enemiesInDir = new int[8];\n for (RobotInfo info: enemiesInSplashRange) {\n enemiesInDir[myLocation.directionTo(info.location).ordinal()]++;\n }\n int maxDirScore = 0;\n int maxIndex = 0;\n for (int i = 0; i < 8; i++) {\n if (enemiesInDir[i] >= maxDirScore) {\n maxDirScore = enemiesInDir[i];\n maxIndex = i;\n }\n }\n MapLocation attackLoc = myLocation.add(directions[maxIndex],5);\n if (rc.isWeaponReady() && rc.canAttackLocation(attackLoc)) {\n rc.attackLocation(attackLoc);\n }\n }\n }//*/\n \n }",
"private void spawnStuff(PlayScreen screen, float delta) {\n if (stageId!=3 && stageId!=5) {\n isCombatEnabled = true;\n int where;\n boolean spawnRight = true;\n float speed;\n\n\n //Alien Spawn\n if (System.currentTimeMillis() - lastASpawn >= SpawnATimer + extraTimer) {\n speed = (float)(Utils.doRandom(250,400));\n lastASpawn = System.currentTimeMillis();\n int count = 3;\n if (stageId==4) count = 1;\n for (int i = 0; i < count; i++) {\n if (stageId==4){\n speed = (float) (speed*0.75);\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - Alien.width, y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player));\n }else{\n int x = 0 - Alien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - Alien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + Alien.width*2 , y, Alien.width, Alien.height)))\n hits = true;\n }\n }\n screen.entities.add(new Alien(new Vector2(x, y), 1, screen.alienImages, speed, screen.player,false));\n }\n }\n }\n //AcidAlien Spawn\n if (System.currentTimeMillis() - lastBSpawn >= SpawnBTimer + extraTimer) {\n speed = 200;\n lastBSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - AcidAlien.width, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player));\n }else{\n int x = 0 - AcidAlien.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - AcidAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + AcidAlien.width*2, y, AcidAlien.width, AcidAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new AcidAlien(new Vector2(x, y), screen.alien2Images, screen.acidImage, speed, screen.player,false));\n }\n }\n //FastAlien Spawn\n if (System.currentTimeMillis() - lastCSpawn >= SpawnCTimer + extraTimer) {\n speed= Utils.doRandom(250,400);\n lastCSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - FastAlien.width, y, FastAlien.width, FastAlien.height)))\n hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images,speed, screen.player));\n }else{\n int x = 0 - FastAlien.width;\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - FastAlien.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x-FastAlien.width*2,y,FastAlien.width,FastAlien.height))) hits = true;\n }\n }\n screen.entities.add(new FastAlien(new Vector2(x, y), 1, screen.alien3Images, speed,screen.player,false));\n }\n\n }\n\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n }else{\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width*2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages,false));\n }\n }\n /*if (System.currentTimeMillis() - lastBombSpawn >= SpawnTimerBomb) {\n lastBombSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y =0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - PurpleCapsuleItem.height);\n for (int h=0;h<collisions.size();h++){\n if (Collision.checkWalls(collisions.get(h),new Rectangle(x,y,PurpleCapsuleItem.width,PurpleCapsuleItem.height))) hits = true;\n }\n }\n screen.items.add(new PurpleCapsuleItem(x, y, 500, screen.itemPurpleImages));\n }*/\n }else{\n if (stageId==3) {\n //SPACE STAGE\n ///SPAWN ENEMY SHIP:\n //TODO\n if (PlayScreen.entities.size() == 1) {\n isCombatEnabled = false;\n //no enemy spawned, so spawn:\n if (spawnIterator >= killCount) {\n //TODO END STAGE\n } else {\n System.out.println(\"SPAWNS SHIP\");\n spawnIterator++;\n screen.entities.add(new EnemyShipOne(new Vector2(0, 0), 100, screen.enemyShipOne, true, screen.player));\n\n }\n }\n //Items:\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule) {\n lastCapsuleSpawn = System.currentTimeMillis();\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new BlackBulletItem(x, y, 1000, screen.itemBlackImages));\n\n\n }\n }else{\n if (stageId == 5){\n isCombatEnabled = true;\n float speed;\n boolean spawnRight=true;\n int where=0;\n //TODO FINAL STAGE\n if (!isBossSpawned){\n //TODO\n screen.entities.add(new Boss(new Vector2(PlayScreen.gameViewport.getWorldWidth(),PlayScreen.gameViewport.getWorldHeight()/2 - Boss.height/2),screen.player));\n isBossSpawned=true;\n }\n //Item Spawn\n if (System.currentTimeMillis() - lastCapsuleSpawn >= SpawnTimerCapsule ) {\n speed = 500;\n int x = 0;\n int y = 0;\n lastCapsuleSpawn = System.currentTimeMillis();\n if (stageId==4){\n speed = speed/2;\n where = Utils.doRandom(0,100);\n if (where < 50){\n spawnRight = true;\n }else{\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n x = (int) screen.gameViewport.getWorldWidth();\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }else{\n x = 0 - BlueBulletItem.width;\n y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width *2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n }\n\n int capsule = screen.random.nextInt(2);\n\n if (capsule == 0) {\n if (spawnRight) {\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages));\n }else{\n screen.items.add(new RedBulletItem(x, y, speed, screen.itemRedImages,false));\n }\n } else if (capsule == 1) {\n if (spawnRight) {\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages));\n }else{\n screen.items.add(new BlueBulletItem(x, y, speed, screen.itemBlueImages,false));\n }\n }\n\n }\n if (System.currentTimeMillis() - lastHealthSpawn >= SpawnTimerHealth) {\n speed = 500;\n lastHealthSpawn = System.currentTimeMillis();\n if (stageId == 4) {\n speed = speed / 2;\n where = Utils.doRandom(0, 1);\n if (where < 50) {\n spawnRight = true;\n } else {\n spawnRight = false;\n }\n\n }\n if (spawnRight) {\n int x = (int) screen.gameViewport.getWorldWidth();\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x - BlueBulletItem.width, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages));\n } else {\n int x = 0 - BlueBulletItem.width;\n int y = 0;\n boolean hits = true;\n while (hits) {\n hits = false;\n y = screen.random.nextInt((int) screen.gameViewport.getWorldHeight() - BlueBulletItem.height);\n for (int h = 0; h < collisions.size(); h++) {\n if (Collision.checkWalls(collisions.get(h), new Rectangle(x + BlueBulletItem.width * 2, y, BlueBulletItem.width, BlueBulletItem.height)))\n hits = true;\n }\n }\n screen.items.add(new GreenCapsuleItem(x, y, speed, screen.itemGreenImages, false));\n }\n }\n //TODO\n }\n }\n }\n\n //run .update(delta) on all objects\n for (int i=0; i<screen.entities.size();i++){\n screen.entities.get(i).update(delta);\n }\n\n for (int i=0; i<screen.items.size();i++){\n screen.items.get(i).update(delta);\n }\n\n //labels set:\n screen.labelHealth.setText(\"Health: \" + screen.player.health + \"/\" + screen.player.maxHealth);\n if (scoreBased) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + scoreGoal);\n }else{\n if (killCount>0){\n screen.labelInfo.setText(\"Score: \" + screen.player.score + \"/\" + killCount);\n }else{\n if (boss){\n screen.labelInfo.setText(\"Boss: \"+screen.player.score + \"/\" + Boss.bossHealth);\n }else{\n screen.labelInfo.setText(\"\");\n }\n\n }\n }\n if (this.stageId == 999) {\n screen.labelInfo.setText(\"Score: \" + screen.player.score);\n }\n\n\n }",
"public void addItem(Item toAdd) throws ImpossiblePositionException, NoSuchItemException {\n int itemX = (int) toAdd.getXyLocation().getX();\n int itemY = (int) toAdd.getXyLocation().getY();\n ArrayList<Item> rogueItems = getRogue().getItems();\n int itemFound = 0;\n if ((itemX >= getWidth() - 1) || (itemX <= 0) || (itemY >= getHeight() - 1)\n || (itemY <= 0) || !(roomDisplayArray[itemY][itemX].equals(\"FLOOR\"))) {\n throw new ImpossiblePositionException();\n } else {\n roomItems.add(toAdd);\n }\n for (Item singleItem : rogueItems) {\n if (toAdd.getId() == singleItem.getId()) {\n itemFound = 1;\n }\n }\n if (itemFound != 1) {\n throw new NoSuchItemException();\n }\n\n }",
"protected abstract void defineEnemy();",
"private void addCharacters() {\r\n\t\tplayer = new GImage(\"PlayerEast.png\");\r\n\t\tplayer.scale(.75);\r\n\t\tadd(player, player.getWidth() / 2.0, level1.getY() - player.getHeight());\r\n\t\t\r\n\t\tdragon1 = new GImage(\"Dragon1.png\");\r\n\t\tadd(dragon1, getWidth() - dragon1.getWidth() * 1.5, level1.getY() - dragon1.getHeight());\r\n\t\t\r\n\t\tdragon2 = new GImage(\"Dragon2.png\");\r\n\t\tadd(dragon2, dragon2.getWidth() / 2.0, level2.getY() - dragon2.getHeight());\r\n\t\t\r\n\t\tGObject karel = new GImage(\"karel.png\");\r\n\t\tadd(karel, getWidth() - karel.getWidth(), level3.getY() - karel.getHeight());\r\n\t\t\r\n\t\tmehran = new GImage(\"EvilMehran1.png\");\r\n\t\tadd(mehran, getWidth() - mehran.getWidth() - karel.getWidth(), level3.getY() - mehran.getHeight());\r\n\t}",
"private void initEntities() {\n\t\tship = new ShipEntity(this,\"ship.gif\",370,550);\n\t\tentities.add(ship);\n\t\tscore = 0;\n\t\t// create a block of aliens (5 rows, by 12 aliens, spaced evenly)\n\t\talienCount = 0;\n\t\tfor (int row=0;row<5;row++) {\n\t\t\tfor (int x=0;x<12;x++) {\n\t\t\t\tEntity alien = new AlienEntity(this,\"alien.gif\",100+(x*50),(50)+row*30);\n\t\t\t\tentities.add(alien);\n\t\t\t\talienCount++;\n\t\t\t}\n\t\t}\n\t}",
"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 }",
"private void moveEnemies(){\n \t\tdouble dirX = 0;\n\t\tdouble dirY = 0;\n \t\tdouble length = 99999;\n \t\tint speed = 2;\n\n\t\tfor(int i=0;i<enemy_num;i++){\n\t\t\tdirX = players[enemy[i][2]][1] - enemy[i][0];\n\t\t\tdirY = players[enemy[i][2]][2] - enemy[i][1];\n\t\t\tlength = Math.sqrt(dirX*dirX + dirY*dirY);\n\t\t\tdirX /= length;\n\t\t\tdirY /= length;\n\t\t\tdirX *= speed;\n\t\t\tdirY *= speed;\n\t\t\tenemy[i][0] += dirX;\n\t\t\tenemy[i][1] += dirY;\n\t\t\n\t\t}\n\t\n\t}",
"public void generateEnemy() {\n int rowsPlace = randomGenerator(0, rows-1);\n int collsPlace = randomGenerator(0, colls-1);\n\n if(board[rowsPlace][collsPlace] == ' '){\n snakeEnemyPartList.add(new SnakeEnemyPart(rowsPlace, collsPlace, enemyId));\n board[rowsPlace][collsPlace] = 'E';\n setSnakeHeadColls(collsPlace);\n setSnakeHeadRows(rowsPlace);\n } else {\n generateEnemy();\n }\n }",
"public void addToInventory() {\r\n\t\tdo {\r\n\t\t\tint quantity = 0;\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tWasher washer = store.searchWashers(brand + model);\r\n\t\t\tif (washer == null) {\r\n\t\t\t\tSystem.out.println(\"No such washer exists.\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tquantity = getInteger(\"Enter quantity to add: \");\r\n\t\t\tboolean result = store.addWasherToInventory(brand, model, quantity);\r\n\t\t\tif(result) {\r\n\t\t\t\tSystem.out.println(\"Added \" + quantity + \" of \" + washer);\r\n\t\t\t}else {\r\n\t\t\t\tSystem.out.println(\"Washer could not be added to inventory.\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} while (yesOrNo(\"Add more washers to the inventory?\"));\r\n\t}",
"static void addStuff(Room room, Scanner in) {\n String name = in.nextLine();\n while (name.length() > 0) {\n if(name.equals(\"sword\")){\n room.add(new Sword());\n }\n else{\n room.add(new Thing(name));\n }\n name = in.nextLine();\n \n }\n }",
"private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }",
"private void generateEnemiesOnLayer(Layer layer, int count) {\n // Enemies are generated below the screen all with the same x position as the starting tile\n // but varying y positions.\n Random random = new Random();\n for (int i = 1; i <= count; i++) {\n int enemyType = random.nextInt(7 - 1 + 1) + 1;\n int randomOffset = (2 * (random.nextInt(40 - 15 + 1) + 15));\n int startingHeight = layer.getStartY() + (i * Tile.TILE_HEIGHT) + randomOffset;\n Enemy enemy = null;\n switch (enemyType) {\n case 1:\n enemy = new Rat(layer, layer.getStartX(), startingHeight, player);\n break;\n case 2:\n enemy = new Bat(layer, layer.getStartX(), startingHeight, player);\n break;\n case 3:\n enemy = new Skeleton(layer, layer.getStartX(), startingHeight, player);\n break;\n case 4:\n enemy = new Spider(layer, layer.getStartX(), startingHeight, player);\n break;\n case 5:\n enemy = new Goblin(layer, layer.getStartX(), startingHeight, player);\n break;\n case 6:\n enemy = new Slime(layer, layer.getStartX(), startingHeight, player);\n break;\n case 7:\n enemy = new Imp(layer, layer.getStartX(), startingHeight, player);\n break;\n }\n switch (layer.getLayerType()) {\n case HELL:\n hellEnemies.add(enemy);\n break;\n case EARTH:\n earthEnemies.add(enemy);\n break;\n case HEAVEN:\n heavenEnemies.add(enemy);\n break;\n }\n }\n }",
"protected void putMonsters() {\n\t\tRandom rand = new Random();\n\t\tfor (int monsterCount = 0; monsterCount < 4; monsterCount++){\n\t\t\tint x, y;\n\t\t\tdo {\n\t\t\t\tx = rand.nextInt(xSize);\n\t\t\t\ty = rand.nextInt(ySize);\n\t\t\t} while((levelSetup[x][y] instanceof SimpleRoom) && (x == 0 & y == 0) && !levelSetup[x][y].hasItem());\n\t\t\tlevelSetup[x][y].putMonster(new BasicMonster());\n\t\t}\n\t}",
"public void addItem(Item item,Room room) {\n\t\troom.addItems(item);\n\t}",
"public void add(Evolver occupant)\n {\n Location loc = getRandomEmptyLocation();\n if (loc != null)\n add(loc, occupant);\n }",
"public void enemySpawner(){\n\t\tif (spawnFrame >= spawnTime){\n\t\t\tfor(int i =0;i<enemies.size();i++){\n\t\t\t\tif (!enemies.get(i).getInGame()){\n\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy);\n\t\t\t\t\tbreak;\n\t\t\t\t\t/*if (enemies.get(i).getNum()==1){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy1);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==2){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy2);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else if (enemies.get(i).getNum()==3){\n\t\t\t\t\t\tenemies.get(i).spawnEnemy(Map.enemy3);\n\t\t\t\t\t\tbreak;\n\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}\n\t\t\tspawnFrame=0;\n\t\t} else{\n\t\t\tspawnFrame+=1;\n\t\t}\n\t}",
"private void enterRoom(Room room)\r\n \t{\r\n \t\tif(room.isFull())\r\n \t\t\treturn; // Cannot enter the room\r\n \t\tVector2i pos = room.addCharacter(this, true);\r\n \t\tif(pos == null)\r\n \t\t\treturn; // Cannot enter the room (but should not occur here)\r\n \t\tif(currentRoom != null)\r\n \t\t{\r\n \t\t\t// Quit the last room\r\n \t\t\troom.removeCharacter(this);\r\n \t\t}\r\n \t\tcurrentRoom = room;\r\n \t\tx = pos.x;\r\n \t\ty = pos.y;\r\n \t\t// Debug\r\n \t\tLog.debug(name + \" entered in the \\\"\" + room.getType().name + \"\\\"\");\r\n \t}",
"public EntityItemEmpowerable(World world) {\n super(world);\n }",
"public static void addAll(){\n /* Add kill Achievements. */\n AchievementManager.addAchievement(kill1);\n AchievementManager.addAchievement(kill2);\n AchievementManager.addAchievement(kill3);\n AchievementManager.addAchievement(kill4);\n\n /* Add Death Achievements. */\n AchievementManager.addAchievement(death1);\n AchievementManager.addAchievement(death2);\n AchievementManager.addAchievement(death3);\n AchievementManager.addAchievement(death4);\n\n /* Add Score Achievements. */\n AchievementManager.addAchievement(score1);\n AchievementManager.addAchievement(score2);\n AchievementManager.addAchievement(score3);\n AchievementManager.addAchievement(score4);\n\n /* Add Time Achievements. */\n AchievementManager.addAchievement(time1);\n AchievementManager.addAchievement(time2);\n AchievementManager.addAchievement(time3);\n AchievementManager.addAchievement(time4);\n\n /* Random Achievements. */\n AchievementManager.addAchievement(tutorialAch);\n AchievementManager.addAchievement(secretAch);\n }",
"public void addUnitsTestMethod() {\n minimapUnits = new ArrayList<>();\n System.out.println(\"JOINED PLAYERS: \" + game.getJoinedPlayers());\n for (int i = 0; i < game.getJoinedPlayers(); ++i) {\n Player player = game.getPlayers().get(i);\n System.out.println(\"PLAYER: \" + player);\n Color color;\n if (i == 0) {\n color = Color.RED;\n } else if (i == 1) {\n color = Color.BLUE;\n } else if (i == 2) {\n color = Color.YELLOW;\n } else {\n color = Color.GREEN;\n }\n System.out.println(\"COLOR: \" + color);\n\n for (int j = 0; j < 10; ++j) {\n MinimapUnit minimapUnit = new MinimapUnit(blockSize, blockSize);\n minimapUnit.setMyPlayer(player);\n minimapUnit.setColor(color);\n int id = i * 10 + j;\n Unit unit = new Unit().setPosX(i).setPosY(j).setId(String.valueOf(id));\n minimapUnit.setMyUnit(unit);\n minimapUnit.setPosXY((i * blockSize) + 1, (j * blockSize) + 1);\n minimapUnits.add(minimapUnit);\n drawPane.getChildren().add(minimapUnit);\n System.out.println(\"MINIMAP UNIT: \" + minimapUnit);\n }\n }\n }",
"private List<Room> addRooms() {\n List<Room> rooms = new ArrayList<>();\n int numRooms = RandomUtils.uniform(random, MINROOMNUM, MAXROOMNUM);\n int playerRoomNum = RandomUtils.uniform(random, 0, numRooms);\n for (int i = 0; i < numRooms; i++) {\n rooms.add(addRandomRoom(random));\n if (i == playerRoomNum) {\n setPlayerInitialPosition(rooms, playerRoomNum);\n }\n }\n return rooms;\n }"
] | [
"0.6846196",
"0.6526793",
"0.64577425",
"0.6430821",
"0.63240814",
"0.62344927",
"0.61263585",
"0.61153173",
"0.60885215",
"0.6023442",
"0.6020053",
"0.5936113",
"0.5934017",
"0.5901221",
"0.58774084",
"0.5875265",
"0.58741885",
"0.5841452",
"0.5785145",
"0.5775002",
"0.575903",
"0.57586306",
"0.57496136",
"0.5744072",
"0.5738161",
"0.5731823",
"0.5709863",
"0.56883425",
"0.56739914",
"0.5670471",
"0.56604904",
"0.5649907",
"0.5627596",
"0.5623649",
"0.5616282",
"0.5613324",
"0.5604498",
"0.56011444",
"0.55880725",
"0.55665654",
"0.5553327",
"0.5545637",
"0.5531761",
"0.55239004",
"0.55229694",
"0.5519361",
"0.551766",
"0.5511792",
"0.5496875",
"0.54924077",
"0.5490234",
"0.54897356",
"0.5489361",
"0.54813784",
"0.54802257",
"0.54779726",
"0.5466727",
"0.546086",
"0.5459905",
"0.5446754",
"0.5442558",
"0.5441435",
"0.5438383",
"0.54352164",
"0.5424914",
"0.5424586",
"0.542087",
"0.54130435",
"0.54116035",
"0.54076695",
"0.54060733",
"0.5403704",
"0.5401879",
"0.5399748",
"0.5395474",
"0.5394085",
"0.53853405",
"0.5384674",
"0.5375276",
"0.53748894",
"0.53636056",
"0.5360562",
"0.53565913",
"0.5354774",
"0.5350388",
"0.53491294",
"0.5344858",
"0.53398377",
"0.5334613",
"0.5326949",
"0.5325655",
"0.5320406",
"0.53162986",
"0.5316218",
"0.53093034",
"0.5304643",
"0.53034246",
"0.53016067",
"0.52971447",
"0.528153",
"0.5278239"
] | 0.0 | -1 |
Advance to the next floor. | public void advanceFloor(){
//TODO: write method to move onto next floor
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void next(Lift lift) {\n if (lift.getCurrentFloor() <= 0) {\n lift.setCurrentFloor(lift.getCurrentFloor() + 1);\n lift.setDirection(Direction.UP);\n lift.setState(new OutLiftState(maxFloor, waitingPassenger));\n } else {\n lift.setCurrentFloor(lift.getCurrentFloor() - 1);\n lift.setDirection(Direction.DOWN);\n lift.setState(new OutLiftState(maxFloor, waitingPassenger));\n }\n\n }",
"public Floor nextFloorUp() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 1: next = Floor.SECOND;\n break;\n case 2: next = Floor.THIRD;\n break;\n case 3: next = Floor.FOURTH;\n break;\n case 4: next = Floor.FIFTH;\n break;\n case 5: next = Floor.SIXTH;\n break;\n case 6: next = Floor.SEVENTH;\n break;\n\n }\n return next;\n }",
"public boolean goTo(int floor);",
"public void setCurrentFloor(int i);",
"public void moveTo(int floor) {\n if ( floor > TOP_FLOOR || floor < BOTTOM_FLOOR)\n return;\n while (currentFloor.get() != floor) {\n if (currentFloor.get() < floor) {\n direction.lazySet(Status.UP);\n moveUpFloor();\n }\n if (currentFloor.get() > floor) {\n direction.lazySet(Status.DOWN);\n moveDownFloor();\n }\n }\n }",
"public void handleNextRound() {\n\t\t\r\n\t}",
"public void move() {\n\n if (_currentFloor == Floor.FIRST) {\n _directionOfTravel = DirectionOfTravel.UP;\n }\n if (_currentFloor == Floor.SEVENTH) {\n _directionOfTravel = DirectionOfTravel.DOWN;\n }\n\n\n if (_directionOfTravel == DirectionOfTravel.UP) {\n _currentFloor = _currentFloor.nextFloorUp();\n } else if (_directionOfTravel == DirectionOfTravel.DOWN) {\n _currentFloor = _currentFloor.nextFloorDown();\n }\n\n if(_currentFloor.hasDestinationRequests()){\n stop();\n } \n\n }",
"private void nextPiece() {\n if (_c == M && _r <= M) {\n _c = 1;\n _r++;\n } else if (_r > M) {\n _move = null;\n } else {\n _c++;\n }\n }",
"public Floor nextFloorDown() {\n Floor next = Floor.FIRST; // default value\n switch(_number){\n case 2: next = Floor.FIRST;\n break;\n case 3: next = Floor.SECOND;\n break;\n case 4: next = Floor.THIRD;\n break;\n case 5: next = Floor.FOURTH;\n break;\n case 6: next = Floor.FIFTH;\n break;\n case 7: next = Floor.SIXTH;\n break;\n\n }\n return next;\n\n }",
"public void move(){\n\t\tif (currentFloor == TOTALFLOORS) currentDirection = \"DOWN\"; else currentDirection =\"UP\";\t\t//sets inital direction for the elevator.\n\t\tfor (int x = 1; x <= TOTALFLOORS; x++){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//This loop will move the elevator through each floor. \n\t\t\tif (getTotalPassDestFloor()[currentFloor] >0 || destRequest[currentFloor] == 'Y')this.stop(); \t//Checks for the destined passengers or registered request for the current floor.\n\t\t\tif (currentDirection == \"UP\") currentFloor++; else currentFloor--;\t\t\t\t\t\t\t//Moves the elevator up/down based on the direction\n\t\t}\n\t\tif (currentFloor == 8) currentFloor--;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//Adjusts currentfloor value when elevator-\n\t\tif (currentFloor == 0) currentFloor++;\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//-is at first or top most floor\n\t}",
"public int getNextInstruction() {\n\t\t\n\t\tint nextFloor = -1;\n\t\tswitch (elevator.getCurrentDirection()) {\n\t\t\n\t\t//get first element of upQueue that is ABOVE the elevator's current floor\n\t\tcase UP:\n\t\t\tfor (int i = 0; i < upQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) >= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in upQueue is UNDER the elevator's current floor\n\t\t\tif (nextFloor < 0 && downQueue.size() > 0) {\n\t\t\t\tnextFloor = downQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t//get first element of downQueue that is UNDER the elevator's current floor\n\t\tcase DOWN:\n\t\t\tfor (int i = 0; i < downQueue.size() && nextFloor < 0; i++) {\n\t\t\t\tif (upQueue.get(i) <= elevator.getCurrentFloor()) {\n\t\t\t\t\tnextFloor = upQueue.get(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// change direction if every floor in downQueue is ABOVE the elevator's current floor\n\t\t\tif (nextFloor < 0 && upQueue.size() > 0) {\n\t\t\t\tnextFloor = upQueue.get(0);\n\t\t\t}\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn nextFloor;\n\t}",
"protected int moveUpFloor() {\n delayElevator();\n return currentFloor.incrementAndGet();\n }",
"public void setFloor(int floor) {\n this.floor = floor;\n }",
"public void move(){\n \n currentFloor = currentFloor + ( 1 * this.direction);\n //if we're at the bottom or top after move, flip the bit\n if(Elevator.MIN_FLOOR == currentFloor \n || currentFloor == Elevator.MAX_FLOOR)\n this.direction *= -1;\n \n if(destinedPassengers[ currentFloor ] > 0)\n elevatorStop( currentFloor, true );\n \n if(building.floor(currentFloor).passengersWaiting() > 0)\n elevatorStop(currentFloor, false);\n \n }",
"public void setCurrentFloor(int currentFloor) {\n this.currentFloor = currentFloor;\n }",
"public void next(){\n\t\tboundIndex = (boundIndex+1)%buttonBounds.length;\n\t\tupdateButtonBounds();\n\t}",
"private void doNextRow(){\n\t\tmove();\n\t\twhile (frontIsClear()){\n\t\t\talternateBeeper();\n\t\t}\n\t\tcheckPreviousSquare();\t\n\t}",
"private void nextRound() {\n\t\n\t\t\n\t\tcfight++;\n\t\tif(cfight>=maxround)\n\t\t{\n\t\tcfight=0;\n\t\t\n\t\tround++;\n\t\t\tmaxround/=2;\n\t\t}\n\t\t\n\tif(round<4)\n\t{\n\tcontrollPCRound();\n\t}\n\telse\n\t{\n\t\tint sp=0;\n\t\tint round=0;\n\t\tfor(int i=0; i<fighter.length; i++)\n\t\t{\n\t\t\tif(spieler[i]>0)\n\t\t\t{\n\t\t\t\tsp++;\n\t\t\t\tif(fround[i]>round)\n\t\t\t\t{\n\t\t\t\tround=fround[i];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\tif(geld==false)\n\t{\n\t\tgeld=true;\n\t\tif(sp==1)\n\t\t{\n\t\tZeniScreen.addZenis(round*3500);\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\tint w=round*4000-500*sp;\n\t\t\tif(w<1)\n\t\t\t{\n\t\t\t\tw=100;\n\t\t\t}\n\t\t\tZeniScreen.addZenis(w);\t\n\t\t}\n\t}\n\t}\n\t\n\t\n\t}",
"private void incr() {\n Move tempMove = null;\n Piece t1, t2;\n while (_r <= M) {\n t1 = Board.this._turn;\n t2 = Board.this.get(_c, _r);\n if (t1 == t2) {\n break;\n } else {\n nextPiece();\n }\n }\n if (_r > M) {\n _move = null;\n return;\n }\n int c1, r1, count3;\n Piece temp1, temp2;\n Board tempBoard;\n _dir = _dir.succ();\n while (_dir != null) {\n count3 = pieceCountAlong(_c, _r, _dir);\n c1 = _c + _dir.dc * count3;\n r1 = _r + _dir.dr * count3;\n tempMove = Move.create(_c, _r, c1, r1, Board.this);\n if (tempMove == null) {\n _dir = _dir.succ();\n continue;\n }\n if (isLegal(tempMove)) {\n _move = tempMove;\n break;\n }\n _dir = _dir.succ();\n }\n if (_dir == null) {\n _dir = NOWHERE;\n nextPiece();\n incr();\n }\n }",
"public void nextTurn(){\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"private void moveNext(PositionTracker tracker) {\n\t\t \n\t\t //initiate if-else statement\n\t\t if(tracker.getExactColumn() == (tracker.getMaxColumns() - 1)) {\n\t\t\t \n\t\t\t //invoke the setExactRow method\n\t\t\t tracker.setExactRow(tracker.getExactRow() + 1);\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(0);\n\t\t\t \n\t\t }else {\n\t\t\t \n\t\t\t //invoke the setExactColumn method\n\t\t\t tracker.setExactColumn(tracker.getExactColumn() + 1);\n\t\t }//end if-else\n\t }",
"protected int moveDownFloor() {\n delayElevator();\n return currentFloor.decrementAndGet();\n }",
"public void next() {\n\t\telements[(currentElement - 1)].turnOff();\n\t\tif (elements.length > currentElement) {\n\t\t\telements[currentElement].turnOn();\n\t\t\tcurrentElement++;\n\t\t} else {\n\t\t\texit();\n\t\t}\n\t}",
"public int getCurrentFloor();",
"public void nextRoom() {\n room++;\n createRoom();\n }",
"public int getGotoFloor();",
"private void nextRound() {\r\n action = 0;\r\n if (round == GameConstants.ROUNDS) {\r\n round = 0;\r\n if (phase == 0) {\r\n vc = null;\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n }\r\n phase++;\r\n } else {\r\n round++;\r\n }\r\n }",
"public void advance(int factor)\n {\n int length = this.getMorphCount();\n this.resetTime();\n\n if (length == 0)\n {\n return;\n }\n\n this.index += factor;\n this.index = MathHelper.clamp_int(this.index, -1, length - 1);\n }",
"public void step(){\n if (this.ht < maxHeight){\n this.ht = this.ht + STEP_SIZE;\n }\n else if (! this.isFinished()){\n this.radius = this.radius + GROW_SIZE;\n }\n }",
"public void beginNextRound() {\n\t\tsetBeginNextRound(true);\n\t}",
"void advance(int tickCount) {\n if (tickCount % 2 == 0) { // slow the animation down a little\n mySequenceIndex++;\n mySequenceIndex %= 4;\n setAnimatedTile(myAnimatedTileIndex,\n FRAME_SEQUENCE[mySequenceIndex]);\n }\n }",
"@Override\n protected void moveToNextRow(){\n incrementRow();\n resetXPos();\n if(getRow()%2 == 1){\n incrementYPos(getHeight()+getHeight());\n }\n resetCol();\n setPointDirection();\n }",
"public void moveNext() {\n\t\tcurrentElement++;\n\t}",
"public void nextTurn() {\n\t\tLog.d(TAG, \"nextTurn()\");\t\t\n\t\ttickPeople();\n\t\t//doEvents();\n\t\tupdateBar();\n\t}",
"public void incrementCurrentRoundNumber() {\n\t\t\n\t\tcurrentRoundnumber = currentRoundnumber +1;\n\t}",
"public void next(){\n if(stageNum < (defineStageNum)) {\n stageNum++;\n }else {\n stageNum = startStageNum;\n }\n }",
"public int currentFloor(){\n return currentFloor;\n }",
"public void advance() {\n\t\tif(isFinalFrame(current)) {\n\t\t\tthrow new IllegalStateException(\"Invalid Entry\"); // input sanitization if last frame (cant advance further )\n\t\t\t\n\t\t}\n\t\tif (!current.movesFinished()) { // input sanitization -- cant advance if the user hasnt exercised all the frames moves\n\t\t\tthrow new IllegalStateException(\"Invalid Entry\");\n\t\t}\n\t\telse current = frames.get(frames.indexOf(current) + 1); // else updates the current frame to frame at next index. \n\t}",
"private void advanceTime(){\n\t minute++;\n\t while (minute > 59) {\n\t minute -= 60;\n\t hour++;\n\t }\n\t while (hour > 23) {\n\t hour -= 24;\n\t day++;\n\t }\n\t while (day > 6) {\n\t day -= 7;\n\t }\n\n\t }",
"public void stepForwad() {\n\t\t\t\n\t\t\tswitch(this.direction) {\n\t\t\t\tcase 0:\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tthis.x += 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: \n\t\t\t\t\tthis.x -= 1;\n\t\t\t\t\tthis.y += 1;\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tthis.x = (this.worldWidth + this.x)%this.worldWidth;\n\t\t\tthis.y = (this.worldHeight + this.y)%this.worldHeight;\n\t\t}",
"public final void buildNext() {\n branch++;\n }",
"public void nextLevelTogo() {\n if (this.myClearedLines % 2 == 0) {\n myLinesToGo = 2;\n } else {\n myLinesToGo = 1;\n }\n }",
"protected void nextDirection()\n {\n if (this.lastKeyDirection == Canvas.LEFT)\n {\n this.lastKeyDirection = keyDirection = Canvas.RIGHT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n else if (this.lastKeyDirection == Canvas.RIGHT)\n {\n this.lastKeyDirection = keyDirection = Canvas.LEFT;\n xTotalDistance = 0;\n //yTotalDistance = 0;\n }\n }",
"private void advanceRow(){\n\t\tfaceBackwards();\n\t\twhile(frontIsClear()){\n\t\t\tmove();\n\t\t}\n\t\tturnRight();\n\t\tif(frontIsClear()){\n\t\t\tmove();\n\t\t\tturnRight();\n\t\t}\n\t}",
"@Override\n public void gotoFloor(int elevatorId, int floor) {\n if (elevatorId > elevators.size() - 1) {\n System.out.println(\"Incorrect request. Elevator = \" + elevatorId + \" is not a valid elevator\");\n }\n elevators.get(elevatorId).getRequests().offer(floor);\n }",
"private boolean seeNextFloorX(Position target) {\n if (target.x == position.x) {\n return false;\n }\n if (target.x > position.x) {\n\n return world[position.x + 1][position.y].equals(Tileset.FLOOR);\n }\n if (target.x < position.x) {\n return world[position.x - 1][position.y].equals(Tileset.FLOOR);\n }\n return false;\n }",
"public void nextMove(Field field) {\n for (int i = 1; i <= 9; i++) {\n if (field.setMarker(i, marker)) {\n break;\n }\n }\n }",
"private void nextPosition()\n\t{\n\t\tdouble playerX = Game.player.getX();\n\t\tdouble playerY = Game.player.getY();\n\t\tdouble diffX = playerX - x;\n\t\tdouble diffY = playerY - y;\n\t\tif(Math.abs(diffX) < 64 && Math.abs(diffY) < 64)\n\t\t{\n\t\t\tclose = true;\n\t\t} \n\t\telse\n\t\t{\n\t\t\tclose = false;\n\t\t}\n\t\tif(close)\n\t\t{\n\t\t\tattackPlayer();\n\t\t} \n\t\telse if(alarm.done())\n\t\t{\n\t\t\tdirection = Math.abs(random.nextInt() % 360) + 1;\n\t\t\talarm.setTime(50);\n\t\t}\n\t\thspd = MathMethods.lengthDirX(speed, direction);\n\t\tvspd = MathMethods.lengthDirY(speed, direction);\n\t\tif(hspd > 0 && !flippedRight)\n\t\t{\n\t\t\tflippedRight = true;\n\t\t\tsetEnemy();\n\t\t} \n\t\telse if(hspd < 0 && flippedRight)\n\t\t{\n\t\t\tflippedRight = false;\n\t\t\tsetEnemy();\n\t\t}\n\t\tmove();\n\t\talarm.tick();\n\t\tshootTimer.tick();\n\t}",
"@Override\n public void advance() {\n if (isCurrent()) {\n prev = cursor;\n cursor = cursor.getNext();\n } else {\n throw new IllegalStateException(\"There is no current element.\");\n }\n }",
"private static void processGroundCal()\n\t{\n\t\tif (testMotor != null) {\n\t\t\tSystem.out.println(\"Calibrating arm to floor position\");\n\t\t\ttestMotor.setPosition(SOFT_ENCODER_LIMIT_FLOOR);\n\t\t}\n\t}",
"private void getNext() {\n Node currNode = getScreenplayElem().getChildNodes().item(currPos++);\n while (currNode.getNodeType() != Node.ELEMENT_NODE) {\n currNode = getScreenplayElem().getChildNodes().item(currPos++);\n }\n currElem = (Element) currNode;\n }",
"@Override\n\tpublic void makeNextMove() \n\t{\n\t}",
"public void next()\n\t{\n\t\tSystem.err.print(\"-\");\n\t\tif(pp.available())\n\t\t{\n\t\t\tSystem.err.print(\"+\");\n\t\t\timg_header=pp.getFrameHeader();\n\t\t\tbi=pp.getFrame();\n\t\t\tip[ip_index].setImage(bi);\n\t\t\tip[ip_index].repaint();\n\t\t\tip_index++;\n\t\t\t//ip_index%=cols*rows;\n\t\t\tip_index%=tiles;\n\t\t\tpp.next();\n\t\t}\n\t\tif(panel_glass.isVisible() || is_paused)\n\t\t{\n\t\t\tupdateInfoPanel();\n\t\t\tpanel_buffer_fill.setValue(pp.getBufferFillLevel());\n\t\t\tpanel_buffer_fill.repaint();\n\t\t\tif(is_paused)\n\t\t\t{\n\t\t\t\ttry{Thread.sleep(10);}catch(Exception e){}\n\t\t\t}\n\t\t}\n\t}",
"public void advance() {\n\n if (length == Length.DAILY) {\n startDate.add(Calendar.DATE, 1);\n } else if (length == Length.WEEKLY) {\n startDate.add(Calendar.WEEK_OF_YEAR, 1);\n } else if (length == Length.BIWEEKLY) {\n startDate.add(Calendar.DATE, 14);\n } else if (length == Length.MONTHLY) {\n startDate.add(Calendar.MONTH, 1);\n } else if (length == Length.YEARLY) {\n startDate.add(Calendar.YEAR, 1);\n }\n\n calculateEndDate();\n\n }",
"public void makeNextMove() {\n\t\ttakeNextNonTabuedCheapestStep();\n\t\t}",
"public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}",
"private void nextLevel()\n\t{\n\t\tMapInstance.getInstance().setSelectedLevel(MapInstance.getInstance().getSelectedLevel() + 1);\n\t}",
"void step () {\n if (gameOver)\n return;\n if (!isFalling) {\n // if last piece finished falling, spawn a new one\n spawnNewPiece();\n // if it can't move, game over\n if (!canMove(currentRow + 1, currentColumn)) {\n endGame();\n }\n updateView();\n }\n else if (canMove(currentRow + 1, currentColumn)) {\n currentRow += 1;\n updateView();\n } else {\n // the piece fell!\n isFalling = false;\n // draw current shape to the board\n drawCurrentToBoard();\n currentPiece.blocks = new int[currentPiece.blocks.length][currentPiece.blocks[0].length];\n increaseScore(board.clearFullRows(this));\n }\n }",
"public void nextFrame() {\r\n if (frame < maxFrames - 1) {\r\n frame++;\r\n } else {\r\n frame = 0;\r\n }\r\n }",
"@Override\n void advance() {\n }",
"public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }",
"public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }",
"public void boardPassenger(int floor){\n _passengersOnboard +=1;\n switch(floor){\n case 1: Floor.FIRST.makeDestinationRequest();\n Floor.FIRST.addQueuedPassenger();\n break;\n case 2: Floor.SECOND.makeDestinationRequest();\n Floor.SECOND.addQueuedPassenger();\n break;\n case 3: Floor.THIRD.makeDestinationRequest();\n Floor.THIRD.addQueuedPassenger();\n break;\n case 4: Floor.FOURTH.makeDestinationRequest();\n Floor.FOURTH.addQueuedPassenger();\n break;\n case 5: Floor.FIFTH.makeDestinationRequest();\n Floor.FIFTH.addQueuedPassenger();\n break;\n case 6: Floor.SIXTH.makeDestinationRequest();\n Floor.SIXTH.addQueuedPassenger();\n break;\n case 7: Floor.SEVENTH.makeDestinationRequest();\n Floor.SEVENTH.addQueuedPassenger();\n break;\n }\n }",
"public void move() {\n Grid<Actor> gr = getGrid();\n if (gr == null) {\n return;\n }\n Location loc = getLocation();\n if (gr.isValid(next)) {\n setDirection(getLocation().getDirectionToward(next));\n moveTo(next);\n } else {\n removeSelfFromGrid();\n }\n Flower flower = new Flower(getColor());\n flower.putSelfInGrid(gr, loc);\n }",
"public void nextTurn() {\r\n ArrayList<Bomb> copy_bombs = new ArrayList<>(this.bombs);\r\n for (Bomb b : copy_bombs) {\r\n if(b.getDelay() == 1){\r\n this.explode = true;\r\n }\r\n b.tick();\r\n b.explode(this);\r\n }\r\n this.ordering = new LinkedList<>();\r\n this.fillPlayerQueue();\r\n if (this.random_order) {\r\n Collections.shuffle((List)this.ordering);\r\n }\r\n\r\n this.turn_number++;\r\n }",
"public void advance( )\r\n {\r\n\t if(isCurrent() != true){// Implemented by student.\r\n\t throw new IllegalStateException(\"no current element\");\r\n\t }\r\n\t else\r\n\t \t precursor = cursor;\r\n\t \t cursor = cursor.getLink(); // Implemented by student.\r\n }",
"public void nextRound() {\n\n k += 1;\n\n BigInteger[] arr2 = new BigInteger[arr.length];\n int j = 0;\n for(int i = 0; i < arr.length; i++) {\n if(arr[i] == null)\n continue;\n\n arr2[j++] = arr[i].shiftLeft(1);\n arr2[j++] = arr[i].shiftLeft(1).setBit(0);\n\n }\n // We should have exactly arr.length places filled (no nulls left!)\n assert(j == arr.length) : \"Backing array not completely filled in!\";\n arr = arr2;\n\n }",
"@Override\n\tpublic int calledByFloorNumber() {\n\t\treturn this.lastStoppedFloor;\n\t}",
"@Override\r\n public void move() {\r\n Grid<Actor> gr = getGrid();\r\n if (gr == null) {\r\n return;\r\n }\r\n Location loc = getLocation();\r\n if (gr.isValid(next)) {\r\n setDirection(getLocation().getDirectionToward(next));\r\n moveTo(next);\r\n } else {\r\n removeSelfFromGrid();\r\n }\r\n Flower flower = new Flower(getColor());\r\n flower.putSelfInGrid(gr, loc);\r\n }",
"private static void next()\n {\n if ( cX + 2 * clientW > maxX )\n {\n if ( cY + 2 * clientH < maxY )\n {\n cX = 0; cY += clientH;\n }\n } else {\n cX += clientW;\n }\n // No room on screen\n // All new windows are tiled on top of each other\n }",
"private void openDoor(int floor){\r\n\t\tfor(int i = 0; i <1000; i++){\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"Elevator no. \"+ id+ \" Door opened at floor \"+ floor);\r\n\t}",
"void walkToQueue(LinkedList<Rider> startFloorQueue){\n riderAni.setImage(image);\r\n final int beginningQueueSize = startFloorQueue.size();\r\n TranslateTransition tt = new TranslateTransition();\r\n tt.setNode(riderAni);\r\n tt.setToX(250-Controller.queueOffsets.get(startFloor-1));\r\n tt.setDuration(Duration.seconds(4));\r\n TranslateTransition fl = new TranslateTransition();\r\n fl.setNode(floorLabel);\r\n fl.setToX(245-Controller.queueOffsets.get(startFloor-1));\r\n fl.setDuration(Duration.seconds(4));\r\n TranslateTransition tl = new TranslateTransition();\r\n tl.setNode(timerLabel);\r\n tl.setToX(245-Controller.queueOffsets.get(startFloor-1));\r\n tl.setDuration(Duration.seconds(4));\r\n ParallelTransition pt = new ParallelTransition(tt,fl,tl);\r\n pt.play();\r\n final int offset= Controller.queueOffsets.get(startFloor-1);\r\n\r\n pt.onFinishedProperty().set(new EventHandler<ActionEvent>() {\r\n public void handle(ActionEvent event) {\r\n //fires once person stops walking\r\n if (timer==null){\r\n startTimer();\r\n }\r\n riderAni.setImage(image2);\r\n if (beginningQueueSize==1 || offset==0||(! Controller.floorDirectionCalled.get(startFloor-1).equals(direction)&&!Controller.floorDirectionCalled.get(startFloor-1).equals(\"BOTH\"))){\r\n Controller.getElevator(startFloor,direction);\r\n }\r\n }\r\n });\r\n }",
"private Action doNextMove(Action move){\n\t\t// update east or north\n\t\tif (move == Action.East){\n\t\t\teast++;\n\t\t} else if (move == Action.West){\n\t\t\teast--;\n\t\t} else if (move == Action.North){\n\t\t\tnorth++;\n\t\t} else if (move == Action.South){\n\t\t\tnorth--;\n\t\t}\n\t\treturn move;\n\t}",
"private void advanceInvaders() {\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader i : row) {\n\t\t\t\ti.setY(i.getY() + 4);\n\t\t\t}\n\t\t}\n\t}",
"void scheduleNextDestination(Passenger passenger, Floor currentFloor);",
"public final void addFloor(Floor floor) {\n/* 6453 */ if (this.floors == null)\n/* 6454 */ this.floors = new HashSet<>(); \n/* 6455 */ this.floors.add(floor);\n/* 6456 */ if (floor.isStair())\n/* */ {\n/* 6458 */ Stairs.addStair(hashCode(), floor.getFloorLevel());\n/* */ }\n/* 6460 */ if (this.vitems != null)\n/* */ {\n/* 6462 */ for (Item pile : this.vitems.getPileItems())\n/* */ {\n/* 6464 */ pile.updatePosZ(this);\n/* */ }\n/* */ }\n/* 6467 */ if (this.watchers != null)\n/* */ {\n/* 6469 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 6473 */ vz.updateFloor(this.structure.getWurmId(), floor);\n/* */ }\n/* 6475 */ catch (Exception e) {\n/* */ \n/* 6477 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ }\n/* */ }",
"public void advanceToEndOfNextTrick() {\n\n if (isGameOver()) {\n return;\n }\n \n if (isFirstTurn) {\n startTurn();\n isFirstTurn=false;\n }\n else {\n state=state.withTrickCollected();\n for (Map.Entry<PlayerId, Player> pId: players.entrySet()) {\n pId.getValue().updateScore(state.score());\n }\n }\n\n if (isGameOver()) {\n for (Map.Entry<PlayerId, Player> pId: players.entrySet()) {\n pId.getValue().setWinningTeam(findWinningTeam());\n }\n return;\n }\n\n if (!isFirstTurn && state.isTerminal()) {\n startTurn();\n }\n\n for (Map.Entry<PlayerId, Player> pId: players.entrySet()) {\n pId.getValue().updateScore(state.score());\n pId.getValue().updateTrick(state.trick());\n }\n\n while (!(state.trick().isFull())) {\n playNextPlayer();\n }\n }",
"public void step(){\n if (this.jobs.contains(this.currentFloor)){ //we arrived at our destination\n this.openDoor();\n this.leavePeople();\n this.deleteJob(this.currentFloor);\n } else {\n this.closeDoor();\n this.changeState();\n this.move();\n }\n }",
"private void advance() {\n if (currColumn == 8) {\n currColumn = 0;\n currRow++;\n }\n else {\n currColumn++;\n }\n if (!(currRow == 9 && currColumn == 0)) {\n if (startingBoard[currRow][currColumn] != 0) {\n advance();\n }\n }\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"public int getCurrentFloor() {\n return currentFloor;\n }",
"private void next() {\n Timeline currentTimeline = simpleExoPlayerView.getPlayer().getCurrentTimeline();\n if (currentTimeline.isEmpty()) {\n return;\n }\n int currentWindowIndex = simpleExoPlayerView.getPlayer().getCurrentWindowIndex();\n if (currentWindowIndex < currentTimeline.getWindowCount() - 1) {\n player.seekTo(currentWindowIndex + 1, C.TIME_UNSET);\n } else if (currentTimeline.getWindow(currentWindowIndex, new Timeline.Window(), false).isDynamic) {\n player.seekTo(currentWindowIndex, C.TIME_UNSET);\n }\n }",
"public void setNext()\n {\n\t int currentIndex = AL.indexOf(currentObject);\n\t currentObject = AL.get(currentIndex +1);\n\t \n\t// never let currentNode be null, wrap to head\n\tif (currentObject == null)\n\t\tcurrentObject = firstObject;\n }",
"private final void advance() {\n if (currentIterator == null) {\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n if (!currentIterator.hasNext()) {\n // we want advance to next iterator only when this iterator is exhausted\n if (index < intMaps.length - 1) {\n // we can advance to next iterator only if currentIterator is not the last iterator\n ++index;\n if (!fetched[index]) {\n GetAllCustomMap.this.fetchValuesForIndex(index);\n }\n currentIterator = intMaps[index].entrySet().iterator();\n } else {\n // we can not advance to next iterator because this iterator is the last iterator\n }\n } else {\n // we do not want to advance to next iterator because this iterator is not fully exhausted\n }\n }\n }",
"public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}",
"public void tick () {\r\n\r\n if(currentRequests.isEmpty()) return;\r\n\r\n if(!this.isPickUp() && this.getCurrentFloor() < this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() > this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down towards pickup on Floor \" + this.getCurrentRequests().peek().getCurrentFloor() + \" and is now on Floor\" + this.currentFloor);\r\n }\r\n else if(!this.isPickUp() && this.getCurrentFloor() == this.getCurrentRequests().peek().getCurrentFloor()){\r\n this.setPickUp(true);\r\n System.out.println(this.getId() + \" has arrived at pickup location\");\r\n return;\r\n }\r\n\r\n if (this.isPickUp() && currentRequests.peek().getDestinationFloor() == this.currentFloor) {\r\n System.out.println(this.getId() + \" has reached its destination \" + this.getCurrentRequests().peek().getDestinationFloor());\r\n this.currentRequests.poll();\r\n this.pickUp = false;\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"UP\") {\r\n this.currentFloor++;\r\n System.out.println(this.getId() + \" has moved up to Floor \" + this.currentFloor);\r\n }\r\n else if (this.isPickUp() && this.currentRequests.peek().getDirection() == \"DOWN\"){\r\n this.currentFloor--;\r\n System.out.println(this.getId() + \" has moved down to Floor \" + this.currentFloor);\r\n }\r\n\r\n }",
"public K floor(K key);",
"public abstract void advance();",
"public void nextTurn(){\n\t\tplayers[currentPlayer].setNotCurrentPlayer();\n\t\t\n\t\t//increment current player to advance to next player\n\t\tcurrentPlayer = (currentPlayer + 1) % players.length;\n\t\t\n\t\t//update the new current player\n\t\tupdateCurrentPlayerView();\n\t}",
"public void nextTurn() {\n do {\n colonySimulator.nextTurn(curTurn);\n curTurn++;\n try {\n Thread.sleep(200);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n } while (!stepping && queenAlive);\n }",
"private void getNextPosition() {\n if (falling) {\n dy += fallSpeed;\n }\n }",
"public void setDestinationFloor(int destinationFloor){\n this.destinationFloor=destinationFloor;\n }",
"public void setFloor(String floor) {\n\t\tthis.floor = floor;\n\t}",
"private void m27461a() {\n if (this.f25303r >= 2) {\n if (this.f25303r % 2 == 0) {\n this.f25303r++;\n }\n this.f25304s = this.f25303r + 2;\n this.f25305t = this.f25304s / 2;\n return;\n }\n throw new ArithmeticException(\"Wheel's visible item count can not be less than 2!\");\n }",
"public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }",
"public void setActualFloor(int _actualFloor) {\n\t\tactualFloor = _actualFloor;\n\t}",
"public void clearGotoFloor();",
"protected void next() {\n\t\t// Next node\n\t\tnode = path.remove(0);\n\t\ttransition(NavigatorState.ROTATE_TO);\n\t}",
"public void goToNextDay() {\n currDay ++;\n\n // at the beginning of a new day, all the unvisited POIs should be feasible\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }",
"public int getCurrentFloor() {\n\t\treturn currentFloor;\n\t}"
] | [
"0.6925196",
"0.6361184",
"0.6284372",
"0.62702626",
"0.62657684",
"0.6172717",
"0.6126429",
"0.60786724",
"0.6070096",
"0.60687906",
"0.58729464",
"0.58535886",
"0.5790342",
"0.5743982",
"0.571761",
"0.5668346",
"0.5646937",
"0.56055665",
"0.5590394",
"0.5570479",
"0.5568046",
"0.5567888",
"0.5564531",
"0.5552844",
"0.55481285",
"0.55403286",
"0.5526428",
"0.55061865",
"0.5494117",
"0.5487151",
"0.54740685",
"0.546506",
"0.54521894",
"0.544933",
"0.54277927",
"0.5419582",
"0.54181206",
"0.54158646",
"0.5414338",
"0.5407086",
"0.5403373",
"0.5396652",
"0.5370488",
"0.53647536",
"0.53479135",
"0.53431046",
"0.53377014",
"0.5322005",
"0.5307411",
"0.53049576",
"0.5288419",
"0.5287538",
"0.5282537",
"0.52705806",
"0.5268011",
"0.52658635",
"0.5265096",
"0.5263002",
"0.525793",
"0.5255172",
"0.52466726",
"0.52434826",
"0.52327",
"0.52302504",
"0.5227574",
"0.5223926",
"0.52177256",
"0.5214891",
"0.52122957",
"0.52072453",
"0.52071285",
"0.52043676",
"0.5201951",
"0.51965934",
"0.5195327",
"0.5189595",
"0.5186169",
"0.5185986",
"0.5176625",
"0.5173633",
"0.5173633",
"0.5172275",
"0.51716405",
"0.5169285",
"0.5160667",
"0.51561075",
"0.5152434",
"0.5150343",
"0.514701",
"0.5144562",
"0.5139025",
"0.5132036",
"0.51304036",
"0.5128919",
"0.51275504",
"0.5124483",
"0.5123364",
"0.51215005",
"0.5120567",
"0.5119939"
] | 0.856825 | 0 |
Constructs a new object. | public ApplicationStub() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OBJECT createOBJECT();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public CMObject newInstance();",
"Reproducible newInstance();",
"protected abstract void construct();",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"private Instantiation(){}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"private SingleObject()\r\n {\r\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7231841",
"0.71967894",
"0.7196264",
"0.7141073",
"0.70838195",
"0.70537",
"0.7016537",
"0.6961097",
"0.69576335",
"0.69576335",
"0.69576335",
"0.69212204",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836"
] | 0.0 | -1 |
Constructs a new object. | public ApplicationStub(final String id) {
sessionID = id;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OBJECT createOBJECT();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public CMObject newInstance();",
"Reproducible newInstance();",
"protected abstract void construct();",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"private Instantiation(){}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"private SingleObject()\r\n {\r\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7232399",
"0.71966016",
"0.7195631",
"0.71399856",
"0.7084115",
"0.705351",
"0.70162374",
"0.69599724",
"0.6957191",
"0.6957191",
"0.6957191",
"0.6921259",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945",
"0.68274945"
] | 0.0 | -1 |
Constructs a new object. | public ApplicationStub(final Context context) {
super(context);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"OBJECT createOBJECT();",
"public ObjectFactory() {\n super(grammarInfo);\n }",
"public CMObject newInstance();",
"Reproducible newInstance();",
"protected abstract void construct();",
"public ObjectFactory() {\n\t}",
"public ObjectFactory() {\r\n\t}",
"private Instantiation(){}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"public ObjectFactory() {}",
"private SingleObject()\r\n {\r\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }",
"public ObjectFactory() {\n }"
] | [
"0.7231841",
"0.71967894",
"0.7196264",
"0.7141073",
"0.70838195",
"0.70537",
"0.7016537",
"0.6961097",
"0.69576335",
"0.69576335",
"0.69576335",
"0.69212204",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836",
"0.68277836"
] | 0.0 | -1 |
write your code here | public static void main(String[] args) throws NoSuchAlgorithmException {
String text = "Hello World";
System.out.println("Исходный текст : " + text);
MessageDigest sha1 = MessageDigest.getInstance("MD5");
byte[] bytes = sha1.digest(text.getBytes());
StringBuilder stringBuilder = new StringBuilder();
for (byte b : bytes){
stringBuilder.append(String.format("%02X ", b)); //конверитрую в 16-ричку
}
System.out.print("Хеш-код : " + stringBuilder.toString());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logic(){\r\n\r\n\t}",
"public static void generateCode()\n {\n \n }",
"@Override\n\tprotected void logic() {\n\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"void pramitiTechTutorials() {\n\t\n}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public void ganar() {\n // TODO implement here\n }",
"public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }",
"CD withCode();",
"private stendhal() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"public void gored() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"public void genCode(CodeFile code) {\n\t\t\n\t}",
"public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"public void baocun() {\n\t\t\n\t}",
"public void mo38117a() {\n }",
"public void furyo ()\t{\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void strin() {\n\n\t}",
"public void themesa()\n {\n \n \n \n \n }",
"Programming(){\n\t}",
"@Override\n\tvoid output() {\n\t\t\n\t}",
"private void yy() {\n\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }",
"private void kk12() {\n\n\t}",
"public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}",
"public static void main(String[] args) {\n\t// write your code here\n }",
"private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}",
"@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}",
"protected void mo6255a() {\n }",
"public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}",
"@Override\n\tpublic void function() {\n\t\t\n\t}",
"public void working()\n {\n \n \n }",
"@Override\n\tprotected void postRun() {\n\n\t}",
"public void perder() {\n // TODO implement here\n }",
"public void smell() {\n\t\t\n\t}",
"protected void execute() {\n\t\t\n\t}",
"public void mo55254a() {\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tpublic void orgasm() {\n\t\t\n\t}",
"public void cocinar(){\n\n }",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"protected void execute() {\n\n\n \n }",
"@Override\n public void execute() {\n \n \n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"public static void main(String args[]) throws Exception\n {\n \n \n \n }",
"@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"protected void display() {\n\r\n\t}",
"private void sout() {\n\t\t\n\t}",
"private static void oneUserExample()\t{\n\t}",
"public void nhapdltextlh(){\n\n }",
"public void miseAJour();",
"protected void additionalProcessing() {\n\t}",
"private void sub() {\n\n\t}",
"@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}",
"@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}",
"void mo67924c();",
"@Override\n\tpublic void dosomething() {\n\t\t\n\t}",
"@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }",
"public void mo5382o() {\n }",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}",
"public void mo3376r() {\n }",
"public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }",
"void kiemTraThangHopLi() {\n }",
"public void skystonePos5() {\n }",
"public final void cpp() {\n }",
"public final void mo51373a() {\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}"
] | [
"0.61019534",
"0.6054925",
"0.58806974",
"0.58270746",
"0.5796887",
"0.56999695",
"0.5690986",
"0.56556827",
"0.5648637",
"0.5640487",
"0.56354505",
"0.56032085",
"0.56016207",
"0.56006724",
"0.5589654",
"0.5583692",
"0.55785793",
"0.55733466",
"0.5560209",
"0.55325305",
"0.55133164",
"0.55123806",
"0.55114794",
"0.5500045",
"0.5489272",
"0.5482718",
"0.5482718",
"0.5477585",
"0.5477585",
"0.54645246",
"0.5461012",
"0.54548836",
"0.5442613",
"0.5430592",
"0.5423748",
"0.5419415",
"0.5407118",
"0.54048806",
"0.5399331",
"0.539896",
"0.5389593",
"0.5386248",
"0.5378453",
"0.53751254",
"0.5360644",
"0.5357343",
"0.5345515",
"0.53441405",
"0.5322276",
"0.5318302",
"0.53118485",
"0.53118485",
"0.53085434",
"0.530508",
"0.53038436",
"0.5301922",
"0.5296964",
"0.52920514",
"0.52903354",
"0.5289583",
"0.5287506",
"0.52869135",
"0.5286737",
"0.5286737",
"0.5286737",
"0.5286737",
"0.5286737",
"0.5286737",
"0.5286737",
"0.52859664",
"0.52849185",
"0.52817136",
"0.52791214",
"0.5278664",
"0.5278048",
"0.5276269",
"0.52728665",
"0.5265451",
"0.526483",
"0.526005",
"0.5259683",
"0.52577406",
"0.5257731",
"0.5257731",
"0.52560073",
"0.5255759",
"0.5255707",
"0.5250705",
"0.5246863",
"0.5243053",
"0.52429926",
"0.5242727",
"0.52396125",
"0.5239378",
"0.5232576",
"0.5224529",
"0.52240705",
"0.52210563",
"0.52203166",
"0.521787",
"0.52172214"
] | 0.0 | -1 |
Create a new BrowserBookmarksAdapter. | public BrowserBookmarksAdapter(BrowserBookmarksPage b, String curPage,
String curTitle, Bitmap curThumbnail, boolean createShortcut,
boolean mostVisited) {
mNeedsOffset = !(createShortcut || mostVisited);
mMostVisited = mostVisited;
mExtraOffset = mNeedsOffset ? 1 : 0;
mBookmarksPage = b;
mCurrentPage = b.getResources().getString(R.string.current_page)
+ curPage;
mCurrentTitle = curTitle;
mCurrentThumbnail = curThumbnail;
mContentResolver = b.getContentResolver();
mViewMode = BookmarkViewMode.LIST;
String whereClause;
// FIXME: Should have a default sort order that the user selects.
String orderBy = Browser.BookmarkColumns.VISITS + " DESC";
if (mostVisited) {
whereClause = Browser.BookmarkColumns.VISITS + " != 0";
} else {
whereClause = Browser.BookmarkColumns.BOOKMARK + " != 0";
}
mCursor = b.managedQuery(Browser.BOOKMARKS_URI,
Browser.HISTORY_PROJECTION, whereClause, null, orderBy);
mCursor.registerContentObserver(new ChangeObserver());
mCursor.registerDataSetObserver(new MyDataSetObserver());
mDataValid = true;
notifyDataSetChanged();
mCount = mCursor.getCount() + mExtraOffset;
// FIXME: This requires another query of the database after the
// managedQuery. Can we optimize this?
Browser.requestAllIcons(mContentResolver,
Browser.BookmarkColumns.FAVICON + " is NULL AND " +
Browser.BookmarkColumns.BOOKMARK + " == 1", mIconReceiver);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private BookmarkStore() {\n }",
"private JMenu getMnuBookmarks() {\r\n\t\tif (mnuBookmarks == null) {\r\n\t\t\tmnuBookmarks = new JMenu();\r\n\t\t\tmnuBookmarks.setText(\"Bookmarks\");\r\n\t\t\tmnuBookmarks.add(getMniAddBookmark());\r\n\t\t\tmnuBookmarks.add(getSepBookmark1());\r\n\t\t}\r\n\t\treturn mnuBookmarks;\r\n\t}",
"@Out Bookmark[] bookmarks();",
"public EnhancedBookmarksBridge(Profile profile) {\n mNativeEnhancedBookmarksBridge = nativeInit(profile);\n }",
"@Service BookmarkService bookmark(String id);",
"@NonNull\n Single<List<HistoryItem>> getAllBookmarks();",
"public PageNav create() throws ClientException {\n DocumentModel doc = this.session.createDocument(this.doc);\n PageNav adapter = doc.getAdapter(PageNav.class);\n adapter.setSession(session);\n\t\t\treturn adapter;\n }",
"public List<Bookmark> getBookmarks (Long userId) throws BookMarkException;",
"public static Document create(Document passport,Map<String, Object> data) throws Exception {\n\t\tList<String> errors=new LinkedList<String>();\n\t\tBookmark obj= new Bookmark();\n\t\tupdateFromMap(obj, data,errors);\n\t\tobj.setCreatedBy(passport.getString(\"loginName\"));\n\t\tobj.setCreatedDate(new Date());\n\t\tobj.setLastUpdatedBy(obj.getCreatedBy());\n\t\tobj.setLastUpdatedDate(obj.getCreatedDate());\n\t\tACLManager.isAuthorize(passport,ACL_MODE, ACLManager.ACTION_CREATE, null, toDocument(obj));\n\t\tobj.setStatus(StatusService.getInstance().getByTypeandCode(\"Bookmark\", \"new\"));\n\t\tobj.setOwner(UserService.getInstance().get(passport.getLong(\"userId\")));\n\t\tcheckValidity(obj, errors);\n\t\tif(!errors.isEmpty()) throw new Exception(listToString(errors));\n\t\tBookmarkService.getInstance().add(obj);\n\t\treturn toDocument(obj);\n\t}",
"public void loadBookmarks() {\n // Set the WHERE clause\n mDbNodeHelper.setConditions(\"is_bookmarked\", \"1\");\n // Run the query.\n nodes = mDbNodeHelper.getNodeListData();\n // Flush the query builder properties.\n mDbNodeHelper.flushQuery();\n }",
"@Override\n public BookmarkEntity create(BookmarkEntity bookmark) {\n logger.info(\"Entering create() in BookmarkDAO\");\n return bookmarkRepository.save(bookmark);\n }",
"public Map<String, String> getBookmarks() {\n return Collections.unmodifiableMap(bookmarks);\n }",
"public LibraryAdapterFactory() {\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu)\n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.bookmarks_menu, menu);\n\n ArrayAdapter<String> bookmarkAdapter = new ArrayAdapter<String>(this,R.id.bookmarks_list,)\n return true;\n }",
"private List<Bookmark> getBookmarks(PDDocument doc) throws IOException {\n var bookmarks = new ArrayList<Bookmark>();\n var bookmarkRoot = doc.getDocumentCatalog().getDocumentOutline();\n if (bookmarkRoot != null) {\n storeBookmarks(bookmarkRoot, bookmarks, 0, doc);\n }\n return bookmarks;\n }",
"public JavaBrowsingPerspectiveFactory() {\n\t\tsuper();\n\t}",
"@NonNull\n Completable addBookmarkList(@NonNull List<HistoryItem> bookmarkItems);",
"public void addBookmarks(ActionEvent event) throws IOException{\n bookmarkTxt();\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n this.view = inflater.inflate(R.layout.fragment_bookmarks, container, false);\n this.bookmarkManager = new BookmarkManager(this.view);\n this.recyclerView = this.view.findViewById(R.id.bookmarks_recycler_view);\n //Set Empty view for the adapter observer\n TextView noBookmarksTextView = this.view.findViewById(R.id.no_bookmarks);\n this.recyclerView.emptyRecyclerViewItems(noBookmarksTextView);\n this.recyclerView.addItemDecoration(new DividerItemDecoration(recyclerView.getContext(), DividerItemDecoration.VERTICAL));\n this.layoutManager = new GridLayoutManager(this.view.getContext(), Constants.BOOKMARK_COLUMN);\n loadBookmarks();\n return this.view;\n }",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"private Bookmarks() {}",
"@Override\n\tpublic List<String> getBookmarks(String userName) throws Exception {\n\t\treturn null;\n\t}",
"public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }",
"private void StatusBookmarks(){\n\t\tif(myDb.getAllRowsFavour().getCount()==0){\n\t\t\t\n\t\t\tRelativeLayout relative=(RelativeLayout) findViewById(R.id.mylayoutbookmark);\n\t\t\tmyText=new TextView(this);\n\t\t\tmyText.setTextColor(R.style.txtinLsViewSociaty);\n\t\t\tmyText.setText(\"Hiện tại bạn chưa thêm Bookmarks vào.\");\n\t\t\t\n\t\t\trelative.addView(myText);\n\t\t}\n\t}",
"private static void loadBooks() {\n\tbookmarks[2][0]=BookmarkManager.getInstance().createBook(4000,\"Walden\",\"\",1854,\"Wilder Publications\",new String[] {\"Henry David Thoreau\"},\"Philosophy\",4.3);\n\tbookmarks[2][1]=BookmarkManager.getInstance().createBook(4001,\"Self-Reliance and Other Essays\",\"\",1900,\"Dover Publications\",new String[] {\"Henry David Thoreau\"},\"Philosophy\",4.3);\n\tbookmarks[2][2]=BookmarkManager.getInstance().createBook(4002,\"Light From Many Lamps\",\"\",1960,\"Wilder Publications\",new String[] {\"Henry David Thoreau\"},\"Philosophy\",4.3);\n\tbookmarks[2][3]=BookmarkManager.getInstance().createBook(4003,\"Head First Design Patterns\",\"\",1944,\"Wilder Publications\",new String[] {\"Henry David Thoreau\"},\"Philosophy\",4.3);\n\tbookmarks[2][4]=BookmarkManager.getInstance().createBook(4004,\"Effective Java Programming Language Guide\",\"\",1990,\"Wilder Publications\",new String[] {\"Eric Freeman\",\"Bert Bates\",\"Kathy Sierra\",\"Elisabeth Robson\"},\"Philosophy\",4.3);\n}",
"public BrowserPresenter create() {\n return new BrowserPresenter(context);\n }",
"public PageAdapter() {\n this.mapper = new MapperImpl();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.main);\n \n bookmarkUrlInput = (EditText) findViewById(R.id.bookmarkAdressInput);\n bookmarkNameInput = (EditText) findViewById(R.id.bookmarkNameInput);\n \n bookmarkSaveButton = (Button) findViewById(R.id.saveBookmarkButton);\n\t\tbookmarkSaveButton.setOnClickListener(new Button.OnClickListener() {\n\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\n\t\t\t\tString url = bookmarkUrlInput.getText().toString();\n\t\t\t\tString name = bookmarkNameInput.getText().toString(); \n\t\t\t\t\n\t\t\t\tString errorMsg = \"\";\n\t\t\t\tboolean error = false;\n\t\t\t\tboolean success = false;\n\t\t\t\t\n\t\t\t\tif(url==null || url.equals(\"\")) {\n\t\t\t\t\terror = true;\n\t\t\t\t\terrorMsg += \"Podaj adres zakladki\\n\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(name==null || name.equals(\"\")) {\n\t\t\t\t\terror = true;\n\t\t\t\t\terrorMsg += \"Podaj nazwe zakladki\\n\";\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(error) {\n\t\t\t\t\tToast.makeText(ContentReceiverActivity.this, errorMsg, Toast.LENGTH_SHORT).show();\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tif(doesBookmarkExist(url)) {\n\t\t\t \t\tToast.makeText(ContentReceiverActivity.this, \"Zakladka o adresie \\n***\" + url + \"***\\njuz istnieje.\" , Toast.LENGTH_LONG).show();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsuccess = addNewBookmark(url, name);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(success) {\n\t\t\t\t\t\tToast.makeText(ContentReceiverActivity.this, \"Zakladka zostala dodana.\\nSprawdz zakladki w przegladarce.\" , Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n \n }",
"public BreweriesAdapter() {\n }",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String selectedItem = (String) parent.getItemAtPosition(position);\n\n int j = Integer.parseInt(BookmarksList.get(position));\n pdfView.jumpTo(j);\n Log.d(TAG, \"onItemClick: Bookmark selected: \" + position + \"\\n \" + j);\n // View BookmarkView=(View)findViewById(R.id.includeBookmark);\n BookmarkView.setVisibility(View.GONE);\n\n }",
"public static BookmarkStore getInstance() {\n return store;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.bookmarks);\n dbHelper = new Db(this);\n db = dbHelper.getWritableDatabase();\n final Bookmarks current_activity = this;\n ((Button)findViewById(R.id.new_bookmark)).setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n current_activity.showDialog(DIALOG_LABEL);\n \t}\n });\n }",
"public DeclarationAdapterFactory() {\n\t\t// Raise visibility\n\t}",
"public BookingAdapterFactory() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = BookingPackage.eINSTANCE;\n\t\t}\n\t}",
"public BromiumFactoryImpl()\n {\n super();\n }",
"public static addbooks newInstance() {\n return new addbooks();\n }",
"public static TypeAdapterFactory create() {\n return new AutoValueGson_MyTypeAdapterFactory();\n }",
"protected abstract SingleTypeAdapter<E> createAdapter( final List<E> items );",
"public void mo8740a(BookmarkId bookmarkId) {\n }",
"@NonNull\n Single<List<HistoryItem>> getBookmarksFromFolderSorted(@Nullable String folder);",
"public ArrayList<LocationMarker> getBookmarks(long userId, int type){\n try {\n petBetterDb.openDatabase();\n }catch (SQLException e) {\n e.printStackTrace();\n }\n\n ArrayList<LocationMarker> result = petBetterDb.getBookmarks(userId, type);\n petBetterDb.closeDatabase();\n return result;\n }",
"public static JsonAdapter.Factory create() {\n return nullSafe(new AutoValueMoshi_AutoValueFactory());\n }",
"private void getListOfBookmarkedArticles() {\n databaseRef.child(mFirebaseAuth.getCurrentUser().getUid()).child(res.getString(R.string.bookmarks_label)).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n //Clear the previous list\n bookmarkedArticles.clear();\n\n //Iterating through all nodes\n for(DataSnapshot dataSnapshot1: dataSnapshot.getChildren()){\n ArticleItem articleItem = dataSnapshot1.getValue(ArticleItem.class);\n bookmarkedArticles.add(articleItem);\n }\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }",
"public ListDNS allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"public static MarkingsEditLetteringFragment newInstance() {\n\t\tMarkingsEditLetteringFragment fragment = new MarkingsEditLetteringFragment();\n\t\treturn fragment;\n\t}",
"Builder adapterFactory(TypeAdapterFactory factory);",
"public ForumListAdapter createForumAdapter(int id, AwfulUpdateCallback frag) {\n \t\tForumListAdapter ad = new ForumListAdapter(id, frag);\n \t\tfragments.add(ad);\n \t\treturn ad;\n \t}",
"public View getView(int position, View convertView, ViewGroup parent) {\n if (!mDataValid) {\n throw new IllegalStateException(\n \"this should only be called when the cursor is valid\");\n }\n if (position < 0 || position > mCount) {\n throw new AssertionError(\n \"BrowserBookmarksAdapter tried to get a view out of range\");\n }\n if (mViewMode == BookmarkViewMode.GRID) {\n if (convertView == null || convertView instanceof AddNewBookmark\n || convertView instanceof BookmarkItem) {\n LayoutInflater factory = LayoutInflater.from(mBookmarksPage);\n convertView\n = factory.inflate(R.layout.bookmark_thumbnail, null);\n }\n View holder = convertView.findViewById(R.id.holder);\n ImageView thumb = (ImageView) convertView.findViewById(R.id.thumb);\n TextView tv = (TextView) convertView.findViewById(R.id.label);\n\n if (0 == position && mNeedsOffset) {\n // This is to create a bookmark for the current page.\n holder.setVisibility(View.VISIBLE);\n tv.setText(mCurrentTitle);\n\n if (mCurrentThumbnail != null) {\n thumb.setImageBitmap(mCurrentThumbnail);\n } else {\n thumb.setImageResource(\n R.drawable.browser_thumbnail);\n }\n return convertView;\n }\n holder.setVisibility(View.GONE);\n mCursor.moveToPosition(position - mExtraOffset);\n tv.setText(mCursor.getString(\n Browser.HISTORY_PROJECTION_TITLE_INDEX));\n Bitmap thumbnail = getBitmap(Browser.HISTORY_PROJECTION_THUMBNAIL_INDEX, position);\n if (thumbnail == null) {\n thumb.setImageResource(R.drawable.browser_thumbnail);\n } else {\n thumb.setImageBitmap(thumbnail);\n }\n\n return convertView;\n\n }\n if (position == 0 && mNeedsOffset) {\n AddNewBookmark b;\n if (convertView instanceof AddNewBookmark) {\n b = (AddNewBookmark) convertView;\n } else {\n b = new AddNewBookmark(mBookmarksPage);\n }\n b.setUrl(mCurrentPage);\n return b;\n }\n if (mMostVisited) {\n if (convertView == null || !(convertView instanceof HistoryItem)) {\n convertView = new HistoryItem(mBookmarksPage);\n }\n } else {\n if (convertView == null || !(convertView instanceof BookmarkItem)) {\n convertView = new BookmarkItem(mBookmarksPage);\n }\n }\n bind((BookmarkItem) convertView, position);\n if (mMostVisited) {\n ((HistoryItem) convertView).setIsBookmark(\n getIsBookmark(position));\n }\n return convertView;\n }",
"public AppointmentDashbordAdapter(FragmentManager fm, int tabCount, String businessId, String addressId) {\n super(fm);\n //Initializing tab count\n this.tabCount = tabCount;\n this.addressId=addressId;\n this.businessId=businessId;\n }",
"public BrowserPresenterFactory(Context context) {\n this.context = context;\n }",
"Browser create(ConnectionFactory connectionFactory) {\n return new BrowserImpl(connectionFactory);\n }",
"@Service\n@Area(\"Infrastructure\")\npublic interface BookmarksService {\n /**\n * Adding a new bookmark.\n *\n * Example of adding a bookmark:\n *\n * [source]\n * ----\n * POST /ovirt-engine/api/bookmarks\n * ----\n *\n * [source,xml]\n * ----\n * <bookmark>\n * <name>new_example_vm</name>\n * <value>vm: name=new_example*</value>\n * </bookmark>\n * ----\n *\n * @author Oved Ourfali <oourfali@redhat.com>\n * @date 12 Dec 2016\n * @status added\n */\n interface Add {\n @InputDetail\n default void inputDetail() {\n mandatory(bookmark().name());\n mandatory(bookmark().value());\n }\n /**\n * The added bookmark.\n *\n * @author Oved Ourfali <oourfali@redhat.com>\n * @date 12 Dec 2016\n * @status added\n */\n @In @Out Bookmark bookmark();\n }\n\n /**\n * Listing all the available bookmarks.\n *\n * Example of listing bookmarks:\n *\n * [source]\n * ----\n * GET /ovirt-engine/api/bookmarks\n * ----\n *\n * [source,xml]\n * ----\n * <bookmarks>\n * <bookmark href=\"/ovirt-engine/api/bookmarks/123\" id=\"123\">\n * <name>database</name>\n * <value>vm: name=database*</value>\n * </bookmark>\n * <bookmark href=\"/ovirt-engine/api/bookmarks/456\" id=\"456\">\n * <name>example</name>\n * <value>vm: name=example*</value>\n * </bookmark>\n * </bookmarks>\n * ----\n *\n * The order of the returned bookmarks isn't guaranteed.\n *\n * @author Oved Ourfali <oourfali@redhat.com>\n * @date 12 Dec 2016\n * @status added\n */\n interface List extends Follow {\n /**\n * The list of available bookmarks.\n *\n * @author Oved Ourfali <oourfali@redhat.com>\n * @date 12 Dec 2016\n * @status added\n */\n @Out Bookmark[] bookmarks();\n\n /**\n * Sets the maximum number of bookmarks to return. If not specified all the bookmarks are returned.\n */\n @In Integer max();\n }\n\n /**\n * A reference to the service managing a specific bookmark.\n *\n * @author Oved Ourfali <oourfali@redhat.com>\n * @date 12 Dec 2016\n * @status added\n */\n @Service BookmarkService bookmark(String id);\n}",
"public interface BookmarkRepository {\r\n\r\n void addBookmark(User user, Bookmark bookmark);\r\n\r\n List<Bookmark> allUserBookmarks(User user);\r\n}",
"DocBook createDocBook();",
"public static void add(UserBookmark userBookmark) {\n\t\tuserBookmarks[bookmarkIndex++]=userBookmark;\n\t\n}",
"public ListProxy allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"@Override\n public void startNewSession(final IBrowser.BrowserType aBrowserType) {\n endSession();\n\n final WetatorConfiguration tmpConfiguration = wetatorEngine.getConfiguration();\n\n // reset the bookmarks\n bookmarks = new HashMap<>();\n\n final BrowserVersion tmpBrowserVersion = determineBrowserVersionFor(aBrowserType);\n\n DefaultCredentialsProvider tmpCredentialProvider = null;\n\n final String tmpHost = tmpConfiguration.getProxyHost();\n if (StringUtils.isNotEmpty(tmpHost)) {\n LOG.info(\"Proxy configured\");\n LOG.info(\"Proxy Host: '\" + tmpHost + \"'\");\n final int tmpPort = tmpConfiguration.getProxyPort();\n LOG.info(\"Proxy Port: '\" + tmpPort + \"'\");\n\n webClient = new WebClient(tmpBrowserVersion, tmpHost, tmpPort);\n\n final SecretString tmpProxyUser = tmpConfiguration.getProxyUser();\n if (null != tmpProxyUser && !tmpProxyUser.isEmpty()) {\n final String tmpUser = tmpProxyUser.getValue();\n LOG.info(\"Proxy User: '\" + tmpUser + \"'\");\n final String tmpPassword = tmpConfiguration.getProxyPassword().getValue();\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword, tmpHost, tmpPort, null);\n } else {\n LOG.info(\"Proxy no user defined\");\n }\n\n final Set<String> tmpNonProxyHosts = tmpConfiguration.getProxyHostsToBypass();\n\n for (final String tmpString : tmpNonProxyHosts) {\n String tmpHostsToProxyBypass = tmpString.trim();\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"\\\\.\", \"\\\\\\\\.\");\n tmpHostsToProxyBypass = tmpHostsToProxyBypass.replaceAll(\"^\\\\*\", \".*\");\n\n webClient.getOptions().getProxyConfig().addHostsToProxyBypass(tmpHostsToProxyBypass);\n LOG.info(\"Proxy HostsToProxyBypass: '\" + tmpHostsToProxyBypass + \"'\");\n }\n } else {\n webClient = new WebClient(tmpBrowserVersion);\n }\n\n final SecretString tmpBasicAuthUser = tmpConfiguration.getBasicAuthUser();\n if (null != tmpBasicAuthUser && !tmpBasicAuthUser.isEmpty()) {\n final String tmpUser = tmpBasicAuthUser.getValue();\n final String tmpPassword = tmpConfiguration.getBasicAuthPassword().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addCredentials(tmpUser, tmpPassword);\n webClient.setCredentialsProvider(tmpCredentialProvider);\n\n LOG.info(\"BasicAuth enabled user '\" + tmpUser + \"'.\");\n }\n\n final SecretString tmpNtlmUser = tmpConfiguration.getNtlmUser();\n if (null != tmpNtlmUser && !tmpNtlmUser.isEmpty()) {\n final String tmpUser = tmpNtlmUser.getValue();\n final String tmpPassword = tmpConfiguration.getNtlmPassword().getValue();\n final String tmpWorkstation = tmpConfiguration.getNtlmWorkstation().getValue();\n final String tmpDomain = tmpConfiguration.getNtlmDomain().getValue();\n\n if (null == tmpCredentialProvider) {\n tmpCredentialProvider = new DefaultCredentialsProvider();\n webClient.setCredentialsProvider(tmpCredentialProvider);\n }\n\n tmpCredentialProvider.addNTLMCredentials(tmpUser, tmpPassword, null, -1, tmpWorkstation, tmpDomain);\n\n LOG.info(\"NTLM enabled user '\" + tmpUser + \"' workstation '\" + tmpWorkstation + \"' domain '\" + tmpDomain + \"'.\");\n }\n\n // setup our listener\n webClient.addWebWindowListener(new WebWindowListener(this));\n webClient.setAttachmentHandler(new AttachmentHandler());\n webClient.setAlertHandler(new AlertHandler(wetatorEngine));\n webClient.getWebConsole().setLogger(new WebConsoleLogger(wetatorEngine));\n webClient.setIncorrectnessListener(new IncorrectnessListener(wetatorEngine));\n webClient.setConfirmHandler(new ConfirmHandler(wetatorEngine));\n\n // refresh handler - behave like the browser does\n webClient.setRefreshHandler(new WaitingRefreshHandler());\n\n // javascript\n webClient.getOptions().setJavaScriptEnabled(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.setJavaScriptErrorListener(new JavaScriptErrorListener(this));\n\n // webClient.getOptions().setThrowExceptionOnFailingStatusCode(false);\n // webClient.getOptions().setUseInsecureSSL(true);\n\n final Set<SearchPattern> tmpFilters = tmpConfiguration.getJsJobFilterPatterns();\n if (tmpFilters.isEmpty()) {\n jobFilter = null;\n } else {\n jobFilter = new JavaScriptJobFilter();\n for (final SearchPattern tmpSearchPattern : tmpFilters) {\n jobFilter.addPattern(tmpSearchPattern);\n }\n }\n\n // register activeX control mocker\n // should we do something like this?\n // webClient.getOptions().setActiveXNative(false);\n webClient.setActiveXObjectMap(tmpConfiguration.getBrowserActiveXObjects());\n\n // set Accept-Language header\n webClient.addRequestHeader(\"Accept-Language\", tmpConfiguration.getAcceptLanaguage());\n\n // trust all SSL-certificates\n webClient.getOptions().setUseInsecureSSL(true);\n\n // use client certificate key store\n final String tmpClientCertKeyStoreUrl = tmpConfiguration.getClientCertificateKeyStoreUrl();\n if (StringUtils.isNotEmpty(tmpClientCertKeyStoreUrl)) {\n final String tmpClientCertKeyStoreType = tmpConfiguration.getClientCertificateKeyStoreType();\n final SecretString tmpClientCertKeyStorePassword = tmpConfiguration.getClientCertificateKeyStorePassword();\n\n LOG.info(\"ClientCertificateKeyStore configured\");\n LOG.info(\" URL: \" + tmpClientCertKeyStoreUrl);\n LOG.info(\" Type: \" + tmpClientCertKeyStoreType);\n LOG.info(\" Password: \" + tmpClientCertKeyStorePassword);\n\n try {\n final URL tmpKeyStoreURL = new URL(tmpClientCertKeyStoreUrl);\n webClient.getOptions().setSSLClientCertificate(tmpKeyStoreURL, tmpClientCertKeyStorePassword.getValue(),\n tmpClientCertKeyStoreType);\n } catch (final Exception e) {\n LOG.error(\"Failed to use configured ClientCertificateKeyStore.\", e.getCause());\n }\n }\n\n // set the timeout\n webClient.getOptions().setTimeout(tmpConfiguration.getHttpTimeoutInSeconds() * 1000);\n\n // debug stuff\n if (tmpConfiguration.isDebugLoggingEnabled()) {\n final HtmlUnitContextFactory tmpContextFactory = ((JavaScriptEngine) webClient.getJavaScriptEngine())\n .getContextFactory();\n tmpContextFactory.setDebugger(new DebuggerImpl());\n }\n // webClient.setAjaxController(new NicelyResynchronizingAjaxController());\n if (tmpConfiguration.startJsDebugger()) {\n WebClientUtils.attachVisualDebugger(webClient);\n }\n }",
"public static Books setUpClient() {\n return new Books.Builder(AndroidHttp.newCompatibleTransport()\n , jsonFactory, null)\n .setApplicationName(APPLICATION_NAME)\n .setGoogleClientRequestInitializer(new BooksRequestInitializer(APIKEY))\n .build();\n }",
"public ListBuild allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"public ListOAuth allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"public BookAdapter(Context context, List<Book> books) {\n super(context, 0, books);\n }",
"public NdbAdapter(Context context) {\n this.context = context;\n }",
"public Adapter create( Argument[] arguments )\r\n throws UnrecognizedCriteria, InvalidCriteria, CreationException\r\n {\r\n return getFactory().create( arguments ).get_adapter();\r\n }",
"public BrowserHistory(String homepage) {\n head = new Node(homepage);\n current = head;\n }",
"abstract public void setUpAdapter();",
"BOp createBOp();",
"public List<Bookmark> searchBookmarks (String searchString, BookmarkType type, Long userId) throws BookMarkException;",
"public @NotNull Bidder newBidder();",
"private static void loadMovies() {\n\tbookmarks[1][0]=BookmarkManager.getInstance().createMovie(3000,\"Citizen Kane\",1941,new String[] {\"Orson Welles,Joseph Cotten\"},new String[] {\"Orson Welles\"},MovieGenre.CLASSICS,8.5);\n\tbookmarks[1][1]=BookmarkManager.getInstance().createMovie(3001,\"The Grapes of Wrath\",1940,new String[] {\"Henry Fonda,Jane Darwell\"},new String[]{\"John Ford\"},MovieGenre.CLASSICS,8.2);\n\tbookmarks[1][2]=BookmarkManager.getInstance().createMovie(3002,\"A Touch of Greatness\",2004,new String[] {\"Albert Cullum\"},new String[] {\"Leslie Sullivan\"},MovieGenre.DOCUMENTARIES,7.3);\n\tbookmarks[1][3]=BookmarkManager.getInstance().createMovie(3003,\"The Big Bang Theory\",2007,new String[] {\"Kaley Cuoco,Jim Parsons\"},new String[] {\"Chuck Lorre,Bill Prady\"},MovieGenre.TV_SHOWS,8.7);\n\tbookmarks[1][3]=BookmarkManager.getInstance().createMovie(3004,\"Ikiru\",1952,new String[] {\"Takashi Shimura,Minoru Chiaki\"},\tnew String[] {\"Akira Kurosawa\"}\t,MovieGenre.FOREIGN_MOVIES,8.4);\n}",
"public SiteItemProvider ( AdapterFactory adapterFactory )\n {\n super ( adapterFactory );\n }",
"public AdressBook() {\r\n addressEntryList = new LinkedList<>();\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bookmark, container, false);\n context = getActivity();\n init(view);\n\n return view;\n }",
"public ListInfrastructure allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"public Guide create() {\n\t\tfinal Guide res = super.create(Guide.class);\n\n\t\tres.setIncidents(new HashSet<Incident>());\n\t\tres.setExhibitions(new HashSet<Exhibition>());\n\n\t\treturn res;\n\t}",
"public static AddressBook create(String bookName) {\n return new AddressBook(bookName);\n }",
"public BookListFragment() {\n }",
"private void setupToolbar(boolean bringUpSearch, boolean bringUpNav, boolean bringUpBookmarks) {\n \t\t\n \t\t//toolbar openers\n \t\tButton openSearch = (Button) findViewById(R.id.open_search);\n \t\tButton openNav = (Button) findViewById(R.id.open_nav);\n \t\tButton openBookmarks = (Button) findViewById(R.id.open_bookmarks);\n \t\t\n \t\t//toolbar hider\n \t\tButton hide = (Button) findViewById(R.id.hide);\n \t\t\n \t\t//searh toolbar\n \t\tButton prevWord = (Button) findViewById(R.id.prev_word);\n \t\tButton nextWord = (Button) findViewById(R.id.next_word);\n \t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\n \t\t\n \t\t//integrate navigation and bookmarks\n \t\tButton upGuide = (Button) findViewById(R.id.up_guide);\n \t\tButton downGuide = (Button) findViewById(R.id.down_guide);\n \t\t\n \t\tTextView numMarks = (TextView) findViewById(R.id.num_of_marks);\n \t\tButton prevMark = (Button) findViewById(R.id.prev_mark);\n \t\tButton makeMark = (Button) findViewById(R.id.make_mark);\n \t\tButton nextMark = (Button) findViewById(R.id.next_mark);\n \t\t\n \t\t\n \t\t\n \t\t//If first time this is called, initiate setup\n \t\tif(isFirstTime)\n \t\t{\n \t\t\t//open search button\n \t\t\topenSearch.setText(\"Search\");\n \t\t\topenSearch.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(true, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open navigation button\n \t\t\t//TODO: setup navigation functionality (divide the guide into ten parts and go up and down the guide ten percent)\n \t\t\topenNav.setText(\"Navigate\");\n \t\t\topenNav.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, true, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open bookmarks button\n \t\t\t//TODO: setup bookmarks functionality (save the scroll location of a desired bookmark to local memory)\n \t\t\topenBookmarks.setText(\"Bookmarks\");\n \t\t\topenBookmarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, false, true);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//hide bar button\n \t\t\thide.setText(\"Hide\");\n \t\t\thide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tsetupToolbar(false, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The previous button\n \t\t\tprevWord.setText(\"<\");\n \t\t\tprevWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The forward button\n \t\t\tnextWord.setText(\">\");\n \t\t\tnextWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, true);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t//The up page button\n \t\t\tupGuide.setText(\"Up ^\");\n \t\t\tupGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The down page button\n \t\t\tdownGuide.setText(\"Down v\");\n \t\t\tdownGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\t//The number of bookmarks page button\n \t\t\tnumMarks.setText(\"Number\");\n \t\t\tnumMarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//Go back a bookmark button\n \t\t\tprevMark.setText(\"<\");\n \t\t\tprevMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t\n \t\t\t//set current scrollview scrollTo to this bookmark\n\t\t\tmakeMark.setText(\"Bookmark location\");\n \t\t\tmakeMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t//Go to next boormark button\n \t\t\tnextMark.setText(\"next >\");\n \t\t\tnextMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\tisFirstTime = false;\n \t\t}\n \t\t\n \t\t\n \t\tif(bringUpSearch)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//Bring up the search toolbar\n \t\t\tprevWord.setVisibility(View.VISIBLE);\n \t\t\tnextWord.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//The search bar\n \t\t\tsearchBar.setHint(\"Search guide\");\n \t\t\tsearchBar.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpNav)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//bring up navigation bar\n \t\t\tupGuide.setVisibility(View.VISIBLE);\n \t\t\tdownGuide.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpBookmarks)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\t\n \t\t\t//bring up bookmarks bar\n \t\t\tnumMarks.setVisibility(View.VISIBLE);\n \t\t\tprevMark.setVisibility(View.VISIBLE);\n \t\t\tmakeMark.setVisibility(View.VISIBLE);\n \t\t\tnextMark.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//Bring up the regular toolbar menu\n\t\t\t// Hide non funtional features\n\t\t\topenSearch.setVisibility(View.GONE);\n\t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\thide.setVisibility(View.GONE);\n \t\t\tprevWord.setVisibility(View.GONE);\n \t\t\tnextWord.setVisibility(View.GONE);\n \t\t\tsearchBar.setVisibility(View.GONE);\n \t\t\t\n \t\t\tupGuide.setVisibility(View.GONE);\n \t\t\tdownGuide.setVisibility(View.GONE);\n \t\t\t\n \t\t\tnumMarks.setVisibility(View.GONE);\n \t\t\tprevMark.setVisibility(View.GONE);\n \t\t\tmakeMark.setVisibility(View.GONE);\n \t\t\tnextMark.setVisibility(View.GONE);\n \t\t}\n \t}",
"public bhi createPresenter() {\n return new bhi(this);\n }",
"private JMenuItem getMniAddBookmark() {\r\n\t\tif (mniAddBookmark == null) {\r\n\t\t\tmniAddBookmark = new JMenuItem();\r\n\t\t\tmniAddBookmark.setText(\"Add bookmark...\");\r\n\t\t}\r\n\t\treturn mniAddBookmark;\r\n\t}",
"public void updateList() {\n if (getActivity().getClass().getName().contains(\"BookmarksActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadBookmarks();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n else if (getActivity().getClass().getName().contains(\"BrowseActivity\")) {\n\n // Call the create right after initializing the helper, just in case\n // the user has never run the app before.\n mDbNodeHelper.createDatabase();\n\n // Get a list of bookmarked node titles.\n loadList();\n\n // Close the database\n mDbNodeHelper.close();\n\n // Clear the old ListView.\n setListAdapter(null);\n\n // Initialize a new model object\n CategoryModel[] bookmarksModel = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n bookmarksModel[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n\n // Create a new list adapter based on our new updated array.\n ListAdapter bookmarksAdapter = new CategoryModelListAdapter(mActivity, bookmarksModel);\n\n // set the new list adapter, thus updating the list display.\n setListAdapter(bookmarksAdapter);\n }\n }",
"public ListNetwork allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"private void _createPageDef()\n {\n _pageDef = new DemoPageDef();\n _pageDef.setupAttributes();\n \n List<DemoPageDef.SavedSearchDef> searchDefList = _pageDef.setupSavedSearchDefList();\n \n // Mark the first sabved Search definition as the current\n _currentDescriptor = new DemoQueryDescriptor(searchDefList.get(0));\n for (DemoPageDef.SavedSearchDef searchDef: searchDefList)\n {\n DemoQueryDescriptor qd = new DemoQueryDescriptor(searchDef);\n _QDMap.put(searchDef.getName(), qd); \n if (_currentDescriptor == null)\n _currentDescriptor = qd;\n }\n\n _queryModel = new DemoQueryModel(_QDMap);\n \n }",
"public void createPaperbackBook(String[] bookInfo) {\n\t\tString isbn = bookInfo[0];\n\t\tString callNumber = bookInfo[1];\n\t\tint available = Integer.parseInt(bookInfo[2]);\n\t\tint total = Integer.parseInt(bookInfo[3]);\n\t\tString title = bookInfo[4];\n\t\tString authors = bookInfo[5];\n\t\tint year = Integer.parseInt(bookInfo[6]);\n\t\tchar genre = bookInfo[7].charAt(0);\n\n\t\tbookList.add(new PaperBack(isbn, callNumber, available, total, title, authors, year, genre));\n\t}",
"public MyAdapter(List<Brawler> listValues, Context context) {\n this.listValues = listValues;\n listValuesFull = new ArrayList<>(listValues); // permet d'avoir une copie de la liste des brawlers listValues (on évite ainsi d'avoir un même liste qui pointe vers la même adresse)\n this.context = context;\n }",
"private AddressBook() {\n addressList = new ArrayList<>();\n }",
"public PreferencesFeedGenerator\n createPreferencesFeedGenerator(ServiceLocator locator);",
"public ListOperatorHub allowWatchBookmarks(Boolean allowWatchBookmarks) {\n put(\"allowWatchBookmarks\", allowWatchBookmarks);\n return this;\n }",
"private void setAdapter() {\n\n\t\tathleteCheckInAdapter = new AthleteStickyHeaderCheckInAdapter(getActivity(), athleteAttendanceList);\n\n\t}",
"public AddBookToBasketTest() {\n super(BrowserTypeEnum.firefox);\n }",
"QuoteItem createQuoteItem();",
"private static final class <init> extends com.ebay.nautilus.kernel.content.\n{\n\n public EbayAppInfo create(EbayContext ebaycontext)\n {\n return new EbayAppInfoImpl(\"com.ebay.mobile\", \"4.1.5.22\", false);\n }",
"public BookManager()\n { }",
"public interface SQLBookmarkListener\n{\n public void bookmarkEvent(SQLBookmarkEvent evt);\n}",
"public void putBookmark(String key, String bookmark) {\n bookmarks.put(key, bookmark);\n }",
"public FragmentOrderHistoryEntryGuestAdapter() {\n mCollection = Collection.getInstance();\n }",
"public DocumentRootItemProvider(AdapterFactory adapterFactory) {\n\t\tsuper(adapterFactory);\n\t}",
"@Test\n public void fieldIndexPageRangeBookmark() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Create an INDEX field which will display an entry for each XE field found in the document.\n // Each entry will display the XE field's Text property value on the left side,\n // and the number of the page that contains the XE field on the right.\n // The INDEX entry will collect all XE fields with matching values in the \"Text\" property\n // into one entry as opposed to making an entry for each XE field.\n FieldIndex index = (FieldIndex) builder.insertField(FieldType.FIELD_INDEX, true);\n\n // For INDEX entries that display page ranges, we can specify a separator string\n // which will appear between the number of the first page, and the number of the last.\n index.setPageNumberSeparator(\", on page(s) \");\n index.setPageRangeSeparator(\" to \");\n\n Assert.assertEquals(\" INDEX \\\\e \\\", on page(s) \\\" \\\\g \\\" to \\\"\", index.getFieldCode());\n\n builder.insertBreak(BreakType.PAGE_BREAK);\n FieldXE indexEntry = (FieldXE) builder.insertField(FieldType.FIELD_INDEX_ENTRY, true);\n indexEntry.setText(\"My entry\");\n\n // If an XE field names a bookmark using the PageRangeBookmarkName property,\n // its INDEX entry will show the range of pages that the bookmark spans\n // instead of the number of the page that contains the XE field.\n indexEntry.setPageRangeBookmarkName(\"MyBookmark\");\n\n Assert.assertEquals(\" XE \\\"My entry\\\" \\\\r MyBookmark\", indexEntry.getFieldCode());\n Assert.assertEquals(indexEntry.getPageRangeBookmarkName(), \"MyBookmark\");\n\n // Insert a bookmark that starts on page 3 and ends on page 5.\n // The INDEX entry for the XE field that references this bookmark will display this page range.\n // In our table, the INDEX entry will display \"My entry, on page(s) 3 to 5\".\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.startBookmark(\"MyBookmark\");\n builder.write(\"Start of MyBookmark\");\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.insertBreak(BreakType.PAGE_BREAK);\n builder.write(\"End of MyBookmark\");\n builder.endBookmark(\"MyBookmark\");\n\n doc.updatePageLayout();\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.INDEX.XE.PageRangeBookmark.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.INDEX.XE.PageRangeBookmark.docx\");\n index = (FieldIndex) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX, \" INDEX \\\\e \\\", on page(s) \\\" \\\\g \\\" to \\\"\", \"My entry, on page(s) 3 to 5\\r\", index);\n Assert.assertEquals(\", on page(s) \", index.getPageNumberSeparator());\n Assert.assertEquals(\" to \", index.getPageRangeSeparator());\n\n indexEntry = (FieldXE) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_INDEX_ENTRY, \" XE \\\"My entry\\\" \\\\r MyBookmark\", \"\", indexEntry);\n Assert.assertEquals(\"My entry\", indexEntry.getText());\n Assert.assertEquals(\"MyBookmark\", indexEntry.getPageRangeBookmarkName());\n }",
"private static DatacenterBroker createBroker(){\n\n\t\tDatacenterBroker broker = null;\n\t\ttry {\n\t\t\tbroker = new DatacenterBroker(\"Broker\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\treturn broker;\n\t}",
"public void saveUserBookmark(UserBookmark userBookmark) {\n\tDataStore.add(userBookmark);\n}",
"@Override\n\tpublic Page createPage(String title, String author) {\n\t\treturn new ListPage(title, author);\n\t}"
] | [
"0.5805813",
"0.55703634",
"0.5490129",
"0.54251814",
"0.5249629",
"0.5227281",
"0.5211594",
"0.51920485",
"0.5094895",
"0.50383615",
"0.5014062",
"0.5005061",
"0.49929833",
"0.49877682",
"0.49490926",
"0.48994732",
"0.48933417",
"0.48814115",
"0.4857349",
"0.48498482",
"0.4827364",
"0.48181847",
"0.48000804",
"0.47829244",
"0.47795844",
"0.47624806",
"0.47524658",
"0.4747943",
"0.46699184",
"0.4610788",
"0.45999274",
"0.4597899",
"0.45808676",
"0.4566544",
"0.45400754",
"0.45326856",
"0.45121774",
"0.45109785",
"0.44765824",
"0.44741857",
"0.4473766",
"0.4466844",
"0.446264",
"0.44279185",
"0.44267923",
"0.44168296",
"0.44107533",
"0.43793142",
"0.43762177",
"0.43741894",
"0.43671903",
"0.43611032",
"0.43542597",
"0.43453732",
"0.43427727",
"0.43393373",
"0.43369412",
"0.43329325",
"0.4329231",
"0.43213046",
"0.43154693",
"0.4315016",
"0.43020794",
"0.42983872",
"0.42979264",
"0.42964116",
"0.42952546",
"0.42767376",
"0.42764205",
"0.42526522",
"0.42504016",
"0.42497382",
"0.42494228",
"0.4240401",
"0.4237627",
"0.42340627",
"0.42255458",
"0.42147136",
"0.42104092",
"0.42031854",
"0.4199794",
"0.41987345",
"0.41985226",
"0.4197971",
"0.4194729",
"0.41942686",
"0.41901636",
"0.41868025",
"0.4179699",
"0.41769755",
"0.41720715",
"0.41714397",
"0.41617656",
"0.4161483",
"0.41574404",
"0.41401422",
"0.41393822",
"0.41385216",
"0.41356283",
"0.4134699"
] | 0.6301139 | 0 |
Return a hashmap with one row's Title, Url, and favicon. | public Bundle getRow(int position) {
Bundle map = new Bundle();
if (position < mExtraOffset || position >= mCount) {
return map;
}
mCursor.moveToPosition(position- mExtraOffset);
String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
map.putString(Browser.BookmarkColumns.TITLE,
mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX));
map.putString(Browser.BookmarkColumns.URL, url);
byte[] data = mCursor.getBlob(Browser.HISTORY_PROJECTION_FAVICON_INDEX);
if (data != null) {
map.putParcelable(Browser.BookmarkColumns.FAVICON,
BitmapFactory.decodeByteArray(data, 0, data.length));
}
map.putInt("id", mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX));
return map;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public HashMap getMetaData() ;",
"@Override\n public Map<String, String> get() {\n\n Map<String, String> hugoMap = Maps.newHashMap();\n try {\n final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());\n for (CSVRecord record : parser) {\n\n hugoMap.put(record.get(0), record.get(1));\n }\n\n } catch (IOException e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n return hugoMap;\n }",
"private static Map<Short, String> getHeaderValuesMap(Document reportDocument) {\n Map<Short, String> headerValues = new HashMap<Short, String>();\n Element reportElement = reportDocument.getDocumentElement();\n NodeList thElements = reportElement.getElementsByTagName(\"th\");\n // assumes only one header row\n for (int i = 0; i < thElements.getLength(); i++) {\n headerValues.put((short) i, thElements.item(i).getTextContent());\n }\n return headerValues;\n }",
"@Override\n\tpublic java.util.Map<java.util.Locale, java.lang.String> getTitleMap() {\n\t\treturn _scienceApp.getTitleMap();\n\t}",
"public Map<Integer, Feed> getFeedMap() {\n if (feedMap == null) {\n List<Feed> feeds = alertService.getFeedsByProvenanceName(ProvenanceNames.HEALTHMAP);\n feedMap = index(feeds, on(Feed.class).getHealthMapFeedId());\n }\n return feedMap;\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.simplelistview);\n \n // get XML\n Intent intent = getIntent();\n String xmlString = intent.getStringExtra(\"xml\"); \n\n titleList = new ArrayList<String>();\n imdbUrlList = new ArrayList<String>();\n tmdbUrlList = new ArrayList<String>();\n genresList = new ArrayList<String>();\n posterPathUrlList = new ArrayList<String>();\n \n //urlList = new ArrayList<String>();\n\n ArrayList<HashMap<String, String>> movieList = new ArrayList<HashMap<String, String>>();\n \n // parse xml:\n try {\n DocumentBuilder db = DocumentBuilderFactory.newInstance().newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new StringReader(xmlString));\n\n Document doc = db.parse(is);\n Node root = doc.getDocumentElement(); \n NodeList list = root.getChildNodes();\n \n \n /*\n * \n * <imdb>\n <row rank=\"1\" tid=\"tt0499549\" title=\"Avatar - Aufbruch nach Pandora (2009)\" url=\"http://www.imdb.com/title/tt0499549/\" />\n <row rank=\"2\" tid=\"tt1285016\" title=\"The Social Network (2010)\" url=\"http://www.imdb.com/title/tt1285016/\" />\n */\n int rowCounter = 0;\n for (int i = 0; i < list.getLength(); i++)\n {\n \tHashMap<String, String> mapForRow = new HashMap<String, String>();\n\t\t\n\t\t// adding each child node to HashMap key => value\n\t\t//mapForRow.put(KEY_ID, String.format(\"%s\",i));\n\t\t\n \t\n Node n = list.item(i);\n if (n instanceof Element && n.hasAttributes()) {\n NamedNodeMap attrs = n.getAttributes(); \n\n mapForRow.put(KEY_ID, new Integer(rowCounter).toString());\n //test:\n //mapForRow.put(KEY_GENRES, new Integer(rowCounter).toString());\n for (int j = 0; j < attrs.getLength(); j++) {\n // todo:\n // mapForRow.put(attrName,attrVal); \n \t\n Attr attribute = (Attr) attrs.item(j);\n String attrName = attribute.getName();\n String attrVal = attribute.getValue();\n if(attrName.equals(\"rank\"))\n {\n \t //mapForRow.put(KEY_ID, String.format(\"%s\",Integer.parseInt(attrVal)-1));\n }\n \n if(attrName.equals(\"title\"))\n {\n \t mapForRow.put(KEY_TITLE, attrVal);\n //titleList.add(attribute.getValue());\n }\n if(attrName.equals(\"url\"))\n {\n //urlList.add(attribute.getValue());\n // todo: unterscheiden zw. Imdb und Tmdb Links:\n imdbUrlList.add(attrVal);\n tmdbUrlList.add(attrVal);\n // test:\n mapForRow.put(KEY_GENRES, attrVal);\n }\n if(attrName.equals(\"imdbUrl\"))\n {\n \t imdbUrlList.add(attrVal);\n }\n if(attrName.equals(\"tmdbUrl\"))\n {\n \t tmdbUrlList.add(attrVal);\n }\n if(attrName.equals(\"genres\"))\n {\n \t mapForRow.put(KEY_GENRES, attrVal);\n \t //genresList.add(attribute.getValue());\n }\n if(attrName.equals(\"posterPathUrl\"))\n {\n \t mapForRow.put(KEY_POSTER_PATH_URL, attrVal);\n \t //posterPathUrlList.add(attribute.getValue());\n }\n\n }\n rowCounter += 1;\n movieList.add(mapForRow);\n }\n \n }\n } catch( Exception e)\n {\n titleList.add(\"Ein Fehler trat auf.\");\n }\n \n // xml parsed\n\n // Find the ListView resource. \n mainListView = (ListView) findViewById( R.id.mainListView );\n\n \n // Create ArrayAdapter using the planet list.\n listAdapter = new LazyAdapter(this, movieList);\n \n \n // Set the ArrayAdapter as the ListView's adapter.\n mainListView.setAdapter( listAdapter );\n\n mainListView.setClickable(true);\n mainListView.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n\n @Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n\n Object o = mainListView.getItemAtPosition(position);\n String url = ListViewActivity.this.imdbUrlList.get(position);\n Uri uriUrl = Uri.parse(url);\n Intent launchBrowser = new Intent(Intent.ACTION_VIEW, uriUrl);\n startActivity(launchBrowser);\n\n }\n});\n\n }",
"public HashMap<String, String> toHashMap() {\n\n // Parse if needed\n run();\n\n if (cachedMap == null) {\n cachedMap = new LinkedHashMap<String, String>();\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\n \"yyyy-MM-dd HH:mm:ss\");\n\n cachedMap.put(\"File name\", fileName);\n cachedMap.put(\"File size\", \"\" + fileSize);\n cachedMap.put(\"PDF version\", pdfVersion);\n cachedMap.put(\"Page count\", \"\" + numberOfPages);\n cachedMap.put(\"Page size\", \"\" + mediaBoxWidthInPoints + \" x \"\n + mediaBoxHeightInPoints + \" points\");\n cachedMap.put(\"Page width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Page height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Page layout\", pageLayout);\n cachedMap.put(\"Title\", title);\n cachedMap.put(\"Author\", author);\n cachedMap.put(\"Subject\", subject);\n cachedMap.put(\"PDF producer\", producer);\n cachedMap.put(\"Content creator\", contentCreator);\n if (creationDate != null) {\n cachedMap.put(\"Creation date\",\n dateFormat.format(creationDate.getTime()));\n } else {\n cachedMap.put(\"Creation date\", \"\");\n }\n if (modificationDate != null) {\n cachedMap.put(\"Modification date\",\n dateFormat.format(modificationDate.getTime()));\n } else {\n cachedMap.put(\"Modification date\", \"\");\n }\n\n // \"Others\"\n cachedMap.put(\"Encrypted\", \"\" + isEncrypted);\n cachedMap.put(\"Keywords\", keywords);\n cachedMap.put(\"Media box width\", \"\" + mediaBoxWidthInPoints);\n cachedMap.put(\"Media box height\", \"\" + mediaBoxHeightInPoints);\n cachedMap.put(\"Crop box width\", \"\" + cropBoxWidthInPoints);\n cachedMap.put(\"Crop box height\", \"\" + cropBoxHeightInPoints);\n \n if(permissions != null) {\n cachedMap.put(\"Can Print\", Boolean.toString(permissions.canPrint()));\n cachedMap.put(\"Can Modify\", Boolean.toString(permissions.canModify()));\n cachedMap.put(\"Can Extract\", Boolean.toString(permissions.canExtractContent()));\n cachedMap.put(\"Can Modify Annotations\", Boolean.toString(permissions.canModifyAnnotations()));\n cachedMap.put(\"Can Fill Forms\", Boolean.toString(permissions.canFillInForm()));\n cachedMap.put(\"Can Extract for Accessibility\", Boolean.toString(permissions.canExtractForAccessibility()));\n cachedMap.put(\"Can Assemble\", Boolean.toString(permissions.canAssembleDocument()));\n cachedMap.put(\"Can Print Degraded\", Boolean.toString(permissions.canPrintDegraded()));\n }\n }\n\n return cachedMap;\n }",
"public Map<String, ?> getUrlMap()\r\n/* 27: */ {\r\n/* 28: 93 */ return this.urlMap;\r\n/* 29: */ }",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"java.util.Map<java.lang.String, java.lang.String>\n getMetadataMap();",
"public HashMap toHash() {\n HashMap x = new HashMap();\n\n x.put(\"type\",\"media\");\n x.put(\"mediaid\",mediaid);\n x.put(\"title\",mediatitle);\n x.put(\"episodetitle\",episodetitle);\n x.put(\"mediapath\",mediapath);\n x.put(\"description\",Description);\n x.put(\"mediaencoding\",mediaencoding);\n x.put(\"mediatype\",mediatype);\n x.put(\"mediagroup\", mediagroup);\n x.put(\"mediasize\", getMediasize());\n x.put(\"mediaduration\", getMediaduration());\n// x.put(\"lastwatched\",lastwatched);\n x.put(\"airingstarttime\",airingstarttime);\n x.put(\"userrating\",userrating);\n x.put(\"mpaarated\",mpaarated);\n x.put(\"releasedate\",releasedate);\n x.put(\"genre\",genre);\n x.put(\"trailer\", getTrailer());\n x.put(\"mediaimporttime\", getMediaimporttime());\n\n if ( MediaFileAPI.IsTVFile(MediaFileAPI.GetMediaFileForID(mediaid))) {\n// ortus.api.DebugLogTrace(\"toHash() loading TV\");\n Object mf = MediaFileAPI.GetMediaFileForID(mediaid);\n x.put(\"channelname\",AiringAPI.GetAiringChannelName(mf));\n x.put(\"channelnumber\",AiringAPI.GetAiringChannelNumber(mf));\n x.put(\"airingduration\",AiringAPI.GetAiringDuration(mf));\n x.put(\"airingstarttime\",AiringAPI.GetAiringStartTime(mf));\n x.put(\"airingendtime\",AiringAPI.GetAiringEndTime(mf));\n }\n\n if ( seriesid > 0)\n x.put(\"seriesid\",seriesid);\n if ( seasonno > 0)\n x.put(\"seasonno\",seasonno);\n if ( episodeid > 0)\n x.put(\"episodeid\",episodeid);\n if ( episodeno > 0)\n x.put(\"episodeno\",episodeno);\n// List castlist = new ArrayList();\n// for ( Cast ic : cast) {\n// HashMap y = new HashMap();\n// y.put(\"name\",ic.getName());\n// y.put(\"job\",ic.getJob());\n// y.put(\"character\",ic.getCharacter());\n// castlist.add(y);\n// }\n// x.put(\"cast\",castlist);\n// ortus.api.DebugLogTrace(\"toHash() loading fanart\");\n if ( fanart.get(\"Backgrounds\") != null) {\n // x.put(\"background_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getFile());\n x.put(\"background_id\",((Fanart)fanart.get(\"Backgrounds\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Posters\") != null) {\n // x.put(\"posters_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getFile());\n x.put(\"posters_id\",((Fanart)fanart.get(\"Posters\").get(\"high\").get(0)).getId());\n }\n if ( fanart.get(\"Banners\") != null) {\n // x.put(\"banners_high\", ortus.api.GetFanartFolder() + java.io.File.separator + ((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getFile());\n x.put(\"banners_id\",((Fanart)fanart.get(\"Banners\").get(\"high\").get(0)).getId());\n }\n// ortus.api.DebugLogTrace(\"GetMetadata: Returning: \" + x);\n \n return x;\n }",
"Map<String, Object> getContent();",
"public static Map<String, String> getTableMap() {\n return tableMap;\n }",
"public Collection<Map<String, String>> getLinks();",
"public Map<String, Object> getMetaData() {\n\t\treturn metaData;\n\t}",
"protected Map<String, URL> createMap(Collection<? extends IconRecord> records)\n {\n Map<String, URL> map = New.map(records.size());\n for (IconRecord record : records)\n {\n map.put(getPublicUrl(record.imageURLProperty().get()), record.imageURLProperty().get());\n }\n return map;\n }",
"public Map<String, URL> getIconMap(IconRegistry iconRegistry)\n {\n if (myIconIdentifierToUrlMap == null)\n {\n myIconIdentifierToUrlMap = Collections.unmodifiableMap(loadIconBuilder(iconRegistry));\n }\n return myIconIdentifierToUrlMap;\n }",
"public Map<String, Object> toMetadataHash() {\n\t\tMap<String, Object> hash = new LinkedHashMap<String, Object>();\n\t\thash.put(\"environment\", appService.getEnvironment());\n\t\thash.put(\"app\", appService.toMetadataHash());\n\t\thash.put(\"api\", apiService.toMetadataHash());\n\t\thash.put(\"sso\", ssoService.toMetadataHash());\n\t\thash.put(\"connec\", connecService.toMetadataHash());\n\t\thash.put(\"webhook\", webhookService.toMetadataHash());\n\n\t\treturn hash;\n\t}",
"public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }",
"public static HashMap<String, Integer> getHashMap() {\n String query;\n HashMap<String, Integer> catID = new HashMap<String, Integer>();\n\n try {\n Connection con = Database.createDBconnection();\n Statement stmt = con.createStatement();\n query = \"SELECT category_id, category FROM category;\";\n ResultSet rs = stmt.executeQuery(query);\n\n while(rs.next()) {\n catID.put(rs.getString(\"category\"), rs.getInt(\"category_id\"));\n }\n\n Database.closeDBconnection(con);\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n return catID;\n }",
"private static List<HashMap<Short, String>> getBodyValuesMap(Document reportDocument) {\n List<HashMap<Short, String>> bodyValues = new ArrayList<HashMap<Short, String>>();\n Element reportElement = reportDocument.getDocumentElement();\n NodeList trElements = reportElement.getElementsByTagName(\"tr\");\n for (int i = 0; i < trElements.getLength(); i++) {\n NodeList tdElements = trElements.item(i).getChildNodes();\n HashMap<Short, String> bodyRowValues = new HashMap<Short, String>();\n for (int n = 0; n < tdElements.getLength(); n++) {\n if (tdElements.item(n).getNodeType() == Node.ELEMENT_NODE && tdElements.item(n).getNodeName().equals(\"td\")) {\n bodyRowValues.put((short) n, tdElements.item(n).getTextContent());\n }\n }\n if (bodyRowValues.size() > 0) {\n bodyValues.add(bodyRowValues);\n }\n }\n return bodyValues;\n }",
"public Map<String, String> getTable() {\n return map; // TODO\n }",
"@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }",
"public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}",
"public static HashMap<String, String> getHeaderDetails(){\n\t\tHashMap<String, String> data = new HashMap<>();\n\n\t\tHeaderDataDAO headerDao = DaoFactory.getHeaderDataDAO();\n\t\tHeaderData headerData = headerDao.getAllRecords().get(0);\n\t\t\n\t\tif(headerData != null){\n\t\t\tdata.put(AppConstants.G_LUID, headerData.getLuid());\n\t\t\tdata.put(AppConstants.G_OFFICE_CODE, headerData.getOfficeCode());\n\t\t\tdata.put(AppConstants.G_USER_ID, headerData.getUserId());\n\t\t\tdata.put(AppConstants.C_LOG_DATE, StringUtils.leftPad(headerData.getLogDate(), 6, \"0\"));\n\t\t\tdata.put(AppConstants.G_LOG_TIME, StringUtils.leftPad(headerData.getLogTime(), 6, \"0\"));\n\t\t\tdata.put(AppConstants.G_TRAN_FI, headerData.getTranFi());\n\t\t}\n\n\t\treturn data;\n\t}",
"private HashMap<String, String> getHashMapfromResultSetRow(ResultSet resultset)\n/* */ {\n/* 1406 */ return getHashMapfromResultSetRow(resultset, new ArrayList());\n/* */ }",
"public static HashMap<String, ArrayList<String>> CSVHeadData(String path) {\r\n\t\t\r\n\t\t// get the rows of the file\r\n\t\tString[] rows = read(path).split(\"(\\n)+\");\r\n\t\r\n\t\t\r\n\t\t// Initialize the map\r\n\t\tHashMap<String, ArrayList<String>> map = new HashMap<String, ArrayList<String>>();\r\n\t\t\r\n\t\t// Initialize keys\r\n\t\tArrayList<String> keys = new ArrayList<String>();\r\n\t\t// get the keys from the first row\r\n\t\tfor (String i : rows[0].split(\",\")) {\r\n\t\t\t// get rid of first and last spaces\r\n\t\t\tString current = i.trim();\r\n\t\t\t// add the current string to the list\r\n\t\t\tkeys.add(current);\r\n\t\t\t// add the key to the map and initialize the corresponding list\r\n\t\t\tmap.put(current, new ArrayList<String>());\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// iterate over the rest of the rows \r\n\t\tfor (int i = 1; i < rows.length; i++) {\r\n\t\t\tint j = 0;\r\n\t\t\tString[] currentRowWords = rows[i].split(\",\");\r\n\t\t\t\r\n\t\t\t// check if the number of values is equal to the number of keys\r\n\t\t\tif (currentRowWords.length != keys.size()) {\r\n\t\t\t\tSystem.out.println(\"Invalid row n: \" + (i + 1) + \r\n\t\t\t\t\t\t\".\\nNumber of values does not match number of keys\");\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// get the words from the row and add them to the list of appropriate key\r\n\t\t\tfor (String k : currentRowWords) {\r\n\t\t\t\tString current = k.trim();\r\n\t\t\t\tmap.get(keys.get(j)).add(current);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// That's all Folks!\r\n\t\treturn map;\r\n\t}",
"public Map<String,String> getMetadataElementMap() {\n\t\tMap<String,String> uiList = new LinkedHashMap<String,String>();\n\t\tfor (MetadataElement element: MetadataElement.values()){\n\t\t\tuiList.put(element.toString(), element.getDisplayName());\n\t\t}\n \n\t\treturn uiList;\n\t}",
"public Map<String, List<BaiduZhannei>> buildSitemap() {\r\n Map<String, List<BaiduZhannei>> map = new HashMap<String, List<BaiduZhannei>>();\r\n map.put(GlobalConfigHolder.DOMAIN_TYPE_QUESTION, buildQuestion());\r\n// map.put(GlobalConfigHolder.DOMAIN_TYPE_TOPIC, buildTopic(GlobalConfigHolder.SITEMAP_COUNT));\r\n// map.put(GlobalConfigHolder.DOMAIN_TYPE_BLOG, buildBlog());\r\n\r\n return map;\r\n }",
"private IMapData<Integer, String> getHashMapData1() {\n List<IKeyValueNode<Integer, String>> creationData = new ArrayList<>();\n List<IKeyValueNode<Integer, String>> data = new ArrayList<>();\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public Map<String, String> getData() {\n if (data == null) data = new HashMap<>();\n return data;\n }",
"@Override\n public List<IMapData<Integer, String>> getHashMapData() {\n List<IMapData<Integer, String>> data = new ArrayList<>();\n\n data.add(this.getHashMapData1());\n data.add(this.getHashMapData2());\n\n return data;\n }",
"public static ArrayList<Map<String,String>> getContFromRssNoHtml(String urlAdress) {\n\n URL url = null;\n Iterator itEntries = null;\n try {\n //thetume ton browser Agent se browser-like gia na apofigume 403 errors\n System.setProperty(\"http.agent\", \"Mozilla/5.0 (Windows NT 10.0; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0\");\n url = new URL(urlAdress);\n HttpURLConnection httpcon = (HttpURLConnection) url.openConnection();\n httpcon.setRequestProperty(\"User-Agent\",\n \"Mozilla/5.0 (Windows NT 5.1; rv:19.0) Gecko/20100101 Firefox/19.0\");\n // Reading the feed\n SyndFeedInput input = new SyndFeedInput();\n SyndFeed feed = input.build(new XmlReader(httpcon));\n List entries = feed.getEntries();\n itEntries = entries.iterator();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (FeedException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //contAr has all the entries\n ArrayList<Map<String,String>> contAr = new ArrayList<Map<String, String>>();\n\n //contMap has all the entries contents\n Map<String,String> contMap = new HashMap<String, String>();\n contMap.put(\"URI\",urlAdress);\n\n\n while (itEntries.hasNext()) {\n contMap = new HashMap<String, String>();\n SyndEntry entry = (SyndEntry) itEntries.next();\n System.out.println(entry.getUri());\n contMap.put(\"Title\",entry.getTitle());\n contMap.put(\"Link\",entry.getLink());\n contMap.put(\"Description\",entry.getDescription().getValue());\n\n contAr.add(contMap);\n System.out.println();\n }\n return contAr;\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"Map<String, Object> getAllMetadata();",
"public HashMap toHashMap() {\n HashMap ht = new HashMap();\n if(this.id!=null)\n \tht.put(\"id\",this.id);\n if(this.functionName!=null)\n \tht.put(\"functionName\",this.functionName);\n if(this.functionNameEq!=null)\n \tht.put(\"functionNameEq\",this.functionNameEq);\n if(this.description!=null)\n \tht.put(\"description\",this.description);\n if(this.descriptionEq!=null)\n \tht.put(\"descriptionEq\",this.descriptionEq);\n if(this.createDt!=null)\n \tht.put(\"createDt\",this.createDt);\n if(this.createDtFrom!=null)\n \tht.put(\"createDtFrom\",this.createDtFrom);\n if(this.createDtTo!=null)\n \tht.put(\"createDtTo\",this.createDtTo);\n if(this.isProceed!=null)\n \tht.put(\"isProceed\",this.isProceed);\n if(this.processUserName!=null)\n \tht.put(\"processUserName\",this.processUserName);\n if(this.processUserNameEq!=null)\n \tht.put(\"processUserNameEq\",this.processUserNameEq);\n if(this.processUserId!=null)\n \tht.put(\"processUserId\",this.processUserId);\n\t\treturn ht;\n\t}",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public java.util.Map<java.lang.String, java.lang.String> getMetadataMap() {\n return internalGetMetadata().getMap();\n }",
"public Map<String, Object> getInfo();",
"public static HashMap configurerTable() {\r\n HashMap config = new HashMap();\r\n \r\n // Titre de la page du jeu\r\n //\r\n config.put(\"titre\", \"Table_IM\");\r\n \r\n // Donnees de configuration\r\n //\r\n config.put(\"path\", \"Fleurs/Gaillardes.jpg\");\r\n config.put(\"ll\", new Integer(10));\r\n config.put(\"cc\", new Integer(15));\r\n \r\n // Donnees de connexion\r\n //\r\n config.put(\"Prefixe\", \"Table\");\r\n config.put(\"Port\", new Integer(8080));\r\n config.put(\"nbClients\", new Integer(1));\r\n \r\n // Donnees de panneauG\r\n //\r\n config.put(\"arrierePlan\", Color.black);\r\n config.put(\"avantPlan\", Color.gray);\r\n config.put(\"police\", new Font(\"Times Roman\", Font.BOLD, 16));\r\n config.put(\"grille\", new Dimension(10, 10));\r\n \r\n return config;\r\n }",
"public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }",
"public LinkedHashMap<String, SharedDataInfo> sharedData(){\n return new LinkedHashMap<String, SharedDataInfo>();\n }",
"private HashMap<String, ArrayList<String>> getAllTableContents(String table) {\r\n return getAllTableContentsWhere(table, null, null);\r\n }",
"protected Map<String, String> getMetaData(Response response) {\r\n\t\tMap<String, String> metadata = new HashMap<String, String>();\r\n Request request = response.getRequest();\r\n\r\n User authUser = request.getActiveUser();\r\n String user = \"?\";\r\n if (authUser != null) {\r\n user = authUser.getUserId();\r\n }\r\n\r\n\t\tmetadata.put(\"user\", encodeValue(user));\r\n\t\tmetadata.put(\"request\", encodeValue(RequestUtil.getRequestURL(request).toString()));\r\n\t\tmetadata.put(\"status\", encodeValue(\"ok\"));\r\n\r\n\r\n\t\tif ( null != request ) {\r\n\t\t\tmetadata.put(\"startTime\", metaDataTimeFormat.format(request.getCreateTime()));\r\n\t\t\tmetadata.put(\"endTime\", metaDataTimeFormat.format(System.currentTimeMillis()));\r\n\t\t}\r\n\r\n\t\treturn metadata;\r\n\t}",
"public static Map<String, Map<String,String>> getDataMap() throws Exception\r\n\t{\r\n\t\tif(sheet==null)\r\n\t\t{\r\n\t\t\tloadExcel();\r\n\t\t}\r\n\t\t\r\n\t\tMap<String,Map<String,String>> superMap = new HashMap<String, Map<String,String>>();\r\n\t\tMap<String,String> myMap = new HashMap<String, String>();\r\n\t\t\r\n\t\tfor(int i=1;i<sheet.getLastRowNum()+1;i++)\r\n\t\t{\r\n\t\t\trow=sheet.getRow(i);\r\n\t\t\tString keyCell = row.getCell(0).getStringCellValue();\r\n\t\t\t\r\n\t\t\tint colNum = row.getLastCellNum();\r\n\t\t\tfor(int j=1;j<colNum;j++)\r\n\t\t\t{\r\n\t\t\t\tString value = row.getCell(j).getStringCellValue();\r\n\t\t\t\tmyMap.put(keyCell, value);\r\n\t\t\t}\r\n\t\t\tsuperMap.put(\"MasterData\", myMap);\r\n\t\t}\r\n\t\t\r\n\t\treturn superMap;\r\n\t}",
"@Override\n public int hashCode() {\n return new HashCodeBuilder(17, 31).\n append(title).hashCode();\n }",
"public Map<Integer, String> getSurveysIdsTitles() {\r\n HashMap<Integer, String> surveys = new HashMap<>();\r\n NodeList surveysElements = doc.getElementsByTagName(\"survey\");\r\n \r\n for (int i = 0; i < surveysElements.getLength(); i++) {\r\n Element surveyElement = (Element) surveysElements.item(i);\r\n int sid = Integer.parseInt(surveyElement.getAttribute(\"sid\"));\r\n String title = surveyElement.getElementsByTagName(\"title\").item(0).getTextContent();\r\n surveys.put(sid, title);\r\n }\r\n \r\n return surveys;\r\n }",
"static Map<String, Handlers> getIntentMap()\n\t{\n\t\tMap<String, Handlers> h_map = new HashMap<>();\n\t\t\n\t\t\n\t\th_map.put (ADDRESS_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (ADDRESS_ASSOCIATE , Handlers.LINK_CREATE);\n\t\th_map.put (ADDRESS_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (EVENT_ADD , Handlers.NODE_CREATE_AND_LINK);\n\t\th_map.put (EVENT_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (GROUP_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (GROUP_MEMBER_ADD , Handlers.LINK_CREATE);\n\t\th_map.put (GROUP_MEMBER_DELETE, Handlers.LINK_DELETE);\n\t\th_map.put (PERSON_ADD , Handlers.NODE_CREATE);\n\t\th_map.put (PERSON_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (SUBSCRIPTION_ADD , Handlers.NODE_CREATE_AND_MULTILINK);\n\t\th_map.put (SUBSCRIPTION_DELETE, Handlers.NODE_DELETE);\n\t\th_map.put (USER_DELETE , Handlers.NODE_DELETE);\n\t\th_map.put (USER_REGISTER , Handlers.REGISTER_USER);\n\n\t\treturn h_map;\n\t}",
"@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }",
"public static void createHashMap() {\n\t\t// create hash map\n\t\tHashMap<Integer, String> students = new HashMap<Integer, String>();\n\t\tstudents.put(1, \"John\");\n\t\tstudents.put(2, \"Ben\");\n\t\tstudents.put(3, \"Eileen\");\n\t\tstudents.put(4, \"Kelvin\");\n\t\tstudents.put(5, \"Addie\");\n\t\t// print the hash map\n\t\tfor (Map.Entry<Integer, String> e : students.entrySet()) {\n\t\t\tSystem.out.println(e.getKey() + \" \" + e.getValue());\n\t\t}\n\t}",
"public static HashMap<Integer, String> getAll() {\n RocksIterator iter = db.newIterator();\n HashMap<Integer, String> result = new HashMap<>();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n result.put(ByteIntUtilities.convertByteArrayToInt(iter.key()), new String(iter.value()));\n }\n\n iter.close();\n return result;\n }",
"public HashMap<String, Integer> getHashMap(){\n\t\tHashMap <String, Integer> hm1 = new HashMap <String, Integer>();\n\t\t//get each line of the book and store it as an arrayList\n\t\twords = wordData.getLines();\n\t \n\t\tfor(int i =0; i<words.size(); i++){\n\t\t\t \n\t\t\tString[] aLine = words.get(i).split(\" \");\n\t\t\t\n\t\t\tfor(int j = 0; j<aLine.length; j++){\n\t\t\t\t\n\t\t\t\t// convert all upper case to lower case & remove all non-alphabetic symbols;\n\t\t\t\t\t\n\t\t\t\tsparsedWords.add(aLine[j].toLowerCase().replaceAll(\"[^\\\\w]\", \"\"));\n\t\t\t}\n\t\t}\n\t\t//put in key and value in hashmap\n\t\tfor(int key = 0; key < sparsedWords.size(); key++){\n\t\t\t\n\t\t\tif (hm1.containsKey(sparsedWords.get(key))){\n\t\t\t\tint count = hm1.get(sparsedWords.get(key));\n\t\t\t\thm1.put(sparsedWords.get(key), count + 1);\n\t\t\t}else{\n\t\t\t\thm1.put(sparsedWords.get(key), 1);\n\t\t\t}\n\t\t}\n\t\treturn hm1;\n\t\t \t\n\t\t}",
"public static HashMap<String, String> crawlerHeaderslist(URLInfo url){\n\t\t\n\t\tHashMap<String, String> headers = new HashMap<String, String>();\n\t\theaders.put(\"Host\", url.getHostName());\n\t\t//System.out.println(\"HELPER hostname \" + url.getHostName());\n\t\theaders.put(\"User-Agent\", \"cis455crawler\");\t\t\n\t\theaders.put(\"Connection\", \"close\");\t\t\n\t\treturn headers;\n\t\t\n\t}",
"Map<String, String> getCachedLinks(Page page);",
"public List<Map<String,Object>> getHashTags() {\n return hashtags;\n }",
"public HashMap<String, String> getHashMap() {\n\t\treturn this.hashMap;\n\t}",
"Map<Integer, String> getMetaLocal();",
"java.util.Map<java.lang.Integer, java.lang.Integer>\n getInfoMap();",
"public static Map<String, String> getQueryMapFromUrl(String url) { \n URL theUrl;\n try {\n theUrl = new URL(url);\n } catch (MalformedURLException e) {\n return new HashMap<String, String>();\n }\n \n return getQueryMap(theUrl.getQuery());\n }",
"private IMapData<Integer, String> getHashMapData2() {\n List<IKeyValueNode<Integer, String>> creationData = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(2, \"c\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"a\"),\n KeyValueNode.make(3, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<IKeyValueNode<Integer, String>> data = ArrayLists.make(\n KeyValueNode.make(1, \"a\"),\n KeyValueNode.make(2, \"b\"),\n KeyValueNode.make(3, \"c\"));\n\n List<Integer> keys = this.createKeys(data);\n List<String> values = this.createValues(data);\n\n return new MapData<>(\n creationData,\n data,\n keys,\n values);\n }",
"public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl = new URLValue(entity.getKey(), entity.getURL(), entity.getUpdatingPeriod());\n\t\t\turls.put(url.getKey(), url);\n\t\t}\n\t\tresults.close();\n\t\treturn urls;\n\t}",
"private Map<String, String> findMetadata(InputStream table, String itemCode) throws IOException {\n\t\t\tfinal BufferedReader br = new BufferedReader(new InputStreamReader(table));\n\t\t\tfinal List<String> columnNames = Arrays.asList(br.readLine().split(\"\\t\"));\n\t\t\tfinal int codeIndex = columnNames.indexOf(CODE_COLUMN);\n\t\t\t\n\t\t\tString line;\n\t\t\twhile((line = br.readLine()) != null) {\n\t\t\t\tString[] values = line.split(\"\\t\");\n\t\t\t\tif(values[codeIndex].equals(itemCode)) {\n\t\t\t\t\tfinal Map<String, String> metadata = new HashMap<String, String>();\n\t\t\t\t\tfor(int i = 0; i < columnNames.size(); ++i) {\n\t\t\t\t\t\tmetadata.put(columnNames.get(i), values[i]);\n\t\t\t\t\t}\n\t\t\t\t\treturn metadata;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn null;\n\t\t}",
"private static HashMap<Integer, String> getMovieGenres() {\n String url = \"http://api.themoviedb.org/3/genre/movie/list?api_key=\" + BuildConfig.APPLICATION_ID;\r\n\r\n JSONArray genres = null;\r\n Integer id;\r\n String genre;\r\n\r\n HashMap<Integer, String> movieGenresMap = new HashMap<Integer, String>();\r\n\r\n try {\r\n genres = new JSONArray(\r\n \"[{\\\"id\\\":28,\\\"name\\\":\\\"Action\\\"},{\\\"id\\\":12,\\\"name\\\":\\\"Adventure\\\"},{\\\"id\\\":16,\\\"name\\\":\\\"Animation\\\"},{\\\"id\\\":35,\\\"name\\\":\\\"Comedy\\\"},{\\\"id\\\":80,\\\"name\\\":\\\"Crime\\\"},{\\\"id\\\":99,\\\"name\\\":\\\"Documentary\\\"},{\\\"id\\\":18,\\\"name\\\":\\\"Drama\\\"},{\\\"id\\\":10751,\\\"name\\\":\\\"Family\\\"},{\\\"id\\\":14,\\\"name\\\":\\\"Fantasy\\\"},{\\\"id\\\":10769,\\\"name\\\":\\\"Foreign\\\"},{\\\"id\\\":36,\\\"name\\\":\\\"History\\\"},{\\\"id\\\":27,\\\"name\\\":\\\"Horror\\\"},{\\\"id\\\":10402,\\\"name\\\":\\\"Music\\\"},{\\\"id\\\":9648,\\\"name\\\":\\\"Mystery\\\"},{\\\"id\\\":10749,\\\"name\\\":\\\"Romance\\\"},{\\\"id\\\":878,\\\"name\\\":\\\"Science Fiction\\\"},{\\\"id\\\":10770,\\\"name\\\":\\\"TV Movie\\\"},{\\\"id\\\":53,\\\"name\\\":\\\"Thriller\\\"},{\\\"id\\\":10752,\\\"name\\\":\\\"War\\\"},{\\\"id\\\":37,\\\"name\\\":\\\"Western\\\"}]\");\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (genres != null && genres.length() > 0) {\r\n try {\r\n for (int i = 0; i < genres.length(); i++) {\r\n JSONObject genrePair = genres.getJSONObject(i);\r\n id = genrePair.getInt(\"id\");\r\n genre = genrePair.getString(\"name\");\r\n movieGenresMap.put(id, genre);\r\n\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n\r\n return movieGenresMap;\r\n\r\n }",
"public Map<String, IHyperEdge> getHyperEdgeMap() {\n\n return Collections.unmodifiableMap(hyperEdgeMap);\n }",
"protected Map<String, URL> loadIconBuilder(IconRegistry iconRegistry)\n {\n List<IconRecord> records = new LinkedList<>(getIconsFromRegistry(iconRegistry));\n\n Map<String, Long> publicUrlToIdMap = records.stream().collect(Collectors\n .toMap(r -> getPublicUrl(r.imageURLProperty().get()), r -> Long.valueOf(r.idProperty().get()), (v1, v2) -> v2));\n\n removeOldRecords(iconRegistry, records);\n\n if (records.isEmpty())\n {\n records = readIconsFromFile(iconRegistry, publicUrlToIdMap);\n }\n\n return createMap(records);\n }",
"private HashMap<String, HashSet<String>> convertIndexToMap(IndexReader reader) throws IOException{\n\t\t HashMap<String, HashSet<String>> hmap = new HashMap<String, HashSet<String>>();\n\t\t HashSet<String> docIdSet;\n\t\t \n\t\t for(int i=0; i<reader.numDocs(); i++){\n\t\t\t Fields termVect = reader.getTermVectors(i);\n\n\t\t\t if(termVect == null)\n\t\t\t\t continue;\n\t\t\t \n\t for (String field : termVect) {\n\t \t \n\t Terms terms = termVect.terms(field);\n\t TermsEnum termsEnum = terms.iterator();\n\t Document doc = reader.document(i);\n\t \n\t while(termsEnum.next() != null){\n\t \t BytesRef term = termsEnum.term();\n\t \t String strTerm = term.utf8ToString();\n\t \t \n\t \t if (hmap.containsKey(strTerm)){\n\t \t\t docIdSet = hmap.get(strTerm);\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t } else{\n\t \t\t docIdSet = new HashSet<String>();\n\t \t\t docIdSet.add(doc.get(\"url\"));\n\t \t\t hmap.put(strTerm, docIdSet);\n\t \t }\n\t }\n\t }\n\t\t }\n\t\t \n\t\t return hmap;\n\t}",
"public Map<T, V> populateMap() {\n Map<T, V> map = new HashMap<>();\n for (int i = 0; i < entryNumber; i++) {\n cacheKeys[i] = (T) Integer.toString(random.nextInt(1000000000));\n String key = cacheKeys[i].toString();\n map.put((T) key, (V) Integer.toString(random.nextInt(1000000000)));\n }\n return map;\n }",
"public static Hashtable<String, Vector<String>> getMetaData3(String tablename) {\n\t\tHashtable<String, Vector<String>> temp = new Hashtable<String, Vector<String>>();\n\t\tBufferedReader fileReader = null;\n\t\tString[] array;\n\n\t\ttry {\n\t\t\tString l = \"\";\n\t\t\tfileReader = new BufferedReader(new FileReader(\"src/main/resources/metadata.csv\"));\n\t\t\twhile ((l = fileReader.readLine()) != null) {\n\t\t\t\tVector<String> v = new Vector<>();\n\t\t\t\tarray = l.split(\",\");\n\t\t\t\tif (array[0].equals(tablename)) {\n\t\t\t\t\tv.add(array[5]);\n\t\t\t\t\tv.add(array[6]);\n\t\t\t\t\ttemp.put(array[1], v);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}",
"public static HashMap<String, Shelter> getMap() {\n return shelters;\n }",
"private static Map<String, Integer> getHashTags(){\n\t\t\n\t\tMap<String, Integer> map = new HashMap<String, Integer>();\n\t\t\n\t\tfor(Status status : statusList){\n\t\t\tHashtagEntity[] entitles = status.getHashtagEntities();\n\t\t\tfor(HashtagEntity entity : entitles){\n\t\t\t\tString str = entity.getText();\n\t\t\t\t\n\t\t\t\tif(map.containsKey(str)){\n\t\t\t\t\tint count = map.get(str);\n\t\t\t\t\tmap.put(str, ++count);\n\t\t\t\t}else{\n\t\t\t\t\tmap.put(str, 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn map;\n\t}",
"public static Map<Integer, String> GetAllTags() {\n HashMap<Integer, String> map = new HashMap<Integer, String>();\n map.put(FOUND, \"Found\");\n map.put(DNF, \"Did Not Find\");\n map.put(FAVORITES, \"Favorite\");\n map.put(NEW, \"New\");\n map.put(MINE, \"Mine\");\n map.put(UNAVAILABLE, \"Unavailable\");\n map.put(LOCKED_FROM_OVERWRITING, \"Locked from overwriting\");\n return map;\n }",
"public Map<String, String> getBookmarks() {\n return Collections.unmodifiableMap(bookmarks);\n }",
"public HashMap<String, String> getResultHashMap() {\n\t\treturn this.hashMap;\n\t}",
"public Map<String, Header> getHeaderMap() {\n return headerMap;\n }",
"private Map<String, Object> analysisMap(ArrayList<String> data) {\n Map<String, Object> map = new HashMap<>();\n map.put(DAILY, data);\n return map;\n }",
"@Override\n public Map<String, Tuple2<String, String>> get() {\n\n Map<String, Tuple2<String, String>> ensemblMap = Maps.newHashMap();\n try {\n final CSVParser parser = new CSVParser(this.reader, CSVFormat.TDF.withHeader());\n for (CSVRecord record : parser) {\n ensemblMap\n .put(record.get(\"Ensembl\"), new Tuple2(record.get(\"Symbol\"), record.get(\"Entrez\")));\n }\n\n } catch (IOException e) {\n log.error(e.getMessage());\n e.printStackTrace();\n }\n\n return ensemblMap;\n\n }",
"public HashMap<String, Item> getItemCollection(){\n \tHashMap<String, Item> result = new HashMap<String, Item>(itemCollection);\r\n \treturn result;\r\n }",
"public static HashMap<String,Company> javaHash(File dataFile) \n\t{\n\t\ttry\n\t\t{\n\t\t HashMap<String, Company> hmap = new HashMap<String, Company>();\n\t\t \n\t\t\tCSVReader reader = new CSVReader(new FileReader(dataFile));\n\t\t String [] nextLine;\n\t\t while ((nextLine = reader.readNext()) != null) \n\t\t {\n\t\t \tString currentCompany = nextLine[7];\n\t\t\t\tString complaintId = nextLine[17];\n\t\t\t\tCompany retrievedCompany = hmap.get(currentCompany);\n\t\t\t\tif(retrievedCompany == null)\n\t\t\t\t{\n\t\t\t\t\tCompany companyHolder = new Company(currentCompany, complaintId);\n\t\t\t\t\thmap.put(currentCompany, companyHolder);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tretrievedCompany.addId(complaintId);\n\t\t\t\t}\n\t\t }return hmap;\n\t\t}\n\t\tcatch(FileNotFoundException e)\n\t\t{\n\t\t\tSystem.out.println(\"File not found, please enter correct file\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Error\");\n\t\t\tSystem.exit(0);\n\t\t} return null;\n\t}",
"private void createHash() throws IOException\n\t{\n\t\tmap = new HashMap<String, ImageIcon>();\n\t\t\n\t\tfor(int i = 0; i < pokemonNames.length; i++)\n\t\t{\n\t\t\tmap.put(pokemonNames[i], new ImageIcon(getClass().getResource(fileLocations[i])));\n\t\t}\n\t}",
"private Map createSpecimenArrayMap(SpecimenArrayForm specimenArrayForm)\r\n\t{\r\n\t\tfinal Map arrayContentMap = new HashMap();\r\n\t\tString value = \"\";\r\n\t\tfinal int rowCount = specimenArrayForm.getOneDimensionCapacity();\r\n\t\tfinal int columnCount = specimenArrayForm.getTwoDimensionCapacity();\r\n\r\n\t\tfor (int i = 0; i < rowCount; i++)\r\n\t\t{\r\n\t\t\tfor (int j = 0; j < columnCount; j++)\r\n\t\t\t{\r\n\t\t\t\tfor (int k = 0; k < AppletConstants.ARRAY_CONTENT_ATTRIBUTE_NAMES.length; k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tvalue = \"\";\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_ONE_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(i + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (k == AppletConstants.ARRAY_CONTENT_ATTR_POS_DIM_TWO_INDEX)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tvalue = String.valueOf(j + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tarrayContentMap.put(SpecimenArrayAppletUtil\r\n\t\t\t\t\t\t\t.getArrayMapKey(i, j, columnCount, k), value);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn arrayContentMap;\r\n\t}",
"@Override\n public Iterator<Map.Entry<String, Object>> getMetadata() {\n return new EmptyEntryIterator();\n }",
"public static void ColumnDictionary()\r\n\t{\r\n\t\t//Iterate through all the columns in the Excel sheet and store the value in Hashtable\r\n\t\tfor(int col=0;col < wrksheet.getColumns();col++)\r\n\t\t{\r\n\t\t\tdict.put(ReadCell(col,0), col);\r\n\t\t\t//System.out.println(dict.values());\r\n\t\t}\r\n\t}",
"public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}",
"private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }",
"@Override\n public Map<String, XPathValue> getArticleMetaMap() {\n return EbscoMap;\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"@Override\r\n\tpublic Map<String, String> initOtherPermission() {\n\t\tMap<String, String> shrioUrlMap = new HashMap<String, String>();\r\n\t\tList<ShrioUrl> shrioUrlList = shrioUrlDao.selectAllShrioUrl();\r\n\t\tif (shrioUrlList != null && shrioUrlList.size() > 0) {\r\n\t\t\tfor (ShrioUrl shrioUrl : shrioUrlList) {\r\n\t\t\t\tif (shrioUrl.getUrl() == null || shrioUrl.getUrl().isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"sys_shrio_url表中id为\" + shrioUrl.getId() + \"的url字段为空,不进行过滤\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (shrioUrl.getFiltername() == null || shrioUrl.getFiltername().isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"sys_shrio_url表中id为\" + shrioUrl.getId() + \"的filtername字段为空,不进行过滤\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tif (shrioUrl.getDef() == null || shrioUrl.getDef().isEmpty()) {\r\n\t\t\t\t\tlog.debug(\"sys_shrio_url表中id为\" + shrioUrl.getId() + \"的def字段为空,不进行过滤\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tshrioUrlMap.put(shrioUrl.getUrl(), shrioUrl.getFiltername() + \"[\" + shrioUrl.getDef() + \"]\");\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn shrioUrlMap;\r\n\t}",
"public Map<String, Long> getHashes() {\n\t\t\treturn hashes;\n\t\t}",
"@Override\n\tpublic int hashCode() {\n\t\treturn this.title.hashCode() + this.author.hashCode();\n\t}",
"private HashMap<Integer, Category> createHashMapFromResultSet(ResultSet rs) throws SQLException{\n HashMap<Integer, Category> tempHashMap = new HashMap<>();\n //\"category_id\", \"category_name\"\n while(rs.next()){\n int tempCategoryID = rs.getInt(\"category_id\");\n String tempCategoryName = rs.getString(\"category_name\");\n tempHashMap.put(tempCategoryID, new Category(tempCategoryID, tempCategoryName));\n }\n return tempHashMap;\n }",
"private void createHisMap(Customer customer)\n {\n hisMap= new HashMap<>();\n idFile.open(\"history.txt\");\n String line=idFile.getNextLine();\n String name = customer.getUsername();\n specificLine=-1;\n int i=0;\n while (line!=null)\n {\n int j=0;\n String[] fields = line.split(\",\");\n if(fields[0].equals(name))\n {\n specificLine=i;\n }\n\n String[] fields2 = fields[1].split(\"%\");\n\n\n while (j<fields2.length)\n {\n if(hisMap.get(fields[0])==null)\n {\n hisMap.put(fields[0],new ArrayList<>());\n hisMap.get(fields[0]).add(fields2[j]);\n\n }\n else\n {\n hisMap.get(fields[0]).add(fields2[j]);\n }\n j++;\n }\n\n line=idFile.getNextLine();\n i++;\n }\n if(specificLine== -1)\n specificLine=i;\n }",
"public HashMap<String, HashMap<String, String>> getFeatureInfoHashMap() {\n return featureInfoHashMap;\n }",
"public List<Getable> data() {\n assertVisible();\n String[] headings = headings();\n List<List<String>> rowsWithTdStrings = get().findElements(By.tagName(\"tr\")).stream()\n // Ignore rows without TD elements\n .filter(e -> !e.findElements(By.tagName(\"td\")).isEmpty())\n // Then turn each row of TDs into a list of their string-contents\n .map(row -> row.findElements(By.tagName(\"td\")).stream().map(e -> e.getText()).collect(toList()))\n .collect(toList());\n\n List<Getable> result = new ArrayList<>();\n for (List<String> rowWithTdStrings : rowsWithTdStrings) {\n GetableMap aResult = new GetableMap();\n assertEquals(\"Different number of headings and columns\",\n headings.length, rowWithTdStrings.size());\n for (int i = 0; i < headings.length; i++) {\n aResult.put(headings[i], rowWithTdStrings.get(i));\n }\n result.add(aResult);\n }\n return result;\n }",
"public Map<String, String> getMetadata() {\n return metadata;\n }",
"public Map<String, String> getMetadata() {\n return metadata;\n }",
"public Map<String, Object> toMap(){\n HashMap<String, Object> res = new HashMap<>();\n res.put(\"id\", id);\n res.put(\"type\", type);\n res.put(\"status\", status);\n res.put(\"date\", date);\n res.put(\"sender\", sender);\n res.put(\"content\", content);\n\n return res;\n }",
"com.google.protobuf.ByteString getFavicon();",
"public static HashMap<String, String> readFromExcel() throws IOException, WriteException, BiffException {\n\t\t\t\tList<String> keyList = new ArrayList<String>(); \r\n\t\t\t\tList<String> list = new ArrayList<String>(); \r\n\t\t\t\tHashMap<String, String> map = new HashMap<String, String>(); \r\n\t\t\t\tString str = null;\r\n\t\t\t\r\n\t\t\t\ttry\r\n\t\t {\r\n\t\t File f1=new File(\"//ecs-9844/DoNotDelete/JenkinsData/input.xls\");\r\n\t\t //the excel sheet which contains data\r\n\t\t WorkbookSettings ws=new WorkbookSettings();\r\n\t\t ws.setLocale(new Locale(\"er\",\"ER\"));\r\n\t\t Workbook workbook=Workbook.getWorkbook(f1,ws);\r\n\t\t Sheet readsheet=workbook.getSheet(0);\r\n\t\t //Loop to read the KEYS from Excel i.e, 1st column of the Excel\r\n\t\t for(int i=0;i<readsheet.getColumns();i++) {\r\n\t\t \tstr=readsheet.getCell(i,0).getContents().toString();\r\n\t\t \tlist.add(str);\r\n\t\t }\r\n\t\t \tkeyList.addAll(list);\r\n\t\t \t// Hardcoding the first map (key, value) values \r\n\t\t \tmap.put(keyList.get(0), readsheet.getCell(0, 1).getContents().toString());\r\n\t\t \t// Loop to read TEST DATA from the Excel\r\n\t\t for(int i=1;i<readsheet.getRows();i++) {\r\n\t\t for(int j=1;j<readsheet.getColumns();j++) {\t\r\n\t\t str=readsheet.getCell(j,i).getContents().toString();\r\n\t\t list.add(str);\r\n\t\t System.out.println(str);\r\n\t\t map.put(keyList.get(j),str); \r\n\t\t \t}\r\n\t\t }\r\n\t\t //Print the map(key, value) \r\n\t\t System.out.println(\"Print map\");\r\n\t\t System.out.println(map);\r\n\t\t \r\n\t\t }\r\n\t\t catch(IOException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t }\r\n\r\n\t\t catch(BiffException e)\r\n\t\t {\r\n\t\t e.printStackTrace();\r\n\t\t } catch (Exception e) {\r\n\t\t e.printStackTrace(); \r\n\t\t }\r\n\t\t\t\t\treturn map;\r\n\t}",
"public int hashCode()\r\n {\r\n int hash = super.hashCode();\r\n hash ^= hashValue( m_title );\r\n hash ^= hashValue( m_description );\r\n return hash;\r\n }"
] | [
"0.6245056",
"0.57167",
"0.56097895",
"0.5563274",
"0.54082274",
"0.5369132",
"0.5367373",
"0.53364",
"0.5325811",
"0.5325811",
"0.53045005",
"0.5298679",
"0.5284141",
"0.52805185",
"0.525112",
"0.5249199",
"0.52474385",
"0.5242562",
"0.5207399",
"0.5198571",
"0.51868576",
"0.5186207",
"0.5183873",
"0.51831853",
"0.5159529",
"0.51306695",
"0.5128906",
"0.5117199",
"0.5107159",
"0.5106756",
"0.50938904",
"0.5071647",
"0.5054707",
"0.5053492",
"0.5053492",
"0.5053139",
"0.5051039",
"0.5050018",
"0.5050018",
"0.5040962",
"0.50326973",
"0.5016661",
"0.50104105",
"0.50080043",
"0.5005256",
"0.50050426",
"0.49971622",
"0.4996459",
"0.49956375",
"0.49933815",
"0.49908903",
"0.4981142",
"0.49790418",
"0.4977814",
"0.49755853",
"0.4967036",
"0.49664268",
"0.4962835",
"0.49578086",
"0.49546888",
"0.49433592",
"0.49433282",
"0.4915335",
"0.4913825",
"0.49122846",
"0.4899774",
"0.4871948",
"0.48678887",
"0.48621956",
"0.48553136",
"0.48479927",
"0.4835265",
"0.48348394",
"0.4834127",
"0.48331988",
"0.48313406",
"0.48145667",
"0.48137972",
"0.48125938",
"0.48092666",
"0.47950393",
"0.47922114",
"0.47914007",
"0.4781487",
"0.47750643",
"0.476781",
"0.47671178",
"0.47656286",
"0.47583356",
"0.47476774",
"0.47386783",
"0.47336614",
"0.47290748",
"0.47193554",
"0.47030437",
"0.47030437",
"0.47012156",
"0.46998706",
"0.46992096",
"0.46971202"
] | 0.5512763 | 4 |
Update a row in the database with new information. Requeries the database if the information has changed. | public void updateRow(Bundle map) {
// Find the record
int id = map.getInt("id");
int position = -1;
for (mCursor.moveToFirst(); !mCursor.isAfterLast(); mCursor.moveToNext()) {
if (mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX) == id) {
position = mCursor.getPosition();
break;
}
}
if (position < 0) {
return;
}
mCursor.moveToPosition(position);
ContentValues values = new ContentValues();
String title = map.getString(Browser.BookmarkColumns.TITLE);
if (!title.equals(mCursor
.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX))) {
values.put(Browser.BookmarkColumns.TITLE, title);
}
String url = map.getString(Browser.BookmarkColumns.URL);
if (!url.equals(mCursor.
getString(Browser.HISTORY_PROJECTION_URL_INDEX))) {
values.put(Browser.BookmarkColumns.URL, url);
}
if (map.getBoolean("invalidateThumbnail") == true) {
values.put(Browser.BookmarkColumns.THUMBNAIL, new byte[0]);
}
if (values.size() > 0
&& mContentResolver.update(Browser.BOOKMARKS_URI, values,
"_id = " + id, null) != -1) {
refreshList();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateRow() throws SQLException\n {\n m_rs.updateRow();\n }",
"public void update() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.update(this);\n\t\tsession.getTransaction().commit();\n\t}",
"public void updateRow() throws SQLException {\n\n try {\n debugCodeCall(\"updateRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n checkOnValidRow();\n if (updateRow != null) {\n UpdatableRow row = getUpdatableRow();\n Value[] current = new Value[columnCount];\n for (int i = 0; i < updateRow.length; i++) {\n current[i] = get(i + 1);\n }\n row.updateRow(current, updateRow);\n for (int i = 0; i < updateRow.length; i++) {\n if (updateRow[i] == null) {\n updateRow[i] = current[i];\n }\n }\n Value[] patch = row.readRow(updateRow);\n patchCurrentRow(patch);\n updateRow = null;\n }\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"@Override\r\n\tpublic void update() throws SQLException {\n\r\n\t}",
"public void dbUpdate(String query) {\n try {\n tryDbUpdate(query);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"private void updateDB() {\n }",
"public void update() throws SQLException {\r\n\t\t//SQL-Statment\r\n\r\n\t\tString sql = \" UPDATE \" +table+ \" SET \" + col_genre + \" = ?\"\r\n\t\t\t\t+ \"WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setString(1, this.getGenre());\r\n\t\tstmt.setInt(2, this.getGenreID());\r\n\r\n\r\n\t\t//Update\r\n\t\tint rowsUpdated = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsUpdated+ \"Zeilen hinzugefügt\");\r\n\t\tstmt.close();\r\n\r\n\t}",
"public void update() throws SQLException {\n DatabaseConnector.updateQuery(\"UPDATE course SET \"\n + \"courseDept='\" + this.courseDept + \"', \"\n + \"courseNum='\" + this.courseNum + \"', \"\n + \"courseName='\" + this.courseName + \"', \"\n + \"info='\" + this.info + \"', \"\n + \"credit=\" + this.credit);\n }",
"protected void update() throws SQLException {\n\t\tProperties whereClause = new Properties();\n\t\twhereClause.setProperty(\"1\", \"1\");\n\t\tupdatePersistentState(getSchema(), persistentState, whereClause);\n\t}",
"public void refreshRow() throws SQLException {\n\n try {\n debugCodeCall(\"refreshRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NO_DATA_AVAILABLE); }\n checkOnValidRow();\n patchCurrentRow(getUpdatableRow().readRow(result.currentRow()));\n updateRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void update() {\n\t\tPreparedStatement stmt;\n\t\ttry {\n\t\t\tstmt = cn.prepareStatement(\n\t\t\t\t\t\"UPDATE Metal SET metalDissolvedBy = ?, molesOfAcidToDissolve = ? WHERE metalID = ?\");\n\t\t\tstmt.setInt(1, dissolvedBy);\n\t\t\tstmt.setDouble(2, molesOfAcidToDissolve);\n\t\t\tstmt.setInt(3, ID);\n\t\t\tstmt.execute();\n\t\t} catch (Exception e) {\n\t\t\tDatabaseException.detectError(e);\n\t\t}\n\t}",
"@Override\n\tpublic void update(String query) {\n\t\ttry {\n\t\t\tStatement st = Database.getInstance().getDBConn().createStatement();\n\t\t\tst.executeUpdate(query);\n\t\t\t\n\t\t\tst.close();\n\t\t} catch(Exception err) {\n\t\t\terr.printStackTrace();\n\t\t}\n\t}",
"int updateByPrimaryKey(GirlInfo record);",
"public void update(IEntity entity) throws SQLException;",
"protected void update(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.update(item);\n\t\t\tmDbHelper.endTransaction(session);\n\t\t} catch (Exception e) {\n\t\t\tmDbHelper.cancelTransaction(session);\n\t\t\tAppLogger.error(e, \"Failed to execute update\");\n\t\t}\n\t}",
"public int update(String theQuery) throws SQLException {\r\n Statement st = this.connector.createStatement();\r\n return st.executeUpdate(theQuery);\r\n }",
"int updateByPrimaryKey(UserInfo record);",
"void update(User user) throws SQLException;",
"int updateByPrimaryKey(Basicinfo record);",
"int update(Purchase purchase) throws SQLException, DAOException;",
"int updateByPrimaryKey(Assist_table record);",
"int updateByPrimaryKey(AccuseInfo record);",
"int updateByPrimaryKey(Product record);",
"int updateByPrimaryKey(BnesBrowsingHis record) throws SQLException;",
"@Override\n\tpublic void queryUpdate() {\n\t\tneedToUpdate = true;\n\t}",
"@Override\n\tpublic void update(DomainEntity entity) throws SQLException {\n\t\t\n\t}",
"int updateByPrimaryKey(Commet record);",
"@Override\n\tpublic void update(StockDataRecord bo) throws SQLException {\n\t\t\n\t}",
"int updateByPrimaryKey(Massage record);",
"int updateByPrimaryKey(RecordLike record);",
"int updateByPrimaryKey(Yqbd record);",
"public void executeUpdate();",
"@Override\n public void update(T entity) throws SQLException {\n\n this.dao.update(entity);\n\n }",
"public void update(TdiaryArticle obj) throws SQLException {\n\r\n\t}",
"int updateByPrimaryKey(Userinfo record);",
"int updateByPrimaryKey(Access record);",
"public void update(T object) throws SQLException;",
"int updateByPrimaryKey(SupplyNeed record);",
"int updateByPrimaryKey(Online record);",
"int updateByPrimaryKey(Tourst record);",
"int updateByPrimaryKey(Prueba record);",
"public void Update(){\n ContentValues values = new ContentValues();\n values.put(PostDatabase.COL_TITLE, \"Second title changed\");\n\n // Which row to update, based on the ID\n String whereClause = PostDatabase.ID + \" LIKE ?\";\n String[] whereArgs = { \"2\" };\n\n int affectedRows = sqlDB.update(\n PostDatabase.TABLE_POSTS,\n values,\n whereClause,\n whereArgs\n );\n Log.d(\"PostDataBase\", String.valueOf(affectedRows));\n }",
"@Override\n\tpublic void update(Entry entry) {\n\t\tentryDAO.save(entry);\n\t}",
"public boolean update() {\n executeCallbacks(CallbackType.BEFORE_UPDATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnUpdate();\n if (errors.size() > 0) return false;\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n Adapter adapter = getAdapter();\n StringBuilder sql = new StringBuilder();\n sql.append(\"UPDATE \").append(getTableName());\n sql.append(\" SET \").append(quotedCommaPairList(attributesWithQuotes(includePrimaryKey)));\n sql.append(\" WHERE \").append(getPrimaryKey()).append(\" = \").append(adapter.quote(getId()));\n\n boolean result = adapter.update(sql.toString(), getClass().getName() + \" Update\") == 1;\n if (result) {\n reloadAssociations();\n reloadAggregations();\n }\n\n executeCallbacks(CallbackType.AFTER_UPDATE);\n return result;\n }",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Question record);",
"int updateByPrimaryKey(Tour record);",
"int updateByPrimaryKey(Cargo record);",
"@Test\r\n\tpublic void testUpdate() {\r\n\t\tList<E> entities = dao.findAll();\r\n\t\tE updated = supplyUpdated(entities.get(0));\r\n\t\tdao.update(entities.get(0));\r\n\t\tentities = dao.findAll();\r\n\t\tassertEquals(updated, entities.get(0));\r\n\t}",
"int updateByPrimaryKey(Goods record);",
"int updateByPrimaryKey(Goods record);",
"int updateByPrimaryKey(Forumpost record);",
"public void dbUpdateRow(EdaContext xContext, String newRelationship)\n\tthrows IcofException{\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetUpdateStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setString(1, newRelationship);\n\t\t\tgetStatement().setLong(2, getId());\n\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass().getName(),\n\t\t\t \"dbUpdateRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass() .getName(),\n\t\t\t \"dbUpdateRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to insert new row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t\t// Set the names on this object.\n\t\tsetRelationship(newRelationship);\n\n\t}",
"int updateByPrimaryKey(ParkCurrent record);",
"void updateEntry(BlogEntry entry) throws DAOException;",
"int updateByPrimaryKey(Sequipment record);",
"public void UpdateData(View v){\n boolean isUpdated = myDB.updateData(et_id.getText().toString(),\n et_name.getText().toString(),\n et_surname.getText().toString(),\n et_marks.getText().toString());\n if(isUpdated){\n // show update message\n Toast.makeText(getApplicationContext(), \"Update successful.\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(getApplicationContext(), \"Update failure.\", Toast.LENGTH_LONG).show();\n }\n }",
"int updateByPrimaryKey(QuestionOne record);",
"int updateByPrimaryKey(Notice record);",
"int updateByPrimaryKey(Engine record);",
"public void update(T t) {\n\t\tConnection connection = null;\n\t\tPreparedStatement statement = null;\n\t\tString query = createUpdate(t);\n\t\ttry {\n\t\t\tconnection = ConnectionDB.getConnection();\n\t\t\tstatement = connection.prepareStatement(query);\n\t\t\tstatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\tLOGGER.log(Level.WARNING, type.getName() + \"DAO:Update \" + e.getMessage());\n\t\t} finally {\n\t\t\tConnectionDB.close(statement);\n\t\t\tConnectionDB.close(connection);\n\t\t}\n\t}",
"public static Boolean updateData(String query){\n int affectedRow = 0;\n connect();\n try{\n Statement stm = conn.createStatement();\n affectedRow = stm.executeUpdate(query);\n }catch(Exception e) {\n System.out.println(e.getMessage());\n }\n disconnect();\n if(affectedRow == 0)\n return false;\n else\n return true;\n }",
"int updateByPrimaryKey(Abum record);",
"int updateByPrimaryKey(Course record);",
"int updateByPrimaryKey(Course record);",
"public void updateDB() {\n \n sql = \"UPDATE Order set \" + \"CustomerID='\"+getCustomerID()+\"',\" + \" Status='\"+getStatus()+\"'\" + \" WHERE OrderID= '\" + getOrderID()+\"'\";\n db.updateDB(sql);\n \n }",
"int updateByPrimaryKey(Dress record);",
"public static void Update(String query) throws SQLException{\r\n\t\ttry {\r\n\t\t\tinitConnection();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdbCon.createStatement().executeUpdate(query);\t\t\t\r\n\t}",
"int updateByPrimaryKey(Dormitory record);",
"int updateByPrimaryKey(Admin record);",
"int updateByPrimaryKey(Admin record);",
"int updateByPrimaryKey(PrhFree record);",
"int updateByPrimaryKey(Shareholder record);",
"int updateByPrimaryKey(TempletLink record);",
"int updateByPrimaryKey(Dish record);",
"int updateByPrimaryKey(Disproduct record);",
"int updateByPrimaryKey(RepStuLearning record);",
"int updateByPrimaryKey(Position record);",
"int updateByPrimaryKey(JzAct record);",
"int updateByPrimaryKey(Model record);",
"public void updateRowObject(E rowObject) {\n dataTable.updateRow(rowObject);\n fireModify(rowObject);\n }",
"int updateByPrimaryKey(TerminalInfo record);",
"public void doUpdate(T objectToUpdate) throws SQLException;",
"protected void updateRecord() throws DAOException {\r\n\t\t// Prepara para actualizar\r\n\t\tobject.prepareToUpdate();\r\n\t\t// Actualiza objeto\r\n\t\tobjectDao.update(object);\r\n\t\t// Actualiza relaciones\r\n\t\tfor (Sedrelco relco : object.getRelcos()) {\r\n\t\t\tsedrelcoDao.update(relco);\r\n\t\t}\r\n\t}",
"public void updateDb(View view) {\n String productName = getIntent().getStringExtra(\"product\");\n Product p = db.getProductByName(productName);\n p.setName(name.getText().toString());\n p.setAvail(availSpinner.getSelectedItem().toString());\n p.setDescription(desc.getText().toString());\n p.setPrice(new BigDecimal(price.getText().toString()));\n p.setWeight(Double.parseDouble(weight.getText().toString()));\n db.updateProduct(p);\n finish();\n }",
"@Test\r\n public void testUpdate() {\r\n ActivityRecord record = setActivityRecord();\r\n recordDao.create(record);\r\n assertNotNull(recordDao.findActivityRecord(record.getId()));\r\n\r\n record.setDistance(15);\r\n record.setTime(20L);\r\n recordDao.update(record);\r\n\r\n ActivityRecord recordFound = recordDao.findActivityRecord(record.getId());\r\n assertEquals(recordFound.getDistance(), new Integer(15));\r\n assertEquals(recordFound.getTime(), new Long(20));\r\n }",
"public void updateRecord() throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tgetBackground();\n\t\ttry\n\t\t{\n\t\t\tmyData.record.update(background.getClient());\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}",
"int updateByPrimaryKey(ReEducation record);",
"@Override\n public void updateDatabase() {\n }",
"int updateByPrimaryKey(Article record);",
"int updateByPrimaryKey(Storage record);",
"int updateByPrimaryKey(Storage record);",
"private void update() {\n\t\tConfiguration conf = new Configuration();\n\t\tconf.configure(\"hibernate.cfg.xml\");\n\t\tSessionFactory sf = conf.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\ts.beginTransaction();\n\n\t\tQuery query = s.createQuery(\"update OldStudent os set id=9 where os.name = 'Omkar'\");\n\t\tint count = query.executeUpdate();\n\t\tSystem.out.println(\"Number of Rows Updated in the oldstudent table=\" + count);\n\n\t\ts.getTransaction().commit();\n\t\ts.clear();// s.evict() on all student objects in session\n\t\tsf.close();\n\n\t}",
"int updateByPrimaryKey(DataSync record);",
"private void updateHouse() {\n Statement statement = null;\n try {\n statement = this.connection.createStatement();\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM house\");\n Utils.printResultSet(resultSet);\n System.out.print(\"Select a house to update. Enter its house_id: \");\n Scanner scanner = new Scanner(System.in);\n String id = scanner.next();\n System.out.print(\"What do you want to update? Resident, Number of Residents, \" +\n \"or Head of House? \");\n String field = scanner.next();\n if (field.equalsIgnoreCase(\"Resident\")) {\n System.out.println(\"Enter the first name of the new resident of the house you wish to update: \");\n String firstName = scanner.next();\n int personID = Utils.selectPersonFromFirstName(firstName, connection);\n statement.executeUpdate(\"UPDATE house SET person_id = \" + personID +\n \" WHERE house_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"Number\")) {\n System.out.println(\"Enter the new number of residents of the house you wish to update\");\n int newNumResidents = scanner.nextInt();\n statement.executeUpdate(\"UPDATE house SET num_residents = \" +\n newNumResidents + \" WHERE house_id = \" + id);\n }\n else if (field.equalsIgnoreCase(\"Head\")) {\n System.out.println(\"Enter the first name of the new head of house of the house you wish to update: \");\n String firstName = scanner.next();\n int personID = Utils.selectPersonFromFirstName(firstName, connection);\n statement.executeUpdate(\"UPDATE house SET head_of_house = \" +\n personID + \" WHERE house_id = \" + id);\n }\n else {\n System.out.println(\"Field not identified. Enter again. \");\n this.updateHouse();\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n }",
"int updateByPrimaryKey(Body record);",
"int updateByPrimaryKey(AccessModelEntity record);",
"int updateByPrimaryKey(Ad record);"
] | [
"0.76243484",
"0.71735966",
"0.7132843",
"0.71302325",
"0.68364096",
"0.6729438",
"0.6668245",
"0.6630495",
"0.6625206",
"0.6602377",
"0.65931606",
"0.65865046",
"0.65862584",
"0.65796256",
"0.65690875",
"0.6562705",
"0.6467423",
"0.6454007",
"0.6449404",
"0.64362",
"0.64335096",
"0.64237946",
"0.6409459",
"0.64085025",
"0.6401879",
"0.639508",
"0.6389152",
"0.6387357",
"0.63788235",
"0.63755727",
"0.63743323",
"0.6364028",
"0.63630724",
"0.6348595",
"0.6342696",
"0.6338095",
"0.63379997",
"0.63375926",
"0.6337214",
"0.63352764",
"0.633416",
"0.6334005",
"0.6314891",
"0.6311514",
"0.6305587",
"0.6305587",
"0.6305587",
"0.6305587",
"0.6305587",
"0.6300583",
"0.63001937",
"0.6284476",
"0.627814",
"0.627814",
"0.6264129",
"0.62557805",
"0.6254557",
"0.6254304",
"0.62497675",
"0.6246942",
"0.6246154",
"0.6244098",
"0.62429684",
"0.62424994",
"0.6241886",
"0.6236981",
"0.62361294",
"0.62361294",
"0.6235347",
"0.62347484",
"0.6233408",
"0.62300396",
"0.6227535",
"0.6227535",
"0.6223308",
"0.6221546",
"0.62160975",
"0.62131214",
"0.6211912",
"0.62110543",
"0.6210537",
"0.6209146",
"0.62087643",
"0.620606",
"0.6204671",
"0.62042713",
"0.62014675",
"0.61977744",
"0.61922836",
"0.6191789",
"0.61913115",
"0.61907494",
"0.6178373",
"0.6177135",
"0.6177135",
"0.61761844",
"0.6173856",
"0.61724335",
"0.6169622",
"0.61653244",
"0.61629295"
] | 0.0 | -1 |
Delete a row from the database. Requeries the database. Does nothing if the provided position is out of range. | public void deleteRow(int position) {
if (position < mExtraOffset || position >= getCount()) {
return;
}
mCursor.moveToPosition(position- mExtraOffset);
String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
String title = mCursor.getString(Browser.HISTORY_PROJECTION_TITLE_INDEX);
Bookmarks.removeFromBookmarks(null, mContentResolver, url, title);
refreshList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic int deleteOne(int idx) throws SQLException {\n\t\treturn 0;\r\n\t}",
"public void removeRow(int ind) throws SQLException {\n/* 417 */ notSupported();\n/* */ }",
"public DResult delete(byte[] row, long startId) throws IOException;",
"private void deleteItem(int position){\n deleteItem(dataset.get(position),position);\n }",
"public void deleteRow(int row) throws IndexOutOfBoundsException{\r\n data.remove(row);\r\n fireTableRowsDeleted(row,row);\r\n }",
"void deleteRow(int rowPos)\n {\n System.out.println(\n \"@deleteRow rowPos: \" + rowPos + \", vs stackSize: \" + compositeRowStack.size());\n if(rowPos > 0) transferChildren(rowPos, rowPos - 1);\n if(rowPos < compositeRowStack.size())\n {\n compositeRowStack.remove(rowPos);\n }\n }",
"public boolean deleteItem(int index);",
"public void deleteRow(int row) {\n\t\tif (row == -1) return;\n\t\t\n\t\tdata.remove(row);\n\t\tfireTableRowsDeleted(row, row);\n\t}",
"public boolean deleteData(String position) {\n return db.delete(Database_Helper.TABLE_NAME, Database_Helper.COLUMN_1 + \"=?\", new String[]{position}) > 0;\n }",
"public void deleteRow() throws SQLException\n {\n m_rs.deleteRow();\n }",
"public native void deleteRow(int row) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso.deleteRow(row);\n }-*/;",
"public boolean deleteRow(int row) {\n try {\n resultSet.absolute(row + 1);\n resultSet.deleteRow();\n //tell table to redraw itself\n fireTableDataChanged();\n return true;\n } catch (SQLException se) {\n System.out.println(\"Delete row error \" + se);\n return false;\n }\n }",
"public void deleteRow() throws SQLException {\n\n try {\n debugCodeCall(\"deleteRow\");\n checkClosed();\n if (insertRow != null) { throw Message.getSQLException(ErrorCode.NOT_ON_UPDATABLE_ROW); }\n checkOnValidRow();\n getUpdatableRow().deleteRow(result.currentRow());\n updateRow = null;\n }\n catch (Exception e) {\n throw logAndConvert(e);\n }\n }",
"public void delete(int position) {\r\n dataTag.remove(position);\r\n data.remove(position);\r\n }",
"void removeRow(int row_index) throws IOException;",
"int deleteBannerPositionByExample(BannerPositionExample example) throws SQLException;",
"int deleteByPrimaryKey(Integer r_p_i);",
"@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}",
"int deleteBannerPositionByPrimaryKey(Integer id) throws SQLException;",
"public void deleteEntry(long row) {\n database.delete(ORDER_MASTER, ROW_ID + \"=\" + row, null);\n }",
"public int deleteIndex(FeatureRow row) {\n return deleteIndex(row.getId());\n }",
"public void removeRowAt(int row)\r\n throws IllegalStateException {\r\n if(!(Integer.parseInt(((Vector)data.elementAt(row)).elementAt\r\n (numberOfcolumns).toString()) == IS_INSERTED)){\r\n ( (Vector) data.elementAt(row)).\r\n setElementAt(new Integer(IS_DELETED), numberOfcolumns);\r\n dataDeleted.add((Vector)data.elementAt(row));\r\n }\r\n data.removeElementAt(row);\r\n this.deletedStatus = true;\r\n }",
"public void deletePolynom(int position) {\n collection.remove(position);\n }",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n Cell<?> cell,\n WriteContext ctx,\n long nowInSec)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n cell));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, cell),\n DeletionTime.build(cell.timestamp(), nowInSec),\n ctx);\n }",
"public RNode deleteAt(int position) {\n if (position >= 0 && position < length() ) {\n\t if (position == 0) return next;\n\t else {\n\t\tnext = next.deleteAt(position - 1);\n\t\treturn this;\n\t }\n }\n\telse throw new RuntimeException(\"precondition violated\");\n }",
"@Override\n\tpublic boolean delete(Item obj) {\n\t\ttry{\n\t\t\tString query=\"DELETE FROM items WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setInt(1, obj.getIndex());\n\t\t\tint nb_rows = state.executeUpdate();\n\t\t\tSystem.out.println(\"Deleted \"+nb_rows+\" lines\");\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.delete -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t}",
"int deleteByPrimaryKey(String num);",
"int deleteByPrimaryKey(String num);",
"public void delete(int position) {\n\t\tif (position >= 0 && position < size) {\n\t\t\t// first resize the storage array\n\t\t\tE[] newData = (E[]) new Object[size - 1];\n\t\t\t// copy the data prior to the delition\n\t\t\tfor (int i = 0; i < position; i++)\n\t\t\t\tnewData[i] = data[i];\n\t\t\t// move the data after the deletion\n\t\t\tfor (int i = position + 1; i < size; i++)\n\t\t\t\tnewData[i - 1] = data[i];\n\t\t\t// replace the storage with the new array\n\t\t\tdata = newData;\n\t\t\tsize = size - 1;\n\t\t}\n\t}",
"public void deleteRow(String row) {\n database.delete(ORDER_MASTER, ORDER_ID + \"=\" + row, null);\n }",
"public int deleteDBrow(Long rowId) {\n SQLiteDatabase db = mDbHelper.getWritableDatabase();\n\n // Define 'where' part of query.\n String selection = FeedEntry._ID + \" LIKE ?\";\n // Specify arguments in placeholder order.\n String[] selectionArgs = {rowId.toString()};\n // Issue SQL statement.\n return db.delete(FeedEntry.TABLE_NAME, selection, selectionArgs);\n }",
"public native void deleteRow(int row, TableViewAnimation animation) /*-{\n\t\tvar jso = this.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()();\n\t\tjso\n\t\t\t\t.deleteRow(\n\t\t\t\t\t\trow,\n\t\t\t\t\t\tanimation.@com.emitrom.ti4j.core.client.ProxyObject::getJsObj()());\n }-*/;",
"void delete (int index);",
"public boolean delete(long rowId) {\n\t\treturn db.delete(tableName, fields[0] + \" = \" + String.valueOf(rowId), null) > 0;\t\t\n\t}",
"@Override\r\n\tpublic void delete(Integer arg0) {\n\t\t\r\n\t}",
"int deleteByPrimaryKey(String number);",
"@Kroll.method\n\tpublic void deleteRow(Object rowObj, @Kroll.argument(optional = true) KrollDict animation)\n\t{\n\t\tif (rowObj instanceof Integer) {\n\t\t\tfinal int index = ((Integer) rowObj).intValue();\n\n\t\t\tdeleteRow(getRowByIndex(index), null);\n\t\t} else {\n\t\t\tfinal TableViewRowProxy row = processRow(rowObj);\n\n\t\t\tif (row == null) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TiViewProxy parent = row.getParent();\n\n\t\t\tif (parent != null) {\n\t\t\t\tif (parent instanceof TableViewSectionProxy) {\n\t\t\t\t\tfinal TableViewSectionProxy section = (TableViewSectionProxy) parent;\n\n\t\t\t\t\t// Row is in section, modify section rows.\n\t\t\t\t\tsection.remove(row);\n\n\t\t\t\t\t// Notify TableView of update.\n\t\t\t\t\tupdate();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void delete(Integer key) throws SQLException {\n //Ei toteutettu\n }",
"void onItemDelete(int position);",
"public void removeRow(int row) {\r\n\t\tdata.remove(row);\r\n\t}",
"public int deleteById(long id) throws DataAccessException;",
"int deleteByPrimaryKey(Long researchid);",
"public void dbDeleteRow(EdaContext xContext)\n\tthrows IcofException{\n\n\t\t// Create the SQL query in the PreparedStatement.\n\t\tsetDeleteStatement(xContext);\n\t\ttry {\n\t\t\tgetStatement().setLong(1, getId());\n\n\t\t}\n\t\tcatch(SQLException trap) {\n\t\t\tIcofException ie = new IcofException(this.getClass().getName(),\n\t\t\t \"dbDeleteRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to prepare SQL statement.\",\n\t\t\t IcofException.printStackTraceAsString(trap) + \n\t\t\t \"\\n\" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Run the query.\n\t\tif (! insertRow(xContext)) {\n\t\t\tIcofException ie = new IcofException(this.getClass().getName(),\n\t\t\t \"dbDeleteRow()\",\n\t\t\t IcofException.SEVERE,\n\t\t\t \"Unable to delete row.\\n\",\n\t\t\t \"QUERY: \" + getQuery());\n\t\t\txContext.getSessionLog().log(ie);\n\t\t\tthrow ie;\n\t\t}\n\n\t\t// Close the PreparedStatement.\n\t\tcloseStatement(xContext);\n\n\t}",
"@NonNull\n public E remove(@IntRange(from = 0) final int position) {\n final E e = mItems.remove(position);\n mDatasourceObservable.notifyItemRangeRemoved(position, 1);\n return e;\n }",
"int deleteByPrimaryKey(Integer recordId);",
"public void deleteItem(int position) {\n Expense expense = expenses.get(position);\n expense.deleteInBackground();\n \n }",
"T remove(Position<T> p) throws IllegalStateException;",
"public void deleteRow(MyItem row) {\n\n\t\tif (MyItemAdapter.rows.contains(row)) {\n\t\t\tMyItemAdapter.rows.remove(row);\n\t\t}\n\n\t}",
"public void delete(IQuery query) throws SQLException;",
"@Override\n\tpublic void delete(Integer arg0) {\n\t\t\n\t}",
"@Override\r\n\tpublic int delete(int rno) {\n\t\treturn rDao.delete(rno);\r\n\t}",
"public boolean delete(long rowId)\n {\n return db.delete(DATABASE_TABLE, KEY_ROWID +\n \"=\" + rowId, null) > 0;\n }",
"public int deleteEntry(long lRow1) throws SQLException {\n\t\treturn ourDatabase\n\t\t\t\t.delete(DATABASE_TABLE, KEY_ROWID + \"=\" + lRow1, null);\n\t}",
"int delete(T data) throws SQLException, DaoException;",
"@Override\n public int deleteByPrimaryKey(BorrowDO record){\n return borrowExtMapper.deleteByPrimaryKey(record);\n }",
"int deleteByPrimaryKey(String guid);",
"int deleteByPrimaryKey(String guid);",
"public void remove(Record r) \n\t{\n\t\tfilled--; //reduce load factor\n\t\tif (r.placement != -1){ //if r's expected position isnt null\n\t\t\tRecord newRecord = new Record(\"deleted\"); //make a new record with value \"deleted\n\t\t\tnewRecord.placement = -2; //set position to -1 (as is standard for deleted\n\t\t\tTable[r.placement] = newRecord; //puts deleted slot in table\n\t\t}\t\n\t}",
"@Writer\n int deleteByPrimaryKey(Integer id);",
"int deleteByPrimaryKey(GpPubgPlayer record);",
"public abstract void rowsDeleted(int firstRow, int endRow);",
"public void delete()\n\t{\n\t\t_Status = DBRowStatus.Deleted;\n\t}",
"int deleteById(ID id) throws SQLException, DaoException;",
"int deleteByPrimaryKey(Integer fitemid);",
"public abstract boolean delete(long arg, Connection conn) throws DeleteException;",
"int deleteByPrimaryKey(long order_preferential_id) throws SQLException;",
"public void deleteRows(int[] rows) throws IndexOutOfBoundsException{\r\n if (rows.length > 0){\r\n LinkedList data_to_remove = new LinkedList();\r\n for (int i=0; i<rows.length; i++){\r\n data_to_remove.add(data.get(rows[i]));\r\n }\r\n for (int i=0; i<data_to_remove.size(); i++){\r\n data.remove(data_to_remove.get(i)); \r\n }\r\n this.fireTableRowsDeleted(rows[0], rows[rows.length -1]);\r\n }\r\n }",
"public Integer deleteObject() throws DatabaseException {\n // Prepare the calls if not already set (prepare may not have had the modify row).\n if ((!hasMultipleCalls()) && (getCall() == null)) {\n prepareDeleteObject();\n if ((!hasMultipleCalls()) && (getCall() == null)) {\n return new Integer(1);// Must be 1 otherwise locking error will occur.\n }\n }\n\n return super.deleteObject();\n }",
"@Override\n\tpublic int delete(int id) throws SQLException {\n\t\treturn 0;\n\t}",
"int deleteByPrimaryKey(Long uid);",
"public void deletePage(int position)\n {\n arrayIndexes.remove(position);\n // Notify the adapter that the data set is changed\n notifyDataSetChanged();\n }",
"@Override\n public int delete(Uri uri, String selection, String[] selectionArgs) {\n // Open a read / write database to support the transaction.\n SQLiteDatabase db = myOpenHelper.getWritableDatabase();\n \n // If this is a row URI, limit the deletion to the specified row.\n switch (uriMatcher.match(uri)) {\n case SINGLE_ROW : \n String rowID = uri.getPathSegments().get(1);\n selection = KEY_ID + \"=\" + rowID\n + (!TextUtils.isEmpty(selection) ? \n \" AND (\" + selection + ')' : \"\");\n default: break;\n }\n \n // To return the number of deleted items you must specify a where\n // clause. To delete all rows and return a value pass in \"1\".\n if (selection == null)\n selection = \"1\";\n \n // Execute the deletion.\n int deleteCount = db.delete(MySQLiteOpenHelper.DATABASE_TABLE, selection, selectionArgs);\n \n // Notify any observers of the change in the data set.\n getContext().getContentResolver().notifyChange(uri, null);\n \n return deleteCount;\n }",
"int deleteByPrimaryKey(Integer pkid);",
"int deleteByPrimaryKey(Integer pkid);",
"private void delete(ByteBuffer rowKey,\n Clustering<?> clustering,\n DeletionTime deletion,\n WriteContext ctx)\n {\n DecoratedKey valueKey = getIndexKeyFor(getIndexedValue(rowKey,\n clustering,\n null));\n doDelete(valueKey,\n buildIndexClustering(rowKey, clustering, null),\n deletion,\n ctx);\n }",
"public static void Delete(int valueAt) throws ClassNotFoundException, SQLException {\n\t\tMatHang_DAL.Delete(valueAt);\n\t}",
"int deleteByPrimaryKey(String samId);",
"int deleteByPrimaryKey(String uid);",
"void deleteContact(String id, int position);",
"int deleteByPrimaryKey(String stockCode);",
"@Override\n\tpublic void delByPrimaryKey(int id) throws SQLException {\n\n\t}",
"public int deleteById(long inputId) throws DataAccessException;",
"void removeProduct(int position) throws ProductNotFoundException;",
"public boolean delete(long arg) throws DeleteException {\n Connection conn = null;\n try {\n conn = getConnection();\n return delete(arg, conn);\n } catch (DeleteException deleteE) {\n throw new DeleteException(deleteE.getMessage());\n } catch (Exception e) {\n throw new DeleteException(e.getMessage());\n } finally {\n JDBCUtil.release(conn,null,null,null);\n }\n }",
"int deleteByPrimaryKey(Long autoid);",
"void delete()\n\t{\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call delete() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tdeleteFront(); //deletes the front if the cursor is at the front\n\n\t\t}\n\t\telse if(cursor == back)\n\t\t{\n\t\t\tdeleteBack(); //deletes the back if the cursor is at the back\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcursor.prev.next=cursor.next; \n\t\t\tcursor.next.prev=cursor.prev;\n\t\t\tcursor = null; \n\t\t\tindex = -1;\n\t\t\tlength--;\n\t\t}\n\t\t\n\t}",
"public void delete() throws SQLException {\r\n\t\t//SQL Statement\r\n\r\n\t\tString sql = \"DELETE FROM \" + table+ \" WHERE \" + col_genreID + \" = ?\";\r\n\t\tPreparedStatement stmt = DBConnection.getConnection().prepareStatement(sql);\r\n\t\tstmt.setInt(1, this.getGenreID());\r\n\r\n\t\tint rowsDeleted = stmt.executeUpdate();\r\n\t\tSystem.out.println(\"Es wurden \"+rowsDeleted+ \"Zeilen gelöscht\");\r\n\t\tstmt.close();\r\n\t}",
"void delete(int index) throws ListException;",
"int delete(Long id) throws SQLException, DAOException;",
"int deleteByPrimaryKey(String hash);",
"boolean delete(int value);",
"private void deleteRow(int selectedRow){\r\n BudgetSubAwardBean budgetSubAwardBean = (BudgetSubAwardBean)data.get(selectedRow);\r\n if(budgetSubAwardBean.getAcType() == null || budgetSubAwardBean.getAcType().equals(TypeConstants.UPDATE_RECORD)){\r\n budgetSubAwardBean.setAcType(TypeConstants.DELETE_RECORD);\r\n budgetSubAwardBean.setUpdateUser(userId);\r\n if(deletedData ==null) {\r\n deletedData = new ArrayList();\r\n }\r\n deletedData.add(budgetSubAwardBean);\r\n }\r\n data.remove(selectedRow);\r\n \r\n //If Last Row nothing to do\r\n //else Update Sub Award Number for rest of the Rows\r\n /*int size = data.size();\r\n if(selectedRow != size) {\r\n for(int index = selectedRow; index < size; index++) {\r\n budgetSubAwardBean = (BudgetSubAwardBean)data.get(index);\r\n budgetSubAwardBean.setSubAwardNumber(index + 1);\r\n if(budgetSubAwardBean.getAcType() == null) {\r\n budgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End For\r\n }//End If\r\n */\r\n \r\n subAwardBudgetTableModel.fireTableRowsDeleted(selectedRow, selectedRow);\r\n }",
"int deleteByPrimaryKey(StorageKey key);",
"@Override\n\tpublic void delete(String... args) throws SQLException {\n\t\t\n\t}",
"int deleteByPrimaryKey(Long id);",
"int deleteByPrimaryKey(Long id);",
"int deleteByPrimaryKey(Long id);",
"int deleteByPrimaryKey(Long id);",
"int deleteByPrimaryKey(Long id);",
"int deleteByPrimaryKey(Long id);"
] | [
"0.6847546",
"0.6774978",
"0.67226374",
"0.6661464",
"0.66263455",
"0.6525299",
"0.650678",
"0.642685",
"0.6387509",
"0.6370888",
"0.6368474",
"0.63339484",
"0.6328056",
"0.62111205",
"0.6206831",
"0.6195558",
"0.61873347",
"0.61863995",
"0.615474",
"0.6120856",
"0.6103511",
"0.6085153",
"0.60828114",
"0.6021473",
"0.60192645",
"0.6014807",
"0.5995575",
"0.5995575",
"0.5991227",
"0.5954405",
"0.5935403",
"0.5928996",
"0.59258604",
"0.5903159",
"0.5884441",
"0.58784616",
"0.58758426",
"0.5872962",
"0.5865992",
"0.58588356",
"0.58467823",
"0.5822816",
"0.582233",
"0.5809809",
"0.5804658",
"0.5803873",
"0.5803538",
"0.57943445",
"0.5793627",
"0.5780239",
"0.57792354",
"0.5776312",
"0.57712847",
"0.5757929",
"0.57563484",
"0.5751427",
"0.5751427",
"0.5739715",
"0.57382256",
"0.5732009",
"0.57290775",
"0.5728728",
"0.5723176",
"0.57229424",
"0.5720759",
"0.57110476",
"0.5705806",
"0.5703719",
"0.5700804",
"0.56970143",
"0.5696814",
"0.569623",
"0.5689565",
"0.5689565",
"0.56895405",
"0.56882066",
"0.5685914",
"0.568022",
"0.56785506",
"0.56763595",
"0.5673007",
"0.56707394",
"0.5667044",
"0.5665826",
"0.566161",
"0.56602407",
"0.5660008",
"0.5658447",
"0.5643525",
"0.56434363",
"0.5643292",
"0.56422514",
"0.5636499",
"0.563634",
"0.56275135",
"0.56275135",
"0.56275135",
"0.56275135",
"0.56275135",
"0.56275135"
] | 0.66970015 | 3 |
Delete all bookmarks from the db. Requeries the database. All bookmarks with become visited URLs or if never visited are removed | public void deleteAllRows() {
StringBuilder deleteIds = null;
StringBuilder convertIds = null;
for (mCursor.moveToFirst(); !mCursor.isAfterLast(); mCursor.moveToNext()) {
String url = mCursor.getString(Browser.HISTORY_PROJECTION_URL_INDEX);
WebIconDatabase.getInstance().releaseIconForPageUrl(url);
int id = mCursor.getInt(Browser.HISTORY_PROJECTION_ID_INDEX);
int numVisits = mCursor.getInt(Browser.HISTORY_PROJECTION_VISITS_INDEX);
if (0 == numVisits) {
if (deleteIds == null) {
deleteIds = new StringBuilder();
deleteIds.append("( ");
} else {
deleteIds.append(" OR ( ");
}
deleteIds.append(BookmarkColumns._ID);
deleteIds.append(" = ");
deleteIds.append(id);
deleteIds.append(" )");
} else {
// It is no longer a bookmark, but it is still a visited site.
if (convertIds == null) {
convertIds = new StringBuilder();
convertIds.append("( ");
} else {
convertIds.append(" OR ( ");
}
convertIds.append(BookmarkColumns._ID);
convertIds.append(" = ");
convertIds.append(id);
convertIds.append(" )");
}
}
if (deleteIds != null) {
mContentResolver.delete(Browser.BOOKMARKS_URI, deleteIds.toString(),
null);
}
if (convertIds != null) {
ContentValues values = new ContentValues();
values.put(Browser.BookmarkColumns.BOOKMARK, 0);
mContentResolver.update(Browser.BOOKMARKS_URI, values,
convertIds.toString(), null);
}
refreshList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NonNull\n Completable deleteAllBookmarks();",
"@Transactional\n\t@Override\n\tpublic void deleteAll() {\n\t\tanchorKeywordsDAO.deleteAll();\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\tdao.deleteAll();\n\n\t}",
"public void deleteAll()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tbookdao.openCurrentSessionwithTransation();\r\n\t\t\tbookdao.deleteAll();\r\n\t\t\tbookdao.closeSessionwithTransaction();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Transactional\r\n\tpublic void deleteAllBlogs() {\n\t\tsessionFactory.getCurrentSession().delete(getClass());\r\n\t}",
"public void deleteAll();",
"public void deleteAll();",
"public void deleteAll();",
"public static void deleteAll() throws RocksDBException {\n RocksIterator iter = db.newIterator();\n\n for (iter.seekToFirst(); iter.isValid(); iter.next()) {\n db.delete(iter.key());\n }\n\n iter.close();\n }",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void deleteAll() {\n\t\t\r\n\t}",
"public void deleteAssociationsForBookmark(int bookmarkId) {\n String sql = \"DELETE FROM tag_bookmark WHERE bookmarkID=?\";\n\n try (Connection conn = getConnection()) {\n PreparedStatement stmt = conn.prepareStatement(sql);\n stmt.setObject(1, bookmarkId);\n stmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void deleteAll(){\r\n\t\thead = null;\r\n\t}",
"public void deleteAll() {\n repository.deleteAll();\n }",
"void deleteAll();",
"void deleteAll();",
"void deleteAll();",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t\n\t}",
"@Override\n\tpublic long deleteAll() {\n\t\treturn deleteAll(false);\n\t}",
"private void deletedAllNewsFromDatabase() {\n new DeleteNewsAsyncTask(newsDao).execute();\n }",
"public void deleteAllFromDB() {\r\n for (int i = 0; i < uploads.size(); i++) {\r\n FileUtil.deleteFile(uploads.get(i).getFilepath());\r\n }\r\n super.getBasebo().remove(uploads);\r\n }",
"@Override\r\n\tpublic void deleteAll() {\n\r\n\t}",
"public void deleteAllPages() {\n cache.removeAll();\n final Set<Long> indexSet = getExistingBackFileIndexSet();\n this.deletePages(indexSet);\n if (logger.isDebugEnabled())\n logger.debug(\"All page files in dir \" + this.pageDir + \" have been deleted.\");\n }",
"public void deleteAll();",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"@Override\n\tpublic void deleteAll() {\n\n\t}",
"private void deleteAllBooks() {\n int booksDeleted = getContentResolver().delete(BookEntry.CONTENT_URI, null, null);\n Log.v(\"MainActivity\", booksDeleted + getString(R.string.all_deleted));\n }",
"public void deleteAll() {\n\t\t\n\t}",
"public void removerAllPontosTuristicosFavoritosBD() {\n this.db.delete(TABLE_NAME, null, null);\n }",
"protected void deleteAllTag() {\n\t\tReaderDataBase.deleteAll(this);\n\t}",
"@Override\r\n\t@Transactional\r\n\tpublic void deleteAll() {\n\t\ttopicContentDao.deleteAll();\r\n\t}",
"public void deleteAll() {\n new Thread(new DeleteAllRunnable(dao)).start();\n }",
"public void clearDatabase() {\n\n\t\tObjectSet<Article> articles = db.query(Article.class);\n\t\tarticles.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<CreditCard> creditCards = db.query(CreditCard.class);\n\t\tcreditCards.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Customer> customers = db.query(Customer.class);\n\t\tcustomers.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<Order> orders = db.query(Order.class);\n\t\torders.stream()\n\t\t\t.forEach(db::delete);\n\n\t\tObjectSet<OrderDetail> orderDetails = db.query(OrderDetail.class);\n\t\torderDetails.stream()\n\t\t\t.forEach(db::delete);\n\t\t\n\t\tSystem.out.println(\"\\nBase de dades esborrada per complet\");\n\t}",
"public void deleteAll() {\n\n\t}",
"public void clearDatabase() {\n new ExecutionEngine(this.database).execute(\"MATCH (n) OPTIONAL MATCH (n)-[r]-() DELETE r, n\");\n }",
"public void deleteAll()\n\t{\n\t}",
"public void deleteAll()\n\t{\n\t}",
"void deleteAll() throws Exception;",
"void deleteAll() throws Exception;",
"public void deleteFavorites() {\n mFavSQLiteDB.delete(FAVORITES_TABLE, null, null);\n }",
"public void deleteAllRequests() {\n try {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, null, null);\n db.execSQL(\"DROP TABLE IF EXISTS \" + TABLE_NAME);\n db.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public abstract void deleteAll();",
"public void deleteAllArticles();",
"@Override\n\tpublic void deleteAll() throws Exception {\n\t\t\n\t}",
"public void delete_database() {\n //deletes file and by doing so all the tables\n File file = new File(url);\n String path = \"..\" + File.separator + file.getPath();\n File file_path = new File(path);\n file_path.delete();\n }",
"public void deleteAll() {\n Session session = getSessionFactory().openSession();\n\n try {\n session.beginTransaction();\n Query query = session.createQuery(\"DELETE FROM Person \");\n query.executeUpdate();\n session.getTransaction().commit();\n LOGGER.log(Level.INFO,\"Successfully deleted all persons.\");\n }\n catch (Exception e){\n session.getTransaction().rollback();\n LOGGER.log(Level.INFO,\"Deletion of all persons failed\");\n }\n finally {\n session.close();\n }\n }",
"public void deleteAllData() {\n SQLiteDatabase db = getWritableDatabase();\n db.beginTransaction();\n try {\n db.delete(TABLE_HISTORY, null, null);\n db.delete(TABLE_LASTSCAN, null, null);\n db.delete(TABLE_SENSOR, null, null);\n db.delete(TABLE_SCANS, null, null);\n\n db.setTransactionSuccessful();\n } catch (Exception e) {\n\n } finally {\n db.endTransaction();\n }\n }",
"public void deleteHistory() {\n weatherRepo.deleteAll();\n }",
"public void deleteAllMappings() {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tdb.delete(TABLE_APP, null, null);\n\t\t\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\n\t}",
"private void deletePreviousContent()\n {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(DATABASE_TABLE_SINGLE_PAGE, null, null);\n db.close();\n }",
"@Override\n\tpublic int deleteAll() {\n\t\treturn super.deleteAll();\n\t}",
"private void deletes() {\n \tDBPeer.fetchTableRows();\n DBPeer.fetchTableIndexes();\n \n for (Delete delete: deletes) {\n \tdelete.init();\n }\n \n //DBPeer.updateTableIndexes(); //Set min max of indexes not implemented yet\n }",
"private void cleanDB() {\n // the database will contain a maximum of MAX_DB_SIZE wallpapers (default N=50)\n // when the db gets bigger then N, the oldest wallpapers are deleted from the database\n // the user will set if he wants to delete also the wallpaper or the database entry only\n if (maxDbSize != -1 && getOldWallpapersID().size() > maxDbSize) {\n try (ResultSet rs = db.executeQuery(\"SELECT wp FROM WALLPAPERS ORDER BY date FETCH FIRST 20 PERCENT ROWS ONLY\")) {\n while (!keepWallpapers && rs.next()) {\n Wallpaper wp = (Wallpaper) rs.getObject(\"wp\");\n log.log(Level.FINEST, wp::toString);\n log.log(Level.FINE, () -> \"Cleaning of DB, removing \" + wp.getID());\n\n new File(wp.getPath()).delete();\n }\n db.executeUpdate(\"DELETE FROM WALLPAPERS WHERE id IN (SELECT id FROM WALLPAPERS ORDER BY date fetch FIRST 20 PERCENT rows only)\");\n\n } catch (SQLException throwables) {\n log.log(Level.WARNING, \"Query Error in cleanDB()\");\n log.log(Level.FINEST, throwables.getMessage());\n }\n }\n }",
"private void cleanCollectedLinks() {\n for (Iterator itr = visitedLinks.iterator(); itr.hasNext(); ) {\n String thisURL = (String) itr.next();\n if (urlInLinkedList(NetworkUtils.makeURL(thisURL), collectedLinks)) {\n collectedLinks.remove(thisURL.toString());\n// Log.v(\"DLasync.cleanCollected\", \" from CollectedLinks, just cleaned: \" + thisURL);\n// Log.v(\".cleanCollected\", \" collected set is now:\" + collectedLinks.toString());\n }\n }\n\n }",
"public void deleteAll(){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"delete from \" + TABLE_NAME);\n }",
"private void deleteAllBooks(){\n int rowsDeleted = getContentResolver().delete(BookContract.BookEntry.CONTENT_URI, null, null);\n Log.v(\"MainActivity\", rowsDeleted + \" rows deleted from database\");\n }",
"public void deleteBookmark (long bookmarkId) throws BookMarkException;",
"public boolean deleteAllPosts () throws SQLException{\n boolean areDeleted;\n database = dbH.getReadableDatabase();\n dbH.openDataBase();\n areDeleted= database.delete(\"Post\", null, null)>0;\n\n dbH.close();\n return areDeleted;\n\n }",
"public void removeAll() {\n db.delete(TABLE_NAME, null, null);\n Log.d(\"deleteHistoryCS\", \"Remove All HistoryCS\");\n }",
"public void deleteAll() {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME , null , null);\n }",
"public void untagBookmarks(int tagId, int[] bookmarkIds){\n String sql = \"DELETE FROM tag_bookmarks WHERE tagId=? AND bookmarkId IN ?\";\n\n try(Connection conn = getConnection()) {\n PreparedStatement stmt = conn.prepareStatement(sql);\n stmt.setObject(1, tagId);\n stmt.setObject(2, bookmarkIds);\n stmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"int deleteAll();",
"public void deleteAllBookMarksOfFolder (long folderId) throws BookMarkException;",
"public void deleteAll() {\n\t\ttry{\t\n\t\t\tbanco.delete(meuBancoHelper.TABELA_MTAG,null,null);\n\t\t\t}\n\t\t\tcatch(NullPointerException e)\n\t\t\t{\n\t\t\t\t\n\t\t\t}\n\t}",
"@Override\r\n\tpublic void deleteAllInBatch() {\n\t\t\r\n\t}",
"public void deleteallWishlist() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_WISHLIST);\n db.close();\n }",
"public void deleteAll() {\n\t\t mongoTemplate.remove(new Query(), COLLECTION);\n\t}",
"@Override\n\tpublic boolean deleteAll() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean deleteAll() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean deleteAll() {\n\t\treturn false;\n\t}",
"public void deleteAll() {\n try (Connection connection = dataSource.getConnection();\n Statement statement = connection.createStatement()) {\n statement.execute(INIT.DELETE_ALL.toString());\n } catch (SQLException e) {\n logger.error(e.getMessage(), e);\n }\n }",
"@Atomic\n\tpublic void delete(){\n\t\tfor(User u: getUserSet()){\n\t\t\tu.delete();\n\t\t}\n\t\tfor(Session s: getSessionSet()){\n\t\t\ts.delete();\n\t\t}\n\t\tsetRoot(null);\n\t\tdeleteDomainObject();\n\t}",
"public synchronized void deleteNow() {\n for (FileNode node : delete) {\n tryDelete(node);\n }\n delete.clear();\n }",
"public void delete() {\r\n\t\tfor (int i = 0; i <= DatabaseUniverse.getDatabaseNumber(); i++) {\r\n\t\t\tif (this.equals(DatabaseUniverse.getDatabases(i))) {\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().set(i, null);\r\n\t\t\t\tDatabaseUniverse.getAllDatabases().remove(i);\r\n\t\t\t\tDatabaseUniverse.setDatabaseNumber(-1);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void clearDatabase() {\n\t\tstudentRepository.deleteAll();\n\t}",
"@Override\n\tpublic int deleteAll() {\n\t\treturn SApplicationcategorydao.executeHql(\"delete from \"+tablename);\n\t}",
"public void deleteAll(UUID accId) {\n txMgr.doInTransaction(() -> {\n Set<UUID> notebooksIds = datasourcesIdx.delete(accId);\n\n datasourceTbl.deleteAll(notebooksIds);\n });\n }",
"public void deleteAll() throws SQLException {\n\t\tfinal String sql = \"DELETE FROM \" + table_name;\n\t\tPreparedStatement statement = null;\n\n\t\ttry {\n\t\t\tfinal Connection connection = _database.getConnection();\n\t\t\tstatement = connection.prepareStatement(sql);\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tfinal int rowcount = update(statement);\n\t\t} finally {\n\t\t\tif (statement != null) {\n\t\t\t\tstatement.close();\n\t\t\t}\n\t\t}\n\t}",
"public void deleteBookmark(String key) {\n bookmarks.remove(key);\n }",
"@Override\n public Set<URI> deleteAll(String keyword) {\n List<Document> searchDocs = searchDocuments(keyword);\n HashSet<URI> uriSet = new HashSet<URI>(); \n CommandSet cSet = new CommandSet<>();\n for (Document d: searchDocs) {\n Function<URI, Boolean> func = docURI -> {\n boolean lambdaReturnValue = true;\n DocumentImpl doc = (DocumentImpl) d;\n if (doc == null) {\n lambdaReturnValue = false;\n }\n hashTable.put(docURI, doc);\n setWordCountOfDoc(doc);\n return lambdaReturnValue;\n };\n uriSet.add(d.getKey());\n GenericCommand cmd = new GenericCommand(d.getKey(), func);\n cSet.addCommand(cmd);\n }\n docTrie.deleteAll(keyword);\n cmdStack.push(cSet);\n \n\n return uriSet;\n }",
"private void cleanDatabase() {\n\t\tContentResolver cr = mContext.getContentResolver();\n\n\t\tCursor c = cr.query(\n\t\t\t\tConstantPasser.Favorites.CONTENT_URI_NO_NOTIFICATION,\n\t\t\t\tnew String[] { ConstantPasser.Favorites.APPWIDGET_ID }, null,\n\t\t\t\tnull, null);\n\t\ttry {\n\t\t\tAppWidgetHost widgetHost = ((XLauncher) mContext).getAppWidgetHost();\n\t\t\tint index = c.getColumnIndex(ConstantPasser.Favorites.APPWIDGET_ID);\n\t\t\twhile (c.moveToNext()) {\n\t\t\t\tint widgetId = c.getInt(index);\n\t\t\t\tif (Debug.MAIN_DEBUG_SWITCH){\n\t\t\t\t\tR2.echo(\"Invalid widget id : \" + widgetId);\n\t\t\t\t}\n\t\t\t\twidgetHost.deleteAppWidgetId(widgetId);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t} finally {\n\t\t\tif (c != null){\n\t\t\t\tc.close();\n\t\t\t}\n\t\t}\n\n\t\t// clean and do not notify\n\n\t\tif (enableState.enableFolder || enableState.enableQuickEntries\n\t\t\t\t|| enableState.enableWidgets){\n\t\t\tcr.delete(ConstantPasser.Favorites.CONTENT_URI_NO_NOTIFICATION,\n\t\t\t\t\tnull, null);\n\t\t}\n\n\t\tif (enableState.enablePriorities){\n\t\t\tcr.delete(ConstantPasser.Applications.CONTENT_URI, null, null);\n\t\t}\n\n\t\t/* RK_ID: RK_THEME .AUT: zhanggx1 . DATE: 2012-03-31 . S */\n\t\tSettings.System.putString(cr, SettingsValue.KEY_SET_THEME, null);\n\t\t/* RK_ID: RK_THEME .AUT: zhanggx1 . DATE: 2012-03-31 . E */\n\t}",
"@Override\n\t@Transactional\n\tpublic void deleteAllRoutes() {\n\t\trouteDAO.deleteAllRoutes();\t\t\n\t}",
"public void untagBookmarks(int[] tagIds, int[] bookmarkIds) {\n String sql = \"DELETE FROM tag_bookmarks WHERE tagId IN ? AND bookmarkId IN ?\";\n\n try(Connection conn = getConnection()) {\n PreparedStatement stmt = conn.prepareStatement(sql);\n stmt.setObject(1, tagIds);\n stmt.setObject(2, bookmarkIds);\n stmt.executeUpdate();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void deleteAll() throws Exception {\n\t\topcionRepository.deleteAll();\n\t}",
"@Override\n\tpublic void deleteAll() {\n\t\t List<User> userList = selectAllUser();\n\t\t for (User user : userList) {\n\t\t\tuserMapper.deleteUser(user.getId());\n\t\t}\n\t}",
"private void removeFromFavorites() {\n int rowsDeleted;\n\n if (mCurrentMovieUri != null) {\n rowsDeleted = getContentResolver().delete(\n mCurrentMovieUri,\n null,\n null);\n }\n }",
"@Override\r\n\tpublic boolean deleteAll() throws Exception {\n\t\treturn tableDao.deleteAll();\r\n\t}",
"@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}",
"@Override\n\tpublic void deleteAllInBatch() {\n\t\t\n\t}",
"@Override\n\tpublic void delete(DatabaseHandler db) {\n\t\tdb.deleteWork(this);\n\t\t\n\t}"
] | [
"0.6770624",
"0.6663627",
"0.64626986",
"0.64561194",
"0.6337642",
"0.6331788",
"0.6331788",
"0.6331788",
"0.6274906",
"0.62567145",
"0.62567145",
"0.62567145",
"0.62567145",
"0.62512726",
"0.6237894",
"0.6156626",
"0.6114424",
"0.6114424",
"0.6114424",
"0.61100364",
"0.61100364",
"0.61100364",
"0.61100364",
"0.61100364",
"0.61100364",
"0.61100364",
"0.61100364",
"0.6103816",
"0.61020124",
"0.6096833",
"0.6089295",
"0.60742694",
"0.6060984",
"0.6051828",
"0.6051828",
"0.6051828",
"0.6044649",
"0.6039979",
"0.60241723",
"0.60198337",
"0.6001769",
"0.59910065",
"0.5936603",
"0.5920493",
"0.59184015",
"0.591694",
"0.591694",
"0.5901374",
"0.5901374",
"0.5853424",
"0.58454216",
"0.5831273",
"0.5828505",
"0.58266443",
"0.5826479",
"0.58137864",
"0.58073306",
"0.57840735",
"0.5771963",
"0.5746418",
"0.57429826",
"0.57371265",
"0.5735806",
"0.57300895",
"0.5719566",
"0.5718155",
"0.5716838",
"0.57156146",
"0.57155305",
"0.57105875",
"0.56786174",
"0.5677801",
"0.56729865",
"0.56512827",
"0.5648078",
"0.56456095",
"0.5630379",
"0.5627722",
"0.5627722",
"0.5627722",
"0.5621892",
"0.5615657",
"0.56068665",
"0.5595746",
"0.55885935",
"0.5580941",
"0.55763274",
"0.5571238",
"0.5563786",
"0.5556806",
"0.55405396",
"0.5540264",
"0.5528881",
"0.552849",
"0.55157775",
"0.55149704",
"0.54972434",
"0.5491713",
"0.5491713",
"0.5485801"
] | 0.7438835 | 0 |
Refresh list to recognize a change in the database. | public void refreshList() {
mCursor.requery();
mCount = mCursor.getCount() + mExtraOffset;
notifyDataSetChanged();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void refreshList() {\n }",
"public void reload(){\n populateList();\n }",
"private void refreshList() {\n if (loadStepsTask != null) {\n loadStepsTask.cancel(false);\n }\n loadStepsTask = new LoadStepsTask(this, dbManager);\n loadStepsTask.execute();\n }",
"@Override\n public void refreshList(ArrayList<String> newList){\n }",
"public static void reload() {\n try {\n lstEvents = getEventFromDB();\n } catch (SQLException ex) {\n mLog.error(ex.getMessage(), ex);\n }\n }",
"private void updateList() {\n Model.instace.getAllArticles(new ArticleFirebase.GetAllArticlesAndObserveCallback() {\n @Override\n public void onComplete(List<Article> list) {\n data.clear();\n data = list;\n adapter.notifyDataSetChanged();\n }\n\n @Override\n public void onCancel() {\n\n }\n });\n }",
"private void refreshList() {\n List<PullRequest> storedPullRequests = mDataManager.getPullRequests();\n\n mPullRequests.clear();\n\n for (PullRequest pullRequest : storedPullRequests) {\n mPullRequests.add(pullRequest);\n }\n\n mAdapter.notifyDataSetChanged();\n\n mDialog.dismiss();\n }",
"private void refresh() {\n ArrayList<Note> notes = db.getAllNotes();\n ArrayList<Note> notesWithNotification = new ArrayList<Note>();\n\n for (int index = 0; index < notes.size(); index++) {\n if (notes.get(index).getNotification() != null) {\n notesWithNotification.add(notes.get(index));\n }\n }\n\n mNoteWithNotificationList = notesWithNotification;\n }",
"private void refreshListView() {\n model.updateAllFilteredLists(history.getPrevKeywords(), history.getPrevStartDate(),\n history.getPrevEndDate(), history.getPrevState(),\n history.getPrevSearches());\n }",
"public void refreshLists() {\n refreshCitizenList();\n refreshPlayerList();\n }",
"private void refreshList() {\n\n Requester.getInstance().cancelPendingRequests(BrowseCoursesNew.TAG);\n mWishListAdapter.clearData();\n\n refreshView();\n\n wishCourses = new WishCourses(mHandler);\n wishCourses.sendWishlistCoursesRequest();\n }",
"public void refresh(Collection<Refreshable> alreadyRefreshed) {\n\t\t\r\n\t}",
"@Override\n\tpublic void refreshData(){\n\t\tpageNum = 1;\n\t\tlist.clear();\n\t\tloadData();\n\t}",
"@Override\n\tpublic void onRefresh() {\n\t\tpage = 1;\n\t\tSystem.out.println(\"onRefresh1\");\n\t\tmyList.clear();\n\t\tSystem.out.println(\"onRefresh2\");\n\t\tgetData();\n\t}",
"public void refresh() {\n }",
"public void reload() {\n log.debug(\"Reloading bicycles after update to table\");\n try{\n bicycles.clear();\n bicycles.addAll(bicycleManager.findAllBicycles());\n checkAvail();\n fireTableDataChanged();\n }catch(ServiceFailureException ex){\n log.error(\"SFE reloading bicycles after update\");\n throw new ServiceFailureException(ex);\n }catch(IllegalArgumentException ex){\n log.error(\"IAE reloading bicycles\");\n }\n }",
"public void refreshList()\n {\n final ArrayAdapter adapter = (ArrayAdapter)this.foodListAdapter;\n this.getActivity().runOnUiThread(new Runnable() {\n public void run() {\n adapter.notifyDataSetChanged();\n }\n });\n }",
"public void reload() {\n waiterNotifications.clear();\n waiterNotifications.addAll(Local.getInstance().getWaiterNotificationList());\n notifyDataSetChanged();\n\n }",
"public void refresh()\n {\n refresh( null );\n }",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"public void refresh();",
"protected void refresh() {\n\t}",
"public void refresh(List<T> list) {\n this.items = list;\n notifyDataSetChanged();\n }",
"@Override\n public void refresh() {\n }",
"private void refreshList () {\n List<DisplayedUserCommand> list = new ArrayList<DisplayedUserCommand>();\n for (DisplayedUserCommand command : myUserDefinedCommandsList) {\n list.add(command);\n }\n myUserDefinedCommandsList.clear();\n myUserDefinedCommandsList.addAll(list);\n }",
"public void reloadData() {\n\t\tinitializeStormData();\n\t\tsuper.reloadData();\n\t}",
"@Override\n\tpublic void refresh() {\n\n\t}",
"public void refreshData() {\r\n\t\tfireTableDataChanged();\r\n\t\tgetTable().tableChanged(new TableModelEvent(this));\r\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"private void refreshData() {\n\r\n\t SfJdRecordFileModel model = (SfJdRecordFileModel) listCursor.getCurrentObject();\r\n\r\n\t if (model != null && !\"\".equals(ZcUtil.safeString(model.getModelId()))) {//列表页面双击进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_BROWSE;\r\n\r\n\t model = getModel(model.getModelId());\r\n\t listCursor.setCurrentObject(model);\r\n\t this.setEditingObject(model);\r\n\t } else {//新增按钮进入\r\n\r\n\t this.pageStatus = ZcSettingConstants.PAGE_STATUS_NEW;\r\n\r\n\t model = new SfJdRecordFileModel();\r\n\t \r\n\t setDefaultValue(model);\r\n\r\n\t listCursor.getDataList().add(model);\r\n\r\n\t listCursor.setCurrentObject(model);\r\n\r\n\t this.setEditingObject(model);\r\n\r\n\t }\r\n\r\n\t refreshSubData();\r\n\t \r\n\t setOldObject();\r\n\r\n\t setButtonStatus();\r\n\r\n\t updateFieldEditorsEditable();\r\n\r\n\t }",
"@Override\r\n public void refresh(@NotNull final Project project) {\n ChangeListManager.getInstance(project).ensureUpToDate(true);\r\n }",
"private List<String> needRefresh(){\n\t\treturn null;\n\t}",
"@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }",
"private void refreshList() {\n\t\tfor (int i = 0; i < service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).size(); i++) {\n\t\t\ttimesheetRowList.add(service.getAllTimesheetRows(currentTimesheet.getTimesheetId()).get(i));\n\t\t}\n\t\ttimesheetRowList.add(new TimesheetRow(currentTimesheet.getTimesheetId()));\n\t}",
"@Override\n public void refreshDataEntries() {\n }",
"public void refreshAll() {\n}",
"public void refreshDataSource(ArrayList<Restroom> newSource){\n\t\tRestroomList = newSource;\n\t\tnotifyDataSetChanged();\n\t}",
"public void refresh(){\n\n data2.clear();\n data2=getActionsList(\"\");\n //actionsAdapter=new ActionsAdapter(data2,getContext());\n //myList.setAdapter(actionsAdapter);\n //actionsAdapter.notifyDataSetChanged();\n }",
"public void refreshListView() {\n \n \tLog.i(\"refresh list view\", \"Enter\");\n \ttry {\n \t\tif(taskListCursor != null) {\n\t \t\ttaskListCursor.close();\n\t \t\ttaskListCursor = null;\n \t\t}\n FileDbAdapter fda = new FileDbAdapter();\n fda.open();\n \t\ttaskListCursor = fda.fetchTasksForSource(getSource(), true);\n \tfda.close();\n \t} catch (Exception e) {\n \t\te.printStackTrace(); \t// TODO handle exception\n \t}\n \ttasks.changeCursor(taskListCursor);\n \tstartManagingCursor(taskListCursor);\n \ttasks.notifyDataSetChanged();\n\n }",
"@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }",
"public void refreshListView() {\n if (recyclerViewAdapter != null) {\n recyclerViewAdapter.notifyDataSetChanged();\n }\n }",
"@Transactional(readOnly = true)\n\tpublic void refresh() {\n\t\tswitch (actualView) {\n\t\tcase LIST:\n\t\t\trefreshList();\n\t\t\tbreak;\n\t\tcase EDIT:\n\t\t\t// refreshForm(); // TODO\n\t\t\tbreak;\n\t\t}\n\t}",
"Snapshot refresh();",
"private void refreshList(Context context) {\n if (mListManipulator.isListUpdated()) {\n mListManipulator.saveShownListState(context);\n }\n // Start service to refresh app\n Intent serviceIntent = new Intent(getActivity(), MainService.class);\n serviceIntent.setAction(Constants.ACTION_APP_REFRESH);\n getActivity().startService(serviceIntent);\n }",
"@Override\n public void onRefresh() {\n loadData();\n }",
"@Override\r\n\tpublic void refresh(boolean keepChanges) throws RepositoryException {\n\t\t\r\n\t}",
"public void update(){\r\n\t\tthis.loadRecords();\r\n\t}",
"@Override\n public void onRefresh() {\n refreshData();\n }",
"protected void refresh()\n {\n refresh(System.currentTimeMillis());\n }",
"public void refreshFnkt() {\r\n\t\ttransactionList = refreshTransactions();\r\n\t\tfillTable();\r\n\t}",
"private void refresh(){\r\n if (!clientList.isEmpty()){\r\n clientList.clear();\r\n clientList = FXCollections.observableArrayList(Client.clientList());\r\n } \r\n table.setItems(clientList);\r\n }",
"@SuppressWarnings(\"serial\")\n\t@Test\n\tpublic void updateCollection() {\n\t\tdb.close();\n\t\tEmbeddedConfiguration config = Db4oEmbedded.newConfiguration();\n\t\tconfig.common().objectClass(Car.class).cascadeOnUpdate(true);\n\t\tdb = Db4oEmbedded.openFile(config, DB4OFILENAME);\n\t\tObjectSet<Car> results = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\tAssert.assertTrue(results.hasNext());\n\n\t\tCar car = results.next();\n\n\t\tcar.getHistory().remove(0);\n\t\tdb.store(car.getHistory());\n\t\tresults = db.query(new Predicate<Car>() {\n\t\t\tpublic boolean match(Car candidate) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t});\n\n\t\twhile (results.hasNext()) {\n\t\t\tcar = results.next();\n\t\t\tfor (int idx = 0; idx < car.getHistory().size(); idx++) {\n\t\t\t\tSystem.out.println(car.getHistory().get(idx));\n\t\t\t}\n\t\t}\n\n\t}",
"@Override\n public void onRefresh() {\n load_remote_data();\n }",
"public void refreshData(){ \n \t\tif(!mIsFirstRun){\n \t if(mDb == null) mDb = new Sqlite(this.getContext());\n \t if(!mDb.isOpen()) mDb.openRead();\n \t \n \t\t\tgetLoaderManager().restartLoader(0,null,this);\n \t\t}else mIsFirstRun = false;\n \t}",
"public void refresh() {\n getIndexOperations().refresh();\n }",
"@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\tcurPage = 1;\n\t\t\t\tmList.clear();\n\t\t\t\tJiaoYiJiLuExec.getInstance().getTiXianJiLuList(mHandler,\n\t\t\t\t\t\tManagerUtils.getInstance().yjtc.getId(), curPage,\n\t\t\t\t\t\tpageSize, NetworkAsyncCommonDefines.GET_TXJL_LIST_S,\n\t\t\t\t\t\tNetworkAsyncCommonDefines.GET_TXJL_LIST_F);\n\t\t\t}",
"private void refreshList() {\n ArrayAdapter<Plan> planAdapter = new PlanAdapter();\n mListView.setAdapter(planAdapter);\n\n }",
"private void updateList() {\r\n\t\tlistaStaff.setItems(FXCollections.observableArrayList(service\r\n\t\t\t\t.getStaff()));\r\n\t}",
"public void refresh() {\n\t\tgetTableViewer().refresh();\n\t}",
"protected void refreshFromRepository() {\n\t\t\r\n\t\tObject[] elements = new Object[]{};\r\n\t\tmodelObject.eContainer();\r\n\t\t\r\n\t\tif (fFilteredList != null) {\r\n\t\t\t\r\n\t\t\tfFilteredList.setAllowDuplicates(showDuplicates);\r\n\t\t\tfFilteredList.setElements(elements);\r\n\t\t\tfFilteredList.setEnabled(true);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif (fTreeViewer != null) {\r\n\t\t\tfTreeViewer.setInput(null);\r\n\t\t}\t\t\r\n\t}",
"public void update() {\n\t\trl = DBManager.getReservationList();\n\t}",
"public void refresh() {\n\n realm.refresh();\n }",
"public void refresh() {\n\n realm.refresh();\n }",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"void refresh();",
"synchronized void refresh() {\n\n\t\t// We must not call fireTableDataChanged, because that would clear the\n\t\t// selection in the task window\n\t\tfireTableRowsUpdated(0, size - 1);\n\n\t}",
"@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }",
"public void refreshListAdapter() {\n adapter.setListContent(requests);\n //We in turn set the adapter to the RecyclerView\n recyclerView.setAdapter(adapter);\n }",
"private void refreshListView() {\n\t\tSQLiteDatabase db = dbh.getReadableDatabase();\n\t\tsharedListView.setAdapter(null);\n\t\tCursor c1 = db.rawQuery(\"SELECT _id, title, subtitle, content, author, otheruser FROM todos WHERE otheruser = '\" + author + \"'\", null);\n\t\tListAdapter adapter2 = new SimpleCursorAdapter(this, R.layout.activity_items, c1, from, to, 0);\n\t\tsharedListView.setAdapter(adapter2);\n\t\tadapter.notifyDataSetChanged();\n\t}",
"public abstract void refresh();",
"public abstract void refresh();",
"public abstract void refresh();",
"public void refreshList() {\n PartDAO partDAO = new PartDAO();\n for (Part p : partDAO.getAll()) {\n if (p.getStockLevel() > 0) {\n Label partLabel = new Label(\"ID: \" + p.getPartID() + \" / Name: \" + p.getName() + \" / Stock: \" + p.getStockLevel());\n partHashMap.put(partLabel.getText(), p);\n partList.getItems().add(partLabel);\n }\n }\n Customer customer = new Customer();\n CustomerDAO customerDAO = new CustomerDAO();\n for(Customer c: customerDAO.getAll()) {\n if(jobReference.getJob().getCustomerID() == Integer.parseInt(c.getCustomerID())) {\n customer.setFirstName(c.getFirstName());\n customer.setLastName(c.getLastName());\n break;\n }\n }\n if(jobReference.getJob().getRegistrationID() == null) {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Part-only job\");\n }\n else {\n jobDetailsLbl.setText(\"Date: \" + jobReference.getJob().getDateBookedIn() + \" / Name: \" + customer.getFirstName() + \" \" + customer.getLastName() + \" / Car ID: \" + jobReference.getJob().getRegistrationID());\n }\n stockUsedField.setText(\"1\");\n }",
"@Override\n\tpublic void refresh() {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// Create local copy so table not backed by map ensuring thread\n\t\t\t\t// safety. This is done as an alternative to locking customers\n\t\t\t\t// whilst refreshing due to the reduced time the lock is required.\n\t\t\t\tCollection<Customer> customers;\n\t\t\t\tsynchronized (model.customers) {\n\t\t\t\t\t// Convert collection of values to set so serialisable\n\t\t\t\t\tfinal Set<Customer> modelCustomers = new HashSet<>(model.customers.values());\n\t\t\t\t\t// Cast safe due to known functionality of deep clone\n\t\t\t\t\tcustomers = (Collection<Customer>) SerializationUtils.deepClone(modelCustomers);\n\t\t\t\t}\n\t\t\t\t// Refresh using local copy\n\t\t\t\trefreshTable(new ArrayList<>(customers));\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void onRefresh() {\n reloadList();\n swipeContainer.setRefreshing(true);\n\n }",
"public void update (List<Dependency> list)\n {\n this.list.clear();\n this.list.addAll(list);\n notifyDataSetChanged();\n }",
"abstract void refresh();",
"public void refresh(List<DataFeed> newData) {\n clear();\n addAll(newData);\n notifyDataSetChanged();\n }",
"public abstract void refreshing();",
"public void refresh() {\n stopLoading = false;\n Place.loadMultiple(getActivity(), 0, LIST_INITIAL_LOAD, filterParams, false, new Place.onMultipleDownloadedListener() {\n @Override\n public void onDownloaded(List<Place> places) {\n setPlaces(places);\n\n }\n });\n }",
"void refresh() {\n List<IDevice> list = Lists.newArrayList();\n// if (fan == null) {\n// ToastUtils.showShort(R.string.dev_invalid_error);\n// } else {\n// list.add(fan);\n// if (stove != null) {\n// list.add(stove);\n// }\n// }\n list = Plat.deviceService.queryDevices();\n adapter.loadData(list);\n }",
"@FXML\n private void handleRefresh(ActionEvent event) {\n observableListBook.clear();\n localData();\n }",
"public void expensesRefresh() {\n expensesListData.clear();\n DBList.expenses(key1OfActiveChallenge, expensesListAdapter, expensesListData);\n }",
"protected void refreshAll() {\n refreshProperties();\n\t}",
"private synchronized void refresh() {\n \t\t\tlastChangeStamp = changeStamp;\n \t\t\tlastFeaturesChangeStamp = featuresChangeStamp;\n \t\t\tlastPluginsChangeStamp = pluginsChangeStamp;\n \t\t\tchangeStampIsValid = false;\n \t\t\tfeaturesChangeStampIsValid = false;\n \t\t\tpluginsChangeStampIsValid = false;\n \t\t\tfeatures = null;\n \t\t\tplugins = null;\n \t\t}",
"public interface RefreshList {\n\n void refresh();\n}",
"public void refresh()\n\t{\n\t\tLogger.debug(\"Updating executors table\", Level.GUI, this);\n\t\tm_executorsTable.refreshAll();\n\t\tupdateButtons();\n\t}",
"public void reload();",
"@Override\n public void onRefresh() {\n // INIT: fetch recipes conforming to query\n // recipeImport task populates the list on completion\n if (DEV) {\n a.clear();\n a.add(new Recipe(a, \"Recipe API turned off\", 0));\n swipe.setRefreshing(false);\n } else {\n new recipeImport().execute(query);\n }\n }",
"public void refresh() {\r\n\t\tinit();\r\n\t}",
"@Override\n public void onRefresh() {\n getGroupList();\n }"
] | [
"0.7798432",
"0.77070326",
"0.73630536",
"0.72651756",
"0.7222413",
"0.71428436",
"0.6986079",
"0.69658893",
"0.6898079",
"0.6855831",
"0.6802371",
"0.6774958",
"0.6760501",
"0.67529947",
"0.6743131",
"0.6731542",
"0.66961676",
"0.66606766",
"0.66427755",
"0.66370916",
"0.66370916",
"0.66370916",
"0.66370916",
"0.66370916",
"0.66370916",
"0.66370916",
"0.6634769",
"0.6632653",
"0.66185576",
"0.65949595",
"0.6567004",
"0.6556106",
"0.6553713",
"0.6535723",
"0.6535723",
"0.6532415",
"0.65290964",
"0.6523023",
"0.651014",
"0.6506189",
"0.6490624",
"0.6489765",
"0.6473908",
"0.6473445",
"0.6470699",
"0.6463369",
"0.6445066",
"0.6426107",
"0.64084613",
"0.6398685",
"0.63751656",
"0.6372076",
"0.636241",
"0.63589364",
"0.63524914",
"0.63452196",
"0.63235736",
"0.63200796",
"0.63132125",
"0.63026637",
"0.62987274",
"0.62960434",
"0.6294148",
"0.6287702",
"0.628628",
"0.62784153",
"0.6276495",
"0.62746733",
"0.62746733",
"0.62723625",
"0.62723625",
"0.62723625",
"0.62723625",
"0.62723625",
"0.6271985",
"0.62687826",
"0.6258341",
"0.6254705",
"0.6251725",
"0.6251725",
"0.6251725",
"0.62468654",
"0.62467897",
"0.6241259",
"0.62328",
"0.6229027",
"0.62248224",
"0.622439",
"0.62209564",
"0.6206136",
"0.62042314",
"0.6197277",
"0.61955065",
"0.6187568",
"0.6184201",
"0.6181983",
"0.6175326",
"0.61735404",
"0.6171981",
"0.6166149"
] | 0.7213283 | 5 |
Update the bookmark's favicon. This is a convenience method for updating a bookmark favicon for the originalUrl and url of the passed in WebView. | static void updateBookmarkFavicon(ContentResolver cr,
String originalUrl, String url, Bitmap favicon) {
final Cursor c = queryBookmarksForUrl(cr, originalUrl, url, true);
if (c == null) {
return;
}
boolean succeed = c.moveToFirst();
ContentValues values = null;
while (succeed) {
if (values == null) {
final ByteArrayOutputStream os = new ByteArrayOutputStream();
favicon.compress(Bitmap.CompressFormat.PNG, 100, os);
values = new ContentValues();
values.put(Browser.BookmarkColumns.FAVICON, os.toByteArray());
}
cr.update(ContentUris.withAppendedId(Browser.BOOKMARKS_URI, c
.getInt(0)), values, null, null);
succeed = c.moveToNext();
}
c.close();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@JsonProperty(\"favicon_url\")\n public void setFaviconUrl(String faviconUrl) {\n this.faviconUrl = faviconUrl;\n }",
"com.google.protobuf.ByteString getFavicon();",
"@Override\n public void onPageStarted (WebView view, String url, Bitmap favicon)\n {\n }",
"@Override\n public void onPageStarted(android.webkit.WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\r\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t}",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\n\t\t\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n\n }",
"@Override\r\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\r\n\t\t\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"onPageStarted\");\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}",
"@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}",
"@Override\n\t public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t super.onPageStarted(view, url, favicon);\n\t }",
"public Bitmap getFavicon(int position) {\n return getBitmap(Browser.HISTORY_PROJECTION_FAVICON_INDEX, position);\n }",
"@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon)\n\t{\n\t\tsuper.onPageStarted(view, url, favicon);\n\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n loadingFinished = false;\n try {\n String hash = new URI(url).getFragment();\n int index = hash.indexOf(\"=\");\n String sub = hash.substring(index+1);\n sharedPreferenceUtil.setAcessToken(sub);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }catch (NullPointerException e) {\n e.printStackTrace();\n }\n }",
"public void showCurrentFavicon(Tab tab) {\n int color;\n if (tab == null) { return; }\n\n if (tab.inForeground()) {\n if (tab.hasFavicon()) {\n color = ColorUtils.getDominantColorForBitmap(tab.getFavicon());\n updateSiteIconColor(tab.getUrl(), color);\n setStatusAndNavigationBarColor(mUiController.getActivity(),\n adjustColor(color, 1, 1, 0.7f));\n\n } else {\n color = getSiteIconColor(tab.getUrl());\n if (color != 0) {\n setStatusAndNavigationBarColor(mUiController.getActivity(),\n adjustColor(color, 1, 1, 0.7f));\n } else {\n setStatusAndNavigationBarColor(mUiController.getActivity(),\n mDefaultStatusBarColor);\n }\n }\n if (mFaviconTile != null) {\n mFaviconTile.replaceFavicon(tab.getFavicon()); // Always set the tab's favicon\n }\n }\n }",
"@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\tLog.d(TAG, \"on page started\");\t\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t}",
"@ZAttr(id=800)\n public void setSkinFavicon(String zimbraSkinFavicon) throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinFavicon, zimbraSkinFavicon);\n getProvisioning().modifyAttrs(this, attrs);\n }",
"@Override\n\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\tprogressbar.setVisibility(View.VISIBLE);\n\n\t\t}",
"@ZAttr(id=800)\n public Map<String,Object> setSkinFavicon(String zimbraSkinFavicon, Map<String,Object> attrs) {\n if (attrs == null) attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinFavicon, zimbraSkinFavicon);\n return attrs;\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n final String onPageStartedUrl = url;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n onSendUpdate(\"Initiating page: \" + onPageStartedUrl);\n }\n });\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tmDialog.findViewById(R.id.rl).setVisibility(View.VISIBLE);\n\t\t\t\t// mDialog.findViewById(R.id.rl).startAnimation(AnimationUtils.loadAnimation(mActivity, android.R.anim.fade_in));\n\t\t\t\tLogger.e(DialogNotifyUpdate.class.getSimpleName() + \": \" + url);\n\t\t\t\tif (url.contains(\"openbrowser=1\")) {\n\t\t\t\t\tIntent intent = new Intent(Intent.ACTION_VIEW, \n\t\t\t\t\t\t\tUri.parse(url));\n\t\t\t\t\tmActivity.startActivity(intent);\n\t\t\t\t} \n\t\t\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n progress.setVisibility(View.VISIBLE);\n WebViewActivity.this.progress.setProgress(0);\n\n logToast(\"onPageStarted \" + url);\n super.onPageStarted(view, url, favicon);\n }",
"@Override\n\t\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\tpd.dismiss();\n\t\t\t\t}",
"@Override\n\t\t\tpublic void onReceivedIcon(WebView view, Bitmap icon) {\n\t\t\t\tsuper.onReceivedIcon(view, icon);\n\t\t\t}",
"protected void updateTabIcon(DocumentTab document) {\n if (document.isModified()) {\n tabs.setIconAt(tabs.indexOfComponent(document), DocumentTab.MODIFIED_ICON);\n } else {\n tabs.setIconAt(tabs.indexOfComponent(document), DocumentTab.UNMODIFIED_ICON);\n }\n }",
"@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n \tsuper.onPageStarted(view, url, favicon);\r\n \tprogressbar=(ProgressBar)activity.findViewById(R.id.progressBar1);\r\n \t\r\n \tprogressbar.setProgress(100);\r\n \t\r\n \t\r\n \t\r\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n DLOG.d(\"webview\", \"url:\" + url);\n if (mOnOpenUrlListener != null) {\n mOnOpenUrlListener.onOpenUrl(url);\n mOnOpenUrlListener.showLoadingLayout();\n }\n }",
"@Override\n public void destroy() {\n if (mNativeFaviconCallbackProxy == 0) {\n return;\n }\n mTab.removeFaviconCallbackProxy(this);\n try {\n mClient.onDestroyed();\n } catch (RemoteException e) {\n throw new AndroidRuntimeException(e);\n }\n FaviconCallbackProxyJni.get().deleteFaviconCallbackProxy(mNativeFaviconCallbackProxy);\n mNativeFaviconCallbackProxy = 0;\n mClient = null;\n }",
"boolean hasFavicon();",
"@JsonProperty(\"favicon_url\")\n public String getFaviconUrl() {\n return faviconUrl;\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\twebViewPreviousState = PAGE_STARTED;\n\t\t\t\tif (CustomDialog.notShowing()) {\n\t\t\t\t\tCustomDialog.showProgressDialog(Approval.this, \"\", false);\n\t\t\t\t}\n\t\t\t\tnew OnCancelListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view,\n\t\t\t\t\tString url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\t\n\t\t\t\tmprogressBar.setVisibility(View.VISIBLE);\n\t\t\t}",
"public void onPageStarted(WebView view, String url, Bitmap favicon)\n {\n loadTimer = System.currentTimeMillis();\n pageFinished = false;\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tif (!isLoadUrl) {\n\t\t\t\t\tisLoadUrl = true;\n\t\t\t\t\tLog.i(TAG, \" page start == \" + url);\n\t\t\t\t\tview.loadUrl(url);\n\n\t\t\t\t}\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n\n super.onPageStarted(view, url, favicon);\n\n mProgress.setMessage(\"Loading...\");\n mProgress.show();\n\n }",
"private void webViewSettings(String url){\n this.registerForContextMenu(wV);\n wV.loadUrl(\"http://\"+url);\n WebIconDatabase.getInstance().open(getDir(\"icons\", MODE_PRIVATE).getPath());\n wV.getSettings().setJavaScriptEnabled(true);\n wV.getSettings().setBuiltInZoomControls(true);\n wV.getSettings().setSupportZoom(true);\n wV.setOnTouchListener(new View.OnTouchListener() {\n @Override\n public boolean onTouch(View v, MotionEvent event) {\n switch (event.getAction()) {\n case MotionEvent.ACTION_DOWN:\n case MotionEvent.ACTION_UP:\n if (!v.hasFocus()) {\n v.requestFocus();\n }\n break;\n }\n return false;\n }\n });\n wV.setWebChromeClient(new WebChromeClient() {\n\n @Override\n public void onReceivedIcon(WebView view, Bitmap icon) {\n favicon.setImageBitmap(icon);\n }\n\n @Override\n public void onReceivedTitle(WebView view, String title) {\n getWindow().setTitle(title);\n }\n });\n\n wV.setWebViewClient(new WebViewClient() {\n @Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n\n\n\n return super.shouldOverrideUrlLoading(view, url);\n\n }\n\n @Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n editUrl.setText(url);\n progress.setVisibility(View.VISIBLE);\n }\n\n @Override\n public void onPageFinished(WebView view, String url) {\n progress.setVisibility(View.INVISIBLE);\n\n //if not errors\n if(error==0){\n //insert historic\n dao.insertHistoric(MainActivity.this, wV.getUrl());\n }\n error=0;\n\n }\n\n @Override\n public void onReceivedError(WebView view, int errorCode, String description, String failUrl) {\n AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);\n builder.setMessage(description).setPositiveButton(\"OK\",null).setTitle(\"Web Page Error! \"+failUrl);\n builder.show();\n error = 1;\n\n\n }\n });\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n progressBusy.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n pd.setVisibility(View.VISIBLE);\n webView.setVisibility(View.VISIBLE);\n super.onPageStarted(view, url, favicon);\n\n }",
"public static void setVolatileUrlDrawable(ImageView icon,\n\t\t\tAccountClient starvingTheFoxPlayer) {\n\t\t\n\t}",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n super.onPageStarted(view, url, favicon);\n LOG(\"开始加载url:\" + url);\n if (!firstLoad) {\n firstLoad = true;\n// iv_webview_hint.setBackgroundDrawable(mContext.getResources().getDrawable(R.drawable.iv_web_loading));\n// iv_webview_hint.setVisibility(View.VISIBLE);\n setLoading(true);\n } else {\n// iv_webview_hint.setVisibility(View.GONE);\n setLoading(false);\n }\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tsuper.onPageStarted(view, url, favicon);\n\t\t\t\tprogressDialogSet = new ProgressDialogSet();\n\t\t\t\tprogressDialogSet.setCon(selfActivity);\n\t\t\t\tprogressDialogSet.setMsg(\"正在请求数据,请稍后...\");\n\t\t\t\tprogressDialogSet.startProgress();\n\t\t\t}",
"private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }",
"public void onPageStarted(WebView view, String url, Bitmap favicon) {\n dialog = ProgressDialog.show(EpubReaderActivity.this, null,\n \"Please Wait... Your book is Loading...\");\n dialog.setCancelable(true);\n super.onPageStarted(view, url, favicon);\n }",
"@Override\r\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n mLoadError = false;\r\n mRllGoShopping.setVisibility(View.VISIBLE);\r\n mMainWebView.setVisibility(View.GONE);\r\n super.onPageStarted(view, url, favicon);\r\n\r\n }",
"public void drawFav(Recipe r, ImageView favIcon) {\n int imgFav;\n if (r.isFavorite()) {\n imgFav = getResources().getIdentifier(\"favstarylw\", \"drawable\", getPackageName());\n } else {\n imgFav = getResources().getIdentifier(\"favstargrey\", \"drawable\", getPackageName());\n }\n favIcon.setImageResource(imgFav);\n }",
"@Override\n\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\tprogressDialog = ProgressDialog.show(this.context, \"请稍等\", \"正在加载\", true, false);\n\t}",
"public void addIcon(String url, byte[] icon) {\n mIconUrlToIconMap.put(url, icon);\n }",
"public void refreshFavoriteBtn() {\r\n if (recipe.isFavorite(context)) {\r\n favoriteBtn.setIcon(\"faw_star\");\r\n } else {\r\n favoriteBtn.setIcon(\"faw_star_o\");\r\n }\r\n }",
"public void onBookmarkModified() {\n/* 530 */ if (!this.mPdfViewCtrl.isUndoRedoEnabled()) {\n/* */ return;\n/* */ }\n/* */ \n/* */ try {\n/* 535 */ JSONObject jsonObj = new JSONObject();\n/* 536 */ if (this.mContext != null) {\n/* 537 */ String strBookmarkModified = this.mContext.getResources().getString(R.string.undo_redo_bookmark_modify);\n/* 538 */ jsonObj.put(\"Action\", strBookmarkModified);\n/* */ } \n/* 540 */ jsonObj.put(\"Action event\", \"modify_bookmarks\");\n/* */ \n/* 542 */ if (Utils.isNullOrEmpty(jsonObj.toString())) {\n/* 543 */ AnalyticsHandlerAdapter.getInstance().sendException(new Exception(\"takeUndoSnapshot with an empty string\"));\n/* */ }\n/* */ \n/* 546 */ takeUndoSnapshot(jsonObj.toString());\n/* 547 */ if (sDebug)\n/* 548 */ Log.d(TAG, \"snapshot: \" + jsonObj.toString()); \n/* 549 */ } catch (Exception e) {\n/* 550 */ AnalyticsHandlerAdapter.getInstance().sendException(e);\n/* */ } \n/* */ }",
"@Override\n public void onPageStarted(WebView view, String url, Bitmap favicon) {\n // loading start\n progressBar.setVisibility(View.VISIBLE);\n }",
"@ZAttr(id=800)\n public void unsetSkinFavicon() throws com.zimbra.common.service.ServiceException {\n HashMap<String,Object> attrs = new HashMap<String,Object>();\n attrs.put(Provisioning.A_zimbraSkinFavicon, \"\");\n getProvisioning().modifyAttrs(this, attrs);\n }",
"public void setFavFM(int i, Double n) {\n FavoritosFM[i] = n;\r\n }",
"public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }",
"private static void downloadIcon(final UrlMetadata urlMetadata) {\n ImageRequest imageRequest = new ImageRequest(urlMetadata.iconUrl, new Response.Listener<Bitmap>() {\n @Override\n public void onResponse(Bitmap response) {\n urlMetadata.icon = response;\n mMetadataResolverCallback.onUrlMetadataIconReceived();\n }\n }, 0, 0, null, null);\n mRequestQueue.add(imageRequest);\n }",
"private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}",
"public void setFavTitle(final String favTitle){\n\t\tthis.favTitle = favTitle;\n\t}",
"public void ageFilmIconResize(URL url) throws IOException {\n\t\tImage image;\n\t\timage = ImageIO.read(url);\n\t\tImageIcon myImg = new ImageIcon(url);\n\t\timage = myImg.getImage();\n\n\t\tint width = myImg.getIconWidth() / 5;\n\t\tint height = myImg.getIconHeight() / 5;\n\n\t\tImage newImg = image.getScaledInstance(width, height, Image.SCALE_SMOOTH);\n\t\tImageIcon resizeImg = new ImageIcon(newImg);\n\t\tlblRecommendedAge.setIcon(resizeImg);\n\n\t}",
"public void updateKanjiBookmark(KanjiDto dto, boolean bookmarkFlg, final CallBackListener<Boolean> callBack) {\n ContentResolver cr = mContext.getContentResolver();\n DaoAsyncQueryHandler queryHandler = new DaoAsyncQueryHandler(cr);\n ContentValues contentValues = new ContentValues();\n if (bookmarkFlg) {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_BOOKMARKED.toString());\n } else {\n contentValues.put(\"is_bookmarked\", BookmarkEnum.IS_NOT_BOOKMARKED.toString());\n }\n\n queryHandler.setOnUpdateCompleteListener(new DaoAsyncQueryHandler.OnUpdateCompleteListener() {\n @Override\n public void onUpdateComplete(int var1, int var2) {\n if (var2 > 0) {\n callBack.onSuccess(true);\n } else {\n callBack.onSuccess(false);\n }\n }\n });\n\n String selection =\"id='\" + dto.kid + \"'\";\n queryHandler.startUpdate(0, null, KanjiContentProvider.KANJI_URI, contentValues, selection, null);\n }",
"private void updateIcon(MarketIndex index) throws IOException {\n\n if(index.getImage()==null){\n String url = \"https://etoro-cdn.etorostatic.com/market-avatars/\"+index.getSymbol().toLowerCase()+\"/150x150.png\";\n byte[] bytes = utils.getBytesFromUrl(url);\n if(bytes!=null){\n if(bytes.length>0){\n byte[] scaled = utils.scaleImage(bytes, Application.STORED_ICON_WIDTH, Application.STORED_ICON_HEIGHT);\n index.setImage(scaled);\n }\n }else{ // Icon not found on etoro, symbol not managed on eToro or icon has a different name? Use standard icon.\n Image img = utils.getDefaultIndexIcon();\n bytes = utils.imageToByteArray(img);\n byte[] scaled = utils.scaleImage(bytes, Application.STORED_ICON_WIDTH, Application.STORED_ICON_HEIGHT);\n index.setImage(scaled);\n }\n }\n\n }",
"protected void updateProfileFavorites(ActionRequest req, PageViewVO fav) throws ActionException {\n\t\tlog.debug(\"updateProfileFavorites...\");\n\n\t\tMyFavoritesAction mfa = new MyFavoritesAction(getActionInit());\n\t\tmfa.setAttributes(getAttributes());\n\t\tmfa.setDBConnection(dbConn);\n\n\t\tboolean isDelete = Convert.formatBoolean(req.getParameter(\"isDelete\"));\n\t\tif (isDelete) {\n\t\t\tmfa.deleteFavorite(req);\n\t\t} else {\n\t\t\t// set additional req params needed for inserts.\n\t\t\treq.setParameter(QuickLinksAction.PARAM_KEY_TYPE_CD, fav.getReferenceCode());\n\t\t\treq.setParameter(QuickLinksAction.PARAM_KEY_REL_ID, fav.getPageId());\n\t\t\tmfa.insertFavorite(req);\n\t\t}\n\n\t\tupdateSessionFavorites(req.getSession(),fav,isDelete);\n\n\t}",
"public static void setOfficialArtistWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public static void setOfficialArtistWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n }",
"public Builder setCouponIconUrlBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n \n couponIconUrl_ = value;\n onChanged();\n return this;\n }",
"public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }",
"@Override\n public void onReceivedTitle(WebView view, String title) {\n getSupportActionBar().setTitle(title);\n }",
"public void changlink(String url2) {\n\t\t_webView.loadUrl(url2);\n\t}",
"@NonNull\n Completable editBookmark(@NonNull HistoryItem oldBookmark, @NonNull HistoryItem newBookmark);",
"public void addTermToFavourites(Term term) {\n // Set the favourited status of the term\n term.setFavourited(1);\n // Add the term to the table favourites\n addTermWithId(term, TABLE_FAVOURITES);\n // Update the favourite status of the term in the table terms\n updateTermFavouritedFlag(term, TABLE_TERMS);\n }",
"@Override\n\t\t\tpublic void onPageStarted(WebView view, String url, Bitmap favicon) {\n\t\t\t\tLog.d(\"Started\",\"Loading\");\n\t\t\t\tSystem.out.println(\"Loading url\"+url);\n\t\t\t\tloadingURL = url;\n\t\t\t\tif(url.contains(\"/Home/MyBooking/MyBooking\"))\n\t\t\t\t\tflag = false;\n\t\t\t\tif (url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\")\n\t\t\t\t\t\t&& flag) {\n\t\t\t\t\tview.stopLoading();\n\t\t\t\t\tfinish();\n\t\t\t\t\tIntent home = new Intent(SearchPageActivity.this,\n\t\t\t\t\t\t\tMenuSelectionAcitivity.class);\n\t\t\t\t\thome.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\t\t\t\tstartActivity(home);\n\t\t\t\t}\n\t\t\t\telse if(url.equals(CommonFunctions.main_url)\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"ar\")\n\t\t\t\t\t\t|| url.equals(CommonFunctions.main_url + \"en\"))\n\t\t\t\t\tflag = true;\n//\t\t\t\t\tloaderDialog.show();\n\t\t\t\telse\n\t\t\t\t\tpbLine.setVisibility(View.VISIBLE);\n\t\t\t\tsuper.onPageStarted(view, null, favicon);\n\t\t\t}",
"public void setFavSite(final String favSite){\n\t\tthis.favSite = favSite;\n\t}",
"private void setFabIcons() {\n\n if (isAddedToFavorites()) {\n mFabButton.setTag(FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite));\n } else {\n mFabButton.setTag(NOT_FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border));\n }\n }",
"public int updateTermFavouritedFlag (Term term, String table) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_FAVOURITED, term.getFavourited());\n\n // updating row\n return db.update(table, values, KEY_ID + \" = ?\", new String[] { String.valueOf(term.getId())});\n }",
"@ZAttr(id=800)\n public String getSkinFavicon() {\n return getAttr(Provisioning.A_zimbraSkinFavicon, null);\n }",
"@Override\n public void setIconURI(String arg0)\n {\n \n }",
"public void clickOnBookmarkIcon() {\n\tif(bookmarkIcon.isDisplayed()) {\n\t\twaitAndClick(bookmarkIcon);\n\t\t_normalWait(3000);\n\t }\n }",
"@Override\n public boolean updateVertexIconURLs(TimeFrame ptf, Map<Integer, String> pmapVertexIconURLs){\n for(int vertexId : pmapVertexIconURLs.keySet()){\n this.getGraph(ptf).getVertex(vertexId).updateIconURL(pmapVertexIconURLs.get(vertexId), ptf);\n }\n return true;\n }",
"private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }",
"URL getIconURL(String iconId, IconSize medium);",
"public static void setOfficialFileWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALFILEWEBPAGE, value);\r\n\t}",
"protected final void notifyWebViewReload() {\n if (mWebView != null) {\n mWebView.reload();\n }\n }",
"@WorkerThread @UiThread\n public void setBitmap(String url, Bitmap bitmap) {\n synchronized (this) {\n this.bitmaps.put(url, bitmap);\n }\n\n // Tell all registered views that a bitmap changed\n notifyViews(Event.BITMAP_CHANGED);\n }",
"public static void setOfficialFileWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, OFFICIALFILEWEBPAGE, value);\r\n\t}",
"public void makeFavorite(String title, int favorite)\n {\n SQLiteDatabase db = this.getWritableDatabase();\n\n /* the execSQL Method simply executes this query on the Database, in this Query UPDATE is\n * used to specify the Table Name to Update, SET specifies the Column name to Update in this\n * case COL8 contains favorites and WHERE is the condition in this case it is to make sure\n * that the Movie Title Matches with the given title\n */\n db.execSQL(\n \"UPDATE \" + TABLE_NAME +\n \" SET \" + COL8 + \" = \" + favorite +\n \" WHERE \" + COL2 + \" = '\" + title + \"'\");\n }",
"public static void addOfficialArtistWebpage(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.add(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public static void addOfficialArtistWebpage( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public void setOfficialArtistWebpage( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public void setOfficialArtistWebpage(org.ontoware.rdfreactor.schema.rdfs.Resource value) {\r\n\t\tBase.set(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, value);\r\n\t}",
"public static boolean isFavicon(String path) {\n return FAVICON_PATH.equals(path);\n }",
"public static void updateUrlDrawable(Bitmap bitmap, ImageView imageView, int cacheDurationInfinite) {\n \n }",
"@Override\n\tpublic void setIconURL(ToolIconURL iconURL) {\n\t\tthis.iconURL = iconURL;\n\t}",
"public void addToFavorites() {\n\n // Create new content values object\n ContentValues contentValues = new ContentValues();\n\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ID, sMovie.getMovieId());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_TITLE, sMovie.getMovieTitle());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_ORIGINAL_TITLE, sMovie.getMovieOriginalTitle());\n contentValues.put(FavMovieEntry.COLUMN_POSTER_PATH, sMovie.getPoster());\n contentValues.put(FavMovieEntry.COLUMN_BACKDROP_PATH, sMovie.getMovieBackdrop());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RELEASE_DATE, sMovie.getReleaseDate());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_RATING, sMovie.getVoteAverage());\n contentValues.put(FavMovieEntry.COLUMN_MOVIE_SYNOPSIS, sMovie.getPlotSynopsis());\n\n try {\n mCurrentMovieUri = getContentResolver().insert(FavMovieEntry.CONTENT_URI,\n contentValues);\n } catch (IllegalArgumentException e) {\n mCurrentMovieUri = null;\n Log.v(LOG_TAG, e.toString());\n }\n\n if (mCurrentMovieUri != null) {\n isAddedToFavorites();\n }\n\n }"
] | [
"0.5856515",
"0.5565576",
"0.5525429",
"0.55089444",
"0.5499581",
"0.54863876",
"0.5458956",
"0.5458956",
"0.5458956",
"0.5458956",
"0.5458956",
"0.5458956",
"0.54499406",
"0.5447315",
"0.544188",
"0.5417084",
"0.5413023",
"0.54012764",
"0.5344473",
"0.5335785",
"0.52822924",
"0.5281846",
"0.52158546",
"0.5198122",
"0.51426935",
"0.5138036",
"0.50867033",
"0.50784063",
"0.50476164",
"0.4989905",
"0.49794626",
"0.49559462",
"0.48752436",
"0.48249984",
"0.48030567",
"0.4787278",
"0.47729498",
"0.4758087",
"0.4751811",
"0.47390565",
"0.47265616",
"0.4725863",
"0.46402353",
"0.46276826",
"0.46259207",
"0.45975292",
"0.45906642",
"0.45403296",
"0.45371816",
"0.44721627",
"0.44483927",
"0.4447626",
"0.44400892",
"0.44052127",
"0.43895367",
"0.4357635",
"0.4331966",
"0.4319507",
"0.43041962",
"0.4293173",
"0.42404637",
"0.42202002",
"0.42176968",
"0.4209467",
"0.4191956",
"0.418653",
"0.41813207",
"0.4173946",
"0.41455448",
"0.4136823",
"0.41340938",
"0.41285884",
"0.41240352",
"0.41173437",
"0.41135016",
"0.40807208",
"0.40488937",
"0.4045514",
"0.40425578",
"0.40379974",
"0.40148318",
"0.4009501",
"0.39706737",
"0.39682168",
"0.39524636",
"0.39450294",
"0.3942013",
"0.39380434",
"0.3936431",
"0.39319208",
"0.39307106",
"0.39260837",
"0.3913016",
"0.39043754",
"0.38957867",
"0.38918427",
"0.3888673",
"0.3872981",
"0.38717723",
"0.38684848"
] | 0.7926136 | 0 |
Strip the query from the given url. | private static String removeQuery(String url) {
if (url == null) {
return null;
}
int query = url.indexOf('?');
String noQuery = url;
if (query != -1) {
noQuery = url.substring(0, query);
}
return noQuery;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String removeQuery(final String urlString) {\n if (urlString == null) {\n return null;\n }\n return Uri.parse(urlString).buildUpon().clearQuery().toString();\n }",
"public String cleanURL(String url) {\n\t\treturn this.removeQueryString(this.removeExtension(url));\n\t}",
"public static String removeFilterFromUrlIfPresent(String url) {\r\n\t\t\r\n\t\tString afterLastSlash = url.substring(url.lastIndexOf(\"/\") + 1);\r\n\t\t\r\n\t\tif (afterLastSlash.contains(\"filter\"))\r\n\t\t\turl = url.substring(0, url.lastIndexOf(\"/\"));\r\n\t\r\n\t\treturn url;\r\n\t}",
"public String removeQueryString(String string) {\n\t\tString pathWithoutQueryString = string;\n\t\tif (string != null && string.matches(\".*\\\\?.*\")) {\n\t\t\tpathWithoutQueryString = string.split(\"\\\\?\")[0];\n\t\t}\n\t\treturn pathWithoutQueryString;\n\t}",
"public static String stripUrlParams(String str, String... toRemove) {\n\n String[] url = str.split(\"\\\\?\");\n StringBuilder builder = new StringBuilder(url[0] + \"?\");\n String[] query = url[1].split(\"&\");\n Map<String, String> map = new HashMap<>(query.length);\n for (String p : query) {\n String[] param = p.split(\"=\");\n map.put(param[0], param[1]);\n }\n for (String param : toRemove)\n map.remove(param);\n for (String key : map.keySet()) {\n builder.append(key).append(\"=\").append(map.get(key)).append(\"&\");\n }\n return builder.subSequence(0, builder.length() - 1).toString();\n }",
"private String removeQueryString(String historyToken)\r\n \t{\r\n \t\tif (historyToken.contains(\"?\"))\r\n \t\t{\r\n \t\t\tint index = historyToken.indexOf('?');\r\n \t\t\thistoryToken = historyToken.substring(0, index);\r\n \r\n \t\t}\r\n \t\treturn historyToken;\r\n \t}",
"public static String removePrecedingSlash(String url) {\n if (url.startsWith(\"/\")) {\n return url.substring(1);\n } else {\n return url;\n }\n }",
"String checkAndTrimUrl(String url);",
"public static String removeProtocolAndTrailingSlash(String url , boolean toLowerCase) {\n return removeTrailingSlash(removeProtocal(toLowerCase ? url.toLowerCase() : url));\n }",
"private void clearQueryString() {\n this.setQueryString(\"\");\n }",
"public static String removeProtocolAndTrailingSlash(String url) {\n return removeProtocolAndTrailingSlash(url, true);\n }",
"private String extractRealUrl(String url) {\n return acceptsURL(url) ? url.replace(\"p6spy:\", \"\") : url;\n }",
"public String getRequestURIWithoutQuery() {\n if (requestURIWithoutQuery != null) {\n return requestURIWithoutQuery;\n }\n requestURIWithoutQuery = super.getRequestURI();\n if (requestURIWithoutQuery == null) {\n requestURIWithoutQuery = \"\";\n }\n return requestURIWithoutQuery;\n }",
"private static String trim (String urlString) {\n int ix = urlString.lastIndexOf('/');\n boolean trimTrailingSlash = ix == urlString.length() - 1;\n if (trimTrailingSlash) {\n ix = urlString.lastIndexOf('/', ix - 1);\n }\n String result;\n if (ix > 0) {\n result = urlString.substring(ix + 1);\n } else {\n result = urlString;\n }\n if (trimTrailingSlash && result.length() > 1) {\n result = result.substring(0, result.length() - 1);\n }\n return result;\n }",
"private String removeFragment(String uri) {\n String result = uri;\n int hashPos = uri.indexOf(\"#\");\n if (hashPos >= 0) {\n result = uri.substring(0, hashPos);\n }\n return result;\n }",
"public static String removeTrailingSlash(String url) {\n if (url.endsWith(\"/\")) {\n return url.substring(0, url.length() - 1);\n } else {\n return url;\n }\n }",
"public static String stripJsessionId( String url ) {\n // Strip off jsessionid found in referer URL\n int startPos = url.indexOf(\";jsessionid=\");\n if ( startPos != -1 ) {\n int endPos = url.indexOf(\"?\",startPos);\n if ( endPos == -1 ) {\n url = url.substring(0,startPos);\n } else {\n url = url.substring(0,startPos)\n + url.substring(endPos,url.length());\n }\n }\n return url;\n }",
"private static String decodeAndCleanUriString(HttpServletRequest request, String uri) {\n uri = decodeRequestString(request, uri);\n int semicolonIndex = uri.indexOf(';');\n return (semicolonIndex != -1 ? uri.substring(0, semicolonIndex) : uri);\n }",
"public String splitURL(String url) {\n return url.split(\"\\\\?\")[0];\n }",
"String getQueryRequestUrl();",
"void removeSWFURL(String toRemove);",
"private String filterOutURLFromTweet(final Status status) {\n\t\tfinal String tweet = status.getText();\n\t\tfinal URLEntity[] urlEntities = status.getURLEntities();\n\t\tint startOfURL;\n\t\tint endOfURL;\n\t\tString truncatedTweet = \"\";\n\t\tif(urlEntities.length > 0)\n\t\t{\n\t\t\tfor(final URLEntity urlEntity: urlEntities){\n\t\t\t\tstartOfURL = urlEntity.getStart();\n\t\t\t\tendOfURL = urlEntity.getEnd();\n\t\t\t\ttruncatedTweet += tweet.substring(0, startOfURL) + tweet.substring(endOfURL);\n\t\t\t}\n\t\t\treturn truncatedTweet;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn tweet;\n\t\t}\n\n\t}",
"java.lang.String getQuery();",
"java.lang.String getQuery();",
"public static String requestURL(String url) {\n return \"\";\n }",
"public static String removeSparqlComments(String query) {\n\t\treturn query.replaceAll(\"(?m)^\\\\s*#.*?$\", \"\");\n\t}",
"private String extractQuery(String str) throws UnsupportedEncodingException {\n\t\tif (!str.isEmpty()) {\n\t\t\tstr = str.trim().replaceAll(\"[^a-zA-Z0-9\\\\s]\", \"\");\n\t\t\tstr = str.replaceAll(\"[\\\\p{Punct}]+\", \"\");\n\t\t\tstr = str.trim().replaceAll(\"[\\\\s]+\", \" \");\n\t\t}\n\n\t\treturn str;\n\t}",
"public void undispatchURL(String url);",
"String processQuery(String query);",
"private String getSearchUrl(String url ){\n String params = searchEditText.getText().toString();\n params = params.replace(\" \",\"+\");\n url += params + \"&filter=ebooks&prettyPrint=false\";\n return url;\n }",
"public static String getQueryString(String key) {\n String value = Http.Context.current().request().getQueryString(key);\n if (value != null) {\n value = value.trim();\n }\n return value;\n }",
"public static String removeProtocal(String url) {\n String u = url;\n int in = u.indexOf(\"://\");\n if (in > 0) { \n u = u.substring(in + 3);\n }\n return u;\n }",
"private String getQueryStringFromParser() {\n return (getString() == null) ? \"\" : getString();\n }",
"String getQuery();",
"public Builder removeQueryParameter(String name) {\n\t\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\n\t\t\turl.query.remove(name);\n\t\t\treturn this;\n\t\t}",
"public final static String transformUrl(String url) {\n \n int c = url.indexOf('?');\n if (c > -1) {\n url = url.substring(0, c);\n }\n \n // temporary work around to enable authorization on opendap URLs\n url = url.replace(\"dodsC\", \"fileServer\").replace(\".ascii\", \"\").replace(\".dods\", \"\").replace(\".das\", \"\").replace(\".ddds\", \"\");\n \n return url;\n }",
"String getQueryString ();",
"public static String getAtcMapUrlWithParamRemoved(String url, String paramName) throws Exception {\n int divPos = url.indexOf(\"?\");\n String firstPart = url.substring(0, divPos);\n String secondPart = url.substring(divPos + 1);\n \n List<NameValuePair> params = URLEncodedUtils.parse(secondPart, Charset.forName(\"UTF-8\"));\n List<NameValuePair> modParams = new ArrayList<NameValuePair>(params.size());\n \n for (NameValuePair p : params) {\n if (!p.getName().equals(paramName)) {\n modParams.add(p);\n }\n }\n \n String resultUrl = firstPart + \"?\" + URLEncodedUtils.format(modParams, Charset.forName(\"UTF-8\"));\n return resultUrl;\n }",
"public static String removeLeadingDoubleSlash(String url, String scheme) {\n if (url != null && url.startsWith(\"//\")) {\n url = url.substring(2);\n if (scheme != null) {\n if (scheme.endsWith(\"://\")) {\n url = scheme + url;\n } else {\n Log.e(TAG, \"Invalid scheme used: \" + scheme);\n }\n }\n }\n return url;\n }",
"private void removeEndQuery(){\n setMainQuery(getMainQuery().substring(0,getMainQuery().length()-1));\n setCountQuery(getCountQuery().substring(0,getCountQuery().length()-1));\n }",
"protected String cleanSurt(String surt) {\n if (!isSurt(surt)) {\n surt = ArchiveUtils.addImpliedHttpIfNecessary(surt);\n surt = SURT.fromURI(surt);\n }\n \n if (surt.endsWith(\",)\") && surt.indexOf(')') == surt.length()-1) {\n surt = surt + \"/\";\n }\n \n return surt;\n }",
"public Builder clearQueryParameters() {\n\t\t\turl.query.clear();\n\t\t\treturn this;\n\t\t}",
"public static String getQueryValueFromUrl(String url, String name) { \n \n URL theUrl;\n try {\n theUrl = new URL(url);\n } catch (MalformedURLException e) {\n return \"\";\n }\n \n String query = theUrl.getQuery();\n if (query != null && !query.isEmpty()) {\n String[] params = query.split(\"&\"); \n for (String param : params) {\n String[] pair = param.split(\"=\");\n if (name.equals(pair[0]) && pair.length > 1) {\n return pair[1];\n } \n } \n }\n return \"\"; \n }",
"private String stripURL( String inputLine )\n\t{\n\t\tint fromIndex = inputLine.indexOf( \"<img \" ) + \"<img \".length();\n\t\tint beginIndex = inputLine.indexOf( \"src=\\\"\", fromIndex ) + \"src=\\\"\".length();\n\t\tint endIndex = inputLine.indexOf( \"\\\"\", beginIndex );\n\t\treturn inputLine.substring( beginIndex, endIndex );\n\t}",
"public URL standardizeURL(URL startingURL);",
"public static String normalizeUrl(String url) throws URISyntaxException {\n\t\tURI uri = new URI(url);\n\t\tString scheme = uri.getScheme().toLowerCase();\n\t\tString authority = uri.getAuthority().toLowerCase();\n\t\tint port = uri.getPort();\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(scheme)\n\t\t .append(\"://\")\n\t\t .append(authority);\n\t\t\n\t\t//Port\n\t\tif (port != -1 &&\n\t\t\t((\"http\".equals(scheme) && 80 != port) ||\n\t\t\t (\"https\".equals(scheme) && 443 != port))) {\n\t\t\tsb.append(\":\").append(port);\n\t\t}\n\t\t\n\t\t//Path\n\t\tsb.append(uri.getPath());\n\t\treturn sb.toString();\n\t}",
"@Override\n\t\tpublic String getQueryString() {\n\t\t\treturn null;\n\t\t}",
"public static String normalizeWebpage( String url ) {\r\n if( url == null ) {\r\n return null;\r\n }; // if\r\n if( url.startsWith( \"ttp://\" ) ) {\r\n return \"h\" + url;\r\n }; // if\r\n if( url.startsWith( \"www.\" ) ) {\r\n return \"http://\" + url;\r\n }; // if\r\n return url;\r\n }",
"public static URL normalize(URL url) {\n if (url.getProtocol().equals(\"file\")) {\n try {\n File f = new File(cleanup(url.getFile()));\n if(f.exists())\n return f.toURL();\n } catch (Exception e) {}\n }\n return url;\n }",
"public final GetHTTP removeUrl() {\n properties.remove(URL_PROPERTY);\n return this;\n }",
"public static String removeScheme(final String urlString) {\n if (urlString == null) {\n return null;\n }\n\n int doubleslash = urlString.indexOf(\"//\");\n if (doubleslash == -1) {\n doubleslash = 0;\n } else {\n doubleslash += 2;\n }\n\n return urlString.substring(doubleslash, urlString.length());\n }",
"public static String normalize(String url) {\n try {\n URL absoluteUrl = new URL(url);\n return new URL(\n absoluteUrl.getProtocol(), \n absoluteUrl.getHost(), \n absoluteUrl.getPort(),\n absoluteUrl.getPath())\n .toString();\n } catch (Exception ex) {\n return null;\n }\n }",
"void removeHadithUrl(Object oldHadithUrl);",
"public static String removeTokens(String url) {\n String channelEndpoint = url.toLowerCase().trim();\n\n // remove protocol and host info\n if (channelEndpoint.startsWith(\"http://\") ||\n channelEndpoint.startsWith(\"https://\") ||\n channelEndpoint.startsWith(\"rtmp://\") ||\n channelEndpoint.startsWith(\"rtmps://\")) {\n int nextSlash = channelEndpoint.indexOf('/', 8);\n // Check to see if there is a 'next slash', and also that the next\n // slash isn't the last character\n if ((nextSlash > 0) && (nextSlash != channelEndpoint.length() - 1))\n channelEndpoint = channelEndpoint.substring(nextSlash);\n }\n\n // either {context-root} or {context.root} is legal\n channelEndpoint = StringUtils.substitute(channelEndpoint, \"{context-root}\", ConfigurationConstants.CONTEXT_PATH_TOKEN);\n\n // Remove context path info\n if (channelEndpoint.startsWith(ConfigurationConstants.CONTEXT_PATH_TOKEN)) {\n channelEndpoint = channelEndpoint.substring(ConfigurationConstants.CONTEXT_PATH_TOKEN.length());\n } else if (channelEndpoint.startsWith(ConfigurationConstants.SLASH_CONTEXT_PATH_TOKEN)) {\n channelEndpoint = channelEndpoint.substring(ConfigurationConstants.SLASH_CONTEXT_PATH_TOKEN.length());\n }\n\n // We also don't match on trailing slashes\n if (channelEndpoint.endsWith(\"/\")) {\n channelEndpoint = channelEndpoint.substring(0, channelEndpoint.length() - 1);\n }\n return channelEndpoint;\n }",
"static String qs(String query) {\n\t\tif (StringUtils.isBlank(query) || \"*\".equals(query.trim())) {\n\t\t\treturn \"*\";\n\t\t}\n\t\tquery = query.trim();\n\t\tif (query.length() > 1 && query.startsWith(\"*\")) {\n\t\t\tquery = query.substring(1);\n\t\t}\n\t\ttry {\n\t\t\tStandardQueryParser parser = new StandardQueryParser();\n\t\t\tparser.setAllowLeadingWildcard(false);\n\t\t\tparser.parse(query, \"\");\n\t\t} catch (Exception ex) {\n\t\t\tlogger.warn(\"Failed to parse query string '{}'.\", query);\n\t\t\tquery = \"*\";\n\t\t}\n\t\treturn query.trim();\n\t}",
"public static String normalizeUrl(final String urlString) {\n if (urlString == null) {\n return null;\n }\n\n // this routine is called from some performance-critical code and creating a URI from a string\n // is slow, so skip it when possible - if we know it's not a relative path (and 99.9% of the\n // time it won't be for our purposes) then we can normalize it without java.net.URI.normalize()\n if (urlString.startsWith(\"http\") &&\n !urlString.contains(\"build/intermediates/exploded-aar/org.wordpress/graphview/3.1.1\")) {\n // return without a trailing slash\n if (urlString.endsWith(\"/\")) {\n return urlString.substring(0, urlString.length() - 1);\n }\n return urlString;\n }\n\n // url is relative, so fall back to using slower java.net.URI normalization\n try {\n URI uri = URI.create(urlString);\n return uri.normalize().toString();\n } catch (IllegalArgumentException e) {\n return urlString;\n }\n }",
"void removeQueryParam(String name) {\n if (name == null) {\n throw new IllegalArgumentException(\"Name cannot be null\");\n }\n Iterator<Param> iter = queryParams.iterator();\n while (iter.hasNext()) {\n Param p = iter.next();\n if (p.key.equals(name)) {\n iter.remove();\n }\n }\n }",
"void first_normalize_url(String rawurl, PointerByReference ptr);",
"protected String getQuery(String query) {\r\n\t\treturn query;\r\n\t}",
"public boolean remove(URL url) {\n return super.remove(normalize(url));\n }",
"public static String fixRequestParameterValue(String value) {\n String fixedValue = value;\n if (value != null) {\n int pos = value.indexOf(\"?browserId=\");\n if (pos > 0) {\n fixedValue = value.substring(0, pos);\n }\n }\n return fixedValue;\n }",
"public static String getRawQuery(String uri) {\n return createUri(uri).getRawQuery();\n }",
"public String getQueryString() {\n\t\tif (query.isEmpty())\n\t\t\treturn null;\n\n\t\tif (queryString == null)\n\t\t\tqueryString = mapToString(query, \"&\");\n\n\t\treturn queryString;\n\t}",
"public sparqles.avro.discovery.DGETInfo.Builder clearURL() {\n URL = null;\n fieldSetFlags()[2] = false;\n return this;\n }",
"public void removeFilter(String arg) {\n\t\tqueries = null;\n\t\tsessionBean.removeFilter(arg);\n\t}",
"static private String stripPlusIfPresent( String value ){\n String strippedPlus = value;\n \n if ( value.length() >= 2 && value.charAt(0) == '+' && value.charAt(1) != '-' ) {\n strippedPlus = value.substring(1);\n }\n return strippedPlus;\n }",
"public String getFilter() {\n\t\treturn url.getFilter();\n }",
"public static String getHashFromUrl(String url) {\n int pos = url.indexOf('#');\n if (pos > 0) {\n return url.substring(pos + 1);\n } else {\n return \"\";\n }\n }",
"String query();",
"@Override\r\n\tpublic String buildURLQuery(ExecuteProcessRequest request)\r\n\t\t\tthrows OWSException {\n\t\treturn null;\r\n\t}",
"public URIBuilder clearParameters() {\n this.queryParams = null;\n this.encodedQuery = null;\n this.encodedSchemeSpecificPart = null;\n return this;\n }",
"private String urlShort(String url){\n\n\t\treturn null;\n\t}",
"public static String getRequestUri(HttpServletRequest request) {\n String uri = (String) request.getAttribute(FORWARD_REQUEST_URI_ATTRIBUTE);\n if (uri == null) {\n uri = (String) request.getAttribute(INCLUDE_REQUEST_URI_ATTRIBUTE);\n }\n if (uri == null) {\n uri = request.getRequestURI();\n }\n return normalize(decodeAndCleanUriString(request, uri));\n }",
"void setQueryRequestUrl(String queryRequestUrl);",
"public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }",
"@Override\n public String getQueryString() {\n return queryString;\n }",
"@Override\n public UrlExtras.Parser reset(final String url) {\n return new DevJavaUrlParser().setUrl(url);\n }",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"java.lang.String getUrl();",
"String getQueryResultsUrl();",
"@Override \n public String getRequestURI() {\n if (requestURI != null) {\n return requestURI;\n }\n\n StringBuilder buffer = new StringBuilder();\n buffer.append(getRequestURIWithoutQuery());\n if (super.getQueryString() != null) {\n buffer.append(\"?\").append(super.getQueryString());\n }\n return requestURI = buffer.toString();\n }",
"public static String filterMediaLink(String link) {\r\n\t if (link.length() == 0)\r\n\t \treturn link;\r\n\t else {\r\n\t \tint start = link.indexOf(\".com/\");\r\n\t \treturn link.substring(start + 5);\r\n\t }\r\n\t}",
"private void clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000002);\n url_ = getDefaultInstance().getUrl();\n }",
"private String stripWildcardChars(String value)\n\t{\n\t\tString updValue = value;\n\t\t// if the string ends with a *, strip it\n\t\tif(updValue.trim().endsWith(ASTERICK_WILDCARD))\n\t\t{\n\t\t\tupdValue = updValue.substring(0, updValue.trim().length() - 1);\n\t\t} // end if\n\t\t// return the value minus the wildcard\n\t\treturn updValue;\n\t}",
"@Override\n public String getRequestURI() {\n if (httpRequest instanceof HttpRequestImpl) {\n return strip(context, ((HttpRequestImpl) httpRequest).requestRawPath());\n }\n return strip(context, super.getRequestURI());\n }",
"public void removeQuery(Query query) {\n\t\tqueries.remove(query);\n\t}",
"public final static String getFullRequestUrl(final HttpServletRequest req) {\n return req.getRequestURL().toString() + (StringUtils.hasText(req.getQueryString()) ? \"?\"+req.getQueryString() : \"\");\n }",
"private void clearUrl() {\n bitField0_ = (bitField0_ & ~0x00000001);\n url_ = getDefaultInstance().getUrl();\n }",
"private static String sanitize(String input) {\n input = input.replaceAll(\"[^A-Za-z0-9_]\", \"\").toLowerCase();\n if (input.matches(\"[0-9]+\") || input.startsWith(\"href\")) {\n return \"\";\n }\n return input;\n }",
"private String cleanPath(String path) {\n if(path == null)\n return path;\n if(path.equals(\"\") || path.equals(\"/\"))\n return path;\n\n if(!path.startsWith(\"/\"))\n path = \"/\" + path;\n path = path.replaceAll(\"/+\", \"/\");\n if(path.endsWith(\"/\"))\n path = path.substring(0,path.length()-1);\n return path;\n }",
"private void urlUnset() {\n switch (status) {\n case SERVER_UP:\n logger.debug(\"Status changing from \" + status + \" to \"\n + Status.URL_UNSET);\n broadcastMessage(formatError(\"Dataserver does not have URL configured in chat server.\"));\n status = Status.URL_UNSET;\n default:\n logger.debug(\"UrlUnset: Status not changed from \" + status);\n // no action since we don't want to spam with error messages\n break;\n }\n }",
"public static String unEscapeURL(String src) {\n\t StringBuffer bf = new StringBuffer();\n\t char[] s = src.toCharArray();\n\t for (int k = 0; k < s.length; ++k) {\n\t char c = s[k];\n\t if (c == '%') {\n\t if (k + 2 >= s.length) {\n\t bf.append(c);\n\t continue;\n\t }\n\t int a0 = PRTokeniser.getHex(s[k + 1]);\n\t int a1 = PRTokeniser.getHex(s[k + 2]);\n\t if (a0 < 0 || a1 < 0) {\n\t bf.append(c);\n\t continue;\n\t }\n\t bf.append((char)(a0 * 16 + a1));\n\t k += 2;\n\t }\n\t else\n\t bf.append(c);\n\t }\n\t return bf.toString();\n\t}",
"public String getQuery()\n\t{\n\t\tVRL loc=getLocation();\n\t\t\n\t\tif (loc==null)\n\t\t\treturn null;\n\t\t\n\t\treturn loc.getQuery();\n\t}",
"String getQueryStateUrl();",
"private String getUrl(String title, String url) {\n if (TextUtils.isEmpty(title)\n || TextUtils.getTrimmedLength(title) == 0\n || title.equals(url)) {\n return null;\n } else {\n return UrlUtils.stripUrl(url);\n }\n }",
"@Override\n\tpublic String encodeRedirectUrl(String url) {\n\t\treturn null;\n\t}"
] | [
"0.6988166",
"0.6688287",
"0.6551162",
"0.65293175",
"0.6413922",
"0.6365457",
"0.59189874",
"0.59188354",
"0.56759256",
"0.56518066",
"0.5646121",
"0.5581205",
"0.5572583",
"0.5475397",
"0.5472413",
"0.54703087",
"0.54170305",
"0.5416015",
"0.54091024",
"0.53448254",
"0.5332255",
"0.5315513",
"0.5286811",
"0.5286811",
"0.5247948",
"0.52100277",
"0.52007717",
"0.5195455",
"0.51912105",
"0.51872855",
"0.5173065",
"0.5143245",
"0.51310426",
"0.5127817",
"0.5124982",
"0.5095514",
"0.50770855",
"0.50056845",
"0.49777895",
"0.49400988",
"0.49332327",
"0.4871845",
"0.48554108",
"0.48247433",
"0.4792958",
"0.47531593",
"0.47403282",
"0.47229728",
"0.4702844",
"0.4696169",
"0.46958315",
"0.46945554",
"0.46842864",
"0.46694008",
"0.46545365",
"0.45702773",
"0.4562714",
"0.453827",
"0.45311424",
"0.4520266",
"0.451248",
"0.4483482",
"0.4478301",
"0.44749138",
"0.44747132",
"0.44586667",
"0.4439719",
"0.44387335",
"0.44343996",
"0.4432233",
"0.44265378",
"0.44218552",
"0.4418614",
"0.43993273",
"0.43873736",
"0.43860376",
"0.4382968",
"0.43729308",
"0.43729308",
"0.43729308",
"0.43729308",
"0.43729308",
"0.43729308",
"0.4372459",
"0.43696657",
"0.43667883",
"0.4361072",
"0.43576846",
"0.4357093",
"0.43492132",
"0.43490553",
"0.43468535",
"0.43388888",
"0.4332366",
"0.43320808",
"0.43209255",
"0.43075815",
"0.43054047",
"0.4289418",
"0.42884284"
] | 0.7982644 | 0 |
How many items should be displayed in the list. | public int getCount() {
if (mDataValid) {
return mCount;
} else {
return 0;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getItemsCount();",
"int getItemsCount();",
"int getNumItems();",
"public int numberOfItems()\n {\n return dessertList.size();\n }",
"public int getNumberOfItems() {\r\n return decorItems.size();\r\n }",
"public int getSize() {\r\n return list.getItemCount();\r\n }",
"public int size()\r\n {\r\n return nItems;\r\n }",
"public int size() {\n return numItems;\n }",
"public int size() {\n return nItems;\n }",
"public int length() {\n return numberOfItems;\n }",
"public int listAmount() {\n return count;\n }",
"public int size() {\n \treturn numItems;\n }",
"public int size()\r\n\t{\r\n\t\treturn numItems;\r\n\r\n\t}",
"public int size(){\n return numItems;\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"@Override\n\tpublic int numerOfItems() {\n\t\treturn usersDAO.numerOfItems();\n\t}",
"public int listSize(){\r\n return counter;\r\n }",
"public int getItemsCount() {\n return items_.size();\n }",
"public int getCount() {\n\t\t\treturn list.size();\r\n\t\t}",
"public Integer getInterestedInItemsCount();",
"@Override\n public int getSize() {\n return this.numItems;\n }",
"public int getCount() {\n return definition.getInteger(COUNT, 1);\n }",
"@Override\n public int getSize() {\n return numItems;\n }",
"default int countItems() {\n return countItems(StandardStackFilters.ALL);\n }",
"@Override\r\n\tpublic int size() {\r\n\t\treturn numItems;\r\n\t}",
"public int getCount() \r\n\t{\r\n\t\tSystem.out.print(\"The number of book in the Array is \");\r\n\t\treturn numItems;\r\n\t\t\r\n\t}",
"@Override\n public int getItemCount(){\n if(specialistList.size() > LIMIT) { return LIMIT; }\n else { return specialistList.size(); }\n }",
"@Override\n\tpublic int size() {\n\t\treturn numItems;// numItems represents size\n\t}",
"public int getCount() {\n\t\treturn lstPara.size();\n\t}",
"int getItemCount();",
"int getItemCount();",
"int getItemCount();",
"public int length() {\n\n\t\treturn numItems;\n\n\t}",
"@Override\n\tpublic int size() {\n\n\t\treturn this.numOfItems;\n\t}",
"public int getListSize() {\n return getRootNode().getItems().size();\n }",
"public int getCount() {\n return listName.length;\n }",
"public int getCount() {\n return list.size();\n }",
"public long getNbTotalItems() {\n return nbTotalItems;\n }",
"public int size(){\n\t\treturn howMany; \n\t}",
"public int getItemCount()\n {\n return Math.min(cats.size(), 5);\n }",
"public int getListSize() {\n return listSize;\n }",
"int getListCount();",
"public int size() {\n return items.size();\n }",
"public abstract int getItemCount();",
"public int size() {\r\n if (NumItems > Integer.MAX_VALUE) {\r\n return Integer.MAX_VALUE;\r\n }\r\n return NumItems;\r\n }",
"public int getSize () {\n return this.list.size();\n }",
"@Override\n public int getItemCount() {\n //neste caso 10\n return mList.size();\n }",
"public void count() \r\n\t{\r\n\t\tcountItemsLabel.setText(String.valueOf(listView.getSelectionModel().getSelectedItems().size()));\r\n\t}",
"public int size() {\r\n return items.size();\r\n }",
"public int size() {\r\n return items.size();\r\n }",
"public int getItemCount() {\r\n\t\treturn listModel.size();\r\n\t}",
"void printNumberOfFilteredItems();",
"public int getCount() {\n return MyArrList.size();\n }",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public static int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\n return mList.size();\n }",
"public int size(){ return itemCount;}",
"public int getCount() {\n return questionList.size();\n }",
"@Override\r\n\tpublic int getCount() {\n\t\treturn ac.ProductList.size();\r\n\t}",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\r\n\t\treturn count;\r\n\t}",
"public int getCount() {\n\n if(data.size()<=0)\n return 1;\n return filteredList.size();\n }",
"public long getItemCount() {\n\t\treturn this.getSize(data);\n\t}",
"public int getSize() {\n return list.size();\n }",
"public int size()\n\t{\n\t\treturn listSize;\n\t}",
"public int getItemCount();",
"@Override\n\tpublic int getCount() {\n\t\tIOUtils.printLogInfo(modelWishlist.size()+\"modelWishlist_SIZE\");\n\t\treturn modelWishlist.size();\n\t}",
"@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn listItems.size();\r\n\t\t}",
"public int getCount() {\n return app.getItems().length;\n }",
"public int getSize() \r\n {\r\n return list.size();\r\n }",
"public int numItemInList() {\n return nextindex - startIndex;\n }",
"public static int getCount(){\n\t\treturn countFor;\n\t}",
"public int getSize(){\n\t\tint size = list.size();\n\t\treturn size;\n\n\t}",
"public static int getCount() {\n\t\treturn count;\n\t}",
"public int getTotalItems()\n {\n return totalItems;\n }",
"int getItemSize();",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn BaseData.list.size();\n\t\t}",
"public int getCount() {\n\t\treturn count;\r\n\t}",
"public int size(){\n return items.size();\n }",
"@Override\n\t\tpublic int getCount() {\n\t\t\t// Show 3 total pages.\n\t\t\treturn 3;\n\t\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"public int getCount() {\n\t\treturn this.count;\n\t}",
"@Override\n public int getItemCount() {\n return mNumberItems;\n }",
"public int getCount() {\n\t\t\treturn count;\n\t\t}",
"public int getItemListLength() {\n\t\treturn inventoryList.size();\n\t}",
"public int getCount() {\n return Title.size();\n }",
"public int getSize() {\n synchronized (itemsList) {\n return itemsList.size();\n }\n }",
"public int getCount()\n\t{\n\t\treturn count;\n\t}",
"@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn listPerks!=null ? listPerks.size() :0;\r\n\t\t}",
"@Override\n\tpublic int getCount() {\n\t\tLog.i(\"\", lists.size() + \"---\");\n\t\treturn lists.size();\n\t}",
"@Override\n\t\tpublic int getCount() {\n\t\t\treturn listAdapterSize;\n\t\t}",
"public int getCount() {\n\t\treturn count;\n\t}",
"public int getCount() {\n\t\treturn count;\n\t}",
"public int getCount() {\n\t\treturn count;\n\t}",
"public int getCount() {\n\t\treturn count;\n\t}",
"public int getItemsCount() {\n if (itemsBuilder_ == null) {\n return items_.size();\n } else {\n return itemsBuilder_.getCount();\n }\n }",
"public int getItemCount() {\n checkWidget();\n return OS.SendMessage(handle, OS.TCM_GETITEMCOUNT, 0, 0);\n }",
"public int getCount() {\n\t\t\treturn mlistData.size();\n\t\t}",
"@Override\r\n\tpublic int getCount() {\n\t\treturn listmore.size();\r\n\t}"
] | [
"0.7663259",
"0.7663259",
"0.76521885",
"0.74543697",
"0.74388707",
"0.74245185",
"0.73998165",
"0.73822916",
"0.73798656",
"0.7368569",
"0.72622865",
"0.72561044",
"0.72401893",
"0.7224705",
"0.72216207",
"0.72216207",
"0.72156423",
"0.71754444",
"0.71562517",
"0.71213704",
"0.7121197",
"0.71155035",
"0.7096233",
"0.7088513",
"0.7069638",
"0.7056442",
"0.7052756",
"0.70525175",
"0.7045227",
"0.70426863",
"0.70201707",
"0.70201707",
"0.70201707",
"0.70142907",
"0.7012312",
"0.7006631",
"0.70013285",
"0.6978699",
"0.69710916",
"0.6931542",
"0.69301283",
"0.6921233",
"0.6904051",
"0.6897857",
"0.68939877",
"0.68928456",
"0.6892447",
"0.6891795",
"0.6888918",
"0.6887454",
"0.6887454",
"0.6885716",
"0.6882633",
"0.68712294",
"0.68666404",
"0.68666404",
"0.68666404",
"0.6843725",
"0.68429583",
"0.68378943",
"0.68367",
"0.68357944",
"0.68357944",
"0.6827826",
"0.68276435",
"0.68202347",
"0.6818001",
"0.6794949",
"0.6791753",
"0.6787053",
"0.6786343",
"0.67824364",
"0.67794317",
"0.6774896",
"0.677466",
"0.6773214",
"0.6765328",
"0.67598",
"0.6746552",
"0.6741584",
"0.6732103",
"0.6731888",
"0.6722353",
"0.6722353",
"0.6722114",
"0.6719679",
"0.6716843",
"0.6711388",
"0.66956663",
"0.6693293",
"0.6691562",
"0.66880065",
"0.6686763",
"0.668571",
"0.668571",
"0.668571",
"0.668571",
"0.6683726",
"0.6682789",
"0.667454",
"0.66742265"
] | 0.0 | -1 |
Get the data associated with the specified position in the list. | public Object getItem(int position) {
return null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn listData.get(position);\r\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mlistData.get(position);\n\t\t}",
"@Override\n public Object getItem(int position) {\n return listData.get(position);\n }",
"public ListData getItem(int position)\n {\n return values.get(position);\n }",
"public Object getItem(int position) {\n return dataList.get(position);\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn mDataList.get(position);\n\t}",
"@Override\n public Object getItem(int position) {\n return dataList.get(position);\n }",
"public Object getItem(int position) {\n return datalist.get(position);\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn dataList.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn dataList.get(position);\n\t}",
"public E getData(int pos) {\n\t\tif (pos >= 0 && pos < dataSize()) {\n\t\t\treturn data.get(pos);\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mDatas.get(position);\n\t\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn datalist.get(position);\n\t}",
"public String get(int position) {\r\n lastDataPosition = position;\r\n return data.get(lastDataPosition);\r\n }",
"E getData(int index);",
"@Override\n public Object getItem(int position) {\n return data.get(position);\n }",
"@Override\r\n public Object getItem(int position) {\n return data.get(position);\r\n }",
"public Object getItem(int position) {\n\t\treturn data.get(position);\r\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn data.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn data.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn data.get(position);\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn datas.get(position);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn datas.get(position);\r\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn datas.get(position);\n\t}",
"@Override\n public DataItemPosition getItem(int position) {\n return mDatas.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return data.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return data.get(position);\n }",
"@Nullable\n public T getItem(@IntRange(from = 0) int position) {\n if (position < mData.size())\n return mData.get(position);\n else\n return null;\n }",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn mData.get(position);\r\n\t}",
"public E get(int pos) {\n \t\n \tif (pos < 0 || pos > numItems) {\n throw new IndexOutOfBoundsException();\n }\n \t\n \t/*\n \tif (pos == numItems-1) {\n \t\treturn lastNode.getData();\n }\n \t*/\n \t\n \tDblListnode<E> n = items.getNext();\n for (int k = 0; k < pos; k++) {\n n = n.getNext();\n }\n return n.getData();\n }",
"public T get(int position)\n {\n if (position >= size || position < 0)\n {\n throw new IndexOutOfBoundsException(\"Item is out of bounds of the list\");\n }\n\n return (T) list[position];\n }",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn BaseData.list.get(position);\n\t\t}",
"public T get(int listIndex) {\n int treeIndex = searchIndex(listIndex);\n return this.getHelper(treeIndex).data;\n }",
"public Object getItem(int position) {\n return _data.get(position);\n }",
"public String get(int position)\n\t{\n\t\treturn data[position];\n\t}",
"@Override\n public Object getItem(int position) {\n if(datas != null && position < datas.size() && position >= 0){\n return datas.get(position);\n }\n return null;\n }",
"public T getData(int index){\n if(index < 0 || index >= data.size())\n return null;\n\n //give back the data\n return data.get(index);\n }",
"@Override\n\tpublic SquareLiveModel getItem(int position) {\n\t\treturn listData.get(position);\n\t}",
"public int getData(int index) {\n return data_.get(index);\n }",
"@Override\n\t\t\tpublic Object getItem(int position){\n\t\t\t\treturn list.get(position);\n\t\t\t}",
"@Override\r\n public Object getChild(int groupPosition, int childPosition) {\n return mDataList.get(\"\" + groupPosition).get(childPosition);\r\n }",
"@Override\n public Item getItem(int position) {\n return data.get(position);\n }",
"public int getData(int index) {\n return data_.get(index);\n }",
"@Override\r\n\tpublic Object getItem(int posstion) {\n\t\treturn list.get(posstion);\r\n\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n public Object getItem(int position) {\n return data;\n }",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn result.get(position);\n\t}",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\r\n public Object getItem(int position) {\n return list.get(position);\r\n }",
"@Override\r\n\t\tpublic Object getItem(int position) {\n\t\t\treturn list.get(position);\r\n\t\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn mlvData.get(position);\n\t}",
"public Integer get(int index){\n return list.get(index);\n }",
"default V item( int i ) { return getDataAt( indexOfIndex( i ) ); }",
"@Override\n public T get(int index) {\n return list.get(index);\n }",
"public Object getItem(int position) {\n\t\t\treturn list.get(position);\r\n\t\t}",
"T get(int position);",
"public Object get( int index )\n {\n\treturn _data[index];\n }",
"@Override\r\n\tpublic T get(int index) {\n\t\treturn this._list.get(index);\r\n\t}",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n public Object getItem(int position) {\n return list.get(position);\n }",
"@Override\n\t\tpublic Object getItem(int position) {\n\t\t\treturn mList.get(position);\n\t\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"public Object get (int pos) {\n\t\tif (pos < 0) {\n\t\t\tthrow new IllegalArgumentException (\n\t\t\t\t\t\"Argument to get must be at least 0.\");\n\t\t}\n\t\tif (pos >= size()) {\n\t\t\tthrow new IllegalArgumentException (\"Argument to get is too large.\");\n\t\t}\n\t\tint k = 0;\n\t\tfor (ListNode p = myHead; p != null; p = p.myNext) {\n\t\t\tif (k == pos) {\n\t\t\t\treturn p.myItem;\n\t\t\t}\n\t\t\tk++;\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object getItem(final int pos) {\n\t\treturn list.get(pos);\n\t}",
"@Override\n\tpublic String getItem(int position) {\n\t\treturn data.get(position);\n\t}",
"@Override\n public Object getItem(int item) {\n return dataList.get(item);\n }",
"public T get(int index) {\n return this.list[index];\n }",
"@Override\n public Object getItem(int position) {\n return mList.get(position);\n }",
"@Override\n\t\t\tpublic Object getItem(int position) {\n\t\t\t\tif (list!=null) {\n\t\t\t\t\treturn list.get(position);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"int getItem(int index);",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\r\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn lists.get( position);\n\t}",
"Object get()\n\t{\n\t\tif (length == 0 ) \n\t\t{\t\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on empty List\");\n\t\t}\n\t\tif (cursor == null\t) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call get() on cursor that is off the list\");\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn cursor.data;\n\t\t}\n\t}",
"@Override\n public Object getItem(int position) {\n return result.get(position);\n }",
"public T get(int pos) {\n if (pos > nrOfElements) {\n throw new IllegalArgumentException(\"Position out of range\");\n }\n\n // Get the first element\n if (pos == 1 || pos == 0) {\n return this.first.getData();\n }\n\n Node walker = this.first;\n for (int i = 0; i < pos - 1; i++) {\n walker = walker.next;\n }\n\n return walker.getData();\n }",
"@Override\r\n public Object getGroup(int groupPosition) {\n return mDataList.get(\"\" + groupPosition);\r\n }",
"@Override\n\tpublic T get(int index) {\n\t\tif (index >= 0 && index < size) {\n\t\t\treturn data[index];\n\t\t}\n\t\treturn null;\n\t}",
"public T get(int index) {\n return list.get(index);\n }",
"public Object getItem(int arg0) {\n\t\t\treturn dataList.get(arg0);\r\n\t\t}",
"public abstract Object get(int pos) throws IndexOutOfBoundsException;",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn dataSource.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}",
"@Override\n\tpublic Object getItem(int position) {\n\t\treturn list.get(position);\n\t}"
] | [
"0.72820246",
"0.72739184",
"0.7202337",
"0.7182795",
"0.7128945",
"0.7125719",
"0.7092692",
"0.7071994",
"0.7030282",
"0.7030282",
"0.7018749",
"0.69829845",
"0.6965652",
"0.6953013",
"0.6949147",
"0.6921494",
"0.6912498",
"0.6909801",
"0.69017",
"0.69017",
"0.69017",
"0.68577266",
"0.68577266",
"0.682632",
"0.68205196",
"0.68169016",
"0.68169016",
"0.6798795",
"0.67768484",
"0.67645496",
"0.674183",
"0.671988",
"0.67041445",
"0.67022276",
"0.669794",
"0.66974926",
"0.6674657",
"0.66449803",
"0.661664",
"0.65611064",
"0.6538162",
"0.651532",
"0.64830124",
"0.6468743",
"0.64533675",
"0.64533675",
"0.64533675",
"0.6430111",
"0.64277357",
"0.64174813",
"0.6415465",
"0.64068794",
"0.63985693",
"0.6391777",
"0.636832",
"0.636769",
"0.6364694",
"0.6360923",
"0.6350305",
"0.6348954",
"0.6340286",
"0.63319314",
"0.63319314",
"0.63319314",
"0.63319314",
"0.63319314",
"0.63319314",
"0.6326222",
"0.63172895",
"0.63172895",
"0.63172895",
"0.63172895",
"0.6307184",
"0.62931055",
"0.62892425",
"0.62880206",
"0.62765026",
"0.62739944",
"0.62703496",
"0.62596804",
"0.62596804",
"0.62596804",
"0.62567574",
"0.6251546",
"0.6238429",
"0.6233575",
"0.62285846",
"0.6226084",
"0.6224439",
"0.62180793",
"0.621489",
"0.62147063",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936",
"0.62101936"
] | 0.0 | -1 |
Get the row id associated with the specified position in the list. | public long getItemId(int position) {
return position;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getIdForRow(int row);",
"public static int getRowIdFromDb() {\n // get DB helper\n mDbHelper = PointOfSaleDb.getInstance(context);\n\n // Each row in the list stores amount and date of transaction -- retrieves history from DB\n SQLiteDatabase db = mDbHelper.getReadableDatabase();\n\n // get the following columns:\n String[] tableColumns = { PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT,\n \"_ROWID_\"};// getting also _ROWID_ to save the txID after getting the response\n\n String sortOrder = PointOfSaleDb.TRANSACTIONS_COLUMN_CREATED_AT + \" DESC\";\n Cursor c = db.query(PointOfSaleDb.TRANSACTIONS_TABLE_NAME, tableColumns, null, null, null, null, sortOrder);\n int rowId=0;\n if(c.moveToFirst()) {\n rowId = Integer.parseInt(c.getString(1));\n }\n return rowId;\n }",
"@Override\n\tpublic long getItemId(int position) {\n\t\treturn list.get(position).getId();\n\t}",
"public long getItemId(int position) {\n return _data.get(position).getUID();\n }",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn itemList.get(position).id;\n\t\t}",
"public String getRowID(int i) {\n \treturn rowID[i];\n }",
"public long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"public long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"public long getItemId(int position) { \n\t return position; \n\t }",
"public long getItemId(int position) {\r\n\t\treturn position;\r\n\t}",
"public String getUniqueId(int row);",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"int getRowId();",
"public long getItemId(int position) {\n\t\treturn position;\n\t}",
"public long getItemId(int position) {\n\t\treturn position;\n\t}",
"public long getItemId(int position) {\n\t\treturn position;\n\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn (Long) mListItems.get(position).get(\"id\");\n\t\t}",
"@Override\n public long getItemId(int position) {\n return listInfoList.get(position).id;\n }",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\tpublic long getItemId(int position)\n\t\t{\n\t\t\treturn position;\n\t\t}",
"@Override\n\t\t\tpublic long getItemId(int position){\n\t\t\t\treturn position;\n\t\t\t}",
"@Override\n\t\t\tpublic long getItemId(int position){\n\t\t\t\treturn position;\n\t\t\t}",
"public long getItemId(int position) {\n\t return position;\n\t }",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"@Override\r\n\t\tpublic long getItemId(int position) {\n\t\t\treturn position;\r\n\t\t}",
"public abstract long getItemId(int position);",
"public long getItemId(int position) {\n return position;\n }",
"public long getItemId(int position) {\n return position;\n }",
"public long getItemId(int position) {\n return position;\n }",
"public long getItemId(int position) {\n return position;\n }",
"public long getItemId(int position) {\n return position;\n }",
"public long getItemId(int position) {\n return position;\n }",
"@Override\n\t\t\tpublic long getItemId(int position) {\n\t\t\t\treturn position;\n\t\t\t}",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"public int getRowId() {\n return rowId_;\n }",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}",
"@Override\r\n\tpublic long getItemId(int position) {\n\t\treturn position;\r\n\t}"
] | [
"0.69481605",
"0.66123194",
"0.6571436",
"0.65488386",
"0.6542914",
"0.65157574",
"0.65059495",
"0.65059495",
"0.6489457",
"0.64832616",
"0.64832616",
"0.64832616",
"0.64832616",
"0.64832616",
"0.64832616",
"0.64832616",
"0.64832616",
"0.6473032",
"0.6470207",
"0.6464281",
"0.6463293",
"0.6463293",
"0.6463293",
"0.6463293",
"0.6463293",
"0.64586747",
"0.64586747",
"0.64586747",
"0.64376724",
"0.6435367",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.640577",
"0.6393593",
"0.6386077",
"0.6386077",
"0.63816035",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63752836",
"0.63672227",
"0.6364147",
"0.6364147",
"0.6364147",
"0.6364147",
"0.6364147",
"0.6364147",
"0.6363576",
"0.63543385",
"0.63543385",
"0.63543385",
"0.63543385",
"0.63543385",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421",
"0.6348421"
] | 0.63549745 | 82 |
Get a View that displays the data at the specified position in the list. | public View getView(int position, View convertView, ViewGroup parent) {
if (!mDataValid) {
throw new IllegalStateException(
"this should only be called when the cursor is valid");
}
if (position < 0 || position > mCount) {
throw new AssertionError(
"BrowserBookmarksAdapter tried to get a view out of range");
}
if (mViewMode == BookmarkViewMode.GRID) {
if (convertView == null || convertView instanceof AddNewBookmark
|| convertView instanceof BookmarkItem) {
LayoutInflater factory = LayoutInflater.from(mBookmarksPage);
convertView
= factory.inflate(R.layout.bookmark_thumbnail, null);
}
View holder = convertView.findViewById(R.id.holder);
ImageView thumb = (ImageView) convertView.findViewById(R.id.thumb);
TextView tv = (TextView) convertView.findViewById(R.id.label);
if (0 == position && mNeedsOffset) {
// This is to create a bookmark for the current page.
holder.setVisibility(View.VISIBLE);
tv.setText(mCurrentTitle);
if (mCurrentThumbnail != null) {
thumb.setImageBitmap(mCurrentThumbnail);
} else {
thumb.setImageResource(
R.drawable.browser_thumbnail);
}
return convertView;
}
holder.setVisibility(View.GONE);
mCursor.moveToPosition(position - mExtraOffset);
tv.setText(mCursor.getString(
Browser.HISTORY_PROJECTION_TITLE_INDEX));
Bitmap thumbnail = getBitmap(Browser.HISTORY_PROJECTION_THUMBNAIL_INDEX, position);
if (thumbnail == null) {
thumb.setImageResource(R.drawable.browser_thumbnail);
} else {
thumb.setImageBitmap(thumbnail);
}
return convertView;
}
if (position == 0 && mNeedsOffset) {
AddNewBookmark b;
if (convertView instanceof AddNewBookmark) {
b = (AddNewBookmark) convertView;
} else {
b = new AddNewBookmark(mBookmarksPage);
}
b.setUrl(mCurrentPage);
return b;
}
if (mMostVisited) {
if (convertView == null || !(convertView instanceof HistoryItem)) {
convertView = new HistoryItem(mBookmarksPage);
}
} else {
if (convertView == null || !(convertView instanceof BookmarkItem)) {
convertView = new BookmarkItem(mBookmarksPage);
}
}
bind((BookmarkItem) convertView, position);
if (mMostVisited) {
((HistoryItem) convertView).setIsBookmark(
getIsBookmark(position));
}
return convertView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Item item = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_layout, parent, false);\n }\n\n // Lookup view for data population\n TextView tvName = convertView.findViewById(R.id.item_textview);\n TextView tvNum = convertView.findViewById(R.id.num_textview);\n\n // TODO\n // Set the text used by tvName and tvNum using the data object\n // This will need to updated once the entity model has been updated\n tvName.setText(item.getName());\n tvNum.setText(item.getNum());\n\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Patient r = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_room, parent, false);\n }\n // Lookup view for data population\n TextView nr = (TextView) convertView.findViewById(R.id.item_room_number);\n // Populate the data into the template view using the data object\n nr.setText(r.getName());\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public RemoteViews getViewAt(int position) {\n if (!mCursor.moveToPosition(position)) {\n return null;\n }\n\n //Doc: https://developer.android.com/reference/android/widget/RemoteViews.html\n RemoteViews views = new RemoteViews(EApplication.getInstance().getPackageName(), R.layout.list_item_quote);\n\n //Get a quote object from cursor\n Quote quote = new Quote(mCursor);\n\n //Set Symbol\n views.setTextViewText(R.id.stock_symbol, quote.getSymbol());\n\n //Set bid price\n views.setTextViewText(R.id.bid_price, quote.getBidPrice());\n\n //Set pill bg\n if (quote.isUp()) {\n views.setInt(R.id.change, \"setBackgroundResource\", R.drawable.percent_change_pill_green);\n } else {\n views.setInt(R.id.change, \"setBackgroundResource\", R.drawable.percent_change_pill_red);\n }\n\n //Show changes based on preference\n if (Utils.showPercent) {\n views.setTextViewText(R.id.change, quote.getPercentChange());\n } else {\n views.setTextViewText(R.id.change, quote.getChange());\n }\n\n //Send the whole quotes object through\n Intent fillInIntent = new Intent();\n fillInIntent.putExtra(IntentExtras.QUOTE, quote);\n views.setOnClickFillInIntent(R.id.stock_list_item, fillInIntent); //R.id.stock_list_item is the container main container in list view item layout\n return views;\n }",
"public View getViewAtPosition(int i) {\n \tListView listView = getListView();\n \treturn listView.getChildAt(i - listView.getFirstVisiblePosition());\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n //View view = convertView;\n//in this view layoutinflator we inflate listmodel\n View view = LayoutInflater.from(context).inflate(R.layout.list_model, parent,false);\n //initialising the textviews from the .xml file\n TextView textView = view.findViewById(R.id.textView);\n TextView textView2 = view.findViewById(R.id.textView2);\n TextView textView3 = view.findViewById(R.id.textView3);\n //creating object where we get the position the model obj\n model = new Model();\n model = modelList.get(position);\n //here it sets the values of the model obj\n textView.setText(model.getName());\n textView2.setText(model.getVotes());\n textView3.setText(model.getId());\n\n return view;\n }",
"public View getView(int position, View view, ViewGroup parent){\n LayoutInflater inflater=context.getLayoutInflater();\n View list=inflater.inflate(R.layout.layout_track,null,true);\n\n //now to access the textview\n TextView textViewartist=list.findViewById(R.id.textViewArtistName);\n TextView textViewrating=list.findViewById(R.id.textViewRating);\n\n //bind the data\n\n Track artist=track.get(position);\n textViewartist.setText(artist.getTrackname());\n textViewrating.setText(String.valueOf(artist.getrating()));\n\n return list;\n\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n\n View v = convertView;\n TextView id, name, number;\n\n if (v == null) {\n\n v = inflater.inflate(R.layout.contact_list_item, parent, false);\n }\n\n id = (TextView) v.findViewById(R.id.identity);\n name = (TextView) v.findViewById(R.id.name);\n number = (TextView) v.findViewById(R.id.number);\n\n contacts.moveToPosition(position);\n\n id.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"_id\")));\n name.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"display_name\")));\n number.setText(contacts.getString(contacts.getColumnIndexOrThrow(\"data1\")));\n\n\n return v;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n HighScoreItem item = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_name, parent, false);\n }\n // Lookup view for data population\n TextView tvPosition = (TextView) convertView.findViewById(R.id.tvPosition);\n TextView tvName = (TextView) convertView.findViewById(R.id.tvName);\n TextView tvHome = (TextView) convertView.findViewById(R.id.tvScore);\n // Populate the data into the template view using the data object\n tvPosition.setText(Integer.toString(counter));\n counter++;\n tvName.setText(item.name);\n tvHome.setText(Integer.toString(item.score));\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Room r = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_room, parent, false);\n }\n // Lookup view for data population\n TextView nr = (TextView) convertView.findViewById(R.id.item_room_number);\n // Populate the data into the template view using the data object\n nr.setText(r.getId()+\"\");\n // Return the completed view to render on screen\n return convertView;\n }",
"@SuppressLint(\"SetTextI18n\")\n @Override\n public View getView(int position, View view, ViewGroup viewGroup) {\n ViewHolder holder;\n if (view == null) {\n view = inflater.inflate(R.layout.scoreboard_layout, viewGroup, false);\n holder = new ViewHolder();\n\n holder.rank = view.findViewById(R.id.rank);\n holder.playerName = view.findViewById(R.id.playerName);\n holder.pokemonNum = view.findViewById(R.id.pokemonNum);\n holder.pokemonLV = view.findViewById(R.id.pokemonLV);\n\n view.setTag(holder);\n } else holder = (ViewHolder) view.getTag();\n\n Player player = playerList.get(position);\n holder.rank.setText(position + 1 + \". \");\n holder.playerName.setText(player.getName() + \" (\" + player.getGender() + \")\");\n holder.pokemonNum.setText(player.getPokemonList().size() + \"\");\n holder.pokemonLV.setText(player.getPlayerPokemonMaxLV() + \"\");\n\n return view;\n }",
"@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n View vi = convertView;\r\n if (vi == null)\r\n vi = inflater.inflate(R.layout.list_view_rank, null);\r\n\r\n String mine = data.get(position);\r\n TextView number = (TextView) vi.findViewById(R.id.nr);\r\n TextView score = (TextView) vi.findViewById(R.id.score);\r\n TextView name = (TextView) vi.findViewById(R.id.name);\r\n TextView place = (TextView) vi.findViewById(R.id.place);\r\n\r\n String[] objectProperties = TextUtils.split(mine, \"/\");\r\n\r\n number.setText((position + 1) + \".\");\r\n score.setText(objectProperties[0].toString());\r\n name.setText(objectProperties[1].toString());\r\n place.setText(objectProperties[2].toString());\r\n\r\n return vi;\r\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Forms form = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.form_data, parent, false);\n }\n // Lookup view for data population\n TextView formName = (TextView) convertView.findViewById(R.id.name_form_adapter);\n TextView formDate = (TextView) convertView.findViewById(R.id.date_form_adapter);\n TextView formCategory = (TextView) convertView.findViewById(R.id.category_form_adapter);\n TextView formComment = (TextView) convertView.findViewById(R.id.comments_form_adapter);\n // Populate the data into the template view using the data object\n formName.setText(form.getFormName());\n formDate.setText(form.getDateTime());\n formCategory.setText(form.getFormCategory());\n formComment.setText(form.getFormSomethingElse());\n // Return the completed view to render on screen\n return convertView;\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n ViewHolder holder;\n\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);\n holder = new ViewHolder(convertView);\n convertView.setTag(holder);\n } else {\n holder = (ViewHolder) convertView.getTag();\n }\n\n Book book = getItem(position);\n\n String bookTitle = book.getTitle();\n String bookAuthor = book.getAuthor();\n\n holder.titleTextView.setText(bookTitle);\n holder.authorTextView.setText(bookAuthor);\n\n return convertView;\n }",
"@Override\r\n\t\tpublic Object instantiateItem(ViewGroup container, int position) {\n\t\t\tcontainer.addView(viewList.get(position));\r\n\t\t\treturn viewList.get(position);\r\n\t\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Tutor tutor = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_tutor_preview, parent, false);\n }\n // Lookup view for data population\n TextView firstName = (TextView) convertView.findViewById(R.id.name);\n TextView userName = (TextView) convertView.findViewById(R.id.username);\n TextView specialization = (TextView) convertView.findViewById(R.id.specialization);\n TextView education = (TextView) convertView.findViewById(R.id.education);\n TextView bio = (TextView) convertView.findViewById(R.id.bio);\n RatingBar stars = (RatingBar) convertView.findViewById(R.id.ratingBar);\n\n // Populate the data into the template view using the data object\n firstName.setText(tutor.getFirstName());\n userName.setText(\"(\"+tutor.getUserName()+\")\");\n specialization.setText(tutor.getSpecialization());\n education.setText(tutor.getEducation());\n bio.setText(tutor.getBio());\n stars.setRating(tutor.getRating());\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\treturn listlayout.get(position);\n\n\t\t}",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\treturn listlayout.get(position);\n\n\t\t}",
"@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder viewHolder;\r\n\t\tif (convertView == null) {\r\n\t\t\tviewHolder = new ViewHolder();\r\n\t\t\tconvertView = InjectProcessor.injectListViewHolder(viewHolder);\r\n\t\t\tconvertView.setTag(viewHolder);\r\n\t\t} else {\r\n\t\t\tviewHolder = (ViewHolder) convertView.getTag();\r\n\t\t}\r\n\t\tminfo = models.get(position);\r\n\t\tviewHolder.image.setImageUrl(minfo.getImagesrc(),\r\n\t\t\t\tHttpRequest.getInstance().imageLoader);\r\n\t\tviewHolder.name.setText(minfo.getTitle());\r\n\t\treturn convertView;\r\n\t}",
"@NonNull\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.newsfeed_list_item, parent, false);\n }\n\n // Find the newsfeed at the given position in the list of newsfeeds\n NewsFeed currentNewsFeed = getItem(position);\n\n\n TextView newsFeedTitle = listItemView.findViewById(R.id.newsFeedTitle);\n newsFeedTitle.setText(currentNewsFeed.getNewsFeedTitle());\n TextView newsFeedBodyText = listItemView.findViewById(R.id.newsFeedBodyText);\n newsFeedBodyText.setText(currentNewsFeed.getNewsFeedBodyText());\n TextView newsFeedSection = listItemView.findViewById(R.id.newsFeedSection);\n newsFeedSection.setText(currentNewsFeed.getNewsFeedSection());\n TextView newsFeedPublicationDate = listItemView.findViewById(R.id.newsFeedPublicationDate);\n String formatedPublicationDate = formatDate(currentNewsFeed.getNewsFeedPublicationDate());\n newsFeedPublicationDate.setText(formatedPublicationDate);\n TextView newsFeedContributor = listItemView.findViewById(R.id.newsFeedContributor);\n newsFeedContributor.setText(currentNewsFeed.getNewsFeedContributor());\n\n\n // Return the list item view that is now showing the appropriate data\n return listItemView;\n }",
"@Override\n\tprotected String getView() {\n\t\treturn ORSView.COLLEGE_LIST_VIEW;\n\t}",
"@Override\r\n public Object instantiateItem(ViewGroup container, int position) {\n container.addView(mListViews.get(position), 0);\r\n return mListViews.get(position);\r\n }",
"@NonNull\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if(listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_items_3, parent, false);\n }\n\n //Get the current position of the subscription in the listview and update accordingly\n Subscription currentSubscription = getItem(position);\n\n TextView nameTextView = (TextView) listItemView.findViewById(R.id.listName);\n\n nameTextView.setText(currentSubscription.getName());\n\n TextView dateTextView = (TextView) listItemView.findViewById(R.id.listDate);\n\n dateTextView.setText(\"Date: \"+ currentSubscription.getDate());\n\n TextView chargeTextView = (TextView) listItemView.findViewById(R.id.listCharge);\n\n chargeTextView.setText(\"Charge: \"+ currentSubscription.getCharge());\n\n TextView commentTextView = (TextView) listItemView.findViewById(R.id.listComment);\n\n commentTextView.setText(\"Comment: \"+ currentSubscription.getComment());\n\n return listItemView;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tView view = LayoutInflater.from(getActivity()).inflate(R.layout.discovery_fragment_listitem, null);\n\t\t\tImageView icon = (ImageView)view.findViewById(R.id.itemIcon);\n\t\t\tTextView textView = (TextView)view.findViewById(R.id.itemTv);\n\t\t\tImageView inImageView = (ImageView)view.findViewById(R.id.itemInImg);\n\t\t\t\n\t\t\ticon.setImageResource(imgs[position]);\n\t\t\ttextView.setText(names[position]);\n\t\t\tinImageView.setImageResource(R.drawable.in);\n\t\t\treturn view;\n\t\t}",
"@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tView view = getLayoutInflater(getArguments()).inflate(\r\n\t\t\t\t\tR.layout.layout_myorder_listview, null);\r\n\t\t\tTextView textView = (TextView) view.findViewById(R.id.tv_myorder);\r\n\t\t\ttextView.setText(listData.get(position));\r\n\t\t\treturn view;\r\n\t\t}",
"private void showCursorAdaptView() {\n\t\tCursor cursor = personService.getCursor(0, personService.getCnt());\n\t\tSimpleCursorAdapter adapter = new SimpleCursorAdapter(this, R.layout.listview_item, cursor,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(adapter);\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Game game = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.row_game, parent, false);\n }\n // Lookup view for data population\n TextView gameName = (TextView) convertView.findViewById(R.id.gameName);\n TextView gameId = (TextView) convertView.findViewById(R.id.gameId);\n // Populate the data into the template view using the data object\n gameName.setText(game.name);\n gameId.setText(game.ID);\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public RemoteViews getViewAt(int position) {\n RemoteViews views = new RemoteViews(context.getPackageName(), android.R.layout.simple_list_item_1);\n// views.setTextViewText(android.R.id.text1, String.format(context.getString(R.string.ingredients_detail)\n// , ingredient.getQuantity(), ingredient.getMeasure(), ingredient.getIngredient()));\n views.setTextViewText(android.R.id.text1, remoteViewingredientsList.get(position));\n Log.d(TAG, \"getViewAt: \"+position+ingredientforwidget);\n return views; }",
"@Override\n\tpublic View getView(int position, View contentView, ViewGroup parentView)\n\t{\n\t\tListItemView listItemView = null;\n\t\tif (contentView == null)\n\t\t{\n\t\t\tcontentView = layout.inflate(this.viewSource, null);\n\t\t\tlistItemView = new ListItemView();\n\t\t\tlistItemView.txtType = (TextView) contentView\n\t\t\t\t\t.findViewById(R.id.text_contact_type);\n\t\t\tlistItemView.txtNumber = (TextView) contentView\n\t\t\t\t\t.findViewById(R.id.text_type_number);\n\n\t\t\tcontentView.setTag(listItemView);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlistItemView = (ListItemView) contentView.getTag();\n\t\t}\n\t\tString strVal = listValue.get(position);\n\t\tif (strVal != \"\")\n\t\t{\n\t\t\tString[] arr = strVal.split(\",\");\n\t\t\t\n\t\t\tString id = arr[0];\n\t\t\tString count = arr[1];\n\n\t\t\tlistItemView.txtNumber.setText(\"[ \" + count +\" ]\");\n\t\t\tlistItemView.txtNumber.setTag(id);\n\t\t}\n\n\t\tlistItemView.txtType.setText(listKey.get(position));\n\t\treturn contentView;\n\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItem = convertView;\n int pos = position;\n\n if(listItem == null){\n listItem = layoutInflater.inflate(R.layout.item_list, null);\n }\n\n //Colocando na tela os elementos da busca\n ImageView iv = (ImageView) listItem.findViewById(R.id.thumb);\n TextView tvTitle = (TextView) listItem.findViewById(R.id.title);\n TextView tvDate = (TextView) listItem.findViewById(R.id.date);\n\n //aplicando as views no form_contato\n imageLoader.DisplayImage(feed.getItem(pos).getImage(), iv);\n tvTitle.setText(feed.getItem(pos).getTitle());\n tvDate.setText(feed.getItem(pos).getDate());\n\n return listItem;\n }",
"@NonNull\n @Override\n public View getView(final int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n\n //we need to get the view of the xml for our list item\n //And for this we need a layoutinflater\n LayoutInflater layoutInflater = LayoutInflater.from(context);\n\n //getting the view\n View view = layoutInflater.inflate(resource, null, false);\n\n int id=view.getId();\n\n //getting the view elements of the list from the view\n ImageView imageView = (ImageView)view.findViewById(R.id.icon);\n TextView textViewName = (TextView)view.findViewById(R.id.company_name);\n TextView textViewTeam = (TextView)view.findViewById(R.id.subcompany_name);\n\n\n //getting the companyObj of the specified position\n CompanyUser companyObj = companyObjList.get(position);\n\n //adding values to the list item\n imageView.setImageDrawable(context.getResources().getDrawable(companyObj.getImage()));\n textViewName.setText(companyObj.getCompany());\n textViewTeam.setText(companyObj.getCompany_location());\n //trial\n\n //finally returning the view\n return view;\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View songInfoView = convertView;\n if (songInfoView == null) {\n songInfoView = LayoutInflater.from(getContext()).inflate(\n R.layout.songs_list, parent, false);\n }\n\n Song currentSong = getItem(position);\n TextView artist = songInfoView.findViewById(R.id.artist);\n artist.setText(currentSong.getArtist());\n TextView title = songInfoView.findViewById(R.id.title);\n title.setText(currentSong.getTitle());\n\n return songInfoView;\n }",
"@Override\n public Object getItem(int position) {\n return dataList.get(position);\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n // Get the data item for this position\n Player player = getItem(position);\n\n ViewHolder viewHolder;\n\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n viewHolder = new ViewHolder();\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.listview_row_users, parent, false);\n viewHolder.display_image = (ImageView) convertView.findViewById(R.id.display_user_image);\n viewHolder.display_name = (TextView) convertView.findViewById(R.id.display_user_name);\n\n convertView.setTag(viewHolder);\n } else {\n viewHolder = new ViewHolder();\n viewHolder.display_image = (ImageView) convertView.findViewById(R.id.display_user_image);\n viewHolder.display_name = (TextView) convertView.findViewById(R.id.display_user_name);\n }\n\n // Populate the data into the template view using the data object\n viewHolder.display_image.setImageResource(player.getImage());\n viewHolder.display_name.setText(player.getName());\n\n// Return the completed view to render on screen\n return convertView;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tViewHolder holder;\n\t\t\tif (convertView == null) {\n\t\t\t\tconvertView = View.inflate(MainActivity.this, \n\t\t\t\t\t\tR.layout.demo_list_item, null);\n\t\t\t\tholder = new ViewHolder();\n\t\t\t\tholder.tvLable = (TextView)convertView.findViewById(R.id.label);\n\t\t\t\tholder.tvDesc = (TextView)convertView.findViewById(R.id.desc);\n\t\t\t\tconvertView.setTag(holder);\n\t\t\t} else {\n\t\t\t\tholder = (ViewHolder)convertView.getTag();\n\t\t\t}\n\n\t\t\tholder.tvLable.setText(demos[position].lable);\n\t\t\tholder.tvDesc.setText(demos[position].desc);\n\n\t\t\treturn convertView;\n\t\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.item_layout, parent, false);\n }\n // get the current object located at position\n ItemObject currentObject = getItem(position);\n // Find the TextView in the list_item.xml layout with the ID version_name\n TextView nameTextView = listItemView.findViewById(R.id.item_name);\n nameTextView.setText(currentObject.getPlanetName());\n ImageView itemImage = listItemView.findViewById(R.id.item_img);\n itemImage.setImageResource(currentObject.getImageID());\n return listItemView;\n }",
"@Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View listItemView = convertView;\n if(listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.layout_movie, parent, false);\n }\n\n\n // Get the {@link AndroidFlavor} object located at this position in the list\n MovieImageData currentMovieData = getItem(position);\n\n ImageView poster = (ImageView) listItemView.findViewById(R.id.imageview_cover_art);\n Picasso.with(getContext()).load(\"http://image.tmdb.org/t/p/w185/\"+ currentMovieData.getImage()).into(poster);\n\n TextView mtitle = listItemView.findViewById(R.id.textview_movie_name);\n mtitle.setText(currentMovieData.getTitle());\n\n Log.i(LOG_TAG, currentMovieData.getImage());\n\n return listItemView;\n\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n if (list != null) {\n return list.get(position);\n }\n return null;\n }",
"public View getView(int n) {\n return view;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView view = inflater.inflate(R.layout.contact_item, null);\n\t\ttv_name = (TextView)view.findViewById(R.id.name);\n\t\ttv_number = (TextView)view.findViewById(R.id.number);\n\t\t\n\t\tContactInfo info = contacts.get(position);\n\t\ttv_name.setText(info.getName());\n\t\ttv_number.setText(info.getNumber());\n\t\t\n\t\treturn view;\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView; // initialise recycler view\n if (listItemView == null) { // if there are no views to recycle, inflate a view\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_item, parent, false);\n }\n\n Song currentSong = getItem(position);\n\n TextView artistTextView = (TextView) listItemView.findViewById(R.id.artist);\n artistTextView.setText(currentSong.getArtistName());\n\n TextView albumTextView = (TextView) listItemView.findViewById(R.id.album);\n albumTextView.setText(currentSong.getAlbum());\n\n TextView songTextView = (TextView) listItemView.findViewById(R.id.song);\n songTextView.setText(currentSong.getSong());\n\n ImageView albumCover = (ImageView) listItemView.findViewById(R.id.album_cover);\n albumCover.setImageResource(currentSong.getImageId());\n\n return listItemView;\n }",
"@Override\n\tpublic View getView(int position, View view, ViewGroup arg2) {\n\t\tViewHolder holder;\n\t\tif (view == null) {\n\t\t\tview = LayoutInflater.from(mContext).inflate(\n\t\t\t\t\tR.layout.list_fwxxbyid, null);\n\t\t\tholder = new ViewHolder();\n\t\t\tholder.tv_fwxxbyid_title = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_title);\n\t\t\tholder.tv_fwxxbyid_fwlx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_fwlx);\n\t\t\tholder.tv_fwxxbyid_shi = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_shi);\n\t\t\tholder.tv_fwxxbyid_ting = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_ting);\n\t\t\tholder.tv_fwxxbyid_zj = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_zj);\n\t\t\tholder.tv_fwxxbyid_qx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_qx);\n\t\t\tholder.tv_fwxxbyid_jd = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_jd);\n\t\t\tholder.tv_fwxxbyid_date = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_date);\n\t\t\tholder.tv_fwxxbyid_fwxx = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_fwxx);\n\t\t\tholder.tv_fwxxbyid_lxr = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_lxr);\n\t\t\tholder.tv_fwxxbyid_telephone = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_fwxxbyid_telephone);\n\t\t\tholder.iv_fwxxbyid_phone = (ImageView) view\n\t\t\t\t\t.findViewById(R.id.iv_fwxxbyid_phone);\n\t\t\tholder.iv_fwxxbyid_message = (ImageView) view\n\t\t\t\t\t.findViewById(R.id.iv_fwxxbyid_message);\n\t\t\tview.setTag(holder);\n\t\t} else {\n\t\t\tholder = (ViewHolder) view.getTag();\n\t\t}\n\n\t\tFwxxById fwxxById = this.mFwxxByID;\n\n\t\tholder.tv_fwxxbyid_title.setText(fwxxById.getTitle().toString());\n\t\tholder.tv_fwxxbyid_fwlx.setText(fwxxById.getFwlx().toString());\n\t\tholder.tv_fwxxbyid_shi.setText(fwxxById.getShi().toString());\n\t\tholder.tv_fwxxbyid_ting.setText(fwxxById.getTing().toString());\n\t\tholder.tv_fwxxbyid_zj.setText(fwxxById.getZj().toString());\n\t\tholder.tv_fwxxbyid_qx.setText(fwxxById.getQx().toString());\n\t\tholder.tv_fwxxbyid_jd.setText(fwxxById.getJd().toString());\n\t\tholder.tv_fwxxbyid_date.setText(fwxxById.getDate().toString());\n\t\tholder.tv_fwxxbyid_fwxx.setText(fwxxById.getFwxx().toString());\n\t\tholder.tv_fwxxbyid_lxr.setText(fwxxById.getLxr().toString());\n\t\tholder.tv_fwxxbyid_telephone\n\t\t\t\t.setText(fwxxById.getTelephone().toString());\n\n\t\t// 保存电话号码\n\t\tphoneCode = holder.tv_fwxxbyid_telephone.getText().toString();\n\n\t\t// 打电话监听\n\t\tholder.iv_fwxxbyid_phone.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tIntent intent = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"\n\t\t\t\t\t\t+ phoneCode));\n\t\t\t\tmContext.startActivity(intent);\n\t\t\t}\n\t\t});\n\t\t\n\t\t// 发短信\n\t\tholder.iv_fwxxbyid_message.setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tDialog dialog = new MyDialogSms(mContext,R.style.MyDialog_style_NoTitle);\n\t\t\t\tdialog.show();\n\t\t\t}\n\t\t});\n\t\treturn view;\n\t}",
"@Override\n\tpublic View getView(int position) {\n\t\treturn pagerFragments.get(position).getContent();\n\t}",
"@Override\n\t\tpublic View instantiateItem(ViewGroup container, int position) {\n\t\t\tToast.makeText(getBaseContext(), \"item instantiated\", Toast.LENGTH_SHORT).show();\n\t\t\treturn list.get(position);\n\t\t}",
"@Override\n\t\t\t\t\t\tpublic View getView(int position, View convertView,\n\t\t\t\t\t\t\t\tViewGroup parent) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tViewHolder holder;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (convertView == null) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tconvertView = mInflater.inflate(R.layout.listview_history, null);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t holder = new ViewHolder();\n\n\t\t\t\t\t\t\t\t /*得到各个控件的对象*/ \n\t\t\t\t\t\t\t\t holder.title = (TextView)convertView.findViewById(R.id.title);\n\t\t\t\t\t\t\t\t holder.info = (TextView)convertView.findViewById(R.id.info);\n\t\t\t\t\t\t\t\t holder.number = (TextView)convertView.findViewById(R.id.number);\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t//绑定ViewHolder对象\n\t\t\t\t\t\t\t\t convertView.setTag(holder);\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//取出ViewHolder对象 \n\t\t\t\t\t\t\t\t\tholder = (ViewHolder)convertView.getTag();\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tholder.title.setText(getDate().get(position).get(\"title\").toString());\n\t\t\t\t\t\t\t\t\tholder.info.setText(getDate().get(position).get(\"info\").toString());\n\t\t\t\t\t\t\t\t\tholder.number.setText(getDate().get(position).get(\"number\").toString());\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\treturn convertView;\n\t\t\t\t\t\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Country country = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.list_country_adapter, parent, false);\n }\n // Lookup view for data population\n ImageView img = (ImageView) convertView.findViewById(R.id.listViewImage);\n TextView txt = (TextView) convertView.findViewById(R.id.listViewText);\n\n // Populate the data into the template view using the data object\n System.out.println(country.getImageList());\n img.setImageResource(country.getImageList());\n txt.setText(country.getName());\n\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public ListViewItem getItem(int position) {\n return list.get(position);\n }",
"@Override\n public RemoteViews getViewAt(int position) {\n RemoteViews remoteViews = new RemoteViews(mContext.getPackageName(), R.layout.my_widget_item);\n remoteViews.setTextViewText(R.id.textView_widget_stock,mStocks.get(position).symbol);\n remoteViews.setTextViewText(R.id.textView_widget_change,mStocks.get(position).change);\n\n // Create pending intent template that will be filled. This intent will fire a broadcast\n // that when received will start activity relevant to the stock selected.\n Bundle bundle = new Bundle();\n bundle.putString(QuoteColumns.SYMBOL,mStocks.get(position).symbol);\n\n // Fill the template intent\n Intent fillIntent = new Intent();\n fillIntent.putExtras(bundle);\n\n // Assign the click event to the view that will call the filling intent when clicked\n remoteViews.setOnClickFillInIntent(R.id.layout_content,fillIntent);\n\n return remoteViews;\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_item, parent, false);\n }\n\n //Get the (@link Location) object located at this position in the list\n Location currentLocation = getItem(position);\n\n TextView nameText = listItemView.findViewById(R.id.location_name);\n nameText.setText(currentLocation.getName());\n\n TextView addressText = listItemView.findViewById(R.id.location_address);\n addressText.setText(currentLocation.getAddress());\n\n if (currentLocation.getDetails() != null) {\n TextView detailsText = listItemView.findViewById(R.id.location_details);\n detailsText.setVisibility(View.VISIBLE);\n detailsText.setText(currentLocation.getDetails());\n }\n\n if (currentLocation.getLocationImage() != 0) {\n ImageView locationImage = listItemView.findViewById(R.id.location_image);\n locationImage.setVisibility(View.VISIBLE);\n locationImage.setImageResource(currentLocation.getLocationImage());\n }\n\n return listItemView;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n String dataModel = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n ViewHolder viewHolder; // view lookup cache stored in tag\n\n final View result;\n\n if (convertView == null) {\n\n viewHolder = new ViewHolder();\n LayoutInflater inflater = LayoutInflater.from(getContext());\n convertView = inflater.inflate(R.layout.listviewcontent, parent, false);\n viewHolder.txtLabel = (TextView) convertView.findViewById(R.id.label);\n\n result=convertView;\n\n convertView.setTag(viewHolder);\n } else {\n viewHolder = (ViewHolder) convertView.getTag();\n result=convertView;\n }\n viewHolder.txtLabel.setText(dataModel);\n return convertView;\n }",
"@NonNull\n @Override\n public View getView(int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n View v = LayoutInflater.from(ctx).inflate(layoutTemplate, parent, false);\n\n // 1. Get the current Restaurant\n Restaurant current = restaurantList.get(position);\n\n // 2. Get the restaurant information\n String name = current.getName();\n String address = current.getAddress();\n String photo = current.getPhotoUrl();\n int rate = current.getRate();\n\n // 3. Get the view components references\n ImageView ivPhoto = v.findViewById(R.id.imageViewPhoto);\n TextView tvName = v.findViewById(R.id.textViewName);\n TextView tvAddress = v.findViewById(R.id.textViewAddress);\n RatingBar ratingBar = v.findViewById(R.id.ratingBarRate);\n\n // 4. Set the restaurant information into the view components\n tvName.setText(name);\n tvAddress.setText(address);\n ratingBar.setRating((float) rate);\n Glide.with(ctx)\n .load(photo)\n .centerCrop()\n .into(ivPhoto);\n\n return v;\n }",
"MateriliazedView getViews(int index);",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\n\n\t\tLayoutInflater inflater=activity.getLayoutInflater();\n\n\t\tif(convertView == null){\n\n\t\t\tconvertView=inflater.inflate(R.layout.column_row, null);\n }\n\t\t \n\t\ttxtFirst=(TextView) convertView.findViewById(R.id.idView);\n\t\ttxtSecond=(TextView) convertView.findViewById(R.id.dateView);\n\t\ttxtThird=(TextView) convertView.findViewById(R.id.discriptionView);\n\t\ttxtFourth=(TextView) convertView.findViewById(R.id.amountView);\n\n\t\tHashMap<String, String> map=list.get(position);\n\t\ttxtFirst.setText(map.get(FIRST_COLUMN));\n\t\ttxtSecond.setText(map.get(SECOND_COLUMN));\n\t\ttxtThird.setText(map.get(THIRD_COLUMN));\n\t\ttxtFourth.setText(map.get(FOURTH_COLUMN));\n\n\t\treturn convertView;\n\t}",
"private void showSimpleAdaptView() {\n\t\tList<HashMap<String, Object>> data = new ArrayList<HashMap<String,Object>>();\n\t\tfor (Person person : persons) {\n\t\t\tHashMap<String, Object> hashMap = new HashMap<String, Object>();\n\t\t\thashMap.put(\"name\", person.getNameString());\n\t\t\thashMap.put(\"phone\", person.getPhoneNum());\n\t\t\thashMap.put(\"amount\", person.getAmount());\n\t\t\thashMap.put(\"personid\", person.getId());\n\t\t\tdata.add(hashMap);\n\t\t}\n\t\tSimpleAdapter simpleAdapter = new SimpleAdapter(this, data, R.layout.listview_item,\n\t\t\t\tnew String[]{\"name\",\"phone\",\"amount\"}, \n\t\t\t\tnew int[]{R.id.name,R.id.phone,R.id.account});\n\t\t\n\t\tlistView.setAdapter(simpleAdapter);\n\t}",
"@Override\n public Object getItem(int position) {\n return listData.get(position);\n }",
"@Override\n\tpublic SquareLiveModel getItem(int position) {\n\t\treturn listData.get(position);\n\t}",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView v = convertView;\n\n\t\tif (v == null) {\n\t\t\tLayoutInflater li = (LayoutInflater) this.ctx\n\t\t\t\t\t.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\t\tv = li.inflate(res, parent, false);\n\t\t}\n\n\t\tContacts cts = getItem(position);\n\n\t\tTextView name = (TextView) v.findViewById(R.id.name);\n\t\tTextView number = (TextView) v.findViewById(R.id.number);\n\n\t\tname.setText(cts.getContactName());\n\n\t\tnumber.setText(cts.getContactNumber());\n\n\t\treturn v;\n\t}",
"@NonNull\n @Override\n public View getView(final int position, @Nullable View convertView, @NonNull ViewGroup parent) {\n\n //we need to get the view of the xml for our list item\n //And for this we need a layoutinflater\n LayoutInflater layoutInflater = LayoutInflater.from(context);\n\n //getting the view\n View view = layoutInflater.inflate(resource, null, false);\n\n //getting the view elements of the list from the view\n TextView textViewEmail = view.findViewById(R.id.textViewEmail);\n TextView textViewCliente = view.findViewById(R.id.textViewCliente);\n TextView textViewTelefono = view.findViewById(R.id.textViewTelefono);\n\n\n\n //getting the hero of the specified position\n ReunionCliente reunion = reunionList.get(position);\n\n //adding values to the list item\n textViewEmail.setText(reunion.getEmail());\n textViewCliente.setText(reunion.getCliente());\n textViewTelefono.setText(reunion.getTelefono());\n\n\n\n //finally returning the view\n return view;\n }",
"@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\r\n\r\n\t\tRelativeLayout mLayout = new RelativeLayout(context);\r\n\t\tmLayout.setLayoutParams(new ListView.LayoutParams(ListView.LayoutParams.FILL_PARENT,\r\n\t\t\t\tListView.LayoutParams.FILL_PARENT));\r\n\r\n\t\tRelativeLayout.LayoutParams mParams = new RelativeLayout.LayoutParams(\r\n\t\t\t\tRelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\r\n\t\tmParams.addRule(RelativeLayout.CENTER_IN_PARENT);\r\n\r\n\t\tTextView textView = new TextView(context);\r\n\t\ttextView.setText(getItem(position).name);\r\n\t\ttextView.setTextSize(13);\r\n\t\ttextView.setLayoutParams(mParams);\r\n\t\tmLayout.addView(textView);\r\n\t\treturn mLayout;\r\n\t}",
"public View getView(int position, View convertView, ViewGroup viewGroup){\n\t\tfinal StudentObject entry = listRoster.get(position);\n\t\t\n\t\t//handles null case\n\t\tif(convertView == null){\n\t\t\tLayoutInflater inflater = (LayoutInflater) context\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n convertView = inflater.inflate(R.layout.student_item, null);\n\t\t}\n\t\t// handles Student Name\n\t\tTextView tvRosterItemName = (TextView) convertView.findViewById(R.id.tvRosterItemName);\n\t\ttvRosterItemName.setText(entry.getName());\n\t\t\n return convertView;\n\t}",
"@NonNull\n @Override\n public View getView(int position, View convertView, ViewGroup parent){\n BookListing book = getItem(position);\n\n //If there's nothing there, inflate it\n if (convertView == null) convertView = LayoutInflater.from(getContext()).inflate(R.layout.book_listing_view, parent, false);\n\n //Store Views to change\n TextView authorName = convertView.findViewById(R.id.authorName);\n TextView bookName = convertView.findViewById(R.id.bookName);\n ImageView thumbnail = convertView.findViewById(R.id.thumbnail);\n\n //Change the views\n assert book != null;\n authorName.setText(book.getbAuthors()[0]);\n bookName.setText(book.getbTitle());\n Ion.with(thumbnail).load(book.getbThumbnailURL());\n\n return convertView;\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tif (convertView == null) {\n\t\t\t\tconvertView = LayoutInflater.from(ListActivity.this).inflate(R.layout.item_list, null);\n\t\t\t}\n\t\t\tfinal TextView item = (TextView) convertView.findViewById(R.id.tv_item_list);\n\t\t\titem.setText(BaseData.list.get(position)[1]);\n\t\t\titem.startAnimation(AnimationUtils.loadAnimation(ListActivity.this, R.anim.push_left_in));\n\n\t\t\treturn convertView;\n\t\t}",
"@SuppressLint(\"SetTextI18n\")\n @NonNull\n public View getView(final int position, View convertView, @NonNull ViewGroup parent) {\n User user = getItem(position);\n // Check if the view exist, if not, inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.rank_items, parent, false);\n }\n // Find the view position for the data\n TextView userName = (TextView) convertView.findViewById(R.id.name_text);\n TextView userScore = (TextView) convertView.findViewById(R.id.score_text);\n ImageView userAvatar = (ImageView) convertView.findViewById(R.id.avatar_image);\n //Check if the data in given position is null, If not, set the data item to view\n if(user != null) {\n userName.setText(user.getNickName());\n userScore.setText(Long.toString(user.getPoint()));\n Glide.with(getContext()).load(user.getAvatar()).into(userAvatar);\n //userAvatar.setImageURI(Uri.parse((String) user.getAvatar()));\n }\n else{\n Log.i(\"MyRankListAdapter\", \"getView->\" +\n \"item get NullPointerException on position:\" + position);\n }\n\n // Return the view to render on phone\n return convertView;\n }",
"public @Override View getView(int index) {\n return getChild(index).getView();\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n // Check if the existing view is being reused, otherwise inflate the view\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_item, parent, false);\n\n }\n\n // Get the {@link Book} object located at this position in the list\n Book currentBook = getItem(position);\n\n // Find the TextView in the list_item.xml file with the ID title\n TextView titleTextView = (TextView) listItemView.findViewById(R.id.title);\n\n // Get the current Title from the Book object and set it on this TextView\n titleTextView.setText(currentBook.getTitle());\n\n // Find the TextView in the list_item.xml file with the ID author\n TextView authorTextView = (TextView) listItemView.findViewById(R.id.author);\n\n // Get the current author from the Book object and set it on this TextView\n authorTextView.setText(\"by: \" + currentBook.getAuthor());\n\n // Return the whole list item layout (Containing 2 TextViews)\n // so that it can be shown in the ListView\n return listItemView;\n }",
"public RemoteViews getViewAt(int position) {\n\n String receiptTitle;\n String receiptPrice;\n\n String receiptDate;\n String receiptType;\n\n String receiptPlace;\n\n\n String stockHistory = \"empty\";\n final int itemId = R.layout.list_receipt_widget_item;\n\n RemoteViews rv = new RemoteViews(mContext.getPackageName(), itemId);\n\n\n if (mCursor.moveToPosition(position)) {\n\n receiptTitle = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_title));\n receiptPrice = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_amount));\n receiptDate = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_date));\n\n receiptType = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_type));\n\n receiptPlace = mCursor.getString(mCursor.getColumnIndex(ReceiptItemContract.ReceiptItems.COL_place));\n\n\n // Set Stock Value for layout item with the Price, Symbol & Stock Change\n rv.setTextViewText(R.id.receiptTitle, String.valueOf(receiptTitle));\n\n\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(mContext);\n\n\n rv.setTextViewText(R.id.receiptPrice, sp.getString(mContext.getString(R.string.currency_key), mContext.getString(R.string.default_currency)).concat(\" \") + String.valueOf(receiptPrice));\n rv.setTextViewText(R.id.receiptDate, ReceiptsAdapter.getDate(Long.parseLong(String.valueOf(receiptDate))));\n\n\n // Set the click intent so that we can handle it and show a toast message\n final Intent fillInIntent = new Intent();\n final Bundle extras = new Bundle();\n extras.putString(DbSchema.COL_amount, receiptPrice);\n extras.putString(DbSchema.COL_title, receiptTitle);\n\n extras.putString(DbSchema.COL_date, receiptDate);\n\n extras.putString(DbSchema.COL_amount, receiptPrice);\n extras.putString(DbSchema.COL_type, receiptType);\n extras.putString(DbSchema.COL_place, receiptPlace);\n\n fillInIntent.putExtras(extras);\n rv.setOnClickFillInIntent(R.id.receipt_widget_item, fillInIntent);\n }\n\n return rv;\n }",
"@NonNull\n @Override\n public View getView(final int position, final View convertView, @NonNull final ViewGroup parent) {\n return mDataBinder.bind(position, getItem(position),\n convertView == null ? mViewInflater.inflate(parent): convertView);\n }",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\tLayoutInflater inflater=(LayoutInflater)getSystemService(LAYOUT_INFLATER_SERVICE);\n\t\t\tView v=inflater.inflate(R.layout.custom, null);\n\t\t\t\n\t\t\ttv1=(TextView)v.findViewById(R.id.text1);\n\t\t\ttv1.setText(names[position]);\n\t\t\t\n\t\t\t\n\t\t\ttv2=(TextView)v.findViewById(R.id.text2);\n\t\t\ttv2.setText(phones[position]);\n\t\t\t\n\t\t\t\n\t\t\treturn v;\n\t\t}",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent)\n\t{\n\t\tView row = convertView;\n\t\t// a static holder. From what I gather this makes things more efficient. Other tutorials didn't use it\n\t\tVideoItemHolder holder = null;\n\t\tif(row == null)\n\t\t{\n\t\t\tLayoutInflater inflater = ((Activity)context).getLayoutInflater();\n\t\t\trow = inflater.inflate(layoutResourceId, parent, false);\n\t\t\t\n\t\t\tholder = new VideoItemHolder();\n\t\t\tholder.txtTitle = (TextView)row.findViewById(R.id.txtTitle);\n\t\t\trow.setTag(holder);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tholder = (VideoItemHolder)row.getTag();\n\t\t}\n\t\t\n\t\tVideoItem videoItem = data[position];\n\t\tholder.txtTitle.setText(videoItem.Title);\n\t\t\n\t\treturn row;\n\t\n\t}",
"@NonNull\n @Override\n public View getView(final int position, View convertView, @NonNull ViewGroup parent) {\n View listItemView = convertView;\n if(listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n getLayout(), parent, false);\n }\n\n ((TextView)listItemView.findViewById(R.id.playerName)).setText(getItem(position).getName());\n ((TextView)listItemView.findViewById(R.id.playerScore)).setText(String.valueOf(getItem(position).getScore()));\n ((ImageView) listItemView.findViewById(R.id.playerIcon)).setImageResource(playerIconFunction.apply(position));\n\n return listItemView;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n MatchSummaryUIModel matchSummary = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView =\n LayoutInflater.from(getContext()).inflate(\n R.layout.match_summary, parent, false);\n }\n // Lookup view for data population\n // Populate the champion icon view\n Drawable champIcon =\n ImageFetcher.getImage(getContext(), matchSummary.getChampion()\n .getImage());\n ImageView championIconView =\n (ImageView) convertView\n .findViewById(R.id.match_history_champion_icon);\n championIconView.setImageDrawable(champIcon);\n\n // Populate the spell views\n Drawable[] spellIcons = new Drawable[matchSummary.getSpells().length];\n ImageView[] spellIconViews = new ImageView[spellIcons.length];\n for (int i = 0; i < spellIcons.length; i++) {\n spellIcons[i] =\n ImageFetcher.getImage(getContext(),\n matchSummary.getSpells()[i].getImage());\n\n spellIconViews[i] =\n (ImageView) convertView.findViewById(SPELL_VIEWS_ID[i]);\n\n spellIconViews[i].setImageDrawable(spellIcons[i]);\n }\n\n // Populate the multiInfo view\n TextView matchResult =\n (TextView) convertView.findViewById(R.id.match_history_result);\n matchResult.setText(matchSummary.matchResult());\n int matchResultColor =\n matchSummary.getMatch().isWinner() ? Color.GREEN : Color.RED;\n matchResult.setTextColor(matchResultColor);\n\n // multiInfo.setTextSize(TypedValue.COMPLEX_UNIT_SP, 18);\n\n TextView creation =\n (TextView) convertView\n .findViewById(R.id.match_history_creation_time);\n creation.setText(matchSummary.creationTimeToString());\n\n return convertView;\n }",
"public abstract void executeListView(int pos);",
"@Override\n\tprotected View getView(int position, View convertView) {\n\t\tif (convertView == null) {\n\t\t\tconvertView = LinearLayout.inflate(context, R.layout.mid_listview,\n\t\t\t\t\tnull);\n\t\t\tviewHolder = new MidViewHolder();\n\t\t\tviewHolder.midname = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.midname);\n\t\t\tviewHolder.middate = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.middate);\n\t\t\tviewHolder.midtitle = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.midtitle);\n\t\t\tviewHolder.midtext = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.midtext);\n\t\t\tconvertView.setTag(viewHolder);\n\n\t\t} else {\n\t\t\tviewHolder = (MidViewHolder) convertView.getTag();\n\t\t}\n\t\tviewHolder.midname.setText(mRssName);\n\t\tviewHolder.middate.setText(mModelRssItems.get(position).getPubdate());\n\t\tviewHolder.midtitle\n\t\t\t\t.setText(mModelRssItems.get(position).getNewstitle());\n\n\t\tif (mModelRssItems.get(position).isIsread()) {\n\t\t\tviewHolder.midtitle\n\t\t\t\t\t.setTextAppearance(context, R.style.styleHasRead);\n\t\t} else {\n\t\t\tviewHolder.midtitle.setTextAppearance(context, R.style.customstyle);\n\t\t}\n\n\t\tviewHolder.midtext.setText(mModelRssItems.get(position).getCategory());\n\t\treturn convertView;\n\t}",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView view = null;\n\t\tViewHolder holder = null;\n\t\tif (convertView != null) {\n\t\t\tview = convertView;\n\t\t\tholder = (ViewHolder) view.getTag();\n\t\t} else {\n\t\t\tview = View.inflate(context, R.layout.history_item, null);\n\t\t\tholder = new ViewHolder();\n\t\t\tholder.iv_history_icon = (ImageView) view\n\t\t\t\t\t.findViewById(R.id.iv_history_icon);\n\t\t\tholder.tv_history_name = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_history_name);\n\t\t\tholder.tv_history_price = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_history_price);\n\t\t\tholder.tv_history_newprice = (TextView) view\n\t\t\t\t\t.findViewById(R.id.tv_history_newprice);\n\t\t\tview.setTag(holder);\n\t\t}\n\t\t// 设置数据\n\t\tfinal Good good = historyGoods.get(position);\n\t\t// 设置显示图片\n\t\tshow(holder.iv_history_icon, good.getPic());\n\t\tholder.tv_history_name.setText(good.getName());\n\t\tholder.tv_history_price.setText(good.getPrice() + \"\");\n\t\tholder.tv_history_newprice.setText(good.getNewprice() + \"\");\n\t\t// 点击之后进入商品的详细信息界面,让用户加入购物车\n\t\treturn view;\n\t}",
"@NonNull\n @Override\n public View getView(int position, View convertView, @NonNull ViewGroup parent) {\n Place currentLocation = getItem(position);\n View listItemView = convertView;\n\n // Check if an existing view is being reused, otherwise inflate the view\n ViewHolder viewHolder;\n if(listItemView == null) {\n viewHolder = new ViewHolder();\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_item, parent, false);\n viewHolder.placeName = listItemView.findViewById(R.id.tv_name);\n viewHolder.placeRating = listItemView.findViewById(R.id.rating_bar);\n viewHolder.placeAddress = listItemView.findViewById(R.id.tv_address);\n viewHolder.placePhone = listItemView.findViewById(R.id.tv_phone);\n viewHolder.placeDescription = listItemView.findViewById(R.id.tv_description);\n viewHolder.placeImage = listItemView.findViewById(R.id.img_place);\n listItemView.setTag(viewHolder);\n }else{\n viewHolder = (ViewHolder) listItemView.getTag();\n }\n\n // Populate the data into the template view using the data object\n if(currentLocation != null){\n viewHolder.placeName.setText(currentLocation.getPlaceName());\n viewHolder.placeAddress.setText(currentLocation.getPlaceDetails());\n viewHolder.placePhone.setText(currentLocation.getPlacePhone());\n viewHolder.placeDescription.setText(currentLocation.getPlaceDescription());\n if(currentLocation.hasImage()){\n viewHolder.placeImage.setVisibility(View.VISIBLE);\n viewHolder.placeImage.setImageResource(currentLocation.getImageResourceId());\n }else {\n viewHolder.placeImage.setVisibility(View.GONE);\n viewHolder.placeName.setTextColor(Color.DKGRAY);\n }\n if(currentLocation.hasRating()){\n viewHolder.placeRating.setVisibility(View.VISIBLE);\n viewHolder.placeRating.setRating(currentLocation.getPlaceRating());\n }else {\n viewHolder.placeRating.setVisibility(View.GONE);\n }\n }\n return listItemView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tListItemView listItemView = new ListItemView();\n\t\tif (convertView == null || position < lists.size()) {\n\t\t\tconvertView = LayoutInflater.from(mContext).inflate(\n\t\t\t\t\tR.layout.st_sug_list, null);\n\t\t\tlistItemView.KeyIndex = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.num_index);\n\t\t\tlistItemView.KeyName = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.KeyName);\n\t\t\tlistItemView.keyCity = (TextView) convertView\n\t\t\t\t\t.findViewById(R.id.KeyCity);\n\t\t\tconvertView.setTag(listItemView);\n\n\t\t} else {\n\t\t\tlistItemView = (ListItemView) convertView.getTag();\n\t\t}\n//\t\tif (height != 0) {\n//\t\t\tlistItemView.KeyName\n//\t\t\t\t\t.setTextSize(CommonUtil.getTextSizes(height, 5));\n//\t\t\tlistItemView.KeyIndex\n//\t\t\t.setTextSize(CommonUtil.getTextSizes(height, 5));\n//\t\n//\t\t}\n\t\tlistItemView.KeyIndex.setText(String.valueOf(position + 1));\n\t\tlistItemView.KeyName.setText(lists.get(position).getKeyName());\n\n\t\t// convertView.setTag(R.id.tagItemCchoose, lists.get(position));\n\n\t\t// listItemView.loc_city.setText(lists.get(position).getCityName());\n\t\t// if(position ==0){\n\t\t// convertView.setBackgroundResource(R.color.grayblackish_green);\n\t\t// }\n\t\treturn convertView;\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent){\n\t\tView view;\n \tif(convertView != null)\n \t\tview = convertView;\n \telse\n \t\tview = ((LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE))\n \t\t\t\t\t\t\t\t\t.inflate(R.layout.playlist_item, parent, false);\n \t\n \t((TextView) view.findViewById(R.id.playlist_name)).setText(playlistArray.get(position).name);\n \t\n \treturn view;\n }",
"@NonNull\n @Override\n public View getView(int position, View convertView, @NonNull ViewGroup parent) {\n return getCustomView(position, convertView, parent);\n }",
"@Override\n\tpublic View newView(Context arg0, Cursor arg1, ViewGroup arg2) {\n\t\tView row = (View) inflater.inflate(R.layout.list_row, arg2, false);\n\t\treturn row;\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(\n R.layout.list_item, parent, false);\n }\n\n Word currentWord = getItem(position);\n\n TextView nameTextView = listItemView.findViewById(R.id.nameTextView);\n nameTextView.setText(currentWord.getPlaceName());\n\n TextView addressTextView = listItemView.findViewById(R.id.addressTextView);\n addressTextView.setText(currentWord.getPlaceAddress());\n\n TextView descriptionTextView = listItemView.findViewById(R.id.descriptionTextView);\n descriptionTextView.setText(currentWord.getPlaceDescription());\n\n ImageView imageView = listItemView.findViewById(R.id.photoImageView);\n imageView.setImageResource(currentWord.getmImageResourceId());\n\n return listItemView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent)\n\t{\n\t\tLinearLayout view = (LinearLayout) View.inflate(this.mContext, this.mCustomRowLayoutId, null);\n\t\tTextView text1 = (TextView) view.findViewById(R.id.text1);\n\t\tTextView text2 = (TextView) view.findViewById(R.id.text2);\n\t\t\n\t\tOrganization curr = getItem(position);\n\t\t\n\t\ttext1.setTextColor(Color.WHITE);\n\t\ttext2.setTextColor(Color.WHITE);\n\t\t\n\t\ttext1.setTextSize(20);\n\t\t\n\t\ttext1.setText(curr.getName());\n\t\ttext2.setText(curr.getDescription());\n\t\t\n\t\treturn view;\n\t}",
"@Override\r\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t View layout= getLayoutInflater().inflate(R.layout.item_listview_age, null);\r\n\t\t TextView textView= (TextView) layout.findViewById(R.id.tv_listview_age);\r\n\t\t textView.setText(mAgeLists[position]);\r\n\t\t \r\n\t\t\treturn layout;\r\n\t\t}",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tView myView = convertView;\n\t\tif (myView == null) {\n\t\t\tmyView = LayoutInflater.from(context).inflate(R.layout.detail, null);\n\t\t}\n\t\tLesson lesson = myList.get(position);\n\t\tTextView name = (TextView) myView.findViewById(R.id.name);\n\t\t\n\t\tname.setText(lesson.getName());\n\t\tTextView teacher = (TextView) myView.findViewById(R.id.teacher);\n\t\t\n\t\tteacher.setText(lesson.getTeacher());\n\t\tTextView classroom = (TextView) myView.findViewById(R.id.classroom);\n\t\tclassroom.setText(lesson.getClassroom());\n\t\t\n\t\tTextView where = (TextView) myView.findViewById(R.id.where);\n\t\twhere.setText(lesson.getWeekday() + lesson.getLessonTime());\n\t\t\n\t\tTextView week = (TextView) myView.findViewById(R.id.week);\n\t\tweek.setText(lesson.getWeek());\n\n\t\treturn myView;\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Post post = getItem(position);\n\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.item_friend_post, parent, false);\n }\n\n // Lookup view for data population\n TextView tvUsername = (TextView) convertView.findViewById(R.id.ViewAllPost_Username);\n TextView tvDate = (TextView) convertView.findViewById(R.id.ViewAllPost_Date);\n TextView tvPlate = (TextView) convertView.findViewById(R.id.ViewAllPost_LicensePlate);\n TextView tvDestination = (TextView) convertView.findViewById(R.id.ViewAllPost_Destination);\n TextView tvModel = (TextView) convertView.findViewById(R.id.ViewAllPost_CarModel);\n TextView tvColor = (TextView) convertView.findViewById(R.id.ViewAllPost_CarColor);\n TextView tvDeparture = (TextView) convertView.findViewById(R.id.ViewAllPost_Departure);\n\n\n // Populate the data into the template view using the data object\n tvUsername.setText(post.getOwner());\n tvDate.setText(post.getDate());\n tvPlate.setText(post.getLicensePlate());\n tvDestination.setText(post.getDestination());\n tvModel.setText(post.getModel());\n tvColor.setText(post.getColor());\n tvDeparture.setText(post.getDeparture());\n\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n Outcome_detail outcome = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.view_outcome_entry, parent, false);\n }\n // Lookup view for data population\n TextView tvID = (TextView) convertView.findViewById(R.id.outcome_Id);\n TextView tvName = (TextView) convertView.findViewById(R.id.outcome_name);\n TextView tvAmount = (TextView) convertView.findViewById(R.id.outcome_amount);\n TextView tvPeriod = (TextView) convertView.findViewById(R.id.outcome_period);\n TextView tvType = (TextView) convertView.findViewById(R.id.outcome_type);\n\n // Populate the data into the template view using the data object\n tvName.setText(outcome.name);\n tvID.setText(outcome.id);\n tvPeriod.setText(outcome.peroid);\n tvType.setText(outcome.type);\n tvAmount.setText(outcome.amount);\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder viewHolder=null;\n\t\tif(convertView==null){\n\t\t\tviewHolder=new ViewHolder();\n\t\t\tconvertView=inflater.inflate(R.layout.others_match_item, null);\n\t\t\tviewHolder.name=(TextView)convertView.findViewById(R.id.others_person_name);\n\t\t\tviewHolder.number=(TextView)convertView.findViewById(R.id.others_person_number);\n\t\t\tviewHolder.goal=(TextView)convertView.findViewById(R.id.others_person_goal);\n\t\t\tviewHolder.assist=(TextView)convertView.findViewById(R.id.others_person_assist);\n\t\t\tconvertView.setTag(viewHolder);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tviewHolder=(ViewHolder)convertView.getTag();\n\t\t}\n\t\tOthersMatchEntity item=mList.get(position);\n\t\tif (position == 0) {\n\t\t\tconvertView.setBackgroundResource(R.color.other_match);\n\t\t}else{\n\t\t\tconvertView.setBackgroundResource(R.color.other_list);\n\t\t}\n\t\tviewHolder.name.setText(item.getName());\n\t\tviewHolder.number.setText(item.getNumber());\n\t\tviewHolder.goal.setText(item.getGoal());\n\t\tviewHolder.assist.setText(item.getAssist());\n\t\treturn convertView;\n\t}",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tViewHolder mHolder;\n\t\tView view = convertView;\n\t\tif (view == null) {\n\t\t\tview = inflater.inflate(R.layout.movie_item, null);\n\t\t\tmHolder = new ViewHolder();\n\t\t\tmHolder.ivLogo = (ImageView) view.findViewById(R.id.mi_iv_logo);\n\t\t\tmHolder.tvTitle = (TextView) view.findViewById(R.id.tv_title);\n\t\t\t\n\t\t\tint x = (mScreenWidth-20)/3;\n\t\t\tLinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(x,x+10);\n\t\t\tmHolder.ivLogo.setLayoutParams(lp);\n\t\t\t\n\t\t\tview.setTag(mHolder);\n\t\t} else {\n\t\t\tmHolder = (ViewHolder) view.getTag();\n\t\t}\n\t\tMovie movie = newsList.get(position);\n\t\tImageLoader.getInstance().displayImage(movie.getIcon(),mHolder.ivLogo);\n\t\tmHolder.tvTitle.setText(movie.getTitle());\n\t\t\n\t\treturn view;\n\t}",
"public View getView(int postion, View convertView, ViewGroup parent){\n\n //View custom=contextA.getLayoutInflater().inflate(resource, null);\n View custom = LayoutInflater.from(context).inflate(R.layout.item, parent, false );\n TextView txtIdLop=custom.findViewById(R.id.txtID);\n TextView txtTenLop=custom.findViewById(R.id.txtTenLop);\n TextView txtNganh=custom.findViewById(R.id.txtTenNganh);\n\n Lop lop=lopList.get(postion);\n txtIdLop.setText(String.valueOf(lop.getIdlop()));\n txtTenLop.setText(lop.getTenLop());\n txtNganh.setText(lop.getNganh());\n\n return custom;\n }",
"@Override\n public View getView(int position, View view, ViewGroup viewGroup) {\n View vista = view;\n\n //LayoutInflater instantiates a layout XML file into its corresponding View objects.\n //De esta forma podemos inflar la vista declarada (item_employee) en el contexto\n //donde se encuentra el listview declarado\n LayoutInflater inflater = LayoutInflater.from(contexto);\n vista = inflater.inflate(R.layout.item_employee, null);\n\n ImageView imagen = vista.findViewById(R.id.employee_image);\n TextView nombre = vista.findViewById(R.id.employee_name);\n TextView cargo = vista.findViewById(R.id.employee_cargo);\n\n nombre.setText(listaEmpleados.get(position).getNombre());\n cargo.setText(listaEmpleados.get(position).getCargo());\n imagen.setImageResource(listaEmpleados.get(position).getImagen());\n\n return vista;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = getLayoutInflater();\n View newView;\n newView = inflater.inflate(R.layout.recipe_list, parent, false);\n TextView info = newView.findViewById(R.id.recipeInfo);\n String title = (String) getItem(position);\n info.setText(title);\n return newView;\n }",
"@Override\r\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tFruit fruit = getItem(position);\r\n\t\tView view;\r\n\t\tif (convertView == null) {\r\n\t\t\tview = LayoutInflater.from(getContext()).inflate(resourceId, null);\r\n\t\t} else {\r\n\t\t\tview = convertView;\r\n\t\t}\r\n\t\tTextView text = (TextView) view.findViewById(R.id.text);\r\n\t\ttext.setText(fruit.getName());\r\n\t\treturn view;\r\n\t}",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n User user = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.user_item, parent, false);\n }\n // Lookup view for data population\n TextView uName = (TextView) convertView.findViewById(R.id.handle);\n ImageView uPic = (ImageView) convertView.findViewById(R.id.profile_picture_search);\n // Populate the data into the template view using the data object\n uName.setText(user.getHandle());\n //tvHome.setText(user.hometown);\n // Return the completed view to render on screen\n return convertView;\n }",
"@Override\r\n public View getView(int position, View convertView, ViewGroup parent) {\n String name = getItem(position).getName();\r\n String price = getItem(position).getPrice();\r\n\r\n\r\n //Create the person object with the information\r\n Product person = new Product(name,price);\r\n\r\n //create the view result for showing the animation\r\n final View result;\r\n\r\n //ViewHolder object\r\n ViewHolder holder;\r\n\r\n\r\n if(convertView == null){\r\n LayoutInflater inflater = LayoutInflater.from(mContext);\r\n convertView = inflater.inflate(mResource, parent, false);\r\n holder= new ViewHolder();\r\n holder.name = (TextView) convertView.findViewById(R.id.textView1);\r\n holder.price = (TextView) convertView.findViewById(R.id.textView2);\r\n\r\n\r\n result = convertView;\r\n\r\n convertView.setTag(holder);\r\n }\r\n else{\r\n holder = (ViewHolder) convertView.getTag();\r\n result = convertView;\r\n }\r\n\r\n\r\n\r\n holder.name.setText(person.getName());\r\n holder.price.setText(person.getPrice());\r\n\r\n\r\n\r\n return convertView;\r\n }",
"@NonNull\n @Override\n public View getView(int position, View convertView, ViewGroup parent) {\n View listItemView = convertView;\n\n if (listItemView == null) {\n listItemView = LayoutInflater.from(getContext()).inflate(R.layout.list_item, parent, false);\n }\n\n // Get the Place object located at this position in the list\n Place currentPlace = getItem(position);\n\n // Get the name of the place from the currentPlace object\n String name = currentPlace.getmPlaceName();\n // Get the name of the address from the currentPlace object\n String address = currentPlace.getmPlaceAddress();\n // Get the description from the currentPlace object\n String description = currentPlace.getmPlaceDescription();\n // Get the current image\n int imageID = currentPlace.getmPlaceImageResourceID();\n\n // Find the ImageView in list_item.xml with ID list_image\n ImageView imageView = (ImageView) listItemView.findViewById(R.id.list_image);\n // Set the current image\n imageView.setImageResource(imageID);\n\n // Find the TextView in list_item.xml with ID place_name\n TextView placeName = (TextView) listItemView.findViewById(R.id.place_name);\n // Set the current name\n placeName.setText(name);\n\n // Find the TextView in list_item.xml with ID place_address\n TextView placeAddress = (TextView) listItemView.findViewById(R.id.place_address);\n // Set the current address\n placeAddress.setText(address);\n\n // Find the TextView in list_item.xml with ID place_description\n TextView placeDescription = (TextView) listItemView.findViewById(R.id.place_description);\n // Set the current description\n placeDescription.setText(description);\n\n /*\n * Return the whole list item layout (containing 1 ImageView and 3 TextViews so that\n * it can be shown in ListView.\n */\n return listItemView;\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\tif(convertView == null) {\n\t\t\tconvertView = creatView(parent);\n\t\t}\n\t\tbindViewWithData(position, convertView);\n\t\treturn convertView;\n\t}",
"@Override\n\t\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\n\t\t\tListEditItem mItem;\n\n\t\t\tif (null == convertView) {\n\t\t\t\tmItem = new ListEditItem(getContext());\n\t\t\t\tmItem.setBackgroundResource(R.drawable.song_column);\n\t\t\t} else {\n\t\t\t\tmItem = (ListEditItem) convertView;\n\t\t\t}\n\n\t\t\tTrack mTrack = playlist.getEntry(position).getTrack();\n\n\t\t\tboolean isSelect = false;\n\t\t\tif (mOptList.containsKey(position)) {\n\t\t\t\tisSelect = true;\n\t\t\t}\n\t\t\tmItem.setValues(mTrack, position, isSelect);\n\t\t\treturn mItem;\n\t\t}",
"public View getView() {\n // Create view lazily only once it's needed\n if (this.furnitureView == null) {\n this.furnitureView = this.viewFactory.createFurnitureView(this.home, this.preferences, this);\n }\n return this.furnitureView;\n }",
"public View getView(int position, View convertView, ViewGroup parent) {\n OBXMLNode xmlNode = getItem(position);\n // Check if an existing view is being reused, otherwise inflate the view\n if (convertView == null) {\n convertView = LayoutInflater.from(getContext()).inflate(R.layout.simplerow, parent, false);\n }\n // Lookup view for data population\n TextView tvRow = (TextView) convertView.findViewById(R.id.rowTextView);\n // Populate the data into the template view using the data object\n tvRow.setText(xmlNode.attributes.get(\"id\"));\n tvRow.setTag(xmlNode);\n tvRow.setOnClickListener( new View.OnClickListener()\n {\n public void onClick(View v)\n {\n try\n {\n OBXMLNode xmlNode = (OBXMLNode) v.getTag();\n String target = xmlNode.attributeStringValue(\"target\");\n String parameters = xmlNode.attributeStringValue(\"params\");\n String config = xmlNode.attributeStringValue(\"config\");\n OBConfigManager.sharedManager.updateConfigPaths(config, false);\n String className = config.replace(\"-\", \"_\") + \".\" + target;\n sectionController.MainViewController().pushViewControllerWithName(className, true, false, parameters);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n // Return the completed view to render on screen\n return convertView;\n }",
"public View getCustomView(int position, View convertView, ViewGroup parent) {\n LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n View layout = inflater.inflate(R.layout.list_item_countries, parent, false);\n\n // Declaring and Typecasting the textview in the inflated layout\n TextView countryName = (TextView) layout.findViewById(R.id.country_name);\n\n Countries countries = (Countries) countriesArrayList.get(position);\n\n // Setting the text using the array\n countryName.setText(countries.getName());\n\n return layout;\n }",
"@Override\n public View getView(int position, View convertView, ViewGroup parent) {\n return initView(position, convertView, parent);\n }",
"@Override\n\tpublic View getView(int position, View convertView, ViewGroup parent) {\n\t\t\n\t\tLayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView rowView = inflater.inflate(R.layout.listview_item, parent, false);\n\t\tTextView bookTile = (TextView) rowView.findViewById(R.id.book_title);\n\t\tTextView timeStamp = (TextView) rowView.findViewById(R.id.time_stamp);\n\t\tImageView bookCover = (ImageView) rowView.findViewById(R.id.image);\n\t\t\n\t\tObject cur_obj = objects.get(position);\n\t\tBookDataContainer cur_book = (BookDataContainer) cur_obj;\n\t\t\n\t // Set the timestamp in the listview \n\t\ttimeStamp.setText(cur_book.time_stamp);\n\t\t \n\t\t// Set the book title in the listview \n\t\tbookTile.setText(cur_book.title);\n\t\t\n\t\t// Set the image \n\t\tLoadImageFromURL setImage = new LoadImageFromURL(cur_book.image_url,bookCover);\n\t\tsetImage.execute();\n\t\t\n\t\treturn rowView;\n\t}"
] | [
"0.6413296",
"0.6286941",
"0.62562656",
"0.6229439",
"0.6220235",
"0.6162428",
"0.6160567",
"0.6145458",
"0.6137479",
"0.6132373",
"0.61263216",
"0.61153036",
"0.6079484",
"0.607682",
"0.6075601",
"0.6068753",
"0.6068753",
"0.6064249",
"0.60605216",
"0.60357505",
"0.6032543",
"0.6032464",
"0.6015304",
"0.6003884",
"0.6000836",
"0.6000628",
"0.5973568",
"0.5966983",
"0.5951261",
"0.59474534",
"0.5944372",
"0.5944154",
"0.59420174",
"0.59323895",
"0.5932101",
"0.5916722",
"0.5914358",
"0.59135056",
"0.59098953",
"0.59051025",
"0.5896477",
"0.5893383",
"0.58890057",
"0.5884953",
"0.5883339",
"0.58807755",
"0.5878006",
"0.5873752",
"0.58709407",
"0.5870155",
"0.5866309",
"0.5865464",
"0.58492416",
"0.58477974",
"0.5840344",
"0.5839386",
"0.583673",
"0.58343554",
"0.58342266",
"0.5833402",
"0.58332974",
"0.58264714",
"0.58245003",
"0.5818701",
"0.58172184",
"0.58141243",
"0.5808639",
"0.5807764",
"0.5800403",
"0.57999235",
"0.5799193",
"0.5794335",
"0.5792031",
"0.57899153",
"0.5787937",
"0.57812315",
"0.57793903",
"0.5779057",
"0.57765895",
"0.5776037",
"0.57756853",
"0.5775551",
"0.57747453",
"0.5768903",
"0.57677436",
"0.576579",
"0.57606345",
"0.57602316",
"0.57598126",
"0.5758797",
"0.57472557",
"0.5746713",
"0.5745666",
"0.57438034",
"0.5734222",
"0.5733809",
"0.573122",
"0.57292324",
"0.57275593",
"0.572668"
] | 0.6203187 | 5 |
Return the title for this item in the list. | public String getTitle(int position) {
return getString(Browser.HISTORY_PROJECTION_TITLE_INDEX, position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getItemTitle() {\n\t return this.itemTitle;\n\t}",
"public String getTitle() {\n return titleName;\n }",
"public java.lang.Object getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public String getTitle()\n {\n return (this.title);\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle() {\r\n\t\treturn title;\r\n\t}",
"public String getTitle(){\n\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle() {\n\t\treturn this.title;\n\t}",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\n\t\treturn this.Title; \n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n\t\treturn title;\n\t}",
"public String getTitle() {\r\n return title;\r\n }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}",
"String getTitle() {\n\t\treturn this.mTitle;\n\t}",
"public String getTitle() {\r\n return this.title;\r\n }",
"public String getTitle()\r\n {\r\n return this.title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"public String getTitle() {\r\n return _title;\r\n }",
"public String title() {\n\t\treturn title;\n\t}",
"public String getTitle() {\n return this.title;\n }",
"public String getTitle() {\n return this.title;\n }",
"public String getTitle() {\n return this.title;\n }",
"public String getTitle() {\n return this.title;\n }",
"public String getTitle() {\n return this.title;\n }",
"public java.lang.String getTitle()\n {\n return this.title;\n }",
"public String getName() {\r\n\t\treturn this.title;\r\n\t}",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }"
] | [
"0.8138567",
"0.75739336",
"0.7549567",
"0.75477636",
"0.753402",
"0.75334567",
"0.75283736",
"0.75283736",
"0.75283736",
"0.7504783",
"0.7504783",
"0.7504783",
"0.7504783",
"0.7504783",
"0.7504783",
"0.7504783",
"0.7474082",
"0.7469672",
"0.7469672",
"0.7469672",
"0.74687755",
"0.74687755",
"0.74685603",
"0.74685603",
"0.74685603",
"0.74685603",
"0.74685603",
"0.74685603",
"0.74685603",
"0.7467528",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7461094",
"0.7458901",
"0.7448885",
"0.7446033",
"0.7442512",
"0.7440614",
"0.7439442",
"0.7438241",
"0.7438241",
"0.74361396",
"0.7426434",
"0.7425968",
"0.74243015",
"0.74233484",
"0.74233484",
"0.74233484",
"0.74233484",
"0.74233484",
"0.7423164",
"0.74163395",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283",
"0.74129283"
] | 0.0 | -1 |
Return the Url for this item in the list. | public String getUrl(int position) {
return getString(Browser.HISTORY_PROJECTION_URL_INDEX, position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }",
"public String getURL(int position){\n Item current = getItem(position);\n return current.URL();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }",
"public String getItemURL() {\n String shownAt = jsonParent.getString(\"isShownAt\");\n println(shownAt);\n return shownAt;\n }",
"public String getOrderItemUrl() {\n return orderItemUrl;\n }",
"public String getUrl() {\n return this.Url;\n }",
"public CharSequence getItemImageUrl() {\n return item_image_url;\n }",
"public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }",
"public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}",
"@XmlElement\r\n\tpublic String getMyUrl() {\r\n\t\tString ret = null;\r\n\t\tif (null != getId()) {\r\n\t\t\tret = String.format(\"%s/category/%s-%s\", SuperContainer.BaseUrl, getId() + \"\", getUrl());\r\n\t\t\t\r\n\t\t\t// Always add html to the end\r\n\t\t\tif(!getUrl().endsWith(\".html\")) {\r\n\t\t\t\tret = ret + \".html\";\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn ret;\r\n\t}",
"public String getUrl() {\n\t\treturn this.url;\n\t}",
"public String getUrl() {\n\t\t\treturn url;\n\t\t}",
"public String getUrl() { /* (readonly) */\n return mUrl;\n }",
"public String getUrl() {\n\t\tif (null != this.url) {\n\t\t\treturn this.url;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"url\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public CharSequence getItemImageUrl() {\n return item_image_url;\n }",
"public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\r\n\t\treturn url;\r\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrlElement() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n return mUrl;\n }",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl() {\n\t\treturn url;\n\t}",
"public String getUrl()\n {\n return this.url;\n }",
"public String getUrl() {\n return this.url;\n }",
"@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}",
"public java.lang.String getUrl() {\n return url;\n }",
"public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}",
"@Schema(description = \"The URL of the worklog item.\")\n public String getSelf() {\n return self;\n }",
"public java.lang.String getUrl(){\r\n return this.url;\r\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}",
"public String getURL() {\n\t\treturn getName();\n\t}",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getUrl() {\r\n return url;\r\n }",
"public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}",
"public String getUrl() {\n return url;\n }",
"public String getURL() {\n\t\treturn prop.getProperty(\"URL\");\n\t}",
"public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String url() {\n return this.url;\n }",
"public String getUrl()\n {\n return url;\n }",
"public String getUrl()\n {\n // return url of node associated with menu\n // option if defined\n if (getNode() != null)\n {\n return getNode().getUrl();\n }\n return null;\n }",
"@Nonnull public String getURL() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getUrl() {\n return url;\n }",
"public String getURL() {\r\n\t\treturn url;\r\n\t}",
"public URI getHref() {\n return entityLinks.linkForItemResource(Hunt.class, id).toUri();\n }",
"public String getURL() {\r\n return url;\r\n }",
"public String getCollectionUrl() {\n\t\tString t = doc.get(\"url\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getURL() {\n\t\treturn url;\n\t}",
"public java.lang.CharSequence getURL() {\n return URL;\n }",
"public String getURL() {\n return url;\n }",
"@Override\n public Object getItem(int position) {\n return imgUrl[position];\n }",
"public String getUrl() { return url; }",
"public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}",
"public String getURL() {\n\t\treturn URL;\n\t}",
"@Override\r\n public String getURL() {\n return url;\r\n }",
"public java.lang.String getURL() {\n return URL;\n }",
"public URL getURL() {\n\t\treturn m_URL;\n\t}"
] | [
"0.72664714",
"0.72027",
"0.6838746",
"0.6838746",
"0.6813099",
"0.67827374",
"0.6578248",
"0.65592635",
"0.6553667",
"0.650457",
"0.65002346",
"0.6494931",
"0.64946556",
"0.649146",
"0.6465298",
"0.64582413",
"0.6451141",
"0.64328986",
"0.64328986",
"0.6414491",
"0.6414491",
"0.6414491",
"0.6410721",
"0.6410721",
"0.6410721",
"0.6410721",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.6405642",
"0.63953036",
"0.6395288",
"0.6379179",
"0.6356672",
"0.6354611",
"0.6352684",
"0.634209",
"0.6338577",
"0.6338577",
"0.63332254",
"0.63332254",
"0.63332254",
"0.63310444",
"0.6318242",
"0.6318242",
"0.6318242",
"0.6318242",
"0.6318242",
"0.6318242",
"0.6318242",
"0.63100886",
"0.6302882",
"0.6284914",
"0.6263639",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6260499",
"0.6250017",
"0.6212133",
"0.6206067",
"0.6201743",
"0.6195212",
"0.6195212",
"0.617056",
"0.6162681",
"0.61558735",
"0.614435",
"0.6142543",
"0.6131788",
"0.61002856",
"0.60791475",
"0.6075195",
"0.6073006",
"0.60724145",
"0.607023",
"0.6070138",
"0.6068936"
] | 0.0 | -1 |
Return the favicon for this item in the list. | public Bitmap getFavicon(int position) {
return getBitmap(Browser.HISTORY_PROJECTION_FAVICON_INDEX, position);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"com.google.protobuf.ByteString getFavicon();",
"@JsonProperty(\"favicon_url\")\n public String getFaviconUrl() {\n return faviconUrl;\n }",
"@ZAttr(id=800)\n public String getSkinFavicon() {\n return getAttr(Provisioning.A_zimbraSkinFavicon, null);\n }",
"public URI getIconUri() {\n return this.iconUri;\n }",
"public URL getIcon()\r\n {\r\n\treturn icon;\r\n }",
"public String getIconUrl() {\n return iconUrl;\n }",
"public String getIconUrl() {\r\n return iconUrl;\r\n }",
"public AwesomeIcon icon() {\n\t\treturn icon;\n\t}",
"public AppIcon getAppIcon () ;",
"public Icon getIcon();",
"Icon getIcon();",
"public java.lang.String getApplicationIconFile() {\r\n return applicationIconFile;\r\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public String getIcon() {\n return icon;\n }",
"public FSIcon getIcon() {\n return icon;\n }",
"public String getIcon() {\n\t\treturn \"icon\";\n\t}",
"public byte[] getIcon()\r\n {\r\n return icon;\r\n }",
"public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}",
"public int getIconIndex() {\n return iconIndex;\n }",
"public java.lang.String getApplicationIconFileName() {\r\n return applicationIconFileName;\r\n }",
"public byte[] getIcon()\n {\n return Resources.getImage(Resources.DICT_LOGO);\n }",
"public String getIconURL()\n {\n return null; \n }",
"B itemIcon(ITEM item, Resource icon);",
"public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}",
"java.lang.String getIcon();",
"java.lang.String getIcon();",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"IconUris iconUris();",
"@JsonProperty(\"favicon_url\")\n public void setFaviconUrl(String faviconUrl) {\n this.faviconUrl = faviconUrl;\n }",
"public int getIconId(){\n return mIconId;\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Icon getIcon() {\n\t\treturn null;\n\t}",
"String getIconFile();",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }",
"public Icon getIcon() {\n \t\treturn null;\n \t}",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"String getIcon();",
"String getIcon();",
"public String getIconFileName() {\n return null;\n }",
"public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"public String getHeadicon() {\n return headicon;\n }",
"public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}",
"public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"dataAdapters\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"public String getIconHandler()\n {\n return iconHandler;\n }",
"protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }",
"public String getUserIcon() {\n return userIcon;\n }",
"protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }",
"public ResourceLocation getIcon() {\n return icon;\n }",
"public EntityIcon getIcon() {\r\n return icon;\r\n }",
"public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }",
"public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }",
"public String getIconString() {\n return theIconStr;\n }",
"@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}",
"Icon getIcon(URI activityType);",
"public char getIcon() {\n return this.icon;\n }",
"public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}",
"boolean hasFavicon();",
"public abstract String getIconPath();",
"@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}",
"public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }",
"public Icon getIcon(Object object);",
"public ImageDescriptor getIcon();",
"@NotNull\n SVGResource getIcon();",
"com.google.protobuf.ByteString\n getIconBytes();",
"com.google.protobuf.ByteString\n getIconBytes();",
"public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}",
"public IconCache getIconCache() {\n return mIconCache;\n }",
"Icon getMenuIcon();",
"public ImageIcon getLogoIcon(){\n\t\t\n\t\treturn this.icon;\n\t\t\n\t}",
"@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }",
"static void updateBookmarkFavicon(ContentResolver cr,\n String originalUrl, String url, Bitmap favicon) {\n final Cursor c = queryBookmarksForUrl(cr, originalUrl, url, true);\n if (c == null) {\n return;\n }\n boolean succeed = c.moveToFirst();\n ContentValues values = null;\n while (succeed) {\n if (values == null) {\n final ByteArrayOutputStream os = new ByteArrayOutputStream();\n favicon.compress(Bitmap.CompressFormat.PNG, 100, os);\n values = new ContentValues();\n values.put(Browser.BookmarkColumns.FAVICON, os.toByteArray());\n }\n cr.update(ContentUris.withAppendedId(Browser.BOOKMARKS_URI, c\n .getInt(0)), values, null, null);\n succeed = c.moveToNext();\n }\n c.close();\n }",
"public WebElement getToDoSaveIconEle() {\n return toDoSaveIconEle;\n }",
"protected String getWeatherIconName()\n\t{\n\t\tString\ticonName = ForecastMainActivity.weatherData.getHeadlineIcon().replaceAll(\"-\", \"_\");\n\t\treturn iconName;\n\t}",
"public @Nullable IIconData getIcon(@Nullable URL url);",
"@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }",
"protected Drawable getIcon(Context context) {\n if (this.iconResource != 0) {\n return ContextCompat.getDrawable(context, this.iconResource);\n } else {\n return this.icon;\n }\n }",
"public Icon getIcon(FileObject f)\n {\n return null;\n }",
"com.google.protobuf.ByteString\n getCouponIconUrlBytes();",
"public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new NodeIconDescriptor(\"parameter-report\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}",
"public com.google.protobuf.ByteString\n getCouponIconUrlBytes() {\n java.lang.Object ref = couponIconUrl_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n couponIconUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Icon getIcon()\n {\n return this.blockIcon;\n }",
"public com.google.protobuf.ByteString\n getCouponIconUrlBytes() {\n java.lang.Object ref = couponIconUrl_;\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 couponIconUrl_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}",
"public byte[] getIcon(String url) {\n return mIconUrlToIconMap.get(url);\n }",
"public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}",
"public int getIconImageNumber(){return iconImageNumber;}",
"@Override\n\tpublic String getIconURI() {\n\t\treturn null;\n\t}",
"public int getItemRideIconFile() {\n\t\treturn mItemRideIconFile;\n\t}",
"public Icon getTabIcon();",
"public Icon getIcon()\n {\n return getComponent().getIcon();\n }",
"public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }",
"public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }"
] | [
"0.66692096",
"0.6618526",
"0.6323338",
"0.6185059",
"0.6034272",
"0.5947659",
"0.59458613",
"0.5846148",
"0.5813889",
"0.5812242",
"0.5809749",
"0.579239",
"0.578549",
"0.578549",
"0.578549",
"0.578549",
"0.5774118",
"0.570012",
"0.5699338",
"0.56739724",
"0.5646321",
"0.5593174",
"0.55890214",
"0.5580379",
"0.55711794",
"0.5567644",
"0.55612785",
"0.55612785",
"0.5551517",
"0.5551517",
"0.55307156",
"0.5522187",
"0.5521621",
"0.55201435",
"0.55201435",
"0.5514487",
"0.55109745",
"0.55094016",
"0.55094016",
"0.5509273",
"0.54748863",
"0.54748863",
"0.5441607",
"0.5441607",
"0.5438124",
"0.54362935",
"0.5431589",
"0.5430799",
"0.5421033",
"0.5417778",
"0.54112107",
"0.53961813",
"0.53955895",
"0.5392969",
"0.5389876",
"0.538687",
"0.5379151",
"0.5355937",
"0.53363717",
"0.53352934",
"0.5298375",
"0.5283057",
"0.5275896",
"0.5275441",
"0.5271286",
"0.5229672",
"0.5221537",
"0.52163446",
"0.52033013",
"0.5163876",
"0.51587003",
"0.5149599",
"0.5149599",
"0.51361126",
"0.5127745",
"0.5123983",
"0.51216346",
"0.51073396",
"0.5106672",
"0.5101982",
"0.50993645",
"0.5086085",
"0.5071699",
"0.50629765",
"0.5059374",
"0.50566334",
"0.5042678",
"0.50361276",
"0.50333345",
"0.50326794",
"0.5030042",
"0.50234115",
"0.50212914",
"0.5011957",
"0.501018",
"0.5001404",
"0.49965367",
"0.49963704",
"0.4986979",
"0.4986979"
] | 0.62481284 | 3 |
Return whether or not this item represents a bookmarked site. | public boolean getIsBookmark(int position) {
if (position < mExtraOffset || position > mCount) {
return false;
}
mCursor.moveToPosition(position - mExtraOffset);
return (1 == mCursor.getInt(Browser.HISTORY_PROJECTION_BOOKMARK_INDEX));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isSite() {\n return site;\n }",
"boolean isSetBodySite();",
"public boolean isSiteOnly()\n\t\t{\n\t\t\tboolean isSiteOnly = false;\n\t\t\tisSiteOnly = !isGroupPossible() && !isPubviewPossible();\n\t\t\treturn isSiteOnly;\n\t\t}",
"public boolean hasSite() {\n return fieldSetFlags()[0];\n }",
"boolean hasFeedItemSetLink();",
"public boolean isContentAddressable();",
"boolean hasFeedItem();",
"private boolean isTag(String item) {\n return storiesToTags.keySet().contains(item);\n }",
"public Boolean isScmSite() {\n return this.isScmSite;\n }",
"boolean hasFeedItemTarget();",
"public boolean containsBookmark(String key) {\n return bookmarks.containsKey(key);\n }",
"boolean hasFeedItemSet();",
"@NonNull\n Single<Boolean> isBookmark(@NonNull String url);",
"public boolean isReserved() {\n return target.searchLink(ParentLinkName.ENTERPRISE) != null;\n }",
"boolean hasHadithBookUrl();",
"public boolean isSitePage(final String pageTitle)\n {\n boolean displayed = false;\n try\n {\n String selector = \"div.dijitSelected span\";\n String title = findAndWait(By.cssSelector(selector)).getText();\n displayed = pageTitle.equalsIgnoreCase(title) ? true : false;\n }\n catch (NoSuchElementException e)\n {\n displayed = false;\n }\n return displayed;\n }",
"@Override\n\tpublic boolean canHaveAsContent(Item item) {\n\t\treturn false;\n\t}",
"public boolean hasAnnotatedBusiness(){\r\n\t\tList bus = this.rootDoc.selectNodes(\"a-business\") ;\r\n\t\t\r\n\t\treturn !bus.isEmpty() ;\r\n\t}",
"public boolean getStatus() {\n return _siteStatus;\n }",
"public boolean isRSS() { return _rss!=null; }",
"public boolean isDiggable() {\n return buriedItems != null;\n }",
"public boolean isBooked(){\n return booked;\n }",
"public boolean isSeller(){\n\t\tif(sellerFlag == 1) return true;\n\t\telse return false;\n\t}",
"public boolean hasLinkPanel(ItemStack page);",
"public boolean isItemLocal ();",
"public boolean isIs_pre_hgk_published() {\n return is_pre_hgk_published;\n }",
"public boolean isAt() {\n\t\treturn Browser.title().equals(title);\n\t}",
"public boolean isBtitle() {\n return Btitle;\n }",
"boolean hasExtensionFeedItem();",
"public boolean isBrowsable() {\n return (mFlags & FLAG_BROWSABLE) != 0;\n }",
"public boolean likesPastebin();",
"public boolean isSite(final String siteName)\n {\n String url = driver.getCurrentUrl();\n if (url != null && !url.isEmpty())\n {\n if (url.toLowerCase().contains(String.format(\"/site/%s/\", siteName.toLowerCase())))\n {\n return true;\n }\n }\n\n return false;\n }",
"public final boolean isHyperlink() {\n return hyperlink != null;\n }",
"public boolean isBroly() {\n\t\treturn Broly;\n\t}",
"default boolean isSwear() {\n return meta(\"nlpcraft:nlp:swear\");\n }",
"public boolean isHomeCollection();",
"public boolean isMaybeSingleAllocationSite() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && newSet(getObjectSourceLocations()).size() == 1;\n }",
"public boolean hasItemImageUrl() {\n return fieldSetFlags()[8];\n }",
"public boolean hasSaleStory() {\n return fieldSetFlags()[5];\n }",
"public boolean isPageWritable(ItemStack page);",
"public boolean isDeployed(){\n return !places.isEmpty();\n }",
"public boolean isSetHomepage() {\n return this.homepage != null;\n }",
"public boolean hasPathTo(Site s) {\n\t\treturn marked[s.getX()][s.getY()];\n\t}",
"public boolean isShareableStatusDetermined() {\n if (shareableStatus.equals(SHAREABLE_STATUS_SHAREABLE)\n || shareableStatus.equals(SHAREABLE_STATUS_SHAREABLE_NOT_PUBLIC)\n || shareableStatus.equals(SHAREABLE_STATUS_NOT_SHAREABLE)) {\n return true;\n }\n return false;\n }",
"public boolean hasABite() {\n return result.hasABite();\n }",
"boolean isSetSites();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"boolean hasContent();",
"public boolean isBattling()\n\t{\n\t\treturn m_isBattling;\n\t}",
"public boolean hasItem() {\n return null != item;\n }",
"@Override\n public boolean shouldRiderSit()\n {\n return entityData.get(SHOULD_SIT);\n }",
"public boolean isHasScholarship() {\n return hasScholarship;\n }",
"public boolean isShare() {\n return (option >> 5 & 1) == 1;\n }",
"public boolean hasItem() {\n return this.item != null;\n }",
"public boolean isSetBold()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(BOLD$4) != 0;\n }\n }",
"public boolean canBike() {\r\n\t\tif (location == Location.SAFARI || location == Location.TOWN || location == Location.CAVE) {\r\n\t\t\treturn items.containsKey(Bicycle.getBicycleInstance());\r\n\t\t} else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n public boolean isSheared() {\n return this.entityData.get(SHEARED);\n }",
"@Override\r\n\tpublic boolean isPublished() {\r\n\t\treturn super.isPublished();\r\n\t}",
"public boolean isFavorite() {\n\t\tsynchronized (this) {\n\t\t\tif (mFavoritesCache != null) {\n\t\t\t\treturn mFavoritesCache.isFavoriteSong(getAudioId(),\n\t\t\t\t\t\tgetTrackHost());\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean isInwardType() {\n\t\tboolean isInward = false;\n\n\t\t//Booking Type\n\t\tif (cbBookingType.getText().equals(INWARD_TYPE))\n\t\t\tisInward = true;\n\n\t\treturn isInward;\n\t}",
"boolean isInDownloadedArea();",
"public boolean isSetSiteid() {\n return __isset_bit_vector.get(__SITEID_ISSET_ID);\n }",
"boolean hasPageCategoryId();",
"public final boolean getHasContent() {\n return this.url != null;\n }",
"private boolean serverBelongsToSite(IPSGuid siteGuid, IPSPubServer pubServer) throws Exception\n {\n List<PSPubServer> servers = pubServerDao.findPubServersBySite(siteGuid);\n for (PSPubServer server : servers)\n {\n if(server.getServerId() == pubServer.getServerId()) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSetPageUrl() {\n return this.pageUrl != null;\n }",
"public boolean isSetBlogPostVO() {\n return this.blogPostVO != null;\n }",
"@Override\n\tpublic boolean isBreedingItem(ItemStack item) {\n\t\treturn getBreed().getBreedingItem() == item.getItem();\n\t}",
"@BeanTagAttribute(name = \"renderMaintenanceLinks\")\r\n public Boolean isRenderMaintenanceLinks() {\r\n return this.renderMaintenanceLinks;\r\n }",
"public boolean bookable() {\n for (Flight flight : itinerary) {\n if (flight.getNumSeats() <= 0) {\n return false;\n }\n }\n return true;\n }",
"boolean hasBiddingStrategy();",
"public boolean isTheme( )\n {\n return getType( ) != null && ConstanteUtils.CONSTANTE_TYPE_LUTECE_SITE.equals( getType( ) );\n }",
"public boolean hasSystemID()\n {\n \treturn getSiteID() != null;\n }",
"private static boolean isAssetControlledByWebsite(URI hrefURI, URI websiteBaseURI, URI docBaseURI) {\n var hrefURIHasHost = hrefURI.getHost() != null;\n var docBaseURIHasHost = docBaseURI.getHost() != null;\n if (hrefURIHasHost) {\n return hrefURI.getHost().equals(websiteBaseURI.getHost());\n } else if (isDocumentRelativeURI(hrefURI) && docBaseURIHasHost) {\n return docBaseURI.getHost().equals(websiteBaseURI.getHost());\n } else {\n return true;\n }\n }",
"public boolean isItemIndex() {\n return !isMetadataIndex();\n }",
"public boolean isSaved() {\n\t\treturn !sitePanel.isDataModified();\n\t}",
"public boolean isStopMark(final Object item) {\r\n return this.currentstopMark == item;\r\n }",
"public String getIsShare() {\n return isShare;\n }",
"public boolean getBooleanValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a boolean.\");\n }",
"public boolean isAt() {\n return Browser.getCurrentUrl().contains(\"clients\");\n }",
"protected boolean isInlineItem(String nsURI, String lName) {\n return (FO_URI.equals(nsURI) \n && (lName.equals(\"bidi-override\") \n || lName.equals(\"character\") \n || lName.equals(\"external-graphic\") \n || lName.equals(\"instream-foreign-object\")\n || lName.equals(\"inline\") \n || lName.equals(\"inline-container\")\n || lName.equals(\"leader\") \n || lName.equals(\"page-number\") \n || lName.equals(\"page-number-citation\")\n || lName.equals(\"basic-link\")\n || (lName.equals(\"multi-toggle\")\n && (getNameId() == FO_MULTI_CASE \n || findAncestor(FO_MULTI_CASE) > 0))\n || (lName.equals(\"footnote\") && !isOutOfLineFODescendant)\n || isNeutralItem(nsURI, lName)));\n }",
"boolean hasLandingPageView();",
"private boolean isArchive() {\n RepoPath repositoryPath = InternalRepoPathFactory.create(getRepoKey(), getPath());\n ItemInfo fileInfo = retrieveItemInfo(repositoryPath);\n return NamingUtils.getMimeType(fileInfo.getRelPath()).isArchive();\n }",
"boolean getIsAmazon();",
"boolean hasIsAmazon();",
"public boolean isSiteLocalAddress() {\n\t\treturn javaNetAddress.isSiteLocalAddress();\n\t}",
"public boolean hasLink() {\n return !links.isEmpty();\n }",
"public boolean getIsOutlined() {\n if (isOutlined.equalsIgnoreCase(\"TRUE\")) {\n return true;\n }\n if (isOutlined.equalsIgnoreCase(\"FALSE\")) {\n return false;\n }\n else {\n throw new IllegalArgumentException(\"Outlined policy given is invalid\");\n }\n }",
"boolean isSite271(String url) {\n if (url.startsWith(\"http://pay.88vipbet.com/onlinePay\")) {\r\n return true;\r\n }\r\n return false;\r\n }",
"boolean hasHasInstitutionHomePage();",
"boolean hasFeed();",
"boolean hasFeed();",
"public boolean hasSecondItemToBuy() {\n return this.secondItemToBuy != null;\n }",
"boolean getUsePage();",
"public boolean isImpenetrable() {\n\t\treturn impenetrable;\n\t}"
] | [
"0.64148605",
"0.62671226",
"0.6230242",
"0.6157166",
"0.6025338",
"0.5882011",
"0.5871463",
"0.563737",
"0.5588414",
"0.5586472",
"0.556911",
"0.55513424",
"0.55505866",
"0.5546784",
"0.5535611",
"0.5508223",
"0.55007553",
"0.5497897",
"0.548902",
"0.5480961",
"0.54753464",
"0.5410526",
"0.5399157",
"0.53965086",
"0.5384416",
"0.53826773",
"0.5348321",
"0.53410506",
"0.5331938",
"0.5328921",
"0.5317834",
"0.53048897",
"0.5304709",
"0.52995384",
"0.52989304",
"0.5284937",
"0.52829933",
"0.5280951",
"0.52730554",
"0.5256075",
"0.5254125",
"0.5249281",
"0.5220572",
"0.5220104",
"0.5217821",
"0.5210948",
"0.5189505",
"0.5189505",
"0.5189505",
"0.5189505",
"0.5189505",
"0.5189505",
"0.5189505",
"0.51876163",
"0.51834345",
"0.51745456",
"0.51461947",
"0.51368934",
"0.5135366",
"0.5129771",
"0.51188064",
"0.5116086",
"0.5109623",
"0.50984234",
"0.50946933",
"0.50943244",
"0.5090951",
"0.50905836",
"0.50864613",
"0.5084398",
"0.5054447",
"0.5050088",
"0.5048083",
"0.50466007",
"0.50411266",
"0.5041107",
"0.50406367",
"0.50365335",
"0.50246406",
"0.50200504",
"0.5014985",
"0.50141627",
"0.5011995",
"0.50098157",
"0.50010526",
"0.49982294",
"0.49937806",
"0.49914074",
"0.49847347",
"0.4983274",
"0.49825928",
"0.49782315",
"0.49717277",
"0.49707067",
"0.49686193",
"0.4968587",
"0.4968587",
"0.4957493",
"0.49570632",
"0.49535388"
] | 0.5528343 | 15 |
Private helper function to return the title or url. | private String getString(int cursorIndex, int position) {
if (position < mExtraOffset || position > mCount) {
return "";
}
mCursor.moveToPosition(position- mExtraOffset);
return mCursor.getString(cursorIndex);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"java.lang.String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"String getTitle();",
"public java.lang.String getTitle();",
"private String getTitle(String title, String url) {\n if (TextUtils.isEmpty(title) || TextUtils.getTrimmedLength(title) == 0) {\n title = UrlUtils.stripUrl(url);\n }\n return title;\n }",
"public String GetTitle(){ return(title); }",
"String title();",
"String title();",
"public String getTitle() {\n/* 354 */ return getTitle((String)null);\n/* */ }",
"public abstract String getTitle();",
"public abstract String getTitle();",
"public abstract String getTitle();",
"public abstract String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"public String getTitle();",
"private String getUrl(String title, String url) {\n if (TextUtils.isEmpty(title)\n || TextUtils.getTrimmedLength(title) == 0\n || title.equals(url)) {\n return null;\n } else {\n return UrlUtils.stripUrl(url);\n }\n }",
"protected abstract String title ();",
"String getNavigationBarTitle(String title, String url);",
"String get_title()\n {\n return title;\n }",
"@ObjectSupport public final String title() {\n return title==null\n ? title = createTitle()\n : title;\n }",
"public abstract String getShortTitle();",
"protected String getTitle(String siteName) { \n return siteName;\n }",
"@NonNull\n String getTitle() throws Exception;",
"public String getTitle() { return title; }",
"String getTitle() {\r\n return title;\r\n }",
"public String getTitle() { return this.title; }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\r\n {\r\n return title;\r\n }",
"public String getTitle()\n {\n return title;\n }",
"public abstract CharSequence getTitle();",
"String getTitle() {\n return title;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"String getTitre();",
"public String getTitle() {\n\treturn title;\n}",
"private String getTitle() {\n return title;\n }",
"public String getTitle()\n {\n return (this.title);\n }",
"@Override\r\n\tpublic String getTitle() {\n\t\treturn title;\r\n\t}",
"@Override\r\n public String getTitle() {\n return title;\r\n }",
"@NonNull\n public String getTitle() {\n return this.title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle() {\n return title;\n }",
"public String getTitle( ) {\n return null;\r\n }",
"@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }",
"public String getThatTitle(){\n return this.title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"public String getTitle()\n {\n return title;\n }",
"IDisplayString getTitle();",
"@NotNull\n String getTitle();",
"public String getTitle()\r\n {\r\n return this.title;\r\n }",
"public java.lang.Object getTitle() {\n return title;\n }",
"@Override\r\n public String getTitle() {\r\n return title;\r\n }",
"public String getTitle() {\r\n return this.title;\r\n }",
"public String getWebTitle() {\n return mWebTitle;\n }",
"public java.lang.String getTitle() {\n return title;\n }",
"@Override\n public String getTitle() {\n return title;\n }",
"public String getTitle() {\n \t\treturn title;\n \t}",
"public String getTitle() {\n return this.title;\n }",
"public com.a9.spec.opensearch.x11.QueryType.Title xgetTitle()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.a9.spec.opensearch.x11.QueryType.Title target = null;\n target = (com.a9.spec.opensearch.x11.QueryType.Title)get_store().find_attribute_user(TITLE$2);\n return target;\n }\n }",
"public String getTitle(){\n return title;\n }",
"public String getTitle(){\n return title;\n }",
"public String getTitle(){\n return title;\n }"
] | [
"0.7411172",
"0.7411172",
"0.7411172",
"0.7411172",
"0.7411172",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.70400697",
"0.7030504",
"0.6912481",
"0.68998843",
"0.68941945",
"0.68941945",
"0.6837499",
"0.6731252",
"0.6731252",
"0.6731252",
"0.6731252",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6726114",
"0.6672433",
"0.663612",
"0.65970737",
"0.65672356",
"0.65478945",
"0.6543105",
"0.6537757",
"0.651155",
"0.65051943",
"0.64910305",
"0.63942194",
"0.63617635",
"0.63617635",
"0.6357607",
"0.6354864",
"0.6343011",
"0.63384634",
"0.63363343",
"0.63347006",
"0.63341624",
"0.6327194",
"0.63240933",
"0.632142",
"0.6310026",
"0.6305259",
"0.6305259",
"0.6305259",
"0.6305259",
"0.6305259",
"0.6305216",
"0.629769",
"0.6293769",
"0.62914",
"0.62914",
"0.62914",
"0.62914",
"0.62914",
"0.62914",
"0.6290167",
"0.6276263",
"0.62646574",
"0.6260088",
"0.62583977",
"0.6236733",
"0.6233603",
"0.62311375",
"0.6229449",
"0.6228758",
"0.6217637",
"0.6215196",
"0.6213961",
"0.6213961",
"0.6213961"
] | 0.0 | -1 |
set (no duplicati) ordinato (Comparable) | public static void main(String[] args) {
ProvaCollezioni pc = new ProvaCollezioni();
pc.spesa.add("latte");
pc.spesa.add("pane");
pc.spesa.add("biscotti");
pc.spesa.add("olio");
pc.spesa.add("biscotti");
System.out.println(pc.spesa.size());
for (String voce : pc.spesa) {
pc.spesaFiltrata.add(voce);
pc.spesaOrdinata.add(voce);
}
System.out.println(pc.spesaFiltrata.size());
for (String string : pc.spesaOrdinata) {
System.out.println(string);
}
Map<String, String> regioni = new TreeMap<>();
regioni.put("Piemonte", "Torino");
regioni.put("Lombardia", "Milano");
regioni.put("Toscana", "Firenze");
regioni.put("Puglia", "Bari");
System.out.println(regioni.size());
System.out.println(regioni.get("Piemonte"));
System.out.println(regioni.keySet());
System.out.println(regioni.values());
// for (String regione : regioni.keySet()) {
// System.out.println("Il capoluogo della regione "
// + regione
// + " è: "
// + regioni.get(regione));
// }
//
for (Entry<String, String> regione : regioni.entrySet()) {
System.out.print("Il capoluogo della regione " + regione.getKey());
System.out.println(" è: " + regione.getValue());
System.out.println(regione);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object insert(Comparable o);",
"@Override\n\tpublic int compareTo(Objeto o) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\tDatum od=(Datum)o;\n\t\tdouble dif=size-od.size;\n\t\tif(dif != 0)\n\t\t\treturn (int)Math.signum(dif);\n\t\treturn id-od.id;\n\t}",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n public int compareTo(Object o) {\n return 0;\n }",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}",
"@Override\n\t\t\tpublic int compareTo(Object o) {\n\t\t\t\treturn 0;\n\t\t\t}",
"@Override\n\t\tpublic int compareTo(Object arg0) {\n\t\t\treturn 0;\n\t\t}",
"@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic int compareTo(T o) {\n\t\treturn 0;\n\t}",
"@Override\n public int compareTo(Empleados o)\n {\n return 0;\n }",
"@Override\r\n\tint compareTo( IToon t );",
"@Override\r\n public int compareTo(Object obj) {\r\n if (!(obj instanceof Data)) {\r\n return 1; //??? return arbitary value saying that not equal\r\n }\r\n Data other = (Data) obj;\r\n if (this.distanz > other.distanz) {\r\n return 1;\r\n }\r\n if (this.distanz < other.distanz) {\r\n return -1;\r\n }\r\n return 0;\r\n }",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n Set<Integer> S1 = new TreeSet<>();\r\n // add objects\r\n S1.add(65); S1.add(36); S1.add(24); S1.add(36);\r\n \r\n // show the content and assert they are sorted and no duplications\r\n System.out.println(\"set = \" + S1); \r\n //remove elements\r\n S1.remove(36); S1.remove(24);\r\n System.out.println(S1); //assert set = 65\r\n S1.add(15); S1.add(24); S1.add(80); // add 15, 24, 80\r\n System.out.println(\"set = \" +S1); //assert set = 15, 24, 65, 80\r\n \r\n System.out.println(\"Does S1 contain 10?\"\r\n + S1.contains(10)); // assert false\r\n System.out.println(\"S1 has \" + S1.size() +\" objects\"); // assert 4\r\n\r\n // create another Set object implemented using HashSet\r\n Set<Integer> S2 = new HashSet<>();\r\n // add all objects in S1 to S2\r\n S2.addAll(S1);\r\n System.out.println(\"hashset = \" +S2); //assert they may not be ordered\r\n\r\n // create another Set object implemented using LinkedHashSet\r\n Set<Integer> S3 = new LinkedHashSet<>();\r\n S3.add(150); // add 150\r\n S3.addAll(S1);// add all objects in S1 to S2\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[150,15,24,65,80]\r\n \r\n S3.removeAll(S3); // remove all items\r\n System.out.println(\"LinkedHashSet = \" +S3);//assert s3=[]\r\n }",
"@Override\n public int compareTo(NodoTablas<K, V> arg0) {\n return 0;\n }",
"public SortedSet(ISet<E> other) {\n\n }",
"@Override\n\tpublic int compareTo(PrefWritable arg0) {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}",
"@Override\n public int compareTo(MensagemEleicao o) {\n int i = relogio.compareTo(o.relogio);\n if(i==0){ //se a comparação do relogio for igual\n if(id<o.getId()){ //usa o id maior como criterio de decisão;\n return -1;\n }\n return 1;\n }\n return i;\n }",
"@Override\n\tpublic int compareTo(Object o) {\n\t\tMateriaPrima mp = (MateriaPrima)o; \n\t\treturn this.id - mp.id;\n\t}",
"@Override\n\tpublic int compareTo(Pregled o) {\n\t\treturn getDatum().compareTo(o.getDatum());\n\t}",
"@Override\n\tpublic int compareTo(Element o) {\n\t\treturn Integer.compare(val, o.val);\n\t}",
"public interface Comparable\n{\n\t/**\n\t * Returns a number representing the ordering relationship that\n\t * the object has with the given object.\n\t * A negative number indicates that the object is \"smaller\" than\n\t * the parameter, a positive number means it is \"larger\" and zero\n\t * indicates that the objects are equal.\n\t */\n\tint compareTo(Object o);\n\n\t/**\n\t * Returns true if this object is equal to the given object.\n\t */\n\tboolean equals(Object o);\n}",
"public void setData(Comparable pData) {\n data = pData;\n }",
"public int compareTo(Object o){\n int r;\n if(this.key == ((sortableWord)o).key){ \n r = 0;\n }\n else if(this.key > ((sortableWord)o).key) r = -1;\n else //if(this.peak < ((sortableWordt)o1).peak) \n r = 1;\n return r;\n }",
"@Test\n public void testSet_Order() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.set(2, 9);\n\n List<Integer> expResult = Arrays.asList(1, 1, 9, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"public Comparable set( int index, Comparable newVal ) {\n\tComparable temp= _data[index];\n\t_data[index]= newVal;\n\treturn temp;\n }",
"public int compareTo(Object o) {\n return 0;\n }",
"public abstract void compare();",
"@Override\n\tpublic int compareTo(Object obj) {\n\t\tif (!(obj instanceof MpGestionEnvio))\n\t\t\tthrow new ClassCastException(\"Valor invalido\");\n\t\tMpGestionEnvio tmp = (MpGestionEnvio) obj;\n\t\treturn (this.id.compareTo(tmp.id));\n\t}",
"@Override\n\tpublic int compareTo(Object arg0) {\n\t\tNoeud a = (Noeud)this;\n\t\tNoeud b = (Noeud)arg0;\n\t\treturn a.getId() - b.getId();\n\t}",
"@Override\n\tpublic int compareTo(Tuple o) {\n\t\treturn this.val-o.val;\n\t}",
"@Override\r\n\t public int compareTo(Geltokia o) {\r\n if (disTerm < o.disTerm) {\r\n return -1;\r\n }\r\n if (disTerm > o.disTerm) {\r\n return 1;\r\n }\r\n return 0;\r\n }",
"public interface OrderedSet<T> {\r\n\r\n\tpublic void put(T key);\r\n\t\r\n\tpublic int rank(T key);\r\n\t\r\n\tpublic boolean contains(T key);\r\n\t\r\n\tpublic T select(int rank);\r\n\t\r\n\tpublic T[] keys();\r\n\t\r\n\tpublic T[] keys(int lo,int hi);\r\n\r\n\tpublic T[] keys(T lo, T hi);\r\n\t\r\n\t//(key-1)find the predecessor\r\n\tpublic T floor(T key);\r\n\t\r\n\t//(key+1)find the successor\r\n\tpublic T ceiling(T key);\r\n}",
"boolean isComparable();",
"@Override\r\n\tpublic int compareTo(Object arg0) {\n\t\tEmp a = (Emp)arg0;\r\n\t\tif(this.Sal>a.Sal)\r\n\t\t\treturn 1;//no swap\r\n\t\telse \r\n\t\t\treturn -1;//swap\r\n\t\t\r\n\t}",
"public int compareTo(Valuable p){\n\treturn (int)Math.signum(this.value-p.getValue());\n}",
"@Override\n\t\tpublic int compare(WritableComparable a, WritableComparable b) {\n\t\t\tSystem.out.println(\"comparision occur\");\n\t\t\tif (a instanceof IntPair && b instanceof IntPair) {\n\t\t\t\treturn ((IntPair) a).id.compareTo(((IntPair) b).id);\n\t\t\t}\n\t\t\treturn super.compare(a, b);\n\t\t}",
"@Override\r\n\tpublic int compareTo(Stud1 o) {\n\t\tif(this.getId()==o.getId())\r\n\t\t{\r\n\t\t\treturn +1;\r\n\t\t}\r\n\t\telse if(this.getId()<o.getId())\r\n\t\t{\r\n\t\t\treturn +1;\r\n\t\t}\r\n\t\telse\r\n\t\treturn +1;\r\n\t}",
"public int compareTo(Person that) { return -1; }",
"public interface Comparable {\n\n\n boolean better(Comparable other);\n}",
"public int compareTo(Object o) {\n\t\treturn 1;\n\t}",
"@Override\n\tpublic int compareTo(Key o) {\n\t\tint temp = 0;\n\t\t\t\t\n\t\tif (this.value > o.value) \t\ttemp = 1;\n\t\telse if (this.value < o.value) temp = -1;\n\t\telse \t\t\t\t\t\t\ttemp = 0;\n\t\t\n\t\treturn temp;\n\t}",
"@Override\n\tpublic int compareTo(OrderManagement arg0) {\n\t\tint id = ((OrderManagement) arg0).getId();\n\t\treturn this.id - id;\n\t}",
"@Override\r\n public int compareTo(Towar o) {\n int result = getNazwa().compareTo(o.getNazwa());\r\n return result;\r\n }",
"private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }",
"public int compareTo(Object o) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic int compareTo(E o) {\n\t\treturn 0;\r\n\t}",
"@Override\n public int compareTo(Viesti t) {\n if(tunniste<t.haeTunniste())\n return -1;\n else if(tunniste==t.haeTunniste())\n return 0;\n else\n return 1;\n }",
"@Override\r\n\tpublic int compareTo(Truck o) {\n\t\treturn 0;\r\n\t}",
"public int compareTo(Object other) { return 404;}",
"@Override\n public int compareTo(Author o) {\n return this.getId() - o.getId();\n }",
"@Override\r\n \tpublic int compareTo(BaseAmount<Q> o) {\n \t\treturn 0;\r\n \t}",
"@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}",
"private static void exchange( Comparable[] datos, int i, int j)\n\t{\n\t\t// TODO implementar\n\t\tComparable copia=datos[j];\n\t\tdatos[j]=datos[i];\n\t\tdatos[i]=copia; \n\t}",
"public abstract int compareTo(HistoryEntry aThat);",
"@Test\n public void testSet_Order_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 1, 1, 1, 1);\n instance.addAll(c);\n\n instance.set(2, 9);\n\n List<Integer> expResult = Arrays.asList(1, 1, 9, 1, 1, 1, 1);\n\n assertTrue(isEqual(expResult, instance));\n\n }",
"@Override\r\n protected int compareTo (BasicComponent o)\r\n {\n return 0;\r\n }",
"@Override\n\tpublic int compareTo(IPunktuelleBedingung o) {\n\t\treturn -1;\n\t}",
"public int compareTo(Object o) {\n return compareTo((MutableInteger) o);\n }",
"@Override\n\t\tpublic int compareTo(cc o) {\n\t\t\treturn -1*(this.getSize() - o.getSize());\n\t\t}",
"public Set<String> getComparableValue()\n\t{\n\t\treturn comparableValues;\n\t}",
"public int compareTo(Object o){\r\n\t\t Employee emp = (Employee) emp;\r\n\t\t return this.id-o.id ;\r\n\t\t}",
"@Override\n\tpublic int compareTo(TaxaConhecimentoDto o) {\n\t\treturn valor.compareTo(o.getValor());\n\t}",
"@Override\n\tpublic int compareTo(Cau4 o) {\n\t\treturn 0;\n\t}",
"public static void main(String[] args) {\n\t\tList l1=new ArrayList();\n\t\tl1.add(0, \"Gyan\");\n\t\tl1.add(1, \"Ranjan\");\n\t\tl1.add(2, \"Mahapatra\");\n\t\tSystem.out.println(l1);\n\t\tl1.add(2,\"xyz\");\n\t\tSystem.out.println(l1 + \" \" +l1.get(2));\nint a[]=new int[8];\nfor(int i=0;i<8;i++){\n\ta[i]=i;\n}\n//for(int j:a)\n//\tSystem.out.println(j);\nList l2=new ArrayList();\nl2.add(\"Sonit\");\nl2.add(\"Dora\");\nl2.add(\"Sourav\");\n/*System.out.println(l2);\nl2.remove(1);*/\nSystem.out.println(l2);\nSet s=new HashSet();\ns.add(\"seta\");\ns.add(\"setc\");\ns.add(\"setb\");\nSystem.out.println(s);\nCollections.sort((List) s);\nSystem.out.println(s);\n\nSet s1=new TreeSet(s);\nSystem.out.println(s1.size());\nSystem.out.println(\"Gyan\");\n\t}",
"@Override\r\n \tpublic int compareTo(Doc arg0) {\n \t\treturn this.getID()-arg0.getID();\r\n \t}",
"@Override\n\t\tpublic int compareTo(sampleObject so) {\n\t\t\tif (this.id < so.id)\n\t\t\t\treturn 1;\n\t\t\telse if (this.id > so.id)\n\t\t\t\treturn -1;\n\t\t\telse \n\t\t\t\treturn 0;\n\t\t}",
"public static void main(String[] args) {\n Set<String> list = new TreeSet<>();\n list.add(\"Song\");\n list.add(\"Album\");\n list.add(\"Artist\");\n list.add(\"Year\");\n list.add(\"Genre\");\n list.add(\"Song\");\n list.add(\"Song\");\n\n System.out.println();\n for(String x : list){\n System.out.println(x);\n }\n\n //NO REPITTED VALUES AND ASCENDED ORDER WHIT COMPARABLE, HASHCODE AND EQUALS\n Set<Persona> list2 = new TreeSet<>();\n list2.add(new Persona(1, \"Rayman\"));\n list2.add(new Persona(2, \"Castlevania\"));\n list2.add(new Persona(3, \"Silent Hill\"));\n list2.add(new Persona(4, \"Silent Hill\"));\n list2.add(new Persona(1, \"Rayman\"));\n\n System.out.println();\n for(Persona x : list2){\n System.out.println(x.getId() + \" - \" + x.getName());\n }\n }",
"@Override\r\n public int compareTo(EmployeeComparable emp) {\n return (this.id - emp.id);\r\n }",
"@Override\r\n\tpublic int compareTo(Punti arg0) {\n\t\treturn arg0.getPunti()-this.punti;\r\n\t}",
"@Override\n public int compareTo(Estudiante emp) {\n return this.getId().compareTo(emp.getId());\n }",
"@Test\r\n public void anotherConstructorWorks() throws Exception {\r\n TreeSet<Integer> check = new TreeSet<>(Comparator.reverseOrder());\r\n assertTrue(check.add(1));\r\n assertTrue(check.add(2));\r\n assertFalse(check.add(2));\r\n assertArrayEquals(new Integer[]{2, 1}, check.toArray());\r\n assertTrue(check.add(4));\r\n assertTrue(check.remove(2));\r\n assertFalse(check.remove(43));\r\n assertArrayEquals(new Integer[]{4, 1}, check.toArray());\r\n }",
"@Override\n\tpublic int compareTo(DocumentWritable o) {\n\t\treturn 0;\n\t}",
"int compareTo(Comparable rhs);",
"@Override\r\n\tpublic int compareTo(Data other) {\r\n\t\treturn this.iD - other.iD;\r\n\t}",
"public int compareTo(Object t) {\n if (t.getClass() != this.getClass())\n return 1;\n Card c = (Card) t;\n String strRanks = new String(valueRanks);\n if (strRanks.indexOf(c.getValue()) < 0)\n return 1;\n if (strRanks.indexOf(c.getValue()) < strRanks.indexOf(this.getValue()))\n return 1;\n if (strRanks.indexOf(c.getValue()) == strRanks.indexOf(this.getValue()))\n return 0;\n if (strRanks.indexOf(c.getValue()) > strRanks.indexOf(this.getValue()))\n return -1;\n return 1;\n }",
"@Override\npublic int compareTo(CompositeKey o) {\n\tif(o == null ||this.key1<o.getKey1()) return -1;\n if(this.key1>o.getKey1())return 1;\n\treturn 0;\n}",
"@Override\r\n /**\r\n * Implementation of the Comparable interface\r\n */\r\n public int compareTo(HugeUInt o) {\n if (getSize() < o.getSize()) return -1;\r\n if (getSize() > o.getSize()) return 1;\r\n //At this point we know that both instances have equal sizes, we have to compare each digit\r\n int max = getSize();\r\n for (int i = max - 1; i >= 0; i--) {\r\n if (getDigit(i) < o.getDigit(i)) return -1;\r\n if (getDigit(i) > o.getDigit(i)) return 1;\r\n }\r\n //The instances are equal\r\n return 0;\r\n }",
"@Test\r\n public void descendingSet() throws Exception {\r\n TreeSet<Integer> kek = new TreeSet<>();\r\n kek.addAll(sInt);\r\n TreeSet<Integer> check = (TreeSet<Integer>) kek.descendingSet();\r\n check.add(43);\r\n assertTrue(check.contains(43));\r\n assertTrue(kek.contains(43));\r\n assertTrue(kek.remove(43));\r\n assertFalse(check.contains(43));\r\n assertFalse(kek.contains(43));\r\n }",
"@Test\n void twoEntryAreNotSame(){\n ToDo t1 = new ToDo(\"1\");\n t1.setInhalt(\"Inhalt\");\n ToDo t2 = new ToDo(\"2\");\n t2.setInhalt(\"Inhalt\");\n ToDoList list = new ToDoList();\n list.add(t1);\n list.add(t2);\n\n assertEquals(-1, list.get(0).compareTo(list.get(1)));\n }",
"@Override\n public int compare(Integer a, Integer b) {\n if (base.get(a) >= base.get(b)) {\n return 1;\n } else {\n return -1;\n } // returning 0 would merge keys\n }",
"@Override\n\tpublic int compareTo(Node o) {\n\t\treturn (int) (this.value - o.value);\n\t}",
"@Override\n\tpublic int compareTo(Resposta r) {\n\t\treturn this.id.compareTo(r.getId());\n\t}",
"@Override\n public int compareTo(Medarbejder o) {\n return antalSager() - o.antalSager();\n }",
"@Override\n public final /* synthetic */ int compareTo(Object object) {\n object = (zzcik)object;\n if (this.zzjes != ((zzcik)object).zzjes) {\n if (this.zzjes) return -1;\n return 1;\n }\n if (this.zzjer < ((zzcik)object).zzjer) {\n return -1;\n }\n if (this.zzjer > ((zzcik)object).zzjer) {\n return 1;\n }\n ((zzcjk)this.zzjeq).zzawy().zzaze().zzj(\"Two tasks share the same index. index\", this.zzjer);\n return 0;\n }",
"public abstract boolean add(Comparable element) throws IllegalArgumentException;"
] | [
"0.64475906",
"0.6358678",
"0.6274193",
"0.6238324",
"0.62372357",
"0.62213457",
"0.62213457",
"0.62213457",
"0.6203354",
"0.6203354",
"0.6203354",
"0.6203354",
"0.6203354",
"0.6203354",
"0.6203354",
"0.6203354",
"0.61934656",
"0.61476374",
"0.60651267",
"0.60493404",
"0.6047679",
"0.6046072",
"0.60151",
"0.59836763",
"0.5983315",
"0.5983315",
"0.5983315",
"0.5983315",
"0.596366",
"0.5944998",
"0.5916501",
"0.59051657",
"0.5904558",
"0.58453035",
"0.5833237",
"0.5828855",
"0.5825509",
"0.5823068",
"0.5810444",
"0.58035505",
"0.58016145",
"0.5801359",
"0.57914114",
"0.5782588",
"0.57816595",
"0.57667404",
"0.5759271",
"0.5759148",
"0.5748418",
"0.5740274",
"0.5737872",
"0.5732899",
"0.572164",
"0.5710353",
"0.5702614",
"0.57007587",
"0.56724703",
"0.5670779",
"0.5668747",
"0.5667209",
"0.56658095",
"0.56634456",
"0.5662054",
"0.565239",
"0.56517917",
"0.5651118",
"0.56509197",
"0.56467474",
"0.56445223",
"0.5640526",
"0.56397766",
"0.56392086",
"0.56363446",
"0.5628078",
"0.5625878",
"0.5624369",
"0.5612075",
"0.5610353",
"0.560755",
"0.5601562",
"0.55999714",
"0.5594946",
"0.5586945",
"0.5586665",
"0.5586357",
"0.5578522",
"0.5578189",
"0.55767447",
"0.5575312",
"0.55693305",
"0.555951",
"0.5554947",
"0.5551407",
"0.55469596",
"0.5545389",
"0.5544517",
"0.554269",
"0.55411726",
"0.5537861",
"0.5529308",
"0.5516695"
] | 0.0 | -1 |
check if the player can move to new cell | private void tryMovePlayer(int direction) {
int layerOffset = 0, rowOffset = 0, colOffset = 0;
boolean canMove = false;
Maze3D.Cell currentCell = maze3D[playerLayer][playerRow][playerCol];
Maze3D.Cell nextCell = null;
try {
switch (direction)
{
case Maze3D.UP:
nextCell = maze3D[playerLayer][playerRow - 1][playerCol];
canMove = !(currentCell.isWallTop() || nextCell.isWallBottom());
rowOffset = -1;
break;
case Maze3D.DOWN:
nextCell = maze3D[playerLayer][playerRow + 1][playerCol];
canMove = !(currentCell.isWallBottom() || nextCell.isWallTop());
rowOffset = 1;
break;
case Maze3D.LEFT:
nextCell = maze3D[playerLayer][playerRow][playerCol - 1];
canMove = !(currentCell.isWallLeft() || nextCell.isWallRight());
colOffset = -1;
break;
case Maze3D.RIGHT:
nextCell = maze3D[playerLayer][playerRow][playerCol + 1];
canMove = !(currentCell.isWallRight() || nextCell.isWallLeft());
colOffset = 1;
break;
case Maze3D.FRONT:
nextCell = maze3D[playerLayer - 1][playerRow][playerCol];
canMove = !(currentCell.isWallFront() || nextCell.isWallBack());
layerOffset = -1;
break;
case Maze3D.BACK:
nextCell = maze3D[playerLayer + 1][playerRow][playerCol];
canMove = !(currentCell.isWallBack() || nextCell.isWallFront());
layerOffset = 1;
break;
}
//if cell is not null and can move, then move
if (nextCell != null && canMove)
{
playerLayer += layerOffset;
playerRow += rowOffset;
playerCol += colOffset;
mazeView.setPlayerLocation(playerLayer, playerRow, playerCol);
moves++;
}
//if new position is the solution, then game is solved
if (isSolved())
{
notifyGameEnd();
}
}
catch (ArrayIndexOutOfBoundsException e)
{
Log.d(TAG, "tryMovePlayer: player tried to move to edge");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void checkCannotForceWithForcedCellOccupied() {\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(1, 0)));\n }",
"private static boolean canMove() {\n return GameManager.getCurrentTurn();\r\n }",
"boolean canMove (int newRow, int newColumn) {\n return canMove(newRow, newColumn, currentPiece);\n }",
"boolean canMove();",
"boolean canMove(Tile t);",
"boolean canMove (int newRow, int newColumn, Piece piece) {\n for (int r = 0; r < piece.height; ++r)\n for (int c = 0; c < piece.width; ++c) {\n if (piece.blocks[r][c] == 1 && !board.isEmpty(newRow + r, newColumn + c))\n return false;\n }\n return true;\n }",
"@Override\n boolean canMove(Cell source, Cell destination) {\n return true;\n }",
"boolean isValidMove(int col);",
"public boolean canMove() {\r\n return (state == State.VULNERABLE || state == State.INVULNERABLE);\r\n\r\n }",
"private boolean canMove() {\n return !(bestMove[0].getX() == bestMove[1].getX() && bestMove[0].getY() == bestMove[1].getY());\n }",
"public abstract boolean canMove(Board board, Spot from, Spot to);",
"@Test\n public void testMovePlayerToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getThePlayer().getLocation() == getEmptyCell());\n movePlayerToCell(getEmptyCell());\n assertEquals(getThePlayer().getLocation(), getEmptyCell());\n }",
"@Override\n public boolean isValidMove(Move move) {\n if (board[move.oldRow][move.oldColumn].isValidMove(move, board))\n return true;\n //player will not be in check\n //move will get player out of check if they are in check\n return false;\n }",
"private void checkMovement()\n {\n if (frames % 600 == 0)\n {\n \n ifAllowedToMove = true;\n \n \n }\n \n }",
"public boolean canMove()\n {\n return canMove;\n }",
"public abstract boolean canMove();",
"public static boolean canPlayerMove(Player player){\r\n int playerX = 0;\r\n int playerY = 0;\r\n int nX;\r\n int nY;\r\n //finding the player on the board\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if(player.getPosition() == board[i][j]) {\r\n playerX = i;\r\n playerY = j;\r\n }\r\n }\r\n }\r\n //making sure that the player stays on the board\r\n\r\n if(playerY != board[0].length-1) {\r\n nX = playerX;\r\n nY = playerY + 1;\r\n if (board[nX][nY].west && board[playerX][playerY].east && !board[nX][nY].isOnFire) {//if the tile will accept the player\r\n return true;\r\n }\r\n }\r\n\r\n if(playerY != 0) {\r\n nX = playerX;\r\n nY = playerY - 1;\r\n if (board[nX][nY].east && board[playerX][playerY].west && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != 0) {\r\n nX = playerX - 1;\r\n nY = playerY;\r\n if (board[nX][nY].south && board[playerX][playerY].north && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n if(playerX != board.length-1) {\r\n nX = playerX + 1;\r\n nY = playerY;\r\n if (board[nX][nY].north && board[playerX][playerY].south && !board[nX][nY].isOnFire) {\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }",
"@Override\n public boolean moveIsPossible(Coordinate coord) {\n if(gameState.getTurnState().hasMoved()){\n return false;\n }\n Field field = gameState.getField();\n if(!field.getField().containsKey(coord)){\n return false;\n }\n Cell currentPosition = gameState.getTurnState().getCurrentPlayer()\n .getPosition();\n Cell destination = field.getCell(coord);\n return field.isReachable(currentPosition, destination, 3);\n }",
"public void tryMove() {\n if(!currentPlayer.getHasPlayed()){\n if (!currentPlayer.isEmployed()) {\n String destStr = chooseNeighbor();\n\n currentPlayer.moveTo(destStr, getBoardSet(destStr));\n if(currentPlayer.getLocation().getFlipStage() == 0){\n currentPlayer.getLocation().flipSet();\n }\n refreshPlayerPanel();\n }\n else {\n view.showPopUp(currentPlayer.isComputer(), \"Since you are employed in a role, you cannot move but you can act or rehearse if you have not already\");\n }\n }\n else{ \n view.showPopUp(currentPlayer.isComputer(), \"You've already moved, rehearsed or acted this turn. Try a different command or click `end turn` to end turn your turn.\");\n }\n view.updateSidePanel(playerArray);\n }",
"@Override\r\n\tpublic boolean canMove() {\r\n\t\treturn false;\r\n\t}",
"public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);",
"public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\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\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }",
"public boolean canMove() {\n return (Math.abs(getDist())>=50);\n }",
"public MoveResult canMovePiece(Alignment player, Coordinate from, Coordinate to);",
"@Override\n protected boolean canMove(int playerIdx) {\n if(pgs.getTurnID() == playerIdx){\n return true;\n }\n return false;\n }",
"boolean isCellAlive(int x, int y);",
"public boolean updatePlayerMove(GameBoard.GameMove move) {\n\t\t\n\t\t\n\t\t/*\n\t\t * move is illegal,return false.\n\t\t */\n\t\tif(move.getRow()>2||move.getRow()<0||move.getColumn()>2||move.getColumn()<0||this.board[move.getRow()][move.getColumn()]!=TicTacTow.BoardSigns.BLANK.getSign()) {\n\t\t\treturn false; \n\t\t}\n\t\telse {\n\t\t/*\n\t\t * legal move,return true.\n\t\t */\n\t\tsetLastMove(move);\n\t\tthis.board[move.getRow()][move.getColumn()]=TicTacTow.BoardSigns.PLAYER.getSign();\n\t\treturn true;\n\t\t}\n\t}",
"public abstract boolean hasWon(int row, int col);",
"public boolean canMove() {\n\n\tArrayList<Location> moveLocs = getValid(getLocation());\n\n\tif (isEnd == true) {\n\t return false;\n\t} \n\tif (!moveLocs.isEmpty()) {\n\t \n\t randomSelect(moveLocs);\n\t // selectMoveLocation(moveLocs);\n\t return true;\n\n\t} else {\n\t return false;\n\t}\n }",
"@Test\n void checkDoMove() {\n abilities.doMove(turn, board.getCellFromCoords(1, 1));\n assertEquals(turn.getWorker().getCell(), board.getCellFromCoords(1, 1));\n Worker forcedWorker = turn.getWorker();\n for (Worker other : turn.getOtherWorkers()) {\n if (other.getCell() == board.getCellFromCoords(2, 2)) {\n forcedWorker = other;\n }\n }\n\n assertEquals(forcedWorker.getCell(), board.getCellFromCoords(2, 2));\n\n // Can't move anymore after having already moved\n assertFalse(abilities.checkCanMove(turn, board.getCellFromCoords(0, 0)));\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"boolean canMove(Color player) {\n int[][] myStatusBoard;\n if (_playerOnMove == ORANGE) {\n myStatusBoard = _orangeStatusBoard;\n } else {\n myStatusBoard = _violetStatusBoard;\n }\n if (Game._totalMoves < 2) {\n return true;\n }\n int i, j;\n for (i = 0; i < 16; i++) {\n for (j = 0; j < 16; j++) {\n if (myStatusBoard[i][j] == 1) {\n if (findMove(i, j, myStatusBoard)) {\n return true;\n }\n }\n }\n }\n return false;\n }",
"public static boolean isMoveValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t\r\n\t\tif (board[toRow][toCol]==0){/*is the target slot ia emtey*/\r\n\t\t\tif (player==1){\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){ /*is the starting slot is red player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther no eating jump?*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is this is legal move*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t\t\tif (player==-1){\r\n\t\t\t\tif (board[fromRow][fromCol]==-1||board[fromRow][fromCol]==-2){/*is the starting slot is blue player queen olayer solduer*/\r\n\t\t\t\t\tif (isBasicJumpValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the eating is legal*/\r\n\t\t\t\t\t\tans = true;\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tif (canJump(board,player)==false){/*is ther are no eating move*/\r\n\t\t\t\t\t\t\tif (isBasicMoveValid(board,player,fromRow,fromCol,toRow,toCol)){/*is the move is legal*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"private boolean hasPossibleMove()\n {\n for(int i=0; i<FieldSize; ++i)\n {\n for(int j=1; j<FieldSize; ++j)\n {\n if(field[i][j] == field[i][j-1])\n return true;\n }\n }\n for(int j=0; j<FieldSize; ++j)\n {\n for(int i=1; i<FieldSize; ++i)\n {\n if(field[i][j] == field[i-1][j])\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean currentPlayerHavePotentialMoves() {\n return !checkersBoard.getAllPotentialMoves(getCurrentPlayerIndex()).isEmpty();\n }",
"private boolean isThereValidMove() {\n\t\treturn true;\n\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"private boolean canMove() {\n\t\tif (System.currentTimeMillis() - lastTrunTime < 300) {// move time is\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 300ms before\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// last move\n\t\t\treturn false;\n\t\t}\n\t\tboolean status = false;\n\t\tif(stage == 1){\n\t\t\tmap = GameView.map;\n\t\t}else if(stage == 2){\n\t\t\tmap = GameViewStage2.map;\n\t\t}else {\n\t\t\tmap = GameViewStage3.map;\n\t\t}\n\t\tif (direction == UP) {// when tank moves up\n\t\t\tif (centerPoint.getY() - speed >= 0) {\n\t\t\t\tif (map[(centerPoint.getY() - speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() - speed) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == DOWN) {\n\t\t\tif (centerPoint.getY() + tankBmp.getHeight() + speed < screenHeight) {\n\t\t\t\tif (map[(centerPoint.getY() + 2 * UNIT + speed) / UNIT][centerPoint\n\t\t\t\t\t\t.getX() / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + UNIT) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT][(centerPoint.getX() + 2 * UNIT) / UNIT] == 0) {\n\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == LEFT) {\n\n\t\t\tif (centerPoint.getX() - speed >= 0) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX() - speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() - speed) / UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (direction == RIGHT) {\n\t\t\tif (centerPoint.getX() + tankBmp.getWidth() + speed < screenWidth) {\n\t\t\t\tif (map[centerPoint.getY() / UNIT][(centerPoint.getX()\n\t\t\t\t\t\t+ 2 * UNIT + speed)\n\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0\n\t\t\t\t\t\t&& map[(centerPoint.getY() + 2 * UNIT) / UNIT][(centerPoint\n\t\t\t\t\t\t\t\t.getX() + 2 * UNIT + speed)\n\t\t\t\t\t\t\t\t/ UNIT] == 0) {\n\t\t\t\t\tstatus = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (status)\n\t\t\tlastTrunTime = System.currentTimeMillis();\n\t\treturn status;\n\t}",
"@Override\n\tpublic boolean isLegalMove(Square newPosition) {\n\t\treturn false;\n\t}",
"public static boolean legalMove(char[][] grid, int[] newMove){\n if (grid[newMove[0]][newMove[1]] == 'e') {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean canMove() {\n ArrayList<Location> valid = canMoveInit();\n if (valid == null || valid.isEmpty()) {\n return false;\n }\n ArrayList<Location> lastCross = crossLocation.peek();\n for (Location loc : valid) {\n Actor actor = (Actor) getGrid().get(loc);\n if (actor instanceof Rock && actor.getColor().equals(Color.RED)) {\n next = loc;\n isEnd = true;\n return false;\n }\n if (!lastCross.contains(loc)) {\n lastCross.add(loc);\n next = loc;\n ArrayList<Location> nextCross = new ArrayList<>();\n nextCross.add(next);\n nextCross.add(last);\n crossLocation.push(nextCross);\n return probabilityAdd();\n }\n }\n next = lastCross.get(1);\n crossLocation.pop();\n return probabilitySub();\n }",
"public abstract boolean validMove(ChessBoard board, Square from, Square to);",
"public boolean moveable() {\n //check reach border\n if (reachBorder()) {\n return false;\n }\n //get the location of the next spot to move to\n //move up\n Point nextLocation = this.getCenterLocation();\n if (direction == 12) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() - speed);\n }\n //move right\n if (direction == 3) {\n nextLocation = new Point(this.getCenterX() + speed,\n this.getCenterY());\n\n }\n //move down\n if (direction == 6) {\n nextLocation = new Point(this.getCenterX(),\n this.getCenterY() + speed);\n\n }\n //move left\n if (direction == 9) {\n nextLocation = new Point(this.getCenterX() - speed,\n this.getCenterY());\n }\n\n // get all objects in a circle of radius tileSize * 2 around the players\n //these objects are those which can possibly colide with the players\n int checkRadius = GameUtility.GameUtility.TILE_SIZE * 2;\n for (GameObject gameObject : GameManager.getGameObjectList()) {\n if (GameUtility.GameUtility.distance(gameObject.getCenterLocation(),\n this.getCenterLocation()) < checkRadius) {\n if ((GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n nextLocation)) && !(GameUtility.GameUtility.dectectCollision(\n gameObject.getCenterLocation(),\n this.getCenterLocation())) && gameObject.getType() != GameObjectType.POWER_UP && gameObject.getType() != GameObjectType.MONSTER && gameObject.getType() != GameObjectType.PLAYER) {\n return false;\n }\n }\n }\n return true;\n\n }",
"public abstract boolean canMove(int originX, int originY, int destX, int destY);",
"public boolean canMoveTo (Coordinate c)\n\t{\n\t\tif (c.x < 0 || c.x >= GRID_SIZE){\n\t\t\treturn false;\n\t\t}\n\t\tif (c.y < 0 || c.y >= GRID_SIZE) {\n\t\t\treturn false;\n\t\t}\n\t\tif (grid[c.x][c.y] == GridChar.AVAILABLE || grid[c.x][c.y] == GridChar.END){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tboolean isValidSpecialMove(int newX, int newY) {\n\t\tint xDisplacement = newX - xLocation;\n\t\tint yDisplacement = newY - yLocation;\n\t\tif(isValidQueenMove(xDisplacement, yDisplacement)){\n\t\t\tint steps = Math.max(Math.abs(xDisplacement), Math.abs(yDisplacement));\n\t\t\tint xDirection = xDisplacement/steps;\n\t\t\tint yDirection = yDisplacement/steps;\n\t\t\t// Check for obstacles in path of Queen.\n\t\t\tfor(int i = 1; i < steps; i++){\n\t\t\t\tSquare squareToCheck = currentBoard.squaresList[xLocation + i*xDirection][yLocation + i*yDirection];\n\t\t\t\tif(squareToCheck.isOccupied)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@Test\r\n public void callingMovePossibleWhenTryingToTakeAnOpponentPieceWith2MarkersOnShouldReturnFalse() {\n player1.movePiece(12, 11, board);\r\n player1.movePiece(12, 11, board);\r\n\r\n player2.movesLeft.moves.add(2);\r\n\r\n // Then\r\n assertFalse(player2.isMovePossible(13, 11, board));\r\n }",
"public boolean move(int oldCol, int oldRow, int newCol, int newRow , char promo) {\r\n\r\n\r\n if(isValidMove(oldCol, oldRow, newCol, newRow)) {\r\n\r\n\r\n // not a valid move for current player for ANY piece\r\n // if current players king will be in check as a result\r\n // move is disallowed\r\n if (King.isPlayerKingInCheck(oldRow, oldCol, newRow, newCol)) {\r\n return false;\r\n }\r\n else {\r\n\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.whiteincheck=false;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.blackincheck=false;\r\n }\r\n }\r\n\r\n\r\n\r\n Chessboard.chessBoard[newRow][newCol].setPiece(Chessboard.chessBoard[oldRow][oldCol].getPiece());\r\n Chessboard.chessBoard[oldRow][oldCol].setPiece(null);\r\n Chessboard.chessBoard[newRow][newCol].getPiece().moved();\r\n\r\n if (King.isOpponentKingInCheck(newRow, newCol)){\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.blackincheck=true;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.whiteincheck=true;\r\n }\r\n }\r\n else {\r\n if (Chessboard.whitesTurn==true) {\r\n Chessboard.blackincheck=false;\r\n }\r\n if (Chessboard.blacksTurn==true) {\r\n Chessboard.whiteincheck=false;\r\n }\r\n }\r\n if(King.isOpponentKinginCheckmate(newRow, newCol)) {\r\n Chessboard.checkMate=true;\r\n }\r\n\r\n\r\n Pawn.r = -1;\r\n Pawn.c = -1;\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean workerCanMove(int worker) {\n\n Board board = game.getBoard();\n\n Cell pos = getWorker(worker).getPosition();\n //check all the cells from the one top-left to the one down-right, if just one is ok the worker can move\n for (int row = pos.getNumRow() - 1; row <= pos.getNumRow() + 1; row++)\n for (int col = pos.getNumColumn() - 1; col <= pos.getNumColumn() + 1; col++)\n if(0 <= row && row < 5 && 0 <= col && col < 5)\n if (getWorker(worker).canMoveTo(board.getCell(row,col)))\n return true;\n\n return false;\n }",
"@Override\n public boolean validateMove(int currX, int currY, int newX, int newY) {\n if(!onBoard(newX, newY)){\n return false;\n }\n\n //must move linearly\n if(newX == currX && (newY == (currY + 1))){\n return true;\n }\n return false;\n }",
"@Override\r\n\tpublic boolean gameOver() {\r\n\t\t// the game might be over only if the freecells is zero\r\n\t\tif(freeCells == 0) {\r\n\t\t\t// checks if there is any possible move\r\n\t\t\treturn !((new Board2048model(this)).moveUP() || (new Board2048model(this)).moveDOWN()\r\n\t\t\t\t\t|| (new Board2048model(this)).moveLEFT() || (new Board2048model(this)).moveRIGHT());\r\n\t\t}\r\n\t\telse \r\n\t\t\treturn false;\r\n\t}",
"public static boolean isBasicJumpValid(int[][] board, int player, int fromRow, int fromCol, int toRow, int toCol) {\r\n\t\t\r\n\t\tboolean ans = false;\r\n\t\t//is the impot is legal\r\n\t\tif(fromRow<8&fromCol<8&toRow<8&toCol<8&fromRow>-1&fromCol>-1&toRow>-1&toCol>-1&player>-2&player<2&player!=0){\r\n\t\t\tif (board [toRow][toCol]==0){/*is the target slot avalibel*/\r\n\t\t\t\tif (board[fromRow][fromCol]==1||board[fromRow][fromCol]==2){/*is the player is red*/\t\t\t\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==-2)){/*is thier enemy solduers between the begning and the target*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==1){/*is thie simpol soldiuer in the bignning slot*/\r\n\t\t\t\t\t\t\tif(fromRow==toRow-2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally upward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{/*is thir queen in the starting slot*/\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\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}\r\n\t\t\t\t}\r\n\t\t\t\tif (board[fromRow][fromCol]==-1|board[fromRow][fromCol]==-2){/*is the solduer is blue*/\r\n\t\t\t\t\tif((board[(fromRow+toRow)/2][(fromCol+toCol)/2]==1)||(board[(fromRow+toRow)/2][(fromCol+toCol)/2]==2)){/*thie is an enemu betwen the teget and the begning*/\r\n\t\t\t\t\t\tif (board[fromRow][fromCol]==-1){\r\n\t\t\t\t\t\t\tif(fromRow==toRow+2&&(fromCol==toCol+2||fromCol==toCol-2)){/*is eating diagonally downward and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\tif(((fromRow==toRow+2)||(fromRow==toRow-2))&&((fromCol==toCol+2)||(fromCol==toCol-2))){\r\n\t\t\t\t\t\t\t\t/*if is eating diagonally and the move is two square*/\r\n\t\t\t\t\t\t\t\tans = true;\r\n\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}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn ans;\r\n\t}",
"public boolean movePlayer(MazePlayer p, Direction d) {\n//\t System.out.println(\"Player \"+p.name+\" requests to move in direction \"+d);\n// players can move through walls with some small probability!\n\t\t // calculate the new position after the move \n\t\t MazePosition oldPos = playerPosition.get(p.name);\n\t\t MazePosition newPos = theBoard.tryMove(oldPos,d);\n\n\t\t \n\t\t //make sure there is no other player at that position\n\t\t // and if there is someone there then just return without moving\n\t\t if (playerPosition.containsValue(newPos)){\n\t\t\t if (!newPos.equals(oldPos))\n\t\t\t\t if (debugging) System.out.println(\"player \"+p.name+\" tried to move into an occupied space.\");\n\t\t\t else\n\t\t\t\t if (debugging) System.out.println(p.name+\" stays at \"+oldPos);\n\t\t\t return false;\n\t\t }\n\t\t \n\t\t //otherwise, make the move\n\t\t playerPosition.put(p.name,newPos);\n\t\t if (debugging) System.out.println(p.name+\": \"+oldPos+\" -> \"+newPos);\n\t\t \n\t\t //take off points if you moved through a wall\n\t\t if (!theBoard.canMove(oldPos,d)){\n\t\t\t score.put(p.name,score.get(p.name)-2);\n\t\t\t if (debugging) System.out.println(p.name+\" moved through a wall\");\n\t\t }\n\t\t \n\t\t // mark that old space as \"free space\"\n\t\t freeSpace.add(0,oldPos);\n\t\t \n\t\t // check to see if there is a jewel in the new position.\n\t\t int i = jewelPosition.indexOf(newPos);\n\t\t if (i > -1) {\n\t\t\t // add 5 to the score\n\t\t\t score.put(p.name,score.get(p.name)+5);\n\t\t\t // remove the jewel\n\t\t\t jewelPosition.remove(i);\n\t\t\t if (debugging) System.out.println(\"and lands on a jewel!, score is now \" +score.get(p.name));\n\t\t\t // add another jewel\n\t\t\t MazePosition q = getEmptySpace();\n\t\t\t jewelPosition.add(q);\n\t\t\t if (debugging) System.out.println(\"adding a new jewel at \"+q);\n\t\t\t \n\t\t }\n\t\t else {\n\t\t\t // if no jewel, then remove the space from the freeSpace list\n\t\t\t freeSpace.remove(newPos);\n\t\t }\n\t\t return true;\n\n }",
"public boolean canMove(Location loc){\n if(loc.getX() >= theWorld.getX() || loc.getX() < 0){\n System.out.println(\"cant move1\");\n return false;\n }else if(loc.getY() >= theWorld.getY() || loc.getY() < 0){\n System.out.println(\"cant move2\");\n return false;\n }else{\n System.out.println(\"can move\");\n return true;\n }\n }",
"public abstract boolean changeMove();",
"@Override\n\tpublic boolean isMoveValid(int row, int col) {\n\t\tif (isValidSide(row, col)) {\n\t\t\taddMissileResult(row, col);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canMove (Location loc) {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return false;\n if (!gr.isValid(loc))\n return false;\n Actor neighbor = gr.get(loc);\n return !(neighbor instanceof Wall);\n }",
"@Test\n void checkCanForcePush() {\n assertTrue(abilities.checkCanMove(turn, board.getCellFromCoords(1, 1)));\n }",
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean isMoveValid(int srcRow, int srcCol, int destRow, int destCol) {\n\t\treturn false;\n\t}",
"public boolean canMove()\n\t{\n\t\tif(delayMove>compareSpeed())\n\t\t{\n\t\t\tdelayMove=0;\n\t\t\treturn true;\n\t\t\t\n\t\t}else\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean allowMove(Point p, int pos);",
"private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}",
"public boolean checkMove(int move)\n\t{\n\t\tif (columns[move] < 6)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean computeCell() {\n boolean b = false;\n int[] tab = null;\n switch (course) {\n case 4:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n default:\n tab = CMap.givePositionTale(x, y - (CMap.TH / 2));\n break;\n }\n\n Cell c = game.getMap().getCell(tab);\n if (c != current) {\n current = c;\n b = true;\n }\n return b;\n }",
"public boolean canMove() {\n\n if (workers.size() == 0) return true;\n\n return workerCanMove(0) || workerCanMove(1);\n }",
"@Override\r\n boolean isValidSpecialMove(final int newX, final int newY) {\r\n int xDisplacement = newX - getXLocation();\r\n int yDisplacement = newY - getYLocation();\r\n if (isValidRookMove(xDisplacement, yDisplacement)) {\r\n // Total number of steps the piece has to take.\r\n //Either x = 0 or y = 0.\r\n int steps = Math.max(Math.abs(xDisplacement),\r\n Math.abs(yDisplacement));\r\n int xDirection = xDisplacement / steps;\r\n int yDirection = yDisplacement / steps;\r\n // Check for obstacles in path of Rook.\r\n for (int i = 1; i < steps; i++) {\r\n ChessSquare squareToCheck = getCurrentBoard().getSquaresList()\r\n [getXLocation() + i * xDirection]\r\n [getYLocation() + i * yDirection];\r\n if (squareToCheck.getIsOccupied()) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }\r\n return false;\r\n\r\n }",
"private static boolean canMove(int row, int col, int[][] maze)\r\n {\r\n if (maze[row][col] == 0)\r\n return true;\r\n return false;\r\n }",
"private boolean validNormalMove(int newX, int newY){\n\n // checks if the new position is out of range or not and if it is then it is occupied or not\n if (!getBoard().outOfRange(newX, newY) && !getBoard().occupied(newX, newY))\n return true;\n // false if in range, occupied , but piece of the same color\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY) && (getBoard().getPiece(newX, newY).getColour() == this.getColour()))\n return false ;\n\n // true if in range, occupied and in the piece of the same color\n // note that in general the Move object will be set to false but after the if statement the occupied will be set to true\n else if(!getBoard().outOfRange(newX, newY) && getBoard().occupied(newX, newY)\n && (getBoard().getPiece(newX, newY).getColour() != this.getColour()))\n return true ;\n\n else\n return false;\n }",
"public void paradiseMove(){\n if (!getCurrentMainCellCoordinates().equals(new DiscreteCoordinates(11, 9))) {\n move(30);\n }\n }",
"public boolean validMove(int row, int col) {\n // kijken of de rij en kolom leeg zijn\n if (board2d[row][col] != 0) {\n return false;\n }\n return true;\n }",
"boolean checkLegalMove(int posx, int posy) {\n\t\tBoolean bool;\n\t\tint change;\n\t\tchange = curPlayer > 1 ? (change = 1) : (change = -1);\n\t\tif (kingJumping(posx, posy, change)){\n\t\t\tbool = true;\n\t\t} else if (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\tSystem.out.println(\"Normal move\");\n\t\t\tbool = true;\n\t\t} else if (jump(posx, posy, prevPiece) && (prevPosX == posx + (change * 2) && (prevPosY == posy - 2 || prevPosY == posy + 2))) {\n\t\t\tbool = true;\n\t\t} else if (((JLabel)prevComp).getIcon().equals(Playboard.rKing) || ((JLabel)prevComp).getIcon().equals(Playboard.bKing) || ((JLabel)prevComp).getIcon().equals(Playboard.blackSKing) || ((JLabel)prevComp).getIcon().equals(Playboard.redSKing)){\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1)){\n\t\t\t\tbool = true;\n\t\t\t} else\n\t\t\t\tbool = false;\n\t\t} else if (prevPiece == 4 && (prevPosX == posx + 1 || prevPosX == posx -1) && (prevPosY == posy - 1 || prevPosY == posy +1)) { // King moves\n\t\t\tchange *= (-1);\n\t\t\tif (prevPosX == posx + change && (prevPosY == posy - 1 || prevPosY == posy + 1))\n\t\t\t\tbool = true;\n\t\t\telse\n\t\t\t\tbool = false;\n\t\t} else {\n\t\t\tbool = false;\n\t\t}\n\t\treturn bool;\n\t}",
"public boolean canMove(Character c, DirectionFactory d){\n int x = c.getPosX() ;\n int y = c.getPosY();\n\n try {\n Cell nextCell = labyrinth.getNextCell(x, y, d);\n for(int i =0; i < monsters.size(); i++){\n if(nextCell.getX()==monsters.get(i).getPosX() && nextCell.getY()==monsters.get(i).getPosY()){\n return false;\n }\n }\n if(!c.isThroughWall() && nextCell.isSolid()){\n return false;\n }\n\n return true;\n }catch (NullPointerException e){\n\n }\n return false;\n }",
"@Override\r\n\tpublic boolean canMove(int x, int y, Tile[][] tiles) {\r\n\t\treturn false;\r\n\t}",
"public void checkMoveOrPass(){\n if (this.xTokens.size() > 0) {\n this.diceRoller = false;} \n else { //if no tokens to move, pass and let player roll dice\n this.turn++;\n //System.out.println(\"next turn player \" + this.players[currentPlayer].getColor());\n }\n this.currentPlayer = this.xPlayers.get(this.turn % this.xPlayers.size());\n }",
"public boolean requestMove() {\r\n if (game != null) {\r\n player.getMove();\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }",
"boolean makeMove();",
"public static boolean validMove(String move, Person p, Board building )\n {\n Room[][] map = building.getMap();\n move = move.toLowerCase().trim();\n switch (move) {\n case \"n\":\n if (p.getxLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()-1][p.getyLoc()].getName());\n map[p.getxLoc()-1][p.getyLoc()].enterRoom(p,building);\n return true;\n }\n else\n {\n return false;\n }\n case \"e\":\n if (p.getyLoc()< map[p.getyLoc()].length -1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc() + 1].getName());\n map[p.getxLoc()][p.getyLoc() + 1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"s\":\n if (p.getxLoc() < map.length - 1)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()+1][p.getyLoc()].getName());\n map[p.getxLoc()+1][p.getyLoc()].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n\n case \"w\":\n if (p.getyLoc() > 0)\n {\n map[p.getxLoc()][p.getyLoc()].leaveRoom(p);\n System.out.println(\"You are in the \"+map[p.getxLoc()][p.getyLoc()-1].getName());\n map[p.getxLoc()][p.getyLoc()-1].enterRoom(p, building);\n return true;\n }\n else\n {\n return false;\n }\n default:\n break;\n\n }\n return true;\n }",
"private boolean tryMove(Shape newPiece, int newX, int newY) {\n for (int i = 0; i < 4; ++i) {\n\n int x = newX + newPiece.x(i);\n int y = newY - newPiece.y(i);\n//if a piece reaches the edge it stops\n if (x < 0 || x >= BOARD_WIDTH || y < 0 || y >= BOARD_HEIGHT) {\n return false;\n }\n//if a piece is adjacent to any fallen tetris pieces it stops\n if (shapeAt(x, y) != Tetrominoe.NoShape) {\n return false;\n }\n }\n\n curPiece = newPiece;\n curX = newX;\n curY = newY;\n\n repaint();\n\n return true;\n }",
"@Test\n public void testMoveMonsterToCell()\n {\n theEngine.start();\n assertTrue(theEngine.inPlayingState());\n \n assertFalse(getTheMonster().getLocation() == getEmptyCell());\n moveMonsterToCell(getEmptyCell());\n assertEquals(getTheMonster().getLocation(), getEmptyCell());\n }",
"@Override\r\n\tpublic void getLegalMoves() {\r\n\t\tint pawnX = this.getX();\r\n\t\tint pawnY = this.getY();\r\n\t\tchar pawnColor = getColor();\r\n\t\tTile[][] chessBoard = SimpleChess.getChessBoard();\r\n\t\tcheckInFront(chessBoard,pawnX,pawnY,pawnColor);\r\n\t\tcheckDiagonal(chessBoard,pawnX,pawnY,pawnColor);\r\n\t}",
"private boolean canMove(String direction) {\n\t\tif (currentPiece.getLocation() == null) {\n\t\t\treturn false;\n\t\t}\n\n\t\tfor (Loc loc : currentPiece.getLocation()) {\n\t\t\tLoc nextPoint = nextPoint(loc, direction);\n\t\t\tif (nextPoint == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// if there's someone else's piece blocking you\n\t\t\tif ((new Loc(nextPoint.row, nextPoint.col).isOnBoard())\n\t\t\t\t\t&& boardTiles[nextPoint.row][nextPoint.col] != backgroundColor && !isMyPiece(nextPoint)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}",
"public void setValidMoves(){\r\n int row = (int)this.space.getX();\r\n int column = (int)this.space.getY();\r\n int max = puzzleSize-1;\r\n if (row < max)\r\n this.validMoves.add(new Point(row+1, column));\r\n if (row > 0)\r\n this.validMoves.add(new Point(row-1, column));\r\n if (column < max)\r\n this.validMoves.add(new Point(row, column+1));\r\n if (column > 0)\r\n this.validMoves.add(new Point(row, column-1));\r\n }",
"@Override\n public boolean canMove(double x, double y) {\n return !getOwner().isDead();\n }",
"private boolean checkOrTurn(int row,int column, ItemState itemStateCurrentPlayer, int x, int y) {\n\t\t if(column==Settings.nbrRowsColumns||column<0){\n\t\t\t return false; //Get the hell out\n\t\t }\n\t\t if(row==Settings.nbrRowsColumns||row<0){ \n\t\t\t return false; //Get the hell out\n\t\t }\n\t\t if (gameStateInt[row][column]==Helpers.getOpponentPlayerCorrespondingInt(itemStateCurrentPlayer)){ //Still another color\n\t\t\t if(checkOrTurn(row+y,column+x, itemStateCurrentPlayer, x, y)){ //continue check next\n\t\t\t\t\t changed.add(new Action(row,column));\n\t\t\t\t return true;\n\t\t\t }else{\n\t\t\t\t return false;\n\t\t\t }\n\t\t }else if (gameStateInt[row][column]==Helpers.getPlayerCorrespondingInt(itemStateCurrentPlayer)){\n\t\t\t return true; //found same color\n\t\t }else{\n\t\t\t return false; //found grass\n\t\t }\n\t }",
"public boolean canMove2() {\n\t\tGrid<Actor> gr = getGrid(); \n\t\tif (gr == null) {\n\t\t\treturn false; \n\t\t}\n\t\t\n\t\tLocation loc = getLocation(); \n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (!gr.isValid(next)) {\n\t\t\treturn false;\n\t\t}\n\t\tif (!gr.isValid(next2)) {\n\t\t\treturn false;\n\t\t}\n\t\tActor neighbor = gr.get(next2); \n\t\treturn (neighbor == null) || (neighbor instanceof Flower); \n\t}",
"boolean legalMove(Move mov) {\n if (mov == null || !validSquare(mov.toIndex())\n || !validSquare(mov.fromIndex())) {\n throw new IllegalArgumentException(\"Illegal move\");\n }\n PieceColor from = get(mov.fromIndex());\n PieceColor to = get(mov.toIndex());\n if (!mov.isJump() && jumpPossible()) {\n return false;\n }\n if (from != _whoseMove) {\n return false;\n } else if (mov.isJump()) {\n return checkJump(mov, false);\n } else if (from == BLACK && row(mov.fromIndex()) == '1') {\n return false;\n } else if (from == WHITE && row(mov.fromIndex()) == '5') {\n return false;\n } else if (mov.isLeftMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Right\");\n } else if (mov.isRightMove()) {\n ArrayList<String> rec = _directions.get(mov.fromIndex());\n return get(mov.toIndex()) == EMPTY\n && !rec.get(rec.size() - 1).equals(\"Left\");\n } else if (from == BLACK) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.fromIndex() - mov.toIndex() == SIDE\n || mov.fromIndex() - mov.toIndex() == SIDE - 1\n || mov.fromIndex() - mov.toIndex() == SIDE + 1;\n } else {\n return mov.fromIndex() - mov.toIndex() == SIDE && to == EMPTY;\n }\n } else if (from == WHITE) {\n if (mov.fromIndex() % 2 == 0 && to == EMPTY) {\n return mov.toIndex() - mov.fromIndex() == SIDE\n || mov.toIndex() - mov.fromIndex() == SIDE + 1\n || mov.toIndex() - mov.fromIndex() == SIDE - 1;\n } else {\n return mov.toIndex() - mov.fromIndex() == SIDE && to == EMPTY;\n }\n }\n return false;\n }",
"public void move(FightCell cell);",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\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}\n\t}",
"public boolean isValidMove(int toRow,int toCol){\n //Stayed in the same spot\n if(myRow == toRow && myCol == toCol){\n return false;\n }\n //if the xy coordinate we are moving to is outside the board\n if(toRow < 0 || toRow > 11 || toCol < 0 || toCol > 11){\n return false;\n }\n return true;\n }",
"boolean makeMove(int index, Player player);",
"private boolean checkCollisions(int keycode) {\n \t\t\n \t\tint sX = super.getX()/Main.gridSize;\n \t\tint sY = super.getY()/Main.gridSize;\n \t\t\n \t\tif (World.currentMap().solidAtPoint(sX-1, sY) && keycode == Keyboard.KEY_A) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX+1, sY) && keycode == Keyboard.KEY_D) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY-1) && keycode == Keyboard.KEY_W) {\n \t\t\treturn false;\n \t\t} else if (World.currentMap().solidAtPoint(sX, sY+1) && keycode == Keyboard.KEY_S) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"@Override\n\tpublic void makeMove(Game game) \n\t{\n\t\t\n\t\tint row1,col1,row2,col2;\n\t\tCheckers tttGame = (Checkers) game;\n\t\t\n\t\tboolean first = true;\n\n\t\t\tcorrectmove= false;\n\t\t\tSystem.out.println(\"Insert target (row,column) and destination (row, column) ([0,7])\");\n\n\t\t\trow1 = tttGame.x1;\n\t\t\tcol1 = tttGame.y1;\n\t\t\trow2 = tttGame.x2;\n\t\t\tcol2 = tttGame.y2;\n\t\t\tSystem.out.println(row1 + \" \" + col1 + \" \" + row2 + \" \" + col2 + \" \" + role);\n\t\t\t\n\t\t\tfirst=false;\n\t\tcorrectmove= tttGame.isValidCell(row1, col1, row2, col2,role);\n\t\tSystem.out.println(correctmove);\n\n\t\tif(correctmove)\n\t\t{\n\t\t\ttttGame.board[row2][col2]= tttGame.board[row1][col1];\n\t\t\tif(row2==0 && role==0) \n\t\t\t{\n\t\t\t\tif(role==0) tttGame.board[row2][col2]= 2;\n\t\t\t\telse tttGame.board[row2][col2]= -2;\n\t\t\t}\n\t\t\telse if(row2==7 && role==1) \n\t\t\t{\n\t\t\t\tif(role==0) tttGame.board[row2][col2]= 2;\n\t\t\t\telse tttGame.board[row2][col2]= -2;\n\t\t\t}\n\t\t\ttttGame.board[row1][col1]=0;\n\t\t\tif(abs(row1-row2)==2)\n\t\t\t{\n\t\t\t\tint x= (row1+ row2)/2;\n\t\t\t\tint y= (col1+ col2)/2;\n\t\t\t\ttttGame.board[x][y]=0;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"invalid move!\");\n\t\t}\n\t\t\n//\t\ttttGame.board[row][col] = role;\n\t}",
"public abstract void manageCell(int x, int y, int livingNeighbours);",
"@Test\n public void isValidMoveTest() {\n\n //get the board of the enemy with the method getBoard() from enemyGameBoard\n board = enemyGameBoard.getBoard();\n\n //Try two times for a existing point on the board\n assertTrue(enemyGameBoard.isValidMove(1,1));\n assertTrue(enemyGameBoard.isValidMove(2,4));\n\n //Try two times for a non-existing point on the board\n assertFalse(enemyGameBoard.isValidMove(15,5)); // x-value outside the board range\n assertFalse(enemyGameBoard.isValidMove(5,11)); // y-value outside the board range\n\n //hit a water field\n enemyGameBoard.makeMove(2, 3, false);\n assertTrue(board[2][3].equals(EnemyGameBoard.WATER_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(2,3));\n\n //hit a ship field\n enemyGameBoard.makeMove(5, 4, true);\n assertTrue(board[5][4].equals(EnemyGameBoard.SHIP_HIT));\n\n //try isValidMove() on the already hit water field\n assertFalse(enemyGameBoard.isValidMove(5,4));\n }",
"public boolean validMove(Player player, Movement move) {\n\n if (!player.hasPieceAt(move.oldP) || player.hasPieceAt(move.newP))\n return false;\n else if (sharedBoard.isBlocked(move) && !board.board[move.oldP.x][move.oldP.y].canJump())\n return false;\n else if (!sharedBoard.isPositionEmpty(move.newP))\n move = new Capture(move);\n\n return board.board[move.oldP.x][move.oldP.y].validMove(move);\n }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"@Override\r\n public boolean canMove() {\r\n Grid<Actor> gr = getGrid();\r\n int dirs[] = {\r\n Location.AHEAD, Location.HALF_CIRCLE, Location.LEFT,\r\n Location.RIGHT };\r\n // 当终点在周围时,不能移动且isEnd应当为true\r\n for (int i = 0; i < dirs.length; i++) {\r\n Location tarLoc = getLocation().getAdjacentLocation(dirs[i]);\r\n if (gr.isValid(tarLoc) && gr.get(tarLoc) != null) {\r\n // Color直接用==计算竟然不可行(真是哔了dog...\r\n if (gr.get(tarLoc) instanceof Rock\r\n && gr.get(tarLoc).getColor().equals(Color.RED)) {\r\n isEnd = true;\r\n return false;\r\n }\r\n }\r\n }\r\n ArrayList<Location> nextLocs = getValid(getLocation());\r\n // 当附近没有可以移动的位置时,不能移动\r\n if (nextLocs.size() == 0) {\r\n return false;\r\n }\r\n // 当可以移动的位置>1时,说明存在一个节点,这个节点应当被新建一个arraylist入栈\r\n if (nextLocs.size() > 1) {\r\n ArrayList<Location> newStackElem = new ArrayList<Location>();\r\n newStackElem.add(getLocation());\r\n crossLocation.push(newStackElem);\r\n }\r\n // 有可以移动的位置时,向概率最高的方向移动\r\n int maxProbLoc = 0;\r\n // 由于nextLocs不一定有4个location,所以只好循环判断取最大值\r\n for (int i = 0; i < nextLocs.size(); i++) {\r\n Location loc = nextLocs.get(i);\r\n int dirNum = getLocation().getDirectionToward(loc) / 90;\r\n if (probablyDir[dirNum] > probablyDir[maxProbLoc]) {\r\n maxProbLoc = i;\r\n }\r\n }\r\n next = nextLocs.get(maxProbLoc);\r\n return true;\r\n }",
"public boolean makeMove(int row, int col, PlayerController player)\n {\n if(checkDraw(turn)){\n winSend.sendDraw(opponent);\n player1.gameOver(RESULT_DRAW);\n player2.gameOver(RESULT_DRAW);\n }\n if (turn % 2 + 1 != playerFlagFor(player)) {\n return false;\n }\n if (validateMove(row, col)) {\n turn++;\n int pFlag = playerFlagFor(player);\n \n board[row][col] = pFlag;\n player1.moveMade(row, col, pFlag);\n player2.moveMade(row, col, pFlag);\n if (checkWin(row, col, pFlag)) {\n \n if(!winSent && player1 instanceof GameController){\n win(pFlag);\n winSend.sendWin(opponent);\n } \n else if( !winSent && player1 instanceof NetworkPlayer){\n win(pFlag);\n }\n \n player1.model.setWinSent(true);\n player2.model.setWinSent(true);\n \n \n \n } \n return true;\n } else {\n return false;\n }\n }",
"public boolean attemptMove(Move move, int color) {\n //ArrayList<Move> jumps = canJump(color);\n //make sure the to and from values don't go out of bounds\n if (move.xFrom > 7 || move.yFrom > 7 || move.xTo > 7 || move.yTo > 7 ||\n \tmove.xFrom < 0 || move.yFrom < 0 || move.xTo < 0 || move.yTo < 0 ){\n// System.out.println(\"out of bounds\");\n return false;\n }\n int stateOfFrom = gameState.getStateOfSquare(move.xFrom, move.yFrom);\n int stateOfTo = gameState.getStateOfSquare(move.xTo, move.yTo);\n \n\n //if there in no piece in the \"from\" location return false\n if (stateOfFrom == 0){\n// System.out.println(\"no piece at 'from'\");\n return false;\n }\n \n //if there is a piece in the \"to\" location return false\n if (!(stateOfTo == 0)){\n// System.out.println(\"'to' is not empty\");\n return false;\n }\n \n //if the \"from\" piece is not the correct color return false\n if (!(gameState.getStateOfSquare(move.xFrom, move.yFrom)%2 == color))\n {\n// System.out.println(\"that is not your piece\");\n return false;\n }\n \n //check if the \"from\" piece is moving in the right direction\n \n /*if (jumps.isEmpty() == false) //if there are jumps.\n {\n System.out.println(\"there are jumps\");\n //for every possible jump\n for (int i=0; i<jumps.size(); i++){\n \t//if this move matches a possible jump then it is valid\n \tSystem.out.println(\"is this jump \"+ i + \"?\");\n \tif ((move.xFrom == jumps.get(i).xFrom)&&\n \t\t\t(move.yFrom == jumps.get(i).yFrom)&&\n \t\t\t(move.xTo == jumps.get(i).xTo)&&\n \t\t\t(move.yTo == jumps.get(i).yTo)){\n \t\tSystem.out.println(\"yes\");\n \t\treturn true;\n \t}\n \telse{\n \t\tSystem.out.println(\"there are possible jumps\");\n \t}\n \t\t\n \t\n }\n //return false;\n \n //handle jumps\n }\n */\n //moving diagonally\n else{\n if (move.xTo == move.xFrom + 1 || move.xTo == move.xFrom - 1){\n //if (stateOfFrom >= 3) \n //if piece is king it can move both forward and back\n if (stateOfFrom >= 3 && (move.yTo == move.yFrom + 1 || move.yTo == move.yFrom - 1)){\n \treturn true;\n }\n //red can only move up\n else if(color == 0 && (move.yTo == move.yFrom + 1)){\n \treturn true;\n }\n //black can only move down\n else if(color == 1 && (move.yTo == move.yFrom - 1)){\n \treturn true;\n }\n else{\n// System.out.println(\"wrong way\");\n return false;\n }\n }\n else{\n// System.out.println(\"too far away\");\n return false;\n }\n }\n //return true;\n \n \n }"
] | [
"0.72045094",
"0.71344805",
"0.7124317",
"0.70607144",
"0.69600207",
"0.6948297",
"0.6934185",
"0.6887584",
"0.6880736",
"0.68551975",
"0.6816106",
"0.6813313",
"0.67950433",
"0.6762874",
"0.67621386",
"0.673858",
"0.67285883",
"0.6717482",
"0.67056924",
"0.668696",
"0.6685723",
"0.6681515",
"0.6663771",
"0.66552424",
"0.6643456",
"0.6638398",
"0.663231",
"0.6621768",
"0.662051",
"0.6604116",
"0.66011363",
"0.6586198",
"0.6584201",
"0.65571344",
"0.6555662",
"0.65545106",
"0.6524923",
"0.65155876",
"0.64984703",
"0.6494663",
"0.64926386",
"0.6488368",
"0.64881253",
"0.6480439",
"0.64801973",
"0.646725",
"0.64532685",
"0.6447153",
"0.6438368",
"0.6436693",
"0.6435175",
"0.64338887",
"0.6424202",
"0.6405811",
"0.6404116",
"0.6390574",
"0.6389671",
"0.63803184",
"0.6380051",
"0.6370579",
"0.63590294",
"0.63510275",
"0.6345197",
"0.6343184",
"0.6341554",
"0.63398844",
"0.6332112",
"0.63270134",
"0.6325036",
"0.6311547",
"0.63074327",
"0.62988305",
"0.6292043",
"0.6285888",
"0.6281204",
"0.62700146",
"0.6268321",
"0.62673974",
"0.6264299",
"0.6263166",
"0.62556285",
"0.62408376",
"0.623924",
"0.6233117",
"0.622724",
"0.6223527",
"0.6222035",
"0.62104887",
"0.62095517",
"0.6208731",
"0.6201353",
"0.6200954",
"0.61846197",
"0.6183549",
"0.6172039",
"0.61680406",
"0.61678976",
"0.61672026",
"0.61606395",
"0.61583716"
] | 0.6756651 | 15 |
Given an array of integers, find the highest product you can get from three of the integers. | public int getHighestProduct(int[] array) {
if (array.length < 3) {
throw new IllegalArgumentException("Need at least 3 numbers in the array");
}
int lowest = Math.min(array[0], array[1]);
int highest = Math.max(array[0], array[1]);
int highestProdOfTwo = array[0]*array[1];
int lowestProdOfTwo = array[0]*array[1];
int highestProdOfThree = array[0]*array[1]*array[2];
for (int i = 2; i < array.length; i++) {
int current = array[i];
//System.out.println(
// String.format("Current=%d, Highest=%d, lowest=%d, highestProd2=%d, lowestProd2=%d, highestProd3=%d"
// ,current, highest, lowest, highestProdOfTwo, lowestProdOfTwo, highestProdOfThree));
highestProdOfThree = Math.max(
Math.max(highestProdOfThree, current * highestProdOfTwo),
current * lowestProdOfTwo);
lowestProdOfTwo = Math.min(Math.min(lowestProdOfTwo, current*lowest), current*highest);
highestProdOfTwo = Math.max(Math.max(highestProdOfTwo, current*lowest), current*highest);
highest = Math.max(highest, current);
lowest = Math.min(lowest, current);
}
return highestProdOfThree;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static int highestProductOf3(int[] arr) {\n int a = max(arr[0], max(arr[1], arr[2]));\n int c = min(arr[0], min(arr[1], arr[2]));\n int b = arr[0] + arr[1] + arr[2] - a - c;\n\n int x = c;\n int y = b;\n\n for(int i = 3; i < arr.length; i++) {\n if(arr[i] < x) {\n y = x;\n x = arr[i];\n } else if(arr[i] < y) {\n y = arr[i];\n }\n\n if(arr[i] > a) {\n c = b;\n b = a;\n a = arr[i];\n } else if(arr[i] > b) {\n c = b;\n b = arr[i];\n } else if(arr[i] > c) {\n c = arr[i];\n }\n }\n\n return max(a * b * c, a * x * y);\n }",
"public int maximumProduct(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n Arrays.sort(nums);\n int len = nums.length;\n int a = nums[0]*nums[1]*nums[len-1];\n int b = nums[len-3]*nums[len-2]*nums[len-1];\n return Math.max(a,b);\n }",
"public int maxProduct(int[] nums) {\n int max_so_far=1;\n int min_so_far=1;\n int prev_max_so_far=1;\n int maxProd=Integer.MIN_VALUE;\n\n for(int i=0;i<nums.length;i++){\n max_so_far=Math.max(nums[i],Math.max(max_so_far*nums[i],min_so_far*nums[i]));\n System.out.println(max_so_far);\n min_so_far=Math.min(nums[i],Math.min(prev_max_so_far*nums[i],min_so_far*nums[i]));\n System.out.println(min_so_far);\n prev_max_so_far= max_so_far;\n maxProd=Math.max(maxProd,max_so_far);\n }\n\n return maxProd;\n }",
"public int maxProduct(int[] nums) {\n int max = Integer.MIN_VALUE;\n for (int i = 0; i < nums.length; i++) {\n int local = 1;\n for (int j = i; j < nums.length; j++) {\n local *= nums[j];\n if (local > max) {\n max = local;\n }\n }\n }\n\n return max;\n }",
"static long getMaxPairwiseProductNaive(int[] numbers) {\n long max_product = 0;\n int n = numbers.length;\n int maybeLarger = 0;\n\n for (int a = 0; a < n; a += 1) {\n for (int b = a + 1; b < n; b += 1) {\n maybeLarger = numbers[a] * numbers[b];\n if (maybeLarger > max_product) {\n max_product = maybeLarger;\n }\n }\n }\n\n return max_product;\n }",
"public int maxProduct(int[] nums) {\n Arrays.sort(nums);\r\n return (nums[nums.length - 1] - 1) * (nums[nums.length - 2] - 1);\r\n\r\n //暴力解法,两次循环\r\n /*int res = 0;\r\n int n = nums.length;\r\n Arrays.sort(nums);\r\n for(int i = 0 ; i < n; i++){\r\n for(int j = i; j < n; j++){\r\n if(i != j){\r\n res = Math.max(res, (nums[i] - 1)*(nums[j] - 1));\r\n }\r\n }\r\n }\r\n return res;*/\r\n }",
"public static int maxProduct(int[] nums) {\n if(nums.length==0) return 0;\n if(nums.length==1) return nums[0];\n int max=nums[0],s=0;\n for(int i=0;i<=nums.length;i++){\n if(i==nums.length || nums[i]==0){\n int m=maxProdHelp(nums,s,i-1);\n if(m>max) max=m;\n if(i!=nums.length && 0>max) max=0;\n s=i+1;\n }\n }\n return max;\n }",
"public int maxProduct(int[] nums) {\n int preMax = nums[0];\n int preMin = nums[0];\n int maxProduct = nums[0];\n for(int i = 0; i < nums.length; ++i){\n int maxToCur = Math.max(Math.max(preMax * nums[i],preMin * nums[i]),nums[i]);\n int minToCur = Math.min(Math.min(preMax * nums[i],preMin * nums[i]),nums[i]);\n maxProduct = Math.max(maxProduct,maxToCur);\n preMax = maxToCur;\n preMin = minToCur;\n }\n return maxProduct;\n }",
"public static void main(String[] args) {\n\t\tint[] a = { -2, -3, 4, -1, -2, 1, 5, -3 }; \n\t\t int size = a.length; \n\t int max_so_far = Integer.MIN_VALUE, max_ending_here=0;\n\t for (int i = 0; i < size; i++) { \n\t max_ending_here = max_ending_here + a[i]; \n\t if (max_so_far < max_ending_here) \n\t max_so_far = max_ending_here; \n\t if (max_ending_here < 0) \n\t max_ending_here = 0; \n\t } \n\t // System.out.println(max_so_far);\n\t int product=1,max=0;\n\t for (int i = 0; i < size; i++) {\n\t \t\n\t \tproduct=product*a[i];\n\t \tif(product>max)\n\t \t\tmax=product;\n\t \t if (product < 0) \n\t \t\t product = 1; \n\t \t\n\t }\n\t // System.out.println(max);\n\t \n\t Arrays.sort(a);\n\t int i=0,j=a.length-1;\n\t while(i<a.length &&j<a.length)\n\t {\n\t \t if(a[i]+a[j]==3)\n\t \t {\n\t \t\t System.out.println(a[i]+\" \"+a[j]);\n\t \t\t i++;j--;\n\t \t }\n\t \t else if(a[i]+a[j]>3)\n\t \t\t j--;\n\t \t else if(a[i]+a[j]<3)\n\t \t\t i++;\n\t }\n\t \n\t \n\t }",
"public int thirdMax(int[] nums) {\n if (nums.length == 1) return nums[0];\n \n PriorityQueue<Integer> pq = new PriorityQueue<>(3);\n for (int num : nums) {\n if (!pq.contains(num)) {\n if (pq.size() < 3)\n pq.add(num);\n else if (num > pq.peek()) {\n pq.poll();\n pq.add(num);\n }\n }\n }\n if (pq.size() == 3 || pq.size() == 1) // size = 1 for [1,1,1]\n return pq.peek();\n else { // for size = 2\n pq.poll();\n return pq.peek();\n }\n \n \n /** 3. Three Pointers\n /* max1, max2, max3\n /* if num == max1/2/3, continue\n /* num > max1 -> max3 = max2, max2 = max1, max1 = num\n /* max1 > num > max2 -> max3 = max2, max2 = num\n /* max2 > num > max3 -> max3 = num\n */\n\n }",
"static Integer maximumProductOfAllEntriesButOneBySuffixArray(Integer array[]) {\n int suffix[] = new int[array.length];\n suffix[array.length - 1] = 1;\n\n for (int i = array.length - 1; i > 0; i--) {\n suffix[i - 1] = suffix[i] * array[i];\n }\n\n int prefixProduct = 1;\n int maximumProduct = Integer.MIN_VALUE;\n\n for (int i = 0; i < array.length; i++) {\n int currentProduct = prefixProduct * suffix[i];\n if (maximumProduct < currentProduct) maximumProduct = currentProduct;\n\n prefixProduct *= array[i];\n }\n\n return maximumProduct;\n }",
"static int maxProduct(int A[], int n) {\n\t int r = A[0];\n\n\t // imax/imin stores the max/min product of\n\t // subarray that ends with the current number A[i]\n\t for (int i = 1, imax = r, imin = r; i < n; i++) {\n\t // multiplied by a negative makes big number smaller, small number bigger\n\t // so we redefine the extremums by swapping them\n\t if (A[i] < 0)\n\t {\n\t \tint temp = imax;\n\t \timax = imin;\n\t \timin = temp;\n\t \t//swap(imax, imin);\n\t }\n\n\t // max/min product for the current number is either the current number itself\n\t // or the max/min by the previous number times the current one\n\t imax = Math.max(A[i], imax * A[i]);\n\t imin = Math.min(A[i], imin * A[i]);\n\n\t // the newly computed max value is a candidate for our global result\n\t r = Math.max(r, imax);\n\t }\n\t return r;\n\t}",
"public int maxProduct(int[] nums) {\n //cc\n if (nums == null || nums.length == 0) return 0;\n int preMax = nums[0];\n int preMin = nums[0];\n int max = nums[0];\n int curMax, curMin;\n for (int i = 1; i < nums.length; i++) {\n int temp = nums[i];\n curMax = Math.max(Math.max(preMax * temp, preMin * temp), temp);\n curMin = Math.min(Math.min(preMax * temp, preMin * temp), temp);\n max = Math.max(curMax, max);\n preMax = curMax;\n preMin = curMin;\n }\n return max;\n }",
"public static int maxProduct2(int[] nums) {\n if(nums==null || nums.length==0) return 0;\n int max=nums[0], min=nums[0], res=nums[0];\n for(int i=1;i<nums.length;i++){\n int temp=max;\n max=Math.max(Math.max(max*nums[i],min*nums[i]),nums[i]); //max containing this number\n min=Math.min(Math.min(temp*nums[i],min*nums[i]),nums[i]); //min containing this number\n res=Math.max(max,res);\n }\n return res;\n }",
"static long maxProduct(int[] arr, int n) {\n long maxproduct=arr[0], temp1=0, temp2=0;\n long mintillhere=arr[0], maxtillhere=arr[0];\n for(int i=1; i<n; i++){\n // if(arr[i] > 0){\n // product *= arr[i];\n // if(product > maxproduct) maxproduct = product;\n // System.out.println(\"Arr[i] \" + arr[i] + \"Product \" + product + \"maxproduct\" + maxproduct);\n // }\n \n // else if(arr[i] < 0){\n // if(negative*arr[i] > 0) {\n // product = negative*arr[i];\n // if(product > maxproduct) maxproduct = product;\n // System.out.println(\"Arr[i] \" + arr[i] + \"Product \" + product + \"Negative \" + negative + \"maxproduct \" + maxproduct);\n // negative=product;\n // }\n // else {\n // negative = product*arr[i];\n // product = 1; \n // System.out.println(\"Arr[i] \" + arr[i] + \"Product \" + product + \"Negative \" + negative);\n \n // }\n // }\n \n // else if(arr[i] == 0){\n // product = 1;\n // negative = 1;\n // } \n temp1 = maxtillhere*arr[i];\n temp2 = mintillhere*arr[i];\n maxtillhere = Math.max(arr[i], Math.max(temp1, temp2));\n mintillhere = Math.min(arr[i], Math.min(temp1, temp2));\n if(maxtillhere > maxproduct) maxproduct = maxtillhere;\n }\n return maxproduct;\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(maxProduct(new int[]{3,4,5,2}));\r\n\t\tSystem.out.println(maxProduct(new int[]{1,5,4,5}));\r\n\t\tSystem.out.println(maxProduct(new int[]{3,7}));\r\n\t\tSystem.out.println(maxProduct(new int[]{2,1,4,3,5}));\r\n\t}",
"public int maxProduct(final List<Integer> A) {\n if (A.size() == 0) {\n return 0;\n }\n int[] posProduct = new int[A.size()];\n int[] negProduct = new int[A.size()];\n int[] maxProduct = new int[A.size()];\n posProduct[0] = negProduct[0] = maxProduct[0] = A.get(0);\n for (int i = 1;i < A.size();i++) {\n int a = posProduct[i-1] * A.get(i);\n int b = negProduct[i-1] * A.get(i);\n posProduct[i] = Math.max(Math.max(a, b), A.get(i));\n negProduct[i] = Math.min(Math.min(a, b), A.get(i));\n maxProduct[i] = Math.max(posProduct[i], maxProduct[i-1]);\n }\n // for(int i=0;i<A.size();i++)\n // {\n // System.out.print(\" |\"+posProduct[i]);\n // }\n // System.out.println();\n // for(int i=0;i<A.size();i++)\n // {\n // System.out.print(\" |\"+negProduct[i]);\n // }\n // System.out.println();\n return maxProduct[A.size()-1];\n }",
"public int solution(int[] A) {\n Arrays.sort(A);\n int max = Integer.MIN_VALUE;\n max = Math.max(max,A[0]*A[1]*A[A.length-1]);\n max = Math.max(max,A[A.length-3]*A[A.length-2]*A[A.length-1]);\n return max;\n }",
"private static int maxSubSumN3(int[] a) {\n int maxSum = 0;\n\n for (int first = 0; first < a.length; first++) {\n for (int last = first; last < a.length; last++) {\n int thisSum = 0;\n\n for (int i = first; i <= last; i++)\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }",
"public static int maxProductSubarray(int[] nums){\n int[] max= new int[nums.length];\n int[] min= new int[nums.length];\n int result=nums[0];\n max[0]=nums[0];min[0]=nums[0];\n for(int i=1;i<nums.length;i++) {\n if (nums[i] >= 0) {\n max[i] = Math.max(max[i - 1] * nums[i], nums[i]);\n min[i] = Math.min(min[i - 1] * nums[i], nums[i]);\n }\n //when the current number is negative ,the max number will be given\n //by multiplying current value with the min value so far\n //and the min will be obtained by applying with the most maximum value obtained\n //so far\n else {\n max[i] = Math.max(min[i - 1] * nums[i], nums[i]);\n min[i] = Math.min(max[i - 1] * nums[i], nums[i]);\n }\n result=Math.max(result,max[i]);\n }\n return result;\n }",
"public int maxProductDynamic(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int max = nums[0], min = nums[0], result = nums[0];\n for (int i = 1; i < nums.length; i++) {\n int temp = max;\n max = Math.max(Math.max(max * nums[i], min * nums[i]), nums[i]);\n min = Math.min(Math.min(temp * nums[i], min * nums[i]), nums[i]);\n if (max > result) {\n result = max;\n }\n }\n return result;\n }",
"public int maxSubArray3(int[] nums) {\n int length = nums.length;\n //dp[i]表示数组开始索引为i的子数组的和\n int[] dp = new int[length];\n int max = nums[0] - 1;\n for (int i = 0; i < length; i++) {\n for (int j = i; j < length; j++) {\n int sum = dp[i] + nums[j];\n dp[i] = sum;\n if (max < sum) {\n max = sum;\n }\n }\n }\n return max;\n }",
"static void LargestTripletMultiplication(int arr[], int n) {\n\t\tPriorityQueue<Integer> q = new PriorityQueue(Collections.reverseOrder());\n\n\t\t// traversing the array\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t// pushing arr[i] in array\n\t\t\tq.add(arr[i]);\n\n\t\t\t// if less than three elements are present\n\t\t\t// in array print -1\n\t\t\tif (q.size() < 3)\n\t\t\t\tSystem.out.println(\"-1\");\n\t\t\telse {\n\t\t\t\t// pop three largest elements\n\t\t\t\tint x = q.poll();\n\t\t\t\tint y = q.poll();\n\t\t\t\tint z = q.poll();\n\n\t\t\t\t// Reinsert x, y, z in priority_queue\n\t\t\t\tint ans = x * y * z;\n\t\t\t\tSystem.out.println(ans);\n\t\t\t\tq.add(x);\n\t\t\t\tq.add(y);\n\t\t\t\tq.add(z);\n\t\t\t}\n\t\t}\n\t}",
"static Integer maximumProductOfAllEntriesButOneByCountingZeroAndNegatives(Integer array[]) {\n int zeroes = 0;\n int negatives = 0;\n\n for (int i = 0; i < array.length; i++) {\n if (array[i] < 0) negatives++;\n else if (array[i] == 0) zeroes++;\n }\n\n if (zeroes > 1) return 0;\n\n int indexToExclude = -1;\n\n if ((negatives % 2 == 1)) {\n // find the greatest negative and discard it\n for (int i = 0; i < array.length; i++) {\n if ((array[i] < 0) && ((indexToExclude == -1) || (array[i] > array[indexToExclude]))) indexToExclude = i;\n }\n } else {\n // find the minimum non-negative and discard it\n\n if (array.length - negatives > 0) {\n for (int i = 0; i < array.length; i++) {\n if ((array[i] >= 0) && ((indexToExclude == -1) || (array[i] < array[indexToExclude]))) indexToExclude = i;\n }\n } else { // all negatives\n // find the lowest negative and discard\n\n for (int i = 0; i < array.length; i++) {\n if ((array[i] < 0) && ((indexToExclude == -1) || (array[i] < array[indexToExclude]))) indexToExclude = i;\n }\n }\n }\n\n int product = 1;\n for (int i = 0; i < array.length; i++) {\n if (i != indexToExclude) product *= array[i];\n }\n\n return product;\n }",
"public static int sumOfTwoLargestElements3(int[] a) {\n int firstNum = Integer.MIN_VALUE;\n int secondNum = Integer.MIN_VALUE;\n int thirdNum = Integer.MIN_VALUE;\n int fourNum = Integer.MIN_VALUE;\n\n for (int num : a){\n if(num>firstNum){\n secondNum = firstNum;\n thirdNum = secondNum;\n firstNum = num;\n }else if (num>secondNum){\n thirdNum = secondNum;\n secondNum = num;\n }else if(num>thirdNum){\n thirdNum =num;\n }\n }\n return firstNum+secondNum+thirdNum;\n }",
"public int maxProfit3(int[] prices) {\n // input validation\n if (prices == null || prices.length == 0) {\n return 0;\n }\n\n // calculate the result\n int sum = 0;\n int res = 0;\n for (int i = 0; i < prices.length; i++) {\n int diff = prices[i + 1] - prices[i]; // get the diff\n sum = Math.max(0, sum + diff); // local\n res = Math.max(res, sum); // global\n }\n return res;\n }",
"public int thirdMax(int[] nums) {\n List<Integer> list = new ArrayList<>();\n for (int num : nums) {\n helper(list, num);\n }\n if (list.size() < 3) {\n return list.get(0);\n } else {\n return list.get(2);\n }\n }",
"static Integer[] maximumProductOfAllEntriesButOne_ExceptI(Integer array[]) {\n Integer result[] = new Integer[array.length];\n result[0] = 1;\n\n for (int i = 1; i < array.length; i++) {\n result[i] = array[i - 1] * result[i - 1];\n }\n\n Integer suffix = 1;\n\n for (int i = array.length - 2; i >= 0; i--) {\n suffix *= array[i + 1];\n result[i] *= suffix;\n }\n\n return result;\n }",
"public int maxProduct(int[] A) {\n if(A == null || A.length == 0){\n return 0;\n }\n int maxLocal = A[0];\n int minLocal = A[0];\n int maxGlobal = A[0];\n for(int i=1; i<A.length; i++){\n int temp = maxLocal;\n maxLocal = Math.max(A[i], Math.max(maxLocal*A[i], minLocal*A[i]));\n minLocal = Math.min(A[i], Math.min(temp*A[i], minLocal*A[i]));\n maxGlobal = Math.max(maxGlobal, maxLocal);\n }\n return maxGlobal;\n }",
"public static int[] findThreeLargestNumbers(int[] array) {\n\n if(array==null || array.length==0) {\n int[] temp = {};\n return temp ;\n }\n int[] result = new int[3];\n Arrays.fill(result,Integer.MIN_VALUE);\n result[2] = array[0];\n for(int i=1 ; i<array.length ; i++) {\n\n if(result[2]<= array[i]) {\n result[0] = result[1];\n result[1] = result[2];\n result[2] = array[i];\n } else if(result[1] <= array[i]) {\n result[0] = result[1];\n result[1] = array[i];\n } else if(result[0] < array[i]){\n result[0] = array[i];\n }\n\n\n }\n\n return result;\n\n }",
"public static int[] largestMultiple(int[] arr) {\r\n\t\tif(arr==null || arr.length==0) return arr;\r\n\t\t\r\n\t\tQueue<Integer> q1 = new PriorityQueue<Integer>();\r\n\t\tQueue<Integer> q2 = new PriorityQueue<Integer>();\r\n\t\tQueue<Integer> q3 = new PriorityQueue<Integer>();\r\n\t\t\r\n\t\tArrays.sort(arr);\r\n\t\t\r\n\t\tint sum= 0;\r\n\t\tfor(int i=0;i<arr.length;i++) {\r\n\t\t\tif(arr[i]%3==0) {\r\n\t\t\t\tq1.add(arr[i]);\r\n\t\t\t}\r\n\t\t\telse if(arr[i]%3==1) {\r\n\t\t\t\tq2.add(arr[i]);\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t\tq3.add(arr[i]);\r\n\t\t\tsum += arr[i];\r\n\t\t}\r\n\t\t\r\n\t\tif(sum%3==2) {\r\n\t\t\tif(!q2.isEmpty()) {\r\n\t\t\t\tq2.remove();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!q1.isEmpty()) {\r\n\t\t\t\t\tq1.remove();\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\treturn null;\r\n\t\t\t\tif(!q1.isEmpty()) {\r\n\t\t\t\t\tq1.remove();\r\n\t\t\t\t}\r\n\t\t\t\telse \r\n\t\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(sum%3==1) {\r\n\t\t\tif(!q1.isEmpty()) {\r\n\t\t\t\tq1.remove();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!q2.isEmpty()) \r\n\t\t\t\t\tq2.remove();\r\n\t\t\t\telse \r\n\t\t\t\t\treturn null;\r\n\t\t\t\tif(!q2.isEmpty()) \r\n\t\t\t\t\tq2.remove();\r\n\t\t\t\telse\r\n\t\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tint top=0;\r\n\t\twhile(!q1.isEmpty()) {\r\n\t\t\tarr[top++] = (int)q1.remove();\r\n\t\t}\r\n\t\twhile(!q2.isEmpty()) {\r\n\t\t\tarr[top++] = (int) q2.remove();\r\n\t\t}\r\n\t\t\r\n\t\twhile(!q3.isEmpty()) {\r\n\t\t\tarr[top++] = (int) q3.remove();\r\n\t\t}\r\n\t\tfor(int i=top-1;i>=0;i--){\r\n\t\t\tSystem.out.print(arr[i]+\" \");\r\n\t\t}\r\n\t\treturn arr;\r\n\t}",
"static int printMaxContiguousProductSubArray(int arr[]){\n\t\tint max_Ending_Here = 1, min_Ending_Here = 1, temp, max_So_Far = Integer.MIN_VALUE;\n\t\t\n\t\tfor(int i=0; i< arr.length; i++){\n\t\t\t\n\t\t\t//1. if the element inside the array is greater than 0, then going forward multiply it with old max_Ending_Here, to maintain the maximum product, \n\t\t\t//and min_Ending_Here should be one in this case.\n\t\t\t//2. \n\t\t\tif(arr[i]>0){\n\t\t\t\tmax_Ending_Here = max_Ending_Here * arr[i];\n\t\t\t\tmin_Ending_Here = Math.min(min_Ending_Here*arr[i], 1);\n\t\t\t}\n\t\t\t\n\t\t\telse if(arr[i] == 0){\n\t\t\t\tmax_Ending_Here = 1;\n\t\t\t\tmin_Ending_Here = 1;\n\t\t\t}\n\t\t\t\n\t\t\telse {\n\t\t\t\t//If after all positives one negative comes then we have to make max_Ending_Here = 1, and maintain a minimum in min_Ending_Here.\n\t\t\t\t// there could be case that again one more negative comes in future to hanlde that we are using Math.max, same for above math.min\n\t\t\t\ttemp = max_Ending_Here;\n\t\t\t\tmax_Ending_Here = Math.max(min_Ending_Here*arr[i], 1);\n\t\t\t\tmin_Ending_Here = temp*arr[i];\n\t\t\t}\n\t\t\t\n\t\t\tif(max_So_Far < max_Ending_Here){\n\t\t\t\tmax_So_Far = max_Ending_Here;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\treturn max_So_Far;\n\t\t\n\t}",
"static long getMaxPairwiseProductScanLargest2(int[] numbers) {\n\n int n = numbers.length;\n int pointer1;\n int pointer2;\n\n // Initialize pointers to the first two values\n if (numbers[0] > numbers[1]) {\n pointer1 = 0;\n pointer2 = 1;\n }\n else {\n pointer1 = 1;\n pointer2 = 0;\n }\n\n // Find the largest two values\n for (int i = 2; i < n; i += 1) {\n if (numbers[i] > numbers[pointer1]) {\n\n // Old largest slides over to the number two position\n pointer2 = pointer1;\n pointer1 = i;\n }\n else if (numbers[i] > numbers[pointer2]) {\n pointer2 = i;\n }\n else {\n continue;\n }\n }\n\n return (long) numbers[pointer1] * numbers[pointer2];\n }",
"public int thirdLargestDigit(int[] array){\r\n\t\t\t\r\n\t\tint max = 0;\r\n\t\tint secondMax = 0;\r\n\t\tint thirdMax = 0;\r\n\t\ttry{\r\n\r\n\t\t\tfor(int index=0 ; index<array.length ; index++) {\r\n\r\n\t\t\t\tif(array[index] > max){\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = max;\r\n\t\t\t\t\tmax = array[index];\r\n\t\t\t\t} else if(array[index] < max && array[index] > secondMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = secondMax;\r\n\t\t\t\t\tsecondMax = array[index];\r\n\t\t\t\t} else if(array[index] < secondMax && array[index] > thirdMax) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tthirdMax = array[index];\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch(Exception ex){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println(\"Something went wrong: \"+ex.getMessage());\r\n\t\t}\r\n\t\treturn thirdMax;\r\n\t}",
"public static void main(String[] args) {\n\t\tint[] A = {-2,0,-1,1,2};\n\t\tSystem.out.println(maxProduct(A));\n\t}",
"private static int[] findGreatestNumInArray(int[] array) {\r\n\t\tint maxValue = Integer.MIN_VALUE;\r\n \r\n\t\tint secondValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t\tint thirdValue = Integer.MIN_VALUE;\r\n\t\t\r\n\t int[] result = new int[2];\r\n\t \r\n\t int[] result2 = new int[3];\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\tif (array[i] > maxValue) {\r\n\t\t\t\tthirdValue = secondValue;\r\n\t\t\t\tsecondValue = maxValue;\r\n\t\t\t\tmaxValue = array[i];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse if(array[i]>secondValue)\r\n\t\t\t{\r\n\t\t\t\tsecondValue = array[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\telse if(array[i]>thirdValue)\r\n\t\t\t{\r\n\t\t\t\tthirdValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\tallowResult( result,maxValue,secondValue);\r\n\t\t\r\n\t\tallowResult( result2,maxValue,secondValue,thirdValue);\r\n\t\t//return maxValue;\r\n\t\treturn result2;\r\n\t}",
"public int maxProduct(final List<Integer> A) {\n\t\t int maxTillNow = A.get(0);\n\t\t int minArrSumAtCurrPos = A.get(0);\n\t\t int maxArrSumAtCurrPos = A.get(0);\n\t\t \n\t\t for(int i=1;i<A.size();i++){\n\t\t\t int tmpMin = Math.min(A.get(i), Math.min(minArrSumAtCurrPos*A.get(i), maxArrSumAtCurrPos*A.get(i)));\n\t\t\t int tmpMax = Math.max(minArrSumAtCurrPos*A.get(i),Math.max(maxArrSumAtCurrPos*A.get(i),A.get(i)));\n\t\t\t \n\t\t\t minArrSumAtCurrPos = tmpMin;\n\t\t\t maxArrSumAtCurrPos = tmpMax;\n\t\t\t \n\t\t\t if(maxArrSumAtCurrPos > maxTillNow){\n\t\t\t\t maxTillNow = maxArrSumAtCurrPos;\n\t\t\t }\n\t\t }\n\t\t \n\t\t return maxTillNow;\n\t }",
"public static int max(int[] numbers) {\n\t\tint max = numbers[0];\n\t\tfor(int i = 0; i < numbers.length; i++) {\n\t\t\t// 7 < 4\n\t\t\tif(max < numbers[i]) {\n\t\t\t// 7\n\t\t\t\tmax = numbers[i];\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn max;\n\t}",
"public static int calculateMaximumProfit(int[] input) {\n int minPrice = Integer.MAX_VALUE;\n int maxPrice = Integer.MIN_VALUE;\n\n if (input == null || input.length <= 1) {\n return 0;\n }\n\n for (int currentPrice : input) {\n minPrice = getMinPrice(minPrice, currentPrice);\n maxPrice = getMaxPrice(maxPrice, currentPrice);\n }\n return maxPrice - minPrice;\n }",
"int product(int[] nums) {\n int total = 1;\n for (int n: nums) {\n total = total * n;\n }\n return total; \n }",
"public static void main(String[] args) {\n\t\tint ressult =maxProduct(new int[]{0,0,0,0,0,20}, 6);\n\t\tSystem.out.println(ressult);\n\t\tSystem.out.println(maxProduct(new int[]{0,0,0,0,0,20}));\n\t\tSystem.out.println(maxCustomProduct(new int[]{0,0,0,0,0,20}));\n\t}",
"private static int max(int[] array) {\n int result = array[0];\n for (int x : array)\n result = Math.max(x, result);\n return result;\n }",
"public static int maximumProfit(int[] input){\n\t\tint maxTotalProfit = 0;\n\t\tList<Integer> firstBuySellProfits = new ArrayList<Integer>();\n\t\tint minPriceSoFar = Integer.MAX_VALUE;\n\t\tfor(int i = 0; i < input.length; i++){\n\t\t\tminPriceSoFar = Math.min(minPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, input[i] - minPriceSoFar);\n\t\t\tfirstBuySellProfits.add(maxTotalProfit);\n\t\t}\n\n\t\tint maxPriceSoFar = Integer.MIN_VALUE;\n\t\tfor(int i = input.length-1; i > 0; i--){\n\t\t\tmaxPriceSoFar = Math.max(maxPriceSoFar, input[i]);\n\t\t\tmaxTotalProfit = Math.max(maxTotalProfit, maxPriceSoFar - input[i] + firstBuySellProfits.get(i - 1));\n\t\t}\n\t\treturn maxTotalProfit;\n\t}",
"static int maxProfit(int[] prices)\n\t{\n\t\tint len = prices.length;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint profit = 0;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tmin = min > prices[i] ? prices[i] : min;\n\t\t\tprofit = prices[i] - min > profit ? prices[i] - min : profit; \n\t\t}\n\t\treturn profit;\n\t}",
"private static int maxSubSumN2(int[] a) {\n int maxSum = 0;\n\n for (int first = 0; first < a.length; first++) {\n int thisSum = 0;\n for (int i = first; i < a.length; i++) {\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n }\n }\n }\n\n return maxSum;\n }",
"public double[] getMax(){\n double[] max = new double[3];\n for (Triangle i : triangles) {\n double[] tempmax = i.maxCor();\n max[0] = Math.max( max[0], tempmax[0]);\n max[1] = Math.max( max[1], tempmax[1]);\n max[2] = Math.max( max[2], tempmax[2]);\n }\n return max;\n }",
"static int maxStolenValue(int[] values) {\n if(values.length == 0) return 0;\n int[] dp = new int[values.length + 1];\n dp[0] = 0;\n dp[1] = values[0];\n for(int i=2; i<=values.length; i++){\n int value1 = values[i-1] + dp[i-2];\n int value2 = values[i-2];\n if(i>=3) value2 += dp[i-3];\n dp[i] = Math.max(value1, value2);\n }\n return dp[values.length];\n }",
"public static int getMax(int[] inputArray){ \n int maxValue = inputArray[0]; \n for(int i=1;i < inputArray.length;i++){ \n if(inputArray[i] > maxValue){ \n maxValue = inputArray[i]; \n } \n } \n return maxValue; \n }",
"public int largestProduct(String[] dict) {\n Map<String, Integer> hmap = dictToBit(dict);\n Arrays.sort(dict, new Comparator<String>() {\n public int compare(String s1, String s2) {\n if (s1.length() == s2.length()) {\n return 0;\n } else {\n return s1.length() < s2.length() ? 1 : -1;\n }\n } \n });\n int res = 0;\n for (int i = 1; i < dict.length; i++) {\n for (int j = 0; j < i; j++) {\n int mask1 = hmap.get(dict[i]);\n int mask2 = hmap.get(dict[j]);\n if ((mask1 & mask2) == 0) {\n return dict[i].length() * dict[j].length();\n }\n }\n }\n return res;\n }",
"public int maxProfit(int[] prices) {\n if(prices.length==0) return 0;\n int T0=0;\n int T1=-(int)1e8;\n for(int val:prices){\n T0=Math.max(T0,T1 + val);\n T1=Math.max(T1,0 - val);\n }\n return T0;\n }",
"static int findHighestNumber(int [] array){\n int highestNumber = array [0];\n for (int x=0; x< array.length; x++){\n if (highestNumber<array[x]){\n highestNumber=array[x];\n }\n }\nreturn highestNumber;\n}",
"public static int max3(int a, int b, int c) {\r\n\t\t// Implement!\r\n\t\tint[] values = new int[3];\r\n\t\tvalues[0] = c;\r\n\t\tvalues[1] = a;\r\n\t\tvalues[2] = b;\r\n\r\n\t\tArrays.sort(values);\r\n\t\treturn values[2];\r\n\t}",
"public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int n = nums.length;\n //composite input\n int[] input = new int[n + 2];\n for (int i = 1; i <= n; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[n + 1] = 1;\n int[][] dp = new int[n + 2][n + 2];\n for (int len = 1; len <= n; len++) {\n //left moves between[1, n - len + 1]\n for (int left = 1; left <= n - len + 1; left++) {\n int right = left + len - 1; //right - left + 1 = len\n for (int k = left; k <= right; k++) {\n dp[left][right] = Math.max(dp[left][right], \n input[left - 1] * input[k] * input[right + 1] + dp[left][k - 1] + dp[k + 1][right]);\n }\n }\n }\n return dp[1][n];\n }",
"public static int mostMoney(int[][] a) { \n double[] totals = new double[3]; \n double rowTotal = 0.0;\n double rowTotal1 = 0.0;\n double rowTotal2 = 0.0;\n \n \n for(int i = 0; i<4; i++){\n rowTotal += a[0][i];\n totals[0] = rowTotal;}\n \n for(int j = 0; j<4; j++){\n rowTotal1 += a[1][j];\n totals[1] = rowTotal1;}\n \n for(int k = 0; k<4; k++){\n rowTotal2 += a[0][k];\n totals[2] = rowTotal2;}\n \n int indexOfBest=0; //used to find index of best year\n double best = totals[0];\n for(int i =0; i < 3; i++) {\n if(totals[i] >= best){\n best = totals[i];\n indexOfBest = i;}\n \n } return indexOfBest;\n }",
"private static int maxSubSumN(int[] a) {\n int maxSum = 0;\n int thisSum = 0;\n\n for (int i = 0; i < a.length; i++) {\n thisSum += a[i];\n\n if (thisSum > maxSum) {\n maxSum = thisSum;\n } else if (thisSum < 0) {\n thisSum = 0;\n }\n }\n\n return maxSum;\n }",
"public int majorityElement3(int[] nums) {\n int res = 0;\n for (int i = 0; i < Integer.SIZE; i++) {\n int count = 0;\n for (int num : nums) {\n final int mask = 1 << i;\n if ((num & mask) != 0) {\n count++;\n }\n if (count > nums.length / 2) {\n res |= mask;\n }\n }\n }\n return res;\n }",
"public static int maxProdHelper(int x[], int prod[], int start, int end){\n\t\tif(start==end)\n\t\t\treturn x[start];\n\t\tint leftneg = -1, rightneg=-1, neg_count=0;\n\t\tfor(int i=start;i<=end;i++){\n\t\t\tif(x[i] < 0){\n\t\t\t\tif(leftneg==-1)\n\t\t\t\t\tleftneg=i;\n\t\t\t\telse\n\t\t\t\t\trightneg=i;\n\t\t\t\tneg_count++;\n\t\t\t}\n\t\t}\n\t\tint ans=1;\n\t\tif(neg_count%2 == 0){\n\t\t\tans = start!=0 ? prod[end]/prod[start-1] : prod[end];\n\t\t}\n\t\telse{\n\t\t\t//Leaving out leftmost negative num\n\t\t\tint prod1 = prod[end]/prod[leftneg];\n\t\t\tint prod2 = leftneg!=0 ? prod[leftneg-1] ? Integer.MIN_VALUE;\n\t\t\t//Leaving out rightmost negative num\n\t\t\tint prod3 = start!=0 ? prod[rightneg-1]/prod[start-1] : prod[rightneg-1];\n\t\t\tint prod4 = \n\t\t\tans = Math.max(prod1, prod2);\n\t\t}\n\t\treturn ans;\n\t}",
"public int maxSubArray(int[] nums) {\n int[] dp = new int[nums.length];\n dp[0] = nums[0];\n int res = nums[0];\n for (int i = 1; i < nums.length; i++) {\n dp[i] = nums[i] + (dp[i - 1] < 0 ? 0 : dp[i - 1]);\n res = Math.max(res, dp[i]);\n }\n return res;\n }",
"public static int maxSale(int[] arr, int m) {\n Queue<Integer> queue = new PriorityQueue<Integer>(new Comparator<Integer>(){\n @Override\n public int compare(Integer a, Integer b) {\n return b - a;\n }\n });\n // (a,b) -> (b,a));\n for(int ticket : arr) {\n queue.offer(ticket);\n }\n int sum = 0;\n while (m > 0) {\n if (queue.isEmpty()) {\n break;\n }\n int max = queue.poll();\n int top = (queue.isEmpty() ? 0 : queue.peek());\n for(; m > 0 && max >= top; m--, max--) {\n sum += max;\n }\n if (max > 0) {\n queue.offer(max);\n }\n }\n return sum;\n }",
"public static int sumOfTwoLargestElements2(int[] a) {\n int firstNum = Integer.MIN_VALUE;\n int secondNum = Integer.MIN_VALUE;\n int thirdNum = Integer.MIN_VALUE;\n for (int num : a){\n if(num>firstNum){\n secondNum = firstNum;\n thirdNum = secondNum;\n firstNum = num;\n }else if (num>secondNum){\n thirdNum = secondNum;\n secondNum = num;\n }else if(num>thirdNum){\n thirdNum =num;\n }\n }\n return firstNum+secondNum+thirdNum;\n }",
"public int maxProfitOP(int prices[]) {\n int minprice = Integer.MAX_VALUE;\n int maxprofit = 0;\n for (int i = 0; i < prices.length; i++) {\n if (prices[i] < minprice)\n minprice = prices[i];\n else if (prices[i] - minprice > maxprofit)\n maxprofit = prices[i] - minprice;\n }\n return maxprofit;\n }",
"private int[] getHighestPricesInTerm(int[] prices){\n int highest = -1;\n int index = -1;\n for(int i=0;i<prices.length;i++){\n if(prices[i]>highest){\n highest = prices[i];\n index = i;\n }\n }\n return new int[]{highest,index};\n }",
"public static int findMaxProfit(int [] prices){\n int max_profit = 0;\r\n for (int i = 0;i<prices.length-1;i++){\r\n if(prices [i] < prices [i+1]){\r\n max_profit = max_profit + (prices[i+1]-prices[i]);\r\n }\r\n }\r\n return max_profit;\r\n }",
"public int maxProfit(int[] prices) {\n int N = prices.length;\n int res = 0; // min, buy and sell on the same day\n for (int i = 0; i < N; i++) {\n for (int j = i; j < N; j++) {\n res = Math.max(res, prices[j] - prices[i]);\n }\n }\n return res;\n }",
"private static int maxSum(int arr[]) {\n int sum = 0;\n Arrays.sort(arr);\n\n // Subtracting a1, a2, a3,....., a(n/2)-1,\n // an/2 twice and adding a(n/2)+1, a(n/2)+2,\n // a(n/2)+3,....., an - 1, an twice.\n for (int i = 0; i < arr.length / 2; i++) {\n sum -= (2 * arr[i]);\n sum += (2 * arr[arr.length - i - 1]);\n }\n\n return sum;\n }",
"static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }",
"public int maxValue( int[ ] n ) {\n int max = Integer.MIN_VALUE;\n for(int each: n){\n if(each > max){\n max = each;\n }\n }\n return max;\n }",
"public static int getMaximum(int[] array) {\n int length = array.length;\n int max = array[0];\n for (int i = 1; i < length; i++) {\n if(max < array[i]) {\n max = array[i];\n }\n }\n\n Arrays.sort(array);\n// return array[length - 1];\n return max;\n }",
"public static int max(int[] a) {\n\t\tint b=a[0];\r\n\t\tfor(int i=0;i<a.length;i++) {\r\n\t\t\tif(a[i]>b) {\r\n\t\t\t\tb=a[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn b;\r\n\t}",
"public static int max(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n\t\t\tif( m < a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public static int getMaxProfit(int[] values) {\n\t\t// We are allowed to compute only one transaction. So we will find min\n\t\t// and max value and will return the differrence.\n\t\tif (values == null || values.length <= 1)\n\t\t\treturn 0;\n\t\tint min = values[0];\n\t\tint profit = 0;\n\t\tfor (int i = 1; i < values.length; i++) {\n\t\t\tprofit = Math.max(profit, values[i] - min);\n\t\t\tmin = Math.min(min, values[i]);\n\t\t}\n\t\treturn profit;\n\t}",
"public int maxProfitBF(int prices[]) {\n int maxprofit = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n for (int j = i + 1; j < prices.length; j++) {\n int profit = prices[j] - prices[i];\n if (profit > maxprofit)\n maxprofit = profit;\n }\n }\n return maxprofit;\n }",
"public static int pointFree(double[] numbers){\n String completeString = \"\";\n String redactedString = \"\";\n int newArray[] = new int[numbers.length];\n int greatestValue=0;\n \n \n \n for (double x : numbers) {\n int currentValue;\n \n completeString = String.valueOf(x);\n redactedString = completeString.replaceAll(\"\\\\.\",\"\");\n currentValue = Integer.parseInt(redactedString);\n for (int i = 0; i < newArray.length; i++) {\n \n newArray[i]=currentValue;\n \n \n }\n greatestValue=newArray[0];\n for (int i = 0; i < newArray.length; i++) {\n if(newArray[i]>greatestValue){\n greatestValue=newArray[i];\n \n }\n \n }\n \n \n }\n return greatestValue;\n \n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int max = Integer.MIN_VALUE;\n int temp;\n int[][] array = new int[6][6];\n for(int i=0; i<6; i++){\n for(int j=0; j<6; j++){\n array[i][j] = sc.nextInt();\n }\n }\n for(int i=0;i<4;i++){\n for(int j=0;j<4;j++){\n temp = array[i][j] + array[i][j+1] + array[i][j+2]\n + array[i+1][j+1]\n + array[i+2][j] + array[i+2][j+1] + array[i+2][j+2];\n max = Math.max(temp,max);\n }\n }\n System.out.println(max);\n }",
"int adjacentElementsProduct(int[] inputArray) {\n\n int max = inputArray[0] * inputArray[1];\n int i = 0;\n int j = 1;\n\n while (i < inputArray.length - 1) {\n if (inputArray[i] * inputArray[j] > max) {\n max = inputArray[i] * inputArray[j];\n }\n i++;\n j++;\n }\n return max;\n\n }",
"public int max(int[] prices){\n int sum = 0;\n for(int i=1;i<prices.length;i++){\n if((prices[i]-prices[i-1])>0){\n sum += (prices[i]-prices[i-1]);\n }\n }\n return sum;\n }",
"public int maxProfit(int[] prices) {\n if (prices == null || prices.length == 0) return 0;\n int profit = 0;\n int cur = prices[0];\n for (int i : prices) {\n if (i > cur) profit = Math.max(profit, i - cur);\n else cur = i;\n }\n return profit;\n }",
"public int maxProfit(int[] prices) {\n\n if(prices.length==0) return 0;\n\n int[] dp = new int[3];\n\n dp[0] = -prices[0];\n\n dp[1] = Integer.MIN_VALUE;\n\n dp[2] = 0;\n\n for(int i=1; i<prices.length; i++){\n\n int hold = Math.max(dp[0], dp[2]- prices[i]);\n\n int coolDown = dp[0] + prices[i];\n\n int notHold = Math.max(dp[2], dp[1]);\n\n dp[0] = hold;\n\n dp[1] = coolDown;\n\n dp[2] = notHold;\n\n\n }\n\n return Math.max(Math.max(dp[0],dp[1]),dp[2]);\n\n }",
"public int maxProfit(int[] prices) {\n if (prices == null || prices.length == 0) {\n return 0;\n }\n int res = 0, buy = Integer.MAX_VALUE;\n for (int price : prices) {\n buy = Math.min(buy, price);\n res = Math.max(res, price - buy);\n }\n return res;\n }",
"private static Pair<Double, Integer> findMaxEntry(double[] array) {\n int index = 0;\n double max = array[0];\n for (int i = 1; i < array.length; i++) {\n if ( array[i] > max ) {\n max = array[i];\n index = i;\n }\n }\n return new Pair<Double, Integer>(max, index);\n }",
"private static int LargestSubArraySum(int[] array) {\n\t\tint maximumSum=0;\n\t\tfor(int i=0; i< array.length; i++) {\n\t\t\tfor(int j=i; j < array.length; j++) {\n\t\t\t\t\n\t\t\t\tint sum=0;\n\t\t\t\tfor(int k=i; k<= j; k++) \n\t\t\t\t\tsum += array[k];\n\t\t\t\t\n\t\t\t\tmaximumSum=Math.max(maximumSum, sum);\n\t\t\t} \n\t\t}\n\t\treturn maximumSum;\n\t}",
"public static int get_max(Integer[] a){\n int max = Integer.MIN_VALUE;\n\n for (int i = 0; i < a.length; i++){\n if (a[i] > max);\n max = a[i];\n }\n return max;\n }",
"int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}",
"public int maxProfit(int[] prices){\n int maxprofit = 0;\n for (int i=1;i<prices.length;i++){\n if(prices[i]>prices[i-1]){\n maxprofit += prices[i]-prices[i-1];\n }\n }\n return maxprofit;\n }",
"public int maxProfit(int[] prices) {\n\t if(prices.length == 0){\n\t return 0;\n\t }\n\t int s0 = 0, s0prev = 0;\n\t int s1 = 0, s1prev=-prices[0];\n\t int s2 = 0, s2prev=Integer.MIN_VALUE;\n\t for(int p : prices){\n\t s0 = Math.max(s0prev,s2prev);\n\t s1 = Math.max(s1prev,s0prev-p);\n\t s2 = Math.max(s2prev,s1prev+p);\n\t s0prev=s0;\n\t s1prev=s1;\n\t s2prev=s2;\n\t }\n\t return Math.max(s0,s2);\n\t}",
"private static int maxValue(int[] a) {\n\t\tint max_value =0;\r\n\t\tint current_max=0;\r\n\t\t\r\n\t\tfor(int i=0;i<a.length;i++)\r\n\t\t{\r\n\t\t\tcurrent_max += a[i];\r\n\t\t\tmax_value= Math.max(max_value, current_max);\r\n\t\t\tif(a[i]<0)\r\n\t\t\t\tcurrent_max=0;\r\n\t\t}\r\n\t\t\r\n\t\treturn max_value;\r\n\t}",
"public int maxProfit(int[] prices) {\n if(prices.length==0){\n return 0;\n }\n int max = 0;\n int valley = prices[0];\n int peak = prices[0];\n int i=0;\n while(i < prices.length-1){\n while(i<prices.length-1 && prices[i]>=prices[i+1])\n i++;\n valley = prices[i];\n while(i<prices.length-1 && prices[i]<=prices[i+1])\n i++;\n peak = prices[i];\n max += peak- valley;\n }\n return max;\n }",
"double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}",
"public int maxProfit(int[] prices){\n\t\tif(prices.length == 0){\n\t\t\treturn 0;\n\t\t}\n\n\t\tint maxPro = 0;\n\n\t\tfor(int i = 1; i < prices.length; i++){\n\t\t\tmaxPro += Math.max(0, prices[i] - prices[i-1]);\n\t\t}\n\t\treturn maxPro;\n\t}",
"public int maxProfit2(int[] prices) {\n // input validation\n if (prices == null || prices.length <= 1) {\n return 0;\n }\n\n // record the min up util now\n int min = Integer.MAX_VALUE;\n int res = 0;\n for (int i : prices) {\n min = Math.min(min, i);\n res = Math.max(res, i - min);\n }\n return res;\n }",
"public static int getMax(int arr[], int n)\n {\n int mx = arr[0];\n for (int i = 1; i < n; i++)\n {\n if (arr[i] > mx)\n {\n mx = arr[i];\n }\n }\n return mx;\n }",
"public int maxSubArray(int[] nums) {\n int maxValue = Integer.MIN_VALUE;\n int currentSum = 0;\n for(int i = 0; i < nums.length;i++){\n currentSum = Math.max(currentSum + nums[i],nums[i]);\n maxValue = Math.max(maxValue,currentSum);\n }\n return maxValue;\n }",
"public static double getMax(double[] arr) \n { \n double max = arr[0]; \n for(int i=1;i<arr.length;i++) \n { \n if(arr[i]>max) \n max = arr[i]; \n } \n return max; \n }",
"static int maxSum()\n {\n // Find array sum and i*arr[i] with no rotation\n int arrSum = 0; // Stores sum of arr[i]\n int currVal = 0; // Stores sum of i*arr[i]\n for (int i=0; i<arr.length; i++)\n {\n arrSum = arrSum + arr[i];\n currVal = currVal+(i*arr[i]);\n }\n\n // Initialize result as 0 rotation sum\n int maxVal = currVal;\n\n // Try all rotations one by one and find\n // the maximum rotation sum.\n for (int j=1; j<arr.length; j++)\n {\n currVal = currVal + arrSum-arr.length*arr[arr.length-j];\n if (currVal > maxVal)\n maxVal = currVal;\n }\n\n // Return result\n return maxVal;\n }",
"public int threeSumClosest(int[] num, int target) {\n long sum = Integer.MIN_VALUE;\n long diff = Integer.MAX_VALUE;\n Arrays.sort(num);\n for (int i = 0; i <= num.length - 3; i++) {\n int j = i + 1;\n int k = num.length - 1;\n while (j < k) {\n int tempSum = num[i] + num[j] + num[k];\n if (target - tempSum > 0) {\n j++;\n } else if (target - tempSum < 0) {\n k--;\n } else {\n return tempSum;\n }\n long delt = Math.abs(tempSum - target);\n if (delt < diff) {\n diff = delt;\n sum = tempSum;\n }\n }\n }\n return (int)sum;\n }",
"public int maxProfit(int[] prices) {\n \n \n int highestProfit = 0;\n\n //1\n int lengthIndex = prices.length-1;\n int[] lowest = getLowestPricesInTerm(prices);\n int[] highest = getHighestPricesInTerm(Arrays.copyOfRange(prices,lowest[1],lengthIndex));\n highestProfit = Math.max(highestProfit, highest[0]-lowest[0]);\n int[] secondLow;\n int[] secondHigh;\n\n // need to consider \"index out of bounds\"\n //2\n if(lowest[1]+1<=highest[1]-1){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,lowest[1]+1,highest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],highest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-lowest[0] + highest[0]-secondLow[0]);\n }\n \n //3\n if(lowest[1]-1>0){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,0,lowest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lowest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n //4\n if(highest[1]+1<lengthIndex){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,highest[1]+1,lengthIndex));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lengthIndex));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n \n return highestProfit;\n\n }",
"public static int getMax(int[] array) {\n //TODO: write code here\n int max = array[0];\n for(int a : array) {\n max = a > max ? a : max;\n }\n return max;\n }",
"public static int max(int[] theArray) {\n\n int biggest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n //get the biggest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the biggest values\n biggest= values.stream().max(Integer::compare).get();\n\n// //Alternative code does the samething\n// for (int number : theArray) {\n//\n// if (biggest < number) {\n// biggest = number;\n// }\n// }\n\n return biggest;\n\n }",
"public static int maxProfit(int[] a) {\n int minSofar = a[0];\n int maxProfit = 0;\n int profit = 0;\n\n for (int i = 0; i < a.length - 1; i++) {\n minSofar = Math.min(minSofar, a[i]);\n profit = a[i] - minSofar;\n maxProfit = Math.max(maxProfit, profit);\n\n }\n return maxProfit;\n\n\n }",
"public static int findMax(int[] a) {\r\n int max = a[0];\r\n\r\n //10th error , n = 1\r\n for (int n = 1; n < a.length; n++) {\r\n if (a[n] > max) {\r\n max = a[n];\r\n }\r\n }\r\n return max;\r\n\r\n }"
] | [
"0.83103323",
"0.7622613",
"0.7546119",
"0.7510364",
"0.7418841",
"0.7367409",
"0.7318665",
"0.72994375",
"0.71788555",
"0.7130869",
"0.7118748",
"0.71145344",
"0.71089315",
"0.70736504",
"0.7073224",
"0.7019269",
"0.6969061",
"0.69212264",
"0.6917021",
"0.69010055",
"0.68599063",
"0.68550444",
"0.68292207",
"0.67068917",
"0.66998327",
"0.6694732",
"0.66813636",
"0.66652894",
"0.6636693",
"0.6597058",
"0.6580929",
"0.65319073",
"0.65191597",
"0.64600277",
"0.64049643",
"0.6375085",
"0.63552487",
"0.63196254",
"0.62941647",
"0.62876534",
"0.62602913",
"0.62371",
"0.6199235",
"0.61841244",
"0.6167866",
"0.6120472",
"0.61145204",
"0.6107838",
"0.6107221",
"0.6105751",
"0.6088225",
"0.6087645",
"0.60796607",
"0.60778934",
"0.60682386",
"0.60671043",
"0.60619974",
"0.6052396",
"0.60494125",
"0.60488003",
"0.6038269",
"0.60271704",
"0.60210955",
"0.601763",
"0.60148805",
"0.6013241",
"0.60106874",
"0.59982264",
"0.5992813",
"0.59905344",
"0.5989803",
"0.5986921",
"0.5986834",
"0.5980289",
"0.59727085",
"0.59711105",
"0.5969797",
"0.5967528",
"0.59665644",
"0.59515125",
"0.5949085",
"0.5948612",
"0.59432375",
"0.59349465",
"0.59342766",
"0.59261084",
"0.5918975",
"0.59108436",
"0.5910402",
"0.59087515",
"0.5896877",
"0.58937",
"0.58930403",
"0.58893406",
"0.58850676",
"0.5881414",
"0.58801067",
"0.58790195",
"0.5868168",
"0.5868107"
] | 0.84067166 | 0 |
Returns the smallest int value stored in a sorted array of unique ints that may be shifted. Behavior with arrays not following these restrictions is undefined. | public static int findMinElement(int[] array) {
if(array.length < 1) {
throw new IllegalArgumentException("array is empty");
}
int left = 0;
int right = array.length - 1;
int mid = (left + right) / 2;
while(left < right) {
if(array[(mid - 1) % array.length] > array[mid]) {
return array[mid];
} else if (array[mid] < array[right]) {
right = mid - 1;
} else {
left = mid + 1;
}
mid = (left + right) / 2;
}
return array[mid];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int min() {\n\t\t// added my sort method in the beginning to sort our array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the first term in the array --> first term should be min if\n\t\t// sorted\n\t\tint x = array[0];\n\t\treturn x;\n\t}",
"public static int min(int[] a){\r\n\t\tint m = a[0];\r\n\t\tfor( int i=1; i<a.length; i++ )\r\n if( m > a[i] ) m = a[i];\r\n\t\treturn m;\r\n\t}",
"public static int Min(int[] array) {\r\n\t\tint minValue = array[0];\r\n\t\tfor (int i = 1; i < array.length; i++) {\r\n\t\t\tif (array[i] < minValue) {\r\n\t\t\t\tminValue = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn minValue;\r\n\t}",
"public static int getMin(int[] inputArray){\n int minValue = inputArray[0];\n for(int i=1; i<inputArray.length;i++){\n if(inputArray[i] < minValue){\n minValue=inputArray[i];\n }\n }\n return minValue;\n }",
"private static int getMin(int[] original) {\n int min =original[0];\n for(int i = 1; i < original.length; i++) {\n if(original[i] < min) min = original[i];\n }\n return min;\n }",
"public static int getMin(int[] array) {\n //TODO: write code here\n int min = array[0];\n for(int a : array) {\n min = a < min ? a : min;\n }\n return min;\n }",
"public int min(int[] array) {\n if (array == null || array.length == 0){\n return 0;\n }\n int min = array[0];\n for(int i = 0; i < array.length; i++){\n if (array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"public static int findMinimum(int[] array) {\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n }\n int left = 0;\n int right = array.length -1;\n int element = findPivot(array, left, right);\n return element;\n }",
"public static int min(int[] array){\n \n if(array == null){\n \n throw new IllegalArgumentException(\"Array cannot be null\");\n }\n else if(array.length==0){\n throw new IllegalArgumentException(\"Array cannot be empty\");\n }\n \n int min = array[0];\n \n for(int i = 1; i < array.length; i++){\n \n \n if(array[i] < min){\n min = array[i];\n }\n }\n return min;\n }",
"protected int findMinIndex(int[] arr)\n\t{\n\t\tint minIndex = arr.length;\n\t\tSet<Integer> set = new HashSet<>();\n\n\t\tfor (int i = arr.length - 1; i >= 0; i--) {\n\t\t\tif (set.contains(arr[i])) {\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tset.add(arr[i]);\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\n\t}",
"public static int minValue(int[] numArr) {\r\n\t\tint temp = numArr[0] < numArr[1] ? numArr[0] : numArr[1];\r\n\t\tfor (int i = 2; i < numArr.length; i++) {\r\n\t\t\ttemp = temp < numArr[i] ? temp : numArr[i];\r\n\t\t}\r\n\t\treturn temp;\r\n\t}",
"public static int min(int[] theArray) {\n\n //sets a starting value is used if use the alternative code.\n int smallest = theArray[0];\n\n //Converts the array to a list\n List<Integer> values = Arrays.stream(theArray).boxed().collect(Collectors.toList());\n\n Collections.min(values);\n\n //get the smallest by streaming the list and using min which gets the min value by using the Integer Comparator.comparing().\n //which means it will loop through the array and compare all the values for the smallest values\n smallest = values.stream().min(Integer::compare).get();\n\n ////Alternative code does the same thing.\n// for (int number : theArray) {\n//\n// if (smallest > number) {\n// smallest = number;\n// }\n// }\n\n return smallest;\n\n }",
"public static int minArray(int[] arr) {\n int min_value = Integer.MAX_VALUE;\n for (int i = 0; i < arr.length; i++) {\n if (min_value > arr[i]) {\n min_value = arr[i];\n }\n }\n return min_value;\n }",
"public static int findMinimum(int[] array) {\n\n int min;\n\n if (array == null || array.length == 0) {\n return Integer.MIN_VALUE;\n } else {\n min = array[0];\n for (int i= 0; i<array.length; i++) {\n if (min > array[i]) {\n min = array[i];\n }\n }\n return min;\n }\n \n }",
"private static int findMinInArr(int[] arr) {\n\t\tint min = arr[0];\n\t\tfor (int elem : arr) {\n\t\t\tif (elem < min) {\n\t\t\t\tmin = elem;\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"public int firstMissing(int[] array) {\n if (array == null || array.length == 0) {\n return 1;\n }\n int sum = 0;\n for (int i : array) {\n if (sum < i - 1) {\n return i - 1;\n }\n sum += i;\n }\n return sum + 1;\n }",
"public static int findMin(){\n int min = array[0];\n for(int x = 1; x<array.length; x++ ){\n if(array[x]<min){\n min=array[x];\n }\n }\n return min;\n}",
"public static int min(int[] a) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n int min = a[0];\n \n if (a.length > 1) {\n for (int i = 1; i < a.length; i++) {\n if (a[i] < min) {\n min = a[i];\n }\n }\n }\n return min;\n }",
"int findMin(int[] arr){\n\t\tint minimum=1000;\n\t\tfor (int i=0; i<arr.length; i++) {\n\t\t\tif (arr[i]<minimum) {\n\t\t\t\tminimum=arr[i];\n\t\t\t}\n\t\t}\n\t\treturn minimum;\n\t}",
"public int eightMin(int[] array) {\n\t\tcountMin++;\n\t\tif (array.length != 8)\n\t\t\treturn -1;\n\t\telse {\n\t\t\tint min = array[0];\n\t\t\tint pos = 0;\n\n\t\t\tfor (int i = 1; i < array.length; i++) {\n\t\t\t\tif (array[i] < min) {\n\t\t\t\t\tpos = i;\n\t\t\t\t\tmin = array[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn pos;\n\t\t}\n\t}",
"static int minValues(int[] x) {\n\t\tint min = 0;\n\n\t\tfor (int y : x) {\n\t\t\tif (y < min) {\n\t\t\t\tmin = y;\n\t\t\t}\n\t\t}\n\t\treturn min;\n\t}",
"static int findMin0(int[] nums) {\r\n \r\n // **** sanity check ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[nums.length - 1] > nums[0])\r\n return nums[0];\r\n\r\n // **** loop looking for the next smallest value ****\r\n for (int i = 0; i < nums.length - 1; i++) {\r\n if (nums[i] > nums[i + 1])\r\n return nums[i + 1];\r\n }\r\n\r\n // **** min not found ****\r\n return -1;\r\n }",
"public int findMinimum(int[] numbers, int length)\n {\n }",
"public int FindMinRotatedArray(int[] ar){\n\n int n = ar.length;\n int lo = 0;\n int hi = n - 1;\n while(lo <= hi){\n\n if(ar[lo] <= ar[hi]) // (sub) array is already sorted, yay!\n return ar[lo];\n\n int mid = lo + (hi - lo)/2; //prevent int overflow, assumes all are positive\n int next = (mid + 1) % n; //modulus is needed if mid is the start/end of the array\n int prev = (mid + n - 1) % n;\n\n //check if mid is the min. Both it's previous and next are higher\n if((ar[mid] <=ar[prev])&&(ar[mid] <=ar[next]))\n return ar[mid];\n\n //figure out where is the dip\n if(ar[mid] <= ar[lo])\n hi = mid - 1; //the dip is in the half left side\n else\n lo = mid + 1;\n }\n\n return -1;\n }",
"public static int indexOfSmallestElement(int[] array) {\n\t\tint min = array[0];\n\t\tint minIndex = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tif (array[i] < min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tminIndex = i;\n\t\t\t}\n\t\t}\n\t\treturn minIndex;\t\n\t}",
"static int findTheFirstMissingPositiveEntry(int array[]) {\n for (int i = 0; i < array.length; i++) {\n while ((array[i] > 0) && (array[i] != i + 1)) {\n int elem = array[i];\n if (array[elem - 1] == elem) break;\n\n Utilities.swap(array, i, elem - 1);\n }\n }\n\n for (int i = 0; i < array.length; i++) {\n if (array[i] != i + 1) return i + 1;\n }\n\n return 0;\n }",
"public static int firstMissingEffective(int[] x){\n int i = 0;\n while(i<x.length){\n // first two conditions check that element can correspond to index of array\n // third condition checks that they are not in their required position\n // fourth condition checks that there is no duplicate already at their position\n if( x[i]>0 && x[i]<x.length && x[i]-1!=i && x[x[i]-1]!=x[i]) exch(x,i,x[i]-1);\n else i++;\n }\n\n // second pass\n for(int j=0; j < x.length; j++){\n if( x[j]-1!=j) return j+1;\n }\n return x.length+1;\n\n }",
"public static int[] minUnsortedArray(int []sample){\n\t\tint s=0;\n\t\t//O(n)\n\t\twhile(s<sample.length-1 && sample[s]<=sample[s+1]){\n\t\t\ts++;\n\t\t}\n\t\tif(s==sample.length-1){\n\t\t\treturn null;\n\t\t}\n\t\tint e=sample.length-1;\n\t\t//O(n)\n\t\twhile(e>=1 && sample[e]>=sample[e-1]){\n\t\t\te--;\n\t\t}\n\t\t\n\t\tint min=sample[s];\n\t\tint max=sample[s];\n\t\t\n\t\t//O(n)\n\t\tfor(int i=s+1;i<=e;i++){\n\t\t\tif(min>sample[i]){\n\t\t\t\tmin=sample[i];\n\t\t\t}\n\t\t\tif(max<sample[i]){\n\t\t\t\tmax=sample[i];\n\t\t\t}\n\t\t}\n\t\t//O(n)\n\t\tfor(int i=0;i<s;i++){\n\t\t\tif(sample[i]>min){\n\t\t\t\ts=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t//O(n)\n\t\tfor(int i=sample.length-1;i>e;i--){\n\t\t\tif(sample[i]<max){\n\t\t\t\te=i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tint []result={s,e};\n\t\treturn result;\n\t\n\t}",
"public int extractMinimum() {\n if (size == 0) {\n return Integer.MIN_VALUE;\n }\n if (size == 1) {\n size--;\n return arr[0];\n }\n\n MathUtil.swap(arr, 0, size - 1);\n size--;\n minHeapify(0);\n return arr[size];\n }",
"public static int findMin(int[] A) {\n\t\tint ans = 0;\n\t\tfor(int i=1; i<A.length; i++) {\n\t\t\tif(ans > A[i]) {\n\t\t\t\tans = A[i];\n\t\t\t}\n\t\t}\n\t\treturn ans;\n\t}",
"public static int getMin(int arr[][]) {\n\t\tint minNum;\n\t\t\n\t\tminNum = arr[0][0];\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tfor (int j = 0; j < arr[i].length; j++) {\n\t\t\t\tif (arr[i][j] < minNum) {\n\t\t\t\t\tminNum = arr[i][j];\n\t\t\t\t}\n\t\t\t}\n\t\t} // end of outer for\n\t\treturn minNum;\n\t}",
"public static int min(int[] mainArray) {\r\n\t\tint min1 = 0;\r\n\t\tfor(int lessThan = 1; lessThan < mainArray.length; lessThan ++) {\r\n\r\n\t\t\tif(mainArray[lessThan]<mainArray[min1]) {\r\n\t\t\t\tmin1 = lessThan;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn min1;\r\n\t}",
"public static int firstMissing(int[] x){\n int[] ans = new int[x.length];\n for(int j=0; j<x.length; j++ ){\n if(x[j]>0 && x[j]<x.length) ans[x[j]] = x[j];\n }\n\n for(int j=1; j<ans.length; j++){\n if(ans[j]!=j) return j;\n }\n return ans[ans.length-1]+1;\n }",
"public int findMin(int[] num) {\n \t\n \tif (num.length == 1) {\n \t return num[0];\n \t}\n \t\n \tint up = num.length - 1,\n \t low = 0,\n \t mid = (up + low) / 2;\n \twhile (up > low) {\n \t if (mid + 1 < num.length && mid - 1 >= 0 && num[mid] < num[mid - 1] && num[mid] < num[mid + 1]) {\n \t return num[mid];\n \t }\n \t if (num[mid] > num[up]) {\n \t low = mid + 1;\n \t } else {\n \t up = mid - 1;\n \t }\n \t \n \t mid = (up + low) / 2;\n \t}\n \treturn num[mid];\n\t}",
"public long min() {\n\t\tif (!this.isEmpty()) {\n\t\t\tlong result = theElements[0];\n\t\t\tfor (int i=1; i<numElements; i++) {\n\t\t\t\tif (theElements[i] < result) {\n\t\t\t\t\tresult = theElements[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}\n\t\telse {\n\t\t\tthrow new RuntimeException(\"Attempted to find min of empty array\");\n\t\t}\n\t}",
"public static int removeDuplicates(int[] arr) {\n\t\tif (arr == null || arr.length == 0)\n\t\t\treturn 0;\n\n\t\tint index = 0;\n\t\twhile (index < arr.length - 1) {\n\t\t\tif (arr[index] == arr[index + 1]) {\n\t\t\t\tarr[index] = Integer.MIN_VALUE; // replace the duplicate value with MIN_VALUE\n\t\t\t}\n\t\t\tindex++;\n\t\t}\n\t\treturn moveInvalidElementsToEnd(arr);\n\t}",
"private int getMin(int[] times) {\n\n\t\t//Initially set min to the first value\n\t\tint min = times[0];\n\n\t\t//Loop through all times in the array\n\t\tfor (int i = 0; i < times.length; i++) {\n\n\t\t\t//Set the minimum\n\t\t\tif (times[i]<min) {\n\n\t\t\t\tmin = times[i];\n\t\t\t}\n\t\t}\n\n\t\treturn min;\n\t}",
"private static int getFirst( final Comparable[] c ) {\n\t\tfor ( int i = c.length - 2; i >= 0; --i )\n\t\t\tif ( c[ i ].compareTo( c[ i + 1 ] ) < 0 )\n\t\t\t\treturn i;\n\t\treturn -1;\n\t}",
"private static int leftBump(int[] a) {\n for (int i = 2; i <= a.length; i++) {\n if (a[i] < a[i - 1]) {\n return i - 1;\n }\n }\n return -1;\n }",
"public static int min(int[] values) {\n return min(values, 0, values.length);\n }",
"static int minimumTime(int[] x) {\n Arrays.sort(x);\n int l = x.length;\n int s = 0;\n int n = l - 1;\n for (int i = 0; i < n; ++i) {\n s += x[i + 1] - x[i];\n }\n return s;\n }",
"static int maxMin(int k, int[] arr) {\n Arrays.sort(arr);\n return IntStream.range(0, arr.length - k + 1).map(i -> arr[i + k - 1] - arr[i]).min().getAsInt();\n }",
"private static int firstGreaterEqual(int[] A, int target) {\n int low = 0, high = A.length;\n while (low < high) {\n int mid = low + ((high - low) >> 1);\n //low <= mid < high\n if (A[mid] < target) {\n low = mid + 1;\n } else {\n //should not be mid-1 when A[mid]==target.\n //could be mid even if A[mid]>target because mid<high.\n high = mid;\n }\n }\n return low;\n }",
"public static int argmin(double[] array) {\n\t\tdouble min = array[0];\n\t\tint re = 0;\n\t\tfor (int i=1; i<array.length; i++) {\n\t\t\tif (array[i]<min) {\n\t\t\t\tmin = array[i];\n\t\t\t\tre = i;\n\t\t\t}\n\t\t}\n\t\treturn re;\n\t}",
"public static int findOneDuplicateWithSorting(int[] array) {\n int result = Integer.MIN_VALUE;\n if (array.length <= 1)\n return result;\n \n Arrays.sort(array);\n for (int i = 1; i < array.length; i++) {\n if (array[i - 1] == array[i])\n return array[i];\n }\n return result;\n }",
"public static int getMinIndex(double[] array)\r\n\t{\r\n\t\tdouble min = Double.POSITIVE_INFINITY;\r\n\t\tint minIndex = 0;\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (min > array[i]) {\r\n\t\t\t\tmin = array[i];\r\n\t\t\t\tminIndex = i;\r\n\t\t\t}\r\n\t\treturn minIndex;\r\n\t}",
"public int firstMissingPositive(int[] A) {\n int len = A.length;\n for (int i = 0; i < len; i++) {\n int x = A[i];\n while (x <= len && x > 0 && A[x - 1] != x) {\n int tmp = A[x - 1];\n A[x - 1] = x;\n x = tmp;\n }\n }\n for (int i = 0; i < len; i++) {\n if (A[i] != i + 1) {\n return i + 1;\n }\n }\n return len + 1;\n }",
"public int findMin() {\n\t\tint min = (int)data.get(0);\n\t\tfor (int count = 1; count < data.size(); count++)\n\t\t\tif ((int)data.get(count) < min)\n\t\t\t\tmin = (int)data.get(count);\n\t\treturn min;\n\t}",
"long smallestpositive(long[] arr, int n){\n\nArrays.sort(arr);\n\nlong res =1;\n\nfor (int i = 0; i < n && arr[i] <= res; i++)\nres = res + arr[i];\n\nreturn res;\n}",
"static int minimumAbsoluteDifferenceSlower(int[] arr) {\n int smallest = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n int current = Math.abs(arr[i] - arr[j]);\n if (i == 0) {\n smallest = current;\n } else if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"public int minJump(int[] array) {\n if (array == null || array.length <= 1) {\n return 0;\n }\n int[] minJump = new int[array.length];\n minJump[0] = 0;\n for (int i = 1; i < array.length; i++) {\n minJump[i] = -1;\n for (int j = i - 1; j >= 0; j--) {\n if (j + array[j] >= i && minJump[j] != -1) {\n if (minJump[j] + 1 < minJump[i] || minJump[i] == -1) {\n minJump[i] = minJump[j] + 1;\n }\n }\n }\n }\n return minJump[minJump.length - 1];\n }",
"public int minSwaps(int[] data) {\n int n = 0;\n for (int i : data) {\n \tif (i == 1) n++;\n }\n if (n == 1) return 0;\n int zeroCount = 0;\n for (int i = 0; i < n; i++) {\n \tif (data[i] == 0) zeroCount++;\n }\n int result = zeroCount;\n for (int i = n; i < data.length; i++) {\n \tif (data[i] == 0) zeroCount++;\n \tif (data[i - n] == 0) zeroCount--;\n \tresult = Math.min(result, zeroCount);\n }\n return result;\n }",
"public int min()\n\t{\n\t\tif (arraySize > 0)\n\t\t{\n\t\t\tint minNumber = array[0];\n\t\t\tfor (int index = 0; index < arraySize; index++) \n\t\t\t{\n\t\t\t\tif (array[index] < minNumber)\n\t\t\t\t{\n\t\t\t\t\tminNumber = array[index];\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t\treturn minNumber;\n\t\t}\n\t\tSystem.out.println(\"Syntax error, array is empty.\");\n\t\treturn -1;\n\n\t}",
"public static int findMinSortingSubArray(int[] A) {\r\n\t\tint leftPointer=A.length,rightPointer=0;\r\n\t\tStack<Integer> stack=new Stack<Integer>();\r\n\t\tfor (int i = 0; i < A.length; i++) {\r\n\t\t\twhile(!stack.isEmpty() && A[stack.peek()]>A[i])\r\n\t\t\t\tleftPointer=Math.min(leftPointer, stack.pop());\r\n\t\t\tstack.add(i);\r\n\t\t}\r\n\t\tstack.clear();\r\n\t\tfor (int i = A.length-1; i >=0; i--) {\r\n\t\t\twhile(!stack.isEmpty() && A[stack.peek()]<A[i])\r\n\t\t\t\trightPointer=Math.max(rightPointer, stack.pop());\r\n\t\t\tstack.add(i);\r\n\t\t}\r\n\t\treturn rightPointer-leftPointer>0?rightPointer-leftPointer+1:0;\r\n\t\t\r\n\t}",
"public int solution(int[] A) {\n\n List<Integer> seen = new ArrayList<Integer>();\n\n int minvalue = Integer.MAX_VALUE;\n int currentMin = 0;\n\n for (int i = 0; i < A.length; i++) {\n seen.add(A[i]);\n if (A[i] < minvalue)\n minvalue = A[i];\n if (minvalue < 0)\n minvalue = 1;\n }\n\n currentMin = setMinNotInList(seen, minvalue);\n\n return currentMin;\n\n }",
"int getMin() \n\t{ \n\t\tint x = min.pop(); \n\t\tmin.push(x); \n\t\treturn x; \n\t}",
"public static int minimumAbsoluteDifference(int[] arr) {\n Arrays.sort(arr);\n int smallest = Math.abs(arr[0] - arr[arr.length - 1]);\n\n for (int i = 0; i < arr.length; i++) {\n if (i + 1 < arr.length) {\n int current = Math.abs(arr[i + 1] - arr[i]);\n if (smallest > current) {\n smallest = current;\n }\n }\n }\n\n return smallest;\n }",
"static int findMin(int[] nums) {\r\n \r\n // **** sanity check(s) ****\r\n if (nums.length == 1)\r\n return nums[0];\r\n\r\n // **** initialization ****\r\n int left = 0;\r\n int right = nums.length - 1;\r\n\r\n // **** check if there is no rotation ****\r\n if (nums[right] > nums[left])\r\n return nums[left];\r\n\r\n // **** binary search approach ****\r\n while (left < right) {\r\n\r\n // **** compute mid point ****\r\n int mid = left + (right - left) / 2;\r\n\r\n // **** check if we found min ****\r\n if (nums[mid] > nums[mid + 1])\r\n return nums[mid + 1];\r\n\r\n if (nums[mid - 1] > nums[mid])\r\n return nums[mid];\r\n\r\n // **** decide which way to go ****\r\n if (nums[mid] > nums[0])\r\n left = mid + 1; // go right\r\n else\r\n right = mid - 1; // go left\r\n }\r\n\r\n // **** min not found (needed to keep the compiler happy) ****\r\n return 69696969;\r\n }",
"public Integer findSmallestNumber() {\r\n\t\t// take base index element as smallest number\r\n\t\tInteger smallestNumber = numArray[0];\r\n\t\t// smallest number find logic\r\n\t\tfor (int i = 1; i < numArray.length; i++) {\r\n\t\t\tif (numArray[i] != null && numArray[i] < smallestNumber) {\r\n\t\t\t\tsmallestNumber = numArray[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t// return smallest number from the given array\r\n\t\treturn smallestNumber;\r\n\t}",
"public int minSelSort(int[] A) {\n int n = A.length;\n for(int i = 0; i < n - 1; i++) {\n int min = i;\n for(int j = i + 1; j < n; j++) {\n if (A[j] < A[min]) {\n min = j;\n minimum = min;\n }\n }\n }\n return minimum;\n }",
"public T findLowest(){\n T lowest = array[0]; \n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()<lowest.doubleValue())\n {\n lowest = array[i]; \n } \n }\n return lowest;\n }",
"public int getMinimumInteger() {\n/* 190 */ return (int)this.min;\n/* */ }",
"public int firstMissingPositive(int[] A) {\n if (A.length == 0) {\n\t\t\treturn 1;\n\t\t}\n int max = 0;\n for (int i = 0; i < A.length; i++) {\n\t\t\tmax = Math.max(max, A[i]);\n\t\t}\n int[] array = new int[max];\n for (int i = 0; i < A.length; i++) {\n\t\t\tif (A[i] > 0) {\n\t\t\t\tarray[A[i] - 1] = 1;\n\t\t\t}\n\t\t}\n for (int i = 0; i < max; i++) {\n\t\t\tif (array[i] == 0) {\n\t\t\t\treturn i+1;\n\t\t\t}\n\t\t}\n return max + 1;\n }",
"public static int magicIndexDistinct(int[] array) {\n int start = 0;\n int end = array.length-1;\n while(start<=end) {\n int middle = (start+end)/2;\n if(array[middle] == middle) {\n return middle;\n }\n if(array[middle] > middle) {\n end = middle-1;\n } else {\n start = middle+1;\n }\n }\n return -1;\n }",
"public int[] smallestRange(int[][] arrays) {\n \n int[] pointer = new int[arrays.length];\n int max = Integer.MIN_VALUE;\n int minY = Integer.MAX_VALUE;\n int minX = 0;\n boolean flag = true;\n \n // PriorityQueue<Integer> queue = new PriorityQueue<>((i,j)-> arrays[i][pointer[i]] - arrays[j][pointer[j]]);\n \n PriorityQueue<Integer> queue = new PriorityQueue<>(new Comparator<Integer>(){\n public int compare(Integer i, Integer j){\n return arrays[i][pointer[i]] - arrays[j][pointer[j]];\n }\n });\n \n for(int i = 0; i < arrays.length; i++){\n queue.offer(i);\n max = Math.max(max, arrays[i][0]);\n }\n \n for(int i = 0; i < arrays.length && flag; i ++){\n for(int j = 0; j < arrays[i].length && flag; j++){\n int minTemp = queue.poll();\n if(minY - minX > max - arrays[minTemp][pointer[minTemp]]){\n minX = arrays[minTemp][pointer[minTemp]];\n minY = max;\n }\n pointer[minTemp]++;\n if(pointer[minTemp] == arrays[minTemp].length){\n flag = false;\n break;\n }\n queue.offer(minTemp);\n max = Math.max(max, arrays[minTemp][pointer[minTemp]]);\n }\n }\n return new int[]{minX, minY};\n }",
"public static int min(int[] values) throws MathsException {\r\n\t\tif(values.length < Integer.MIN_VALUE || values.length > Integer.MAX_VALUE)\r\n\t\t\tthrow new MathsException(\"Not ok\");\r\n\t\tint minimum = values[0];\r\n\t\tfor(int i=1;i<values.length;i++)\r\n\t\t\tif(minimum > values[i])\r\n\t\t\t\tminimum = values[i];\r\n\t\treturn minimum;\r\n\t}",
"public abstract int findRowMin(boolean z, int i, int[] iArr);",
"public int minJump(int[] array) {\n if (array == null || array.length == 0) {\n return 0;\n }\n int[] minJump = new int[array.length];\n for (int i = array.length - 1; i >= 0; i--) {\n if (i + array[i] >= array.length) {\n minJump[i] = 1;\n } else {\n for (int j = array[i]; j >= 1; j--) {\n if (minJump[i + j] > 0 && (minJump[i + j] + 1 < minJump[i] || minJump[i] == 0)) {\n minJump[i] = minJump[i + j] + 1;\n }\n }\n }\n }\n return minJump[0] == 0 ? -1 : minJump[0];\n }",
"public static double min(double[] array) { \r\n \r\n double minNum = array[0];\r\n for(int i = 0; i < array.length; i++) {\r\n if(minNum > array[i]) {\r\n minNum = array[i];\r\n }\r\n }\r\n return minNum;\r\n }",
"public int findMin()\n {\n if(isEmpty())\n {\n throw new NoSuchElementException(\"Underflow Exeption\");\n }\n return heap[0];\n }",
"int getMin( int min );",
"public static int minimumAbsoluteDifference(Integer[] input){\n List<Integer> sortedList = Arrays.asList(input);\n Collections.sort(sortedList);\n\n int minimumAbsoluteDifference = Integer.MAX_VALUE;\n\n for(int i = 0; i < sortedList.size() - 1; i ++){\n int currentAbsoluteDifference = Math.abs(sortedList.get(i) - sortedList.get(i + 1));\n\n if(currentAbsoluteDifference < minimumAbsoluteDifference){\n minimumAbsoluteDifference = currentAbsoluteDifference;\n }\n }\n\n return minimumAbsoluteDifference;\n }",
"public static int floor(int[] a, int key) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n \n int candidate = Integer.MIN_VALUE;\n boolean happen = false;\n \n for (int i : a) {\n if (i <= key && i >= candidate) {\n candidate = i;\n happen = true;\n }\n }\n \n if (happen) {\n return candidate;\n }\n throw new IllegalArgumentException();\n }",
"private static int indexOfSmallest(int[] a, int start) {\n int minNum = a[start];\n int minIndex = start;\n for(int i=start; i<a.length; i++){\n if(a[i]<minNum){\n minNum = a[i];\n minIndex = i;\n }\n\n }\n return minIndex;\n }",
"private int findMin(int[] nums) {\n if (nums == null || nums.length == 0) return -1;\n int left = 0;\n int right = nums.length - 1;\n while (left < right) {\n int mid = left + (right - left) / 2;\n if (nums[mid] >= nums[left] && nums[mid] > nums[right]) {\n left = mid + 1;\n } else if (nums[mid] == nums[right]) {\n while (mid < right && nums[mid] == nums[right]) {\n right--;\n }\n } else {\n right = mid;\n }\n }\n return nums[left];\n }",
"public int findMinII(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n while (r > 0 && nums[r] == nums[r-1]) r --;\n while (l < n-1 && nums[l] == nums[l+1]) l ++;\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n return Math.min(nums[0], Math.min(nums[l], nums[r]));\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 }",
"public FindMinimumInRotatedSortedArray() {\n\t\t// Initialization here.\n\t\t// this.count = 0;\n\t}",
"public void minimum(int[] arr){\n int min = arr[0];\n for(int i = 1; i< arr.length-1; i++){ //why i = 1 means because we have already taken the arr[0] as minimum\n if(arr[i] < min){\n min = arr[i];\n }\n } \n System.out.println(\"The minimum Element in the array is : \"+min);\n }",
"public int getMinIntValue();",
"private static void min(int[] a) {\n int min = a[0];\n for(int i=1; i<a.length; i++){\n if(min > a[i]){\n min = a[i];\n }\n }\n System.out.println(\"Min\" + min);\n\n }",
"@Override\n public int findFirstMissingPositive(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 1;\n }\n int n = nums.length;\n for (int i = 0; i < n; ) { // phase-1 : sort as much possible\n int num = nums[i];\n if (num > 0 && num < n && num != nums[num]) { // n>=0, if 0 is also in scope\n swap(nums, i, num);\n } else {\n i++;\n }\n }\n // at this point, all numbers will be at their designated positions, except the missing number\n for (int i = 1; i < n; i++) { // phase-2a : find missing number // i=0 if 0 is also in scope\n if (nums[i] != i) {\n return i;\n }\n }\n if (nums[0]\n == n) { // phase-2b : // missing number is greater than all the numbers present in the array\n return ++n;\n }\n return n;\n }",
"public int findMin(int[] nums) {\n\t\t// corner\n\t\tif (nums.length == 1) {\n\t\t\treturn nums[0];\n\t\t}\n\t\t// Not rotated.\n\t\tif (nums[0] < nums[nums.length - 1]) {\n\t\t\treturn nums[0];\n\t\t}\n\n\t\t// Binary Search.\n\t\tint left = 0;\n\t\tint right = nums.length - 1;\n\t\t// int right = nums.length; // NG! (R = M version)\n\t\twhile (left <= right) {\n\t\t\t// while (left < right) { // NG! (R = M version)\n\t\t\tint mid = left + (right - left) / 2;\n\n\t\t\t// Find the valley.\n\t\t\t// nums[mid + 1] could cause array index out of bound when nums[mid] is the last\n\t\t\t// element.\n\t\t\t// However, for this problem, when nums[mid] is the second to the last, it\n\t\t\t// returns and\n\t\t\t// nums[mid] never reaches to the last element.\n\t\t\t// R = M version is NG because nums[mid] skips the second to the last and hits\n\t\t\t// the last\n\t\t\t// element depending on the case, in which case, nums[mid + 1] causes array\n\t\t\t// index out of bound.\n\t\t\tif (nums[mid] > nums[mid + 1]) {\n\t\t\t\treturn nums[mid + 1];\n\t\t\t}\n\t\t\t// Assert nums[mid] < nums[mid + 1] (no duplicates)\n\n\t\t\t// nums[mid - 1] could cause array index out of bound when the target is the\n\t\t\t// first element or\n\t\t\t// the second element.\n\t\t\t// However, for this problem, the code above returns when mid is equal to 0.\n\t\t\t// To be exact, when you use R = M - 1 version, mid is approaching index 0 as\n\t\t\t// the following:\n\t\t\t// 1. 2 -> 0 -> 1\n\t\t\t// 2. 3 -> 1 -> 0\n\t\t\t// ex) 1. [ 5, 1, 2, 3, 4 ], 2. [ 6, 1, 2, 3, 4, 5]\n\t\t\t// For case 1, the code above returns when mid is equal to 0, and nums[-1] never\n\t\t\t// occurs.\n\t\t\t// For case 2, the code below returns when mid is equal to 1, and nums[-1] never\n\t\t\t// occurs.\n\t\t\t//\n\t\t\t// Be careful!\n\t\t\t// Not rotated array can cause nums[-1] here for both of the two cases above\n\t\t\t// because\n\t\t\t// the code above does not return when mid is equal to 0, which causes index out\n\t\t\t// of bound here.\n\t\t\t// So, eliminate this case in advance.\n\t\t\tif (nums[mid - 1] > nums[mid]) {\n\t\t\t\treturn nums[mid];\n\t\t\t}\n\n\t\t\t// If the mid does not hit the valley, then keep searching.\n\t\t\t// I don't know why nums[mid] > nums[0] is ok in the LeetCode solution yet.\n\t\t\t// (No need to explore any further)\n\t\t\tif (nums[mid] > nums[left]) {\n\t\t\t\t// The min is in the right subarray.\n\t\t\t\tleft = mid + 1;\n\t\t\t} else {\n\t\t\t\t// The min is in the left subarray.\n\t\t\t\tright = mid - 1;\n\t\t\t\t// right = mid; // NG! (R = M version)\n\t\t\t}\n\t\t}\n\n\t\treturn -1;\n\t}",
"public int findMin(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n if (nums.length == 1) {\n return nums[0];\n }\n int l = 0;\n int r = nums.length - 1;\n while (l < r) {\n int m = (l + r) / 2;\n if (m > 0 && nums[m] < nums[m - 1]) {\n return nums[m];\n }\n if (nums[l] <= nums[m] && nums[m] > nums[r]) {\n l = m + 1;\n } else {\n r = m - 1;\n }\n }\n return nums[l];\n }",
"int minKey(int[] key, Boolean[] mstSet) {\n // Initialize min value\n int min = Integer.MAX_VALUE, min_index = -1;\n\n for (int v = 0; v < VERTICES; v++)\n if (mstSet[v] == false && key[v] < min) {\n min = key[v];\n min_index = v;\n }\n\n return min_index;\n }",
"public int getMin() {\n\t\t\treturn harr[0];\n\t\t}",
"public int minJumpDPII(int[] array) {\n if (array == null || array.length <= 1) {\n return 0;\n }\n int[] minJump = new int[array.length];\n minJump[array.length - 1] = 0;\n for (int i = array.length - 2; i >= 0; i--) {\n if (i + array[i] >= array.length - 1) {\n minJump[i] = 1;\n } else {\n int minStep = Integer.MAX_VALUE;\n for (int j = array[i]; j >= 1; j--) {\n if (minJump[i + j] > 0) {\n minStep = Math.min(minStep, minJump[i + j]);\n }\n }\n if (minStep > 0) {\n minJump[i] = minStep + 1;\n }\n }\n }\n return minJump[0] <= 0 ? -1 : minJump[0];\n }",
"private static int findMin(int startPos,int[] x){\n\t\tint result = startPos;\n\t\tfor(int i= startPos;i<x.length;i++){\n\t\t\tif(x[i]<x[result]){\n\t\t\t\tresult = i;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}",
"static int findMin(double[] pq)\n\t{\n\t\tint ind = -1; \n\t\tfor (int i = 0; i < pq.length; ++i)\n\t\t\tif (pq[i] >= 0 && (ind == -1 || pq[i] < pq[ind]))\n\t\t\t\tind = i;\n\t\treturn ind;\n\t}",
"int[] smallestK(int[] array, int k) {\n if (k <= 0 || k > array.length) {\n throw new IllegalArgumentException();\n }\n Arrays.sort(array);\n\n int[] smallest = new int[k];\n for (int i = 0; i < k; i++) {\n smallest[i] = array[i];\n }\n return smallest;\n }",
"static int minimumSwaps(int[] arr) {\n int arrLen = arr.length;\n int minSwaps = 0;\n boolean visited[] = new boolean[arrLen];\n for ( int i = 0; i < arrLen ; i++){\n if ( arr[i] == i+1){\n visited[i] = true;\n continue;\n }\n else if ( !visited[arr[i] - 1]){\n visited[i] = true;\n int temp = arr[i];\n int hops = 1;\n while ( temp != i+1 ){\n visited[temp - 1] = true;\n temp = arr[temp -1];\n hops++;\n }\n minSwaps += hops - 1;\n }\n }\n return minSwaps;\n }",
"public static int lowerBound(int[] arr, int data) {\n int ans = -1, low = 0, high = arr.length - 1;\n while (low <= high) {\n int mid = (low + high) / 2;\n if (arr[mid] == data) {\n ans = mid;\n high = mid - 1;\n } else if (data < arr[mid]) {\n high = mid - 1;\n } else {\n low = mid + 1;\n }\n }\n return ans;\n }",
"public static int minMoves(int[] nums) {\n if(nums.length==0) return 0;\n int res=0, len=nums.length,min=Integer.MAX_VALUE;\n for(int i:nums) min=Math.min(min,i);\n for(int i:nums) res+=i-min;\n return res;\n }",
"public int findMin(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n \n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }",
"int min();",
"int minPriority(){\n if (priorities.length == 0)\n return -1;\n\n int index = 0;\n int min = priorities[index];\n\n for (int i = 1; i < priorities.length; i++){\n if ((priorities[i]!=(-1))&&(priorities[i]<min)){\n min = priorities[i];\n index = i;\n }\n }\n return values[index];\n }",
"public static void main(String[] args) {\n int[] myArray = {1, 3, 4, 5, 2, -1, 3};\n System.out.println(getLowestPositiveInteger(myArray));\n }",
"public int findMinII(int[] nums) {\n return helper(nums, 0, nums.length - 1);\n }",
"private static int min(int[] arr, int i, int length, int r) {\n\n\t\tint mid = (i + length) / 2;\n\t\t\t\t\n\t\tif (i > length || i < 0)\n\t\t\treturn -1;\n\t\t\n\t\tif ((arr[mid] == r && mid == 0) || (arr[mid] == r && arr[mid - 1] < r))\n\t\t\treturn mid;\n\t\tif (arr[mid] >= r)\n\t\t\treturn min(arr, i, mid - 1, r);\n\t\telse\n\t\t\treturn min(arr, mid + 1, length, r);\n\t}",
"public static int firstRepeated(int[] arr, int n) {\n int min = Integer.MAX_VALUE;\n for (int i = 0; i < n - 1; i++) {\n int index = LinearSearch.iterative(arr, i + 1, n - 1, arr[i]);\n if (index != -1) {\n if (i < min) {\n min = i;\n }\n }\n }\n if (min == Integer.MAX_VALUE) {\n return -1;\n } else {\n return min + 1;\n }\n }"
] | [
"0.71575487",
"0.7156503",
"0.71241856",
"0.7046829",
"0.70219797",
"0.70182973",
"0.6892487",
"0.68645823",
"0.6856561",
"0.68446666",
"0.6837296",
"0.6809772",
"0.67991525",
"0.6770575",
"0.6707057",
"0.6698134",
"0.6670625",
"0.66698134",
"0.6664112",
"0.66242486",
"0.6621306",
"0.66011643",
"0.6594661",
"0.658885",
"0.649086",
"0.6482351",
"0.64806145",
"0.64555204",
"0.64518195",
"0.64438903",
"0.64231956",
"0.6410623",
"0.6406067",
"0.64015496",
"0.6372261",
"0.6365224",
"0.6311023",
"0.6288773",
"0.62837017",
"0.62752753",
"0.62583643",
"0.6257551",
"0.6231722",
"0.62174696",
"0.6206939",
"0.6204877",
"0.6196199",
"0.6183134",
"0.6168821",
"0.6165688",
"0.6151398",
"0.61504513",
"0.6144583",
"0.61234725",
"0.6114113",
"0.6105603",
"0.6101979",
"0.6097562",
"0.60916495",
"0.6089284",
"0.60698676",
"0.60455644",
"0.603241",
"0.60252863",
"0.60180944",
"0.6013639",
"0.60128313",
"0.6011405",
"0.60074997",
"0.5991512",
"0.5987707",
"0.598548",
"0.5985037",
"0.5975281",
"0.59746295",
"0.5973721",
"0.5970603",
"0.59615386",
"0.5959929",
"0.59589225",
"0.59589195",
"0.59279066",
"0.5924376",
"0.59144354",
"0.590071",
"0.5875635",
"0.58725286",
"0.58689475",
"0.58627",
"0.5861715",
"0.58555907",
"0.58538824",
"0.58529496",
"0.5842586",
"0.58257234",
"0.5822448",
"0.58219904",
"0.5811893",
"0.58117217",
"0.58057225"
] | 0.6523463 | 24 |
/ free cache memory | void mips3_exit(void)
{
if (mips3.icache)
free(mips3.icache);
mips3.icache = NULL;
if (mips3.dcache)
free(mips3.dcache);
mips3.dcache = NULL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void destroy() {\n destroyCache();\n }",
"void clearCache();",
"void clearCache();",
"public void releaseCachedPages() {\n cache.removeAll();\n }",
"public void dereferenceCache() {\n this.cache = null;\n }",
"public void dispose() {\n/* 105 */ this.cache.clear();\n/* */ }",
"public void clearCache();",
"private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }",
"public void clearMemoryCache() {\r\n cache.evictAll();\r\n Log.d(TAG, \"Manually cleaned complete cache.\");\r\n }",
"public abstract void clearCache();",
"private void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }",
"private void invalidateCache() {\n\t}",
"public void clearCache() {\n/* 105 */ this.cachedRed = null;\n/* 106 */ this.cachedUsr2dev = null;\n/* 107 */ this.cachedGn2dev = null;\n/* 108 */ this.cachedBounds = null;\n/* */ }",
"@Override\n public void cleanup() {\n for (String key : cache.keySet()) {\n CacheObject co = cache.get(key).get();\n if (co.isExpired()) {\n synchronized (co) {\n if (co.isExpired()) {\n cache.remove(key);\n queue.add(co);\n }\n }\n }\n }\n\n }",
"private void invalidateCache() {\n\t\tLog.d(TAG, \"invalidateCache() is removing in-memory cache\");\n\t\tpackageMapping.clear();\n\t\tvalidCache = false;\n\t}",
"@PreDestroy\n\tpublic void destroy() {\n\t cacheTree.destroy();\n\t}",
"public void free();",
"void invalidateCache();",
"@SuppressWarnings({\"unchecked\", \"CallToThreadYield\"})\n public void cleanup() {\n\n long now = System.currentTimeMillis();\n ArrayList<K> deleteKey;\n\n synchronized (cacheMap) {\n MapIterator itr = cacheMap.mapIterator();\n\n deleteKey = new ArrayList<>((cacheMap.size() / 2) + 1);\n K key;\n CacheObject c;\n\n while (itr.hasNext()) {\n key = (K) itr.next();\n c = (CacheObject) itr.getValue();\n\n if (c != null && (now > (timeToLive + c.lastAccessed))) {\n deleteKey.add(key);\n }\n }\n }\n\n deleteKey.stream().map((key) -> {\n synchronized (cacheMap) {\n Object remove = cacheMap.remove(key);\n }\n return key;\n }).forEachOrdered((K _item) -> {\n Thread.yield();\n });\n }",
"void resetCache();",
"@Override\n\t protected void onDestroy() {\n\t super.onDestroy();\n\t try {\n\t trimCache(this);\n\t } catch (Exception e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t }",
"private void collectGarbageInCache() {\n CacheReference r;\n while ((r = (CacheReference)queue.poll()) != null) {\n fontCache.remove(r.getKey());\n }\n }",
"private void onCacheFinish(){\n urls = null;\n medias = null;\n }",
"public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}",
"private void cleanBuffersFromCache()\n {\n synchronized (myUsedKeys)\n {\n CacheProvider cache = getCache();\n for (PolylineModelData key : myPreviouslyUsedKeys)\n {\n if (!myUsedKeys.contains(key))\n {\n cache.clearCacheAssociation(key, PolylineDataBuffered.class);\n }\n }\n\n myPreviouslyUsedKeys.clear();\n myPreviouslyUsedKeys.addAll(myUsedKeys);\n }\n }",
"public static void clearCache(){\n cache.clear();\n cache2.clear();\n }",
"@Override\n protected void onDestroy() {\n super.onDestroy();\n try {\n trimCache(this);\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public void clearCache() {\n\tmyCachedCrum = null;\n\tmyCachedRoot = null;\n\tmyCachedPath = MuSet.make();\n/*\nudanax-top.st:13116:CanopyCache methodsFor: 'operations'!\n{void} clearCache\n\t\"Clear the cache because the canopy has\n\t changed. This ought to destroy the cachedPath. \n\t This must be cleared after every episode!!!!!!\"\n\tmyCachedCrum _ NULL.\n\tmyCachedRoot _ NULL.\n\tmyCachedPath _ MuSet make.!\n*/\n}",
"@Override\n public void clearCache() {\n }",
"public void freeMemory() {\n native_freeMemory();\n }",
"public void deallocate()\n\t{\n\t\t//for(int i = 0; i <= maxsize; i++){\n\t\t//\t notusemap[i].addAll(inusemap[i]);\n\t\t//\t inusemap[i].clear();\n\t\t//}\n\t}",
"public void limpaCache()\n\t{\n\t\tpoolMensagens.clear();\n\t}",
"public static void clearCache() {\n sHardBitmapCache.clear();\n sSoftBitmapCache.clear();\n }",
"public void cleanDescriptorCache() {\n _descriptorCache = new DescriptorCacheImpl();\n }",
"public void free() {\r\n\r\n\t}",
"public void flushCaches() {\n LOCAL_SMALL_CACHE.clear();\n LOCAL_LARGE_CACHE.clear();\n }",
"public void destroy()\n {\n if ( cacheManager == null )\n {\n return;\n }\n\n LOG.info( \"clearing all the caches\" );\n\n cacheManager.close();\n cacheManager = null;\n //cacheManager.clearAll();\n //cacheManager.shutdown();\n }",
"public static void invalidateCache() {\n\t\tclassCache = new HashMap();\n\t}",
"public void clear() {\n cache.clear();\n }",
"public void clearCache() {\r\n \t\ttagInfoCache.clear();\r\n \t\ttldElementsByPrefix.clear();\r\n \t}",
"public void release()\n \t{\n \t\tif( iterator == null )\n \t\t{\n \t\t\tindex = new SpatialIndex();\n \t\t\tedgeAllocator = 0;\n \t\t\tmergeOps = null;\n \t\t\t\n \t\t\tSystem.gc();\n \t\t}\n \t}",
"public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();\n\t\tthis.freeTextures();\n\t\tthis.freeMaterials();\n\t}",
"void Free();",
"public void free() {\n byteBase.free();\n byteBase = null;\n }",
"public abstract void free();",
"public static void clearCache() {\n CACHE.remove();\n }",
"public void clear() {\n cache = new BigDecimal[cache.length];\n }",
"public void clearCache() {\n\n\t\t// clearing form soft reference\n\t\tif (softCache != null) {\n\t\t\tsoftCache.clear();\n\t\t}\n\n\t\t// clearing from cache directory\n\t\tdeleteCacheFiles();\n\n\t}",
"void free() {\n\t\t}",
"public void clearDataCache() {\n\t\t_cumulativeVolumeTable.clear();\n\t\tbookMap.clear();\n\t\tquoteMap.clear();\n\t\tmillisCST = 0L;\n\t}",
"public void clear() {\n this.cache.clear();\n }",
"public void clearCache() {\n mCache.clear();\n }",
"public void clear() {\n\t\tthis.cache.clear();\n\t}",
"T decache(String key) throws IOException;",
"public void clearCache() {\n\t\tsynchronized(mappingLock) {\n\t\t\tinvalidateCache();\n\t\t}\n\t}",
"@Override\n\tpublic void clear() {\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\tcache.clear();\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}",
"abstract void free();",
"public void dispose( String cache )\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }",
"public void clearCache() {\n textureCache.clear();\n modelCache.clear();\n blockModelCache.clear();\n }",
"public native void free();",
"public synchronized static void resetCache() {\n prefixes = null;\n jsonldContext = null;\n }",
"@Override\n\tpublic void invalidateCache() {\n\t\t\n\t}",
"protected void deallocate()\r\n/* 541: */ {\r\n/* 542:554 */ freeArray(this.array);\r\n/* 543:555 */ this.array = null;\r\n/* 544: */ }",
"public void destroy() throws Exception {\n\t\tICache cache = getCache ();\n\t\tif(cache!=null) cache.shutdown ();\n\t}",
"public void freeScrap() {\n\r\n\t}",
"public static void clearAllCache() {\n try {\n sLruCache.evictAll();\n sDiskLruCache.delete();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tprotected void clean() {\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_USERNAME);//数据库id\r\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_GROUPID);//\r\n\t\tcacheDataImpl.del(CacheConfig.GROUPMEMBER_GRADE);\r\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public static void clearCache() {\n\t\tgetPersistence().clearCache();\n\t}",
"public void delete()\n {\n if (this.data != null)\n {\n this.data.free();\n this.data = null;\n }\n \n this.width = 0;\n this.height = 0;\n \n this.mipmaps = 1;\n }",
"public static void clearAllCache() {\n page_cache.clear();\n key_relate.clear();\n }",
"@Override\n public void dispose() throws CacheException {\n }",
"public void invalidateCaches() {\n cfgCache.invalidateAll();\n analysisCache.invalidateAll();\n }",
"@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmImageFetcher.closeCache();\n\t}",
"private void clearCache(T Cache) {\r\n\t\t\r\n\t\tcache.clear();\r\n\t\t\r\n\t}",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"public static void clearCache() {\n getPersistence().clearCache();\n }",
"public void interestCachePurge()\n\t{\n\t\tdouble currentTime = getTime() ;\n\t\tfor(InterestCacheEntry entry:interestCache.values()){\n\t\t\tentry.setPayable(macroLearner.calcPayable(entry.getInterest(),entry.getMaxGradient().getPayment()));\n\t\t\tentry.gradientListPurge(currentTime) ;\n\t\t\t//microLearner.updateTaskExpectedPrice(entry.getInterest().getTaskId());\n\t\t\t/*if ( entry.IsGradientListEmpty() == true ){\n\t\t\t\tit.remove();\n\t\t\t}\t*/\t\t\n\t\t}\n\t}",
"public static void close() {\n try {\n sDiskLruCache.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void free() {\n\t\tcodeItem.free();\n\t}"
] | [
"0.7752284",
"0.74954534",
"0.74954534",
"0.74804467",
"0.7419694",
"0.73723966",
"0.73455137",
"0.73211265",
"0.72180116",
"0.720979",
"0.7205416",
"0.71356934",
"0.7124703",
"0.711743",
"0.7116921",
"0.7101674",
"0.7093136",
"0.70724756",
"0.7047683",
"0.70190054",
"0.69579595",
"0.6957162",
"0.6934651",
"0.69182605",
"0.691393",
"0.6879968",
"0.6821234",
"0.6816925",
"0.68157136",
"0.6794123",
"0.6788952",
"0.67840964",
"0.6773503",
"0.67710936",
"0.6768836",
"0.6766269",
"0.67351276",
"0.6714144",
"0.67036986",
"0.66935265",
"0.66763175",
"0.66743755",
"0.6622441",
"0.66199213",
"0.6619376",
"0.6601972",
"0.65916014",
"0.65649426",
"0.6557996",
"0.6557799",
"0.65567887",
"0.6552383",
"0.65243596",
"0.65034777",
"0.6503277",
"0.6488621",
"0.6465263",
"0.6452974",
"0.6443185",
"0.6432253",
"0.64119554",
"0.63946736",
"0.63895553",
"0.638065",
"0.63642234",
"0.63625586",
"0.6359473",
"0.6359364",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6351073",
"0.6339636",
"0.6336985",
"0.6318196",
"0.6316625",
"0.62899756",
"0.6276131",
"0.62605",
"0.62605",
"0.62605",
"0.6256455",
"0.62555426",
"0.62531984"
] | 0.6382773 | 63 |
/ kludge for DRC support | void mips3drc_set_options(UINT8 cpunum, UINT32 opts)
{
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private USI_ADRC() {}",
"zzang mo29839S() throws RemoteException;",
"zzafe mo29840Y() throws RemoteException;",
"zzand mo29852bb() throws RemoteException;",
"public interface C0335c {\n }",
"void mo21072c();",
"private void b044904490449щ0449щ() {\n /*\n r7 = this;\n r0 = new rrrrrr.ccrcrc;\n r1 = new java.lang.StringBuilder;\n r1.<init>();\n r2 = r7.bнн043Dннн;\n r2 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r2);\n r2 = r2.getFilesDir();\n r1 = r1.append(r2);\n r2 = java.io.File.separator;\n r1 = r1.append(r2);\n L_0x001b:\n r2 = 1;\n switch(r2) {\n case 0: goto L_0x001b;\n case 1: goto L_0x0024;\n default: goto L_0x001f;\n };\n L_0x001f:\n r2 = 0;\n switch(r2) {\n case 0: goto L_0x0024;\n case 1: goto L_0x001b;\n default: goto L_0x0023;\n };\n L_0x0023:\n goto L_0x001f;\n L_0x0024:\n r2 = \"3HC4C-01.txt\";\n r1 = r1.append(r2);\n r1 = r1.toString();\n r0.<init>(r1);\n r0.load();\n L_0x0034:\n r1 = r0.size();\n if (r1 <= 0) goto L_0x007a;\n L_0x003a:\n r1 = r0.peek();\n r2 = new rrrrrr.rcccrr;\n r2.<init>();\n r3 = r7.bнн043Dннн;\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044Cь044C044Cьь(r3);\n monitor-enter(r3);\n r4 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r4 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r4);\t Catch:{ all -> 0x0074 }\n r4 = r4.bЛ041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r5 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r5 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r5);\t Catch:{ all -> 0x0074 }\n r5 = r5.b041B041B041BЛ041BЛ;\t Catch:{ all -> 0x0074 }\n r6 = r7.bнн043Dннн;\t Catch:{ all -> 0x0074 }\n r6 = com.immersion.aws.analytics.ImmrAnalytics.bь044C044C044Cьь(r6);\t Catch:{ all -> 0x0074 }\n r6 = r6.bЛЛЛ041B041BЛ;\t Catch:{ all -> 0x0074 }\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n r1 = r2.sendHttpRequestFromCache(r4, r5, r6, r1);\n if (r1 == 0) goto L_0x0077;\n L_0x0069:\n if (r4 == 0) goto L_0x0077;\n L_0x006b:\n if (r5 == 0) goto L_0x0077;\n L_0x006d:\n r0.remove();\n r0.save();\n goto L_0x0034;\n L_0x0074:\n r0 = move-exception;\n monitor-exit(r3);\t Catch:{ all -> 0x0074 }\n throw r0;\n L_0x0077:\n r0.save();\n L_0x007a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.b044904490449щ0449щ():void\");\n }",
"static void dcx_rp(String passed){\n\t\tint h,l;\n\t\tswitch(passed.charAt(4)){\n\t\tcase 'B':\n\t\t\th = hexa_to_deci(registers.get('B'));\n\t\t\tl = hexa_to_deci(registers.get('C'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\tregisters.put('C',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('B',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'D':\n\t\t\th = hexa_to_deci(registers.get('D'));\n\t\t\tl = hexa_to_deci(registers.get('E'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('E',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('D',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\tcase 'H':\n\t\t\th = hexa_to_deci(registers.get('H'));\n\t\t\tl = hexa_to_deci(registers.get('L'));\n\t\t\tl--;\n\t\t\tif(l==-1)\n\t\t\t\th--;\n\t\t\tif(l==-1)\n\t\t\t\tl=255;\n\t\t\tif(h==-1)\n\t\t\t\th=255;\n\t\t\th+=(l>255?1:0);\n\t\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n\tpublic void ccc() {\n\t\t\n\t}",
"public void mo12628c() {\n }",
"C12017a mo41088c();",
"C2451d mo3408a(C2457e c2457e);",
"void mo57278c();",
"void mo80457c();",
"static void perform_dcr(String passed){\n\t\tint type = type_of_dcr(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tdcr_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tdcr_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"static int size_of_dcr(String passed){\n\t\treturn 1;\n\t}",
"public abstract void mo53562a(C18796a c18796a);",
"private final com.google.wireless.android.finsky.dfe.p505c.p506a.ec m35437b(com.google.protobuf.nano.C7213a r8) {\n /*\n r7 = this;\n r1 = 0;\n L_0x0001:\n r0 = r8.m33550a();\n switch(r0) {\n case 0: goto L_0x000e;\n case 8: goto L_0x000f;\n case 16: goto L_0x004c;\n case 26: goto L_0x006f;\n case 34: goto L_0x007c;\n default: goto L_0x0008;\n };\n L_0x0008:\n r0 = super.a(r8, r0);\n if (r0 != 0) goto L_0x0001;\n L_0x000e:\n return r7;\n L_0x000f:\n r2 = r7.f37533a;\n r2 = r2 | 1;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33567i();\t Catch:{ IllegalArgumentException -> 0x003b }\n switch(r3) {\n case 0: goto L_0x0043;\n case 1: goto L_0x0043;\n default: goto L_0x0020;\n };\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x0020:\n r4 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = 42;\n r6 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x003b }\n r6.<init>(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r6.append(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n r5 = \" is not a valid enum ResultCode\";\n r3 = r3.append(r5);\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3.toString();\t Catch:{ IllegalArgumentException -> 0x003b }\n r4.<init>(r3);\t Catch:{ IllegalArgumentException -> 0x003b }\n throw r4;\t Catch:{ IllegalArgumentException -> 0x003b }\n L_0x003b:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x0043:\n r7.f37534b = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x003b }\n r3 = r3 | 1;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x003b }\n goto L_0x0001;\n L_0x004c:\n r2 = r7.f37533a;\n r2 = r2 | 2;\n r7.f37533a = r2;\n r2 = r8.m33573o();\n r3 = r8.m33560d();\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = com.google.wireless.android.finsky.dfe.p505c.p506a.dp.m35391a(r3);\t Catch:{ IllegalArgumentException -> 0x0067 }\n r7.f37535c = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r7.f37533a;\t Catch:{ IllegalArgumentException -> 0x0067 }\n r3 = r3 | 2;\n r7.f37533a = r3;\t Catch:{ IllegalArgumentException -> 0x0067 }\n goto L_0x0001;\n L_0x0067:\n r3 = move-exception;\n r8.m33562e(r2);\n r7.a(r8, r0);\n goto L_0x0001;\n L_0x006f:\n r0 = r8.m33565g();\n r7.f37536d = r0;\n r0 = r7.f37533a;\n r0 = r0 | 4;\n r7.f37533a = r0;\n goto L_0x0001;\n L_0x007c:\n r0 = 34;\n r2 = com.google.protobuf.nano.C7222l.m33624a(r8, r0);\n r0 = r7.f37537e;\n if (r0 != 0) goto L_0x00a8;\n L_0x0086:\n r0 = r1;\n L_0x0087:\n r2 = r2 + r0;\n r2 = new com.google.wireless.android.finsky.dfe.p505c.p506a.ed[r2];\n if (r0 == 0) goto L_0x0091;\n L_0x008c:\n r3 = r7.f37537e;\n java.lang.System.arraycopy(r3, r1, r2, r1, r0);\n L_0x0091:\n r3 = r2.length;\n r3 = r3 + -1;\n if (r0 >= r3) goto L_0x00ac;\n L_0x0096:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r3 = r2[r0];\n r8.m33552a(r3);\n r8.m33550a();\n r0 = r0 + 1;\n goto L_0x0091;\n L_0x00a8:\n r0 = r7.f37537e;\n r0 = r0.length;\n goto L_0x0087;\n L_0x00ac:\n r3 = new com.google.wireless.android.finsky.dfe.c.a.ed;\n r3.<init>();\n r2[r0] = r3;\n r0 = r2[r0];\n r8.m33552a(r0);\n r7.f37537e = r2;\n goto L_0x0001;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.c.a.ec.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.c.a.ec\");\n }",
"zzana mo29855eb() throws RemoteException;",
"public static void mcdc() {\n\t}",
"void mo3194r();",
"C15430g mo56154a();",
"public abstract void mo56925d();",
"public static /* synthetic */ p163g.p201e.p203b.p204d.C5419r.C5420a m18181a(p163g.p201e.p203b.p204d.C5419r.C5420a r3, com.bamtech.sdk4.account.DefaultAccount r4, java.util.List<com.bamtech.sdk4.subscription.Subscription> r5, boolean r6, boolean r7, boolean r8, int r9, java.lang.Object r10) {\n /*\n r10 = r9 & 1\n if (r10 == 0) goto L_0x0006\n com.bamtech.sdk4.account.DefaultAccount r4 = r3.f12933a\n L_0x0006:\n r10 = r9 & 2\n if (r10 == 0) goto L_0x000c\n java.util.List<com.bamtech.sdk4.subscription.Subscription> r5 = r3.f12934b\n L_0x000c:\n r10 = r5\n r5 = r9 & 4\n if (r5 == 0) goto L_0x0013\n boolean r6 = r3.f12935c\n L_0x0013:\n r0 = r6\n r5 = r9 & 8\n if (r5 == 0) goto L_0x001a\n boolean r7 = r3.f12936d\n L_0x001a:\n r1 = r7\n r5 = r9 & 16\n if (r5 == 0) goto L_0x0021\n boolean r8 = r3.f12937e\n L_0x0021:\n r2 = r8\n r5 = r3\n r6 = r4\n r7 = r10\n r8 = r0\n r9 = r1\n r10 = r2\n g.e.b.d.r$a r3 = r5.mo17152a(r6, r7, r8, r9, r10)\n return r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p163g.p201e.p203b.p204d.C5419r.C5420a.m18181a(g.e.b.d.r$a, com.bamtech.sdk4.account.DefaultAccount, java.util.List, boolean, boolean, boolean, int, java.lang.Object):g.e.b.d.r$a\");\n }",
"private boolean isCdmaCard(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isCdmaCard(int):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isCdmaCard(int):boolean\");\n }",
"public abstract void mo70710a(String str, C24343db c24343db);",
"public interface C0939c {\n }",
"public abstract long mo24410c();",
"private S(com.google.ad r9, com.google.h r10) {\n /*\n r8 = this;\n r0 = 0;\n r1 = -1;\n r7 = 2;\n r2 = 1;\n r5 = org.whispersystems.Y.r;\n r8.<init>();\n r8.k = r1;\n r8.n = r1;\n r8.c();\n r6 = com.google.eV.g();\n r1 = r0;\n L_0x0015:\n if (r0 != 0) goto L_0x006f;\n L_0x0017:\n r3 = r9.z();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n switch(r3) {\n case 0: goto L_0x0085;\n case 10: goto L_0x00c6;\n case 18: goto L_0x0055;\n default: goto L_0x001e;\n };\n L_0x001e:\n r3 = r8.a(r9, r6, r10, r3);\t Catch:{ fN -> 0x0089, IOException -> 0x00aa }\n if (r3 != 0) goto L_0x006d;\n L_0x0024:\n if (r5 == 0) goto L_0x00c4;\n L_0x0026:\n r3 = r2;\n L_0x0027:\n r0 = 0;\n r4 = r8.h;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r4 & 1;\n if (r4 != r2) goto L_0x00c1;\n L_0x002e:\n r0 = r8.f;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r0 = r0.w();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r0;\n L_0x0035:\n r0 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r9.a(r0, r10);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = (org.whispersystems.Y) r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n if (r4 == 0) goto L_0x004c;\n L_0x0041:\n r0 = r8.f;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r4.a(r0);\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r0 = r4.a();\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n r8.f = r0;\t Catch:{ fN -> 0x00a8, IOException -> 0x00aa }\n L_0x004c:\n r0 = r8.h;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n r0 = r0 | 1;\n r8.h = r0;\t Catch:{ fN -> 0x00b9, IOException -> 0x00aa }\n if (r5 == 0) goto L_0x00bf;\n L_0x0054:\n r0 = r3;\n L_0x0055:\n r3 = r1 & 2;\n if (r3 == r7) goto L_0x0062;\n L_0x0059:\n r3 = new java.util.ArrayList;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.<init>();\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r8.l = r3;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r1 = r1 | 2;\n L_0x0062:\n r3 = r8.l;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = org.whispersystems.Y.o;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r4 = r9.a(r4, r10);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n r3.add(r4);\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x006d:\n if (r5 == 0) goto L_0x0015;\n L_0x006f:\n r0 = r1 & 2;\n if (r0 != r7) goto L_0x007b;\n L_0x0073:\n r0 = r8.l;\t Catch:{ fN -> 0x00bb }\n r0 = java.util.Collections.unmodifiableList(r0);\t Catch:{ fN -> 0x00bb }\n r8.l = r0;\t Catch:{ fN -> 0x00bb }\n L_0x007b:\n r0 = r6.d();\n r8.e = r0;\n r8.b();\n return;\n L_0x0085:\n if (r5 == 0) goto L_0x00c4;\n L_0x0087:\n r0 = r2;\n goto L_0x001e;\n L_0x0089:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x008b:\n r0 = move-exception;\n r0 = r0.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x0091:\n r0 = move-exception;\n r1 = r1 & 2;\n if (r1 != r7) goto L_0x009e;\n L_0x0096:\n r1 = r8.l;\t Catch:{ fN -> 0x00bd }\n r1 = java.util.Collections.unmodifiableList(r1);\t Catch:{ fN -> 0x00bd }\n r8.l = r1;\t Catch:{ fN -> 0x00bd }\n L_0x009e:\n r1 = r6.d();\n r8.e = r1;\n r8.b();\n throw r0;\n L_0x00a8:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00aa:\n r0 = move-exception;\n r2 = new com.google.fN;\t Catch:{ all -> 0x0091 }\n r0 = r0.getMessage();\t Catch:{ all -> 0x0091 }\n r2.<init>(r0);\t Catch:{ all -> 0x0091 }\n r0 = r2.a(r8);\t Catch:{ all -> 0x0091 }\n throw r0;\t Catch:{ all -> 0x0091 }\n L_0x00b9:\n r0 = move-exception;\n throw r0;\t Catch:{ fN -> 0x008b, IOException -> 0x00aa }\n L_0x00bb:\n r0 = move-exception;\n throw r0;\n L_0x00bd:\n r0 = move-exception;\n throw r0;\n L_0x00bf:\n r0 = r3;\n goto L_0x006d;\n L_0x00c1:\n r4 = r0;\n goto L_0x0035;\n L_0x00c4:\n r0 = r2;\n goto L_0x006d;\n L_0x00c6:\n r3 = r0;\n goto L_0x0027;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.whispersystems.S.<init>(com.google.ad, com.google.h):void\");\n }",
"public int method_4108(Channel var1) {\n return 0;\n }",
"byte mo30283c();",
"public abstract String mo11611b();",
"private void parseSQLDCXGRP() {\n if (readFdocaOneByte() == CodePoint.NULLDATA) {\n return;\n }\n\n // The server should send NULLDATA\n throw new UnsupportedOperationException(\"SQLState.DRDA_COMMAND_NOT_IMPLEMENTED parseSQLDCXGRP\");\n// netAgent_.accumulateChainBreakingReadExceptionAndThrow(\n// new DisconnectException(netAgent_,\n// new ClientMessageId(SQLState.DRDA_COMMAND_NOT_IMPLEMENTED),\n// \"parseSQLDCXGRP\"));\n }",
"public boolean isRC() { return isRC; }",
"abstract String mo1748c();",
"void mo4874b(C4718l c4718l);",
"public abstract void mo70702a(C30989b c30989b);",
"void mo17021c();",
"private void bщ04490449щ0449щ(rrrrrr.rcccrr r6) {\n /*\n r5 = this;\n r4 = 0;\n r0 = r6.getJsonData();\t Catch:{ Exception -> 0x0056 }\n r1 = new rrrrrr.ccrcrc;\t Catch:{ Exception -> 0x0056 }\n r2 = new java.lang.StringBuilder;\t Catch:{ Exception -> 0x0056 }\n r2.<init>();\t Catch:{ Exception -> 0x0056 }\n r3 = r5.bнн043Dннн;\t Catch:{ Exception -> 0x0056 }\n r3 = com.immersion.aws.analytics.ImmrAnalytics.b044C044C044C044Cьь(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = r3.getFilesDir();\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = java.io.File.separator;\t Catch:{ Exception -> 0x0056 }\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r3 = \"3HC4C-01.txt\";\n r2 = r2.append(r3);\t Catch:{ Exception -> 0x0056 }\n r2 = r2.toString();\t Catch:{ Exception -> 0x0056 }\n r1.<init>(r2);\t Catch:{ Exception -> 0x0056 }\n r2 = bЗ04170417ЗЗЗ;\n r3 = bЗЗЗ0417ЗЗ;\n r3 = r3 + r2;\n r2 = r2 * r3;\n r3 = b04170417З0417ЗЗ;\n r2 = r2 % r3;\n switch(r2) {\n case 0: goto L_0x0041;\n default: goto L_0x0039;\n };\n L_0x0039:\n r2 = 38;\n bЗ04170417ЗЗЗ = r2;\n r2 = 29;\n b041704170417ЗЗЗ = r2;\n L_0x0041:\n r1.load();\t Catch:{ Exception -> 0x0056 }\n L_0x0044:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x0047;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x0047:\n switch(r4) {\n case 0: goto L_0x004b;\n case 1: goto L_0x0044;\n default: goto L_0x004a;\n };\t Catch:{ Exception -> 0x0056 }\n L_0x004a:\n goto L_0x0047;\n L_0x004b:\n r0 = r0.toString();\t Catch:{ Exception -> 0x0056 }\n r1.push(r0);\t Catch:{ Exception -> 0x0056 }\n r1.save();\t Catch:{ Exception -> 0x0056 }\n L_0x0055:\n return;\n L_0x0056:\n r0 = move-exception;\n goto L_0x0055;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: rrrrrr.cccccr.bщ04490449щ0449щ(rrrrrr.rcccrr):void\");\n }",
"protected int getDataCE32(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.getDataCE32(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.getDataCE32(int):int\");\n }",
"public interface C0764b {\n}",
"void mo88524c();",
"private USI_ADRC(boolean ignored) {\n \t\tsuper(opId);\n \t}",
"public abstract long mo9229aD();",
"public interface C11910c {\n}",
"Integer getChnlCde();",
"private String m16127b(String str) {\n BufferedReader bufferedReader;\n BufferedReader bufferedReader2 = null;\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(Runtime.getRuntime().exec(\"getprop \" + str).getInputStream()), OguryChoiceManager.TcfV2.Purpose.DEVELOP_AND_IMPROVE_PRODUCTS);\n try {\n String readLine = bufferedReader.readLine();\n bufferedReader.close();\n C4647b.m16104a((Closeable) bufferedReader);\n return readLine;\n } catch (IOException unused) {\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th) {\n th = th;\n bufferedReader2 = bufferedReader;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n } catch (IOException unused2) {\n bufferedReader = null;\n C4647b.m16104a((Closeable) bufferedReader);\n return null;\n } catch (Throwable th2) {\n th = th2;\n C4647b.m16104a((Closeable) bufferedReader2);\n throw th;\n }\n }",
"private USI_TRLT() {}",
"static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }",
"private void kk12() {\n\n\t}",
"private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }",
"private void parse(sun.security.util.DerValue r1) throws java.security.cert.CRLException, java.io.IOException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f0 in method: sun.security.x509.X509CRLEntryImpl.parse(sun.security.util.DerValue):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: sun.security.x509.X509CRLEntryImpl.parse(sun.security.util.DerValue):void\");\n }",
"protected boolean func_70814_o() { return true; }",
"public abstract void mo6549b();",
"void mo5290b(C5102c c5102c);",
"public int getCR()\r\n/* 39: */ {\r\n/* 40: 39 */ return this.CR;\r\n/* 41: */ }",
"public abstract java.lang.String getIdpc();",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo115190b() {\n }",
"void mo5289a(C5102c c5102c);",
"void mo72114c();",
"public abstract int mo9753r();",
"public abstract String mo41079d();",
"public abstract void mo27385c();",
"protected int copyFromBaseCE32(int r1, int r2, boolean r3) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.copyFromBaseCE32(int, int, boolean):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.copyFromBaseCE32(int, int, boolean):int\");\n }",
"private static int zzaz(java.lang.String r5) {\n /*\n int r0 = r5.hashCode()\n r1 = 0\n r2 = 3\n r3 = 2\n r4 = 1\n switch(r0) {\n case -1095064472: goto L_0x002a;\n case 187078296: goto L_0x0020;\n case 1504578661: goto L_0x0016;\n case 1505942594: goto L_0x000c;\n default: goto L_0x000b;\n }\n L_0x000b:\n goto L_0x0034\n L_0x000c:\n java.lang.String r0 = \"audio/vnd.dts.hd\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 3\n goto L_0x0035\n L_0x0016:\n java.lang.String r0 = \"audio/eac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 1\n goto L_0x0035\n L_0x0020:\n java.lang.String r0 = \"audio/ac3\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 0\n goto L_0x0035\n L_0x002a:\n java.lang.String r0 = \"audio/vnd.dts\"\n boolean r5 = r5.equals(r0)\n if (r5 == 0) goto L_0x0034\n r5 = 2\n goto L_0x0035\n L_0x0034:\n r5 = -1\n L_0x0035:\n if (r5 == 0) goto L_0x0045\n if (r5 == r4) goto L_0x0043\n if (r5 == r3) goto L_0x0041\n if (r5 == r2) goto L_0x003e\n return r1\n L_0x003e:\n r5 = 8\n return r5\n L_0x0041:\n r5 = 7\n return r5\n L_0x0043:\n r5 = 6\n return r5\n L_0x0045:\n r5 = 5\n return r5\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzio.zzaz(java.lang.String):int\");\n }",
"@Override\r\n\tpublic int getcc() {\n\t\treturn 120;\r\n\t}",
"public interface C27131Gp {\n void BDE(C26391Dc r1);\n}",
"int getRmsCyc();",
"public abstract void mo70713b();",
"public interface C0136c {\n }",
"void mo4873a(C4718l c4718l);",
"static void dcr_reg(String passed){\n\t\tint val = hexa_to_deci(registers.get(passed.charAt(4)));\n\t\tval--;\n\t\tregisters.put(passed.charAt(4), decimel_to_hexa_8bit(val));\n\t\tmodify_status(registers.get(passed.charAt(4)));\n\t}",
"@Override\n public void iCGDer(int icgAbsDer, int timestamp) {\n }",
"@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testCRE_D() {\n CuteNetlibCase.doTest(\"CRE-D.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }",
"C4945r5 mo19056B();",
"private C3P0Helper() { }",
"public abstract String mo118046b();",
"private NetSqlca parseSQLDCGRP() {\n\n int sqldcCode = readFdocaInt(); // SQLCODE\n String sqldcState = readFdocaString(5,\n Typdef.targetTypdef.getCcsidSbcEncoding()); // SQLSTATE\n int sqldcReason = readFdocaInt(); // REASON_CODE\n\n skipFdocaBytes(12); // LINE_NUMBER + ROW_NUMBER\n\n NetSqlca sqlca = new NetSqlca(//netAgent_.netConnection_,\n sqldcCode,\n sqldcState,\n (byte[]) null);\n\n skipFdocaBytes(49); // SQLDCER01-04 + SQLDCPART + SQLDCPPOP + SQLDCMSGID\n // SQLDCMDE + SQLDCPMOD + RDBNAME\n parseSQLDCTOKS(); // MESSAGE_TOKENS\n\n String sqldcMsg = parseVCS(qrydscTypdef_); // MESSAGE_TEXT\n\n if (sqldcMsg != null) {\n sqlca.setSqlerrmcBytes(sqldcMsg.getBytes());\n }\n\n skipFdocaBytes(12); // COLUMN_NAME + PARAMETER_NAME + EXTENDED_NAMES\n\n parseSQLDCXGRP(); // SQLDCXGRP\n return sqlca;\n }",
"void mo17012c();",
"C1458cs mo7613iS();",
"public void mo1403c() {\n }",
"private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }",
"void mo21070b();",
"protected void mo6255a() {\n }",
"void mo57277b();",
"public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }",
"static void dcr_mem(String passed){\n\t\tint val = hexa_to_deci(memory.get(memory_address_hl()));\n\t\tval--;\n\t\tmemory.put(memory_address_hl(), decimel_to_hexa_8bit(val));\n\t\tmodify_status(memory.get(memory_address_hl()));\n\t}",
"interface C2578d {\n}",
"void mo12638c();",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}",
"public abstract long mo13681c();",
"private void m50366E() {\n }",
"C3676k mo12649b();",
"int getMcc();",
"int getMcc();",
"private static java.lang.String getFcFromRuim(byte r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.getFcFromRuim(byte):java.lang.String, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.uicc.SsIccFileFetcher.getFcFromRuim(byte):java.lang.String\");\n }",
"boolean mo54431c();",
"public final void mo91715d() {\n }",
"public Channel method_4121() {\n return null;\n }"
] | [
"0.60595846",
"0.5870751",
"0.56965524",
"0.5665452",
"0.5642538",
"0.559198",
"0.55419874",
"0.5507504",
"0.5471501",
"0.54613227",
"0.5459305",
"0.54589576",
"0.5448807",
"0.54396313",
"0.54298526",
"0.5396819",
"0.539624",
"0.5390525",
"0.53802425",
"0.53676575",
"0.5358602",
"0.53544915",
"0.53541845",
"0.53530407",
"0.53265226",
"0.5326094",
"0.53125054",
"0.53113836",
"0.5310215",
"0.5304649",
"0.5299575",
"0.5292575",
"0.5287008",
"0.5275944",
"0.52693504",
"0.52656054",
"0.52598286",
"0.52501786",
"0.5249635",
"0.524732",
"0.5241741",
"0.5240625",
"0.5232281",
"0.5230751",
"0.5223329",
"0.52185345",
"0.52160317",
"0.5216029",
"0.52113426",
"0.5210573",
"0.52099",
"0.520365",
"0.52002835",
"0.51984245",
"0.51969993",
"0.51950574",
"0.5192877",
"0.51887727",
"0.5183206",
"0.51805276",
"0.51764077",
"0.5173604",
"0.51725215",
"0.51705664",
"0.51629966",
"0.5162591",
"0.51624155",
"0.51623726",
"0.5158516",
"0.5151649",
"0.5147843",
"0.5147067",
"0.5146411",
"0.5145304",
"0.5142873",
"0.5142481",
"0.5137174",
"0.5136542",
"0.5135705",
"0.5134495",
"0.5125392",
"0.51223403",
"0.5120054",
"0.51191205",
"0.51188046",
"0.5116616",
"0.51158965",
"0.51119274",
"0.51118344",
"0.5108078",
"0.51078826",
"0.51078826",
"0.5103389",
"0.51013786",
"0.5101305",
"0.5098475",
"0.5098475",
"0.5097466",
"0.509509",
"0.5086478",
"0.50834984"
] | 0.0 | -1 |
/ COP0 (SYSTEM) EXECUTION HANDLING | static UINT32 update_cycle_counting(void)
{
UINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;
UINT32 compare = mips3.cpr[0][COP0_Compare];
UINT32 cyclesleft = compare - count;
double newtime;
//printf("Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\n", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));
/* modify the timer to go off */
newtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());
if (SR & 0x8000)
timer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);
else
timer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);
return count;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void exec();",
"abstract void exec();",
"static int onShellCommand(Shell shell, String cmd) {\n char c;\n List<AppOpsManager.PackageOps> ops;\n if (cmd == null) {\n return shell.handleDefaultCommands(cmd);\n }\n PrintWriter pw = shell.getOutPrintWriter();\n PrintWriter err = shell.getErrPrintWriter();\n try {\n int i = 0;\n switch (cmd.hashCode()) {\n case -1703718319:\n if (cmd.equals(\"write-settings\")) {\n c = 4;\n break;\n }\n c = 65535;\n break;\n case -1166702330:\n if (cmd.equals(\"query-op\")) {\n c = 2;\n break;\n }\n c = 65535;\n break;\n case 102230:\n if (cmd.equals(\"get\")) {\n c = 1;\n break;\n }\n c = 65535;\n break;\n case 113762:\n if (cmd.equals(\"set\")) {\n c = 0;\n break;\n }\n c = 65535;\n break;\n case 3540994:\n if (cmd.equals(\"stop\")) {\n c = 7;\n break;\n }\n c = 65535;\n break;\n case 108404047:\n if (cmd.equals(\"reset\")) {\n c = 3;\n break;\n }\n c = 65535;\n break;\n case 109757538:\n if (cmd.equals(\"start\")) {\n c = 6;\n break;\n }\n c = 65535;\n break;\n case 2085703290:\n if (cmd.equals(\"read-settings\")) {\n c = 5;\n break;\n }\n c = 65535;\n break;\n default:\n c = 65535;\n break;\n }\n switch (c) {\n case 0:\n int res = shell.parseUserPackageOp(true, err);\n if (res < 0) {\n return res;\n }\n String modeStr = shell.getNextArg();\n if (modeStr == null) {\n err.println(\"Error: Mode not specified.\");\n return -1;\n }\n int mode = Shell.strModeToMode(modeStr, err);\n if (mode < 0) {\n return -1;\n }\n if (!shell.targetsUid && shell.packageName != null) {\n shell.mInterface.setMode(shell.op, shell.packageUid, shell.packageName, mode);\n return 0;\n } else if (!shell.targetsUid || shell.packageName == null) {\n shell.mInterface.setUidMode(shell.op, shell.nonpackageUid, mode);\n return 0;\n } else {\n try {\n shell.mInterface.setUidMode(shell.op, shell.mInternal.mContext.getPackageManager().getPackageUid(shell.packageName, shell.userId), mode);\n return 0;\n } catch (PackageManager.NameNotFoundException e) {\n return -1;\n }\n }\n case 1:\n int res2 = shell.parseUserPackageOp(false, err);\n if (res2 < 0) {\n return res2;\n }\n List<AppOpsManager.PackageOps> ops2 = new ArrayList<>();\n int[] iArr = null;\n if (shell.packageName != null) {\n List<AppOpsManager.PackageOps> r = shell.mInterface.getUidOps(shell.packageUid, shell.op != -1 ? new int[]{shell.op} : null);\n if (r != null) {\n ops2.addAll(r);\n }\n IAppOpsService iAppOpsService = shell.mInterface;\n int i2 = shell.packageUid;\n String str = shell.packageName;\n if (shell.op != -1) {\n iArr = new int[]{shell.op};\n }\n List<AppOpsManager.PackageOps> r2 = iAppOpsService.getOpsForPackage(i2, str, iArr);\n if (r2 != null) {\n ops2.addAll(r2);\n }\n } else {\n IAppOpsService iAppOpsService2 = shell.mInterface;\n int i3 = shell.nonpackageUid;\n if (shell.op != -1) {\n iArr = new int[]{shell.op};\n }\n ops2 = iAppOpsService2.getUidOps(i3, iArr);\n }\n if (ops2 != null) {\n if (ops2.size() > 0) {\n long now = System.currentTimeMillis();\n int i4 = 0;\n while (i4 < ops2.size()) {\n AppOpsManager.PackageOps packageOps = ops2.get(i4);\n if (packageOps.getPackageName() == null) {\n pw.print(\"Uid mode: \");\n }\n List<AppOpsManager.OpEntry> entries = packageOps.getOps();\n int j = i;\n while (j < entries.size()) {\n AppOpsManager.OpEntry ent = entries.get(j);\n pw.print(AppOpsManager.opToName(ent.getOp()));\n pw.print(\": \");\n pw.print(AppOpsManager.modeToName(ent.getMode()));\n if (ent.getTime() != 0) {\n pw.print(\"; time=\");\n ops = ops2;\n TimeUtils.formatDuration(now - ent.getTime(), pw);\n pw.print(\" ago\");\n } else {\n ops = ops2;\n }\n if (ent.getRejectTime() != 0) {\n pw.print(\"; rejectTime=\");\n TimeUtils.formatDuration(now - ent.getRejectTime(), pw);\n pw.print(\" ago\");\n }\n if (ent.getDuration() == -1) {\n pw.print(\" (running)\");\n } else if (ent.getDuration() != 0) {\n pw.print(\"; duration=\");\n TimeUtils.formatDuration(ent.getDuration(), pw);\n }\n pw.println();\n j++;\n ops2 = ops;\n }\n i4++;\n i = 0;\n }\n return 0;\n }\n }\n pw.println(\"No operations.\");\n if (shell.op <= -1 || shell.op >= 91) {\n return 0;\n }\n pw.println(\"Default mode: \" + AppOpsManager.modeToName(AppOpsManager.opToDefaultMode(shell.op)));\n return 0;\n case 2:\n int res3 = shell.parseUserOpMode(1, err);\n if (res3 < 0) {\n return res3;\n }\n List<AppOpsManager.PackageOps> ops3 = shell.mInterface.getPackagesForOps(new int[]{shell.op});\n if (ops3 == null || ops3.size() <= 0) {\n pw.println(\"No operations.\");\n return 0;\n }\n for (int i5 = 0; i5 < ops3.size(); i5++) {\n AppOpsManager.PackageOps pkg = ops3.get(i5);\n boolean hasMatch = false;\n List<AppOpsManager.OpEntry> entries2 = ops3.get(i5).getOps();\n int j2 = 0;\n while (true) {\n if (j2 < entries2.size()) {\n AppOpsManager.OpEntry ent2 = entries2.get(j2);\n if (ent2.getOp() == shell.op && ent2.getMode() == shell.mode) {\n hasMatch = true;\n } else {\n j2++;\n }\n }\n }\n if (hasMatch) {\n pw.println(pkg.getPackageName());\n }\n }\n return 0;\n case 3:\n String packageName = null;\n int userId = -2;\n while (true) {\n String argument = shell.getNextArg();\n if (argument == null) {\n if (userId == -2) {\n userId = ActivityManager.getCurrentUser();\n }\n shell.mInterface.resetAllModes(userId, packageName);\n pw.print(\"Reset all modes for: \");\n if (userId == -1) {\n pw.print(\"all users\");\n } else {\n pw.print(\"user \");\n pw.print(userId);\n }\n pw.print(\", \");\n if (packageName == null) {\n pw.println(\"all packages\");\n } else {\n pw.print(\"package \");\n pw.println(packageName);\n }\n return 0;\n } else if (\"--user\".equals(argument)) {\n userId = UserHandle.parseUserArg(shell.getNextArgRequired());\n } else if (packageName == null) {\n packageName = argument;\n } else {\n err.println(\"Error: Unsupported argument: \" + argument);\n return -1;\n }\n }\n case 4:\n shell.mInternal.enforceManageAppOpsModes(Binder.getCallingPid(), Binder.getCallingUid(), -1);\n long token = Binder.clearCallingIdentity();\n try {\n synchronized (shell.mInternal) {\n shell.mInternal.mHandler.removeCallbacks(shell.mInternal.mWriteRunner);\n }\n shell.mInternal.writeState();\n pw.println(\"Current settings written.\");\n return 0;\n } finally {\n Binder.restoreCallingIdentity(token);\n }\n case 5:\n shell.mInternal.enforceManageAppOpsModes(Binder.getCallingPid(), Binder.getCallingUid(), -1);\n long token2 = Binder.clearCallingIdentity();\n try {\n shell.mInternal.readState();\n pw.println(\"Last settings read.\");\n return 0;\n } finally {\n Binder.restoreCallingIdentity(token2);\n }\n case 6:\n int res4 = shell.parseUserPackageOp(true, err);\n if (res4 < 0) {\n return res4;\n }\n if (shell.packageName == null) {\n return -1;\n }\n shell.mInterface.startOperation(shell.mToken, shell.op, shell.packageUid, shell.packageName, true);\n return 0;\n case 7:\n int res5 = shell.parseUserPackageOp(true, err);\n if (res5 < 0) {\n return res5;\n }\n if (shell.packageName == null) {\n return -1;\n }\n shell.mInterface.finishOperation(shell.mToken, shell.op, shell.packageUid, shell.packageName);\n return 0;\n default:\n return shell.handleDefaultCommands(cmd);\n }\n } catch (RemoteException e2) {\n pw.println(\"Remote exception: \" + e2);\n return -1;\n }\n }",
"public abstract String initExecute() throws Exception;",
"private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }",
"private static int localExec(String hostname, String codeFile,\n\t\t\tString classname, String rport, POPAccessPoint jobserv,\n\t\t\tPOPAccessPoint appserv, POPAccessPoint objaccess,\n\t\t\tObjectDescription od) {\n\t\t\n\t\tboolean isLocal = Util.isLocal(hostname);\n\t\t/*if (!isLocal) {\n\t\t\treturn -1;\n\t\t}*/\n\t\tif (codeFile == null || codeFile.length() == 0){\n\t\t\treturn -1;\n\t\t}\n\t\tcodeFile = codeFile.trim();\n\n\t\tArrayList<String> argvList = new ArrayList<String>();\n\n\t\tArrayList<String> codeList = Util.splitTheCommand(codeFile);\n\t\targvList.addAll(codeList);\n\t\t\n\t\t/*if(od.getMemoryMin() > 0){\n\t\t\targvList.add(1, \"-Xms\"+od.getMemoryMin()+\"m\");\n\t\t}\n\t\tif(od.getMemoryReq() > 0){\n\t\t\targvList.add(1, \"-Xmx\"+od.getMemoryReq()+\"m\");\n\t\t}*/\n\t\t\n\t\tif(codeFile.startsWith(\"java\") && Configuration.ACTIVATE_JMX){\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.port=\"+(int)(Math.random() * 1000+3000));\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.ssl=false\");\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.authenticate=false\");\n\t\t}\n\t\t\n\t\tif(od.getJVMParameters() != null && !od.getJVMParameters().isEmpty()){\n\t\t\tString [] jvmParameters = od.getJVMParameters().split(\" \");\n\t\t\tfor(String parameter: jvmParameters){\n\t\t\t\targvList.add(1, parameter);\n\t\t\t}\n\t\t}\n\t\t\n\t\tComboxAllocateSocket allocateCombox = new ComboxAllocateSocket();\n\t\tString callbackString = String.format(Broker.CALLBACK_PREFIX+\"%s\", allocateCombox.getUrl());\n\t\targvList.add(callbackString);\n\t\tif (classname != null && classname.length() > 0) {\n\t\t\tString objectString = String.format(Broker.OBJECT_NAME_PREFIX+\"%s\", classname);\n\t\t\targvList.add(objectString);\n\t\t}\n\t\tif (appserv != null && !appserv.isEmpty()) {\n\t\t\tString appString = String.format(Broker.APPSERVICE_PREFIX+\"%s\", appserv.toString());\n\t\t\targvList.add(appString);\n\t\t}\n\t\tif (jobserv != null && !jobserv.isEmpty()) {\n\t\t\tString jobString = String.format(\"-jobservice=%s\", jobserv.toString());\n\t\t\targvList.add(jobString);\n\t\t}\n\n\t\tif (rport != null && rport.length() > 0) {\n\t\t\tString portString = String.format(\"-socket_port=%s\", rport);\n\t\t\targvList.add(portString);\n\t\t}\n\t\t\n\t\tint ret = -1;\n\t\t\n\t\t//Allow local objects to be declared as remote to test remote object creation locally\n\t\tif(hostname.equals(POPObjectDescription.LOCAL_DEBUG_URL)){\n\t\t\thostname = \"localhost\";\n\t\t}\n\t\t\n\t\tif(isLocal){\n\t\t\tret = SystemUtil.runCmd(argvList);\n\t\t}else{\n\t\t\tswitch(od.getConnectionType()){\n\t\t\tcase ANY:\n\t\t\tcase SSH:\n\t\t\t\tret = SystemUtil.runRemoteCmd(hostname, argvList);\n\t\t\t\tbreak;\n\t\t\tcase DEAMON:\n\t\t\t\tPOPJavaDeamonConnector connector;\n\t\t\t\ttry {\n\t\t\t\t\tconnector = new POPJavaDeamonConnector(hostname);\n\t\t\t\t\tif(connector.sendCommand(od.getConnectionSecret(), argvList)){\n\t\t\t\t\t\tret = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (ret == -1) {\n\t\t\treturn ret;\n\t\t}\n\t\t\n\t\tallocateCombox.startToAcceptOneConnection();\n\t\t\n\t\tif(!allocateCombox.isComboxConnected()){\n\t\t\tLogWriter.writeDebugInfo(\"Could not connect broker\");\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tBufferXDR buffer = new BufferXDR();\n\t\tint result = 0;\n\n\t\tif (allocateCombox.receive(buffer) > 0) {\n\t\t\tint status = buffer.getInt();\n\t\t\tString str = buffer.getString();\n\t\t\t\n\t\t\tif (status == 0){\n\t\t\t\tobjaccess.setAccessString(str);\n\t\t\t}else{\n\t\t\t\tresult = status;\n\t\t\t}\n\t\t} else {\n\t\t\tresult = -1;\n\t\t}\n\n\t\tallocateCombox.close();\n\t\t\n\t\treturn result;\n\t}",
"private int handleExec(int file, int argc, int argv){\n\t\tSystem.out.print(\"EXECUTING...\");\n\n\t\tif(argc < 1) return INVALID;\n\n\t\tString filename = readVirtualMemoryString(file, MAXSTRLEN);\n\n\t\tif(filename == null || !filename.endsWith(\".coff\")) return INVALID;\n\n\t\tString[] args = new String[argc];\n\n\t\tfor(int i=0; i<argc; i++){\n\t\t\tbyte[] buffer = new byte[4];\n\t\t\tif(readVirtualMemory(argv + i * 4, buffer) != 4)return INVALID;\n\t\t\tif((args[i] = readVirtualMemoryString(Lib.bytesToInt(buffer, 0), MAXSTRLEN)) == null) return INVALID;\n\t\t}\n\n\t\tSystem.out.println(\"Read arguments creating Child... XD\");\n\n\t\t//This is so we can use a child class process like new Process\n\t\tUserProcess child = UserProcess.newUserProcess();\n\t\tSystem.out.println(\"mpid: \"+ processId);\n\t\tSystem.out.println(\"cpid: \"+ child.processId);\n\n\t\tif(child.execute(filename, args)){\n\t\t\tchildProcesses.put(child.processId,child);\n\t\t\tchild.parentProcess = this;\n\t\t\treturn child.processId;\n\t\t}\n\n\t\treturn INVALID;\n\t}",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"protected boolean onExecute(String command, long hconv)\n {\n return onExecute(command);\n }",
"private int exec(UnixRuntime r, String[] argv, String[] envp) {\n for(int i=0;i<OPEN_MAX;i++) if(closeOnExec[i]) closeFD(i);\n r.fds = fds;\n r.closeOnExec = closeOnExec;\n // make sure this doesn't get messed with these since we didn't copy them\n fds = null;\n closeOnExec = null;\n \n r.gs = gs;\n r.sm = sm;\n r.cwd = cwd;\n r.pid = pid;\n r.parent = parent;\n r.start(argv,envp);\n \n state = EXECED;\n execedRuntime = r;\n \n return 0; \n }",
"protected void execute() {\n\t\t//execution handled by pid thread\n\t}",
"public void execute(){\n\t\t\n\t}",
"protected void execute() {\n\t\t\n\t}",
"public void exec(OxProgram pgm) {\n }",
"@Override\n\tprotected Output<Param<?>> executeInternal(Input input) {\n\t\tExecutionContext eCtx = handleNewDomainRoot(input.getContext());\n\t\n\t\tParam<Object> actionParam = findParamByCommandOrThrowEx(eCtx);\n\t\t\n\t\tfinal Param<?> outputParam;\n\t\tif(containsFunctionHandler(input)) {\n\t\t\toutputParam = executeFunctionHanlder(input, FunctionHandler.class);\n\t\t} else { \n\t\t\tsetStateNew(eCtx, input.getContext().getCommandMessage(), actionParam);\n\t\t\toutputParam = actionParam;\n\t\t}\n\t\treturn Output.instantiate(input, eCtx, outputParam);\n\t}",
"protected void mainTask() {\n\t logger.log(1, CLASS, \"-\", \"impl\",\n\t\t \"About to read command\");\n\t try { \n\t\tcommand = (COMMAND)connection.receive();\n\t\tlogger.log(1,CLASS, \"-\", \"impl\",\n\t\t\t \"Received command: \"+(command == null ? \"no-command\" : command.getClass().getName()));\n\t } catch (IOException e) {\n\t\tinitError(\"I/O error while reading command:[\"+e+\"]\",command);\n\t\treturn;\n\t } catch (ClassCastException ce) {\n\t\tinitError(\"Garbled command:[\"+ce+\"]\", command);\n\t\treturn;\n\t } \n\t \n\t // 2. Create a handler.\n\t if (command == null) {\n\t\tinitError(\"No command set\", null);\n\t\treturn;\n\t }\n\n\t if (handlerFactory != null) {\n\t\thandler = handlerFactory.createHandler(connection, command);\n\t\tif (handler == null) {\n\t\t initError(\"Unable to process command [\"+command.getClass().getName()+\"]: No known handler\", command);\n\t\t return;\n\t\t}\n\t \n\t\t// 3. Handle the request - handler may send multiple updates to client over long period\n\t\thandler.handleRequest();\n\t }\t \n\t}",
"public void Execute() {\n\n }",
"void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}",
"public native int execute(String name);",
"public void execute() {\n\t\t\n\t}",
"protected abstract void actionExecuted(SUT system, State state, Action action);",
"protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);",
"public abstract int execute();",
"void execSetupContext(ExecProcess ctx);",
"ProgramState execute(ProgramState state) ;",
"public interface ExecCom {\n public void sendWarningRollbackAborted(String msg);\n\n public void sendErrorRollbackFail(String msg);\n\n public void sendMsg(String msg);\n\n public boolean isForce();\n }",
"public void execute() {\n execute0();\n }",
"public interface COPSPdpOSDataProcess extends COPSDataProcess {\r\n\r\n /**\r\n * Gets the policies to be uninstalled\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getRemovePolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Gets the policies to be installed\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getInstallPolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Makes a decision from the supplied request data\r\n * @param man The associated request state manager\r\n * @param reqSIs Client specific data suppplied in the COPS request\r\n */\r\n public void setClientData(COPSPdpOSReqStateMan man, List<COPSClientSI> reqSIs);\r\n\r\n /**\r\n * Builds a failure report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void failReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds a success report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void successReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds an accounting report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void acctReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Notifies that no accounting report has been received\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoAcctReport (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies a keep-alive timeout\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that the connection has been closed\r\n * @param man The associated request state manager\r\n * @param error Reason\r\n */\r\n public void notifyClosedConnection (COPSPdpOSReqStateMan man, COPSError error);\r\n\r\n /**\r\n * Notifies that a request state has been deleted\r\n * @param man The associated request state manager\r\n */\r\n public void notifyDeleteRequestState (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that a request state has been closed\r\n * @param man The associated request state manager\r\n */\r\n public void closeRequestState(COPSPdpOSReqStateMan man);\r\n\r\n}",
"private void executeCommand(String c) {\n // split command and arguments\n int index = c.indexOf(' ');\n String command = ((index == -1) ? c.toUpperCase() : (c.substring(0, index)).toUpperCase());\n String args = ((index == -1) ? null : c.substring(index + 1));\n\n debugOutput(\"Command: \" + command + \" Args: \" + args);\n\n // dispatcher mechanism for different commands\n switch (command) {\n case \"USER\":\n handleUser(args);\n break;\n\n case \"PASS\":\n handlePass(args);\n break;\n\n case \"CWD\":\n handleCwd(args);\n break;\n\n case \"LIST\":\n handleNlst(args);\n break;\n\n case \"NLST\":\n handleNlst(args);\n break;\n\n case \"PWD\":\n case \"XPWD\":\n handlePwd();\n break;\n\n case \"QUIT\":\n handleQuit();\n break;\n\n case \"PASV\":\n handlePasv();\n break;\n\n case \"EPSV\":\n handleEpsv();\n break;\n\n case \"SYST\":\n handleSyst();\n break;\n\n case \"FEAT\":\n handleFeat();\n break;\n\n case \"PORT\":\n handlePort(args);\n break;\n\n case \"EPRT\":\n handleEPort(args);\n break;\n\n case \"RETR\":\n handleRetr(args);\n break;\n\n case \"MKD\":\n case \"XMKD\":\n handleMkd(args);\n break;\n\n case \"RMD\":\n case \"XRMD\":\n handleRmd(args);\n break;\n\n case \"TYPE\":\n handleType(args);\n break;\n\n case \"STOR\":\n handleStor(args);\n break;\n\n default:\n sendMsgToClient(\"501 Unknown command\");\n break;\n\n }\n\n }",
"public RunProcDefJob() {\n\t}",
"private String exec(String cmd, File ws, String errorMessage) throws IOException, ProcessingException {\n listener.info(\"Executing: \"+cmd);\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n int r = new Proc(cmd, null, baos, ws).join();\n if(r!=0) {\n listener.info(baos.toString());\n throw new ProcessingException(errorMessage);\n }\n return baos.toString();\n }",
"public int execute();",
"public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}",
"protected void execute() {}",
"void execute(Executable executable);",
"@Override\n\tpublic int execute(String args) {\n\t\treturn 0;\n\t}",
"public void startExecuting() {}",
"public int actions()\n {\n switch (mState) \n {\n case cProcessInit:\n out();\n if (cSimTimeMicro < cClientCount/cClientTransPerMicro) {\n cSimTimeMicro = cClientCount/cClientTransPerMicro;\n System.out.println(\"\\nSimulation time is too short! It has been reset to \" + cSimTimeMicro + \" micro\\n\");\n }\n cMaxRequestsToSend = (int) (cClientTransPerMicro * cSimTimeMicro);\n System.out.println(\"cMaxRequestsToSend = \" + cMaxRequestsToSend);\n \n if (cTransLogMon)\n {\n System.out.println(cTransMonHeader);\n System.out.println(\"----------------------------------------------------------------------------------------\");\n }\n\n// if (cTick)\n// {\n// activate(new Tick());\n// }\n activate(mTaxJvm);\n return cMeJvm;\n \n case cMeJvm:\n activate(mMeJvm);\n return cMeStandbyJvm;\n\n case cMeStandbyJvm:\n activate(mMeStandbyJvm);\n return cJvmActivated;\n\n case cJvmActivated:\n mClientList = headToArray(mClient.mProcess, new Process[0]);\n \n //double tInterval = 500/tClientList.length; //500 is the minimum response time\n //double tInterval = 1.0/(cClientCount*cClientTransPerMicro); \n \n double tInterval = 1.0D*1000*1000/(cClientCount); //evenly distributed client over 1 second interval\n \n //hold until connect next client to the system \n mHoldTimeBetweenClients = cRandom.normal(tInterval, tInterval*0.3);\n mFor_i = -1;\n // Flow into loop\n\n case cForNext:\n ++mFor_i;\n //for (int i = 0; i < tClientList.length; ++i) //For every client\n if (mFor_i >= mClientList.length)\n {\n return cForEnd;\n }\n\n tClientStartTime = time();\n activate((Process) mClientList[mFor_i]); \n return cNewClient;\n \n case cNewClient:\n hold(mHoldTimeBetweenClients);\n return cForNext;\n\n case cForEnd:\n //hold(cRunTimeMicro);\n //return cHoldRunTimeMicro;\n\n case cHoldRunTimeMicro:\n cActualRunTimeMicro = cSimTimeMicro * 2;\n hold(cActualRunTimeMicro);\n return cHoldRunTime;\n \n case cHoldRunTime:\n if (cTick)\n {\n System.out.println(\"\\nSimulation time = \" + time()/(1000.0*1000.0) + \" sec.\");\n System.out.println(\"Requests = \" + cRequests);\n System.out.println(\"cRequestsToSend = \" + cMaxRequestsToSend);\n System.out.println(\"Av.tax time = \" + cTaxSum/cRequests);\n System.out.println(\"Av.client time = \" + cClientSum/cRequests);\n System.out.println(\"\\nExecution time: \" + ((System.currentTimeMillis() - cStartTime)/1000.0) + \" secs.\"); \n }\n return cProcessDone;\n }\n return cProcessError;\n }",
"void exec(Env e, AST[] args) { throw H2O.unimpl(\"No exec method for `\" + this.opStr() + \"` during `apply` call\"); }",
"public Object run() {\n \n try {\n try {\n \n String targetArch=JNITargetArch.getTargetArch();\n // System.out.println(\"TargetArch: \"+targetArch);\n JCALibrary jca=JCALibrary.getInstance();\n \n \n String libPath=jca.getProperty( \"gov.aps.jca.jni.epics.\"+targetArch+\n \".library.path\", \"\" );\n loadLibrary( libPath, \"Com\" );\n loadLibrary( libPath, \"ca\" );\n \n File caRepeaterPath=new File( jca.getProperty(\n \"gov.aps.jca.jni.epics.\"+targetArch+\".caRepeater.path\", \"\" ) );\n try {\n String caRepeater=\"caRepeater\";\n if( caRepeaterPath.exists() ) {\n caRepeater= ( new File( caRepeaterPath, \"caRepeater\" ) ).\n getAbsolutePath();\n \n }\n Runtime.getRuntime().exec( caRepeater );\n } catch( java.io.IOException ex ) {\n Runtime.getRuntime().exec( \"caRepeater\" );\n }\n } catch( Throwable ex2 ) {\n // System.out.println(ex2);\n }\n // System.out.println(\"Loading jca2\");\n System.loadLibrary( \"jca\" );\n \n return null; // nothing to return\n } catch( Exception ex1 ) {\n // System.out.println(ex1);\n return ex1;\n }\n }",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"public int handleSyscall(int syscall, int a0, int a1, int a2, int a3) {\n\tswitch (syscall) {\n\tcase syscallHalt :\n\t\treturn handleHalt();\n\tcase syscallExit :\n\t\t return handleExit(a0);\n\t\t//collect status us child using join//maybe it does it on its own.\n\t\t//if not, make a variable to hold them\n\t\t//syscall = 3;\n\t\t//return exitStatus;\n\tcase syscallExec :\n\t\treturn handleExec(a0,a1,a2);\n\tcase syscallJoin :\n\t\treturn handleJoin(a0,a1);\n\tcase syscallCreate :\n\t\treturn handleCreate(a0);\n\tcase syscallOpen :\n\t\treturn handleOpen(a0);\n\tcase syscallRead :\n\t\treturn handleRead(a0,a1,a2);\n\tcase syscallWrite :\n\t\treturn handleWrite(a0,a1,a2);\n\tcase syscallClose :\n\t\treturn handleClose(a0);\n\tcase syscallUnlink :\n\t\tif(a0 < 0) return -1;\n\t\tString name = readVirtualMemoryString(a0,MAXSTRLEN);\n\t\t//if the name is invalid return error\n\t\tif(name == null) return -1;\n\t\t//remove the file\n\t\treturn handleUnlink(name);\n\n\tdefault:\n\t Lib.debug(dbgProcess, \"Unknown syscall \" + syscall);\n\t Lib.assertNotReached(\"Unknown system call!\");\n\t}\n\treturn 0;\n }",
"public void execute() {\r\n\t\r\n\t}",
"@Override\n\tprotected void run() {\n\t\tUtils.executeAndWaitForCommand(this.getHMetisExec());\n\t}",
"protected int execute(String command) {\n\t\treturn 0; //TODO let shell execute this\n\t}",
"private Response execute_work(Request request){\n if (request.getFname().equals(\"tellmenow\")){\n int returnValue = tellMeNow();\n }\n else if(request.getFname().equals(\"countPrimes\")){\n int returnValue = countPrimes(request.getArgs()[0]);\n }\n else if(request.getFname().equals(\"418Oracle\")){\n int returnValue = oracle418();\n }\n else{\n System.out.println(\"[Worker\"+String.valueOf(this.id)+\"] WARNING function name not recognized, dropping request\");\n }\n\n return new Response(id,request.getId(),request.getFname(),0);//0 meaning ok!\n }",
"private static Object command(String userCommandLine[]) {\n\t\tint size = userCommandLine.length;\n\n\t\tswitch(userCommandLine[0].trim().toUpperCase()) {\n\n\t\t/*\n\t\t * INFORMATION\n\t\t *\n\t\t * Add executecommand on each case\n\t\t * but if it dosn't yet implemented\n\t\t * comment the command allow to user\n\t\t * on the variable string[] commands\n\t\t *\n\t\t */\n\t\t\n\t\t/* ************************************\n\t\t * standard commands\n\t\t *************************************/\n\t\tcase \"QUIT\": return ExecuteCommand.exit();\n\t\tcase \"EXIT\": return ExecuteCommand.exit();\n\t\tcase \"HELP\": help( (size > 1) ? userCommandLine[1].trim() : \"\"); break;\n\t\tcase \"VAR\": ExecuteCommand.showVar(); break;\n\t\tcase \"DEL\" : ExecuteCommand.delVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"RENAME\": ExecuteCommand.renameVar(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\tcase \"STARTSPARK\": ExecuteCommand.startSpark(); break;\n\t\tcase \"STOPSPARK\": ExecuteCommand.stopSpark(); break;\n\t\t\n\t\t/* ************************************\n\t\t * database\n\t\t *************************************/ \n\t\t\n\t\t/* open database(name: String, filesystem: FileSystem, conf: Config) */\n\t\tcase \"OPEN\" : ExecuteCommand.openDB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* close database */\n\t\tcase \"CLOSE\" : ExecuteCommand.closeDB(); break;\n\t\t/* restart database */\n\t\tcase \"RESTART\" : ExecuteCommand.restartDB(); break;\n\t\t/* show list of TimeSeries */\n\t\tcase \"SHOW\" : ExecuteCommand.showTS(); break;\n\t\t/* drop a timeSeries */\n\t\tcase \"DROP\" : ExecuteCommand.dropTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* exist a timeSeries with name ... */\n\t\tcase \"EXIST\" : ExecuteCommand.existTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get a timeSeries */\n\t\tcase \"GET\" : ExecuteCommand.getTS(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* create a timeSeries */\n\t\tcase \"CREATE\" : ExecuteCommand.createTS2DB(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Time Series\n\t\t *************************************/\n\t\t\n\t\t/* create the timeSerie schema */\n\t\tcase \"CREATE_SCHEMA\" : ExecuteCommand.createSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* show the schema of the timeSerie */\n\t\tcase \"SHOW_SCHEMA\" : ExecuteCommand.showSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* get the schema of the timeSerie*/\n\t\tcase \"GET_SCHEMA\" : ExecuteCommand.getSchema(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* insert data at a certain file */\n\t\tcase \"INSERT\" : ExecuteCommand.insertDataFromFile(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* select timeSerie Range from timeStart to timeEnd */\n\t\tcase \"SELECT_RANGE\": break;\n\t\t/* select a column of a timeserie */\n\t\tcase \"SELECT\": ExecuteCommand.selectColumn(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find max value of timeSerie */\n\t\tcase \"MAX_VALUE\" : ExecuteCommand.maxValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* find min value of timeSerie */\n\t\tcase \"MIN_VALUE\" : ExecuteCommand.minValue(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* print first five values */\n\t\tcase \"PRINT\" : ExecuteCommand.printHead(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\t\t\n\t\t\n\t\t/* ************************************\n\t\t * Transformations\n\t\t *************************************/\n\t\t\n\t\t/* power transformation of timeSerie: square root */\n\t\tcase \"SQRT_TRANSFORM\" : break;\n\t\t/* power transformation of timeSerie: logarithm */\n\t\tcase \"LOG_TRANSFORM\" : break;\n\t\t/* average of timeSerie */\n\t\tcase \"MEAN\" : break;\n\t\t/* shifting timeSerie with coefficient */\n\t\tcase \"SHIFT\" : break;\n\t\t/* scaling timeSerie with coefficient */\n\t\tcase \"SCALE\" : break;\n\t\t/* standard deviation of timeSeries */\n\t\tcase \"STD_DEVIATION\" : break;\n\t\t/* normalize the TimeSerie */\n\t\tcase \"NORMALIZE\" : break;\n\t\t/* search the first time occurs */\n\t\tcase \"SEARCH\" : break;\n\t\t/* moving average */\n\t\tcase \"MOVING_AVERAGE\" : break;\n\t\t/* DFT of timeSerie */\n\t\tcase \"DFT\" : break;\n\t\t/* DTW of 2 timeSerie (similarity between two timeseries) */\n\t\tcase \"DTW\" : break;\n\t\t\n\t\t/* ************************************\n\t\t * Compression \n\t\t *************************************/\n\n\t\t/* compress a timeserie */\n\t\tcase \"COMPRESSION\" : ExecuteCommand.compression(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* decompress a timeserie */\n\t\tcase \"DECOMPRESSION\" : break;\n\n\t\t/* ************************************\n\t\t * indexing \n\t\t *************************************/\n\t\t\n\t\t/* create index for many ts */\n\t\tcase \"CREATE_INDEX\" : ExecuteCommand.createIndex(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t/* return neighbors of a ts from the create index */\n\t\tcase \"NEIGHBORS\" : break;\n\t\t/* ************************************\n\t\t * clustering \n\t\t *************************************/\n\t\t\n\t\t/* ************************************\n\t\t * Application \n\t\t *************************************/\n\t\tcase \"CREATE_DNA\" : break;\n\t\tcase \"DNA_SIMILARITY\" : ExecuteCommand.dnApplication(Arrays.copyOfRange(userCommandLine, 1, size)); break;\n\t\t\n\t\t\t\t\n\t\tdefault: System.out.println(\"oups it may have a code error\");\n\t\t}\n\n\t\treturn true;\n\t}",
"protected abstract void analyzeSystem(PipelineData data) throws Exception;",
"public interface Executable {\n\tvoid execute();\n}",
"protected abstract void execute(INPUT input);",
"@Override\n\tpublic ArrayList<String> exe(String cmdBody) throws Exception {\n\t\treturn null;\n\t}",
"protected void execute()\n\t{\n\t}",
"public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}",
"@Override\n \tprotected void doExecutionStarted() throws CoreException {\n \t\tfinal OpenMpiRuntimeSystem rtSystem = (OpenMpiRuntimeSystem) getRtSystem();\n \t\tfinal IPJob ipJob = PTPCorePlugin.getDefault().getUniverse().getResourceManager(rtSystem.getRmID()).getQueueById(rtSystem.getQueueID()).getJobById(getJobID());\n \t\tfinal String zeroIndexProcessID = rtSystem.createProcess(getJobID(), \"Open MPI run\", 0);\n \t\tprocessIDs = new String[] { zeroIndexProcessID } ;\n \n \t\t/*\n \t\t * Listener that saves stdout.\n \t\t */\n \t\tfinal PipedOutputStream stdoutOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stdoutInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstdoutInputStream.connect(stdoutOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stdoutPipedStreamListener = new InputStreamListenerToOutputStream(stdoutOutputStream);\n \t\t\n \t\tThread stdoutThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tBufferedReader stdoutBufferedReader = new BufferedReader(new InputStreamReader(stdoutInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stdoutBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.out.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stdoutBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstdoutPipedStreamListener.disable();\n //\t\t\t\t\tif (stdoutObserver != null) {\n //\t\t\t\t\t\tstdoutObserver.removeListener(stdoutPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstdoutInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Listener that saves stderr.\n \t\t */\n \t\tfinal PipedOutputStream stderrOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream stderrInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tstderrInputStream.connect(stderrOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream stderrPipedStreamListener = new InputStreamListenerToOutputStream(stderrOutputStream);\n \t\tThread stderrThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tfinal BufferedReader stderrBufferedReader = new BufferedReader(new InputStreamReader(stderrInputStream));\n \t\t\t\tIPProcess ipProc = ipJob.getProcessById(zeroIndexProcessID);\n \t\t\t\ttry {\n \t\t\t\t\tString line = stderrBufferedReader.readLine();\n \t\t\t\t\twhile (line != null) {\n \t\t\t\t\t\tsynchronized (lock1) {\n \t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStderrAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tipProc.addAttribute(ProcessAttributes.getStdoutAttributeDefinition().create(line));\n //\t\t\t\t\t\t\tSystem.err.println(line);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tline = stderrBufferedReader.readLine();\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tPTPCorePlugin.log(e);\n \t\t\t\t} finally {\n \t\t\t\t\tstderrPipedStreamListener.disable();\n //\t\t\t\t\tif (stderrObserver != null) {\n //\t\t\t\t\t\tstderrObserver.removeListener(stderrPipedStreamListener);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrOutputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n //\t\t\t\t\ttry {\n //\t\t\t\t\t\tstderrInputStream.close();\n //\t\t\t\t\t} catch (IOException e) {\n //\t\t\t\t\t\tPTPCorePlugin.log(e);\n //\t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Thread that parses map information.\n \t\t */\n \t\tfinal PipedOutputStream parserOutputStream = new PipedOutputStream();\n \t\tfinal PipedInputStream parserInputStream = new PipedInputStream();\n \t\ttry {\n \t\t\tparserInputStream.connect(parserOutputStream);\n \t\t} catch (IOException e) {\n \t\t\tassert false; // This exception is not possible\n \t\t}\n \t\tfinal InputStreamListenerToOutputStream parserPipedStreamListener = new InputStreamListenerToOutputStream(parserOutputStream);\n \t\tThread parserThread = new Thread() {\n \t\t\t@Override\n \t\t\tpublic void run() {\n \t\t\t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\t\t\ttry {\n \t\t\t\t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\t\t\t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapText12Parser.parse(parserInputStream);\n \t\t\t\t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\t\t\t\tmap = OpenMpiProcessMapXml13Parser.parse(parserInputStream, new IOpenMpiProcessMapXml13ParserListener() {\n \t\t\t\t\t\t\tpublic void startDocument() {\n \t\t\t\t\t\t\t\t// Empty\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tpublic void endDocument() {\n \t\t\t\t\t\t\t\t/*\n \t\t\t\t\t\t\t\t * Turn of listener that generates input for parser when parsing finishes.\n \t\t\t\t\t\t\t\t * If not done, the parser will close the piped inputstream, making the listener\n \t\t\t\t\t\t\t\t * get IOExceptions for closed stream.\n \t\t\t\t\t\t\t\t */\n \t\t\t\t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\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} else {\n \t\t\t\t\t\tassert false;\n \t\t\t\t\t}\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\t/*\n \t\t\t\t\t * If output could not be parsed, the kill the mpi process.\n \t\t\t\t\t */\n \t\t\t\t\tparserException = e;\n \t\t\t\t\tprocess.destroy();\n \t\t\t\t} finally {\n \t\t\t\t\tparserPipedStreamListener.disable();\n \t\t\t\t\tif (stderrObserver != null) {\n \t\t\t\t\t\tstderrObserver.removeListener(parserPipedStreamListener);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \n \t\t/*\n \t\t * Create and start listeners.\n \t\t */\n \t\tstdoutThread.start();\n \t\tstderrThread.start();\n \t\tparserThread.start();\n \n \t\tstderrObserver = new InputStreamObserver(process.getErrorStream());\n \t\tstdoutObserver = new InputStreamObserver(process.getInputStream());\n \n\t\tstdoutObserver.addListener(stdoutPipedStreamListener);\n\t\tstderrObserver.addListener(stderrPipedStreamListener);\n \n \t\t// Parse stdout or stderr, depending on mpi 1.2 or 1.3\n \t\tOpenMpiResourceManagerConfiguration configuration = (OpenMpiResourceManagerConfiguration) getRtSystem().getRmConfiguration();\n \t\tif (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_12)) {\n \t\t\tstderrObserver.addListener(parserPipedStreamListener);\n \t\t} else if (configuration.getVersionId().equals(OpenMpiResourceManagerConfiguration.VERSION_13)) {\n \t\t\tstdoutObserver.addListener(parserPipedStreamListener);\n \t\t} else {\n \t\t\tassert false;\n \t\t}\n \n \t\tstderrObserver.start();\n \t\tstdoutObserver.start();\n \n \t\ttry {\n \t\t\tparserThread.join();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Do nothing.\n \t\t}\n \n \t\tif (parserException != null) {\n \t\t\tprocess.destroy();\n \t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Failed to parse Open Mpi run command output.\", parserException));\n \t\t}\n \n \t\t/*\n \t\t * Copy job attributes from map.\n \t\t */\n \t\trtSystem.changeJob(getJobID(), map.getAttributeManager());\n \n \t\t/*\n \t\t * Copy process attributes from map.\n \t\t */\n \t\tList<Process> newProcesses = map.getProcesses();\n \t\tprocessIDs = new String[newProcesses.size()];\n \t\tfor (Process newProcess : newProcesses) {\n \t\t\tString nodename = newProcess.getNode().getName();\n \t\t\tString nodeID = rtSystem.getNodeIDforName(nodename);\n \t\t\tif (nodeID == null) {\n \t\t\t\tprocess.destroy();\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, Activator.getDefault().getBundle().getSymbolicName(), \"Hostnames from Open MPI output do not match expected hostname.\", parserException));\n \t\t\t}\n \n \t\t\tString processName = newProcess.getName();\n \t\t\tint processIndex = newProcess.getIndex();\n \t\t\tString processID = null;\n \t\t\tif (processIndex == 0) {\n \t\t\t\tprocessID = zeroIndexProcessID;\n \t\t\t} else {\n \t\t\t\tprocessID = rtSystem.createProcess(getJobID(), processName, processIndex);\n \t\t\t}\n \t\t\tprocessIDs[processIndex] = processID;\n \n \t\t\tAttributeManager attrMgr = new AttributeManager();\n \t\t\tattrMgr.addAttribute(ElementAttributes.getNameAttributeDefinition().create(processName));\n \t\t\tattrMgr.addAttribute(ProcessAttributes.getStateAttributeDefinition().create(ProcessAttributes.State.RUNNING));\n \t\t\tattrMgr.addAttributes(newProcess.getAttributeManager().getAttributes());\n \t\t\trtSystem.changeProcess(processID, attrMgr);\n \t\t}\n \t}",
"@Override\n public void Execute() {\n\n }",
"public abstract void exec(CommandSender sender, String[] args);",
"public void invokeOutFlowHandlers(ProcessContext processContext) throws GFacException;",
"@Override\n public void startExecuting() {\n getActiveRoutine().startExecutingRoutine();\n }",
"public static void c0() {\n\t}",
"public abstract void execute(String correlationId, ServiceRegistration sr, ServiceInput input);",
"public abstract boolean execute(PlugInContext context) throws Exception;",
"@Override\n\tpublic void execute() {\n\t\tthisOS.open();\n\t\t\n\t}",
"int executeSafely();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"public void run() {\n\t\t\t\tString command = \"psexec -u ACCUSYSARGBSAS\\\\martin.zaragoza -p Marzo2015 D:\\\\Temp\\\\testScripts\\\\a.exe a\";\n\t\t\t\tProcess process;\n\t\t\t\ttry {\n\t\t\t\t\tprocess = Runtime.getRuntime().exec(command);\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\ttry {\n\t\t\t\t\tint pid = getPid(process);\n\t\t\t\t\tSystem.out.println(\"pid=\" + pid);\n\t\t\t\t\tprintStdout(process.getInputStream());\n\t\t\t\t\tThread.sleep(500);\n\n\t\t\t\t\tProcess exec = Runtime.getRuntime().exec(\"echo %errorlevel%\");\n\t\t\t\t\tprintStdout(exec.getInputStream());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"protected void execute() {\n\n\t}",
"protected void setExec(String execID, int numCalls, int numSt,\r\n\t\t\t\t\t\t\tint numThrows, int numCaught, int covCalls,\r\n\t\t\t\t\t\t\tint covSt, int covThrows, int covCaught) {\r\n\r\n\t\tExecInfo ei = (ExecInfo) execInfos.get(execID);\r\n\t\tif (ei == null)\r\n\t\t\tei = new ExecInfo();\r\n\t\tei.numSt = numSt;\r\n\t\tei.numCalls = numCalls;\r\n\t\tei.numThrows = numThrows;\r\n\t\tei.numCaught = numCaught;\r\n\t\tei.covSt = covSt;\r\n\t\tei.covCalls = covCalls;\r\n\t\tei.covThrows = covThrows;\r\n\t\tei.covCaught = covCaught;\r\n\t}",
"public void assemblePrograms(CRun run)\r\n {\r\n CEventGroup evgPtr;\r\n CEvent evtPtr;\r\n CParam evpPtr;\r\n\r\n short o, oo;\r\n short oi, oi1, oi2;\r\n short type;\r\n int nOi, i, n, num;\r\n short d, evgF, evgM, q, d1, d2;\r\n int code;\r\n short fWrap;\r\n short evtAlways, evtAlwaysPos;\r\n int aTimers, ss;\r\n boolean bOrBefore;\r\n int cndOR;\r\n CObjInfo oilPtr;\r\n CObject hoPtr;\r\n\r\n rhPtr = run;\r\n\r\n rh2ActionCount = 0; \t\t\t\t// Force le compte des actions a 0\r\n\r\n // Nettoie la curFrame.m_oiList : enleve les blancs, compte les objets\r\n int oiMax = 0;\r\n for (nOi = 0 , n=0; n < rhPtr.rhMaxOI; n++)\r\n {\r\n if (rhPtr.rhOiList[n].oilOi != -1)\r\n {\r\n rhPtr.rhOiList[n].oilActionCount = -1;\r\n rhPtr.rhOiList[n].oilLimitFlags = 0;\r\n rhPtr.rhOiList[n].oilLimitList = -1;\r\n nOi++;\r\n if (rhPtr.rhOiList[n].oilOi + 1 > oiMax)\r\n {\r\n oiMax = rhPtr.rhOiList[n].oilOi + 1;\r\n }\r\n }\r\n }\r\n\r\n // Fabrique la liste des oi pour chaque qualifier\r\n qualToOiList = null;\r\n int oil;\r\n if (nQualifiers > 0)\r\n {\r\n short count[] = new short[nQualifiers];\r\n for (q = 0; q < nQualifiers; q++)\r\n {\r\n oi = (short) ((qualifiers[q].qOi) & 0x7FFF);\r\n count[q] = 0;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == qualifiers[q].qType)\r\n {\r\n for (n = 0; n < 8 && rhPtr.rhOiList[oil].oilQualifiers[n] != -1; n++) // MAX_QUALIFIERS\r\n {\r\n if (oi == rhPtr.rhOiList[oil].oilQualifiers[n])\r\n {\r\n count[q]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n qualToOiList = new CQualToOiList[nQualifiers];\r\n for (q = 0; q < nQualifiers; q++)\r\n {\r\n qualToOiList[q] = new CQualToOiList();\r\n\r\n if (count[q] != 0)\r\n {\r\n qualToOiList[q].qoiList = new short[count[q] * 2];\r\n }\r\n\r\n i = 0;\r\n oi = (short) ((qualifiers[q].qOi) & 0x7FFF);\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == qualifiers[q].qType)\r\n {\r\n for (n = 0; n < 8 && rhPtr.rhOiList[oil].oilQualifiers[n] != -1; n++)\r\n {\r\n if (oi == rhPtr.rhOiList[oil].oilQualifiers[n])\r\n {\r\n qualToOiList[q].qoiList[i * 2] = rhPtr.rhOiList[oil].oilOi;\r\n qualToOiList[q].qoiList[i * 2 + 1] = (short) oil;\r\n i++;\r\n }\r\n }\r\n }\r\n }\r\n qualToOiList[q].qoiActionCount = -1;\r\n }\r\n }\r\n\r\n // Poke les offsets des oi dans le programme, prepare les parametres / cree les tables de limitations\r\n // Marque les evenements a traiter dans la boucle\r\n // --------------------------------------------------------------------------------------------------\r\n\r\n // 100 actions STOP par objet... \t// YVES: nOi -> nOi+1 pour eviter erreurs si pas d'objet actif\r\n colBuffer = new short[oiMax * 100 * 2 + 1];\r\n int colList = 0;\r\n\r\n // Boucle d'exploration du programme\r\n int evg, evt, evp;\r\n for (evg = 0; evg < events.length; evg++)\r\n {\r\n evgPtr = events[evg];\r\n\r\n // Initialisation des parametres / pointeurs sur oilists/qoioilist\r\n // -------------------------------------------------------------\r\n for (evt = 0; evt < evgPtr.evgNAct + evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n\r\n // Pas de flag BAD\r\n evtPtr.evtFlags &= ~CEvent.EVFLAGS_BADOBJECT;\r\n\r\n // Si evenement pour un objet reel, met l'adresse de l'curFrame.m_oiList\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (EVTTYPE(evtPtr.evtCode) >= 0)\r\n {\r\n evtPtr.evtOiList = get_OiListOffset(evtPtr.evtOi, EVTTYPE(evtPtr.evtCode));\r\n }\r\n\r\n // Exploration des parametres\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n if (evtPtr.evtNParams > 0)\r\n {\r\n for (evp = 0; evp < evtPtr.evtNParams; evp++)\r\n {\r\n evpPtr = evtPtr.evtParams[evp];\r\n switch (evpPtr.code)\r\n {\r\n // Met un parametre buffer 4 a zero\r\n case 25: // PARAM_BUFFER4:\r\n ((PARAM_INT) evpPtr).value = 0;\r\n break;\r\n\r\n // Trouve le levobj de creation\r\n case 21: // PARAM_SYSCREATE:\r\n if ((evtPtr.evtOi & COI.OIFLAG_QUALIFIER) == 0)\r\n {\r\n CLO loPtr;\r\n for (loPtr = rhPtr.rhFrame.LOList.first_LevObj(); loPtr != null; loPtr = rhPtr.rhFrame.LOList.next_LevObj())\r\n {\r\n if (evtPtr.evtOi == loPtr.loOiHandle)\r\n {\r\n ((CCreate) evpPtr).cdpHFII = loPtr.loHandle;\r\n break;\r\n }\r\n }\r\n }\r\n else\r\n {\r\n ((CCreate) evpPtr).cdpHFII = -1;\r\n }\r\n // Met l'adresse du levObj pour create object\r\n case 9: // PARAM_CREATE:\r\n case 18: // PARAM_SHOOT:\r\n case 16: // PARAM_POSITION:\r\n oi = ((CPosition) evpPtr).posOINUMParent;\r\n if (oi != -1)\r\n {\r\n ((CPosition) evpPtr).posOiList = get_OiListOffset(oi, ((CPosition) evpPtr).posTypeParent);\r\n }\r\n break;\r\n\r\n // Poke l'adresse de l'objet dans l'curFrame.m_oiList\r\n case 1: // PARAM_OBJECT:\r\n ((PARAM_OBJECT) evpPtr).oiList = get_OiListOffset(((PARAM_OBJECT) evpPtr).oi, ((PARAM_OBJECT) evpPtr).type);\r\n break;\r\n\r\n // Expression : poke l'adresse de l'curFrame.m_oiList dans les parametres objets\r\n case 15: // PARAM_SPEED:\r\n case 27: // PARAM_SAMLOOP:\r\n case 28: // PARAM_MUSLOOP:\r\n case 45: // PARAM_EXPSTRING:\r\n case 46: // PARAM_CMPSTRING:\r\n case 22: // PARAM_EXPRESSION:\r\n case 23: // PARAM_COMPARAISON:\r\n case 52: // PARAM_VARGLOBAL_EXP:\r\n case 59: // PARAM_STRINGGLOBAL_EXP:\r\n case 53: // PARAM_ALTVALUE_EXP:\r\n case 54: // PARAM_FLAG_EXP:\r\n CParamExpression expPtr = (CParamExpression) evpPtr;\r\n for (n = 0; n < expPtr.tokens.length; n++)\r\n {\r\n // Un objet avec OI?\r\n if (EVTTYPE(expPtr.tokens[n].code) > 0)\r\n {\r\n CExpOi expOi = (CExpOi) expPtr.tokens[n];\r\n expOi.oiList = get_OiListOffset(expOi.oi, EVTTYPE(expOi.code));\r\n }\r\n }\r\n ;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Flags par defaut / Listes de limitation\r\n // ---------------------------------------\r\n evgF = 0;\r\n evgM = CEventGroup.EVGFLAGS_ONCE | CEventGroup.EVGFLAGS_LIMITED | CEventGroup.EVGFLAGS_STOPINGROUP;\r\n for (evt = 0; evt < evgPtr.evgNCond + evgPtr.evgNAct; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n n = 0;\r\n d1 = 0;\r\n d2 = 0;\r\n evpPtr = null;\r\n if (type >= COI.OBJ_SPR)\r\n {\r\n switch (getEventCode(code))\r\n {\r\n case (4 << 16): // ACTL_EXTSTOP:\r\n case (9 << 16): // ACTL_EXTBOUNCE:\r\n\r\n evgF |= CEventGroup.EVGFLAGS_STOPINGROUP;\r\n\r\n // Recherche dans le groupe, la cause du STOP-> limitList\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n oi = evtPtr.evtOi;\r\n if ((oi & COI.OIFLAG_QUALIFIER) != 0)\r\n {\r\n for (o = qual_GetFirstOiList2(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList2())\r\n {\r\n colList = make_ColList1(evgPtr, colList, rhPtr.rhOiList[o].oilOi);\r\n }\r\n }\r\n else\r\n {\r\n colList = make_ColList1(evgPtr, colList, oi);\r\n }\r\n break;\r\n case (25 << 16): // ACTL_EXTSHUFFLE:\r\n evgF |= CEventGroup.EVGFLAGS_SHUFFLE;\r\n break;\r\n case (-14 << 16): // CNDL_EXTCOLLISION:\r\n case (-4 << 16): // CNDL_EXTISCOLLIDING:\r\n // L'objet 1 est-il un sprite?\r\n short type1 = EVTTYPE(evtPtr.evtCode);\r\n if (isTypeRealSprite(type1))\r\n {\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n }\r\n else\r\n {\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKEXT;\r\n }\r\n\r\n // L'objet 2 est-il un sprite?\r\n evpPtr = evtPtr.evtParams[0];\r\n short type2 = ((PARAM_OBJECT) evtPtr.evtParams[0]).type;\r\n if (isTypeRealSprite(type2))\r\n {\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n }\r\n else\r\n {\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKEXT;\r\n }\r\n n = 3;\r\n break;\r\n case (-11 << 16): // CNDL_EXTINPLAYFIELD:\r\n case (-12 << 16): // CNDL_EXTOUTPLAYFIELD:\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKBORDER;\r\n n = 1;\r\n break;\r\n case (-13 << 16): // CNDL_EXTCOLBACK:\r\n d1 = CObjInfo.OILIMITFLAGS_QUICKBACK;\r\n n = 1;\r\n break;\r\n }\r\n }\r\n else\r\n {\r\n switch (code)\r\n {\r\n case ((-6 << 16) | 65535): // CNDL_ONCE\r\n evgM &= ~CEventGroup.EVGFLAGS_ONCE;\r\n break;\r\n case ((-7 << 16) | 65535): // CNDL_NOTALWAYS:\r\n evgM |= CEventGroup.EVGFLAGS_NOMORE;\r\n break;\r\n case ((-5 << 16) | 65535): // CNDL_REPEAT:\r\n evgM |= CEventGroup.EVGFLAGS_NOMORE;\r\n break;\r\n case ((-4 << 16) | 65535): // CNDL_NOMORE:\r\n evgM |= CEventGroup.EVGFLAGS_NOTALWAYS + CEventGroup.EVGFLAGS_REPEAT;\r\n break;\r\n case ((-4 << 16) | 0xFFFA): // CNDL_MONOBJECT:\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n evpPtr = evtPtr.evtParams[0];\r\n n = 2;\r\n break;\r\n case ((-7 << 16) | 0xFFFA): // CNDL_MCLICKONOBJECT:\r\n d2 = CObjInfo.OILIMITFLAGS_QUICKCOL;\r\n evpPtr = evtPtr.evtParams[1];\r\n n = 2;\r\n break;\r\n }\r\n }\r\n // Poke les flags collision\r\n if ((n & 1) != 0)\r\n {\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n rhPtr.rhOiList[o].oilLimitFlags |= d1;\r\n }\r\n }\r\n if ((n & 2) != 0)\r\n {\r\n for (o = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n rhPtr.rhOiList[o].oilLimitFlags |= d2;\r\n }\r\n }\r\n }\r\n // Inhibe les anciens flags\r\n evgPtr.evgFlags &= ~evgM;\r\n evgPtr.evgFlags |= evgF;\r\n }\r\n colBuffer[colList] = -1;\r\n\r\n // Reserve le buffer des pointeurs sur listes d'events\r\n // ---------------------------------------------------\r\n int aListPointers[] = new int[COI.NUMBEROF_SYSTEMTYPES + oiMax + 1];\r\n\r\n // Rempli cette table avec les offsets en fonction des types\r\n ss = 0;\r\n int alp;\r\n for (alp = 0 , type = -COI.NUMBEROF_SYSTEMTYPES; type<0; type++, alp++)\r\n {\r\n aListPointers[alp] = ss;\r\n ss += nConditions[COI.NUMBEROF_SYSTEMTYPES + type];\r\n }\r\n // Continue avec les OI, la taille juste pour le type de l'oi\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++, alp++)\r\n {\r\n aListPointers[alp] = ss;\r\n if (rhPtr.rhOiList[oil].oilType < COI.KPX_BASE)\r\n {\r\n ss += nConditions[COI.NUMBEROF_SYSTEMTYPES + rhPtr.rhOiList[oil].oilType] + EVENTS_EXTBASE + 1;\r\n }\r\n else\r\n {\r\n ss += rhPtr.rhApp.extLoader.getNumberOfConditions(rhPtr.rhOiList[oil].oilType) + EVENTS_EXTBASE + 1;\r\n }\r\n }\r\n\r\n // Reserve le buffer des pointeurs\r\n int sListPointers = ss;\r\n listPointers = new int[sListPointers];\r\n for (n = 0; n < sListPointers; n++)\r\n {\r\n listPointers[n] = 0;\r\n }\r\n evtAlways = 0;\r\n\r\n // Explore le programme et repere les evenements\r\n short wBufNear[] = new short[rhPtr.rhFrame.maxObjects];\r\n int wPtrNear;\r\n for (evg = 0; evg < nEvents; evg++)\r\n {\r\n evgPtr = events[evg];\r\n evgPtr.evgFlags &= ~CEventGroup.EVGFLAGS_ORINGROUP;\r\n bOrBefore = true;\r\n cndOR = 0;\r\n for (evt = 0; evt < evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n num = -EVTNUM(code);\r\n\r\n if (bOrBefore)\r\n {\r\n // Dans la liste des evenements ALWAYS\r\n if ((evtPtr.evtFlags & CEvent.EVFLAGS_ALWAYS) != 0)\r\n {\r\n evtAlways++;\r\n }\r\n\r\n // Dans la liste des evenements generaux si objet systeme\r\n if (type < 0)\r\n {\r\n listPointers[aListPointers[7 + type] + num]++;\r\n }\r\n else\r\n // Un objet normal / qualifier : relie aux objets\r\n {\r\n wPtrNear = 0;\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n listPointers[aListPointers[COI.NUMBEROF_SYSTEMTYPES + o] + num]++;\r\n wBufNear[wPtrNear++] = o;\r\n }\r\n wBufNear[wPtrNear] = -1;\r\n // Cas special pour les collisions de sprites : branche aux deux sprites (sauf si meme!)\r\n if (getEventCode(code) == (-14 << 16)) // CNDL_EXTCOLLISION\r\n {\r\n evpPtr = evtPtr.evtParams[0];\r\n for (oo = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); oo != -1; oo = qual_GetNextOiList())\r\n {\r\n for (wPtrNear = 0; wBufNear[wPtrNear] != oo && wBufNear[wPtrNear] != -1; wPtrNear++);\r\n if (wBufNear[wPtrNear] == -1)\r\n {\r\n listPointers[aListPointers[COI.NUMBEROF_SYSTEMTYPES + oo] + num]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n bOrBefore = false;\r\n if (evtPtr.evtCode == ((-24 << 16) | 65535) || evtPtr.evtCode == ((-25 << 16) | 65535)) // CNDL_OR - CNDL_ORLOGICAL\r\n {\r\n bOrBefore = true;\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_ORINGROUP;\r\n // Un seul type de OR dans un groupe\r\n if (cndOR == 0)\r\n {\r\n cndOR = evtPtr.evtCode;\r\n }\r\n else\r\n {\r\n evtPtr.evtCode = cndOR;\r\n }\r\n // Marque les OR Logical\r\n if (cndOR == ((-25 << 16) | 65535)) // CNDL_ORLOGICAL)\r\n {\r\n evgPtr.evgFlags |= CEventGroup.EVGFLAGS_ORLOGICAL;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Calcule les tailles necessaires, poke les pointeurs dans les listes\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n int sEventPointers = evtAlways + 1;\r\n int uil;\r\n for (uil = 0; uil < sListPointers; uil++)\r\n {\r\n if (listPointers[uil] != 0)\r\n {\r\n ss = listPointers[uil];\r\n listPointers[uil] = sEventPointers;\r\n sEventPointers += ss + 1;\r\n }\r\n }\r\n eventPointersGroup = new CEventGroup[sEventPointers];\r\n eventPointersCnd = new byte[sEventPointers];\r\n for (n = 0; n < sEventPointers; n++)\r\n {\r\n eventPointersGroup[n] = null;\r\n eventPointersCnd[n] = 0;\r\n }\r\n\r\n int lposBuffer[] = new int[sListPointers];\r\n for (n = 0; n < sListPointers; n++)\r\n {\r\n lposBuffer[n] = listPointers[n];\r\n }\r\n\r\n evtAlwaysPos = 0;\r\n evtAlways = 0;\r\n int lposPtr;\r\n for (evg = 0; evg < nEvents; evg++)\r\n {\r\n evgPtr = events[evg];\r\n bOrBefore = true;\r\n for (evt = 0; evt < evgPtr.evgNCond; evt++)\r\n {\r\n evtPtr = evgPtr.evgEvents[evt];\r\n type = EVTTYPE(evtPtr.evtCode);\r\n code = evtPtr.evtCode;\r\n num = -EVTNUM(code);\r\n\r\n if (bOrBefore)\r\n {\r\n // Dans la liste des evenements ALWAYS\r\n if ((evtPtr.evtFlags & CEvent.EVFLAGS_ALWAYS) != 0)\r\n {\r\n evtAlways++;\r\n eventPointersGroup[evtAlwaysPos] = evgPtr;\r\n eventPointersCnd[evtAlwaysPos] = (byte) evt;\r\n evtAlwaysPos++;\r\n }\r\n\r\n // Dans la liste des evenements generaux si objet systeme\r\n if (type < 0)\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + type] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n }\r\n else\r\n // Un objet normal : relie a l'objet\r\n {\r\n wPtrNear = 0;\r\n for (o = qual_GetFirstOiList(evtPtr.evtOiList); o != -1; o = qual_GetNextOiList())\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + o] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n wBufNear[wPtrNear++] = o;\r\n }\r\n wBufNear[wPtrNear] = -1;\r\n // Cas special pour les collisions de sprites : branche aux deux sprites (sauf si meme!)\r\n if (getEventCode(code) == (-14 << 16)) // CNDL_EXTCOLLISION\r\n {\r\n evpPtr = evtPtr.evtParams[0];\r\n for (oo = qual_GetFirstOiList(((PARAM_OBJECT) evpPtr).oiList); oo != -1; oo = qual_GetNextOiList())\r\n {\r\n for (wPtrNear = 0; wBufNear[wPtrNear] != oo && wBufNear[wPtrNear] != -1; wPtrNear++);\r\n if (wBufNear[wPtrNear] == -1)\r\n {\r\n lposPtr = aListPointers[COI.NUMBEROF_SYSTEMTYPES + oo] + num;\r\n eventPointersGroup[lposBuffer[lposPtr]] = evgPtr;\r\n eventPointersCnd[lposBuffer[lposPtr]] = (byte) evt;\r\n lposBuffer[lposPtr]++;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n bOrBefore = false;\r\n if (evtPtr.evtCode == ((-24 << 16) | 65535) || evtPtr.evtCode == ((-25 << 16) | 65535)) // CNDL_OR - CNDL_ORLOGICAL\r\n {\r\n bOrBefore = true;\r\n }\r\n }\r\n }\r\n ;\r\n\r\n // Adresse des conditions timer\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n uil = aListPointers[COI.NUMBEROF_SYSTEMTYPES + COI.OBJ_TIMER];\r\n aTimers = listPointers[uil - EVTNUM(((-3 << 16) | 0xFFFC))]; // CNDL_TIMER\r\n\r\n // Poke les adresses et les autres flags des pointeurs dans tous OI\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n limitBuffer = new short[oiMax + 1 + colList / 2];\r\n int limitListStart = 0;\r\n int limitPos, limitCur;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n\r\n // Poke l'offset dans les events\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n uil = aListPointers[COI.NUMBEROF_SYSTEMTYPES + oil];\r\n oilPtr.oilEvents = uil;\r\n\r\n // Traitement des flags particuliers\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n int act;\r\n if ((oilPtr.oilOEFlags & CObjectCommon.OEFLAG_MOVEMENTS) != 0)\r\n {\r\n // Recherche les flags WRAP dans les messages OUT OF PLAYFIELD\r\n fWrap = 0;\r\n ss = listPointers[uil - EVTNUM(-12 << 16)]; // CNDL_EXTOUTPLAYFIELD\r\n if (ss != 0)\r\n {\r\n while (eventPointersGroup[ss] != null)\r\n {\r\n evgPtr = eventPointersGroup[ss];\r\n evtPtr = evgPtr.evgEvents[eventPointersCnd[ss]];\r\n d = ((PARAM_SHORT) evtPtr.evtParams[0]).value;\t// Prend la direction\r\n for (act = evg_FindAction(evgPtr, 0) , n=evgPtr.evgNAct; n>0; n--, act++)\r\n {\r\n evtPtr = evgPtr.evgEvents[act];\r\n if (evtPtr.evtCode == ((8 << 16) | (((int) oilPtr.oilType) & 0xFFFF))) // ACT_EXTWRAP\r\n {\r\n fWrap |= d;\r\n }\r\n }\r\n ss++;\r\n }\r\n }\r\n oilPtr.oilWrap = (byte) fWrap;\r\n\r\n // Fabrique la table de limitations des mouvements\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n oi1 = oilPtr.oilOi;\r\n for (colList = 0 , limitPos=0; colBuffer[colList] != -1; colList += 2)\r\n {\r\n if (colBuffer[colList] == oi1)\r\n {\r\n oi2 = colBuffer[colList + 1];\r\n if ((oi2 & 0x8000) != 0)\r\n {\r\n oilPtr.oilLimitFlags |= oi2;\r\n continue;\r\n }\r\n for (limitCur = 0; limitCur < limitPos && limitBuffer[limitListStart + limitCur] != oi2; limitCur++);\r\n if (limitCur == limitPos)\r\n {\r\n limitBuffer[limitListStart + limitPos++] = oi2;\r\n }\r\n }\r\n }\r\n // Marque la fin...\r\n if (limitPos > 0)\r\n {\r\n oilPtr.oilLimitList = limitListStart;\r\n limitBuffer[limitListStart + limitPos++] = -1;\r\n limitListStart += limitPos;\r\n }\r\n }\r\n }\r\n\r\n // Met les adresses des tables de pointeur systeme\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n rhEvents[0] = 0;\r\n for (n = 1; n <= COI.NUMBEROF_SYSTEMTYPES; n++)\r\n {\r\n rhEvents[n] = aListPointers[COI.NUMBEROF_SYSTEMTYPES - n];\r\n }\r\n\r\n // Poke les adresses et les autres flags des pointeurs dans tous les objets definis\r\n // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n oilPtr = rhPtr.rhOiList[oil];\r\n\r\n // Explore tous les objets de meme OI dans le programme\r\n o = oilPtr.oilObject;\r\n if ((o & 0x8000) == 0)\r\n {\r\n do\r\n {\r\n // Met les oi dans les ro\r\n hoPtr = rhPtr.rhObjectList[o];\r\n hoPtr.hoEvents = oilPtr.oilEvents;\r\n hoPtr.hoOiList = oilPtr;\r\n hoPtr.hoLimitFlags = oilPtr.oilLimitFlags;\r\n // Flags Wrap pour les objets avec movement\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_MOVEMENTS) != 0)\r\n {\r\n hoPtr.rom.rmWrapping = oilPtr.oilWrap;\r\n }\r\n // Si le sprite n'est pas implique dans les collisions -> le passe en neutre\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_SPRITES) != 0 && (hoPtr.hoLimitFlags & CObjInfo.OILIMITFLAGS_QUICKCOL) == 0)\r\n {\r\n if (hoPtr.roc.rcSprite != null)\r\n {\r\n hoPtr.roc.rcSprite.setSpriteColFlag(0);\r\n }\r\n }\r\n // Sprite en mode inbitate?\r\n if ((hoPtr.hoOEFlags & CObjectCommon.OEFLAG_MANUALSLEEP) == 0)\r\n {\r\n // On detruit... sauf si...\r\n hoPtr.hoOEFlags &= ~CObjectCommon.OEFLAG_NEVERSLEEP;\r\n\r\n // On teste des collisions avec le decor?\r\n if ((hoPtr.hoLimitFlags & CObjInfo.OILIMITFLAGS_QUICKBACK) != 0)\r\n {\r\n // Si masque des collisions general\r\n if ((rhPtr.rhFrame.leFlags & CRunFrame.LEF_TOTALCOLMASK) != 0)\r\n {\r\n hoPtr.hoOEFlags |= CObjectCommon.OEFLAG_NEVERSLEEP;\r\n }\r\n }\r\n // Ou test des collisions normal\r\n if ((hoPtr.hoLimitFlags & (CObjInfo.OILIMITFLAGS_QUICKCOL | CObjInfo.OILIMITFLAGS_QUICKBORDER)) != 0)\r\n {\r\n hoPtr.hoOEFlags |= CObjectCommon.OEFLAG_NEVERSLEEP;\r\n }\r\n }\r\n o = hoPtr.hoNumNext;\r\n } while ((o & 0x8000) == 0);\r\n }\r\n }\r\n // Les messages speciaux\r\n // ~~~~~~~~~~~~~~~~~~~~~\r\n if (evtAlways != 0)\r\n {\r\n rhEventAlways = true;\r\n }\r\n else\r\n {\r\n rhEventAlways = false;\r\n }\r\n // Messages Timer (a bulle!)\r\n if (aTimers != 0)\r\n {\r\n rh4TimerEventsBase = aTimers;\r\n }\r\n else\r\n {\r\n rh4TimerEventsBase = 0;\r\n }\r\n\r\n // Liberation\r\n colBuffer = null;\r\n bReady = true;\r\n }",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"public abstract void runOperation();",
"Command handleExecute(CommandExecute commandExecute);",
"System createSystem();",
"public static void main(String[] args) {\nsyso \n\t}",
"synchronized public static final\n StringList ccRuntimeExecute(String pxCommand, int pxReadCount){\n \n StringList lpRes=new StringList();\n lpRes.append(\"-> runtime execute ->\");\n \n //-- checkin\n if(!ccIsValidString(pxCommand)){return lpRes;}\n int lpFixedCount=PApplet.constrain(pxReadCount, 1, 255);\n \n //-- execute\n lpRes.append(\"-> command:\"+pxCommand);\n Runtime lpRuntime = Runtime.getRuntime();\n Process lpProcess = null;\n BufferedReader lpReader = null;\n try {\n lpProcess = lpRuntime.exec(pxCommand);\n lpReader = new BufferedReader(new InputStreamReader(lpProcess.getInputStream()));\n } catch (IOException e) {\n System.err.println(\".ccRuntimeExecute()::\"+e.getMessage());\n }//..?\n if (lpProcess == null) {return lpRes;}\n if (lpReader == null) {return lpRes;}\n \n //-- wait\n int lpReturn = 0;\n try {\n lpReturn = lpProcess.waitFor();\n } catch (InterruptedException e) {\n System.err.println(\".ccRuntimeExecute()::\"+e.getMessage());\n }//+++\n \n //-- read\n for (int i = 0; i <= lpFixedCount; i++) {\n String lpLine = null;\n try {\n lpLine = lpReader.readLine();\n } catch (IOException e) {\n System.err.println(\".ccRuntimeExecute()::\"+e.getMessage());\n }//..?\n if (lpLine != null) {\n lpRes.append(lpLine);\n } else {\n lpRes.append(\"-> exited with:\"+PApplet.nf(lpReturn, 8));\n break;\n }//..?\n }//..~\n \n //-- post\n return lpRes;\n \n }",
"public abstract void onProcess();",
"protected void executeVmCommand() {\n }",
"protected void execute() {\n\t}",
"protected void doSystemMethod(HttpServletRequest request, HttpServletResponse response, String action) throws ServletException, IOException {\n String _action = request.getParameter(\"$action\");\n // if we didn't get an action via parameter lets use the default for the GET/POST/PUT/DELETE operation\n if (_action == null || _action.length() == 0)\n _action = action;\n // now if the default action was delete only allow deletions (delete only allows delete)\n if (action.equalsIgnoreCase(\"delete\"))\n _action = action;\n // if we have a default action of update then we don't want to query or delete (put only allows insert & update)\n if (action.equalsIgnoreCase(\"update\") && (_action.equalsIgnoreCase(\"delete\") || _action.equalsIgnoreCase(\"query\")))\n _action = \"update\";\n // just incase someone passes something stupid lets reset it to query\n if (!(_action.equalsIgnoreCase(\"query\") || _action.equalsIgnoreCase(\"insert\") || _action.equalsIgnoreCase(\"update\") || _action.equalsIgnoreCase(\"delete\")))\n _action = \"query\";\n\n // now get our path and configuration needed for sql calls\n String dsPath = (String) request.getAttribute(\"_DS_PATH\");\n log.debug(\"attribute dsPath: \" + dsPath);\n if (dsPath == null || dsPath.length() == 0) {\n response.sendError(404);\n return;\n }\n\n // we have a good action and path so lets load the sql based on path and then call the appropriate sql action\n if (dsPath.equalsIgnoreCase(\"/_system/connections\")) {\n Configuration configuration = ConfigurationHandler.getConfiguration(\"/connections\");\n if (configuration == null) {\n response.sendError(404, \"Configuration error: /connections configuration was not found!\");\n return;\n }\n if (action.equalsIgnoreCase(\"query\"))\n response.getOutputStream().println(ConnectionHandler.toJSON());\n else {\n // attempt to execute the connection requested action\n try {response.getOutputStream().println(configuration.execute(request, _action));}\n catch (Throwable ex)\n {\n ex.printStackTrace();\n response.sendError(500, ex.toString());\n }\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/test\")) {\n // attempt to get the parameters (assume always GET)\n try {\n String name = request.getParameter(\"name\");\n String type = request.getParameter(\"type\");\n if (name == null || name.length() == 0 || type == null || type.length() == 0)\n throw new RuntimeException(\"name or type parameter was not passed! connection is invalid!\");\n ConnectionHandler.test(name, type, request.getParameter(\"jndi-context\"),\n request.getParameter(\"jndi-name\"), request.getParameter(\"driver\"), request.getParameter(\"url\"),\n request.getParameter(\"login\"), request.getParameter(\"password\"));\n response.setContentType(\"application/json\");\n String sresult = \"{\\\"status\\\": \\\"Connection Successful\\\"}\";\n response.getOutputStream().write(sresult.getBytes(\"UTF-8\"));\n response.flushBuffer();\n }\n catch (Exception ex) {response.sendError(500, ex.toString());}\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/refresh\")) {\n try {ConnectionHandler.destroy(); ConnectionHandler.init();}\n catch (Exception ex) {log.fatal(\"Exception trying to refresh connection list: \" + ex);}\n response.getOutputStream().print(\"refreshed\");\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/download\")) {\n try {\n String nameFilter = request.getParameter(\"nameFilter\");\n response.setContentType(\"application/xml\");\n StringBuffer extension = new StringBuffer();\n String xml = ConnectionHandler.toXML(nameFilter);\n // we tack on the filter part to the end of the filename to later identify the download better\n if (nameFilter == null || nameFilter.equalsIgnoreCase(\"*\") || nameFilter.equalsIgnoreCase(\"all\"))\n nameFilter = \"\";\n // name filter just replace the spaces and special chars with underscores\n if (nameFilter.length() > 0) {\n nameFilter = nameFilter.replaceAll(\" \", \"_\").toLowerCase();\n nameFilter = nameFilter.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (nameFilter.startsWith(\".\"))\n nameFilter = nameFilter.substring(1);\n if (nameFilter.endsWith(\".\"))\n nameFilter = nameFilter.substring(0, nameFilter.length() - 2);\n extension.append(\"-\").append(nameFilter.toLowerCase());\n }\n // Last: cant be more than 240 characters - the static text for the filename\n int staticLength = \"connections\".length() + \".xml\".length();\n if (extension.length() > (240 - staticLength))\n extension.setLength((240 - staticLength));\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"connections\" + extension.toString() + \".xml\\\"\");\n response.setContentLength(xml.length());\n response.getOutputStream().print(xml);\n response.flushBuffer();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n response.sendError(500, \"Exception downloading connections: \" + ex);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/connections/upload\")) {\n try {\n// InputSource is = new InputSource(new StringReader(xml));\n// is.setEncoding(\"UTF-8\");\n// DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n// DocumentBuilder db = dbf.newDocumentBuilder();\n// Document doc = db.parse(is);\n// NodeList connections = doc.getElementsByTagName(\"connection\");\n// String name;\n// for (int conct=0; conct < connections.getLength(); conct++) {\n// name = getNode(\"name\");\n// System.out.println(\"name: \" + name);\n// }\n\n // read in and parse the body content\n SAXParserFactory factory = SAXParserFactory.newInstance();\n SAXParser saxParser = factory.newSAXParser();\n XMLConnectionUploader2 handler = new XMLConnectionUploader2();\n String xml = request.getParameter(\"file\");\n //log.info(\"using string: \" + xml);\n InputSource is = new InputSource(new StringReader(xml));\n is.setEncoding(\"UTF-8\");\n saxParser.parse(is, handler);\n response.getOutputStream().print(handler.getStatus());\n response.flushBuffer();\n }\n catch (SAXParseException err) {\n err.printStackTrace();\n response.sendError(500, \"Exception parsing connections upload file: \" + err);\n }\n catch (Throwable t) {\n t.printStackTrace();\n response.sendError(500, \"Exception uploading connections: \" + t);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations\")) {\n Configuration configuration = ConfigurationHandler.getConfiguration(\"/configurations\");\n if (configuration == null) {\n response.sendError(404, \"Configuration error: /configurations configuration was not found!\");\n return;\n }\n try {response.getOutputStream().println(configuration.execute(request, _action));}\n catch (Throwable ex)\n {\n ex.printStackTrace();\n response.sendError(500, ex.toString());\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/refresh\")) {\n try {ConfigurationHandler.init();}\n catch (Exception ex) {log.fatal(\"Exception trying to refresh configuration list: \" + ex);}\n response.getOutputStream().print(\"refreshed\");\n response.flushBuffer();\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/download\")) {\n try {\n String pathFilter = request.getParameter(\"pathFilter\");\n String tagFilter = request.getParameter(\"tagFilter\");\n response.setContentType(\"application/xml\");\n StringBuffer extension = new StringBuffer();\n String xml = ConfigurationHandler.toXML(pathFilter, tagFilter);\n // we tack on the filter part to the end of the filename to later identify the download better\n if (pathFilter == null || pathFilter.equalsIgnoreCase(\"*\") || pathFilter.equalsIgnoreCase(\"all\"))\n pathFilter = \"\";\n if (pathFilter.length() > 0) {\n // path filter just replace the spaces and special chars with underscores\n pathFilter = pathFilter.replaceAll(\" \", \"_\").toLowerCase();\n pathFilter = pathFilter.replaceAll(\"[^a-zA-Z0-9.-]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (pathFilter.startsWith(\".\"))\n pathFilter = pathFilter.substring(1);\n if (pathFilter.endsWith(\".\"))\n pathFilter = pathFilter.substring(0, pathFilter.length() - 2);\n extension.append(\"-\").append(pathFilter.toLowerCase());\n }\n // tag filter is a bit more complicated as we have to only use directory approved characters\n // we need to obfuscate && and || so they work. we will use underscores for spaces and\n // words for the && and || or.\n if (tagFilter == null)\n tagFilter = \"\";\n if (tagFilter.length() > 0) {\n tagFilter = tagFilter.replaceAll(\" \", \"_\").toLowerCase();\n tagFilter = tagFilter.replaceAll(\"&&\", \"and\");\n tagFilter = tagFilter.replaceAll(\"\\\\|\\\\|\", \"or\");\n tagFilter = tagFilter.replaceAll(\":\", \"#\");\n tagFilter = tagFilter.replaceAll(\"[^a-zA-Z0-9.-\\\\\\\\!#]\", \"_\");\n // few other tricks:\n // cant start or end with a dot; while valid in unix we don't want our export files to ever be hidden\n if (tagFilter.startsWith(\".\"))\n tagFilter = tagFilter.substring(1);\n if (tagFilter.endsWith(\".\"))\n tagFilter = tagFilter.substring(0, tagFilter.length() - 2);\n extension.append(\"-\").append(tagFilter);\n }\n // Last: cant be more than 240 characters - the static text for the filename\n int staticLength = \"configurations\".length() + \".xml\".length();\n if (extension.length() > (240 - staticLength))\n extension.setLength(240 - staticLength);\n\n response.setHeader(\"Content-Disposition\", \"attachment; filename=\\\"configurations\" + extension.toString() + \".xml\\\"\");\n response.setContentLength(xml.length());\n response.getOutputStream().print(xml);\n response.flushBuffer();\n }\n catch (Exception ex) {\n ex.printStackTrace();\n response.sendError(500, \"Exception downloading configurations: \" + ex);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/configurations/upload\")) {\n try {\n // read in and parse the body content\n SAXParserFactory factory = SAXParserFactory.newInstance();\n \tSAXParser saxParser = factory.newSAXParser();\n \tXMLConfigurationUploader handler = new XMLConfigurationUploader();\n String xml = request.getParameter(\"file\");\n// log.debug(\"using string: \" + xml);\n InputSource is = new InputSource(new StringReader(xml));\n is.setEncoding(\"UTF-8\");\n saxParser.parse(is, handler);\n response.getOutputStream().print(handler.getStatus());\n response.flushBuffer();\n }\n catch (SAXParseException err) {\n err.printStackTrace();\n response.sendError(500, \"Exception parsing configurations: \" + err);\n }\n catch (Throwable t) {\n t.printStackTrace ();\n response.sendError(500, \"Exception uploading configurations: \" + t);\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/sql/execute\")) {\n try {\n // look for $sql to attempt to execute\n String con = request.getParameter(\"$con\");\n String sql = request.getParameter(\"$sql\");\n log.debug(\"found [\" + con + \"] connection request...\");\n log.debug(\"found [\" + sql + \"] execute request...\");\n if (con == null || sql == null || con.length() == 0 || sql.length() == 0)\n throw new Exception(\"Reqeusted sql execution but didn't provide required parameters.\");\n Connection connection = null;\n Statement stmt = null;\n try {\n connection = ConnectionHandler.getConnection(con);\n if (connection == null)\n throw new SQLException(\"Connection [\" + con + \"] was not found or set up!\");\n stmt = connection.createStatement();\n stmt.execute(sql);\n }\n finally {\n if (stmt != null)\n stmt.close();\n if (connection != null)\n connection.close();\n }\n\n response.getOutputStream().print(\"Statment Executed Successfully\");\n response.flushBuffer();\n }\n catch (Throwable t) {\n t.printStackTrace ();\n response.sendError(500, t.toString());\n }\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/log/level/set\")) {\n // attempt to set the global log level runtime for the server\n String requestLevel = request.getParameter(\"log_level\");\n if (requestLevel != null && (requestLevel.equalsIgnoreCase(\"debug\") || requestLevel.equalsIgnoreCase(\"info\") || requestLevel.equalsIgnoreCase(\"warn\"))) {\n Logger rootLogger = Logger.getRootLogger();\n if (requestLevel.equalsIgnoreCase(\"debug\"))\n rootLogger.setLevel(Level.DEBUG);\n else if(requestLevel.equalsIgnoreCase(\"info\"))\n rootLogger.setLevel(Level.INFO);\n else if(requestLevel.equalsIgnoreCase(\"warn\"))\n rootLogger.setLevel(Level.WARN);\n response.getOutputStream().print(\"log level: \" + rootLogger.getLevel());\n }\n else\n response.sendError(404, \"Missing log_level parameter; must be one of ['debug', 'info', 'warn']\");\n }\n else if (dsPath.equalsIgnoreCase(\"/_system/boom\")) {\n response.sendError(500, \"Test Exception \");\n }\n else\n response.sendError(404);\n }",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"@Override\r\n\t\t\t\tpublic void autInitProcess() {\n\t\t\t\t\t\r\n\t\t\t\t}",
"void handle(S state, C command);",
"public final java_cup.runtime.Symbol CUP$CoolParser$do_action_part00000000(\n int CUP$CoolParser$act_num,\n java_cup.runtime.lr_parser CUP$CoolParser$parser,\n java.util.Stack CUP$CoolParser$stack,\n int CUP$CoolParser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$CoolParser$result;\n\n /* select the action based on the action number */\n switch (CUP$CoolParser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // program ::= class_list \n {\n programc RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new programc(curr_lineno(), cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // $START ::= program EOF \n {\n Object RESULT =null;\n\t\tprogramc start_val = (programc)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"$START\",0, RESULT);\n }\n /* ACCEPT */\n CUP$CoolParser$parser.done_parsing();\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // program ::= error \n {\n programc RESULT =null;\n\t\t RESULT = new programc(curr_lineno(),\n new Classes(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"program\",0, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // class_list ::= class_cc \n {\n Classes RESULT =null;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Classes(curr_lineno())).appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // class_list ::= class_list class_cc \n {\n Classes RESULT =null;\n\t\tClasses cl = (Classes)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tclass_c c = (class_c)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = cl.appendElement(c); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_list\",1, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // class_cc ::= CLASS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, \n\t\t AbstractTable.idtable.addString(\"Object\"), \n\t\t\t\t f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // class_cc ::= CLASS TYPEID INHERITS TYPEID LBRACE optional_feature_list RBRACE SEMI \n {\n class_c RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol p = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tFeatures f = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new class_c(curr_lineno(), n, p, f, curr_filename()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // class_cc ::= error SEMI \n {\n class_c RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"class_cc\",2, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // optional_feature_list ::= \n {\n Features RESULT =null;\n\t\t RESULT = new Features(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // optional_feature_list ::= f2 \n {\n Features RESULT =null;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Features(curr_lineno()).appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // optional_feature_list ::= optional_feature_list f2 \n {\n Features RESULT =null;\n\t\tFeatures flist = (Features)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFeature feature2 = (Feature)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = flist.appendElement(feature2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"optional_feature_list\",3, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // f2 ::= OBJECTID COLON TYPEID SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t \n\t\tRESULT = new attr(curr_lineno(), o, t, new no_expr(curr_lineno())); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // f2 ::= OBJECTID COLON TYPEID ASSIGN expr SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression ex1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new attr(curr_lineno(), o, t, ex1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // f2 ::= OBJECTID LPAREN formal_list RPAREN COLON TYPEID LBRACE expr RBRACE SEMI \n {\n Feature RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-9)).value;\n\t\tFormals f1 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-7)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\t RESULT = new method(curr_lineno(), o, f1, t, e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // f2 ::= error SEMI \n {\n Feature RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"f2\",10, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // formal_list ::= \n {\n Formals RESULT =null;\n\t\t RESULT = new Formals(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // formal_list ::= formal_1 \n {\n Formals RESULT =null;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Formals(curr_lineno()).appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // formal_list ::= formal_list formal_1 \n {\n Formals RESULT =null;\n\t\tFormals f2 = (Formals)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tFormal formal1 = (Formal)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = f2.appendElement(formal1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_list\",9, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // formal_1 ::= OBJECTID COLON TYPEID \n {\n Formal RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new formalc(curr_lineno(), o, t); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // formal_1 ::= OBJECTID COLON TYPEID COMMA \n {\n Formal RESULT =null;\n\t\tAbstractSymbol obj = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol typ = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new formalc(curr_lineno(), obj, typ); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"formal_1\",8, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // expr ::= expr PLUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new plus(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // expr ::= expr MINUS expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new sub(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // expr ::= expr MULT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new mul(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // expr ::= expr DIV expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new divide(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // expr ::= NEG expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new neg(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // expr ::= expr LT expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new lt(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // expr ::= expr EQ expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new eq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // expr ::= expr LE expr \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new leq(curr_lineno(), e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // expr ::= NOT expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new comp(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // expr ::= LPAREN expr RPAREN \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = e; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // expr ::= INT_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol i = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new int_const(curr_lineno(), i); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // expr ::= STR_CONST \n {\n Expression RESULT =null;\n\t\tAbstractSymbol s = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new string_const(curr_lineno(), s); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // expr ::= BOOL_CONST \n {\n Expression RESULT =null;\n\t\tBoolean b = (Boolean)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new bool_const(curr_lineno(), b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // expr ::= OBJECTID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new object(curr_lineno(), o); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // expr ::= OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions a = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(),\n\t new object(curr_lineno(), \n\t AbstractTable.idtable.addString(\"self\")),\n\t\t\t\t n, a); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // expr ::= expr DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new dispatch(curr_lineno(), e1, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // expr ::= expr AT TYPEID DOT OBJECTID actuals \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tExpressions b = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new static_dispatch(curr_lineno(), e1, t, n, b); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // expr ::= ISVOID expr \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new isvoid(curr_lineno(), e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // expr ::= OBJECTID ASSIGN expr \n {\n Expression RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new assign(curr_lineno(), o, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // expr ::= IF expr THEN expr ELSE expr FI \n {\n Expression RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-5)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression e3 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new cond(curr_lineno(), e1, e2, e3); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // expr ::= NEW TYPEID \n {\n Expression RESULT =null;\n\t\tAbstractSymbol n = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new new_(curr_lineno(), n); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // expr ::= LBRACE block_exp_list RBRACE \n {\n Expression RESULT =null;\n\t\tExpressions exprslist = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new block(curr_lineno(), exprslist); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // expr ::= CASE expr OF case_list ESAC \n {\n Expression RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new typcase(curr_lineno(), e, cl); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // expr ::= WHILE expr LOOP expr POOL \n {\n Expression RESULT =null;\n\t\tExpression eone = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-3)).value;\n\t\tExpression etwo = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\tRESULT = new loop(curr_lineno(), eone, etwo); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // expr ::= LET lettail \n {\n Expression RESULT =null;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = tail; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"expr\",4, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // lettail ::= OBJECTID COLON TYPEID IN expr \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e2 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), e2); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // lettail ::= OBJECTID COLON TYPEID ASSIGN expr COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-6)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, e1, tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // lettail ::= OBJECTID COLON TYPEID COMMA lettail \n {\n let RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tlet tail = (let)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\tRESULT = new let(curr_lineno(), o, t, new no_expr(curr_lineno()), tail); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // lettail ::= error SEMI \n {\n let RESULT =null;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // lettail ::= error IN expr \n {\n let RESULT =null;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"lettail\",14, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // actuals ::= LPAREN RPAREN \n {\n Expressions RESULT =null;\n\t\t RESULT = new Expressions(curr_lineno()); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // actuals ::= LPAREN exp_list RPAREN \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el; \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"actuals\",5, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // case_list ::= case_1 \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // case_list ::= case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Cases(curr_lineno()).appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // case_list ::= case_list case_1 SEMI \n {\n Cases RESULT =null;\n\t\tCases cl = (Cases)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tCase c1 = (Case)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = cl.appendElement(c1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_list\",12, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // case_1 ::= OBJECTID COLON TYPEID DARROW expr \n {\n Case RESULT =null;\n\t\tAbstractSymbol o = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-4)).value;\n\t\tAbstractSymbol t = (AbstractSymbol)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e1 = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = new branch(curr_lineno(), o, t, e1); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"case_1\",13, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // exp_list ::= expr \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = (new Expressions(curr_lineno())).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // exp_list ::= exp_list COMMA expr \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.peek()).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"exp_list\",6, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // block_exp_list ::= expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = new Expressions(curr_lineno()).appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // block_exp_list ::= block_exp_list expr SEMI \n {\n Expressions RESULT =null;\n\t\tExpressions el = (Expressions)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-2)).value;\n\t\tExpression e = (Expression)((java_cup.runtime.Symbol) CUP$CoolParser$stack.elementAt(CUP$CoolParser$top-1)).value;\n\t\t RESULT = el.appendElement(e); \n CUP$CoolParser$result = parser.getSymbolFactory().newSymbol(\"block_exp_list\",7, RESULT);\n }\n return CUP$CoolParser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number \"+CUP$CoolParser$act_num+\"found in internal parse table\");\n\n }\n }",
"abstract /*package*/ IValue executeRVMProgram(String moduleName, String uid_main, IValue[] posArgs, Map<String,IValue> kwArgs);",
"abstract void runRoutine();",
"public void execute() {\n\n\t}",
"protected abstract Executable getExecutable();",
"protected final boolean exec() {\n/* 94 */ this.result = compute();\n/* 95 */ return true;\n/* */ }",
"public static void main(String[] args){\n var system = VacSys.getInstance();\n system.main();\n }",
"public Object doProcess() {\n List<Result> retv = new ArrayList<Result>();\n try {\n current_time = NTPDate.currentTimeMillis();\n current_time_nano = Utils.nanoNow();\n\n try {\n currentProcs = ProcFSUtil.getCurrentProcsHash();\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \" [ myMon ] ProcFSUtil.getCurrentProcsHash exc\", t);\n }\n }\n final Result result = getResult();\n if(result != null) {\n result.addSet(\"Max Memory\", Runtime.getRuntime().maxMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Memory\", Runtime.getRuntime().totalMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Free Memory\", Runtime.getRuntime().freeMemory() / MEGABYTE_FACTOR);\n retv.add(result);\n }\n\n Result r = fillMLCPUTimeStats();\n if (r != null)\n retv.add(r);\n\n r = fillParamStats();\n if (r != null)\n retv.add(r);\n\n r = fillProcsStats();\n if (r != null)\n retv.add(r);\n\n if (currentProcs != null && currentProcs.size() > 0) {\n prevProcs = currentProcs;\n }\n\n r = fillPMSStats();\n if (r != null)\n retv.add(r);\n\n r = fillMLLUSHelperStats();\n if (r != null)\n retv.add(r);\n\n r = fillPWStats();\n if (r != null)\n retv.add(r);\n\n r = fillTCWStats();\n if (r != null)\n retv.add(r);\n\n if (IS_MAC) {\n r = fillFromMAC();\n if (r != null)\n retv.add(r);\n }\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \"[ myMon ] [ HANDLED ] got ex main loop ... \", t);\n }\n return null;\n } finally {\n last_time_nano = current_time_nano;\n }\n\n currentProcs = null;\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FINEST, \" [ myMon ] Returning ... \\n\" + retv);\n }\n return retv;\n }",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void autInitProcess() {\n\t\t\t\t\r\n\t\t\t}"
] | [
"0.6287724",
"0.6282971",
"0.57839787",
"0.5771908",
"0.5721865",
"0.57100636",
"0.56740254",
"0.56582284",
"0.5636788",
"0.56013376",
"0.55723035",
"0.5539308",
"0.5529748",
"0.5513594",
"0.5486344",
"0.54766554",
"0.5469948",
"0.5465142",
"0.5460428",
"0.5419257",
"0.5402445",
"0.53756446",
"0.53727823",
"0.5368816",
"0.5365054",
"0.535723",
"0.53545284",
"0.53480506",
"0.5340611",
"0.53354967",
"0.53342414",
"0.53325444",
"0.5331254",
"0.5330302",
"0.5328626",
"0.532609",
"0.53253186",
"0.53219974",
"0.53061414",
"0.52996695",
"0.5285032",
"0.5283219",
"0.5270579",
"0.5267447",
"0.5260019",
"0.525038",
"0.52394485",
"0.52317154",
"0.523132",
"0.52290916",
"0.52259207",
"0.52250904",
"0.52217287",
"0.522063",
"0.52158123",
"0.5212231",
"0.5209008",
"0.5207445",
"0.5183206",
"0.51786196",
"0.51768965",
"0.5175533",
"0.517518",
"0.51730174",
"0.51730174",
"0.51730174",
"0.51730174",
"0.51730174",
"0.51730174",
"0.51730174",
"0.51714206",
"0.51667035",
"0.51667035",
"0.51605856",
"0.5160571",
"0.51541877",
"0.5154186",
"0.5154023",
"0.5153051",
"0.51517355",
"0.5149211",
"0.5147819",
"0.5145229",
"0.5137094",
"0.5136864",
"0.51362276",
"0.51262474",
"0.51262474",
"0.51217777",
"0.512082",
"0.5114439",
"0.511329",
"0.5111572",
"0.51103675",
"0.51101536",
"0.5109881",
"0.5109798",
"0.51091623",
"0.51091623",
"0.51091623",
"0.51091623"
] | 0.0 | -1 |
/ COP1 (FPU) EXECUTION HANDLING | INLINE UINT64 get_cop1_reg(int idx)
{
return mips3.cpr[1][idx];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createCoProcFPU(Code32 code, int opCode, int cond, int Rt, int extReg) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (extReg << 16) | (Rt << 12);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"INLINE void handle_cop1x(UINT32 op)\n\t{\n\t\tif (!(SR & SR_COP1))\n\t\t\tgenerate_exception(EXCEPTION_BADCOP, 1);\n\t\n\t\tswitch (op & 0x3f)\n\t\t{\n\t\t\tcase 0x00:\t\t/* LWXC1 */\n\t\t\t\tFDVALS = RLONG(RSVAL32 + RTVAL32);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x01:\t\t/* LDXC1 */\n\t\t\t\tFDVALD = RDOUBLE(RSVAL32 + RTVAL32);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x08:\t\t/* SWXC1 */\n\t\t\t\tWDOUBLE(RSVAL32 + RTVAL32, FSVALS);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x09:\t\t/* SDXC1 */\n\t\t\t\tWDOUBLE(RSVAL32 + RTVAL32, FSVALD);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x0f:\t\t/* PREFX */\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x20:\t\t/* MADD.S */\n\t\t\t\tFDVALS = FSVALS * FTVALS + FRVALS;\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x21:\t\t/* MADD.D */\n\t\t\t\tFDVALD = FSVALD * FTVALD + FRVALD;\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x28:\t\t/* MSUB.S */\n\t\t\t\tFDVALS = FSVALS * FTVALS - FRVALS;\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x29:\t\t/* MSUB.D */\n\t\t\t\tFDVALD = FSVALD * FTVALD - FRVALD;\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x30:\t\t/* NMADD.S */\n\t\t\t\tFDVALS = -(FSVALS * FTVALS + FRVALS);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x31:\t\t/* NMADD.D */\n\t\t\t\tFDVALD = -(FSVALD * FTVALD + FRVALD);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x38:\t\t/* NMSUB.S */\n\t\t\t\tFDVALS = -(FSVALS * FTVALS - FRVALS);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x39:\t\t/* NMSUB.D */\n\t\t\t\tFDVALD = -(FSVALD * FTVALD - FRVALD);\n\t\t\t\tbreak;\n\t\n\t\t\tcase 0x24:\t\t/* MADD.W */\n\t\t\tcase 0x25:\t\t/* MADD.L */\n\t\t\tcase 0x2c:\t\t/* MSUB.W */\n\t\t\tcase 0x2d:\t\t/* MSUB.L */\n\t\t\tcase 0x34:\t\t/* NMADD.W */\n\t\t\tcase 0x35:\t\t/* NMADD.L */\n\t\t\tcase 0x3c:\t\t/* NMSUB.W */\n\t\t\tcase 0x3d:\t\t/* NMSUB.L */\n\t\t\tdefault:\n\t\t\t\tfprintf(stderr, \"cop1x %X\\n\", op);\n\t\t\t\tbreak;\n\t\t}\n\t}",
"private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}",
"FunctionCall getFc();",
"private void createFPdataConv(Code32 code, int opCode, int cond, int Vd, int Vm, int opc, int op, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif ((opc & 4) != 0) {\t// to integer\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\t} else {\t// to floating point\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t}\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private void createFPdataProc(Code32 code, int opCode, int cond, int Vd, int Vm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private native double SumaC(double operador_1, double operador_2);",
"private void createFPdataProc(Code32 code, int opCode, int cond, int Vd, int Vn, int Vm, boolean single) {\r\n\t\tif (opCode == armVmov && (Vd == Vm)) return;\t// mov Vx, Vx makes no sense\t\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (((Vn>>1)&0xf) << 16) | ((Vn&1) << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((Vn&0xf) << 16) | ((Vn>>4) << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private void createFPdataConvPrec(Code32 code, int opCode, int cond, int Vd, int Vm, boolean toSingle) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (7 << 16);\r\n\t\tif (toSingle) code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\telse code.instructions[code.iCount] |= ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private float caculate(Operation opt, int t1, float f2) {\n\t\tfloat res;\n\t\tfloat tt1 = (float) t1;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = tt1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = tt1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = tt1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = tt1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"private float caculate(Operation opt, float f1, float f2) {\n\t\tfloat res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\tres = 0;\n\t\t\terr.error(\"No operation in caculating.\");\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"private float caculate(Operation opt, float f1, int t2) {\n\t\tfloat res;\n\t\tfloat tt2 = (float) t2;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + tt2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - tt2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * tt2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / tt2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\treturn 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"public static void call(int paramInt1, int paramInt2, long paramLong1, long paramLong2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)\n/* */ {\n/* */ try\n/* */ {\n/* 71 */ if ((MainMemory.getI32(paramInt6) <= 0) && (paramLong2 != 0L)) {\n/* */ break label38;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ label38:\n/* */ \n/* */ \n/* */ \n/* 87 */ switch (paramInt2) {\n/* */ case 11: \n/* */ break label482;\n/* */ break;\n/* */ case 12: \n/* */ break label457;\n/* */ break;\n/* */ case 20: \n/* */ break label432;\n/* */ break;\n/* */ case 21: \n/* */ break label407;\n/* */ break;\n/* */ case 30: break label382;\n/* */ break; case 31: break label357;\n/* */ break; case 40: break label332;\n/* */ break; case 41: break label307;\n/* */ break; case 81: break label282;\n/* */ break; case 42: break label257;\n/* */ break; case 82: break; }\n/* 107 */ ffgpfd.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label257:\n/* */ \n/* 114 */ ffgpfe.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label282:\n/* */ \n/* 121 */ ffgpfjj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label307:\n/* */ \n/* 128 */ ffgpfj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label332:\n/* */ \n/* 135 */ ffgpfuj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label357:\n/* */ \n/* 142 */ ffgpfk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label382:\n/* */ \n/* 149 */ ffgpfuk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label407:\n/* */ \n/* 156 */ ffgpfi.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label432:\n/* */ \n/* 163 */ ffgpfui.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label457:\n/* */ \n/* 170 */ ffgpfsb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label482:\n/* */ \n/* 177 */ ffgpfb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* 184 */ MainMemory.setI32(paramInt6, 410);\n/* */ \n/* */ \n/* */ label520:\n/* */ \n/* */ \n/* 190 */ return;\n/* */ }\n/* */ finally {}\n/* */ }",
"@Override\n public void apply$mcVF$sp (float arg0)\n {\n\n }",
"private float computeDeceleration(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.computeDeceleration(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeDeceleration(float):float\");\n }",
"private void float_to_float_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n double x = getFloatOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n double value ;\r\n switch( op_code ) {\r\n case FABS :\r\n value = x < 0 ? -x : x ;\r\n break ;\r\n case SIN :\r\n value = Math.sin(x) ;\r\n break ;\r\n case COS :\r\n value = Math.cos(x) ;\r\n break ;\r\n case TAN :\r\n value = Math.tan(x) ;\r\n break ;\r\n case ASIN :\r\n value = Math.asin(x) ;\r\n break ;\r\n case ACOS :\r\n value = Math.acos(x) ;\r\n break ;\r\n case ATAN :\r\n value = Math.atan(x) ;\r\n break ;\r\n case EXP :\r\n value = Math.exp(x) ;\r\n break ;\r\n case EXPM1 :\r\n // This won't give as good a result as the real expm1\r\n // function.\r\n value = Math.exp(x-1.0) ;\r\n break ;\r\n case LOG :\r\n value = Math.log(x) ;\r\n break ;\r\n case LOG10 :\r\n value = Math.log(x) / Math.log( 10 ) ;\r\n break ;\r\n case LOG1P :\r\n // This won't give as good a result as the real log1p\r\n // function.\r\n value = Math.log(x+1.0);\r\n break ;\r\n case CEIL :\r\n value = Math.ceil(x) ;\r\n break ;\r\n case FLOOR :\r\n value = Math.floor(x) ;\r\n break ;\r\n case SIGNUM :\r\n if(x == Double.NaN ) {\r\n value = x ; }\r\n else if( x == 0.0 ) {\r\n value = x ; }\r\n else if( x < 0 ) {\r\n value = -1.0 ; }\r\n else {\r\n value = +1.0 ; }\r\n break ;\r\n case ROUND :\r\n value = Math.round(x) ;\r\n break ;\r\n case SQRT :\r\n value = Math.sqrt(x) ;\r\n break ;\r\n case SINH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case COSH :\r\n value = (pow(Math.E, x) + pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case TANH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x))\r\n / (pow(Math.E, x) + pow(Math.E, -x)) ;\r\n break ;\r\n case TODEGS :\r\n value = x * 57.2957795 ;\r\n break ;\r\n case TORADS :\r\n value = x / 57.2957795 ;\r\n break ;\r\n case RINT :\r\n value = Math.rint(x) ;\r\n break ;\r\n case CBRT :\r\n if( x == Double.NaN ) value = Double.NaN ;\r\n else if( x < 0 ) value = -pow( -x, 1.0/3.0);\r\n else value = pow(x,1.0/3.0) ;\r\n break ;\r\n case ULP_DOUBLE :\r\n if( x == Double.NaN )\r\n value = Double.NaN ;\r\n else if( x == Double.NEGATIVE_INFINITY || x == Double.POSITIVE_INFINITY )\r\n value = Double.POSITIVE_INFINITY ;\r\n else if( x == 0.0 )\r\n value = Double.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n case ULP_FLOAT :\r\n // The assumption is that converting from a float\r\n // to a double loses nothing and is invertable.\r\n float xf = (float) x ; // Get back to the float.\r\n if( xf == Float.NaN )\r\n value = Float.NaN ;\r\n else if( xf == Float.NEGATIVE_INFINITY || xf == Float.POSITIVE_INFINITY )\r\n value = Float.POSITIVE_INFINITY ;\r\n else if( xf == 0.0 )\r\n value = Float.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n AbstractFloatDatum d = putFloatResult(nd, vms, value);\r\n \r\n // NOTE: mpbl May 2008 I believe this is superfluous\r\n \r\n vms.top().map(nd, d) ;\r\n }",
"public String process(Item seg) throws ProcessException {\n\t\t\treturn segOnsetCtype(seg, \"f\");\n\t\t}",
"void mo9705c(float f, float f2);",
"public static void main(String[] args) {\n\t\t//TODO: Hilfsmethoden rufen\n\t\t/*\n\t\tc0_vl();\n\t\tc1_vl();\n\t\tbi_vl();\n\t\tfeec();\n\t\tc0();\n\t\tc1();\n\t\t*/\n\t\tc2();\n\t\t/*\n\t\tmmcc();\n\t\t*/\n\t}",
"public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,operand2,result=0;\r\n operand1=calc.getOperand1();\r\n operand2=calc.getOperand2();\r\n String op;\r\n op=calc.getOperator();\r\n try\r\n {\r\n \r\n switch(op)\r\n {\r\n case \"+\": Add add=new Add();\r\n result=add.doOperation(operand1, operand2);\r\n break;\r\n case \"-\": Subract sub=new Subract();\r\n result=sub.doOperation(operand1, operand2);\r\n break;\r\n case \"*\": Multiply mul=new Multiply();\r\n result=mul.doOperation(operand1, operand2);\r\n break;\r\n case \"/\": Division div =new Division();\r\n if(operand2==0)\r\n {\r\n \tthrow new ArithmeticException();\r\n }\r\n result=div.doOperation(operand1, operand2);\r\n break;\r\n default: throw new Exception(\"Invalid operation\");\r\n }\r\n \r\n\t }\r\n catch(ArithmeticException e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n }\r\n \r\n catch(Exception e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n } \r\n finally\r\n {\r\n \t System.exit(0);\r\n }\r\n System.out.print(result);\r\n \r\n}",
"@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }",
"public float getExecFreq(){return 0.0f;}",
"static void perform_cpo(String passed){\n\t\tint type = type_of_cpo(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcall_when_parity_not(passed);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"public Arginfo visit(MessageSend n, Arginfo argu) {\n Arginfo _ret=null;\n \n int a=prectr++;\n int b=prectr++;\n int c=prectr++;\n int d=prectr++;\n int e=prectr++;\n \n System.out.println(\"BEGIN\\n \");\n System.out.println(\"MOVE TEMP \"+e+\" CALL\\n BEGIN MOVE TEMP \"+a+\" \");\n argu.isreq=1;\n Arginfo temp1=n.f0.accept(this, argu);\n argu.isreq=0;\n \n if(temp1==null){\n \t System.err.println(\"noo \"+n.f2.f0.tokenImage+\" \"+argu.classname+\" \"+argu.methodname);\n \t System.exit(1);\n }\n String classname=temp1.str;\n String classname2=temp1.str;\n String methodname=n.f2.f0.tokenImage;\n while(true){\n \t if(finaltable.symboltable.get(classname).funcdec.containsKey(methodname)){\n \t\t break;\n \t }\n \t else{\n \t\t classname=finaltable.symboltable.get(classname).parent;\n \t\t if(classname==temp1.str||classname==null) break;\n \t }\n }\n String name=classname+\"_\"+methodname;\n //System.err.println(name+\" \"+);\n int dist=finaltable.symboltable.get(classname2).methodnum.get(name);\n \n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n \n System.out.println(\"HLOAD TEMP \"+b+\" TEMP \"+a+\" 0\");\n System.out.println(\"HLOAD TEMP \"+c+\" TEMP \"+b+\" \"+dist);\n System.out.println(\"RETURN TEMP \"+c+\"\\nEND\\n\");\n System.out.println(\"( TEMP \"+a+\" \");\n \n n.f4.accept(this, argu);\n n.f5.accept(this, argu);\n \n \n System.out.println(\" )\\n\"+\"RETURN TEMP \"+e+\"\\nEND\\n\");\n\n \n temp1.str=finaltable.symboltable.get(classname).funcdec.get(methodname).get(0);\n return temp1;\n }",
"public abstract C1489f mo1187e();",
"public void panel4Process() {\n\t\tif (equal(\"A \", stateVariable.getZzfunmode())) {\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tcontractDetail.write();\n\t\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\taddrec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"B \", stateVariable.getZzfunmode())) {\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tupdrec();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tchgrec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"C \", stateVariable.getZzfunmode())) {\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\t\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\t\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t\t\t// BR00002 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\t\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\t\t\tcontractDetail.delete();\n\t\t\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\t\t}\n\t\t\t}\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t}",
"@Override\n public <A> Function1<A, BoxedUnit> compose$mcVF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void mo12746c() {\n float f = this.f13706a;\n float f2 = this.f13708c;\n if (f == f2) {\n this.f13718m = this.f13710e.itemView.getTranslationX();\n } else if (this.f13712g != null) {\n this.f13718m = f + (this.f13722q * (f2 - f));\n } else {\n this.f13718m = this.f13714i.mo3670a();\n }\n float f3 = this.f13707b;\n float f4 = this.f13709d;\n if (f3 == f4) {\n this.f13719n = this.f13710e.itemView.getTranslationY();\n } else if (this.f13712g != null) {\n this.f13719n = f3 + (this.f13722q * (f4 - f3));\n } else {\n this.f13719n = this.f13715j.mo3670a();\n }\n }",
"void mo21075f();",
"abstract public Number getResult (final Number pe, final Number pd, final Number t) throws CGException ;",
"public static void run_op(int formact) {\n switch (formact) {\n case 2:\n switch (op.toInt()) {\n case 144: //case ADDR\n addr(select_reg(r1), select_reg(r2));\n break;\n case 4: //case CLEAR\n clear(select_reg(r1));\n break;\n case 160: //case COMPR\n compr(select_reg(r1), select_reg(r2));\n break;\n case 156: //case DIVR\n divr(select_reg(r1), select_reg(r2));\n break;\n case 152: //case MULR\n mulr(select_reg(r1), select_reg(r2));\n break;\n case 172: //case RMO\n rmo(select_reg(r1), select_reg(r2));\n break;\n case 164: //case SHIFTL\n shiftl(select_reg(r1), r2.toInt());\n break;\n case 168: //case SHIFTR\n shiftr(select_reg(r1), r2.toInt());\n break;\n case 148: //case SUBR\n subr(select_reg(r1), select_reg(r2));\n break;\n case 184: //case TIXR\n tixr(select_reg(r1));\n break;\n }\n break;\n case 3:\n case 4:\n switch (op.toInt()) {\n case 24: //case ADD\n add(address.toInt());\n break;\n case 64: //case AND\n and(address.toInt());\n break;\n case 40: //case COMP\n comp(address.toInt());\n break;\n case 36: //case DIV\n div(address.toInt());\n break;\n case 60: //case J\n j(address.toInt());\n break;\n case 48: //case JEQ\n jeq(address.toInt());\n break;\n case 52: //case JGT\n jgt(address.toInt());\n break;\n case 56: //case JLT\n jlt(address.toInt());\n break;\n case 72: //case JSUB\n jsub(address.toInt());\n break;\n case 0: //case LDA\n lda(address.toInt());\n break;\n case 104: //case LDB\n ldb(address.toInt());\n break;\n case 80: //case LDCH\n ldch(address.toInt());\n break;\n case 8: //case LDL\n ldl(address.toInt());\n break;\n case 108: //case LDS\n lds(address.toInt());\n break;\n case 116: //case LDT\n ldt(address.toInt());\n break;\n case 4: //case LDX\n ldx(address.toInt());\n break;\n case 32: //case MUL\n mul(address.toInt());\n break;\n case 68: //case OR\n or(address.toInt());\n break;\n case 76: //case RSUB\n rsub();\n break;\n case 12: //case STA\n sta(address.toInt(), formact);\n break;\n case 120: //case STB\n stb(address.toInt(), formact);\n break;\n case 84: //case STCH\n stch(address.toInt(), formact);\n break;\n case 20: //case STL\n stl(address.toInt(), formact);\n break;\n case 124: //case STS\n sts(address.toInt(), formact);\n break;\n case 132: //case STT\n stt(address.toInt(), formact);\n break;\n case 16: //case STX\n stx(address.toInt(), formact);\n break;\n case 28: //case SUB\n sub(address.toInt());\n break;\n case 44: //case TIX\n tix(address.toInt());\n break;\n }\n }\n }",
"void floatOp(int b) {\n int blength = (byte)OPC.FLOAT_LENGTH_TABLE.charAt(b);\n int bstack = (byte)OPC.FLOAT_STACK_EFFECT_TABLE.charAt(b);\n sp += bstack;\n write(2, \"floatOp\\n\\t\\t\"+Mnemonics.FLOAT_OPCODES[b]);\n }",
"private static int executeInstruction(int instruction, int arg0, int arg1, int arg2, int[] memory){\n\t\t\n\t\tswitch(instruction){\n\t\t\tcase mov:\n\t\t\t\tmemory[arg0] = memory[arg1];\n\t\t\t\tbreak;\n\t\t\tcase movv:\n\t\t\t\tmemory[arg0] = arg1;\n\t\t\t\tbreak;\n\t\t\tcase jmp:\n\t\t\t\treturn arg0;\n\t\t\t\t//break;\n\t\t\tcase jif:\n\t\t\t\tif(memory[arg0] != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase jifv:\n\t\t\t\tif(arg0 != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase add:\n\t\t\t\tmemory[arg0] = memory[arg1] + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase sub:\n\t\t\t\tmemory[arg0] = memory[arg1] - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mlt:\n\t\t\t\tmemory[arg0] = memory[arg1] * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase div:\n\t\t\t\tmemory[arg0] = memory[arg1] / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mod:\n\t\t\t\tmemory[arg0] = memory[arg1] % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addvl:\n\t\t\t\tmemory[arg0] = arg1 + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase subvl:\n\t\t\t\tmemory[arg0] = arg1 - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mltvl:\n\t\t\t\tmemory[arg0] = arg1 * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase divvl:\n\t\t\t\tmemory[arg0] = arg1 / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase modvl:\n\t\t\t\tmemory[arg0] = arg1 % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addlv:\n\t\t\t\tmemory[arg0] = memory[arg1] + arg2;\n\t\t\t\tbreak;\n\t\t\tcase sublv:\n\t\t\t\tmemory[arg0] = memory[arg1] - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltlv:\n\t\t\t\tmemory[arg0] = memory[arg1] * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divlv:\n\t\t\t\tmemory[arg0] = memory[arg1] / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modlv:\n\t\t\t\tmemory[arg0] = memory[arg1] % arg2;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase addvv:\n\t\t\t\tmemory[arg0] = arg1 + arg2;\n\t\t\t\tbreak;\n\t\t\tcase subvv:\n\t\t\t\tmemory[arg0] = arg1 - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltvv:\n\t\t\t\tmemory[arg0] = arg1 * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divvv:\n\t\t\t\tmemory[arg0] = arg1 / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modvv:\n\t\t\t\tmemory[arg0] = arg1 % arg2;\n\t\t\t\tbreak;\n\t\t\t///////////////////////////////\n\t\t\tcase l:\n\t\t\t\tmemory[arg0] = memory[arg1] < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase g:\n\t\t\t\tmemory[arg0] = memory[arg1] > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase le:\n\t\t\t\tmemory[arg0] = memory[arg1] <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ge:\n\t\t\t\tmemory[arg0] = memory[arg1] >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase e:\n\t\t\t\tmemory[arg0] = memory[arg1] == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ne:\n\t\t\t\tmemory[arg0] = memory[arg1] != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvl:\n\t\t\t\tmemory[arg0] = arg1 < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvl:\n\t\t\t\tmemory[arg0] = arg1 > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levl:\n\t\t\t\tmemory[arg0] = arg1 <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevl:\n\t\t\t\tmemory[arg0] = arg1 >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evl:\n\t\t\t\tmemory[arg0] = arg1 == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevl:\n\t\t\t\tmemory[arg0] = arg1 != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase llv:\n\t\t\t\tmemory[arg0] = memory[arg1] < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase glv:\n\t\t\t\tmemory[arg0] = memory[arg1] > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase lelv:\n\t\t\t\tmemory[arg0] = memory[arg1] <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gelv:\n\t\t\t\tmemory[arg0] = memory[arg1] >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase elv:\n\t\t\t\tmemory[arg0] = memory[arg1] == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nelv:\n\t\t\t\tmemory[arg0] = memory[arg1] != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvv:\n\t\t\t\tmemory[arg0] = arg1 < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvv:\n\t\t\t\tmemory[arg0] = arg1 > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levv:\n\t\t\t\tmemory[arg0] = arg1 <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevv:\n\t\t\t\tmemory[arg0] = arg1 >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evv:\n\t\t\t\tmemory[arg0] = arg1 == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevv:\n\t\t\t\tmemory[arg0] = arg1 != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase notl:\n\t\t\t\tmemory[arg0] = memory[arg1] == 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase notv:\n\t\t\t\tmemory[arg0] = arg1 == 0 ? 1 : 0;\n\t\t\t\n\t\t\tcase nop:\n\t\t\t\t//do nothing\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t//jump ahead one instruction\n\t\treturn 1;\n\t}",
"public void mo8476b() {\n mo8469a();\n int count = this.f3532b.size();\n for (int i = 0; i < count; i++) {\n C1070b op = (C1070b) this.f3532b.get(i);\n int i2 = op.f3539a;\n if (i2 == 1) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7306c(op.f3540b, op.f3542d);\n } else if (i2 == 2) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7308d(op.f3540b, op.f3542d);\n } else if (i2 == 4) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7302a(op.f3540b, op.f3542d, op.f3541c);\n } else if (i2 == 8) {\n this.f3534d.mo7303a(op);\n this.f3534d.mo7301a(op.f3540b, op.f3542d);\n }\n Runnable runnable = this.f3535e;\n if (runnable != null) {\n runnable.run();\n }\n }\n mo8472a((List<C1070b>) this.f3532b);\n this.f3538h = 0;\n }",
"protected final boolean exec()\n/* */ {\n/* 731 */ compute();\n/* 732 */ return false;\n/* */ }",
"@Override\n public float apply$mcFI$sp (int arg0)\n {\n return 0;\n }",
"private void float_x_float_to_float_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n double x = getFloatOperand( nd, vms, 0 ) ;\r\n double y = getFloatOperand( nd, vms, 1 ) ;\r\n \r\n // Compute the value\r\n double value ;\r\n switch( op_code ) {\r\n case ATAN2 :\r\n value = Math.atan2(x, y) ;\r\n break ;\r\n case POW :\r\n // The following is not quite right for Java\r\n // because it will not throw an exception.\r\n value = pow(x, y);\r\n break ;\r\n case HYPOT :\r\n if( x == Double.POSITIVE_INFINITY\r\n || x == Double.NEGATIVE_INFINITY\r\n || y == Double.POSITIVE_INFINITY\r\n || y == Double.NEGATIVE_INFINITY ) {\r\n value = Double.POSITIVE_INFINITY ; }\r\n else if( x == Double.NaN || y == Double.NaN ) {\r\n value = Double.NaN ; }\r\n else {\r\n value = pow(x*x + y*y, 0.5) ; }\r\n break ;\r\n case FMAX :\r\n value = Math.max(x, y) ;\r\n break ;\r\n case FMIN :\r\n value = Math.min(x, y) ;\r\n break ;\r\n case IEEEREM :\r\n value = Math.IEEEremainder(x, y) ;\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n AbstractFloatDatum d = putFloatResult(nd, vms, value);\r\n }",
"@Override\n\tpublic Number operate(Number expr1) {\n\t\treturn null;\n\t}",
"void mo4827a(Context context, C0152fo foVar);",
"abstract public double compute(Composition comp, double e0);",
"void mo3193f();",
"public void fltMotors(){\n\t\tsynchStop(MMXCOMMAND_FLOAT);\n\t}",
"void mo86a(C0163d c0163d);",
"public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }",
"abstract void mo4372a(zzwt zzwt, cu cuVar);",
"private void createFPregMove(Code32 code, int opCode, int cond, int Vm, int Rt, int Rt2, boolean toArm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vm>>1)&0xf) << 16) | ((Vm&1) << 7) | (Rt << 12);\r\n\t\telse code.instructions[code.iCount] |= (Vm&0xf) | ((Vm>>4) << 5) | (Rt << 12) | (Rt2 << 16);\r\n\t\tif (toArm) code.instructions[code.iCount] |= (1 << 20);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public static void c0() {\n\t}",
"private void createFPdataProcImm(Code32 code, int opCode, int cond, int Vd, int imm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | ((imm&0xf0) << 12) | (imm&0xf);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((imm&0xf0) << 12) | (imm&0xf);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private static native void transformFD_0(long src_nativeObj, long t_nativeObj, long dst_nativeObj, boolean fdContour);",
"protected abstract Object doCalculations();",
"public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}",
"@Override\n public abstract void runOpMode();",
"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\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}",
"public void mo3863o() {\n /*\n r46 = this;\n r1 = r46\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0432eo.m1606a(r0)\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r8 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n r18 = -27091337041068(0xffffe75c4e7aab54, double:NaN)\n r20 = 2\n r21 = -26726264820908(0xffffe7b14e7aab54, double:NaN)\n r30 = -26756329591980(0xffffe7aa4e7aab54, double:NaN)\n r32 = -26919538349228(0xffffe7844e7aab54, double:NaN)\n r15 = 4\n r14 = 28\n r44 = -27061272269996(0xffffe7634e7aab54, double:NaN)\n r10 = 0\n java.lang.Integer r11 = java.lang.Integer.valueOf(r10)\n r12 = 1\n java.lang.Integer r13 = java.lang.Integer.valueOf(r12)\n if (r0 == 0) goto L_0x0246\n fo r0 = p000.C0489fo.USB\n go r4 = p000.C0544go.f2400t\n r1.mo3857e(r12, r0, r4)\n go r4 = p000.C0544go.f2344F\n r1.mo3857e(r10, r0, r4)\n ko r5 = r1.f3511b\n java.lang.Boolean r40 = java.lang.Boolean.TRUE\n r5.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x005d\n L_0x005a:\n r43 = r0\n goto L_0x0067\n L_0x005d:\n r25 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r25)\n goto L_0x005a\n L_0x0067:\n boolean r0 = r43.isEmpty()\n if (r0 == 0) goto L_0x0091\n boolean r0 = r4.mo2961a()\n if (r0 != 0) goto L_0x0091\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n r4 = r13\n r5 = r14\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n goto L_0x0438\n L_0x0091:\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 >= r14) goto L_0x0164\n java.lang.String r0 = r4.f2410c\n go r2 = p000.C0544go.f2374g\n if (r4 == r2) goto L_0x00ab\n go r2 = p000.C0544go.f2376h\n if (r4 == r2) goto L_0x00ab\n go r2 = p000.C0544go.f2352N\n if (r4 != r2) goto L_0x00a9\n goto L_0x00ab\n L_0x00a9:\n r2 = 0\n goto L_0x00ac\n L_0x00ab:\n r2 = 1\n L_0x00ac:\n if (r2 == 0) goto L_0x00b7\n r2 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n L_0x00b7:\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class[] r2 = r2.getParameterTypes() // Catch:{ Exception -> 0x00da }\n int r2 = r2.length // Catch:{ Exception -> 0x00da }\n if (r2 != r15) goto L_0x00dc\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class<?> r3 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00da }\n java.lang.Object[] r5 = new java.lang.Object[r15] // Catch:{ Exception -> 0x00da }\n int r4 = r4.f2409b // Catch:{ Exception -> 0x00da }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ Exception -> 0x00da }\n r5[r10] = r4 // Catch:{ Exception -> 0x00da }\n r5[r12] = r13 // Catch:{ Exception -> 0x00da }\n r5[r20] = r43 // Catch:{ Exception -> 0x00da }\n r4 = 3\n r5[r4] = r0 // Catch:{ Exception -> 0x00da }\n java.lang.Object r0 = r2.invoke(r3, r5) // Catch:{ Exception -> 0x00da }\n goto L_0x00f3\n L_0x00da:\n r0 = move-exception\n goto L_0x0104\n L_0x00dc:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00da }\n r3 = 3\n java.lang.Object[] r3 = new java.lang.Object[r3] // Catch:{ Exception -> 0x00da }\n int r4 = r4.f2409b // Catch:{ Exception -> 0x00da }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ Exception -> 0x00da }\n r3[r10] = r4 // Catch:{ Exception -> 0x00da }\n r3[r12] = r13 // Catch:{ Exception -> 0x00da }\n r3[r20] = r43 // Catch:{ Exception -> 0x00da }\n java.lang.Object r0 = r0.invoke(r2, r3) // Catch:{ Exception -> 0x00da }\n L_0x00f3:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x00da }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x00da }\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n goto L_0x0223\n L_0x0104:\n r2 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r8)\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r2, r0)\n if (r17 == 0) goto L_0x0145\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r6 = r3\n r3 = 1\n r12 = r18\n r4 = 28\n r14 = r2\n r2 = 4\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x015f\n L_0x0145:\n r6 = r3\n r2 = 4\n r3 = 1\n r4 = 28\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x015f:\n p000.C0550gu.m1821c(r0)\n goto L_0x0221\n L_0x0164:\n r2 = 4\n r3 = 1\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r15 = 28\n android.media.AudioManager r0 = r5.f3020a\n if (r0 != 0) goto L_0x018b\n r4 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r4)\n r4 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n p000.C0550gu.m1819a(r0, r4)\n r0 = 1\n L_0x0187:\n r4 = 28\n goto L_0x0223\n L_0x018b:\n r16 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r16)\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ all -> 0x01ce }\n int r12 = r12.length // Catch:{ all -> 0x01ce }\n r14 = 3\n if (r12 != r14) goto L_0x01b4\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n android.media.AudioManager r5 = r5.f3020a // Catch:{ all -> 0x01ce }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x01ce }\n int r4 = r4.f2409b // Catch:{ all -> 0x01ce }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ all -> 0x01ce }\n r14[r10] = r4 // Catch:{ all -> 0x01ce }\n r14[r3] = r13 // Catch:{ all -> 0x01ce }\n r14[r20] = r0 // Catch:{ all -> 0x01ce }\n r12.invoke(r5, r14) // Catch:{ all -> 0x01ce }\n goto L_0x01cc\n L_0x01b4:\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n android.media.AudioManager r5 = r5.f3020a // Catch:{ all -> 0x01ce }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x01ce }\n int r4 = r4.f2409b // Catch:{ all -> 0x01ce }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ all -> 0x01ce }\n r14[r10] = r4 // Catch:{ all -> 0x01ce }\n r14[r3] = r13 // Catch:{ all -> 0x01ce }\n r14[r20] = r43 // Catch:{ all -> 0x01ce }\n r4 = 3\n r14[r4] = r0 // Catch:{ all -> 0x01ce }\n r12.invoke(r5, r14) // Catch:{ all -> 0x01ce }\n L_0x01cc:\n r0 = 0\n goto L_0x0187\n L_0x01ce:\n r0 = move-exception\n r4 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r4)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r4 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r4 = p000.C0279ch.m1123t(r0, r4, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r4, r0)\n if (r17 == 0) goto L_0x0207\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r4 = 28\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x021e\n L_0x0207:\n r4 = 28\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x021e:\n p000.C0550gu.m1821c(r0)\n L_0x0221:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0223:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r13\n r37 = r4\n goto L_0x042c\n L_0x0246:\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n fo r0 = p000.C0489fo.USB\n go r5 = p000.C0544go.f2400t\n r1.mo3857e(r10, r0, r5)\n go r12 = p000.C0544go.f2344F\n r1.mo3857e(r3, r0, r12)\n ko r12 = r1.f3511b\n java.lang.Boolean r40 = java.lang.Boolean.TRUE\n r12.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x0270\n L_0x026d:\n r43 = r0\n goto L_0x027a\n L_0x0270:\n r14 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n goto L_0x026d\n L_0x027a:\n boolean r0 = r43.isEmpty()\n if (r0 == 0) goto L_0x02a7\n boolean r0 = r5.mo2961a()\n if (r0 != 0) goto L_0x02a7\n r14 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 16\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r13\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x0438\n L_0x02a7:\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 >= r4) goto L_0x035b\n java.lang.String r0 = r5.f2410c\n go r12 = p000.C0544go.f2374g\n if (r5 == r12) goto L_0x02bc\n go r12 = p000.C0544go.f2376h\n if (r5 == r12) goto L_0x02bc\n go r12 = p000.C0544go.f2352N\n if (r5 != r12) goto L_0x02ba\n goto L_0x02bc\n L_0x02ba:\n r12 = 0\n goto L_0x02bd\n L_0x02bc:\n r12 = 1\n L_0x02bd:\n if (r12 == 0) goto L_0x02c8\n r14 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n L_0x02c8:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ Exception -> 0x030a }\n int r12 = r12.length // Catch:{ Exception -> 0x030a }\n if (r12 != r2) goto L_0x02eb\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class<?> r14 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x030a }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ Exception -> 0x030a }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x030a }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x030a }\n r15[r10] = r5 // Catch:{ Exception -> 0x030a }\n r15[r3] = r13 // Catch:{ Exception -> 0x030a }\n r15[r20] = r43 // Catch:{ Exception -> 0x030a }\n r5 = 3\n r15[r5] = r0 // Catch:{ Exception -> 0x030a }\n java.lang.Object r0 = r12.invoke(r14, r15) // Catch:{ Exception -> 0x030a }\n goto L_0x0302\n L_0x02eb:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x030a }\n r14 = 3\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ Exception -> 0x030a }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x030a }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x030a }\n r14[r10] = r5 // Catch:{ Exception -> 0x030a }\n r14[r3] = r13 // Catch:{ Exception -> 0x030a }\n r14[r20] = r43 // Catch:{ Exception -> 0x030a }\n java.lang.Object r0 = r0.invoke(r12, r14) // Catch:{ Exception -> 0x030a }\n L_0x0302:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x030a }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x030a }\n goto L_0x040b\n L_0x030a:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x0341\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0356\n L_0x0341:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0356:\n p000.C0550gu.m1821c(r0)\n goto L_0x0409\n L_0x035b:\n android.media.AudioManager r0 = r12.f3020a\n if (r0 != 0) goto L_0x0377\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x040b\n L_0x0377:\n r14 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n java.lang.Class[] r14 = r14.getParameterTypes() // Catch:{ all -> 0x03ba }\n int r14 = r14.length // Catch:{ all -> 0x03ba }\n r15 = 3\n if (r14 != r15) goto L_0x03a0\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n android.media.AudioManager r12 = r12.f3020a // Catch:{ all -> 0x03ba }\n java.lang.Object[] r15 = new java.lang.Object[r15] // Catch:{ all -> 0x03ba }\n int r5 = r5.f2409b // Catch:{ all -> 0x03ba }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x03ba }\n r15[r10] = r5 // Catch:{ all -> 0x03ba }\n r15[r3] = r13 // Catch:{ all -> 0x03ba }\n r15[r20] = r0 // Catch:{ all -> 0x03ba }\n r14.invoke(r12, r15) // Catch:{ all -> 0x03ba }\n goto L_0x03b8\n L_0x03a0:\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n android.media.AudioManager r12 = r12.f3020a // Catch:{ all -> 0x03ba }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ all -> 0x03ba }\n int r5 = r5.f2409b // Catch:{ all -> 0x03ba }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x03ba }\n r15[r10] = r5 // Catch:{ all -> 0x03ba }\n r15[r3] = r13 // Catch:{ all -> 0x03ba }\n r15[r20] = r43 // Catch:{ all -> 0x03ba }\n r5 = 3\n r15[r5] = r0 // Catch:{ all -> 0x03ba }\n r14.invoke(r12, r15) // Catch:{ all -> 0x03ba }\n L_0x03b8:\n r0 = 0\n goto L_0x040b\n L_0x03ba:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x03f1\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0406\n L_0x03f1:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0406:\n p000.C0550gu.m1821c(r0)\n L_0x0409:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x040b:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 16\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r13\n L_0x042c:\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r14 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r14, r13, r0)\n r0 = r5\n L_0x0438:\n java.lang.String r5 = r13.toString()\n p000.C0550gu.m1820b(r0, r5)\n r12 = 100\n java.lang.Thread.sleep(r12)\n fo r0 = p000.C0489fo.WIRED_HEADPHONE\n go r5 = p000.C0544go.f2374g\n go[] r12 = new p000.C0544go[r3]\n go r13 = p000.C0544go.f2376h\n r12[r10] = r13\n r1.mo3858f(r3, r0, r5, r12)\n ko r0 = r1.f3511b\n go r12 = p000.C0544go.f2405w\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r14 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r14)\n boolean r14 = r43.isEmpty()\n if (r14 == 0) goto L_0x0490\n boolean r14 = r12.mo2961a()\n if (r14 != 0) goto L_0x0490\n r14 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 19\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x061e\n L_0x0490:\n int r14 = android.os.Build.VERSION.SDK_INT\n if (r14 >= r4) goto L_0x0540\n java.lang.String r0 = r12.f2410c\n if (r12 == r5) goto L_0x04a1\n if (r12 == r13) goto L_0x04a1\n go r5 = p000.C0544go.f2352N\n if (r12 != r5) goto L_0x049f\n goto L_0x04a1\n L_0x049f:\n r5 = 0\n goto L_0x04a2\n L_0x04a1:\n r5 = 1\n L_0x04a2:\n if (r5 == 0) goto L_0x04ad\n r13 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r13)\n L_0x04ad:\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class[] r5 = r5.getParameterTypes() // Catch:{ Exception -> 0x04ef }\n int r5 = r5.length // Catch:{ Exception -> 0x04ef }\n if (r5 != r2) goto L_0x04d0\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04ef }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ Exception -> 0x04ef }\n int r12 = r12.f2409b // Catch:{ Exception -> 0x04ef }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ Exception -> 0x04ef }\n r14[r10] = r12 // Catch:{ Exception -> 0x04ef }\n r14[r3] = r11 // Catch:{ Exception -> 0x04ef }\n r14[r20] = r43 // Catch:{ Exception -> 0x04ef }\n r12 = 3\n r14[r12] = r0 // Catch:{ Exception -> 0x04ef }\n java.lang.Object r0 = r5.invoke(r13, r14) // Catch:{ Exception -> 0x04ef }\n goto L_0x04e7\n L_0x04d0:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class<?> r5 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04ef }\n r13 = 3\n java.lang.Object[] r13 = new java.lang.Object[r13] // Catch:{ Exception -> 0x04ef }\n int r12 = r12.f2409b // Catch:{ Exception -> 0x04ef }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ Exception -> 0x04ef }\n r13[r10] = r12 // Catch:{ Exception -> 0x04ef }\n r13[r3] = r11 // Catch:{ Exception -> 0x04ef }\n r13[r20] = r43 // Catch:{ Exception -> 0x04ef }\n java.lang.Object r0 = r0.invoke(r5, r13) // Catch:{ Exception -> 0x04ef }\n L_0x04e7:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x04ef }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x04ef }\n goto L_0x05f0\n L_0x04ef:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x0526\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x053b\n L_0x0526:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x053b:\n p000.C0550gu.m1821c(r0)\n goto L_0x05ee\n L_0x0540:\n android.media.AudioManager r5 = r0.f3020a\n if (r5 != 0) goto L_0x055c\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x05f0\n L_0x055c:\n r13 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r13)\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x059f }\n int r13 = r13.length // Catch:{ all -> 0x059f }\n r14 = 3\n if (r13 != r14) goto L_0x0585\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059f }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x059f }\n int r12 = r12.f2409b // Catch:{ all -> 0x059f }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ all -> 0x059f }\n r14[r10] = r12 // Catch:{ all -> 0x059f }\n r14[r3] = r11 // Catch:{ all -> 0x059f }\n r14[r20] = r5 // Catch:{ all -> 0x059f }\n r13.invoke(r0, r14) // Catch:{ all -> 0x059f }\n goto L_0x059d\n L_0x0585:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059f }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x059f }\n int r12 = r12.f2409b // Catch:{ all -> 0x059f }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ all -> 0x059f }\n r14[r10] = r12 // Catch:{ all -> 0x059f }\n r14[r3] = r11 // Catch:{ all -> 0x059f }\n r14[r20] = r43 // Catch:{ all -> 0x059f }\n r12 = 3\n r14[r12] = r5 // Catch:{ all -> 0x059f }\n r13.invoke(r0, r14) // Catch:{ all -> 0x059f }\n L_0x059d:\n r0 = 0\n goto L_0x05f0\n L_0x059f:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x05d6\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x05eb\n L_0x05d6:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x05eb:\n p000.C0550gu.m1821c(r0)\n L_0x05ee:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x05f0:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 19\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x061e:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2339A\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0664\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0664\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 23\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x07f6\n L_0x0664:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0718\n java.lang.String r0 = r5.f2410c\n go r12 = p000.C0544go.f2374g\n if (r5 == r12) goto L_0x0679\n go r12 = p000.C0544go.f2376h\n if (r5 == r12) goto L_0x0679\n go r12 = p000.C0544go.f2352N\n if (r5 != r12) goto L_0x0677\n goto L_0x0679\n L_0x0677:\n r12 = 0\n goto L_0x067a\n L_0x0679:\n r12 = 1\n L_0x067a:\n if (r12 == 0) goto L_0x0685\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n L_0x0685:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ Exception -> 0x06c7 }\n int r12 = r12.length // Catch:{ Exception -> 0x06c7 }\n if (r12 != r2) goto L_0x06a8\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c7 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ Exception -> 0x06c7 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c7 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c7 }\n r14[r10] = r5 // Catch:{ Exception -> 0x06c7 }\n r14[r3] = r11 // Catch:{ Exception -> 0x06c7 }\n r14[r20] = r43 // Catch:{ Exception -> 0x06c7 }\n r5 = 3\n r14[r5] = r0 // Catch:{ Exception -> 0x06c7 }\n java.lang.Object r0 = r12.invoke(r13, r14) // Catch:{ Exception -> 0x06c7 }\n goto L_0x06bf\n L_0x06a8:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c7 }\n r13 = 3\n java.lang.Object[] r13 = new java.lang.Object[r13] // Catch:{ Exception -> 0x06c7 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c7 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c7 }\n r13[r10] = r5 // Catch:{ Exception -> 0x06c7 }\n r13[r3] = r11 // Catch:{ Exception -> 0x06c7 }\n r13[r20] = r43 // Catch:{ Exception -> 0x06c7 }\n java.lang.Object r0 = r0.invoke(r12, r13) // Catch:{ Exception -> 0x06c7 }\n L_0x06bf:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x06c7 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x06c7 }\n goto L_0x07c8\n L_0x06c7:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x06fe\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0713\n L_0x06fe:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0713:\n p000.C0550gu.m1821c(r0)\n goto L_0x07c6\n L_0x0718:\n android.media.AudioManager r12 = r0.f3020a\n if (r12 != 0) goto L_0x0734\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x07c8\n L_0x0734:\n r12 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r12)\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x0777 }\n int r13 = r13.length // Catch:{ all -> 0x0777 }\n r14 = 3\n if (r13 != r14) goto L_0x075d\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0777 }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x0777 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0777 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0777 }\n r14[r10] = r5 // Catch:{ all -> 0x0777 }\n r14[r3] = r11 // Catch:{ all -> 0x0777 }\n r14[r20] = r12 // Catch:{ all -> 0x0777 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0777 }\n goto L_0x0775\n L_0x075d:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0777 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x0777 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0777 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0777 }\n r14[r10] = r5 // Catch:{ all -> 0x0777 }\n r14[r3] = r11 // Catch:{ all -> 0x0777 }\n r14[r20] = r43 // Catch:{ all -> 0x0777 }\n r5 = 3\n r14[r5] = r12 // Catch:{ all -> 0x0777 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0777 }\n L_0x0775:\n r0 = 0\n goto L_0x07c8\n L_0x0777:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x07ae\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x07c3\n L_0x07ae:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x07c3:\n p000.C0550gu.m1821c(r0)\n L_0x07c6:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x07c8:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 23\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x07f6:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2370e\n android.content.Context r12 = r1.f3510a\n boolean r12 = p000.C0697ju.m2194q(r12)\n r12 = r12 ^ r3\n java.lang.Boolean r40 = java.lang.Boolean.valueOf(r12)\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0845\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0845\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n r26 = r3\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x09f6\n L_0x0845:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0905\n boolean r0 = r40.booleanValue()\n java.lang.String r12 = r5.f2410c\n go r13 = p000.C0544go.f2374g\n if (r5 == r13) goto L_0x085e\n go r13 = p000.C0544go.f2376h\n if (r5 == r13) goto L_0x085e\n go r13 = p000.C0544go.f2352N\n if (r5 != r13) goto L_0x085c\n goto L_0x085e\n L_0x085c:\n r13 = 0\n goto L_0x085f\n L_0x085e:\n r13 = 1\n L_0x085f:\n if (r13 == 0) goto L_0x086a\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r12)\n L_0x086a:\n java.lang.reflect.Method r13 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ Exception -> 0x08b4 }\n int r13 = r13.length // Catch:{ Exception -> 0x08b4 }\n if (r13 != r2) goto L_0x0891\n java.lang.reflect.Method r13 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class<?> r14 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08b4 }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ Exception -> 0x08b4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08b4 }\n r15[r10] = r5 // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch:{ Exception -> 0x08b4 }\n r15[r3] = r0 // Catch:{ Exception -> 0x08b4 }\n r15[r20] = r43 // Catch:{ Exception -> 0x08b4 }\n r0 = 3\n r15[r0] = r12 // Catch:{ Exception -> 0x08b4 }\n java.lang.Object r0 = r13.invoke(r14, r15) // Catch:{ Exception -> 0x08b4 }\n goto L_0x08ac\n L_0x0891:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08b4 }\n r14 = 3\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ Exception -> 0x08b4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08b4 }\n r14[r10] = r5 // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch:{ Exception -> 0x08b4 }\n r14[r3] = r0 // Catch:{ Exception -> 0x08b4 }\n r14[r20] = r43 // Catch:{ Exception -> 0x08b4 }\n java.lang.Object r0 = r12.invoke(r13, r14) // Catch:{ Exception -> 0x08b4 }\n L_0x08ac:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x08b4 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x08b4 }\n goto L_0x09c8\n L_0x08b4:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x08eb\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0900\n L_0x08eb:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0900:\n p000.C0550gu.m1821c(r0)\n goto L_0x09c6\n L_0x0905:\n android.media.AudioManager r12 = r0.f3020a\n if (r12 != 0) goto L_0x0921\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x09c8\n L_0x0921:\n java.lang.String r12 = r5.f2410c\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x0977 }\n int r13 = r13.length // Catch:{ all -> 0x0977 }\n r14 = 3\n if (r13 != r14) goto L_0x0950\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0977 }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x0977 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0977 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r10] = r5 // Catch:{ all -> 0x0977 }\n boolean r5 = r40.booleanValue() // Catch:{ all -> 0x0977 }\n if (r5 == 0) goto L_0x0943\n r5 = 1\n goto L_0x0944\n L_0x0943:\n r5 = 0\n L_0x0944:\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r3] = r5 // Catch:{ all -> 0x0977 }\n r14[r20] = r12 // Catch:{ all -> 0x0977 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0977 }\n goto L_0x0975\n L_0x0950:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0977 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x0977 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0977 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r10] = r5 // Catch:{ all -> 0x0977 }\n boolean r5 = r40.booleanValue() // Catch:{ all -> 0x0977 }\n if (r5 == 0) goto L_0x0966\n r5 = 1\n goto L_0x0967\n L_0x0966:\n r5 = 0\n L_0x0967:\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r3] = r5 // Catch:{ all -> 0x0977 }\n r14[r20] = r43 // Catch:{ all -> 0x0977 }\n r5 = 3\n r14[r5] = r12 // Catch:{ all -> 0x0977 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0977 }\n L_0x0975:\n r0 = 0\n goto L_0x09c8\n L_0x0977:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x09ae\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x09c3\n L_0x09ae:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x09c3:\n p000.C0550gu.m1821c(r0)\n L_0x09c6:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x09c8:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n r37 = r3\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x09f6:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0697ju.m2181d(r0)\n if (r0 == 0) goto L_0x0be7\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2402u\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0a43\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0a43\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r5 = 17\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r4 = r8\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n goto L_0x0be0\n L_0x0a43:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0afe\n java.lang.String r0 = r5.f2410c\n go r4 = p000.C0544go.f2374g\n if (r5 == r4) goto L_0x0a58\n go r4 = p000.C0544go.f2376h\n if (r5 == r4) goto L_0x0a58\n go r4 = p000.C0544go.f2352N\n if (r5 != r4) goto L_0x0a56\n goto L_0x0a58\n L_0x0a56:\n r4 = 0\n goto L_0x0a59\n L_0x0a58:\n r4 = 1\n L_0x0a59:\n if (r4 == 0) goto L_0x0a64\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n L_0x0a64:\n java.lang.reflect.Method r4 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class[] r4 = r4.getParameterTypes() // Catch:{ Exception -> 0x0aa6 }\n int r4 = r4.length // Catch:{ Exception -> 0x0aa6 }\n if (r4 != r2) goto L_0x0a87\n java.lang.reflect.Method r4 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ Exception -> 0x0aa6 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x0aa6 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x0aa6 }\n r2[r10] = r5 // Catch:{ Exception -> 0x0aa6 }\n r2[r3] = r11 // Catch:{ Exception -> 0x0aa6 }\n r2[r20] = r43 // Catch:{ Exception -> 0x0aa6 }\n r3 = 3\n r2[r3] = r0 // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object r0 = r4.invoke(r12, r2) // Catch:{ Exception -> 0x0aa6 }\n goto L_0x0a9e\n L_0x0a87:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x0aa6 }\n r4 = 3\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ Exception -> 0x0aa6 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x0aa6 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x0aa6 }\n r4[r10] = r5 // Catch:{ Exception -> 0x0aa6 }\n r4[r3] = r11 // Catch:{ Exception -> 0x0aa6 }\n r4[r20] = r43 // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object r0 = r0.invoke(r2, r4) // Catch:{ Exception -> 0x0aa6 }\n L_0x0a9e:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x0aa6 }\n int r10 = r0.intValue() // Catch:{ Exception -> 0x0aa6 }\n goto L_0x0bb2\n L_0x0aa6:\n r0 = move-exception\n r2 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r2, r0)\n if (r17 == 0) goto L_0x0add\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0af2\n L_0x0add:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x0af2:\n p000.C0550gu.m1821c(r0)\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = -999(0xfffffffffffffc19, float:NaN)\n goto L_0x0bb8\n L_0x0afe:\n android.media.AudioManager r4 = r0.f3020a\n if (r4 != 0) goto L_0x0b1f\n r2 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n r2 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n p000.C0550gu.m1819a(r0, r2)\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = 1\n goto L_0x0bb8\n L_0x0b1f:\n r12 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r12)\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ all -> 0x0b61 }\n int r12 = r12.length // Catch:{ all -> 0x0b61 }\n r13 = 3\n if (r12 != r13) goto L_0x0b48\n java.lang.reflect.Method r2 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0b61 }\n java.lang.Object[] r12 = new java.lang.Object[r13] // Catch:{ all -> 0x0b61 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0b61 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0b61 }\n r12[r10] = r5 // Catch:{ all -> 0x0b61 }\n r12[r3] = r11 // Catch:{ all -> 0x0b61 }\n r12[r20] = r4 // Catch:{ all -> 0x0b61 }\n r2.invoke(r0, r12) // Catch:{ all -> 0x0b61 }\n goto L_0x0bb2\n L_0x0b48:\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0b61 }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ all -> 0x0b61 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0b61 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0b61 }\n r2[r10] = r5 // Catch:{ all -> 0x0b61 }\n r2[r3] = r11 // Catch:{ all -> 0x0b61 }\n r2[r20] = r43 // Catch:{ all -> 0x0b61 }\n r3 = 3\n r2[r3] = r4 // Catch:{ all -> 0x0b61 }\n r12.invoke(r0, r2) // Catch:{ all -> 0x0b61 }\n goto L_0x0bb2\n L_0x0b61:\n r0 = move-exception\n r2 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1123t(r0, r2, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r2, r0)\n if (r17 == 0) goto L_0x0b98\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0bad\n L_0x0b98:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x0bad:\n p000.C0550gu.m1821c(r0)\n r10 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0bb2:\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = r10\n L_0x0bb8:\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 17\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r8\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r3 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r3, r8, r0)\n r0 = r2\n L_0x0be0:\n java.lang.String r2 = r8.toString()\n p000.C0550gu.m1820b(r0, r2)\n L_0x0be7:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0936oo.mo3863o():void\");\n }",
"private void xCubed()\n\t{\n\t\tif(Fun == null)\n\t\t{\n\t\t\tsetLeftValue();\n\t\t\tresult = calc.cubed ();\n\t\t\tupdateText();\n\t\t\tsetLeftValue();\n\t\t}\n\t}",
"public void switchTrigFunctions(){\r\n //Three classes Objects for three diff modes\r\n IntegralAngle IA=new IntegralAngle();\r\n NthPower NP=new NthPower();\r\n AngleSum AS=new AngleSum();\r\n //CALCULATIONS ARE BASED ON FACTORIAL AND DOESN'T SUPPORT MORE THAN 20!\r\n \r\n //When SIN is selected\r\n if(trig_combo.getValue().equals(\"SIN\")){\r\n \r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n //Outputting result on the screen\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Sine Expansion -->\");\r\n \r\n //For Sin(nx) mode\r\n if(switch_modes()==-1)\r\n IA.SinnXExpansion(hbox1,upon);\r\n \r\n //For Sin(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.sinPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Sin(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.sinSum(trig_combo,hbox1,upon);\r\n }\r\n \r\n }\r\n //When Cos is Selected\r\n else if(trig_combo.getValue().equals(\"COS\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Cosine Expansion -->\");\r\n \r\n //For Cos(nx) mode\r\n if(switch_modes()==-1)\r\n IA.CosnXExpansion(hbox1,upon);\r\n \r\n //For Cos(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.cosPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Cos(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.cosSum(trig_combo,hbox2,upon);\r\n }\r\n }\r\n //When Tan is Selected\r\n else if(trig_combo.getValue().equals(\"TAN\")){\r\n //Limit Exceeded\r\n if(angleMultiple.get(0)>21){\r\n //Showing error message\r\n type.setTextFill(Color.RED);\r\n type.setText(\"INVALID ANGLE INTEGRAL\");\r\n type.setText(type.getText()+\"\\nIntegral should be less than 20 because of your PC limitations\");\r\n //Resetting Upon Length\r\n upon.setEndX(0);\r\n }\r\n else {\r\n type.setTextFill(Color.GREEN);\r\n type.setText(\"Your Tangent Expansion -->\");\r\n //For Tan(nx) mode\r\n if(switch_modes()==-1)\r\n IA.TannXExpansion(hbox1,hbox2,upon);\r\n \r\n //For Tan(x) Raise to the power n\r\n else if(switch_modes()==-2)\r\n NP.tanPower(power_combo,hbox1,hbox2,upon);\r\n \r\n //For Tan(x1+x2+...)\r\n else if(switch_modes()==-3)\r\n AS.tanSum(trig_combo,hbox1,hbox2,upon);\r\n }\r\n }\r\n }",
"@Override\n\tpublic void tanCongKeXau() {\n\n\t}",
"public static void main(String[] args) {\n\t\tcalculator c=new calculator();\n\t\tc.calculate(2, 3);\n\t\tscientific_calculator sc=new scientific_calculator();\n\t\tsc.calculate(2, 3);\n\t\thybrid_calculator hc=new hybrid_calculator();\n\t\thc.calculate(2, 3);\n\n\t}",
"public String process(Item seg) throws ProcessException {\n\t\t\treturn segCodaCtype(seg, \"f\");\n\t\t}",
"private float viscousFluid(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.viscousFluid(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.viscousFluid(float):float\");\n }",
"public abstract int mo64140f();",
"public static void main(String[] args) {\n\t\n\t\t\n\t\tcalc();\n\t}",
"public void mo14476c() {\n super.mo14476c();\n this.f10138c = 0.0f;\n }",
"void mo9703b(float f, float f2);",
"void mo80457c();",
"@Override\n public float apply$mcFD$sp (double arg0)\n {\n return 0;\n }",
"public static void main(String[] args) throws Exception {\n \t\n \tbyte[] fileData = Files.readAllBytes(Paths.get(new File(System.getProperty(\"user.dir\")+\"/bin/main/re/bytecode/obfuscat/pass/vm/VMRefImpl.class\").toURI()));\n \tDSLParser p = new DSLParser();\n \tMap<String, Function> functions = p.processFile(fileData);\n \tFunction refF = MergedFunction.mergeFunctions(functions, \"process\"); // functions.get(\"process\");\n \t\n \t\n \t\n \tfileData = Files.readAllBytes(Paths.get(new File(System.getProperty(\"user.dir\")+\"/bin/test/re/bytecode/obfuscat/samples/Sample8.class\").toURI()));\n \tp = new DSLParser();\n functions = p.processFile(fileData);\n \n \tFunction f = MergedFunction.mergeFunctions(functions, \"entry\");\n \t\n\t\t//HashMap<String, Object> map = new HashMap<String, Object>();\n\t\t//Function f = Obfuscat.buildFunction(\"Test\", map);\n \t\n \t\n\t\t//HashMap<String, Object> map = new HashMap<String, Object>();\n\t\t//map.put(\"data\", new byte[] { 1, 2, 3, 4 });\n\t\t//Function f = Obfuscat.buildFunction(\"KeyBuilder\", map );\n\t\n \tf = Obfuscat.applyPass(f, \"Flatten\");\n\t\tf = Obfuscat.applyPass(f, \"OperationEncode\");\n\t\t\n\t\tint[] gen = new VMCodeGenerator(new Context(System.currentTimeMillis()), f).generate();\n\n\t\tbyte[] vmcode = new byte[gen.length];\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 0; i < gen.length; i++) {\n\t\t\tsb.append(String.format(\"%02X\", gen[i] & 0xFF));\n\t\t\tvmcode[i] = (byte) gen[i];\n\t\t}\n\n\t\tSystem.out.println(sb.toString());\n\n\t\tSystem.out.println(\"=========================================\");\n\n\t\t\n\t\tSystem.out.println(f.getBlocks().get(0));\n\t\t\n\t\tEmulateFunction eFB = new EmulateFunction(f);\n\t\tbyte[] arr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulate Original => \"+eFB.run(-1, arr));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Java Reference => \"+VMRefImpl.process(vmcode, f.getData() ,new Object[]{0, arr}));\n\t\tSystem.out.println(Arrays.toString(arr));\n\n\t\t\n\t\tEmulateFunction eFRef = new EmulateFunction(refF);\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulated Reference => \"+eFRef.run(-1, gen, f.getData(), new Object[] {0, arr}));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\t\tEmulateFunction eFPass = new EmulateFunction(Obfuscat.applyPass(f, \"Virtualize\"));\n\t\tarr = new byte[] {0, 0, 0, 0};\n\t\tSystem.out.println(\"Emulate Pass VM => \"+eFPass.run(-1, arr ));\n\t\tSystem.out.println(Arrays.toString(arr));\n\t\t\n\n }",
"public void multiplica(int dirOp1, int dirOp2, int dirRes) {\n //traduce casos de direccionamiento indirecto\n dirOp1 = traduceDirIndirecto(dirOp1);\n dirOp2 = traduceDirIndirecto(dirOp2);\n if (ManejadorMemoria.isConstante(dirOp1)) { // OPERANDO 1 CTE\n String valor1 = this.directorioProcedimientos.getConstantes().get(dirOp1).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { //RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n } else if (ManejadorMemoria.isGlobal(dirOp1)) { // OPERANDO 1 GLOBAL\n String valor1 = this.registroGlobal.getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { // OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n } else { // OPERANDO 1 LOCAL\n String valor1 = this.pilaRegistros.peek().getValor(dirOp1);\n if (ManejadorMemoria.isGlobal(dirOp2)) { // OPERANDO 2 GLOBAL\n String valor2 = this.registroGlobal.getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES 2 LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else if (ManejadorMemoria.isConstante(dirOp2)) { // OPERANDO 2 CTE\n String valor2 = this.directorioProcedimientos.getConstantes().get(dirOp2).getValorConstante();\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n } else { //OPERANDO 2 LOCAL\n String valor2 = this.pilaRegistros.peek().getValor(dirOp2);\n if (ManejadorMemoria.isGlobal(dirRes)) { // RES GLOBAL\n this.registroGlobal.guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n } else { // RES LOCAL\n this.pilaRegistros.peek().guardaValor(dirRes, auxOperacion(dirOp1, dirOp2, valor1, valor2, Codigos.MULT));\n }\n }\n }\n }",
"public void execute() {\n if(cb) {\n Main.cb.step(Main.cpu.get8BitImm());\n }\n }",
"public void mo3285a(int i, float f, float f2) {\n C0809e eVar;\n int i2;\n C0807a aVar;\n C0809e eVar2;\n int i3;\n if (this.f2569b == i) {\n if (i == -1) {\n aVar = (C0807a) this.f2572e.valueAt(0);\n } else {\n aVar = (C0807a) this.f2572e.get(this.f2569b);\n }\n if (this.f2570c == -1 || !((C0808b) aVar.f2576b.get(this.f2570c)).mo3289a(f, f2)) {\n int a = aVar.mo3287a(f, f2);\n if (this.f2570c != a) {\n if (a == -1) {\n eVar2 = this.f2568a;\n } else {\n eVar2 = ((C0808b) aVar.f2576b.get(a)).f2584f;\n }\n if (a == -1) {\n i3 = aVar.f2577c;\n } else {\n i3 = ((C0808b) aVar.f2576b.get(a)).f2583e;\n }\n if (eVar2 != null) {\n this.f2570c = a;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(-1, i3);\n }\n eVar2.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(-1, i3);\n }\n }\n }\n }\n } else {\n this.f2569b = i;\n C0807a aVar2 = (C0807a) this.f2572e.get(this.f2569b);\n int a2 = aVar2.mo3287a(f, f2);\n if (a2 == -1) {\n eVar = aVar2.f2578d;\n } else {\n eVar = ((C0808b) aVar2.f2576b.get(a2)).f2584f;\n }\n if (a2 == -1) {\n i2 = aVar2.f2577c;\n } else {\n i2 = ((C0808b) aVar2.f2576b.get(a2)).f2583e;\n }\n if (eVar == null) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"NO Constraint set found ! id=\");\n sb.append(i);\n sb.append(\", dim =\");\n sb.append(f);\n sb.append(\", \");\n sb.append(f2);\n Log.v(\"ConstraintLayoutStates\", sb.toString());\n return;\n }\n this.f2570c = a2;\n if (this.f2574g != null) {\n this.f2574g.mo3309a(i, i2);\n }\n eVar.mo3297b(this.f2571d);\n if (this.f2574g != null) {\n this.f2574g.mo3310b(i, i2);\n }\n }\n }",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"@Override\n public int apply$mcIF$sp (float arg0)\n {\n return 0;\n }",
"public int exec(GerenciadorPerifericos gerenciadorPerifericos, ParametroMacroOperacao param){\n\r\n\t\tBigDecimal quantidadeNecessaria = (BigDecimal)gerenciadorPerifericos.getCmos().ler(CMOS.QUANTIDADE_ITEM_NECESSARIO_PARA_SEPARACAO);\r\n\t\t\r\n\t\tTelaAVInicial tela = (TelaAVInicial) ServiceLocator.getInstancia().getTela(ConstantesTela.TELA_AV_INICIAL);\r\n\t\ttela.setCampoQuantidade(\"\");\r\n\t\ttela.setCampoDesconto(\"\");\r\n\t\tgerenciadorPerifericos.atualizaTela(tela);\r\n\r\n\t\tProduto produto = (Produto)gerenciadorPerifericos.getCmos().ler(CMOS.PRODUTO_ATUAL);\r\n\r\n\t\tBigDecimal quantidade = BigDecimal.ZERO;\r\n\t\t\r\n\t\tif (produto.getTipo().getId().equals(TipoProduto.UNIDADE_VARIAVEL)) {\r\n\t\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, quantidadeNecessaria);\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tEntradaDisplay entrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\twhile (entrada.getTeclaFinalizadora() == Tecla.CODIGO_ENTER) {\r\n\t\t\t\t\tquantidade = new BigDecimal(entrada.getDado());\r\n\t\t\t\t\tif (quantidade.doubleValue() == BigDecimal.ZERO.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Invalida [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\t\t\t\t\t} else if (quantidadeNecessaria.doubleValue() < quantidade.doubleValue()) {\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Quantidade Superior [ESC]\"));\r\n\t\t\t\t\t\tgerenciadorPerifericos.esperaVolta();\r\n\t\t\t\t\t\tgerenciadorPerifericos.getDisplay().setMensagem(MensagensAV.getMensagem(this, \"Digite a Quantidade\"));\r\n\t\t\t\t\t\tentrada = gerenciadorPerifericos.lerDados( new int[] { Tecla.CODIGO_ENTER}, Display.MASCARA_NUMERICA, 8);\r\n\r\n\t\t\t\t\t} else {\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} catch (AppException e) {\r\n\t\t\t\treturn ALTERNATIVA_2;\r\n\t\t\t}\r\n\t\t}\r\n\t\tgerenciadorPerifericos.getCmos().gravar(CMOS.QUANTIDADE_ITEM, BigDecimal.ONE);\r\n\t\t\r\n\t\r\n\t\treturn ALTERNATIVA_1;\r\n\t}",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"public abstract void execute(InputCalc input, Calculator calculator);",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}",
"private FloatCtrl(long param1Long, String param1String1, float param1Float1, float param1Float2, float param1Float3, String param1String2) {\n/* 435 */ this(param1Long, new FCT(param1String1, null), param1Float1, param1Float2, param1Float3, param1String2);\n/* */ }",
"public interface ProcessOutputHandler\n{\n /**\n * Updates the fax job based on the data from the process output.\n * \n * @param faxClientSpi\n * The fax client SPI\n * @param faxJob\n * The fax job object\n * @param processOutput\n * The process output\n * @param faxActionType\n * The fax action type\n */\n public void updateFaxJob(FaxClientSpi faxClientSpi,FaxJob faxJob,ProcessOutput processOutput,FaxActionType faxActionType);\n \n /**\n * This function extracts the fax job status from the process output.\n * \n * @param faxClientSpi\n * The fax client SPI\n * @param processOutput\n * The process output\n * @return The fax job status\n */\n public FaxJobStatus getFaxJobStatus(FaxClientSpi faxClientSpi,ProcessOutput processOutput);\n}",
"public static void main(String[] args) {\n\t\tf1();\n\t}",
"public void execute() throws ProcessException\r\n {\r\n \tdouble input = inputVar.getData().getDoubleValue(); \t\r\n \t\r\n \tswitch (interpolationMethod)\r\n \t{\r\n \t\tcase 1:\r\n \t\t\tcomputeInterpolatedValue1D(input);\r\n \t\t\tbreak; \t\t\t\r\n \t}\r\n \t\r\n \t//System.out.println(getName() + \": \" + input + \" -> \" + outputVars[0].getData().getDoubleValue());\r\n }",
"void mo33732Px();",
"@Override\n public Float compute() {\n\treturn calc();\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"@Override\r\n\tprotected void doF3() {\n\t\t\r\n\t}",
"void mo8712a(C9714a c9714a);",
"@Override protected void execute () throws InvalidInstructionException, MachineHaltException, RegisterSet.InvalidRegisterNumberException, MainMemory.InvalidAddressException\n {\n switch (insOpCode.get()) {\n case 0x0: // ld $i, d .............. 0d-- iiii iiii\n reg.set (insOp0.get(), insOpExt.get());\n break;\n case 0x1: // ld o(rs), rd .......... 1psd (p = o / 4)\n // TODO\n break;\n case 0x2: // ld (rs, ri, 4), rd .... 2sid\n // TODO\n break;\n case 0x3: // st rs, o(rd) .......... 3spd (p = o / 4)\n // TODO\n break;\n case 0x4: // st rs, (rd, ri, 4) .... 4sdi\n // TODO\n break;\n case 0x6: // ALU ................... 6-sd\n\tswitch (insOp0.get()) {\n\t case 0x0: // mov rs, rd ........ 60sd\n // TODO\n\t break;\n\t case 0x1: // add rs, rd ........ 61sd\n // TODO\n\t break;\n\t case 0x2: // and rs, rd ........ 62sd\n // TODO\n\t break;\n\t case 0x3: // inc rr ............ 63-r\n // TODO\n\t break;\n\t case 0x4: // inca rr ........... 64-r\n // TODO\n\t break;\n\t case 0x5: // dec rr ............ 65-r\n // TODO\n\t break;\n\t case 0x6: // deca rr ........... 66-r\n // TODO\n\t break;\n\t case 0x7: // not ............... 67-r\n // TODO\n\t break;\n\t default:\n\t throw new InvalidInstructionException();\n\t}\n\tbreak;\n case 0x7: // sh? $i,rd ............. 7dii\n // TODO\n break;\n case 0xf: // halt or nop ............. f?--\n\tif (insOp0.get() == 0)\n\t // halt .......................... f0--\n\t throw new MachineHaltException();\n\telse if (insOp0.getUnsigned() == 0xf)\n\t // nop ........................... ff--\n\t break;\n break;\n default:\n throw new InvalidInstructionException();\n }\n }",
"public void startCompute();",
"void mo21072c();",
"void mo1687b();",
"boolean mo4834b(C0153fp fpVar);",
"public void mo10714f() {\n if (!this.f10687i) {\n this.f10687i = true;\n this.f10685g.mo10714f();\n }\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFD$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"public void mo1403c() {\n }",
"public void flt()\n\t{\n\t\tupdateState( MotorPort.FLOAT);\n\t}",
"public void compute() {}",
"public void handle(int procent) {\n\t\t\n\t}"
] | [
"0.6802283",
"0.6691847",
"0.5931674",
"0.5765218",
"0.57306874",
"0.5494913",
"0.5447721",
"0.5410107",
"0.54083693",
"0.5256154",
"0.5233742",
"0.5228444",
"0.5222473",
"0.51875705",
"0.51433825",
"0.5123597",
"0.5104303",
"0.5089713",
"0.5070774",
"0.50704247",
"0.5067198",
"0.49979335",
"0.49938104",
"0.49652165",
"0.49615094",
"0.4957352",
"0.49534512",
"0.49425548",
"0.49410287",
"0.49409026",
"0.49284524",
"0.49273235",
"0.4923936",
"0.49184915",
"0.49103722",
"0.48929694",
"0.48909843",
"0.48883092",
"0.48858273",
"0.48849642",
"0.4878387",
"0.48716384",
"0.48566806",
"0.4856555",
"0.48433542",
"0.48366746",
"0.48364756",
"0.4834161",
"0.48324394",
"0.48313743",
"0.48243982",
"0.48240745",
"0.48215678",
"0.48202306",
"0.48199707",
"0.4816374",
"0.48154542",
"0.4807403",
"0.48046693",
"0.48022667",
"0.47860068",
"0.47824",
"0.47816038",
"0.4781553",
"0.47713402",
"0.4764584",
"0.47615945",
"0.47593594",
"0.4757574",
"0.47539598",
"0.4752663",
"0.4743742",
"0.47320604",
"0.47173396",
"0.47156668",
"0.4715515",
"0.47151643",
"0.4708272",
"0.47052678",
"0.47052678",
"0.47002202",
"0.46999836",
"0.46950474",
"0.4694772",
"0.46908516",
"0.4690393",
"0.46889925",
"0.46887785",
"0.46883625",
"0.46876818",
"0.46855083",
"0.46767503",
"0.46744722",
"0.46718854",
"0.46651733",
"0.46643564",
"0.46637702",
"0.46629596",
"0.46583566",
"0.46552116",
"0.4655046"
] | 0.0 | -1 |
/ COP1X (FPU EXTRA) EXECUTION HANDLING | INLINE void handle_cop1x(UINT32 op)
{
if (!(SR & SR_COP1))
generate_exception(EXCEPTION_BADCOP, 1);
switch (op & 0x3f)
{
case 0x00: /* LWXC1 */
FDVALS = RLONG(RSVAL32 + RTVAL32);
break;
case 0x01: /* LDXC1 */
FDVALD = RDOUBLE(RSVAL32 + RTVAL32);
break;
case 0x08: /* SWXC1 */
WDOUBLE(RSVAL32 + RTVAL32, FSVALS);
break;
case 0x09: /* SDXC1 */
WDOUBLE(RSVAL32 + RTVAL32, FSVALD);
break;
case 0x0f: /* PREFX */
break;
case 0x20: /* MADD.S */
FDVALS = FSVALS * FTVALS + FRVALS;
break;
case 0x21: /* MADD.D */
FDVALD = FSVALD * FTVALD + FRVALD;
break;
case 0x28: /* MSUB.S */
FDVALS = FSVALS * FTVALS - FRVALS;
break;
case 0x29: /* MSUB.D */
FDVALD = FSVALD * FTVALD - FRVALD;
break;
case 0x30: /* NMADD.S */
FDVALS = -(FSVALS * FTVALS + FRVALS);
break;
case 0x31: /* NMADD.D */
FDVALD = -(FSVALD * FTVALD + FRVALD);
break;
case 0x38: /* NMSUB.S */
FDVALS = -(FSVALS * FTVALS - FRVALS);
break;
case 0x39: /* NMSUB.D */
FDVALD = -(FSVALD * FTVALD - FRVALD);
break;
case 0x24: /* MADD.W */
case 0x25: /* MADD.L */
case 0x2c: /* MSUB.W */
case 0x2d: /* MSUB.L */
case 0x34: /* NMADD.W */
case 0x35: /* NMADD.L */
case 0x3c: /* NMSUB.W */
case 0x3d: /* NMSUB.L */
default:
fprintf(stderr, "cop1x %X\n", op);
break;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void createCoProcFPU(Code32 code, int opCode, int cond, int Rt, int extReg) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (extReg << 16) | (Rt << 12);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private void createFPdataConv(Code32 code, int opCode, int cond, int Vd, int Vm, int opc, int op, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif ((opc & 4) != 0) {\t// to integer\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\t} else {\t// to floating point\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t}\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void tanCongKeXau() {\n\n\t}",
"private void createFPdataConvPrec(Code32 code, int opCode, int cond, int Vd, int Vm, boolean toSingle) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode | (7 << 16);\r\n\t\tif (toSingle) code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\telse code.instructions[code.iCount] |= ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"FunctionCall getFc();",
"private native double SumaC(double operador_1, double operador_2);",
"public void mo12746c() {\n float f = this.f13706a;\n float f2 = this.f13708c;\n if (f == f2) {\n this.f13718m = this.f13710e.itemView.getTranslationX();\n } else if (this.f13712g != null) {\n this.f13718m = f + (this.f13722q * (f2 - f));\n } else {\n this.f13718m = this.f13714i.mo3670a();\n }\n float f3 = this.f13707b;\n float f4 = this.f13709d;\n if (f3 == f4) {\n this.f13719n = this.f13710e.itemView.getTranslationY();\n } else if (this.f13712g != null) {\n this.f13719n = f3 + (this.f13722q * (f4 - f3));\n } else {\n this.f13719n = this.f13715j.mo3670a();\n }\n }",
"private void createFPdataProc(Code32 code, int opCode, int cond, int Vd, int Vm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"private void createFPdataProc(Code32 code, int opCode, int cond, int Vd, int Vn, int Vm, boolean single) {\r\n\t\tif (opCode == armVmov && (Vd == Vm)) return;\t// mov Vx, Vx makes no sense\t\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (((Vn>>1)&0xf) << 16) | ((Vn&1) << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((Vn&0xf) << 16) | ((Vn>>4) << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"protected final void operationCPX(final int data) {\r\n this.carryFlag = this.x >= data;\r\n this.zeroFlag = this.x == data;\r\n this.signFlag = ((this.x - data) & 0xff) >= 0x80;\r\n }",
"@Override\n\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}",
"private float computeDeceleration(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.computeDeceleration(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.computeDeceleration(float):float\");\n }",
"@Override\n\tpublic Number operate(Number expr1) {\n\t\treturn null;\n\t}",
"public void mo14476c() {\n super.mo14476c();\n this.f10138c = 0.0f;\n }",
"void mo9705c(float f, float f2);",
"public void handler() {\n int t, r;\n t = RM(ea);\n r = konami.cc & CC_C;\n r = (r | t << 1);\n CLR_NZVC();\n SET_FLAGS8(t, t, r);\n WM(ea, r);\n if (konamilog != null) {\n fprintf(konamilog, \"konami#%d rol_ix :PC:%d,PPC:%d,A:%d,B:%d,D:%d,DP:%d,U:%d,S:%d,X:%d,Y:%d,CC:%d,EA:%d\\n\", cpu_getactivecpu(), konami.pc, konami.ppc, A(), B(), konami.d, konami.dp, konami.u, konami.s, konami.x, konami.y, konami.cc, ea);\n }\n\n }",
"void mo33732Px();",
"@Override\n public void apply$mcVF$sp (float arg0)\n {\n\n }",
"public void mo3863o() {\n /*\n r46 = this;\n r1 = r46\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0432eo.m1606a(r0)\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r8 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n r18 = -27091337041068(0xffffe75c4e7aab54, double:NaN)\n r20 = 2\n r21 = -26726264820908(0xffffe7b14e7aab54, double:NaN)\n r30 = -26756329591980(0xffffe7aa4e7aab54, double:NaN)\n r32 = -26919538349228(0xffffe7844e7aab54, double:NaN)\n r15 = 4\n r14 = 28\n r44 = -27061272269996(0xffffe7634e7aab54, double:NaN)\n r10 = 0\n java.lang.Integer r11 = java.lang.Integer.valueOf(r10)\n r12 = 1\n java.lang.Integer r13 = java.lang.Integer.valueOf(r12)\n if (r0 == 0) goto L_0x0246\n fo r0 = p000.C0489fo.USB\n go r4 = p000.C0544go.f2400t\n r1.mo3857e(r12, r0, r4)\n go r4 = p000.C0544go.f2344F\n r1.mo3857e(r10, r0, r4)\n ko r5 = r1.f3511b\n java.lang.Boolean r40 = java.lang.Boolean.TRUE\n r5.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x005d\n L_0x005a:\n r43 = r0\n goto L_0x0067\n L_0x005d:\n r25 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r25)\n goto L_0x005a\n L_0x0067:\n boolean r0 = r43.isEmpty()\n if (r0 == 0) goto L_0x0091\n boolean r0 = r4.mo2961a()\n if (r0 != 0) goto L_0x0091\n java.lang.String r0 = p000.C0200av.m970a(r8)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n r4 = r13\n r5 = r14\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n goto L_0x0438\n L_0x0091:\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 >= r14) goto L_0x0164\n java.lang.String r0 = r4.f2410c\n go r2 = p000.C0544go.f2374g\n if (r4 == r2) goto L_0x00ab\n go r2 = p000.C0544go.f2376h\n if (r4 == r2) goto L_0x00ab\n go r2 = p000.C0544go.f2352N\n if (r4 != r2) goto L_0x00a9\n goto L_0x00ab\n L_0x00a9:\n r2 = 0\n goto L_0x00ac\n L_0x00ab:\n r2 = 1\n L_0x00ac:\n if (r2 == 0) goto L_0x00b7\n r2 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n L_0x00b7:\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class[] r2 = r2.getParameterTypes() // Catch:{ Exception -> 0x00da }\n int r2 = r2.length // Catch:{ Exception -> 0x00da }\n if (r2 != r15) goto L_0x00dc\n java.lang.reflect.Method r2 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class<?> r3 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00da }\n java.lang.Object[] r5 = new java.lang.Object[r15] // Catch:{ Exception -> 0x00da }\n int r4 = r4.f2409b // Catch:{ Exception -> 0x00da }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ Exception -> 0x00da }\n r5[r10] = r4 // Catch:{ Exception -> 0x00da }\n r5[r12] = r13 // Catch:{ Exception -> 0x00da }\n r5[r20] = r43 // Catch:{ Exception -> 0x00da }\n r4 = 3\n r5[r4] = r0 // Catch:{ Exception -> 0x00da }\n java.lang.Object r0 = r2.invoke(r3, r5) // Catch:{ Exception -> 0x00da }\n goto L_0x00f3\n L_0x00da:\n r0 = move-exception\n goto L_0x0104\n L_0x00dc:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x00da }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x00da }\n r3 = 3\n java.lang.Object[] r3 = new java.lang.Object[r3] // Catch:{ Exception -> 0x00da }\n int r4 = r4.f2409b // Catch:{ Exception -> 0x00da }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ Exception -> 0x00da }\n r3[r10] = r4 // Catch:{ Exception -> 0x00da }\n r3[r12] = r13 // Catch:{ Exception -> 0x00da }\n r3[r20] = r43 // Catch:{ Exception -> 0x00da }\n java.lang.Object r0 = r0.invoke(r2, r3) // Catch:{ Exception -> 0x00da }\n L_0x00f3:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x00da }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x00da }\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n goto L_0x0223\n L_0x0104:\n r2 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r8)\n r3 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r3, r2, r0)\n if (r17 == 0) goto L_0x0145\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n r6 = r3\n r3 = 1\n r12 = r18\n r4 = 28\n r14 = r2\n r2 = 4\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x015f\n L_0x0145:\n r6 = r3\n r2 = 4\n r3 = 1\n r4 = 28\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x015f:\n p000.C0550gu.m1821c(r0)\n goto L_0x0221\n L_0x0164:\n r2 = 4\n r3 = 1\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r15 = 28\n android.media.AudioManager r0 = r5.f3020a\n if (r0 != 0) goto L_0x018b\n r4 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r4)\n r4 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n p000.C0550gu.m1819a(r0, r4)\n r0 = 1\n L_0x0187:\n r4 = 28\n goto L_0x0223\n L_0x018b:\n r16 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r16)\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ all -> 0x01ce }\n int r12 = r12.length // Catch:{ all -> 0x01ce }\n r14 = 3\n if (r12 != r14) goto L_0x01b4\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n android.media.AudioManager r5 = r5.f3020a // Catch:{ all -> 0x01ce }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x01ce }\n int r4 = r4.f2409b // Catch:{ all -> 0x01ce }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ all -> 0x01ce }\n r14[r10] = r4 // Catch:{ all -> 0x01ce }\n r14[r3] = r13 // Catch:{ all -> 0x01ce }\n r14[r20] = r0 // Catch:{ all -> 0x01ce }\n r12.invoke(r5, r14) // Catch:{ all -> 0x01ce }\n goto L_0x01cc\n L_0x01b4:\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x01ce }\n android.media.AudioManager r5 = r5.f3020a // Catch:{ all -> 0x01ce }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x01ce }\n int r4 = r4.f2409b // Catch:{ all -> 0x01ce }\n java.lang.Integer r4 = java.lang.Integer.valueOf(r4) // Catch:{ all -> 0x01ce }\n r14[r10] = r4 // Catch:{ all -> 0x01ce }\n r14[r3] = r13 // Catch:{ all -> 0x01ce }\n r14[r20] = r43 // Catch:{ all -> 0x01ce }\n r4 = 3\n r14[r4] = r0 // Catch:{ all -> 0x01ce }\n r12.invoke(r5, r14) // Catch:{ all -> 0x01ce }\n L_0x01cc:\n r0 = 0\n goto L_0x0187\n L_0x01ce:\n r0 = move-exception\n r4 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r4)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r4)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r4 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r4 = p000.C0279ch.m1123t(r0, r4, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r4, r0)\n if (r17 == 0) goto L_0x0207\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r4 = 28\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x021e\n L_0x0207:\n r4 = 28\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x021e:\n p000.C0550gu.m1821c(r0)\n L_0x0221:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0223:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r13\n r37 = r4\n goto L_0x042c\n L_0x0246:\n r2 = 4\n r3 = 1\n r4 = 28\n r6 = -26979667891372(0xffffe7764e7aab54, double:NaN)\n r8 = -26949603120300(0xffffe77d4e7aab54, double:NaN)\n fo r0 = p000.C0489fo.USB\n go r5 = p000.C0544go.f2400t\n r1.mo3857e(r10, r0, r5)\n go r12 = p000.C0544go.f2344F\n r1.mo3857e(r3, r0, r12)\n ko r12 = r1.f3511b\n java.lang.Boolean r40 = java.lang.Boolean.TRUE\n r12.getClass()\n java.lang.String r0 = p000.C0432eo.m1607b(r0)\n if (r0 == 0) goto L_0x0270\n L_0x026d:\n r43 = r0\n goto L_0x027a\n L_0x0270:\n r14 = -22512901903532(0xffffeb864e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n goto L_0x026d\n L_0x027a:\n boolean r0 = r43.isEmpty()\n if (r0 == 0) goto L_0x02a7\n boolean r0 = r5.mo2961a()\n if (r0 != 0) goto L_0x02a7\n r14 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 16\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r13\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x0438\n L_0x02a7:\n int r0 = android.os.Build.VERSION.SDK_INT\n if (r0 >= r4) goto L_0x035b\n java.lang.String r0 = r5.f2410c\n go r12 = p000.C0544go.f2374g\n if (r5 == r12) goto L_0x02bc\n go r12 = p000.C0544go.f2376h\n if (r5 == r12) goto L_0x02bc\n go r12 = p000.C0544go.f2352N\n if (r5 != r12) goto L_0x02ba\n goto L_0x02bc\n L_0x02ba:\n r12 = 0\n goto L_0x02bd\n L_0x02bc:\n r12 = 1\n L_0x02bd:\n if (r12 == 0) goto L_0x02c8\n r14 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n L_0x02c8:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ Exception -> 0x030a }\n int r12 = r12.length // Catch:{ Exception -> 0x030a }\n if (r12 != r2) goto L_0x02eb\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class<?> r14 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x030a }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ Exception -> 0x030a }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x030a }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x030a }\n r15[r10] = r5 // Catch:{ Exception -> 0x030a }\n r15[r3] = r13 // Catch:{ Exception -> 0x030a }\n r15[r20] = r43 // Catch:{ Exception -> 0x030a }\n r5 = 3\n r15[r5] = r0 // Catch:{ Exception -> 0x030a }\n java.lang.Object r0 = r12.invoke(r14, r15) // Catch:{ Exception -> 0x030a }\n goto L_0x0302\n L_0x02eb:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x030a }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x030a }\n r14 = 3\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ Exception -> 0x030a }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x030a }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x030a }\n r14[r10] = r5 // Catch:{ Exception -> 0x030a }\n r14[r3] = r13 // Catch:{ Exception -> 0x030a }\n r14[r20] = r43 // Catch:{ Exception -> 0x030a }\n java.lang.Object r0 = r0.invoke(r12, r14) // Catch:{ Exception -> 0x030a }\n L_0x0302:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x030a }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x030a }\n goto L_0x040b\n L_0x030a:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x0341\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0356\n L_0x0341:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0356:\n p000.C0550gu.m1821c(r0)\n goto L_0x0409\n L_0x035b:\n android.media.AudioManager r0 = r12.f3020a\n if (r0 != 0) goto L_0x0377\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x040b\n L_0x0377:\n r14 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n java.lang.Class[] r14 = r14.getParameterTypes() // Catch:{ all -> 0x03ba }\n int r14 = r14.length // Catch:{ all -> 0x03ba }\n r15 = 3\n if (r14 != r15) goto L_0x03a0\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n android.media.AudioManager r12 = r12.f3020a // Catch:{ all -> 0x03ba }\n java.lang.Object[] r15 = new java.lang.Object[r15] // Catch:{ all -> 0x03ba }\n int r5 = r5.f2409b // Catch:{ all -> 0x03ba }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x03ba }\n r15[r10] = r5 // Catch:{ all -> 0x03ba }\n r15[r3] = r13 // Catch:{ all -> 0x03ba }\n r15[r20] = r0 // Catch:{ all -> 0x03ba }\n r14.invoke(r12, r15) // Catch:{ all -> 0x03ba }\n goto L_0x03b8\n L_0x03a0:\n java.lang.reflect.Method r14 = p000.C0735ko.f3017f // Catch:{ all -> 0x03ba }\n android.media.AudioManager r12 = r12.f3020a // Catch:{ all -> 0x03ba }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ all -> 0x03ba }\n int r5 = r5.f2409b // Catch:{ all -> 0x03ba }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x03ba }\n r15[r10] = r5 // Catch:{ all -> 0x03ba }\n r15[r3] = r13 // Catch:{ all -> 0x03ba }\n r15[r20] = r43 // Catch:{ all -> 0x03ba }\n r5 = 3\n r15[r5] = r0 // Catch:{ all -> 0x03ba }\n r14.invoke(r12, r15) // Catch:{ all -> 0x03ba }\n L_0x03b8:\n r0 = 0\n goto L_0x040b\n L_0x03ba:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x03f1\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0406\n L_0x03f1:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0406:\n p000.C0550gu.m1821c(r0)\n L_0x0409:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x040b:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r13 = new java.lang.StringBuilder\n r13.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 16\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r13\n L_0x042c:\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r14 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r14, r13, r0)\n r0 = r5\n L_0x0438:\n java.lang.String r5 = r13.toString()\n p000.C0550gu.m1820b(r0, r5)\n r12 = 100\n java.lang.Thread.sleep(r12)\n fo r0 = p000.C0489fo.WIRED_HEADPHONE\n go r5 = p000.C0544go.f2374g\n go[] r12 = new p000.C0544go[r3]\n go r13 = p000.C0544go.f2376h\n r12[r10] = r13\n r1.mo3858f(r3, r0, r5, r12)\n ko r0 = r1.f3511b\n go r12 = p000.C0544go.f2405w\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r14 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r14)\n boolean r14 = r43.isEmpty()\n if (r14 == 0) goto L_0x0490\n boolean r14 = r12.mo2961a()\n if (r14 != 0) goto L_0x0490\n r14 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r14)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 19\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x061e\n L_0x0490:\n int r14 = android.os.Build.VERSION.SDK_INT\n if (r14 >= r4) goto L_0x0540\n java.lang.String r0 = r12.f2410c\n if (r12 == r5) goto L_0x04a1\n if (r12 == r13) goto L_0x04a1\n go r5 = p000.C0544go.f2352N\n if (r12 != r5) goto L_0x049f\n goto L_0x04a1\n L_0x049f:\n r5 = 0\n goto L_0x04a2\n L_0x04a1:\n r5 = 1\n L_0x04a2:\n if (r5 == 0) goto L_0x04ad\n r13 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r13)\n L_0x04ad:\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class[] r5 = r5.getParameterTypes() // Catch:{ Exception -> 0x04ef }\n int r5 = r5.length // Catch:{ Exception -> 0x04ef }\n if (r5 != r2) goto L_0x04d0\n java.lang.reflect.Method r5 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04ef }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ Exception -> 0x04ef }\n int r12 = r12.f2409b // Catch:{ Exception -> 0x04ef }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ Exception -> 0x04ef }\n r14[r10] = r12 // Catch:{ Exception -> 0x04ef }\n r14[r3] = r11 // Catch:{ Exception -> 0x04ef }\n r14[r20] = r43 // Catch:{ Exception -> 0x04ef }\n r12 = 3\n r14[r12] = r0 // Catch:{ Exception -> 0x04ef }\n java.lang.Object r0 = r5.invoke(r13, r14) // Catch:{ Exception -> 0x04ef }\n goto L_0x04e7\n L_0x04d0:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x04ef }\n java.lang.Class<?> r5 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x04ef }\n r13 = 3\n java.lang.Object[] r13 = new java.lang.Object[r13] // Catch:{ Exception -> 0x04ef }\n int r12 = r12.f2409b // Catch:{ Exception -> 0x04ef }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ Exception -> 0x04ef }\n r13[r10] = r12 // Catch:{ Exception -> 0x04ef }\n r13[r3] = r11 // Catch:{ Exception -> 0x04ef }\n r13[r20] = r43 // Catch:{ Exception -> 0x04ef }\n java.lang.Object r0 = r0.invoke(r5, r13) // Catch:{ Exception -> 0x04ef }\n L_0x04e7:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x04ef }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x04ef }\n goto L_0x05f0\n L_0x04ef:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x0526\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x053b\n L_0x0526:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x053b:\n p000.C0550gu.m1821c(r0)\n goto L_0x05ee\n L_0x0540:\n android.media.AudioManager r5 = r0.f3020a\n if (r5 != 0) goto L_0x055c\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x05f0\n L_0x055c:\n r13 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r13)\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x059f }\n int r13 = r13.length // Catch:{ all -> 0x059f }\n r14 = 3\n if (r13 != r14) goto L_0x0585\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059f }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x059f }\n int r12 = r12.f2409b // Catch:{ all -> 0x059f }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ all -> 0x059f }\n r14[r10] = r12 // Catch:{ all -> 0x059f }\n r14[r3] = r11 // Catch:{ all -> 0x059f }\n r14[r20] = r5 // Catch:{ all -> 0x059f }\n r13.invoke(r0, r14) // Catch:{ all -> 0x059f }\n goto L_0x059d\n L_0x0585:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x059f }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x059f }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x059f }\n int r12 = r12.f2409b // Catch:{ all -> 0x059f }\n java.lang.Integer r12 = java.lang.Integer.valueOf(r12) // Catch:{ all -> 0x059f }\n r14[r10] = r12 // Catch:{ all -> 0x059f }\n r14[r3] = r11 // Catch:{ all -> 0x059f }\n r14[r20] = r43 // Catch:{ all -> 0x059f }\n r12 = 3\n r14[r12] = r5 // Catch:{ all -> 0x059f }\n r13.invoke(r0, r14) // Catch:{ all -> 0x059f }\n L_0x059d:\n r0 = 0\n goto L_0x05f0\n L_0x059f:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x05d6\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x05eb\n L_0x05d6:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x05eb:\n p000.C0550gu.m1821c(r0)\n L_0x05ee:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x05f0:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 19\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x061e:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2339A\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0664\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0664\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r26 = 23\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x07f6\n L_0x0664:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0718\n java.lang.String r0 = r5.f2410c\n go r12 = p000.C0544go.f2374g\n if (r5 == r12) goto L_0x0679\n go r12 = p000.C0544go.f2376h\n if (r5 == r12) goto L_0x0679\n go r12 = p000.C0544go.f2352N\n if (r5 != r12) goto L_0x0677\n goto L_0x0679\n L_0x0677:\n r12 = 0\n goto L_0x067a\n L_0x0679:\n r12 = 1\n L_0x067a:\n if (r12 == 0) goto L_0x0685\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n L_0x0685:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ Exception -> 0x06c7 }\n int r12 = r12.length // Catch:{ Exception -> 0x06c7 }\n if (r12 != r2) goto L_0x06a8\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c7 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ Exception -> 0x06c7 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c7 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c7 }\n r14[r10] = r5 // Catch:{ Exception -> 0x06c7 }\n r14[r3] = r11 // Catch:{ Exception -> 0x06c7 }\n r14[r20] = r43 // Catch:{ Exception -> 0x06c7 }\n r5 = 3\n r14[r5] = r0 // Catch:{ Exception -> 0x06c7 }\n java.lang.Object r0 = r12.invoke(r13, r14) // Catch:{ Exception -> 0x06c7 }\n goto L_0x06bf\n L_0x06a8:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x06c7 }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x06c7 }\n r13 = 3\n java.lang.Object[] r13 = new java.lang.Object[r13] // Catch:{ Exception -> 0x06c7 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x06c7 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x06c7 }\n r13[r10] = r5 // Catch:{ Exception -> 0x06c7 }\n r13[r3] = r11 // Catch:{ Exception -> 0x06c7 }\n r13[r20] = r43 // Catch:{ Exception -> 0x06c7 }\n java.lang.Object r0 = r0.invoke(r12, r13) // Catch:{ Exception -> 0x06c7 }\n L_0x06bf:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x06c7 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x06c7 }\n goto L_0x07c8\n L_0x06c7:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x06fe\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0713\n L_0x06fe:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0713:\n p000.C0550gu.m1821c(r0)\n goto L_0x07c6\n L_0x0718:\n android.media.AudioManager r12 = r0.f3020a\n if (r12 != 0) goto L_0x0734\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x07c8\n L_0x0734:\n r12 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r12)\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x0777 }\n int r13 = r13.length // Catch:{ all -> 0x0777 }\n r14 = 3\n if (r13 != r14) goto L_0x075d\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0777 }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x0777 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0777 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0777 }\n r14[r10] = r5 // Catch:{ all -> 0x0777 }\n r14[r3] = r11 // Catch:{ all -> 0x0777 }\n r14[r20] = r12 // Catch:{ all -> 0x0777 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0777 }\n goto L_0x0775\n L_0x075d:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0777 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0777 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x0777 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0777 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0777 }\n r14[r10] = r5 // Catch:{ all -> 0x0777 }\n r14[r3] = r11 // Catch:{ all -> 0x0777 }\n r14[r20] = r43 // Catch:{ all -> 0x0777 }\n r5 = 3\n r14[r5] = r12 // Catch:{ all -> 0x0777 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0777 }\n L_0x0775:\n r0 = 0\n goto L_0x07c8\n L_0x0777:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x07ae\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x07c3\n L_0x07ae:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x07c3:\n p000.C0550gu.m1821c(r0)\n L_0x07c6:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x07c8:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 23\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x07f6:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2370e\n android.content.Context r12 = r1.f3510a\n boolean r12 = p000.C0697ju.m2194q(r12)\n r12 = r12 ^ r3\n java.lang.Boolean r40 = java.lang.Boolean.valueOf(r12)\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0845\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0845\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r23 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r27 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r25 = r5\n r26 = r3\n p000.C0279ch.m1112i(r23, r25, r26, r27)\n goto L_0x09f6\n L_0x0845:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0905\n boolean r0 = r40.booleanValue()\n java.lang.String r12 = r5.f2410c\n go r13 = p000.C0544go.f2374g\n if (r5 == r13) goto L_0x085e\n go r13 = p000.C0544go.f2376h\n if (r5 == r13) goto L_0x085e\n go r13 = p000.C0544go.f2352N\n if (r5 != r13) goto L_0x085c\n goto L_0x085e\n L_0x085c:\n r13 = 0\n goto L_0x085f\n L_0x085e:\n r13 = 1\n L_0x085f:\n if (r13 == 0) goto L_0x086a\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r12 = p000.C0200av.m970a(r12)\n L_0x086a:\n java.lang.reflect.Method r13 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ Exception -> 0x08b4 }\n int r13 = r13.length // Catch:{ Exception -> 0x08b4 }\n if (r13 != r2) goto L_0x0891\n java.lang.reflect.Method r13 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class<?> r14 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08b4 }\n java.lang.Object[] r15 = new java.lang.Object[r2] // Catch:{ Exception -> 0x08b4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08b4 }\n r15[r10] = r5 // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch:{ Exception -> 0x08b4 }\n r15[r3] = r0 // Catch:{ Exception -> 0x08b4 }\n r15[r20] = r43 // Catch:{ Exception -> 0x08b4 }\n r0 = 3\n r15[r0] = r12 // Catch:{ Exception -> 0x08b4 }\n java.lang.Object r0 = r13.invoke(r14, r15) // Catch:{ Exception -> 0x08b4 }\n goto L_0x08ac\n L_0x0891:\n java.lang.reflect.Method r12 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x08b4 }\n java.lang.Class<?> r13 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x08b4 }\n r14 = 3\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ Exception -> 0x08b4 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x08b4 }\n r14[r10] = r5 // Catch:{ Exception -> 0x08b4 }\n java.lang.Integer r0 = java.lang.Integer.valueOf(r0) // Catch:{ Exception -> 0x08b4 }\n r14[r3] = r0 // Catch:{ Exception -> 0x08b4 }\n r14[r20] = r43 // Catch:{ Exception -> 0x08b4 }\n java.lang.Object r0 = r12.invoke(r13, r14) // Catch:{ Exception -> 0x08b4 }\n L_0x08ac:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x08b4 }\n int r0 = r0.intValue() // Catch:{ Exception -> 0x08b4 }\n goto L_0x09c8\n L_0x08b4:\n r0 = move-exception\n r12 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1118o(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r5, r0)\n if (r17 == 0) goto L_0x08eb\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0900\n L_0x08eb:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x0900:\n p000.C0550gu.m1821c(r0)\n goto L_0x09c6\n L_0x0905:\n android.media.AudioManager r12 = r0.f3020a\n if (r12 != 0) goto L_0x0921\n r12 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n r12 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r0, r5)\n r0 = 1\n goto L_0x09c8\n L_0x0921:\n java.lang.String r12 = r5.f2410c\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n java.lang.Class[] r13 = r13.getParameterTypes() // Catch:{ all -> 0x0977 }\n int r13 = r13.length // Catch:{ all -> 0x0977 }\n r14 = 3\n if (r13 != r14) goto L_0x0950\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0977 }\n java.lang.Object[] r14 = new java.lang.Object[r14] // Catch:{ all -> 0x0977 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0977 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r10] = r5 // Catch:{ all -> 0x0977 }\n boolean r5 = r40.booleanValue() // Catch:{ all -> 0x0977 }\n if (r5 == 0) goto L_0x0943\n r5 = 1\n goto L_0x0944\n L_0x0943:\n r5 = 0\n L_0x0944:\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r3] = r5 // Catch:{ all -> 0x0977 }\n r14[r20] = r12 // Catch:{ all -> 0x0977 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0977 }\n goto L_0x0975\n L_0x0950:\n java.lang.reflect.Method r13 = p000.C0735ko.f3017f // Catch:{ all -> 0x0977 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0977 }\n java.lang.Object[] r14 = new java.lang.Object[r2] // Catch:{ all -> 0x0977 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0977 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r10] = r5 // Catch:{ all -> 0x0977 }\n boolean r5 = r40.booleanValue() // Catch:{ all -> 0x0977 }\n if (r5 == 0) goto L_0x0966\n r5 = 1\n goto L_0x0967\n L_0x0966:\n r5 = 0\n L_0x0967:\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0977 }\n r14[r3] = r5 // Catch:{ all -> 0x0977 }\n r14[r20] = r43 // Catch:{ all -> 0x0977 }\n r5 = 3\n r14[r5] = r12 // Catch:{ all -> 0x0977 }\n r13.invoke(r0, r14) // Catch:{ all -> 0x0977 }\n L_0x0975:\n r0 = 0\n goto L_0x09c8\n L_0x0977:\n r0 = move-exception\n r12 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r5)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r5 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r5 = p000.C0279ch.m1123t(r0, r5, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r5, r0)\n if (r17 == 0) goto L_0x09ae\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x09c3\n L_0x09ae:\n r12 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n r12 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r14 = p000.C0200av.m970a(r12)\n p000.C0550gu.m1819a(r5, r14)\n L_0x09c3:\n p000.C0550gu.m1821c(r0)\n L_0x09c6:\n r0 = -999(0xfffffffffffffc19, float:NaN)\n L_0x09c8:\n r12 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n java.lang.String r5 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r12 = new java.lang.StringBuilder\n r12.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r12\n r37 = r3\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r13 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r13, r12, r0)\n r0 = r5\n r5 = r12\n L_0x09f6:\n java.lang.String r5 = r5.toString()\n p000.C0550gu.m1820b(r0, r5)\n android.content.Context r0 = r1.f3510a\n boolean r0 = p000.C0697ju.m2181d(r0)\n if (r0 == 0) goto L_0x0be7\n ko r0 = r1.f3511b\n go r5 = p000.C0544go.f2402u\n java.lang.Boolean r40 = java.lang.Boolean.FALSE\n r0.getClass()\n r12 = -22762010006700(0xffffeb4c4e7aab54, double:NaN)\n java.lang.String r43 = p000.C0200av.m970a(r12)\n boolean r12 = r43.isEmpty()\n if (r12 == 0) goto L_0x0a43\n boolean r12 = r5.mo2961a()\n if (r12 != 0) goto L_0x0a43\n r12 = -26107789530284(0xffffe8414e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r2 = -26137854301356(0xffffe83a4e7aab54, double:NaN)\n r5 = 17\n r6 = -26206573778092(0xffffe82a4e7aab54, double:NaN)\n r4 = r8\n p000.C0279ch.m1112i(r2, r4, r5, r6)\n goto L_0x0be0\n L_0x0a43:\n int r12 = android.os.Build.VERSION.SDK_INT\n if (r12 >= r4) goto L_0x0afe\n java.lang.String r0 = r5.f2410c\n go r4 = p000.C0544go.f2374g\n if (r5 == r4) goto L_0x0a58\n go r4 = p000.C0544go.f2376h\n if (r5 == r4) goto L_0x0a58\n go r4 = p000.C0544go.f2352N\n if (r5 != r4) goto L_0x0a56\n goto L_0x0a58\n L_0x0a56:\n r4 = 0\n goto L_0x0a59\n L_0x0a58:\n r4 = 1\n L_0x0a59:\n if (r4 == 0) goto L_0x0a64\n r12 = -25996120380588(0xffffe85b4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r12)\n L_0x0a64:\n java.lang.reflect.Method r4 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class[] r4 = r4.getParameterTypes() // Catch:{ Exception -> 0x0aa6 }\n int r4 = r4.length // Catch:{ Exception -> 0x0aa6 }\n if (r4 != r2) goto L_0x0a87\n java.lang.reflect.Method r4 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class<?> r12 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ Exception -> 0x0aa6 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x0aa6 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x0aa6 }\n r2[r10] = r5 // Catch:{ Exception -> 0x0aa6 }\n r2[r3] = r11 // Catch:{ Exception -> 0x0aa6 }\n r2[r20] = r43 // Catch:{ Exception -> 0x0aa6 }\n r3 = 3\n r2[r3] = r0 // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object r0 = r4.invoke(r12, r2) // Catch:{ Exception -> 0x0aa6 }\n goto L_0x0a9e\n L_0x0a87:\n java.lang.reflect.Method r0 = p000.C0735ko.f3016e // Catch:{ Exception -> 0x0aa6 }\n java.lang.Class<?> r2 = p000.C0735ko.f3015d // Catch:{ Exception -> 0x0aa6 }\n r4 = 3\n java.lang.Object[] r4 = new java.lang.Object[r4] // Catch:{ Exception -> 0x0aa6 }\n int r5 = r5.f2409b // Catch:{ Exception -> 0x0aa6 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ Exception -> 0x0aa6 }\n r4[r10] = r5 // Catch:{ Exception -> 0x0aa6 }\n r4[r3] = r11 // Catch:{ Exception -> 0x0aa6 }\n r4[r20] = r43 // Catch:{ Exception -> 0x0aa6 }\n java.lang.Object r0 = r0.invoke(r2, r4) // Catch:{ Exception -> 0x0aa6 }\n L_0x0a9e:\n java.lang.Integer r0 = (java.lang.Integer) r0 // Catch:{ Exception -> 0x0aa6 }\n int r10 = r0.intValue() // Catch:{ Exception -> 0x0aa6 }\n goto L_0x0bb2\n L_0x0aa6:\n r0 = move-exception\n r2 = -26077724759212(0xffffe8484e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1104a(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1118o(r0, r2, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1107d(r6, r2, r0)\n if (r17 == 0) goto L_0x0add\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0af2\n L_0x0add:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x0af2:\n p000.C0550gu.m1821c(r0)\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = -999(0xfffffffffffffc19, float:NaN)\n goto L_0x0bb8\n L_0x0afe:\n android.media.AudioManager r4 = r0.f3020a\n if (r4 != 0) goto L_0x0b1f\n r2 = -24411277448364(0xffffe9cc4e7aab54, double:NaN)\n java.lang.String r0 = p000.C0200av.m970a(r2)\n r2 = -24441342219436(0xffffe9c54e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n p000.C0550gu.m1819a(r0, r2)\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = 1\n goto L_0x0bb8\n L_0x0b1f:\n r12 = -24518651630764(0xffffe9b34e7aab54, double:NaN)\n java.lang.String r4 = p000.C0200av.m970a(r12)\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n java.lang.Class[] r12 = r12.getParameterTypes() // Catch:{ all -> 0x0b61 }\n int r12 = r12.length // Catch:{ all -> 0x0b61 }\n r13 = 3\n if (r12 != r13) goto L_0x0b48\n java.lang.reflect.Method r2 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0b61 }\n java.lang.Object[] r12 = new java.lang.Object[r13] // Catch:{ all -> 0x0b61 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0b61 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0b61 }\n r12[r10] = r5 // Catch:{ all -> 0x0b61 }\n r12[r3] = r11 // Catch:{ all -> 0x0b61 }\n r12[r20] = r4 // Catch:{ all -> 0x0b61 }\n r2.invoke(r0, r12) // Catch:{ all -> 0x0b61 }\n goto L_0x0bb2\n L_0x0b48:\n java.lang.reflect.Method r12 = p000.C0735ko.f3017f // Catch:{ all -> 0x0b61 }\n android.media.AudioManager r0 = r0.f3020a // Catch:{ all -> 0x0b61 }\n java.lang.Object[] r2 = new java.lang.Object[r2] // Catch:{ all -> 0x0b61 }\n int r5 = r5.f2409b // Catch:{ all -> 0x0b61 }\n java.lang.Integer r5 = java.lang.Integer.valueOf(r5) // Catch:{ all -> 0x0b61 }\n r2[r10] = r5 // Catch:{ all -> 0x0b61 }\n r2[r3] = r11 // Catch:{ all -> 0x0b61 }\n r2[r20] = r43 // Catch:{ all -> 0x0b61 }\n r3 = 3\n r2[r3] = r4 // Catch:{ all -> 0x0b61 }\n r12.invoke(r0, r2) // Catch:{ all -> 0x0b61 }\n goto L_0x0bb2\n L_0x0b61:\n r0 = move-exception\n r2 = -24600256009388(0xffffe9a04e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.String r27 = p000.C0200av.m970a(r21)\n java.lang.StringBuilder r25 = p000.C0279ch.m1106c(r2)\n r23 = r30\n r26 = r0\n r28 = r32\n java.lang.String r2 = p000.C0279ch.m1105b(r23, r25, r26, r27, r28)\n java.lang.String r2 = p000.C0279ch.m1123t(r0, r2, r8)\n java.lang.Throwable r17 = p000.C0279ch.m1108e(r6, r2, r0)\n if (r17 == 0) goto L_0x0b98\n java.lang.String r16 = p000.C0200av.m970a(r44)\n java.lang.StringBuilder r14 = new java.lang.StringBuilder\n r14.<init>()\n r12 = r18\n r15 = r17\n p000.C0279ch.m1115l(r12, r14, r15, r16, r17)\n goto L_0x0bad\n L_0x0b98:\n r2 = -27125696779436(0xffffe7544e7aab54, double:NaN)\n java.lang.String r2 = p000.C0200av.m970a(r2)\n r3 = -27155761550508(0xffffe74d4e7aab54, double:NaN)\n java.lang.String r3 = p000.C0200av.m970a(r3)\n p000.C0550gu.m1819a(r2, r3)\n L_0x0bad:\n p000.C0550gu.m1821c(r0)\n r10 = -999(0xfffffffffffffc19, float:NaN)\n L_0x0bb2:\n r2 = -26322537895084(0xffffe80f4e7aab54, double:NaN)\n r0 = r10\n L_0x0bb8:\n java.lang.String r2 = p000.C0200av.m970a(r2)\n java.lang.StringBuilder r8 = new java.lang.StringBuilder\n r8.<init>()\n r34 = -26352602666156(0xffffe8084e7aab54, double:NaN)\n r37 = 17\n r38 = -26374077502636(0xffffe8034e7aab54, double:NaN)\n r41 = -26386962404524(0xffffe8004e7aab54, double:NaN)\n r36 = r8\n p000.C0279ch.m1113j(r34, r36, r37, r38, r40, r41, r43)\n r3 = -26412732208300(0xffffe7fa4e7aab54, double:NaN)\n p000.C0279ch.m1111h(r3, r8, r0)\n r0 = r2\n L_0x0be0:\n java.lang.String r2 = r8.toString()\n p000.C0550gu.m1820b(r0, r2)\n L_0x0be7:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.C0936oo.mo3863o():void\");\n }",
"public void setFinalX(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e6 in method: android.widget.OppoScroller.setFinalX(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.setFinalX(int):void\");\n }",
"public void mo10714f() {\n if (!this.f10687i) {\n this.f10687i = true;\n this.f10685g.mo10714f();\n }\n }",
"void mo4827a(Context context, C0152fo foVar);",
"public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }",
"private void Incr16BitPC() { PCw += 2; }",
"public abstract C1489f mo1187e();",
"private float caculate(Operation opt, float f1, float f2) {\n\t\tfloat res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\tres = 0;\n\t\t\terr.error(\"No operation in caculating.\");\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"private float caculate(Operation opt, int t1, float f2) {\n\t\tfloat res;\n\t\tfloat tt1 = (float) t1;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = tt1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = tt1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = tt1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = tt1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"protected void forwardNumCodePoints(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.DataBuilderCollationIterator.forwardNumCodePoints(int):void\");\n }",
"public final void mo115213f() {\n if (this.f119286e == 0 || this.f119286e == 2) {\n mo115237d(4);\n }\n }",
"public static void main(String[] args) {\n\t\t//TODO: Hilfsmethoden rufen\n\t\t/*\n\t\tc0_vl();\n\t\tc1_vl();\n\t\tbi_vl();\n\t\tfeec();\n\t\tc0();\n\t\tc1();\n\t\t*/\n\t\tc2();\n\t\t/*\n\t\tmmcc();\n\t\t*/\n\t}",
"public final void mo115214g() {\n if (this.f119286e == 0) {\n mo115237d(2);\n }\n }",
"private float caculate(Operation opt, float f1, int t2) {\n\t\tfloat res;\n\t\tfloat tt2 = (float) t2;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + tt2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - tt2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * tt2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / tt2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\treturn 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public Arginfo visit(MessageSend n, Arginfo argu) {\n Arginfo _ret=null;\n \n int a=prectr++;\n int b=prectr++;\n int c=prectr++;\n int d=prectr++;\n int e=prectr++;\n \n System.out.println(\"BEGIN\\n \");\n System.out.println(\"MOVE TEMP \"+e+\" CALL\\n BEGIN MOVE TEMP \"+a+\" \");\n argu.isreq=1;\n Arginfo temp1=n.f0.accept(this, argu);\n argu.isreq=0;\n \n if(temp1==null){\n \t System.err.println(\"noo \"+n.f2.f0.tokenImage+\" \"+argu.classname+\" \"+argu.methodname);\n \t System.exit(1);\n }\n String classname=temp1.str;\n String classname2=temp1.str;\n String methodname=n.f2.f0.tokenImage;\n while(true){\n \t if(finaltable.symboltable.get(classname).funcdec.containsKey(methodname)){\n \t\t break;\n \t }\n \t else{\n \t\t classname=finaltable.symboltable.get(classname).parent;\n \t\t if(classname==temp1.str||classname==null) break;\n \t }\n }\n String name=classname+\"_\"+methodname;\n //System.err.println(name+\" \"+);\n int dist=finaltable.symboltable.get(classname2).methodnum.get(name);\n \n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n \n System.out.println(\"HLOAD TEMP \"+b+\" TEMP \"+a+\" 0\");\n System.out.println(\"HLOAD TEMP \"+c+\" TEMP \"+b+\" \"+dist);\n System.out.println(\"RETURN TEMP \"+c+\"\\nEND\\n\");\n System.out.println(\"( TEMP \"+a+\" \");\n \n n.f4.accept(this, argu);\n n.f5.accept(this, argu);\n \n \n System.out.println(\" )\\n\"+\"RETURN TEMP \"+e+\"\\nEND\\n\");\n\n \n temp1.str=finaltable.symboltable.get(classname).funcdec.get(methodname).get(0);\n return temp1;\n }",
"public void setFxForwardCosto(double value) {\r\n this.fxForwardCosto = value;\r\n }",
"public float getExecFreq(){return 0.0f;}",
"void mo21075f();",
"public void xuat() {\n\n\t}",
"public String visit(MessageSend n, LLVMRedux argu) throws Exception {\n int i=0;\n String primex_res = n.f0.accept(this, argu);\n Function f = scopeSearch(u.getRegType(primex_res)).getFunction(n.f2.accept(this, argu));\n\n ArrayList<String> localArgList;\n //bitcast\n String bitcast = u.getReg();\n u.println(bitcast+\" = bitcast i8* \"+primex_res+\" to i8***\");\n //load bitcasted to new reg (vtable)\n String load = u.getReg();\n u.println(load+\" = load i8**, i8*** \"+bitcast);\n //getelemntptr from above reg and the functoffset\n String gepr = u.getReg();\n u.println(gepr+\" = getelementptr i8*, i8** \"+load+\", i32 \"+f.offset);\n //get actual funct ptr load new ptr i8* above ptr\n String loader2 = u.getReg();\n u.println(loader2+\" = load i8*, i8** \"+gepr);\n //String functId = ;\n String bitcast2 = u.getReg();\n //if has only one argument copy paste command below without comma and closed parentheses\n if(f.arguments.size()==0){\n u.println(bitcast2+\" = bitcast i8* \"+loader2+\" to \"+u.javaTypeToLLVMType(f.returnType)+\"(i8*)*\");\n }else{\n u.print(bitcast2+\" = bitcast i8* \"+loader2+\" to \"+u.javaTypeToLLVMType(f.returnType)+\"(i8*, \");\n //else c&c c&v comm above & loop\n for (Variable v: f.arguments){\n u.simpleInlinePrint(u.javaTypeToLLVMType(v.type));\n if (!(i==f.arguments.size()-1))u.simpleInlinePrint(\", \");\n i++;\n }\n u.simplePrint(\")*\");\n }\n\n argStack.add(new ArrayList<>());\n argStackIndex++;\n n.f4.accept(this, argu);\n String rvalue= u.getReg(f.returnType);\n if(f.arguments.size()==0){\n u.println(rvalue+\" = call \"+u.javaTypeToLLVMType(f.returnType)+\" \"+bitcast2+\"(i8* \"+primex_res+\")\");\n }else{\n\n u.print(rvalue+\" = call \"+u.javaTypeToLLVMType(f.returnType)+\" \"+bitcast2+\"(i8* \"+primex_res+\", \");\n localArgList = argStack.get(argStackIndex);\n for (i=0;i<f.arguments.size();i++){\n u.simpleInlinePrint(u.javaTypeToLLVMType(f.arguments.get(i).type)+\" \"+localArgList.get(i));\n if (!(i==f.arguments.size()-1))u.simpleInlinePrint(\", \");\n }\n u.simplePrint(\")\");\n }\n\n argStackIndex--;\n argStack.remove(argStack.size()-1);\n return rvalue;\n }",
"private String MiniOneConversion() {\n int reading = ((raw[22] & 0xF0) >> 4) + ((raw[23] & 0x3F) << 4);\n\n Map<String, BigDecimal> variables = new HashMap<String, BigDecimal>();\n variables.put(\"x\", new BigDecimal(reading));\n BigDecimal result = m1Conv.eval(variables);\n return result.setScale(3, RoundingMode.UP) + \"\";\n }",
"private void createFPregMove(Code32 code, int opCode, int cond, int Vm, int Rt, int Rt2, boolean toArm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vm>>1)&0xf) << 16) | ((Vm&1) << 7) | (Rt << 12);\r\n\t\telse code.instructions[code.iCount] |= (Vm&0xf) | ((Vm>>4) << 5) | (Rt << 12) | (Rt2 << 16);\r\n\t\tif (toArm) code.instructions[code.iCount] |= (1 << 20);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"void mo86a(C0163d c0163d);",
"public static void call(int paramInt1, int paramInt2, long paramLong1, long paramLong2, int paramInt3, int paramInt4, int paramInt5, int paramInt6)\n/* */ {\n/* */ try\n/* */ {\n/* 71 */ if ((MainMemory.getI32(paramInt6) <= 0) && (paramLong2 != 0L)) {\n/* */ break label38;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ label38:\n/* */ \n/* */ \n/* */ \n/* 87 */ switch (paramInt2) {\n/* */ case 11: \n/* */ break label482;\n/* */ break;\n/* */ case 12: \n/* */ break label457;\n/* */ break;\n/* */ case 20: \n/* */ break label432;\n/* */ break;\n/* */ case 21: \n/* */ break label407;\n/* */ break;\n/* */ case 30: break label382;\n/* */ break; case 31: break label357;\n/* */ break; case 40: break label332;\n/* */ break; case 41: break label307;\n/* */ break; case 81: break label282;\n/* */ break; case 42: break label257;\n/* */ break; case 82: break; }\n/* 107 */ ffgpfd.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label257:\n/* */ \n/* 114 */ ffgpfe.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label282:\n/* */ \n/* 121 */ ffgpfjj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label307:\n/* */ \n/* 128 */ ffgpfj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label332:\n/* */ \n/* 135 */ ffgpfuj.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label357:\n/* */ \n/* 142 */ ffgpfk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label382:\n/* */ \n/* 149 */ ffgpfuk.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label407:\n/* */ \n/* 156 */ ffgpfi.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label432:\n/* */ \n/* 163 */ ffgpfui.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label457:\n/* */ \n/* 170 */ ffgpfsb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ label482:\n/* */ \n/* 177 */ ffgpfb.call(paramInt1, paramLong1, paramLong2, paramInt3, paramInt4, paramInt5, paramInt6);\n/* */ \n/* */ \n/* */ \n/* */ break label520;\n/* */ \n/* */ \n/* 184 */ MainMemory.setI32(paramInt6, 410);\n/* */ \n/* */ \n/* */ label520:\n/* */ \n/* */ \n/* 190 */ return;\n/* */ }\n/* */ finally {}\n/* */ }",
"void mo8712a(C9714a c9714a);",
"public void enfoncerPlus() {\n\t\ttry {\n\t\t\tthis.op = new Plus();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}",
"public float method_370(double var1) {\r\n float var3 = this.method_369() - this.method_368();\r\n return this.method_368() + var3 * ((float)var1 / 16.0F);\r\n }",
"@Override\n\tpublic void processingInstruction() {\n\t\t\n\t}",
"private void float_to_float_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n double x = getFloatOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n double value ;\r\n switch( op_code ) {\r\n case FABS :\r\n value = x < 0 ? -x : x ;\r\n break ;\r\n case SIN :\r\n value = Math.sin(x) ;\r\n break ;\r\n case COS :\r\n value = Math.cos(x) ;\r\n break ;\r\n case TAN :\r\n value = Math.tan(x) ;\r\n break ;\r\n case ASIN :\r\n value = Math.asin(x) ;\r\n break ;\r\n case ACOS :\r\n value = Math.acos(x) ;\r\n break ;\r\n case ATAN :\r\n value = Math.atan(x) ;\r\n break ;\r\n case EXP :\r\n value = Math.exp(x) ;\r\n break ;\r\n case EXPM1 :\r\n // This won't give as good a result as the real expm1\r\n // function.\r\n value = Math.exp(x-1.0) ;\r\n break ;\r\n case LOG :\r\n value = Math.log(x) ;\r\n break ;\r\n case LOG10 :\r\n value = Math.log(x) / Math.log( 10 ) ;\r\n break ;\r\n case LOG1P :\r\n // This won't give as good a result as the real log1p\r\n // function.\r\n value = Math.log(x+1.0);\r\n break ;\r\n case CEIL :\r\n value = Math.ceil(x) ;\r\n break ;\r\n case FLOOR :\r\n value = Math.floor(x) ;\r\n break ;\r\n case SIGNUM :\r\n if(x == Double.NaN ) {\r\n value = x ; }\r\n else if( x == 0.0 ) {\r\n value = x ; }\r\n else if( x < 0 ) {\r\n value = -1.0 ; }\r\n else {\r\n value = +1.0 ; }\r\n break ;\r\n case ROUND :\r\n value = Math.round(x) ;\r\n break ;\r\n case SQRT :\r\n value = Math.sqrt(x) ;\r\n break ;\r\n case SINH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case COSH :\r\n value = (pow(Math.E, x) + pow(Math.E, -x)) / 2.0 ;\r\n break ;\r\n case TANH :\r\n value = (pow(Math.E, x) - pow(Math.E, -x))\r\n / (pow(Math.E, x) + pow(Math.E, -x)) ;\r\n break ;\r\n case TODEGS :\r\n value = x * 57.2957795 ;\r\n break ;\r\n case TORADS :\r\n value = x / 57.2957795 ;\r\n break ;\r\n case RINT :\r\n value = Math.rint(x) ;\r\n break ;\r\n case CBRT :\r\n if( x == Double.NaN ) value = Double.NaN ;\r\n else if( x < 0 ) value = -pow( -x, 1.0/3.0);\r\n else value = pow(x,1.0/3.0) ;\r\n break ;\r\n case ULP_DOUBLE :\r\n if( x == Double.NaN )\r\n value = Double.NaN ;\r\n else if( x == Double.NEGATIVE_INFINITY || x == Double.POSITIVE_INFINITY )\r\n value = Double.POSITIVE_INFINITY ;\r\n else if( x == 0.0 )\r\n value = Double.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n case ULP_FLOAT :\r\n // The assumption is that converting from a float\r\n // to a double loses nothing and is invertable.\r\n float xf = (float) x ; // Get back to the float.\r\n if( xf == Float.NaN )\r\n value = Float.NaN ;\r\n else if( xf == Float.NEGATIVE_INFINITY || xf == Float.POSITIVE_INFINITY )\r\n value = Float.POSITIVE_INFINITY ;\r\n else if( xf == 0.0 )\r\n value = Float.MIN_VALUE ;\r\n else {\r\n /* TODO\r\n * Fix this algorithm.\r\n */\r\n Assert.apology(\"ulp is not implemented\") ;\r\n value = 0.0 ; }\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n AbstractFloatDatum d = putFloatResult(nd, vms, value);\r\n \r\n // NOTE: mpbl May 2008 I believe this is superfluous\r\n \r\n vms.top().map(nd, d) ;\r\n }",
"private void float_x_float_to_float_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get values of operands\r\n double x = getFloatOperand( nd, vms, 0 ) ;\r\n double y = getFloatOperand( nd, vms, 1 ) ;\r\n \r\n // Compute the value\r\n double value ;\r\n switch( op_code ) {\r\n case ATAN2 :\r\n value = Math.atan2(x, y) ;\r\n break ;\r\n case POW :\r\n // The following is not quite right for Java\r\n // because it will not throw an exception.\r\n value = pow(x, y);\r\n break ;\r\n case HYPOT :\r\n if( x == Double.POSITIVE_INFINITY\r\n || x == Double.NEGATIVE_INFINITY\r\n || y == Double.POSITIVE_INFINITY\r\n || y == Double.NEGATIVE_INFINITY ) {\r\n value = Double.POSITIVE_INFINITY ; }\r\n else if( x == Double.NaN || y == Double.NaN ) {\r\n value = Double.NaN ; }\r\n else {\r\n value = pow(x*x + y*y, 0.5) ; }\r\n break ;\r\n case FMAX :\r\n value = Math.max(x, y) ;\r\n break ;\r\n case FMIN :\r\n value = Math.min(x, y) ;\r\n break ;\r\n case IEEEREM :\r\n value = Math.IEEEremainder(x, y) ;\r\n break ;\r\n default: Assert.check(false) ; value = 0 ;\r\n }\r\n \r\n AbstractFloatDatum d = putFloatResult(nd, vms, value);\r\n }",
"void mo9703b(float f, float f2);",
"private static void calc1(int x) {\n\t\tx+=1;\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 }",
"protected int addCE32(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.addCE32(int):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.addCE32(int):int\");\n }",
"@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}",
"private native void UpdateAcceleration(float infAccelerationX, float infAccelerationY, float infAccelerationZ);",
"public static void classRFC_incremente1() {\n\t\tTerrain.RFC_incremente2();\n\t\tTower.RFC_incremente3();\n\t}",
"@Override protected void compute2() {\n addToPendingCount(_env.peekAry().numCols()-1);\n int nchks=0;\n for (int i =0; i < _argcnt; ++i)\n nchks+=_env.peekAryAt(-i).anyVec().nChunks();\n\n _espc = new long[nchks+1];\n int coffset = _env.peekAry().anyVec().nChunks();\n long[] first_espc = _env.peekAry().anyVec().get_espc();\n System.arraycopy(first_espc, 0, _espc, 0, first_espc.length);\n for (int i=1; i< _argcnt; ++i) {\n long roffset = _espc[coffset];\n long[] espc = _env.peekAryAt(-i).anyVec().get_espc();\n int j = 1;\n for (; j < espc.length; j++)\n _espc[coffset + j] = roffset+ espc[j];\n coffset += _env.peekAryAt(-i).anyVec().nChunks();\n }\n\n Key[] keys = _env.peekAry().anyVec().group().addVecs(_env.peekAry().numCols());\n _vecs = new Vec[keys.length];\n for (int i=0; i<_vecs.length; ++i)\n _vecs[i] = new Vec( keys[i], _espc, null, _env.peekAry().vec(i).get_type());\n\n for (int i=0; i < Math.min(_maxP, _vecs.length); ++i) forkVecTask(i);\n }",
"public void mo1403c() {\n }",
"@Test\n @Tag(\"bm1000\")\n public void testAFIRO() {\n\n // CPLEX MIN OPTIMAL -464.7531428571429 @ { 8E+1, 25.5, 54.5, 84.80, 18.21428571428572, 0, 0, 0, 0, 0, 0, 0, 18.21428571428572, 0, 19.30714285714286, 5E+2, 475.92, 24.08, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 339.9428571428572, 383.9428571428572, 0, 0 }\n\n // Before shift\n // [80.0, 25.499999999999993, 54.5, 0.0, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 0.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n\n // After shift\n // [80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]\n // OPTIMAL -819.096 @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0, 0.0, 0.0, 512.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 556.1746428571429, 0.0, 280.6928571428572, 0.0, 61.78571428571429, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 }\n\n // Mapped\n // OPTIMAL NaN @ { 80.0, 25.499999999999993, 54.5, 84.8, 18.214285714285708, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 18.214285714285708, 0.0, 19.30714285714285, 500.0, 651.9200000000001, 24.079999999999995, 0.0, 214.99999999999997, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 465.65714285714296, 561.6571428571428, 0.0, 0.0 }\n\n // Result\n // OPTIMAL -630.6960000000001 @ { 8E+1, 25.49999999999999, 54.5, 84.8, 18.21428571428571, 0, 0, 0, 0, 0, 0, 0, 18.21428571428571, 0, 19.30714285714285, 5E+2, 651.9200000000001, 24.07999999999999, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 465.657142857143, 561.6571428571428, 0, 0 }\n\n // CPLEX MAX OPTIMAL 3438.2920999999997 @ { 54.5, 0, 54.5, 57.77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5E+2, 483.5955, 16.4045, 0, 215, 0, 0, 0, 0, 0, 0, 0, 0, 345.4253571428571, 0, 0, 389.4253571428571 }\n\n CuteNetlibCase.doTest(\"AFIRO.SIF\", \"-464.7531428571429\", \"3438.2920999999997\", NumberContext.of(7, 4));\n }",
"private ForwardingObjective preProcessVersatile(ForwardingObjective fwd) {\n if (fwd.treatment().clearedDeferred()) {\n // First we create a new treatment without the unsupported action\n TrafficTreatment.Builder noClearTreatment = DefaultTrafficTreatment.builder();\n fwd.treatment().allInstructions().forEach(noClearTreatment::add);\n // Then we create a new forwarding objective without the unsupported action\n ForwardingObjective.Builder noClearFwd = DefaultForwardingObjective.builder(fwd);\n noClearFwd.withTreatment(noClearTreatment.build());\n // According to the operation we substitute fwd with the correct objective\n switch (fwd.op()) {\n case ADD:\n fwd = noClearFwd.add(fwd.context().orElse(null));\n break;\n case REMOVE:\n fwd = noClearFwd.remove(fwd.context().orElse(null));\n break;\n default:\n log.warn(\"Unknown operation {}\", fwd.op());\n }\n }\n return fwd;\n }",
"@Override\r\n\tprotected void doF1() {\n\t\t\r\n\t}",
"private boolean m2248a(java.lang.String r3, com.onesignal.La.C0596a r4) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/318857719.run(Unknown Source)\n*/\n /*\n r2 = this;\n r0 = 0;\n r1 = 1;\n java.lang.Float.parseFloat(r3);\t Catch:{ Throwable -> 0x0007 }\n r3 = 1;\n goto L_0x0008;\n L_0x0007:\n r3 = 0;\n L_0x0008:\n if (r3 != 0) goto L_0x0017;\n L_0x000a:\n r3 = com.onesignal.sa.C0650i.ERROR;\n r1 = \"Missing Google Project number!\\nPlease enter a Google Project number / Sender ID on under App Settings > Android > Configuration on the OneSignal dashboard.\";\n com.onesignal.sa.m1656a(r3, r1);\n r3 = 0;\n r1 = -6;\n r4.mo1392a(r3, r1);\n return r0;\n L_0x0017:\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.Pa.a(java.lang.String, com.onesignal.La$a):boolean\");\n }",
"private float viscousFluid(float r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.OppoScroller.viscousFluid(float):float, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.OppoScroller.viscousFluid(float):float\");\n }",
"public final void mo115211e() {\n if (this.f119286e == 4 || this.f119286e == 0 || this.f119286e == 2) {\n mo115237d(1);\n }\n }",
"public void mo1406f() {\n }",
"@Override\n public void visit(CalcExpr node) {\n }",
"public int incExtern(final int op1) {\n\t\tAdder adder = Adder.newAdder8();\n\t\tint result = adder.add(op1, 1, 0);\n\t\tsetIncrementFlags(adder, result);\n\t\treturn result;\n\t}",
"protected void sequence_CERCLEXZ(ISerializationContext context, CERCLEXZ semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_XZ_IMPL__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_XZ_IMPL__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.CERCLEXZ__RAYON_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.CERCLEXZ__RAYON_CST));\n\t\t\tif (transientValues.isValueTransient(semanticObject, DrnPackage.Literals.DEP_XZ_IMPL__TEMPS_CST) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, DrnPackage.Literals.DEP_XZ_IMPL__TEMPS_CST));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getCERCLEXZAccess().getNameCercleXZKeyword_0_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getCERCLEXZAccess().getRayonCSTINTTerminalRuleCall_4_0(), semanticObject.getRayonCST());\n\t\tfeeder.accept(grammarAccess.getCERCLEXZAccess().getTempsCSTINTTerminalRuleCall_7_0(), semanticObject.getTempsCST());\n\t\tfeeder.finish();\n\t}",
"private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }",
"protected int addCE(long r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.icu.impl.coll.CollationDataBuilder.addCE(long):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.addCE(long):int\");\n }",
"public void panel4Process() {\n\t\tif (equal(\"A \", stateVariable.getZzfunmode())) {\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tcontractDetail.write();\n\t\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0004\", \"\", msgObjIdx, messages);\n\t\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\taddrec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"B \", stateVariable.getZzfunmode())) {\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tupdrec();\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tchgrec0();\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t\tif (equal(\"C \", stateVariable.getZzfunmode())) {\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (! nmfkpinds.funKey03() && ! nmfkpinds.funKey12()) {\n\t\t\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\t\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\t\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t\t\t// BR00002 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\t\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\t\t\tcontractDetail.delete();\n\t\t\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\t\t}\n\t\t\t}\n\t\t\tstateVariable.setShwrec(stateVariable.getSflrrn());\n\t\t\tstateVariable.setDssel(blanks(1));\n\t\t\t// End: For each selection\n\t\t\tzselec0();\n\t\t\tnmfkpinds.setFunKey12(false);\n\t\t\tmainline0();\n\t\t\treturn;\n\t\t}\n\t}",
"private void handleSpecialCases(Command c) {\n\t\tif(c instanceof Repeat) {\n\t\t\tc.addChild(myDictionary.getVariable(Repeat.DEFAULT_VAR_NAME));\n\t\t\tc.addChild(parseCommand(codeReader.next()));\n\t\t}\n\t\telse if(c instanceof MakeUserInstruction) {\n\t\t\tString following;\n\t\t\tString following2;\n\t\t\ttry {\n\t\t\t\tfollowing = codeReader.next();\n\t\t\t\tfollowing2 = codeReader.next();\n\t\t\t}\n\t\t\tcatch(NoSuchElementException e) {\n\t\t\t\tthrow new SLogoException(\"Insufficient arguments for function definition.\");\n\t\t\t}\n\t\t\tFunction f;\n\t\t\tif(commandMatch.matcher(following).matches()) {\n\t\t\t\tf = myDictionary.getFunction(following);\n\t\t\t}\n\t\t\telse throw new SLogoException(\"Attempted to define invalid function.\");\n\t\t\tCommand col = parseCommand(following2);\n\t\t\tc.addChild(f);\n\t\t\tf.replaceArg(col);\n\t\t}\n\t}",
"abstract void mo4372a(zzwt zzwt, cu cuVar);",
"private void createFPdataProcImm(Code32 code, int opCode, int cond, int Vd, int imm, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | ((imm&0xf0) << 12) | (imm&0xf);\r\n\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | ((imm&0xf0) << 12) | (imm&0xf);\r\n\t\tcode.incInstructionNum();\r\n\t}",
"@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}",
"private final void m707c() {\n this.f538w = false;\n ajf ajf = this.f528m;\n ajf.f448f = true;\n ajf.f443a.mo2107a();\n for (akx e : this.f535t) {\n e.mo357e();\n }\n }",
"public static void main(String[] args) {\n\t\tfloat f1=100.0f;\r\n\t\tbyte b1=80;\r\n\t\tchar c='o';\r\n\t\tString s1=\"123\";\r\n\t\tf1=(int)f1<<2;\r\n\t\tb1=(byte)(b1<<2);\r\n\t\t//s1=s1<<2;\r\n\t\tc=(char)(c<<2);//位运算符的操作数只能是整形和字符型\r\n\t\tSystem.out.println(f1);\r\n\t\tSystem.out.println(b1);\r\n\t\tSystem.out.println(c);\r\n\t}",
"void example6() {\n\t\n\t\t// allocate some data\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> data =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.CFLT.construct(), 1234);\n\t\t\n\t\t// elsewhere fill it with something\n\t\t\n\t\t// then define an out of bounds padding that is all zero\n\t\t\n\t\tProcedure2<Long,ComplexFloat32Member> proc = new Procedure2<Long, ComplexFloat32Member>()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void call(Long a, ComplexFloat32Member b) {\n\t\t\t\tb.setR(0);\n\t\t\t\tb.setI(0);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// tie the padding and the zero proc together. reads beyond data's length will return 0\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> padded =\n\t\t\t\tnew ProcedurePaddedDataSource<>(G.CFLT, data, proc);\n\t\t\n\t\t// compute an ideal power of two size that the FFT algorithm will want to use\n\t\t\n\t\tlong idealSize = FFT.enclosingPowerOf2(data.size());\n\t\t\n\t\t// make the FixedsizeDataSource here that satisfies the FFT algorithm's requirements\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> fixedSize =\n\t\t\t\tnew FixedSizeDataSource<>(idealSize, padded);\n\t\t\n\t\t// allocate the same amount of space for the results\n\t\t\n\t\tIndexedDataSource<ComplexFloat32Member> outList =\n\t\t\t\tnom.bdezonia.zorbage.storage.Storage.allocate(G.CFLT.construct(), idealSize);\n\n\t\t// and compute the FFT\n\t\t\n\t\tFFT.compute(G.CFLT, G.FLT, fixedSize, outList);\n\t}",
"@Override\n\tpublic void xuat() {\n\t\tsuper.xuat();\n\t}",
"public abstract int mo64140f();",
"private int iniFunc1(final int x) {\n return (x ^ (x >>> INITIALIZE_SHIFT)) * MAGIC_NUMBER1;\n }",
"@Override\n public float apply$mcFI$sp (int arg0)\n {\n return 0;\n }",
"protected int buildContext(android.icu.impl.coll.CollationDataBuilder.ConditionalCE32 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ea in method: android.icu.impl.coll.CollationDataBuilder.buildContext(android.icu.impl.coll.CollationDataBuilder$ConditionalCE32):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.buildContext(android.icu.impl.coll.CollationDataBuilder$ConditionalCE32):int\");\n }",
"@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}",
"public class_1036 method_2126(class_689 param1, double param2, double param4, double param6, float param8, boolean param9, boolean param10) {\r\n // $FF: Couldn't be decompiled\r\n }",
"protected void additionalProcessing() {\n\t}",
"public static void main(String[] args) {\n Calculator calc=new Calculator();\r\n double operand1,operand2,result=0;\r\n operand1=calc.getOperand1();\r\n operand2=calc.getOperand2();\r\n String op;\r\n op=calc.getOperator();\r\n try\r\n {\r\n \r\n switch(op)\r\n {\r\n case \"+\": Add add=new Add();\r\n result=add.doOperation(operand1, operand2);\r\n break;\r\n case \"-\": Subract sub=new Subract();\r\n result=sub.doOperation(operand1, operand2);\r\n break;\r\n case \"*\": Multiply mul=new Multiply();\r\n result=mul.doOperation(operand1, operand2);\r\n break;\r\n case \"/\": Division div =new Division();\r\n if(operand2==0)\r\n {\r\n \tthrow new ArithmeticException();\r\n }\r\n result=div.doOperation(operand1, operand2);\r\n break;\r\n default: throw new Exception(\"Invalid operation\");\r\n }\r\n \r\n\t }\r\n catch(ArithmeticException e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n }\r\n \r\n catch(Exception e)\r\n {\r\n \t System.out.println(e);\r\n \t \r\n } \r\n finally\r\n {\r\n \t System.exit(0);\r\n }\r\n System.out.print(result);\r\n \r\n}",
"private void m5281e(C1070b op) {\n int tmpStart = op.f3540b;\n int tmpCount = 0;\n int tmpEnd = op.f3540b + op.f3542d;\n int type = -1;\n for (int position = op.f3540b; position < tmpEnd; position++) {\n if (this.f3534d.mo7300a(position) != null || m5280d(position)) {\n if (type == 0) {\n m5282f(mo8468a(4, tmpStart, tmpCount, op.f3541c));\n tmpCount = 0;\n tmpStart = position;\n }\n type = 1;\n } else {\n if (type == 1) {\n m5283g(mo8468a(4, tmpStart, tmpCount, op.f3541c));\n tmpCount = 0;\n tmpStart = position;\n }\n type = 0;\n }\n tmpCount++;\n }\n if (tmpCount != op.f3542d) {\n Object payload = op.f3541c;\n mo8470a(op);\n op = mo8468a(4, tmpStart, tmpCount, payload);\n }\n if (type == 0) {\n m5282f(op);\n } else {\n m5283g(op);\n }\n }",
"private void m5277c(C1070b op) {\n m5283g(op);\n }",
"void mo3193f();",
"public static void main(String[] args) throws FileNotFoundException {\n\n opsMap.put('+', 'A');\n opsMap.put('-', 'S');\n opsMap.put('*', 'M');\n opsMap.put( '/', 'D');\n opsMap.put('@', 'N');\n\n Scanner sc = new Scanner(System.in); boolean pula = true;\n\n while (sc.hasNext()) {\n if (pula) {\n pula = false;\n } else {\n System.out.println();\n }\n\n String line = sc.nextLine();\n\n boolean registerEmpty = true;\n int firstUnusedMemPos = 0;\n\n for (int k = 0; k < line.length(); k++) {\n char curr = line.charAt(k);\n if (!binaryOps.contains(curr + \"\") && !unaryOps.contains(curr + \"\")) {\n // expression\n if (registerEmpty) {\n registerEmpty = false;\n System.out.println(\"L \" + curr);\n } else {\n if ((k < line.length() - 1) && binaryOps.contains(\"\" + line.charAt(k+1))) {\n // TODO fix unary op\n // doing op\n System.out.println(opsMap.get(line.charAt(k+1)) + \" \" + curr);\n k++; // We store on next loop, if needed at all\n } else {\n // adding new primitives\n System.out.println(\"ST $\" + firstUnusedMemPos); firstUnusedMemPos++;\n System.out.println(\"L \" + curr);\n }\n }\n } else if (unaryOps.contains(\"\" + curr)) {\n System.out.println(\"N\");\n } else {\n // if we get here we need to execute op with register\n firstUnusedMemPos--;\n if (curr != '+' && curr != '*') {\n // then we need to flip the order.\n if (curr != '-') {\n System.out.println(\"ST $\"+ (firstUnusedMemPos + 1));\n System.out.println(\"L $\" + firstUnusedMemPos);\n System.out.println(opsMap.get(curr) + \" $\"+ (firstUnusedMemPos + 1));\n } else {\n System.out.println(\"N\");\n System.out.println(\"A $\"+ (firstUnusedMemPos));\n }\n } else System.out.println(opsMap.get(curr) + \" $\"+ firstUnusedMemPos);\n }\n\n }\n }\n }",
"static /* synthetic */ void m200-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap4(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"@Override\r\n\tprotected void doF11() {\n\t\t\r\n\t}",
"public int mo9774x() {\n /*\n r5 = this;\n int r0 = r5.f9082i\n int r1 = r5.f9080g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9079f\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9082i = r3\n return r0\n L_0x0012:\n int r1 = r1 - r3\n r4 = 9\n if (r1 >= r4) goto L_0x0018\n goto L_0x006a\n L_0x0018:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 7\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x0024\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x0070\n L_0x0024:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x0031\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x002f:\n r1 = r3\n goto L_0x0070\n L_0x0031:\n int r1 = r3 + 1\n byte r3 = r2[r3]\n int r3 = r3 << 21\n r0 = r0 ^ r3\n if (r0 >= 0) goto L_0x003f\n r2 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r2\n goto L_0x0070\n L_0x003f:\n int r3 = r1 + 1\n byte r1 = r2[r1]\n int r4 = r1 << 28\n r0 = r0 ^ r4\n r4 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r4\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r3 = r2[r3]\n if (r3 >= 0) goto L_0x0070\n int r3 = r1 + 1\n byte r1 = r2[r1]\n if (r1 >= 0) goto L_0x002f\n int r1 = r3 + 1\n byte r2 = r2[r3]\n if (r2 >= 0) goto L_0x0070\n L_0x006a:\n long r0 = r5.mo9776z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9082i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9774x():int\");\n }",
"public abstract void mo70702a(C30989b c30989b);",
"void floatOp(int b) {\n int blength = (byte)OPC.FLOAT_LENGTH_TABLE.charAt(b);\n int bstack = (byte)OPC.FLOAT_STACK_EFFECT_TABLE.charAt(b);\n sp += bstack;\n write(2, \"floatOp\\n\\t\\t\"+Mnemonics.FLOAT_OPCODES[b]);\n }",
"@Override\n public <A> Function1<A, Object> compose$mcFF$sp (Function1<A, Object> arg0)\n {\n return null;\n }",
"static /* synthetic */ void m201-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.-wrap5(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }",
"@Override\n public int apply$mcIF$sp (float arg0)\n {\n return 0;\n }",
"static void perform_dcx(String passed){\n\t\tint type = type_of_inx(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tdcx_rp(passed);\n\t\t\tbreak;\n\t\t}\n\t}"
] | [
"0.67006624",
"0.5290628",
"0.51883775",
"0.513252",
"0.5094165",
"0.5076649",
"0.50626564",
"0.5051097",
"0.501544",
"0.49706745",
"0.49183413",
"0.49126315",
"0.48925915",
"0.48815194",
"0.48655057",
"0.4811145",
"0.48103577",
"0.47988793",
"0.4778157",
"0.4739401",
"0.4727086",
"0.47254357",
"0.47222337",
"0.47186846",
"0.4711469",
"0.47031233",
"0.46990094",
"0.46780396",
"0.46554923",
"0.46533903",
"0.4645609",
"0.46422845",
"0.46400946",
"0.46200472",
"0.46194324",
"0.46147",
"0.46124887",
"0.4610924",
"0.46102425",
"0.46062702",
"0.45952728",
"0.4590283",
"0.45897597",
"0.45870635",
"0.45823342",
"0.45789826",
"0.45787284",
"0.45769334",
"0.45738477",
"0.45673415",
"0.45672312",
"0.45604357",
"0.4552922",
"0.45461527",
"0.4545629",
"0.45394358",
"0.4536911",
"0.4536467",
"0.4535677",
"0.45294738",
"0.4528764",
"0.4524121",
"0.45235953",
"0.45108023",
"0.45086834",
"0.45082152",
"0.44967946",
"0.4492581",
"0.44924507",
"0.4487415",
"0.44850865",
"0.44752982",
"0.44620913",
"0.4459708",
"0.44587255",
"0.4446956",
"0.4445805",
"0.4445539",
"0.44417512",
"0.44417116",
"0.44367528",
"0.44326472",
"0.4432574",
"0.44274172",
"0.44263342",
"0.4419719",
"0.44191003",
"0.44181594",
"0.4417791",
"0.44166806",
"0.44120562",
"0.44096598",
"0.44086882",
"0.4408075",
"0.44046855",
"0.44030586",
"0.44002092",
"0.4392825",
"0.43915263",
"0.43869436"
] | 0.70490956 | 0 |
/ COP2 (CUSTOM) EXECUTION HANDLING | INLINE UINT64 get_cop2_reg(int idx)
{
return mips3.cpr[2][idx];
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"abstract void exec();",
"@Override\r\n\tprotected void processExecute() {\n\r\n\t}",
"void exec(Env e, AST[] args) { throw H2O.unimpl(\"No exec method for `\" + this.opStr() + \"` during `apply` call\"); }",
"public abstract boolean execute(PlugInContext context) throws Exception;",
"private void handleInvocationCommand() throws IOException, ClassNotFoundException {\r\n final Object context = m_in.readObject();\r\n final String handle = (String) m_in.readObject();\r\n final String methodName = (String) m_in.readObject();\r\n final Class[] paramTypes = (Class[]) m_in.readObject();\r\n final Object[] args = (Object[]) m_in.readObject();\r\n Object result = null;\r\n try {\r\n result = m_invoker.invoke(handle, methodName, paramTypes, args, context);\r\n } catch (Exception e) {\r\n result = e;\r\n }\r\n m_out.writeObject(result);\r\n m_out.flush();\r\n }",
"protected void execute() {\n\t\t\n\t}",
"protected boolean onExecute(String command, long hconv)\n {\n return onExecute(command);\n }",
"protected void execute() {}",
"public abstract String initExecute() throws Exception;",
"@Override\r\n\tpublic void execute(ActionContext ctx) {\n\t\t\r\n\t}",
"protected abstract DispatchOutcome dispatchCommand(CommandEnvelope cmd);",
"public void exec();",
"@Override\n public void Execute() {\n\n }",
"@Override\n\tprotected Output<Param<?>> executeInternal(Input input) {\n\t\tExecutionContext eCtx = handleNewDomainRoot(input.getContext());\n\t\n\t\tParam<Object> actionParam = findParamByCommandOrThrowEx(eCtx);\n\t\t\n\t\tfinal Param<?> outputParam;\n\t\tif(containsFunctionHandler(input)) {\n\t\t\toutputParam = executeFunctionHanlder(input, FunctionHandler.class);\n\t\t} else { \n\t\t\tsetStateNew(eCtx, input.getContext().getCommandMessage(), actionParam);\n\t\t\toutputParam = actionParam;\n\t\t}\n\t\treturn Output.instantiate(input, eCtx, outputParam);\n\t}",
"public void Execute() {\n\n }",
"public void execute(){\n\t\t\n\t}",
"protected abstract void executeHelper();",
"public abstract int execute();",
"protected void execute()\n\t{\n\t}",
"public void execute() {\n\t\t\n\t}",
"Command handleExecute(CommandExecute commandExecute);",
"public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}",
"public interface TaskStartHandler2 {\n\n Object process(OperationContext context);\n}",
"protected abstract void execute(INPUT input);",
"protected void execute() {\n\n\t}",
"protected void execute() {\n\t}",
"protected abstract void execute();",
"abstract protected void execute();",
"protected void execute()\n {\n }",
"private int handleExec(int file, int argc, int argv){\n\t\tSystem.out.print(\"EXECUTING...\");\n\n\t\tif(argc < 1) return INVALID;\n\n\t\tString filename = readVirtualMemoryString(file, MAXSTRLEN);\n\n\t\tif(filename == null || !filename.endsWith(\".coff\")) return INVALID;\n\n\t\tString[] args = new String[argc];\n\n\t\tfor(int i=0; i<argc; i++){\n\t\t\tbyte[] buffer = new byte[4];\n\t\t\tif(readVirtualMemory(argv + i * 4, buffer) != 4)return INVALID;\n\t\t\tif((args[i] = readVirtualMemoryString(Lib.bytesToInt(buffer, 0), MAXSTRLEN)) == null) return INVALID;\n\t\t}\n\n\t\tSystem.out.println(\"Read arguments creating Child... XD\");\n\n\t\t//This is so we can use a child class process like new Process\n\t\tUserProcess child = UserProcess.newUserProcess();\n\t\tSystem.out.println(\"mpid: \"+ processId);\n\t\tSystem.out.println(\"cpid: \"+ child.processId);\n\n\t\tif(child.execute(filename, args)){\n\t\t\tchildProcesses.put(child.processId,child);\n\t\t\tchild.parentProcess = this;\n\t\t\treturn child.processId;\n\t\t}\n\n\t\treturn INVALID;\n\t}",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"protected void execute() {\n }",
"public abstract void doInvoke(InvocationContext ic) throws Exception;",
"protected void execute() {\r\n }",
"public abstract void runOperation();",
"public interface COPSPdpOSDataProcess extends COPSDataProcess {\r\n\r\n /**\r\n * Gets the policies to be uninstalled\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getRemovePolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Gets the policies to be installed\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getInstallPolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Makes a decision from the supplied request data\r\n * @param man The associated request state manager\r\n * @param reqSIs Client specific data suppplied in the COPS request\r\n */\r\n public void setClientData(COPSPdpOSReqStateMan man, List<COPSClientSI> reqSIs);\r\n\r\n /**\r\n * Builds a failure report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void failReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds a success report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void successReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds an accounting report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void acctReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Notifies that no accounting report has been received\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoAcctReport (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies a keep-alive timeout\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that the connection has been closed\r\n * @param man The associated request state manager\r\n * @param error Reason\r\n */\r\n public void notifyClosedConnection (COPSPdpOSReqStateMan man, COPSError error);\r\n\r\n /**\r\n * Notifies that a request state has been deleted\r\n * @param man The associated request state manager\r\n */\r\n public void notifyDeleteRequestState (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that a request state has been closed\r\n * @param man The associated request state manager\r\n */\r\n public void closeRequestState(COPSPdpOSReqStateMan man);\r\n\r\n}",
"@Override\n public String runOperation(CallingContext context, RaptureScript script, String ctx, Map<String, Object> params) {\n try {\n ScriptEngine engine = engineRef.get();\n CompiledScript cScript = getOperationScript(engine, script);\n addStandardContext(context, engine);\n engine.put(PARAMS, params);\n engine.put(CTX, ctx);\n Kernel.getKernel().getStat().registerRunScript();\n return JacksonUtil.jsonFromObject(cScript.eval());\n } catch (ScriptException e) {\n Kernel.writeAuditEntry(EXCEPTION, 2, e.getMessage());\n throw RaptureExceptionFactory.create(HttpURLConnection.HTTP_INTERNAL_ERROR, \"Error running script \" + script.getName(), e);\n }\n }",
"void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}",
"public int execute();",
"@Override\n public void afterProc(OperationContext context) throws CommonException {\n\n }",
"protected abstract void execute(ICustomContext context,\n\t\t\tIProgressMonitor monitor);",
"public abstract void execute();",
"public abstract void execute();",
"public abstract void execute();",
"@Override\n public void execute(IEnvironment env)\n {\n \n }",
"@Override\n\tfinal public void execute(IContext context) {\n\t\tsuper.execute(context);\n\t}",
"public void execute() {\r\n\t\r\n\t}",
"@Override\n\tpublic int execute(Context context) throws BugTrap {\n\t\tsuper.execute(context);\n\t\treturn ExitCode_OK;\n\t}",
"@Override\r\n\tprotected void execute() {\r\n\t}",
"public abstract void execute(String correlationId, ServiceRegistration sr, ServiceInput input);",
"@Override\n public void execute(String[] args) {\n\n }",
"@Override\n\tprotected void doExecute() throws InstructionExecutionException {\n\t\n\t}",
"public void execute() {\n\n\t}",
"public void execute(){\n\n }",
"public void invokeOutFlowHandlers(ProcessContext processContext) throws GFacException;",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"void execute();",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"@ReflectiveMethod(name = \"c\", types = {})\n public void c(){\n NMSWrapper.getInstance().exec(nmsObject);\n }",
"public interface PostCreationProcessor {\n\n /**\n * 执行后处理工作\n */\n void invoke();\n\n}",
"@Override\r\n public void execute(Command command) {\n\r\n }",
"@Override\n\tpublic void execute() {\n\t\t\n\t}",
"CommandResult execute();",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"@Override\n public void doExeception(Map<String, Object> args)\n {\n \n }",
"public void processAction(CIDAction action);",
"public abstract void processExecuteRequest(ContentExecuteRequest contentExecuteRequest, Message message);",
"public void exec(PyObject code) {\n }",
"protected void execute() {\n\n\n \n }",
"private static int localExec(String hostname, String codeFile,\n\t\t\tString classname, String rport, POPAccessPoint jobserv,\n\t\t\tPOPAccessPoint appserv, POPAccessPoint objaccess,\n\t\t\tObjectDescription od) {\n\t\t\n\t\tboolean isLocal = Util.isLocal(hostname);\n\t\t/*if (!isLocal) {\n\t\t\treturn -1;\n\t\t}*/\n\t\tif (codeFile == null || codeFile.length() == 0){\n\t\t\treturn -1;\n\t\t}\n\t\tcodeFile = codeFile.trim();\n\n\t\tArrayList<String> argvList = new ArrayList<String>();\n\n\t\tArrayList<String> codeList = Util.splitTheCommand(codeFile);\n\t\targvList.addAll(codeList);\n\t\t\n\t\t/*if(od.getMemoryMin() > 0){\n\t\t\targvList.add(1, \"-Xms\"+od.getMemoryMin()+\"m\");\n\t\t}\n\t\tif(od.getMemoryReq() > 0){\n\t\t\targvList.add(1, \"-Xmx\"+od.getMemoryReq()+\"m\");\n\t\t}*/\n\t\t\n\t\tif(codeFile.startsWith(\"java\") && Configuration.ACTIVATE_JMX){\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.port=\"+(int)(Math.random() * 1000+3000));\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.ssl=false\");\n\t\t\targvList.add(1, \"-Dcom.sun.management.jmxremote.authenticate=false\");\n\t\t}\n\t\t\n\t\tif(od.getJVMParameters() != null && !od.getJVMParameters().isEmpty()){\n\t\t\tString [] jvmParameters = od.getJVMParameters().split(\" \");\n\t\t\tfor(String parameter: jvmParameters){\n\t\t\t\targvList.add(1, parameter);\n\t\t\t}\n\t\t}\n\t\t\n\t\tComboxAllocateSocket allocateCombox = new ComboxAllocateSocket();\n\t\tString callbackString = String.format(Broker.CALLBACK_PREFIX+\"%s\", allocateCombox.getUrl());\n\t\targvList.add(callbackString);\n\t\tif (classname != null && classname.length() > 0) {\n\t\t\tString objectString = String.format(Broker.OBJECT_NAME_PREFIX+\"%s\", classname);\n\t\t\targvList.add(objectString);\n\t\t}\n\t\tif (appserv != null && !appserv.isEmpty()) {\n\t\t\tString appString = String.format(Broker.APPSERVICE_PREFIX+\"%s\", appserv.toString());\n\t\t\targvList.add(appString);\n\t\t}\n\t\tif (jobserv != null && !jobserv.isEmpty()) {\n\t\t\tString jobString = String.format(\"-jobservice=%s\", jobserv.toString());\n\t\t\targvList.add(jobString);\n\t\t}\n\n\t\tif (rport != null && rport.length() > 0) {\n\t\t\tString portString = String.format(\"-socket_port=%s\", rport);\n\t\t\targvList.add(portString);\n\t\t}\n\t\t\n\t\tint ret = -1;\n\t\t\n\t\t//Allow local objects to be declared as remote to test remote object creation locally\n\t\tif(hostname.equals(POPObjectDescription.LOCAL_DEBUG_URL)){\n\t\t\thostname = \"localhost\";\n\t\t}\n\t\t\n\t\tif(isLocal){\n\t\t\tret = SystemUtil.runCmd(argvList);\n\t\t}else{\n\t\t\tswitch(od.getConnectionType()){\n\t\t\tcase ANY:\n\t\t\tcase SSH:\n\t\t\t\tret = SystemUtil.runRemoteCmd(hostname, argvList);\n\t\t\t\tbreak;\n\t\t\tcase DEAMON:\n\t\t\t\tPOPJavaDeamonConnector connector;\n\t\t\t\ttry {\n\t\t\t\t\tconnector = new POPJavaDeamonConnector(hostname);\n\t\t\t\t\tif(connector.sendCommand(od.getConnectionSecret(), argvList)){\n\t\t\t\t\t\tret = 0;\n\t\t\t\t\t}\n\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (ret == -1) {\n\t\t\treturn ret;\n\t\t}\n\t\t\n\t\tallocateCombox.startToAcceptOneConnection();\n\t\t\n\t\tif(!allocateCombox.isComboxConnected()){\n\t\t\tLogWriter.writeDebugInfo(\"Could not connect broker\");\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\tBufferXDR buffer = new BufferXDR();\n\t\tint result = 0;\n\n\t\tif (allocateCombox.receive(buffer) > 0) {\n\t\t\tint status = buffer.getInt();\n\t\t\tString str = buffer.getString();\n\t\t\t\n\t\t\tif (status == 0){\n\t\t\t\tobjaccess.setAccessString(str);\n\t\t\t}else{\n\t\t\t\tresult = status;\n\t\t\t}\n\t\t} else {\n\t\t\tresult = -1;\n\t\t}\n\n\t\tallocateCombox.close();\n\t\t\n\t\treturn result;\n\t}",
"@Override\n public void execute(RuntimeStep exe, RuntimePlan plan) {\n }",
"abstract public void execute(FunctionContext context) throws Exception;",
"void execSetupContext(ExecProcess ctx);",
"public void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n protected void execute() {\n }",
"@Override\n\tsynchronized void execute() {\n\t\t_dataOUTPipe.dataIN(op1.getText());\n\t\t_dataOUTPipe.dataIN(op2.getText());\n\t\t_dataOUTPipe.dataIN(op.getText());\n\t}",
"abstract protected Object invoke0 (Object obj, Object[] args);",
"public void interpreter(Context context){\n System.out.println(\"abstract interpr of context \" +\n \"and call teminal or not terminal context\");\n context.arrayOfActions.get(0).interpreter(context);\n context.arrayOfNumbers.get(0).interpreter(context);\n\n }",
"@Override\n public void execute() {}",
"public void execute();",
"public void execute();",
"public void execute();",
"public void execute();",
"protected void execute() {\n \t\n }"
] | [
"0.6210035",
"0.6131817",
"0.60463417",
"0.60129344",
"0.6012811",
"0.5896481",
"0.5894432",
"0.5884478",
"0.58309853",
"0.57866645",
"0.57845306",
"0.5767402",
"0.57451826",
"0.5744674",
"0.5736322",
"0.5731132",
"0.57241595",
"0.5674554",
"0.56503236",
"0.56322706",
"0.5626976",
"0.5623323",
"0.5616189",
"0.557606",
"0.5569676",
"0.55558413",
"0.5545417",
"0.5535677",
"0.55356413",
"0.5524874",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.55244976",
"0.5510598",
"0.55047303",
"0.54885536",
"0.54534584",
"0.54213476",
"0.5418823",
"0.5416018",
"0.5415442",
"0.54149127",
"0.5404653",
"0.5404653",
"0.5404653",
"0.54037225",
"0.5399343",
"0.5394205",
"0.53921235",
"0.5389019",
"0.5387135",
"0.53856",
"0.5371882",
"0.5367986",
"0.53627336",
"0.53599864",
"0.5358634",
"0.5358634",
"0.5358634",
"0.5358634",
"0.5358634",
"0.5358634",
"0.5358634",
"0.5356037",
"0.5356037",
"0.53490955",
"0.5347693",
"0.5344548",
"0.53426754",
"0.53192973",
"0.53192973",
"0.5313821",
"0.53059995",
"0.5301648",
"0.52936053",
"0.5293064",
"0.52880627",
"0.5281614",
"0.5271245",
"0.5267137",
"0.52642673",
"0.52642673",
"0.52642673",
"0.52637815",
"0.5260718",
"0.52595544",
"0.5245687",
"0.52411044",
"0.52411044",
"0.52411044",
"0.52411044",
"0.5239493"
] | 0.0 | -1 |
/ CORE EXECUTION LOOP | int mips3_execute(int cycles)
{
//printf("mips3_execute (PC=%08X)\n", mips3.pc);
/* count cycles and interrupt cycles */
mips3_icount = cycles;
mips3_icount -= mips3.interrupt_cycles;
mips3.interrupt_cycles = 0;
if (mips3.bigendian)
change_pc32bedw(mips3.pc);
else
change_pc32bedw(mips3.pc);
/* check for IRQs */
check_irqs();
/* core execution loop */
do
{
UINT32 op;
UINT64 temp64;
int temp;
/* debugging */
mips3.ppc = mips3.pc;
CALL_MAME_DEBUG;
/* instruction fetch */
op = ROPCODE(mips3.pc);
/* adjust for next PC */
if (mips3.nextpc != ~0)
{
mips3.pc = mips3.nextpc;
mips3.nextpc = ~0;
if (mips3.bigendian)
change_pc32bedw(mips3.pc);
else
change_pc32bedw(mips3.pc);
}
else
mips3.pc += 4;
/* parse the instruction */
switch (op >> 26)
{
case 0x00: /* SPECIAL */
switch (op & 63)
{
case 0x00: /* SLL */ if (RDREG) RDVAL64 = (INT32)(RTVAL32 << SHIFT); break;
case 0x01: /* MOVF - R5000*/if (RDREG && mips3.cf[1][(op >> 18) & 7] == ((op >> 16) & 1)) RDVAL64 = RSVAL64; break;
case 0x02: /* SRL */ if (RDREG) RDVAL64 = (INT32)(RTVAL32 >> SHIFT); break;
case 0x03: /* SRA */ if (RDREG) RDVAL64 = (INT32)RTVAL32 >> SHIFT; break;
case 0x04: /* SLLV */ if (RDREG) RDVAL64 = (INT32)(RTVAL32 << (RSVAL32 & 31)); break;
case 0x06: /* SRLV */ if (RDREG) RDVAL64 = (INT32)(RTVAL32 >> (RSVAL32 & 31)); break;
case 0x07: /* SRAV */ if (RDREG) RDVAL64 = (INT32)RTVAL32 >> (RSVAL32 & 31); break;
case 0x08: /* JR */ SETPC(RSVAL32); break;
case 0x09: /* JALR */ SETPCL(RSVAL32,RDREG); break;
case 0x0a: /* MOVZ - R5000 */if (RTVAL64 == 0) { if (RDREG) RDVAL64 = RSVAL64; } break;
case 0x0b: /* MOVN - R5000 */if (RTVAL64 != 0) { if (RDREG) RDVAL64 = RSVAL64; } break;
case 0x0c: /* SYSCALL */ generate_exception(EXCEPTION_SYSCALL, 1); break;
case 0x0d: /* BREAK */ generate_exception(EXCEPTION_BREAK, 1); break;
case 0x0f: /* SYNC */ /* effective no-op */ break;
case 0x10: /* MFHI */ if (RDREG) RDVAL64 = HIVAL64; break;
case 0x11: /* MTHI */ HIVAL64 = RSVAL64; break;
case 0x12: /* MFLO */ if (RDREG) RDVAL64 = LOVAL64; break;
case 0x13: /* MTLO */ LOVAL64 = RSVAL64; break;
case 0x14: /* DSLLV */ if (RDREG) RDVAL64 = RTVAL64 << (RSVAL32 & 63); break;
case 0x16: /* DSRLV */ if (RDREG) RDVAL64 = RTVAL64 >> (RSVAL32 & 63); break;
case 0x17: /* DSRAV */ if (RDREG) RDVAL64 = (INT64)RTVAL64 >> (RSVAL32 & 63); break;
case 0x18: /* MULT */
temp64 = (INT64)(INT32)RSVAL32 * (INT64)(INT32)RTVAL32;
LOVAL64 = (INT32)temp64;
HIVAL64 = (INT32)(temp64 >> 32);
break;
case 0x19: /* MULTU */
temp64 = (UINT64)RSVAL32 * (UINT64)RTVAL32;
LOVAL64 = (INT32)temp64;
HIVAL64 = (INT32)(temp64 >> 32);
break;
case 0x1a: /* DIV */
if (RTVAL32)
{
LOVAL64 = (INT32)((INT32)RSVAL32 / (INT32)RTVAL32);
HIVAL64 = (INT32)((INT32)RSVAL32 % (INT32)RTVAL32);
}
break;
case 0x1b: /* DIVU */
if (RTVAL32)
{
LOVAL64 = (INT32)(RSVAL32 / RTVAL32);
HIVAL64 = (INT32)(RSVAL32 % RTVAL32);
}
break;
case 0x1c: /* DMULT */
temp64 = (INT64)RSVAL64 * (INT64)RTVAL64;
LOVAL64 = temp64;
HIVAL64 = (INT64)temp64 >> 63;
break;
case 0x1d: /* DMULTU */
temp64 = (UINT64)RSVAL64 * (UINT64)RTVAL64;
LOVAL64 = temp64;
HIVAL64 = 0;
break;
case 0x1e: /* DDIV */
if (RTVAL64)
{
LOVAL64 = (INT64)RSVAL64 / (INT64)RTVAL64;
HIVAL64 = (INT64)RSVAL64 % (INT64)RTVAL64;
}
break;
case 0x1f: /* DDIVU */
if (RTVAL64)
{
LOVAL64 = RSVAL64 / RTVAL64;
HIVAL64 = RSVAL64 % RTVAL64;
}
break;
case 0x20: /* ADD */
if (ENABLE_OVERFLOWS && RSVAL32 > ~RTVAL32) generate_exception(EXCEPTION_OVERFLOW, 1);
else RDVAL64 = (INT32)(RSVAL32 + RTVAL32);
break;
case 0x21: /* ADDU */ if (RDREG) RDVAL64 = (INT32)(RSVAL32 + RTVAL32); break;
case 0x22: /* SUB */
if (ENABLE_OVERFLOWS && RSVAL32 < RTVAL32) generate_exception(EXCEPTION_OVERFLOW, 1);
else RDVAL64 = (INT32)(RSVAL32 - RTVAL32);
break;
case 0x23: /* SUBU */ if (RDREG) RDVAL64 = (INT32)(RSVAL32 - RTVAL32); break;
case 0x24: /* AND */ if (RDREG) RDVAL64 = RSVAL64 & RTVAL64; break;
case 0x25: /* OR */ if (RDREG) RDVAL64 = RSVAL64 | RTVAL64; break;
case 0x26: /* XOR */ if (RDREG) RDVAL64 = RSVAL64 ^ RTVAL64; break;
case 0x27: /* NOR */ if (RDREG) RDVAL64 = ~(RSVAL64 | RTVAL64); break;
case 0x2a: /* SLT */ if (RDREG) RDVAL64 = (INT64)RSVAL64 < (INT64)RTVAL64; break;
case 0x2b: /* SLTU */ if (RDREG) RDVAL64 = (UINT64)RSVAL64 < (UINT64)RTVAL64; break;
case 0x2c: /* DADD */
if (ENABLE_OVERFLOWS && RSVAL64 > ~RTVAL64) generate_exception(EXCEPTION_OVERFLOW, 1);
else RDVAL64 = RSVAL64 + RTVAL64;
break;
case 0x2d: /* DADDU */ if (RDREG) RDVAL64 = RSVAL64 + RTVAL64; break;
case 0x2e: /* DSUB */
if (ENABLE_OVERFLOWS && RSVAL64 < RTVAL64) generate_exception(EXCEPTION_OVERFLOW, 1);
else RDVAL64 = RSVAL64 - RTVAL64;
break;
case 0x2f: /* DSUBU */ if (RDREG) RDVAL64 = RSVAL64 - RTVAL64; break;
case 0x30: /* TGE */ if ((INT64)RSVAL64 >= (INT64)RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x31: /* TGEU */ if (RSVAL64 >= RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x32: /* TLT */ if ((INT64)RSVAL64 < (INT64)RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x33: /* TLTU */ if (RSVAL64 < RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x34: /* TEQ */ if (RSVAL64 == RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x36: /* TNE */ if (RSVAL64 != RTVAL64) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x38: /* DSLL */ if (RDREG) RDVAL64 = RTVAL64 << SHIFT; break;
case 0x3a: /* DSRL */ if (RDREG) RDVAL64 = RTVAL64 >> SHIFT; break;
case 0x3b: /* DSRA */ if (RDREG) RDVAL64 = (INT64)RTVAL64 >> SHIFT; break;
case 0x3c: /* DSLL32 */ if (RDREG) RDVAL64 = RTVAL64 << (SHIFT + 32); break;
case 0x3e: /* DSRL32 */ if (RDREG) RDVAL64 = RTVAL64 >> (SHIFT + 32); break;
case 0x3f: /* DSRA32 */ if (RDREG) RDVAL64 = (INT64)RTVAL64 >> (SHIFT + 32); break;
default: /* ??? */ invalid_instruction(op); break;
}
break;
case 0x01: /* REGIMM */
switch (RTREG)
{
case 0x00: /* BLTZ */ if ((INT64)RSVAL64 < 0) ADDPC(SIMMVAL); break;
case 0x01: /* BGEZ */ if ((INT64)RSVAL64 >= 0) ADDPC(SIMMVAL); break;
case 0x02: /* BLTZL */ if ((INT64)RSVAL64 < 0) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x03: /* BGEZL */ if ((INT64)RSVAL64 >= 0) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x08: /* TGEI */ if ((INT64)RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x09: /* TGEIU */ if (RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x0a: /* TLTI */ if ((INT64)RSVAL64 < SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x0b: /* TLTIU */ if (RSVAL64 >= SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x0c: /* TEQI */ if (RSVAL64 == SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x0e: /* TNEI */ if (RSVAL64 != SIMMVAL) generate_exception(EXCEPTION_TRAP, 1); break;
case 0x10: /* BLTZAL */ if ((INT64)RSVAL64 < 0) ADDPCL(SIMMVAL,31); break;
case 0x11: /* BGEZAL */ if ((INT64)RSVAL64 >= 0) ADDPCL(SIMMVAL,31); break;
case 0x12: /* BLTZALL */ if ((INT64)RSVAL64 < 0) ADDPCL(SIMMVAL,31) else mips3.pc += 4; break;
case 0x13: /* BGEZALL */ if ((INT64)RSVAL64 >= 0) ADDPCL(SIMMVAL,31) else mips3.pc += 4; break;
default: /* ??? */ invalid_instruction(op); break;
}
break;
case 0x02: /* J */ ABSPC(LIMMVAL); break;
case 0x03: /* JAL */ ABSPCL(LIMMVAL,31); break;
case 0x04: /* BEQ */ if (RSVAL64 == RTVAL64) ADDPC(SIMMVAL); break;
case 0x05: /* BNE */ if (RSVAL64 != RTVAL64) ADDPC(SIMMVAL); break;
case 0x06: /* BLEZ */ if ((INT64)RSVAL64 <= 0) ADDPC(SIMMVAL); break;
case 0x07: /* BGTZ */ if ((INT64)RSVAL64 > 0) ADDPC(SIMMVAL); break;
case 0x08: /* ADDI */
if (ENABLE_OVERFLOWS && RSVAL32 > ~SIMMVAL) generate_exception(EXCEPTION_OVERFLOW, 1);
else if (RTREG) RTVAL64 = (INT32)(RSVAL32 + SIMMVAL);
break;
case 0x09: /* ADDIU */ if (RTREG) RTVAL64 = (INT32)(RSVAL32 + SIMMVAL); break;
case 0x0a: /* SLTI */ if (RTREG) RTVAL64 = (INT64)RSVAL64 < (INT64)SIMMVAL; break;
case 0x0b: /* SLTIU */ if (RTREG) RTVAL64 = (UINT64)RSVAL64 < (UINT64)SIMMVAL; break;
case 0x0c: /* ANDI */ if (RTREG) RTVAL64 = RSVAL64 & UIMMVAL; break;
case 0x0d: /* ORI */ if (RTREG) RTVAL64 = RSVAL64 | UIMMVAL; break;
case 0x0e: /* XORI */ if (RTREG) RTVAL64 = RSVAL64 ^ UIMMVAL; break;
case 0x0f: /* LUI */ if (RTREG) RTVAL64 = (INT32)(UIMMVAL << 16); break;
case 0x10: /* COP0 */ handle_cop0(op); break;
case 0x11: /* COP1 */ handle_cop1(op); break;
case 0x12: /* COP2 */ handle_cop2(op); break;
case 0x13: /* COP1X - R5000 */handle_cop1x(op); break;
case 0x14: /* BEQL */ if (RSVAL64 == RTVAL64) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x15: /* BNEL */ if (RSVAL64 != RTVAL64) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x16: /* BLEZL */ if ((INT64)RSVAL64 <= 0) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x17: /* BGTZL */ if ((INT64)RSVAL64 > 0) ADDPC(SIMMVAL); else mips3.pc += 4; break;
case 0x18: /* DADDI */
if (ENABLE_OVERFLOWS && RSVAL64 > ~SIMMVAL) generate_exception(EXCEPTION_OVERFLOW, 1);
else if (RTREG) RTVAL64 = RSVAL64 + (INT64)SIMMVAL;
break;
case 0x19: /* DADDIU */ if (RTREG) RTVAL64 = RSVAL64 + (UINT64)SIMMVAL; break;
case 0x1a: /* LDL */ (*mips3.ldl)(op); break;
case 0x1b: /* LDR */ (*mips3.ldr)(op); break;
case 0x20: /* LB */ temp = RBYTE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT8)temp; break;
case 0x21: /* LH */ temp = RWORD(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT16)temp; break;
case 0x22: /* LWL */ (*mips3.lwl)(op); break;
case 0x23: /* LW */ temp = RLONG(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (INT32)temp; break;
case 0x24: /* LBU */ temp = RBYTE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT8)temp; break;
case 0x25: /* LHU */ temp = RWORD(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT16)temp; break;
case 0x26: /* LWR */ (*mips3.lwr)(op); break;
case 0x27: /* LWU */ temp = RLONG(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = (UINT32)temp; break;
case 0x28: /* SB */ WBYTE(SIMMVAL+RSVAL32, RTVAL32); break;
case 0x29: /* SH */ WWORD(SIMMVAL+RSVAL32, RTVAL32); break;
case 0x2a: /* SWL */ (*mips3.swl)(op); break;
case 0x2b: /* SW */ WLONG(SIMMVAL+RSVAL32, RTVAL32); break;
case 0x2c: /* SDL */ (*mips3.sdl)(op); break;
case 0x2d: /* SDR */ (*mips3.sdr)(op); break;
case 0x2e: /* SWR */ (*mips3.swr)(op); break;
case 0x2f: /* CACHE */ /* effective no-op */ break;
case 0x30: /* LL */ logerror("mips3 Unhandled op: LL\n"); break;
case 0x31: /* LWC1 */ set_cop1_reg(RTREG, RLONG(SIMMVAL+RSVAL32)); break;
case 0x32: /* LWC2 */ set_cop2_reg(RTREG, RLONG(SIMMVAL+RSVAL32)); break;
case 0x33: /* PREF */ /* effective no-op */ break;
case 0x34: /* LLD */ logerror("mips3 Unhandled op: LLD\n"); break;
case 0x35: /* LDC1 */ set_cop1_reg(RTREG, RDOUBLE(SIMMVAL+RSVAL32)); break;
case 0x36: /* LDC2 */ set_cop2_reg(RTREG, RDOUBLE(SIMMVAL+RSVAL32)); break;
case 0x37: /* LD */ temp64 = RDOUBLE(SIMMVAL+RSVAL32); if (RTREG) RTVAL64 = temp64; break;
case 0x38: /* SC */ logerror("mips3 Unhandled op: SC\n"); break;
case 0x39: /* SWC1 */ WLONG(SIMMVAL+RSVAL32, get_cop1_reg(RTREG)); break;
case 0x3a: /* SWC2 */ WLONG(SIMMVAL+RSVAL32, get_cop2_reg(RTREG)); break;
case 0x3b: /* SWC3 */ invalid_instruction(op); break;
case 0x3c: /* SCD */ logerror("mips3 Unhandled op: SCD\n"); break;
case 0x3d: /* SDC1 */ WDOUBLE(SIMMVAL+RSVAL32, get_cop1_reg(RTREG)); break;
case 0x3e: /* SDC2 */ WDOUBLE(SIMMVAL+RSVAL32, get_cop2_reg(RTREG)); break;
case 0x3f: /* SD */ WDOUBLE(SIMMVAL+RSVAL32, RTVAL64); break;
default: /* ??? */ invalid_instruction(op); break;
}
mips3_icount--;
} while (mips3_icount > 0 || mips3.nextpc != ~0);
//printf("mips3_execute done (PC=%08X)\n", mips3.pc);
mips3_icount -= mips3.interrupt_cycles;
mips3.interrupt_cycles = 0;
return cycles - mips3_icount;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void run() {\r\n\t\t\r\n\t\t// While the PC is less than allocated memory and less than SP\r\n\t\twhile (getPC() < getLIM() && getPC() < getSP()) {\r\n\t\t\tm_instr = m_MMU.fetch(getPC());\r\n\t\t\t// Increment PC counter by Instruction Size now\r\n\t\t\t// since nowhere lower does it get called again\r\n\t\t\tsetPC(getPC() + INSTRSIZE);\r\n\t\t\t\r\n\t //increment clock\r\n addTicks(1);\r\n\t\t\t\r\n\t\t\tif (m_verbose) {\r\n\t\t\t\tregDump();\r\n\t\t\t\tprintInstr(m_instr);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Parse and execute instruction\r\n\t\t\texecuteInstr(m_instr);\r\n\t\t\t\r\n\t\t\t// check interrupts\r\n\t\t\tcheckForIOInterrupt();\r\n\t\t}\r\n\t\t\r\n\t}",
"public void run() {\r\n // Execute the program\r\n int index = 0;\r\n\r\n while (index < operations.size()) {\r\n Operation o = operations.get(index);\r\n index = o.execute(index, stack, symbolTable);\r\n }\r\n }",
"public void loop(){\n\t\t\n\t}",
"public void run() {\n\t\tMzsCore core = DefaultMzsCore.newInstanceWithoutSpace();\n\t\tcapi = new Capi(core);\n\t\tint anzahlDefekte = (int) (anzahl * fehlerrate);\n\t\tTransactionReference transET = null;\n\t\tTransactionReference transAutos = null;\n\t\tContainerReference idContainer = null;\n\t\tArrayList<Long> ids = null;\n\t\ttry {\n\t\t\ttransAutos = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locAutos);\n\t\t\ttransET = capi.createTransaction(MzsConstants.TransactionTimeout.INFINITE, Config.locET);\n\t\t\tidContainer = capi.lookupContainer(ContainerNames.ID, Config.locAutos, MzsConstants.RequestTimeout.TRY_ONCE, transAutos);\n\t\t\tids = capi.read(idContainer,\n\t\t\t\t\tFifoCoordinator.newSelector(MzsConstants.Selecting.COUNT_ALL),\n\t\t\t\t\tMzsConstants.RequestTimeout.ZERO, transAutos);\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\t\tthis.id = ids.get(ids.size()-1);\n\t\t}catch(Exception e){\n\t\t\tthis.id = 1;\n\t\t\te.printStackTrace();\n\t\t}\n\t\tlong entryID = id;\n\t\ttry {\n\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(id));\n\t\t} catch (MzsCoreException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfor (int zaehler = 1; zaehler <= anzahl; zaehler++) {\n\t\t\t// Warte 1-3 Sekunden\n\n\t\t\t// Bastel neues Teil\n\t\t\tentryID++;\n\t\t\tboolean defekt = false;\n\t\t\tif (zaehler <= anzahlDefekte)\n\t\t\t\tdefekt = true;\n\t\t\t\t\n\n\t\t\tSystem.err.println(\"Got component id: \" + entryID);\n\n\n\t\t\tEinzelteil teil = null;\n\n\t\t\t// Erstellung eines neuen Objekts von einem generischen Datentypen\n\t\t\ttry {\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tClass[] argsC = new Class[] { long.class, long.class,\n\t\t\t\t\t\tboolean.class };\n\t\t\t\tConstructor<? extends Einzelteil> constructor = type\n\t\t\t\t\t\t.getConstructor(argsC);\n\t\n\t\t\t\tteil = constructor.newInstance(new Object[] { entryID, id,\n\t\t\t\t\t\tdefekt });\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err.println(\"Houston, we have a problem ...\");\n\t\t\t}\n\n\t\t\tSystem.err.println(\"Created new \" + type.getName());\n\t\t\tString containerName = \"\";\n\t\t\tif (type.getName().contains(\"einzelteile.Achse\")) {\n\t\t\t\tcontainerName = ContainerNames.ACHSEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Bodenplatte\")) {\n\t\t\t\tcontainerName = ContainerNames.PLATTEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Karosserie\")) {\n\t\t\t\tcontainerName = ContainerNames.KAROSSERIE;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Lenkrad\")) {\n\t\t\t\tcontainerName = ContainerNames.LENKRAD;\n\t\t\t} else if (type.getName().contains(\"einzelteile.ReifenPaar\")){\n\t\t\t\tcontainerName = ContainerNames.REIFEN;\n\t\t\t} else if (type.getName().contains(\"einzelteile.Sitz\")){\n\t\t\t\tcontainerName = ContainerNames.SITZE;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tcapi.write(capi.lookupContainer(containerName,Config.locET,MzsConstants.RequestTimeout.TRY_ONCE,transET), new Entry(teil));\n\t\t\t\tcapi.write(capi.lookupContainer(ContainerNames.ID,Config.locAutos,MzsConstants.RequestTimeout.TRY_ONCE,transAutos), new Entry(entryID));\n\t\t\t} catch (MzsCoreException 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\ttry {\n\t\t\tcapi.commitTransaction(transET);\n\t\t\tcapi.commitTransaction(transAutos);\n\t\t} catch (MzsCoreException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }",
"public void loop(){\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tmCpuinfo = ShellHelper.getProc(CPU_INFO_PROC);\n\t\t\t\tupdateCpuStats();\n\t\t\t\tfor (LogicalCpu c : mLogicalCpus) {\n\t\t\t\t\tc.updateFrequency();\n\t\t\t\t\tc.updateGovernor();\n\t\t\t\t\tc.updateTimeInFrequency();\n\t\t\t\t\tc.updateTotalTransitions();\n\t\t\t\t}\n\t\t\t}",
"public void run() {\n\ttry {\n\t for (;;) {\n\t\tif (initialize()) {\n\t\t /*\n\t\t * Load all the new/old definitions from the file system to the memory\n\t\t */\n\t\t iterateOverDefinitionDirectories();\n\t\t}/* if (initialize()) */\n\n\t\t/*\n\t\t * Do sanity check on the ready state of the JREST\n\t\t */\n\t\tisSystemReady();\n\n\t\tif (moSessionStore.isSystemInReadyState() == false) {\n\t\t mLogger.fatal(String.format(Exceptions.gsHaltSleepIntervalMessage,\n\t\t\t Exceptions.gsSystemInHaltState, (Constants.glHaltSleepInterval / 1000)));\n\n\t\t sleep(Constants.glHaltSleepInterval);\n\n\t\t continue;\n\t\t}// if (moSessionStore.isSystemInReadyState() == false)\n\n\t\tif (mbInitExecutionEngine == false) {\n\t\t moExecutionEngine.initialize();\n\t\t mbInitExecutionEngine = true;\n\t\t}// if (mbInitExecutionEngine == false)\n\n\t\t/*\n\t\t * Free up any unused database connection object held via Executor\n\t\t */\n\t\tmoExecutionEngine.freeIdleExecutorSlot();\n\n\t\t/*\n\t\t * Cleanup any or all the sessions that have expired\n\t\t */\n\t\tmoSessionStore.removeExpiredSessions();\n\n\t\tsleep(mlJrestSweepInterval);\n\t }// end of for (;;)\n\t} catch (Exception e) {\n\t e.printStackTrace(moPrintWriter);\n\n\t mLogger.error(moStringWriter.toString());\n\t}// end of try ... catch block\n }",
"private static void runGC () throws Exception \r\n {\n for (int r = 0; r < 4; ++ r) _runGC (); \r\n }",
"public void loop(){\n \n \n }",
"public void loopExecute(){\n\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"public Object doProcess() {\n List<Result> retv = new ArrayList<Result>();\n try {\n current_time = NTPDate.currentTimeMillis();\n current_time_nano = Utils.nanoNow();\n\n try {\n currentProcs = ProcFSUtil.getCurrentProcsHash();\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \" [ myMon ] ProcFSUtil.getCurrentProcsHash exc\", t);\n }\n }\n final Result result = getResult();\n if(result != null) {\n result.addSet(\"Max Memory\", Runtime.getRuntime().maxMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Memory\", Runtime.getRuntime().totalMemory() / MEGABYTE_FACTOR);\n result.addSet(\"Free Memory\", Runtime.getRuntime().freeMemory() / MEGABYTE_FACTOR);\n retv.add(result);\n }\n\n Result r = fillMLCPUTimeStats();\n if (r != null)\n retv.add(r);\n\n r = fillParamStats();\n if (r != null)\n retv.add(r);\n\n r = fillProcsStats();\n if (r != null)\n retv.add(r);\n\n if (currentProcs != null && currentProcs.size() > 0) {\n prevProcs = currentProcs;\n }\n\n r = fillPMSStats();\n if (r != null)\n retv.add(r);\n\n r = fillMLLUSHelperStats();\n if (r != null)\n retv.add(r);\n\n r = fillPWStats();\n if (r != null)\n retv.add(r);\n\n r = fillTCWStats();\n if (r != null)\n retv.add(r);\n\n if (IS_MAC) {\n r = fillFromMAC();\n if (r != null)\n retv.add(r);\n }\n } catch (Throwable t) {\n if (logger.isLoggable(Level.FINER)) {\n logger.log(Level.FINER, \"[ myMon ] [ HANDLED ] got ex main loop ... \", t);\n }\n return null;\n } finally {\n last_time_nano = current_time_nano;\n }\n\n currentProcs = null;\n if (logger.isLoggable(Level.FINEST)) {\n logger.log(Level.FINEST, \" [ myMon ] Returning ... \\n\" + retv);\n }\n return retv;\n }",
"protected void internalRun() {\n work();\n }",
"@Override public void loop() {\n }",
"void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}",
"protected void runBeforeIteration() {}",
"public static void main(String[] args)\n throws InterruptedException\n {\n // Defining threads to accept the jobs\n // ----------------------------------------------------------\n Thread thread1 = new Intermediate(10, \"INT01\");// Instantiate thread1\n Thread thread2 = new Intermediate(50, \"INT02\");// Instantiate thread2\n Thread thread3 = new CPUBound(60, \"CPU01\");// Instantiate thread3\n Thread thread4 = new CPUBound(70, \"CPU02\");// Instantiate thread4\n Thread thread5 = new IOBound(System.in, \"IO01\");// Instantiate thread5\n Thread thread6 = new IOBound(System.in, \"IO02\");// Instantiate thread6\n Thread thread7 = new Intermediate(82, \"INT03\");// Instantiate thread7\n Thread thread8 = new CPUBound(80, \"CPU03\");// Instantiate thread8\n\n // Creating a ArrayList of threads and adding the jobs to the ArrayList\n // ----------------------------------------------------------\n ArrayList<Thread> threadList = new ArrayList<Thread>();\n threadList.add(thread1);\n threadList.add(thread2);\n threadList.add(thread3);\n threadList.add(thread4);\n threadList.add(thread5);\n threadList.add(thread6);\n threadList.add(thread7);\n threadList.add(thread8);\n\n // Creating a FCFS object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n FCFS fcfs = new FCFS(threadList);\n fcfs.run();\n\n // Displaying the results of the FCFS run\n // ----------------------------------------------------------\n\n System.out.println(\"----------------FCFS-----------------------------\");\n for (String key : fcfs.getRun_times().keySet())\n System.out.println(key + \" => \" + fcfs.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Defining a Hash Map with key Long and value Thread. To pair\n // each unique time with a process\n // ----------------------------------------------------------\n Map<Long, Thread> threadList2 = new HashMap<Long, Thread>();\n threadList2.put(fcfs.getRun_times().get(thread1.getName()), thread1);\n threadList2.put(fcfs.getRun_times().get(thread2.getName()), thread2);\n threadList2.put(fcfs.getRun_times().get(thread3.getName()), thread3);\n threadList2.put(fcfs.getRun_times().get(thread4.getName()), thread4);\n threadList2.put(fcfs.getRun_times().get(thread5.getName()), thread5);\n threadList2.put(fcfs.getRun_times().get(thread6.getName()), thread6);\n threadList2.put(fcfs.getRun_times().get(thread7.getName()), thread7);\n threadList2.put(fcfs.getRun_times().get(thread8.getName()), thread8);\n\n // Creating a SJF object and running it with the created ArrayList\n // object\n // ----------------------------------------------------------\n SJF sjf = new SJF(threadList2);\n sjf.run();\n\n // Displaying the results of the SJF run\n // ----------------------------------------------------------\n System.out.println(\"-----------------SJF-----------------------------\");\n for (String key : sjf.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n // Creating a RoundRobin object and running it with the previously\n // created ArrayList object holding our processes.\n // ----------------------------------------------------------\n RoundRobin roundRobin = new RoundRobin(threadList);\n roundRobin.run();\n\n // Displaying the results of the RoundRobin run\n // ----------------------------------------------------------\n System.out.println(\"-----------------Round Robin---------------------\");\n for (String key : roundRobin.getRun_times().keySet())\n System.out.println(key + \" => \" + sjf.getRun_times().get(key));\n System.out.println(\"-------------------------------------------------\");\n\n }",
"@Override\n protected void compute() {\n\n if(this.workLoad > 16){\n System.out.println(\"Splitting Workload :: \"+this.workLoad);\n List<MyRecursiveAction> subTasks = new ArrayList<>();\n subTasks.addAll(createSubTasks());\n\n subTasks.forEach(tasks -> {\n tasks.fork();\n });\n }else{\n System.out.println(\"Doing Workload myself :: \"+this.workLoad);\n }\n }",
"@Override\r\n public void init_loop() {\r\n }",
"@Override\r\n public void init_loop() {\r\n }",
"protected void runBeforeIterations() {}",
"@Override public void init_loop() {\n loop_cnt_++;\n }",
"@Override\n public void loop()\n {\n }",
"public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}",
"protected abstract void trace_begin_loop();",
"public void run(){\t\n\t\tComputingRequest pathCompReq;\n\t\tlong timeIniNanos;\n\t\tlong timeEndNanos;\n\t\tlong timePreNanos=System.nanoTime();\n\t\twhile (running) {\n\t\t\tlog.info(\"Waiting for a new Computing Request to process\");\n\t\t\ttry {\n\t\t\t\tpathCompReq=pathComputingRequestQueue.take();\n\n\t\t\t\tif (analyzeRequestTime){\n\t\t\t\t\tdouble idleTimeV=(System.nanoTime()-timePreNanos)/(double)1000000;\n\t\t\t\t\tif (idleTimeV<20000){\n\t\t\t\t\t\tidleTime.analyze(idleTimeV);\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tlog.warn(\"There is no path to compute\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ttimeIniNanos=System.nanoTime();\n\n\t\t\tif (pathCompReq.getRequestList().size()==1){\n\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\n\t\t\t}\n\t\t\t//FIXME: ESTA PARTE PUEDE FALLAR SI MANDAN OTRA COSA QUE NO SEAN IPV4 o GEN END POINTS\n\t\t\t//POR AHORA PONGO TRY CATH Y MANDO NOPATH\n\t\t\tlong sourceIF=0;\n\t\t\tlong destIF=0;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tP2PEndpoints p2pep=null;\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\ttry{\n\t\t\t\t//For the IT case\n\t\t\t\tif (ted.isITtedb()){\n\t\t\t\t\tlog.info(\"Processing New Path Computing request, id: \"+pathCompReq.getRequestList().get(0).toString());\t\t\n\t\t\t\t\tsource =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getSourceEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t\tdest =(((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints().getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address());\n\t\t\t\t}else {\n\t\t\t\t\ttry { //EndPointsIPv4\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\tsource = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\t\tdest = ((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\t\tsourceIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIF();\n\t\t\t\t\t\t\tdestIF=((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIF();\n\t\t\t\t\t\t\tlog.info(\"SubObjeto: EP-Unnumbered Interface: \"+((EndPointsUnnumberedIntf)pathCompReq.getRequestList().get(0).getEndPoints()).toString());\n\t\t\t\t\t\t\tEndPointsIPv4 ep= new EndPointsIPv4();\n\t\t\t\t\t\t\tep.setDestIP(dest);\n\t\t\t\t\t\t\tep.setSourceIP(source);\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsource = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getSourceIP();\n\t\t\t\t\t\tdest = ((EndPointsIPv4)pathCompReq.getRequestList().get(0).getEndPoints()).getDestIP();\n\t\t\t\t\t\tlog.info(\" XXXX try source: \"+source);\n\t\t\t\t\t\tlog.info(\" XXXX try dest: \"+dest);\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (Exception e) { //GeneralizedEndPoints\n\t\t\t\t\t\tif (pathCompReq.getRequestList().get(0).getEndPoints() instanceof GeneralizedEndPoints){\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tp2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\n\t\t\t\t\t\t\t//P2PEndpoints p2pep = ((GeneralizedEndPoints)pathCompReq.getRequestList().get(0).getEndPoints()).getP2PEndpoints();\t\t\t\n\t\t\t\t\t\t\tlog.info(\"RequestProcessorThread GeneralizedEndPoints -> sourceDataPath:: \"+p2pep.getSourceEndPoint()+\" destDataPath :: \"+p2pep.getDestinationEndPoint());\n\n\t\t\t\t\t\t\tGeneralizedEndPoints ep= new GeneralizedEndPoints();\n\t\t\t\t\t\t\tep.setP2PEndpoints(p2pep); \t\n\t\t\t\t\t\t\tpathCompReq.getRequestList().get(0).setEndPoints(ep);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsource = p2pep.getSourceEndPoint().getEndPointIPv4TLV().getIPv4address();\n\t\t\t\t\t\t\tdest = p2pep.getDestinationEndPoint().getEndPointIPv4TLV().getIPv4address();\n\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//If fails, we send NoPath, by now (reasons later...)\n\t\t\t\t//FIXME\n\t\t\t\tlog.info(\"Shouldn't be here except in WLANs\");\n\t\t\t\t//log.info(FuncionesUtiles.exceptionToString(e));\n\t\t\t\t//this.sendNoPath(pathCompReq);\n\t\t\t}\n\t\t\t//In case it is a child PCE with a parent, requestToParent = true\n\t\t\tboolean requestToParent = false;\n\t\t\n\t\t\tif (this.isChildPCE==true){\n\t\t\t\t//Before sending to the parent, check that the source and destinations don't belong to the domain\n\t\t\t\t\n\t\t\t\tif((!(((DomainTEDB)ted).belongsToDomain(source))||(!(((DomainTEDB)ted).belongsToDomain(dest))))){\t\t\t\t\t\n\t\t\t\t\trequestToParent = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\t//In case we need to send the request to the parent... this way...\n\t\t\tif (requestToParent == true) {\n\t\t\t\tlog.info(\"Child PCE: Request is going to be fowarded to the Parent PCE\");\n\t\t\t\tPCEPRequest pcreq = new PCEPRequest();\n\t\t\t\tRequest request=pathCompReq.getRequestList().get(0).duplicate();\n\t\t\t\t//FIXME: hay que poner un nuevo requestID, si no... la podemos liar\n\t\t\t\tpcreq.addRequest(request);\n\t\t\t\tPCEPResponse p_rep = cpcerm.newRequest(pcreq);\n\n\n\t\t\t\tif (p_rep==null){\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tthis.sendNoPath(pathCompReq);\n\t\t\t\t}else {\n\t\t\t\t\tlog.info(\"RESP: \"+p_rep.toString());\n\t\t\t\t}\n\n\t\t\t\tComputingResponse pcepresp = new ComputingResponse();\n\t\t\t\tpcepresp.setResponsetList(p_rep.getResponseList());\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tlog.info(\"Encoding Computing Request\");\n\t\t\t\t\tpcepresp.encode();\n\t\t\t\t} \n\t\t\t\tcatch (PCEPProtocolViolationException e1)\n\t\t\t\t{\n\t\t\t\t\tlog.info(UtilsFunctions.exceptionToString(e1));\n\t\t\t\t}\n\n\n\t\t\t\ttry {\n\t\t\t\t\tlog.info(\"oNE OF THE NODES IS NOT IN THE DOMAIN. Send Request to parent PCE,pcepresp:\"+pcepresp+\",pathCompReq.getOut():\"+pathCompReq.getOut());\n\t\t\t\t\tpathCompReq.getOut().write(p_rep.getBytes());\n\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlog.warn(\"Parent doesn't answer\");\n\t\t\t\t\tComputingResponse m_resp=new ComputingResponse();\n\t\t\t\t\tResponse response=new Response();\n\t\t\t\t\tRequestParameters rp = new RequestParameters();\n\t\t\t\t\trp.setRequestID(request.getRequestParameters().requestID);\n\t\t\t\t\tresponse.setRequestParameters(rp);\n\t\t\t\t\tNoPath noPath= new NoPath();\n\t\t\t\t\tnoPath.setNatureOfIssue(ObjectParameters.NOPATH_NOPATH_SAT_CONSTRAINTS);\n\t\t\t\t\tNoPathTLV noPathTLV=new NoPathTLV();\n\t\t\t\t\tnoPath.setNoPathTLV(noPathTLV);\t\t\t\t\n\t\t\t\t\tresponse.setNoPath(noPath);\n\t\t\t\t\tm_resp.addResponse(response);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tm_resp.encode();\n\t\t\t\t\t\tpathCompReq.getOut().write(m_resp.getBytes());\n\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t} catch (PCEPProtocolViolationException e3) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te3.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(\"Send NO PATH\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Response sent!!\");\n\t\t\t\t//\t}\n\t\t\t\t//}\n\t\t\t\tft=null;\n\n\t\t\t} else {\n\t\t\t\tint of=0;\n\t\t\t\tComputingAlgorithmManager algortithmManager=null;\n\t\t\t\tComputingAlgorithmManagerSSON algortithmManagerSSON=null;\n\t\t\t\tif (pathCompReq.getSvec()!=null){\n\t\t\t\t\tlog.info(\"SVEC Request \");\n\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getSvec().getObjectiveFunction();\n\t\t\t\t\tif (objectiveFunctionObject!=null){\n\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\t\t\t\t\t\tlog.info(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\talgortithmManager =svecAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\tif (algortithmManager==null){\n\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\tlog.warn(\"OF not supported\");\n\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: \"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE:\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t\tbreak;\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.warn(\"USING Default SVEC \");\n\t\t\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tlog.info(\"Custom SVEC OF \"+of);\n\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tlog.info(\"Default SVEC \");\n\t\t\t\t\t\tDefaultSVECPathComputing dspc=new DefaultSVECPathComputing(pathCompReq,ted);\n\t\t\t\t\t\tft=new ComputingTask(dspc);\t\n\n\t\t\t\t\t}\n\n\n\t\t\t\t}//aqui se acaba el de svec!=null\n\t\t\t\telse {\n\t\t\t\t\tboolean nopath=false;\n\t\t\t\t\tlog.debug(\"Non-svec request\");\n\t\t\t\t\tdouble totalTimeNs=System.nanoTime()-pathCompReq.getTimeStampNs();\n\t\t\t\t\tdouble totalTimeMs=totalTimeNs/1000000L;\n\t\t\t\t\tif (useMaxReqTime==true){\n\t\t\t\t\t\tif (totalTimeMs>pathCompReq.getMaxTimeInPCE()){\n\t\t\t\t\t\t\tlog.info(\"Request execeeded time, sending nopath\");\n\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\tlog.info(\"Mando no path request execeeded time.totalTimeMs \"+totalTimeMs+\"pathCompReq.getMaxTimeInPCE()\");\n\t\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\n\n\t\t\t\t\tif (nopath==false){\n\t\t\t\t\t\tObjectiveFunction objectiveFunctionObject=pathCompReq.getRequestList().get(0).getObjectiveFunction();\n\t\t\t\t\t\tif (objectiveFunctionObject!=null){ \t\t\t\t\n\t\t\t\t\t\t\tof=objectiveFunctionObject.getOFcode();\n\n\t\t\t\t\t\t\tlog.debug(\"ObjectiveFunction code \"+of);\n\t\t\t\t\t\t\talgortithmManager =singleAlgorithmList.get(new Integer(of));\n\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\talgortithmManagerSSON = singleAlgorithmListsson.get(new Integer(of));\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\n\t\t\t\t\t\t\tif (algortithmManager==null && algortithmManagerSSON==null){\n\t\t\t\t\t\t\t\tif (objectiveFunctionObject.isPbit()==true){\n\t\t\t\t\t\t\t\t\tlog.warn(\"OF not supported!!\");\n\t\t\t\t\t\t\t\t\t//Send error\n\t\t\t\t\t\t\t\t\tPCEPError msg_error= new PCEPError();\n\t\t\t\t\t\t\t\t\tErrorConstruct error_c=new ErrorConstruct();\n\t\t\t\t\t\t\t\t\tPCEPErrorObject error= new PCEPErrorObject();\n\t\t\t\t\t\t\t\t\terror.setErrorType(ObjectParameters.ERROR_UNSUPPORTEDOBJECT);\n\t\t\t\t\t\t\t\t\terror.setErrorValue(ObjectParameters.ERROR_UNSUPPORTEDOBJECT_UNSUPPORTED_PARAMETER);\n\t\t\t\t\t\t\t\t\terror_c.getErrorObjList().add(error);\n\t\t\t\t\t\t\t\t\terror_c.getRequestIdList().add(pathCompReq.getRequestList().get(0).getRequestParameters());\n\t\t\t\t\t\t\t\t\tmsg_error.setError(error_c);\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tmsg_error.encode();\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().write(msg_error.getBytes());\n\t\t\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\tlog.warn(\"IOException sending error to PCC: nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t\t\tlog.error(\"Malformed ERROR MESSAGE, CHECK PCE CODE. nons\"+pathCompReq.getRequestList().get(0).toString());\n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tnopath=true;\n\t\t\t\t\t\t\t\t\tft=null;\n\t\t\t\t\t\t\t\t\tlog.warn(\"error message informing sent.\"+pathCompReq.getRequestList().get(0).toString());\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\tlog.info(\"Choosing default algotithm 1\");\n\t\t\t\t\t\t\t\t\tlog.info(\"pathCompReq:: \"+pathCompReq.toString());\n\t\t\t\t\t\t\t\t\t//log.info(\"ted:: \"+ted.printTopology());\n\t\t\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tlog.info(\"Choosing algorithm of OF \"+of);\n\t\t\t\t\t\t\t\tboolean ssonAlgorithm = false;\n\t\t\t\t\t\t\t\tif (singleAlgorithmListsson != null){\n\t\t\t\t\t\t\t\t\tif (singleAlgorithmListsson.size()!=0){\n\t\t\t\t\t\t\t\t\t\tssonAlgorithm = true;\n\t\t\t\t\t\t\t\t\t\t//FIXME: Hay que declarar el parametro \"modulation format\".\n\t\t\t\t\t\t\t\t\t\tint mf=0;\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManagerSSON.getComputingAlgorithm(pathCompReq, ted, mf);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\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 (!ssonAlgorithm){\n\t\t\t\t\t\t\t\t\tif (isMultilayer==true){\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted, opCounter);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tComputingAlgorithm cpr=algortithmManager.getComputingAlgorithm(pathCompReq, ted);\n\t\t\t\t\t\t\t\t\t\tft=new ComputingTask(cpr);\n\t\t\t\t\t\t\t\t\t}\n\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\telse {\n\t\t\t\t\t\t\tlog.info(\"Choosing default algotithm 2\");\n\t\t\t\t\t\t\tDefaultSinglePathComputing dspc=new DefaultSinglePathComputing(pathCompReq,ted);\n\t\t\t\t\t\t\tft=new ComputingTask(dspc);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (ft!=null)\t{\n\t\t\t\t//Here the task will be executed. n\n\t\t\t\tComputingResponse rep;\n\t\t\t\ttry {\n\t\t\t\t\tft.run();\n\t\t\t\t\trep=ft.get(pathCompReq.getMaxTimeInPCE(),TimeUnit.MILLISECONDS);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tlog.warn(\"Computation failed: \"+e.getMessage()+\" || \"+UtilsFunctions.exceptionToString(e)+\" || \" +\",MAXTIME: \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\trep=null;\n\t\t\t\t}\n\t\t\t\tlog.info(\"ReppPP:::\"+rep);\n\t\t\t\t//FIXME: There's a trap here. We change Response to send an unnumbered interface\n\t\t\t\tif ((sourceIF!=0)&&(destIF!=0))//Esto ocurre en el caso de recibir UnnumberedInterface EndPoints (Caso VNTM)\n\t\t\t\t\ttrappingResponse(rep, sourceIF, destIF);\n\t\t\t\ttry {\n\t\t\t\t\t//FIXME: WE ARE USING THE MAX TIME IN PCE, REGARDLESS THE TIME IN THE PCE\n\t\t\t\t\t//log.error(\"Esperamos \"+pathCompReq.getMaxTimeInPCE());\n\t\t\t\t\t//FIXME: \t\t\t\t\n\t\t\t\t\tif (rep!=null){\n\t\t\t\t\t\t//log.info(\"rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\t\t\t\t\t\tComputingResponse repRes=ft.executeReservation();\n\t\t\t\t\t\tif (repRes!=null){\n\t\t\t\t\t\t\trep=repRes;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttimeEndNanos=System.nanoTime();\n\n\t\t\t\t\t\tdouble compTimeMicroSec=(timeEndNanos-timeIniNanos)/(double)1000;\n\t\t\t\t\t\tdouble toTimeMicroSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000;\n\t\t\t\t\t\tdouble toTimeMiliSec=(timeEndNanos-pathCompReq.getTimeStampNs())/(double)1000000;\n\t\t\t\t\t\t//In some no path cases, we can retry\n\t\t\t\t\t\t//here it is the right place\n\t\t\t\t\t\tboolean retry=false;\n\t\t\t\t\t\tif ((rep.ResponseList.getFirst().getNoPath()!=null)&&(pathCompReq.getRequestList().getFirst().getRequestParameters().isRetry())){\n\t\t\t\t\t\t\tdouble totalTimeMs=(System.nanoTime()-pathCompReq.getTimeStampNs())/1000000L;\n\t\t\t\t\t\t\tif (pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV()!=null){\n\t\t\t\t\t\t\t\tlong maxReqTimeMs=pathCompReq.getRequestList().getFirst().getRequestParameters().getMaxRequestTimeTLV().getMaxRequestTime();\n\t\t\t\t\t\t\t\tif (totalTimeMs<=maxReqTimeMs){\n\t\t\t\t\t\t\t\t\tif (totalTimeMs<60000){//FIXME: LIMITE DE 1 MINUTO, PARA EVITAR ATAQUE MALINTENCIONADO\n\t\t\t\t\t\t\t\t\t\tlog.info(\"Re-queueing comp req\");\n\t\t\t\t\t\t\t\t\t\tpathComputingRequestRetryQueue.add(pathCompReq);\t\n\t\t\t\t\t\t\t\t\t\tretry=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}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (retry==false) {\n\t\t\t\t\t\t\tif (pathCompReq.getPccReqId()!=null){\n\t\t\t\t\t\t\t\trep.getResponse(0).setPccIdreq(pathCompReq.getPccReqId());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (pathCompReq.getMonitoring()!=null){\n\t\t\t\t\t\t\t\tlog.info(\"Monitoring Info is requested\");\n\t\t\t\t\t\t\t\tMetricPCE metricPCE=new MetricPCE();\n\t\t\t\t\t\t\t\tPceIdIPv4 pceId=new PceIdIPv4();\n\t\t\t\t\t\t\t\tInet4Address pceIPAddress=null;\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tpceIPAddress = (Inet4Address) Inet4Address.getByName(\"0.0.0.0\");\n\t\t\t\t\t\t\t\t} catch (UnknownHostException e) {\n\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tpceId.setPceIPAddress(pceIPAddress);\n\t\t\t\t\t\t\t\tmetricPCE.setPceId(pceId);\n\t\t\t\t\t\t\t\tProcTime procTime=new ProcTime();\n\t\t\t\t\t\t\t\tmetricPCE.setProcTime(procTime);\n\t\t\t\t\t\t\t\t//FIXME: Ahora lo pongo en us para unas pruebas\n\t\t\t\t\t\t\t\t//en la RFC esta en ms\n\t\t\t\t\t\t\t\tprocTime.setCurrentProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\t//procTime.setMaxProcessingTime((long)toTimeMiliSec);\n\t\t\t\t\t\t\t\trep.getResponse(0).getMetricPCEList().add(metricPCE);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry { \t\t\n\t\t\t\t\t\t\t\tlog.info(rep.toString());\n\t\t\t\t\t\t\t\trep.encode();\n\t\t\t\t\t\t\t} catch (PCEPProtocolViolationException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tlog.error(\"PROBLEM ENCONDING RESPONSE, CHECK CODE!!\"+e.getMessage());\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tlog.info(\"Request processeed, about to send response\");\n\t\t\t\t\t\t\t\tpathCompReq.getOut().write(rep.getBytes());\n\t\t\t\t\t\t\t\tpathCompReq.getOut().flush();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\tlog.warn(\"Could not send the response \"+e.getMessage());\n\t\t\t\t\t\t\t\tif (rep.getResponse(0).getResConf()!=null){\n\t\t\t\t\t\t\t\t\t//FIXME\n\t\t\t\t\t\t\t\t\tlog.warn(\"If your are using WLANs this is not going to work!!\");\n\t\t\t\t\t\t\t\t\tthis.reservationManager.cancelReservation(rep.getResponse(0).getResConf().getReservationID());\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//log.info(\"Response sent number \"+rep.getResponseList().getFirst().getRequestParameters().getRequestID()+\",rep.getPathList().get(0)\"+rep.getResponse(0).getPathList().get(0));\n\n\t\t\t\t\t\t\t/*** STRONGEST: Collaborative PCEs ***/\t\n\t\t\t\t\t\t\t//FIXME: pasarlo al reservation manager\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (collaborationPCESessionManager!=null){\n\t\t\t\t\t\t\t\tif (!(rep.getResponseList().isEmpty())){\n\t\t\t\t\t\t\t\t\tif (!(rep.getResponseList().get(0).getNoPath()!=null)){\n\t\t\t\t\t\t\t\t\t\tPCEPNotification m_not = createNotificationMessage(rep,pathCompReq.getRequestList().get(0).getReservation().getTimer());\t\t\t\t\n\n\t\t\t\t\t\t\t\t\t\tcollaborationPCESessionManager.sendNotifyMessage(m_not);\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}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tlog.info(\"COMPUTING TIME execeeded time, sending NOPATH\");\n\t\t\t\t\t\tsendNoPath(pathCompReq);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e){\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (analyzeRequestTime){\n\n\t\t\t\tdouble comp=(System.nanoTime()-timeIniNanos)/(double)1000000;\n\t\t\t\tprocTime.analyze(comp);\n\t\t\t\ttimePreNanos=System.nanoTime();\n\t\t\t\tif (comp>maxProcTime){\n\t\t\t\t\tmaxProcTime=comp;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\tfor(int i = 0 ;i<10;i++){\n\t\t\tSystem.out.println(\"Runner \"+i);\n\t\t}\n\t}",
"@Override public void loop () {\n }",
"@Override\r\n public void loop() {\r\n //CodeHere\r\n }",
"public void run () {\n generalFeatureExtraction();\n\n //\n // 2 - Traverse the Call Graph and propagate call stack counter\n propagateFeatures();\n }",
"@Override\n public void loop() {\n\n }",
"@Override\n public void loop() {\n\n }",
"abstract void runRoutine();",
"@Override\n\tpublic void execute() {\n\t\tfor(int i=0;i<coms.length;i++)\n\t\t\tcoms[i].execute();\n\t}",
"public int actions()\n {\n switch (mState) \n {\n case cProcessInit:\n out();\n if (cSimTimeMicro < cClientCount/cClientTransPerMicro) {\n cSimTimeMicro = cClientCount/cClientTransPerMicro;\n System.out.println(\"\\nSimulation time is too short! It has been reset to \" + cSimTimeMicro + \" micro\\n\");\n }\n cMaxRequestsToSend = (int) (cClientTransPerMicro * cSimTimeMicro);\n System.out.println(\"cMaxRequestsToSend = \" + cMaxRequestsToSend);\n \n if (cTransLogMon)\n {\n System.out.println(cTransMonHeader);\n System.out.println(\"----------------------------------------------------------------------------------------\");\n }\n\n// if (cTick)\n// {\n// activate(new Tick());\n// }\n activate(mTaxJvm);\n return cMeJvm;\n \n case cMeJvm:\n activate(mMeJvm);\n return cMeStandbyJvm;\n\n case cMeStandbyJvm:\n activate(mMeStandbyJvm);\n return cJvmActivated;\n\n case cJvmActivated:\n mClientList = headToArray(mClient.mProcess, new Process[0]);\n \n //double tInterval = 500/tClientList.length; //500 is the minimum response time\n //double tInterval = 1.0/(cClientCount*cClientTransPerMicro); \n \n double tInterval = 1.0D*1000*1000/(cClientCount); //evenly distributed client over 1 second interval\n \n //hold until connect next client to the system \n mHoldTimeBetweenClients = cRandom.normal(tInterval, tInterval*0.3);\n mFor_i = -1;\n // Flow into loop\n\n case cForNext:\n ++mFor_i;\n //for (int i = 0; i < tClientList.length; ++i) //For every client\n if (mFor_i >= mClientList.length)\n {\n return cForEnd;\n }\n\n tClientStartTime = time();\n activate((Process) mClientList[mFor_i]); \n return cNewClient;\n \n case cNewClient:\n hold(mHoldTimeBetweenClients);\n return cForNext;\n\n case cForEnd:\n //hold(cRunTimeMicro);\n //return cHoldRunTimeMicro;\n\n case cHoldRunTimeMicro:\n cActualRunTimeMicro = cSimTimeMicro * 2;\n hold(cActualRunTimeMicro);\n return cHoldRunTime;\n \n case cHoldRunTime:\n if (cTick)\n {\n System.out.println(\"\\nSimulation time = \" + time()/(1000.0*1000.0) + \" sec.\");\n System.out.println(\"Requests = \" + cRequests);\n System.out.println(\"cRequestsToSend = \" + cMaxRequestsToSend);\n System.out.println(\"Av.tax time = \" + cTaxSum/cRequests);\n System.out.println(\"Av.client time = \" + cClientSum/cRequests);\n System.out.println(\"\\nExecution time: \" + ((System.currentTimeMillis() - cStartTime)/1000.0) + \" secs.\"); \n }\n return cProcessDone;\n }\n return cProcessError;\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}",
"public void run() {\n for (List<Boolean> include : includeConstituents) {\r\n // now select an alternative for each constituent\r\n selectConstituent(0, include);\r\n }\r\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"@Override\n public void init_loop() {\n }",
"public static void main(String[] args) {\n\t\tgetInitialSet(false); // false so that all proteins are fetched... no only those which are in SC\n\t\tgetTmAndLoop();\n\t\tcalcSingleTms();\n\t\tgetStat();\n\t\tprint();\n\t\t\n\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"public static void main(String[] args) throws Exception\n {\n\n while(true)\n {\n mainbody(\"0,0\");\n }\n\n }",
"@Override\n public Data run(Data data) throws EngineException { \n Data res;\n if (getLoop() > 0){\n res = loop(data);\n }\n else {\n res = exec(data);\n }\n return res;\n }",
"public void process() {\n\t}",
"protected void inRun() {\r\n\t\tSystem.out.println(\"begin\");\r\n\t\tIterator<RoutePair> pairIterator = this.pairs.iterator();\r\n\t\tint count = 0;\r\n\t\twhile (pairIterator.hasNext()) {\r\n\t\t\tcount++;\r\n\t\t\tif (count >= this.pairs.size() / 100) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t\tcount = 0;\r\n\t\t\t}\r\n\t\t\tRoutePair pair = pairIterator.next();\r\n\t\t\tRouteResult result = this.dcn.route(pair.getHome(), pair.getAway());\r\n\t\t\tif (result.isSuccessful()) {\r\n\t\t\t\tthis.flows.add(result.getFlow());\r\n\t\t\t\t// System.out.println(result.getFlow().toString());\r\n\t\t\t\tassert result.getFlow().isValid();\r\n\t\t\t\tthis.attachFlow(result);\r\n\t\t\t\tthis.successfulCount++;\r\n\t\t\t} else {\r\n\t\t\t\tthis.failedCount++;\r\n\t\t\t\tSystem.out.println(String.format(\"[inRun] failure count %1d\\n\",\r\n\t\t\t\t\t\tthis.failedCount));\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"finish\");\r\n\t}",
"public void run() {\n\t\t\n\t}",
"protected void run() {\r\n\t\t//\r\n\t}",
"public void serviceLoop() {\n this.transactionServices.linkServices();\n this.accountServices.linkServices();\n //this.userServices.linkServices();\n\n new UserMenu(this).displayMenu();\n\n new MainMenu(this).displayMenu();\n\n logOut();\n\n serviceLoop();\n }",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"@Override\n\tpublic void coreProblemExecution() {\n\t\t\n\t}",
"@Override\n\tpublic void run() {\n\t\tString key = CounterUtils.getKey(this.name);\n//\t\tif(DemoUtils.isExist(DemoUtils.keyName, key)) {\n//\t\t\tSystem.out.println(\"OK\");\n//\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\tSystem.out.println(name + \" : \" + CounterUtils.get(CounterUtils.getKey(name)));\n\t\t\tCounterUtils.setEntity(key);\n\t\t\tCounterUtils.inc(key);\n\t\t\tcounter ++;\n\t\t\tif(cal.getTimeInMillis() < new Date().getTime()) {\n\t\t\t\tSystem.out.println(name + \" : \" + counter);\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\t//CounterUtils.del(CounterUtils.getKey(name));\n\t\t}\n\t\t\n\t\t\n\t}",
"public void run(){\r\n //print out what thread is running\r\n System.out.println(\"Thread: \" + k);\r\n //while the ant in the current thread hasnt seen all the nubmers\r\n while (SCPParallel.colony.get(k + SCPParallel.adjust).seenAll == false\r\n && SCPParallel.colony.get(k + SCPParallel.adjust).seenAllNumbers(SCPParallel.universe, SCPParallel.sets) == false){\r\n //get the ants next step\r\n SCPParallel.colony.get(k + SCPParallel.adjust).addToPath(SCPParallel.colony.get(k + SCPParallel.adjust).getNextStep(SCPParallel.sets, SCPParallel.pheremones));\r\n }\r\n //counts down the latch when the ant has seen all the numbers\r\n SCPParallel.latch.countDown();\r\n }",
"@Override\n public void init_loop() {}",
"public void run() {\n\t\t\t\tfor(int i = 0;i<=50;i++){\n\t\t\t\tbussiness.sub(i);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"public void execute() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"protected void execute() {\n\t\t//execution handled by pid thread\n\t}",
"@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }",
"protected void runAfterIterations() {}",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\r\n \tpublic void process() {\n \t\t\r\n \t}",
"protected abstract void preRun();",
"public void execute() {\r\n\r\n\t\t// Fetch the 10 records from DB\r\n\t\t// Iterate over them\r\n\t\t// Fetch the ImageActionObject\r\n\t\t// Get the first task to work on\r\n\t\t// Inastantiate the task by ImageActionTaskFactory.getImageActionTask\r\n\t\t// Set the ImageActionObject\r\n\t\t// Submit the task to the executor\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\r\n\t\t\t\t\"dd/MM/yyyy HH:mm:ss\");\r\n\t\tlog.info(\"*** Executing poller at : \" + dateFormat.format(new Date()));\r\n\t\tList<ImageActionObject> incompleteImageActionObjects = new ArrayList<ImageActionObject>();\r\n\t\t// Fetching the 10 records from DB\r\n\t\ttry {\r\n\t\t\tincompleteImageActionObjects = imageActionImpl\r\n\t\t\t\t\t.searchIncompleteImageAction(5);\r\n\t\t\tlog.debug(\"*** Got \" + incompleteImageActionObjects.size()\r\n\t\t\t\t\t+ \" to process\");\r\n\t\t} catch (DbException e) {\r\n\t\t\t// TODO Handle Error\r\n\t\t\tlog.error(\"searchIncompleteImageAction failed\", e);\r\n\t\t}\r\n\t\t// iterate over list of image action objects\r\n\t\tlog.debug(\"incompleteImageActionObjects::\"\r\n\t\t\t\t+ incompleteImageActionObjects);\r\n\r\n\t\tfor (ImageActionObject imageActionObj : incompleteImageActionObjects) {\r\n\t\t\tlog.info(\"ImageAction Object in poller (\" + imageActionObj.getId()\r\n\t\t\t\t\t+ \"): Number of tasks: \"\r\n\t\t\t\t\t+ imageActionObj.getActions().size());\r\n\t\t\tlog.info(\"Current status of image action object:\"\r\n\t\t\t\t\t+ imageActionObj.getCurrent_task_status());\r\n\t\t\t\r\n\t\t\tif(imageActionToRunCountMap.containsKey(imageActionObj.getId())){\r\n\t\t\t\tInteger currentCount = imageActionToRunCountMap.get(imageActionObj.getId());\r\n\t\t\t\tif(currentCount < 10){\r\n\t\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), ++currentCount);\r\n\t\t\t\t}else{\r\n\t\t\t\t\t//mark error\r\n\t\t\t\t\tlog.info(\"mark image action {} to error after 10 tries\", imageActionObj.getId());\r\n\t\t\t\t\timageIdsInProcess.remove(imageActionObj.getImage_id());\r\n\t\t\t\t\timageActionObj.setCurrent_task_status(Constants.ERROR);\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpersistService.updateImageAction(imageActionObj);\r\n\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t} catch (DbException e) {\r\n\t\t\t\t\t\tlog.error(\"Error in Poller\",e);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t\tfinally{\r\n\t\t\t\t\t\tremoveEntryFromImageActionCountMap(imageActionObj.getId());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}else{\t\t\t\t\r\n\t\t\t\taddEntryFromImageActionCountMap(imageActionObj.getId(), 1);\r\n\t\t\t}\r\n\r\n\t\t\tif (imageIdsInProcess.contains(imageActionObj.getImage_id())) {\r\n\t\t\t\tlog.info(\"Image already in process. Skipping\");\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\timageIdsInProcess.add(imageActionObj.getImage_id());\r\n\r\n\t\t\tif (imageActionObj.getCurrent_task_status() != null\r\n\t\t\t\t\t&& imageActionObj.getCurrent_task_status().equals(\r\n\t\t\t\t\t\t\tConstants.INCOMPLETE)) {\r\n\t\t\t\tExecuteActions task = new ExecuteActions(imageActionObj);\r\n\t\t\t\tImageActionExecutor.submitTask(task);\r\n\t\t\t\tlog.info(\"Submitted task for ExecuteActions for id: \"\r\n\t\t\t\t\t\t+ imageActionObj.getId());\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}",
"public void runSingleThreaded() throws Exception {\n Object entity = null;\n isRunning = true;\n bootstrapCPE();\n ProcessTrace pTrTemp = getProcessTrace();\n boolean success = true;\n long entityCount = 0;\n // long start = System.currentTimeMillis();\n long aggTime = 0;\n long ppTime = 0;\n long ccTime = 0;\n long crTime = 0;\n\n for (int j = 0; j < statusCbL.size(); j++) {\n BaseStatusCallbackListener statCL = (BaseStatusCallbackListener) statusCbL.get(j);\n if (statCL != null) {\n statCL.initializationComplete();\n }\n }\n\n while (isRunning) {\n try {\n // Check if processed all entities as defined in the Cpe Descriptor.\n if (endOfProcessingReached(entityCount)) {\n break;\n }\n waitForCpmToResumeIfPaused(); // blocks if CPM is paused\n // check again the state of the cpm after pause\n if (!isRunning) {\n break;\n }\n readerState = 1000;\n if (!collectionReader.hasNext()) {\n break;\n }\n long st0 = System.currentTimeMillis();\n entity = getCasWithSOFA(entity, pTrTemp);\n crTime += (System.currentTimeMillis() - st0);\n\n if (entity == null) {\n success = false;\n continue;\n }\n\n if (entity instanceof CAS[] && skipDroppedDocument((Object[]) entity)) {\n notifyListeners(CAS_PROCESSED_MSG, (Object[]) entity, pTrTemp,\n new SkipCasException(\"Skipping Document Due To Dropped Cas in a Sequence\"));\n releaseCASes((CAS[]) entity);\n continue;\n } else {\n // Clear the cache of bad documents\n if (skippedDocs.size() > 0) {\n skippedDocs.clear();\n }\n }\n long st1 = System.currentTimeMillis();\n\n // If CAS has been dropped due to an exception dont call CasConsumer\n success = nonThreadedProcessingUnit.analyze((Object[]) entity, pTrTemp);\n ppTime += (System.currentTimeMillis() - st1);\n if (success) {\n long st2 = System.currentTimeMillis();\n nonThreadedCasConsumerProcessingUnit.analyze((Object[]) entity, pTrTemp);\n\n ccTime += (System.currentTimeMillis() - st2);\n }\n\n } catch (Throwable t) {\n // may change the state of the isRunning on fatal exception\n handleException(t, (Object[]) entity, pTrTemp);\n success = false;\n } finally {\n entityCount++;\n // After sucessfull analysis notify listeners. If there was an exception, it has\n // already been reported\n if (success) {\n readerState = 2007;\n if (entity == null) {\n notifyListeners(CAS_PROCESSED_MSG, null, pTrTemp);\n } else {\n notifyListeners(CAS_PROCESSED_MSG, (Object[]) entity, pTrTemp);\n }\n }\n if (entity != null && entity instanceof CAS[]) {\n releaseCASes((CAS[]) entity);\n entity = null;\n }\n\n // Update processing trace counts and timers\n synchronized (procTr) {\n long st = System.currentTimeMillis();\n procTr.aggregate(pTrTemp);\n pTrTemp.clear();\n aggTime += (System.currentTimeMillis() - st);\n }\n }\n } // while\n tearDownCPE();\n }",
"@Override\n public void run() {\n\tprocess();\n }",
"public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }",
"public void execute(){\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"-----------4.4--------------\");\r\n\t\twhileLoop1();\r\n\t\twhileLoop2();\r\n\t\twhileLoop3();\r\n\t\tforeachLoop();\r\n\t\tdoWhileLoop1();\r\n\t\tdoWhileLoop2();\r\n\t\tbreakWithFor();\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tExecutorService threadPool = Executors.newCachedThreadPool();\r\n\t\ttry {\r\n\t\t\tfor (int i = 0; i < 10; i++) {\r\n\t\t\t\tthreadPool.execute(()->{\r\n\t\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \"\\t 执行业务\");\r\n\t\t\t\t});\r\n\t\t\t\tTimeUnit.MICROSECONDS.sleep(200);\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}finally {\r\n\t\t\tthreadPool.shutdown();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"void run();",
"void run();",
"void run();",
"void run();",
"@Override\n public void run() {\n while (true) {\n // (1)\n Select deploymentRecordQuery =\n QueryBuilder.select()\n .all()\n .from(Constants.PATHSTORE_APPLICATIONS, Constants.NODE_SCHEMAS);\n\n deploymentRecordQuery.where(\n QueryBuilder.eq(Constants.NODE_SCHEMAS_COLUMNS.NODE_ID, this.nodeId));\n\n for (Row row : this.session.execute(deploymentRecordQuery)) {\n NodeSchemaEntry entry = NodeSchemaEntry.fromRow(row);\n\n if (entry.nodeSchemaProcessStatus != NodeSchemaProcessStatus.INSTALLING\n && entry.nodeSchemaProcessStatus != NodeSchemaProcessStatus.REMOVING) continue;\n\n // (2)\n this.transitionRow(entry.nodeSchemaProcessStatus, entry.keyspaceName);\n\n // (3)\n this.spawnSubProcess(entry.nodeSchemaProcessStatus, entry.keyspaceName);\n }\n\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n logger.error(e);\n }\n }\n }",
"protected void execute() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tpc.cusumoer();\n\t\t\t\t\t\tThread.sleep(100);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"public void execute() {\r\n\t\r\n\t}",
"public void loop() {\n this.instructionList.restart();\t\n }",
"private static void startWork()\n {{\n String ftnTxt= null;\n FileToFtnParser parser= new FileToFtnParser( arg_ir_filename );\n String hashes39= \"#######################################\";\n\n while( true ) {\n\t ftnTxt= parser.parseFtn();\n\t if ( ftnTxt == null ) { break; }\n\t if ( arg_verbosity > 1 ) {\n\t System.out.println ( hashes39+ hashes39 );\n\t System.out.println ( \"found function: <<EOF \" );\n\t System.out.println ( ftnTxt );\n\t System.out.println ( \"EOF\" );\n\t }\n\n\t FtnParts ftnParts= new FtnParts( ftnTxt );\n\n\t if ( arg_verbosity > 0 ) {\n System.out.println( \"---\" );\n\t System.out.println( \"function: \" );\n\t System.out.println( ftnParts.toString() );\n\t }\n\n\t TestGenerator generator= new TestGenerator( ftnParts, arg_numCalls );\n\t String outFilename= arg_outDirname+ File.separator+ \n\t ftnParts.getNameWithoutSigil()+ \".ll\";\n\t generator.generate( outFilename );\n }\n\n }}",
"abstract void exec();",
"public static void main(String[] args) {\n\t\t// create a thread and start a parallel execution from here\t\t\n\t\ttry{\n\t\t\tDate dNow = new Date( );\n\t\t\tSimpleDateFormat ft = new SimpleDateFormat(\"ddMMyyyyhhmmss\");\n\t\t\tString RunID = String.valueOf(ft.format(dNow)) + String.valueOf(System.currentTimeMillis());\n\t\t\tGlobalProperties.items.setRunID(RunID);\n\t\t\trun();\n\t\t\t\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\t\n\t\t}\n\n\t}",
"protected void additionalProcessing() {\n\t}",
"@Override\n protected void runOneIteration() throws Exception {\n }"
] | [
"0.6336203",
"0.6335354",
"0.63226557",
"0.6250774",
"0.6237948",
"0.6153345",
"0.61266506",
"0.61188",
"0.607024",
"0.6066919",
"0.6037296",
"0.6032512",
"0.5999147",
"0.59837115",
"0.5960953",
"0.59551877",
"0.5948242",
"0.59432065",
"0.5931406",
"0.59304774",
"0.59304774",
"0.59291595",
"0.59179866",
"0.590691",
"0.58957475",
"0.5888128",
"0.588759",
"0.5874644",
"0.58642316",
"0.5827782",
"0.5826964",
"0.58224636",
"0.58224636",
"0.5804517",
"0.5802356",
"0.5797479",
"0.5790453",
"0.57873976",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.57812035",
"0.5771296",
"0.576447",
"0.5763042",
"0.57608265",
"0.5757329",
"0.5727257",
"0.5723522",
"0.57182705",
"0.5716356",
"0.57146543",
"0.57146543",
"0.5701377",
"0.5701078",
"0.57009643",
"0.57004166",
"0.56943566",
"0.5690366",
"0.5690366",
"0.56896216",
"0.56878227",
"0.56819654",
"0.56812245",
"0.566891",
"0.5666834",
"0.5665591",
"0.56643575",
"0.566306",
"0.5657412",
"0.5654864",
"0.5653931",
"0.56529635",
"0.5650566",
"0.56471467",
"0.56471467",
"0.56471467",
"0.56471467",
"0.56441",
"0.56421095",
"0.5639271",
"0.5639271",
"0.5637031",
"0.56369865",
"0.56333786",
"0.5632477",
"0.5629982",
"0.56263644",
"0.5621937"
] | 0.0 | -1 |
/ COMPLEX OPCODE IMPLEMENTATIONS | static void lwl_be(UINT32 op)
{
offs_t offs = SIMMVAL + RSVAL32;
data32_t temp = RLONG(offs & ~3);
if (RTREG)
{
if (!(offs & 3)) RTVAL64 = (INT32)temp;
else
{
int shift = 8 * (offs & 3);
RTVAL64 = (INT32)((RTVAL32 & (0x00ffffff >> (24 - shift))) | (temp << shift));
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Operations operations();",
"private native double SumaC(double operador_1, double operador_2);",
"private int caculate(Operation opt, int t1, int t2) {\n\t\tint res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = t1 + t2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = t1 - t2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = t1 * t2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = t1 / t2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.intHolder.add(res); return lex.intHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public static void main(String[] args) {\n\tComplex c1 = new Complex(1,2);\r\n\tComplex c2 = new Complex(-2,-1);\r\n\t\r\n\t//Calculates the product of c1 and c2\r\n\tComplex product_c1c2 = Complex.multiply(c1, c2);\r\n\tSystem.out.println(\"The product of c1 and c2 is: \"+product_c1c2);\r\n \t\r\n\t//Calculates the ratio of c1 to c2 (c1/c2)\r\n\tComplex ratio_c1c2 = Complex.divide(c1, c2);\r\n\tSystem.out.println(\"The ratio of c1 to c2 is: \"+ratio_c1c2);\r\n\t\r\n\t//Calculates the product of c1 and I\r\n\tComplex product_c1I = Complex.multiply(c1, Complex.I);\r\n\tSystem.out.println(\"The product of c1 and I is: \"+product_c1I);\r\n\t\r\n\t//Calculates the ratio of c1 to 0\r\n\tComplex ratio_c1Zero = Complex.divide(c1, Complex.Zero);\r\n\tSystem.out.println(\"The ratio of c1 and 0 is: \"+ratio_c1Zero);\r\n\t\r\n\t//Calculates the product of c1 with the conjugate of c1\r\n\tComplex c1_conj = Complex.conj(c1);\r\n\tComplex product_c1c1conj = Complex.multiply(c1,c1_conj);\r\n\tSystem.out.println(\"The product of c1 and c1* is: \"+product_c1c1conj);\r\n\t\r\n\t//Calculates the product of c1 with the conjugate of c1\r\n\tComplex c2_conj = Complex.conj(c2);\r\n\tComplex product_c2c2conj = Complex.multiply(c2,c2_conj);\r\n\tSystem.out.println(\"The product of c1 and c1* is: \"+product_c2c2conj);\r\n\t}",
"private float caculate(Operation opt, float f1, float f2) {\n\t\tfloat res;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\tres = 0;\n\t\t\terr.error(\"No operation in caculating.\");\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public abstract double calculate(Complex c,Complex current);",
"private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }",
"private float caculate(Operation opt, float f1, int t2) {\n\t\tfloat res;\n\t\tfloat tt2 = (float) t2;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = f1 + tt2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = f1 - tt2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = f1 * tt2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = f1 / tt2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\treturn 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"private float caculate(Operation opt, int t1, float f2) {\n\t\tfloat res;\n\t\tfloat tt1 = (float) t1;\n\t\tswitch (opt) {\n\t\tcase ADD:\n\t\t\tres = tt1 + f2;\n\t\t\tbreak;\n\t\tcase SUB:\n\t\t\tres = tt1 - f2;\n\t\t\tbreak;\n\t\tcase MUL:\n\t\t\tres = tt1 * f2;\n\t\t\tbreak;\n\t\tcase DIV:\n\t\t\tres = tt1 / f2;\n\t\t\tbreak;\n\t\tcase NULL:\n\t\t\terr.error(\"No operation in caculating.\");\n\t\t\tres = 0;\n\t\tdefault:\n\t\t\tres = 0;\n\t\t\tbreak;\n\t\t}\n\n\t\treturn res;\n\n\t\t/*\n\t\t * lex.floatHolder.add(res); return lex.floatHolder.lastIndexOf(res);\n\t\t */\n\t}",
"public arm a(int paramInt1, int paramInt2)\r\n/* 18: */ {\r\n/* 19:32 */ return this.b[(paramInt1 & 0xF | (paramInt2 & 0xF) << 4)];\r\n/* 20: */ }",
"@Override\n public void function() {\n App.memory.setMemory(op2, Memory.convertBSToBoolArr(Memory.length32(Integer.toBinaryString(\n op1 * Integer.parseInt(App.memory.getMemory(op2, 1 << 2 + 2 + 1), 2)))));\n }",
"public interface Opcodes\n{\n // Fields\n\n public static final int OP_NOP = 0;\n\n public static final int OP_MOVE = 1;\n\n public static final int OP_MOVE_FROM16 = 2;\n\n public static final int OP_MOVE_16 = 3;\n\n public static final int OP_MOVE_WIDE = 4;\n\n public static final int OP_MOVE_WIDE_FROM16 = 5;\n\n public static final int OP_MOVE_WIDE_16 = 6;\n\n public static final int OP_MOVE_OBJECT = 7;\n\n public static final int OP_MOVE_OBJECT_FROM16 = 8;\n\n public static final int OP_MOVE_OBJECT_16 = 9;\n\n public static final int OP_MOVE_RESULT = 10;\n\n public static final int OP_MOVE_RESULT_WIDE = 11;\n\n public static final int OP_MOVE_RESULT_OBJECT = 12;\n\n public static final int OP_MOVE_EXCEPTION = 13;\n\n public static final int OP_RETURN_VOID = 14;\n\n public static final int OP_RETURN = 15;\n\n public static final int OP_RETURN_WIDE = 16;\n\n public static final int OP_RETURN_OBJECT = 17;\n\n public static final int OP_CONST_4 = 18;\n\n public static final int OP_CONST_16 = 19;\n\n public static final int OP_CONST = 20;\n\n public static final int OP_CONST_HIGH16 = 21;\n\n public static final int OP_CONST_WIDE_16 = 22;\n\n public static final int OP_CONST_WIDE_32 = 23;\n\n public static final int OP_CONST_WIDE = 24;\n\n public static final int OP_CONST_WIDE_HIGH16 = 25;\n\n public static final int OP_CONST_STRING = 26;\n\n public static final int OP_CONST_STRING_JUMBO = 27;\n\n public static final int OP_CONST_CLASS = 28;\n\n public static final int OP_MONITOR_ENTER = 29;\n\n public static final int OP_MONITOR_EXIT = 30;\n\n public static final int OP_CHECK_CAST = 31;\n\n public static final int OP_INSTANCE_OF = 32;\n\n public static final int OP_ARRAY_LENGTH = 33;\n\n public static final int OP_NEW_INSTANCE = 34;\n\n public static final int OP_NEW_ARRAY = 35;\n\n public static final int OP_FILLED_NEW_ARRAY = 36;\n\n public static final int OP_FILLED_NEW_ARRAY_RANGE = 37;\n\n public static final int OP_FILL_ARRAY_DATA = 38;\n\n public static final int OP_THROW = 39;\n\n public static final int OP_GOTO = 40;\n\n public static final int OP_GOTO_16 = 41;\n\n public static final int OP_GOTO_32 = 42;\n\n public static final int OP_PACKED_SWITCH = 43;\n\n public static final int OP_SPARSE_SWITCH = 44;\n\n public static final int OP_CMPL_FLOAT = 45;\n\n public static final int OP_CMPG_FLOAT = 46;\n\n public static final int OP_CMPL_DOUBLE = 47;\n\n public static final int OP_CMPG_DOUBLE = 48;\n\n public static final int OP_CMP_LONG = 49;\n\n public static final int OP_IF_EQ = 50;\n\n public static final int OP_IF_NE = 51;\n\n public static final int OP_IF_LT = 52;\n\n public static final int OP_IF_GE = 53;\n\n public static final int OP_IF_GT = 54;\n\n public static final int OP_IF_LE = 55;\n\n public static final int OP_IF_EQZ = 56;\n\n public static final int OP_IF_NEZ = 57;\n\n public static final int OP_IF_LTZ = 58;\n\n public static final int OP_IF_GEZ = 59;\n\n public static final int OP_IF_GTZ = 60;\n\n public static final int OP_IF_LEZ = 61;\n\n public static final int OP_AGET = 68;\n\n public static final int OP_AGET_WIDE = 69;\n\n public static final int OP_AGET_OBJECT = 70;\n\n public static final int OP_AGET_BOOLEAN = 71;\n\n public static final int OP_AGET_BYTE = 72;\n\n public static final int OP_AGET_CHAR = 73;\n\n public static final int OP_AGET_SHORT = 74;\n\n public static final int OP_APUT = 75;\n\n public static final int OP_APUT_WIDE = 76;\n\n public static final int OP_APUT_OBJECT = 77;\n\n public static final int OP_APUT_BOOLEAN = 78;\n\n public static final int OP_APUT_BYTE = 79;\n\n public static final int OP_APUT_CHAR = 80;\n\n public static final int OP_APUT_SHORT = 81;\n\n public static final int OP_IGET = 82;\n\n public static final int OP_IGET_WIDE = 83;\n\n public static final int OP_IGET_OBJECT = 84;\n\n public static final int OP_IGET_BOOLEAN = 85;\n\n public static final int OP_IGET_BYTE = 86;\n\n public static final int OP_IGET_CHAR = 87;\n\n public static final int OP_IGET_SHORT = 88;\n\n public static final int OP_IPUT = 89;\n\n public static final int OP_IPUT_WIDE = 90;\n\n public static final int OP_IPUT_OBJECT = 91;\n\n public static final int OP_IPUT_BOOLEAN = 92;\n\n public static final int OP_IPUT_BYTE = 93;\n\n public static final int OP_IPUT_CHAR = 94;\n\n public static final int OP_IPUT_SHORT = 95;\n\n public static final int OP_SGET = 96;\n\n public static final int OP_SGET_WIDE = 97;\n\n public static final int OP_SGET_OBJECT = 98;\n\n public static final int OP_SGET_BOOLEAN = 99;\n\n public static final int OP_SGET_BYTE = 100;\n\n public static final int OP_SGET_CHAR = 101;\n\n public static final int OP_SGET_SHORT = 102;\n\n public static final int OP_SPUT = 103;\n\n public static final int OP_SPUT_WIDE = 104;\n\n public static final int OP_SPUT_OBJECT = 105;\n\n public static final int OP_SPUT_BOOLEAN = 106;\n\n public static final int OP_SPUT_BYTE = 107;\n\n public static final int OP_SPUT_CHAR = 108;\n\n public static final int OP_SPUT_SHORT = 109;\n\n public static final int OP_INVOKE_VIRTUAL = 110;\n\n public static final int OP_INVOKE_SUPER = 111;\n\n public static final int OP_INVOKE_DIRECT = 112;\n\n public static final int OP_INVOKE_STATIC = 113;\n\n public static final int OP_INVOKE_INTERFACE = 114;\n\n public static final int OP_INVOKE_VIRTUAL_RANGE = 116;\n\n public static final int OP_INVOKE_SUPER_RANGE = 117;\n\n public static final int OP_INVOKE_DIRECT_RANGE = 118;\n\n public static final int OP_INVOKE_STATIC_RANGE = 119;\n\n public static final int OP_INVOKE_INTERFACE_RANGE = 120;\n\n public static final int OP_NEG_INT = 123;\n\n public static final int OP_NOT_INT = 124;\n\n public static final int OP_NEG_LONG = 125;\n\n public static final int OP_NOT_LONG = 126;\n\n public static final int OP_NEG_FLOAT = 127;\n\n public static final int OP_NEG_DOUBLE = 128;\n\n public static final int OP_INT_TO_LONG = 129;\n\n public static final int OP_INT_TO_FLOAT = 130;\n\n public static final int OP_INT_TO_DOUBLE = 131;\n\n public static final int OP_LONG_TO_INT = 132;\n\n public static final int OP_LONG_TO_FLOAT = 133;\n\n public static final int OP_LONG_TO_DOUBLE = 134;\n\n public static final int OP_FLOAT_TO_INT = 135;\n\n public static final int OP_FLOAT_TO_LONG = 136;\n\n public static final int OP_FLOAT_TO_DOUBLE = 137;\n\n public static final int OP_DOUBLE_TO_INT = 138;\n\n public static final int OP_DOUBLE_TO_LONG = 139;\n\n public static final int OP_DOUBLE_TO_FLOAT = 140;\n\n public static final int OP_INT_TO_BYTE = 141;\n\n public static final int OP_INT_TO_CHAR = 142;\n\n public static final int OP_INT_TO_SHORT = 143;\n\n public static final int OP_ADD_INT = 144;\n\n public static final int OP_SUB_INT = 145;\n\n public static final int OP_MUL_INT = 146;\n\n public static final int OP_DIV_INT = 147;\n\n public static final int OP_REM_INT = 148;\n\n public static final int OP_AND_INT = 149;\n\n public static final int OP_OR_INT = 150;\n\n public static final int OP_XOR_INT = 151;\n\n public static final int OP_SHL_INT = 152;\n\n public static final int OP_SHR_INT = 153;\n\n public static final int OP_USHR_INT = 154;\n\n public static final int OP_ADD_LONG = 155;\n\n public static final int OP_SUB_LONG = 156;\n\n public static final int OP_MUL_LONG = 157;\n\n public static final int OP_DIV_LONG = 158;\n\n public static final int OP_REM_LONG = 159;\n\n public static final int OP_AND_LONG = 160;\n\n public static final int OP_OR_LONG = 161;\n\n public static final int OP_XOR_LONG = 162;\n\n public static final int OP_SHL_LONG = 163;\n\n public static final int OP_SHR_LONG = 164;\n\n public static final int OP_USHR_LONG = 165;\n\n public static final int OP_ADD_FLOAT = 166;\n\n public static final int OP_SUB_FLOAT = 167;\n\n public static final int OP_MUL_FLOAT = 168;\n\n public static final int OP_DIV_FLOAT = 169;\n\n public static final int OP_REM_FLOAT = 170;\n\n public static final int OP_ADD_DOUBLE = 171;\n\n public static final int OP_SUB_DOUBLE = 172;\n\n public static final int OP_MUL_DOUBLE = 173;\n\n public static final int OP_DIV_DOUBLE = 174;\n\n public static final int OP_REM_DOUBLE = 175;\n\n public static final int OP_ADD_INT_2ADDR = 176;\n\n public static final int OP_SUB_INT_2ADDR = 177;\n\n public static final int OP_MUL_INT_2ADDR = 178;\n\n public static final int OP_DIV_INT_2ADDR = 179;\n\n public static final int OP_REM_INT_2ADDR = 180;\n\n public static final int OP_AND_INT_2ADDR = 181;\n\n public static final int OP_OR_INT_2ADDR = 182;\n\n public static final int OP_XOR_INT_2ADDR = 183;\n\n public static final int OP_SHL_INT_2ADDR = 184;\n\n public static final int OP_SHR_INT_2ADDR = 185;\n\n public static final int OP_USHR_INT_2ADDR = 186;\n\n public static final int OP_ADD_LONG_2ADDR = 187;\n\n public static final int OP_SUB_LONG_2ADDR = 188;\n\n public static final int OP_MUL_LONG_2ADDR = 189;\n\n public static final int OP_DIV_LONG_2ADDR = 190;\n\n public static final int OP_REM_LONG_2ADDR = 191;\n\n public static final int OP_AND_LONG_2ADDR = 192;\n\n public static final int OP_OR_LONG_2ADDR = 193;\n\n public static final int OP_XOR_LONG_2ADDR = 194;\n\n public static final int OP_SHL_LONG_2ADDR = 195;\n\n public static final int OP_SHR_LONG_2ADDR = 196;\n\n public static final int OP_USHR_LONG_2ADDR = 197;\n\n public static final int OP_ADD_FLOAT_2ADDR = 198;\n\n public static final int OP_SUB_FLOAT_2ADDR = 199;\n\n public static final int OP_MUL_FLOAT_2ADDR = 200;\n\n public static final int OP_DIV_FLOAT_2ADDR = 201;\n\n public static final int OP_REM_FLOAT_2ADDR = 202;\n\n public static final int OP_ADD_DOUBLE_2ADDR = 203;\n\n public static final int OP_SUB_DOUBLE_2ADDR = 204;\n\n public static final int OP_MUL_DOUBLE_2ADDR = 205;\n\n public static final int OP_DIV_DOUBLE_2ADDR = 206;\n\n public static final int OP_REM_DOUBLE_2ADDR = 207;\n\n public static final int OP_ADD_INT_LIT16 = 208;\n\n public static final int OP_RSUB_INT = 209;\n\n public static final int OP_MUL_INT_LIT16 = 210;\n\n public static final int OP_DIV_INT_LIT16 = 211;\n\n public static final int OP_REM_INT_LIT16 = 212;\n\n public static final int OP_AND_INT_LIT16 = 213;\n\n public static final int OP_OR_INT_LIT16 = 214;\n\n public static final int OP_XOR_INT_LIT16 = 215;\n\n public static final int OP_ADD_INT_LIT8 = 216;\n\n public static final int OP_RSUB_INT_LIT8 = 217;\n\n public static final int OP_MUL_INT_LIT8 = 218;\n\n public static final int OP_DIV_INT_LIT8 = 219;\n\n public static final int OP_REM_INT_LIT8 = 220;\n\n public static final int OP_AND_INT_LIT8 = 221;\n\n public static final int OP_OR_INT_LIT8 = 222;\n\n public static final int OP_XOR_INT_LIT8 = 223;\n\n public static final int OP_SHL_INT_LIT8 = 224;\n\n public static final int OP_SHR_INT_LIT8 = 225;\n\n public static final int OP_USHR_INT_LIT8 = 226;\n\n public static final int OP_CONST_CLASS_JUMBO = 255;\n\n public static final int OP_CHECK_CAST_JUMBO = 511;\n\n public static final int OP_INSTANCE_OF_JUMBO = 767;\n\n public static final int OP_NEW_INSTANCE_JUMBO = 1023;\n\n public static final int OP_NEW_ARRAY_JUMBO = 1279;\n\n public static final int OP_FILLED_NEW_ARRAY_JUMBO = 1535;\n\n public static final int OP_IGET_JUMBO = 1791;\n\n public static final int OP_IGET_WIDE_JUMBO = 2047;\n\n public static final int OP_IGET_OBJECT_JUMBO = 2303;\n\n public static final int OP_IGET_BOOLEAN_JUMBO = 2559;\n\n public static final int OP_IGET_BYTE_JUMBO = 2815;\n\n public static final int OP_IGET_CHAR_JUMBO = 3071;\n\n public static final int OP_IGET_SHORT_JUMBO = 3327;\n\n public static final int OP_IPUT_JUMBO = 3583;\n\n public static final int OP_IPUT_WIDE_JUMBO = 3839;\n\n public static final int OP_IPUT_OBJECT_JUMBO = 4095;\n\n public static final int OP_IPUT_BOOLEAN_JUMBO = 4351;\n\n public static final int OP_IPUT_BYTE_JUMBO = 4607;\n\n public static final int OP_IPUT_CHAR_JUMBO = 4863;\n\n public static final int OP_IPUT_SHORT_JUMBO = 5119;\n\n public static final int OP_SGET_JUMBO = 5375;\n\n public static final int OP_SGET_WIDE_JUMBO = 5631;\n\n public static final int OP_SGET_OBJECT_JUMBO = 5887;\n\n public static final int OP_SGET_BOOLEAN_JUMBO = 6143;\n\n public static final int OP_SGET_BYTE_JUMBO = 6399;\n\n public static final int OP_SGET_CHAR_JUMBO = 6655;\n\n public static final int OP_SGET_SHORT_JUMBO = 6911;\n\n public static final int OP_SPUT_JUMBO = 7167;\n\n public static final int OP_SPUT_WIDE_JUMBO = 7423;\n\n public static final int OP_SPUT_OBJECT_JUMBO = 7679;\n\n public static final int OP_SPUT_BOOLEAN_JUMBO = 7935;\n\n public static final int OP_SPUT_BYTE_JUMBO = 8191;\n\n public static final int OP_SPUT_CHAR_JUMBO = 8447;\n\n public static final int OP_SPUT_SHORT_JUMBO = 8703;\n\n public static final int OP_INVOKE_VIRTUAL_JUMBO = 8959;\n\n public static final int OP_INVOKE_SUPER_JUMBO = 9215;\n\n public static final int OP_INVOKE_DIRECT_JUMBO = 9471;\n\n public static final int OP_INVOKE_STATIC_JUMBO = 9727;\n\n public static final int OP_INVOKE_INTERFACE_JUMBO = 9983;\n\n public static final int OP_IGET_WIDE_VOLATILE = 232;\n\n public static final int OP_IPUT_WIDE_VOLATILE = 233;\n\n public static final int OP_SGET_WIDE_VOLATILE = 234;\n\n public static final int OP_SPUT_WIDE_VOLATILE = 235;\n\n public static final int OP_BREAKPOINT = 236;\n\n public static final int OP_THROW_VERIFICATION_ERROR = 237;\n\n public static final int OP_EXECUTE_INLINE = 238;\n\n public static final int OP_EXECUTE_INLINE_RANGE = 239;\n\n public static final int OP_INVOKE_DIRECT_EMPTY = 240;\n\n public static final int OP_IGET_QUICK = 242;\n\n public static final int OP_IGET_WIDE_QUICK = 243;\n\n public static final int OP_IGET_OBJECT_QUICK = 244;\n\n public static final int OP_IPUT_QUICK = 245;\n\n public static final int OP_IPUT_WIDE_QUICK = 246;\n\n public static final int OP_IPUT_OBJECT_QUICK = 247;\n\n public static final int OP_INVOKE_VIRTUAL_QUICK = 248;\n\n public static final int OP_INVOKE_VIRTUAL_QUICK_RANGE = 249;\n\n public static final int OP_INVOKE_SUPER_QUICK = 250;\n\n public static final int OP_INVOKE_SUPER_QUICK_RANGE = 251;\n\n}",
"private void mul() {\n\n\t}",
"public static void run_op(int formact) {\n switch (formact) {\n case 2:\n switch (op.toInt()) {\n case 144: //case ADDR\n addr(select_reg(r1), select_reg(r2));\n break;\n case 4: //case CLEAR\n clear(select_reg(r1));\n break;\n case 160: //case COMPR\n compr(select_reg(r1), select_reg(r2));\n break;\n case 156: //case DIVR\n divr(select_reg(r1), select_reg(r2));\n break;\n case 152: //case MULR\n mulr(select_reg(r1), select_reg(r2));\n break;\n case 172: //case RMO\n rmo(select_reg(r1), select_reg(r2));\n break;\n case 164: //case SHIFTL\n shiftl(select_reg(r1), r2.toInt());\n break;\n case 168: //case SHIFTR\n shiftr(select_reg(r1), r2.toInt());\n break;\n case 148: //case SUBR\n subr(select_reg(r1), select_reg(r2));\n break;\n case 184: //case TIXR\n tixr(select_reg(r1));\n break;\n }\n break;\n case 3:\n case 4:\n switch (op.toInt()) {\n case 24: //case ADD\n add(address.toInt());\n break;\n case 64: //case AND\n and(address.toInt());\n break;\n case 40: //case COMP\n comp(address.toInt());\n break;\n case 36: //case DIV\n div(address.toInt());\n break;\n case 60: //case J\n j(address.toInt());\n break;\n case 48: //case JEQ\n jeq(address.toInt());\n break;\n case 52: //case JGT\n jgt(address.toInt());\n break;\n case 56: //case JLT\n jlt(address.toInt());\n break;\n case 72: //case JSUB\n jsub(address.toInt());\n break;\n case 0: //case LDA\n lda(address.toInt());\n break;\n case 104: //case LDB\n ldb(address.toInt());\n break;\n case 80: //case LDCH\n ldch(address.toInt());\n break;\n case 8: //case LDL\n ldl(address.toInt());\n break;\n case 108: //case LDS\n lds(address.toInt());\n break;\n case 116: //case LDT\n ldt(address.toInt());\n break;\n case 4: //case LDX\n ldx(address.toInt());\n break;\n case 32: //case MUL\n mul(address.toInt());\n break;\n case 68: //case OR\n or(address.toInt());\n break;\n case 76: //case RSUB\n rsub();\n break;\n case 12: //case STA\n sta(address.toInt(), formact);\n break;\n case 120: //case STB\n stb(address.toInt(), formact);\n break;\n case 84: //case STCH\n stch(address.toInt(), formact);\n break;\n case 20: //case STL\n stl(address.toInt(), formact);\n break;\n case 124: //case STS\n sts(address.toInt(), formact);\n break;\n case 132: //case STT\n stt(address.toInt(), formact);\n break;\n case 16: //case STX\n stx(address.toInt(), formact);\n break;\n case 28: //case SUB\n sub(address.toInt());\n break;\n case 44: //case TIX\n tix(address.toInt());\n break;\n }\n }\n }",
"public static void main(String [] args){\n\t\tint [] A = {0,1,1,1}; //1110\r\n\t\tint [] B = {1,0,1,0};\r\n\t\tint [] C = new Hw2p1q4().binarySum(A, B, A.length);\r\n\t\tfor(int i=A.length; i>=0; i--){\r\n\t\t\tSystem.out.print(C[i]);\r\n\t\t}\r\n\t}",
"protected abstract int intOp(int i1, int i2);",
"protected void processBlock(byte[] paramArrayOfByte)\r\n/* 150: */ {\r\n/* 151:236 */ int i5 = decodeBEInt(paramArrayOfByte, 0);\r\n/* 152:237 */ int i6 = decodeBEInt(paramArrayOfByte, 4);\r\n/* 153:238 */ int i7 = decodeBEInt(paramArrayOfByte, 8);\r\n/* 154:239 */ int i8 = decodeBEInt(paramArrayOfByte, 12);\r\n/* 155:240 */ int i9 = decodeBEInt(paramArrayOfByte, 16);\r\n/* 156:241 */ int i10 = decodeBEInt(paramArrayOfByte, 20);\r\n/* 157:242 */ int i11 = decodeBEInt(paramArrayOfByte, 24);\r\n/* 158:243 */ int i12 = decodeBEInt(paramArrayOfByte, 28);\r\n/* 159:244 */ int j = this.V00 ^ this.V10;\r\n/* 160:245 */ int k = this.V01 ^ this.V11;\r\n/* 161:246 */ int m = this.V02 ^ this.V12;\r\n/* 162:247 */ int n = this.V03 ^ this.V13;\r\n/* 163:248 */ int i1 = this.V04 ^ this.V14;\r\n/* 164:249 */ int i2 = this.V05 ^ this.V15;\r\n/* 165:250 */ int i3 = this.V06 ^ this.V16;\r\n/* 166:251 */ int i4 = this.V07 ^ this.V17;\r\n/* 167:252 */ j ^= this.V20;\r\n/* 168:253 */ k ^= this.V21;\r\n/* 169:254 */ m ^= this.V22;\r\n/* 170:255 */ n ^= this.V23;\r\n/* 171:256 */ i1 ^= this.V24;\r\n/* 172:257 */ i2 ^= this.V25;\r\n/* 173:258 */ i3 ^= this.V26;\r\n/* 174:259 */ i4 ^= this.V27;\r\n/* 175:260 */ int i = i4;\r\n/* 176:261 */ i4 = i3;\r\n/* 177:262 */ i3 = i2;\r\n/* 178:263 */ i2 = i1;\r\n/* 179:264 */ i1 = n ^ i;\r\n/* 180:265 */ n = m ^ i;\r\n/* 181:266 */ m = k;\r\n/* 182:267 */ k = j ^ i;\r\n/* 183:268 */ j = i;\r\n/* 184:269 */ this.V00 = (j ^ this.V00);\r\n/* 185:270 */ this.V01 = (k ^ this.V01);\r\n/* 186:271 */ this.V02 = (m ^ this.V02);\r\n/* 187:272 */ this.V03 = (n ^ this.V03);\r\n/* 188:273 */ this.V04 = (i1 ^ this.V04);\r\n/* 189:274 */ this.V05 = (i2 ^ this.V05);\r\n/* 190:275 */ this.V06 = (i3 ^ this.V06);\r\n/* 191:276 */ this.V07 = (i4 ^ this.V07);\r\n/* 192:277 */ this.V00 = (i5 ^ this.V00);\r\n/* 193:278 */ this.V01 = (i6 ^ this.V01);\r\n/* 194:279 */ this.V02 = (i7 ^ this.V02);\r\n/* 195:280 */ this.V03 = (i8 ^ this.V03);\r\n/* 196:281 */ this.V04 = (i9 ^ this.V04);\r\n/* 197:282 */ this.V05 = (i10 ^ this.V05);\r\n/* 198:283 */ this.V06 = (i11 ^ this.V06);\r\n/* 199:284 */ this.V07 = (i12 ^ this.V07);\r\n/* 200:285 */ i = i12;\r\n/* 201:286 */ i12 = i11;\r\n/* 202:287 */ i11 = i10;\r\n/* 203:288 */ i10 = i9;\r\n/* 204:289 */ i9 = i8 ^ i;\r\n/* 205:290 */ i8 = i7 ^ i;\r\n/* 206:291 */ i7 = i6;\r\n/* 207:292 */ i6 = i5 ^ i;\r\n/* 208:293 */ i5 = i;\r\n/* 209:294 */ this.V10 = (j ^ this.V10);\r\n/* 210:295 */ this.V11 = (k ^ this.V11);\r\n/* 211:296 */ this.V12 = (m ^ this.V12);\r\n/* 212:297 */ this.V13 = (n ^ this.V13);\r\n/* 213:298 */ this.V14 = (i1 ^ this.V14);\r\n/* 214:299 */ this.V15 = (i2 ^ this.V15);\r\n/* 215:300 */ this.V16 = (i3 ^ this.V16);\r\n/* 216:301 */ this.V17 = (i4 ^ this.V17);\r\n/* 217:302 */ this.V10 = (i5 ^ this.V10);\r\n/* 218:303 */ this.V11 = (i6 ^ this.V11);\r\n/* 219:304 */ this.V12 = (i7 ^ this.V12);\r\n/* 220:305 */ this.V13 = (i8 ^ this.V13);\r\n/* 221:306 */ this.V14 = (i9 ^ this.V14);\r\n/* 222:307 */ this.V15 = (i10 ^ this.V15);\r\n/* 223:308 */ this.V16 = (i11 ^ this.V16);\r\n/* 224:309 */ this.V17 = (i12 ^ this.V17);\r\n/* 225:310 */ i = i12;\r\n/* 226:311 */ i12 = i11;\r\n/* 227:312 */ i11 = i10;\r\n/* 228:313 */ i10 = i9;\r\n/* 229:314 */ i9 = i8 ^ i;\r\n/* 230:315 */ i8 = i7 ^ i;\r\n/* 231:316 */ i7 = i6;\r\n/* 232:317 */ i6 = i5 ^ i;\r\n/* 233:318 */ i5 = i;\r\n/* 234:319 */ this.V20 = (j ^ this.V20);\r\n/* 235:320 */ this.V21 = (k ^ this.V21);\r\n/* 236:321 */ this.V22 = (m ^ this.V22);\r\n/* 237:322 */ this.V23 = (n ^ this.V23);\r\n/* 238:323 */ this.V24 = (i1 ^ this.V24);\r\n/* 239:324 */ this.V25 = (i2 ^ this.V25);\r\n/* 240:325 */ this.V26 = (i3 ^ this.V26);\r\n/* 241:326 */ this.V27 = (i4 ^ this.V27);\r\n/* 242:327 */ this.V20 = (i5 ^ this.V20);\r\n/* 243:328 */ this.V21 = (i6 ^ this.V21);\r\n/* 244:329 */ this.V22 = (i7 ^ this.V22);\r\n/* 245:330 */ this.V23 = (i8 ^ this.V23);\r\n/* 246:331 */ this.V24 = (i9 ^ this.V24);\r\n/* 247:332 */ this.V25 = (i10 ^ this.V25);\r\n/* 248:333 */ this.V26 = (i11 ^ this.V26);\r\n/* 249:334 */ this.V27 = (i12 ^ this.V27);\r\n/* 250:335 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 251:336 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 252:337 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 253:338 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 254:339 */ this.V24 = (this.V24 << 2 | this.V24 >>> 30);\r\n/* 255:340 */ this.V25 = (this.V25 << 2 | this.V25 >>> 30);\r\n/* 256:341 */ this.V26 = (this.V26 << 2 | this.V26 >>> 30);\r\n/* 257:342 */ this.V27 = (this.V27 << 2 | this.V27 >>> 30);\r\n/* 258:343 */ for (int i13 = 0; i13 < 8; i13++)\r\n/* 259: */ {\r\n/* 260:344 */ i = this.V00;\r\n/* 261:345 */ this.V00 |= this.V01;\r\n/* 262:346 */ this.V02 ^= this.V03;\r\n/* 263:347 */ this.V01 ^= 0xFFFFFFFF;\r\n/* 264:348 */ this.V00 ^= this.V03;\r\n/* 265:349 */ this.V03 &= i;\r\n/* 266:350 */ this.V01 ^= this.V03;\r\n/* 267:351 */ this.V03 ^= this.V02;\r\n/* 268:352 */ this.V02 &= this.V00;\r\n/* 269:353 */ this.V00 ^= 0xFFFFFFFF;\r\n/* 270:354 */ this.V02 ^= this.V01;\r\n/* 271:355 */ this.V01 |= this.V03;\r\n/* 272:356 */ i ^= this.V01;\r\n/* 273:357 */ this.V03 ^= this.V02;\r\n/* 274:358 */ this.V02 &= this.V01;\r\n/* 275:359 */ this.V01 ^= this.V00;\r\n/* 276:360 */ this.V00 = i;\r\n/* 277:361 */ i = this.V05;\r\n/* 278:362 */ this.V05 |= this.V06;\r\n/* 279:363 */ this.V07 ^= this.V04;\r\n/* 280:364 */ this.V06 ^= 0xFFFFFFFF;\r\n/* 281:365 */ this.V05 ^= this.V04;\r\n/* 282:366 */ this.V04 &= i;\r\n/* 283:367 */ this.V06 ^= this.V04;\r\n/* 284:368 */ this.V04 ^= this.V07;\r\n/* 285:369 */ this.V07 &= this.V05;\r\n/* 286:370 */ this.V05 ^= 0xFFFFFFFF;\r\n/* 287:371 */ this.V07 ^= this.V06;\r\n/* 288:372 */ this.V06 |= this.V04;\r\n/* 289:373 */ i ^= this.V06;\r\n/* 290:374 */ this.V04 ^= this.V07;\r\n/* 291:375 */ this.V07 &= this.V06;\r\n/* 292:376 */ this.V06 ^= this.V05;\r\n/* 293:377 */ this.V05 = i;\r\n/* 294:378 */ this.V04 ^= this.V00;\r\n/* 295:379 */ this.V00 = ((this.V00 << 2 | this.V00 >>> 30) ^ this.V04);\r\n/* 296:380 */ this.V04 = ((this.V04 << 14 | this.V04 >>> 18) ^ this.V00);\r\n/* 297:381 */ this.V00 = ((this.V00 << 10 | this.V00 >>> 22) ^ this.V04);\r\n/* 298:382 */ this.V04 = (this.V04 << 1 | this.V04 >>> 31);\r\n/* 299:383 */ this.V05 ^= this.V01;\r\n/* 300:384 */ this.V01 = ((this.V01 << 2 | this.V01 >>> 30) ^ this.V05);\r\n/* 301:385 */ this.V05 = ((this.V05 << 14 | this.V05 >>> 18) ^ this.V01);\r\n/* 302:386 */ this.V01 = ((this.V01 << 10 | this.V01 >>> 22) ^ this.V05);\r\n/* 303:387 */ this.V05 = (this.V05 << 1 | this.V05 >>> 31);\r\n/* 304:388 */ this.V06 ^= this.V02;\r\n/* 305:389 */ this.V02 = ((this.V02 << 2 | this.V02 >>> 30) ^ this.V06);\r\n/* 306:390 */ this.V06 = ((this.V06 << 14 | this.V06 >>> 18) ^ this.V02);\r\n/* 307:391 */ this.V02 = ((this.V02 << 10 | this.V02 >>> 22) ^ this.V06);\r\n/* 308:392 */ this.V06 = (this.V06 << 1 | this.V06 >>> 31);\r\n/* 309:393 */ this.V07 ^= this.V03;\r\n/* 310:394 */ this.V03 = ((this.V03 << 2 | this.V03 >>> 30) ^ this.V07);\r\n/* 311:395 */ this.V07 = ((this.V07 << 14 | this.V07 >>> 18) ^ this.V03);\r\n/* 312:396 */ this.V03 = ((this.V03 << 10 | this.V03 >>> 22) ^ this.V07);\r\n/* 313:397 */ this.V07 = (this.V07 << 1 | this.V07 >>> 31);\r\n/* 314:398 */ this.V00 ^= RC00[i13];\r\n/* 315:399 */ this.V04 ^= RC04[i13];\r\n/* 316: */ }\r\n/* 317:401 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 318: */ {\r\n/* 319:402 */ i = this.V10;\r\n/* 320:403 */ this.V10 |= this.V11;\r\n/* 321:404 */ this.V12 ^= this.V13;\r\n/* 322:405 */ this.V11 ^= 0xFFFFFFFF;\r\n/* 323:406 */ this.V10 ^= this.V13;\r\n/* 324:407 */ this.V13 &= i;\r\n/* 325:408 */ this.V11 ^= this.V13;\r\n/* 326:409 */ this.V13 ^= this.V12;\r\n/* 327:410 */ this.V12 &= this.V10;\r\n/* 328:411 */ this.V10 ^= 0xFFFFFFFF;\r\n/* 329:412 */ this.V12 ^= this.V11;\r\n/* 330:413 */ this.V11 |= this.V13;\r\n/* 331:414 */ i ^= this.V11;\r\n/* 332:415 */ this.V13 ^= this.V12;\r\n/* 333:416 */ this.V12 &= this.V11;\r\n/* 334:417 */ this.V11 ^= this.V10;\r\n/* 335:418 */ this.V10 = i;\r\n/* 336:419 */ i = this.V15;\r\n/* 337:420 */ this.V15 |= this.V16;\r\n/* 338:421 */ this.V17 ^= this.V14;\r\n/* 339:422 */ this.V16 ^= 0xFFFFFFFF;\r\n/* 340:423 */ this.V15 ^= this.V14;\r\n/* 341:424 */ this.V14 &= i;\r\n/* 342:425 */ this.V16 ^= this.V14;\r\n/* 343:426 */ this.V14 ^= this.V17;\r\n/* 344:427 */ this.V17 &= this.V15;\r\n/* 345:428 */ this.V15 ^= 0xFFFFFFFF;\r\n/* 346:429 */ this.V17 ^= this.V16;\r\n/* 347:430 */ this.V16 |= this.V14;\r\n/* 348:431 */ i ^= this.V16;\r\n/* 349:432 */ this.V14 ^= this.V17;\r\n/* 350:433 */ this.V17 &= this.V16;\r\n/* 351:434 */ this.V16 ^= this.V15;\r\n/* 352:435 */ this.V15 = i;\r\n/* 353:436 */ this.V14 ^= this.V10;\r\n/* 354:437 */ this.V10 = ((this.V10 << 2 | this.V10 >>> 30) ^ this.V14);\r\n/* 355:438 */ this.V14 = ((this.V14 << 14 | this.V14 >>> 18) ^ this.V10);\r\n/* 356:439 */ this.V10 = ((this.V10 << 10 | this.V10 >>> 22) ^ this.V14);\r\n/* 357:440 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 358:441 */ this.V15 ^= this.V11;\r\n/* 359:442 */ this.V11 = ((this.V11 << 2 | this.V11 >>> 30) ^ this.V15);\r\n/* 360:443 */ this.V15 = ((this.V15 << 14 | this.V15 >>> 18) ^ this.V11);\r\n/* 361:444 */ this.V11 = ((this.V11 << 10 | this.V11 >>> 22) ^ this.V15);\r\n/* 362:445 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 363:446 */ this.V16 ^= this.V12;\r\n/* 364:447 */ this.V12 = ((this.V12 << 2 | this.V12 >>> 30) ^ this.V16);\r\n/* 365:448 */ this.V16 = ((this.V16 << 14 | this.V16 >>> 18) ^ this.V12);\r\n/* 366:449 */ this.V12 = ((this.V12 << 10 | this.V12 >>> 22) ^ this.V16);\r\n/* 367:450 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 368:451 */ this.V17 ^= this.V13;\r\n/* 369:452 */ this.V13 = ((this.V13 << 2 | this.V13 >>> 30) ^ this.V17);\r\n/* 370:453 */ this.V17 = ((this.V17 << 14 | this.V17 >>> 18) ^ this.V13);\r\n/* 371:454 */ this.V13 = ((this.V13 << 10 | this.V13 >>> 22) ^ this.V17);\r\n/* 372:455 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 373:456 */ this.V10 ^= RC10[i13];\r\n/* 374:457 */ this.V14 ^= RC14[i13];\r\n/* 375: */ }\r\n/* 376:459 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 377: */ {\r\n/* 378:460 */ i = this.V20;\r\n/* 379:461 */ this.V20 |= this.V21;\r\n/* 380:462 */ this.V22 ^= this.V23;\r\n/* 381:463 */ this.V21 ^= 0xFFFFFFFF;\r\n/* 382:464 */ this.V20 ^= this.V23;\r\n/* 383:465 */ this.V23 &= i;\r\n/* 384:466 */ this.V21 ^= this.V23;\r\n/* 385:467 */ this.V23 ^= this.V22;\r\n/* 386:468 */ this.V22 &= this.V20;\r\n/* 387:469 */ this.V20 ^= 0xFFFFFFFF;\r\n/* 388:470 */ this.V22 ^= this.V21;\r\n/* 389:471 */ this.V21 |= this.V23;\r\n/* 390:472 */ i ^= this.V21;\r\n/* 391:473 */ this.V23 ^= this.V22;\r\n/* 392:474 */ this.V22 &= this.V21;\r\n/* 393:475 */ this.V21 ^= this.V20;\r\n/* 394:476 */ this.V20 = i;\r\n/* 395:477 */ i = this.V25;\r\n/* 396:478 */ this.V25 |= this.V26;\r\n/* 397:479 */ this.V27 ^= this.V24;\r\n/* 398:480 */ this.V26 ^= 0xFFFFFFFF;\r\n/* 399:481 */ this.V25 ^= this.V24;\r\n/* 400:482 */ this.V24 &= i;\r\n/* 401:483 */ this.V26 ^= this.V24;\r\n/* 402:484 */ this.V24 ^= this.V27;\r\n/* 403:485 */ this.V27 &= this.V25;\r\n/* 404:486 */ this.V25 ^= 0xFFFFFFFF;\r\n/* 405:487 */ this.V27 ^= this.V26;\r\n/* 406:488 */ this.V26 |= this.V24;\r\n/* 407:489 */ i ^= this.V26;\r\n/* 408:490 */ this.V24 ^= this.V27;\r\n/* 409:491 */ this.V27 &= this.V26;\r\n/* 410:492 */ this.V26 ^= this.V25;\r\n/* 411:493 */ this.V25 = i;\r\n/* 412:494 */ this.V24 ^= this.V20;\r\n/* 413:495 */ this.V20 = ((this.V20 << 2 | this.V20 >>> 30) ^ this.V24);\r\n/* 414:496 */ this.V24 = ((this.V24 << 14 | this.V24 >>> 18) ^ this.V20);\r\n/* 415:497 */ this.V20 = ((this.V20 << 10 | this.V20 >>> 22) ^ this.V24);\r\n/* 416:498 */ this.V24 = (this.V24 << 1 | this.V24 >>> 31);\r\n/* 417:499 */ this.V25 ^= this.V21;\r\n/* 418:500 */ this.V21 = ((this.V21 << 2 | this.V21 >>> 30) ^ this.V25);\r\n/* 419:501 */ this.V25 = ((this.V25 << 14 | this.V25 >>> 18) ^ this.V21);\r\n/* 420:502 */ this.V21 = ((this.V21 << 10 | this.V21 >>> 22) ^ this.V25);\r\n/* 421:503 */ this.V25 = (this.V25 << 1 | this.V25 >>> 31);\r\n/* 422:504 */ this.V26 ^= this.V22;\r\n/* 423:505 */ this.V22 = ((this.V22 << 2 | this.V22 >>> 30) ^ this.V26);\r\n/* 424:506 */ this.V26 = ((this.V26 << 14 | this.V26 >>> 18) ^ this.V22);\r\n/* 425:507 */ this.V22 = ((this.V22 << 10 | this.V22 >>> 22) ^ this.V26);\r\n/* 426:508 */ this.V26 = (this.V26 << 1 | this.V26 >>> 31);\r\n/* 427:509 */ this.V27 ^= this.V23;\r\n/* 428:510 */ this.V23 = ((this.V23 << 2 | this.V23 >>> 30) ^ this.V27);\r\n/* 429:511 */ this.V27 = ((this.V27 << 14 | this.V27 >>> 18) ^ this.V23);\r\n/* 430:512 */ this.V23 = ((this.V23 << 10 | this.V23 >>> 22) ^ this.V27);\r\n/* 431:513 */ this.V27 = (this.V27 << 1 | this.V27 >>> 31);\r\n/* 432:514 */ this.V20 ^= RC20[i13];\r\n/* 433:515 */ this.V24 ^= RC24[i13];\r\n/* 434: */ }\r\n/* 435: */ }",
"public static void main(String[] args) {\n\t\tbyte i1 = 1; // Memory Size: 1Byte, Range: -128 ~ 127\n\t\tshort i2 = 2; // Memory Size: 2Byte, Range: -32768 ~ 32767\n\t\tint i3 = 3; // Memory Size: 4Byte, Range: -2147483648 ~ 2147483647\n\t\tlong i4 = 4; // Memory Size: 8Byte, Range: -922337036854775808 ~ 9223372036854775807\n\t\t\n\t\t//Real - float, double\n\t\tfloat r1 = 3.14F; // Memory Size: 4Byte, Range: 1.40239846E-45f ~ 3.40282347E+38f\n\t\t//In Java, float type must be add number+F \n\t\tdouble r2 = 3.2; // Memory Size: 8Byte, Range: 4.94065645841246544E-324 ~ 1.79769313486231570E+308\n\t\t\n\t\t//Numeric Operation - +, -, *, /, %, Increase / Decrease operation\n\t\tSystem.out.println(i4+i3);\n\t\tSystem.out.println(i4-i3);\n\t\tSystem.out.println(i4*i3);\n\t\tSystem.out.println(i4/i3);\n\t\tSystem.out.println(i4%i3);\n\t\t//Result: 7 1 12 1 1\n\t\t// / = Share, % = Reminder\n\t\t\n\t\t//Increase / Decrease Operation - i++, ++i, i--, --i\n\t\tint i = 3;\n\t\tSystem.out.print(++i);\n\t\tSystem.out.print(i++);\n\t\tSystem.out.print(i);\n\t\tSystem.out.print(--i);\n\t\tSystem.out.print(i--);\n\t\tSystem.out.println(i);\n\t\t/* Result: 4 4 5 4 4 3\n\t\t++ i is calculated before the operation\n\t\ti ++ computes after computation */\n\t\t\n\t\t//Boolean\n\t\tboolean b1 = false;\n\t\tboolean b2 = true;\n\t\t//The Boolean type has only True False\n\t\t//Much use in conditional statements\n\t\tSystem.out.print(b1 && b1);\n\t\tSystem.out.print(b2 && b2);\n\t\tSystem.out.print(b1 && b2);\n\t\tSystem.out.print(b1 || b1);\n\t\tSystem.out.print(b2 || b2);\n\t\tSystem.out.println(b1 || b2);\n\t\t/* Result: false true false false true true\n\t\t false = 0, true =1\n\t\t && = +, || = *\n\t\t */\n\t\t \n\t\t//Character - Char\n\t\tchar c1 = 'A'; //Memory Size: 1Byte, Range: \\u0000 ~ \\uFFFF\n\t\t\n\t\t//String\n\t\tString s1 = \"Hello World\";\n\t\tString s2 = new String(\"Hello World\");\n\t\t//Because String is an object, you can use the built-in method.\n\t\tSystem.out.println(s1.contentEquals(s2)); //True\n\t\tSystem.out.println(s1.indexOf('W')); //6\n\t\tSystem.out.println(s1.replaceAll(\"Hello\", \"World\")); //World World\n\t\tSystem.out.println(s1.substring(0,4)); // Hell\n\t\tSystem.out.println(s1.toUpperCase()); // HELLO WORLD\n\t\t\n\t\t//String - More Details: String Buffer\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(\"Hello\");\n\t\tsb.append(\"World\");\n\t\tString s3 = \"Hello\";\n\t\ts3=s3+\"World\";\n\t\tSystem.out.println(s3.contentEquals(sb.toString())); //True\n\t\t//String Buffer object is created only once\n\t\t//String object is created whenever + operation\n\t\t//Once String object created, cannot modified and heavy\n\t\t//So encouraging use StringBuffer\n\t\t\n\t}",
"private int operation(int b, char op, int a) {\n switch (op) {\n case '+': return a + b;\n case '-': return a - b;\n case '*': return a * b;\n case '/': return a / b; //assume b is not 0\n }\n return 0;\n }",
"public static void main(String[] args) {\n MathOp add=new MathOp() {\n \t \n public int operation(int x, int y)\n {\n \t return x+y;\n }\n\t };\n\t System.out.println(add.operation(1, 2));\n \n\t MathOp sub=new MathOp() {\n \t \n\t public int operation(int x, int y)\n\t {\n\t \t return x-y;\n\t }\n\t\t };\n\t\t System.out.println(sub.operation(1, 2));\n\t \n\t\t MathOp mul=new MathOp() {\n\t \t \n\t\t public int operation(int x, int y)\n\t\t {\n\t\t \t return x*y;\n\t\t }\n\t\t\t };\n\t\t\t System.out.println(mul.operation(1, 2));\n\t\t \n\t\t\t MathOp div=new MathOp() {\n\t\t \t \n\t\t\t public int operation(int x, int y)\n\t\t\t { \n\t\t\t \t return x/y;\n\t\t\t }\n\t\t\t\t };\n\t\t\t\t System.out.println(div.operation(1, 2));\n\t\t\t \n}",
"private c a(c blk, int i) {\n/* 450 */ int w = blk.g;\n/* 451 */ int h = blk.h;\n/* */ \n/* */ \n/* */ \n/* 455 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* 457 */ if (blk.a() != 3) {\n/* 458 */ if (this.j == null || this.j.a() != 3) {\n/* 459 */ this.j = (c)new e();\n/* */ }\n/* 461 */ this.j.g = w;\n/* 462 */ this.j.h = h;\n/* 463 */ this.j.e = blk.e;\n/* 464 */ this.j.f = blk.f;\n/* 465 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 469 */ int[] outdata = (int[])blk.b();\n/* */ \n/* */ \n/* 472 */ if (outdata == null || outdata.length < h * w) {\n/* 473 */ outdata = new int[h * w];\n/* 474 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 480 */ if (this.m == null)\n/* 481 */ this.m = new e(); \n/* 482 */ if (this.n == null)\n/* 483 */ this.n = new e(); \n/* 484 */ if (this.o == null)\n/* 485 */ this.o = new e(); \n/* 486 */ this.o.g = blk.g;\n/* 487 */ this.o.h = blk.h;\n/* 488 */ this.o.e = blk.e;\n/* 489 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* */ \n/* 493 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 494 */ int[] data0 = (int[])this.m.b();\n/* 495 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 496 */ int[] data1 = (int[])this.n.b();\n/* 497 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 498 */ int[] bdata = (int[])this.o.b();\n/* */ \n/* */ \n/* 501 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 503 */ blk.i = 0;\n/* 504 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 509 */ int k = w * h - 1;\n/* 510 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 511 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 512 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 514 */ switch (i) {\n/* */ case 0:\n/* 516 */ for (j = h - 1; j >= 0; j--) {\n/* 517 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--)\n/* */ {\n/* */ \n/* 520 */ outdata[k] = data0[k] + 2 * data1[k] + bdata[k] >> 2;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 525 */ k0 -= this.m.j - w;\n/* 526 */ k1 -= this.n.j - w;\n/* 527 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ case 1:\n/* 532 */ for (j = h - 1; j >= 0; j--) {\n/* 533 */ for (int mink = k - w; k > mink; k--, k1--, k2--)\n/* */ {\n/* */ \n/* 536 */ outdata[k] = bdata[k2] - data1[k1];\n/* */ }\n/* */ \n/* 539 */ k1 -= this.n.j - w;\n/* 540 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ case 2:\n/* 545 */ for (j = h - 1; j >= 0; j--) {\n/* 546 */ for (int mink = k - w; k > mink; k--, k0--, k1--)\n/* */ {\n/* */ \n/* 549 */ outdata[k] = data0[k0] - data1[k1];\n/* */ }\n/* */ \n/* 552 */ k0 -= this.m.j - w;\n/* 553 */ k1 -= this.n.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ \n/* */ } else {\n/* 559 */ if (i >= 3)\n/* */ {\n/* */ \n/* 562 */ return this.e.getInternCompData(blk, i);\n/* */ }\n/* */ \n/* */ \n/* 566 */ throw new IllegalArgumentException();\n/* */ } \n/* 568 */ return blk;\n/* */ }",
"DoubleBinaryOperator getPendingBinaryOperation();",
"@Override\n protected void performOperation(FixedBitSet opcode, FixedBitSet tmp1Value, FixedBitSet tmp2Value) {\n LU_OPCODE currentOperation = LU_OPCODE.fromBitSet(opcode);\n\n // Execute the logic based on the current opcode\n FixedBitSet result;\n switch (currentOperation) {\n case XOR:\n result = performXOR(tmp1Value, tmp2Value);\n break;\n case OR:\n result = performOR(tmp1Value, tmp2Value);\n break;\n case AND:\n result = performAND(tmp1Value, tmp2Value);\n break;\n case NOT:\n result = performNOT(tmp1Value);\n break;\n default: //Should not reach\n throw new IllegalStateException(\"Unexpected LU opcode: \" + currentOperation);\n\n }\n\n //Get the appropriate condition codes for this result\n ConditionCode conditionCodes = getConditionCodes(result);\n\n //Set the output\n outputBusConnection.writeValue(result);\n ccBusConnection.writeValue(conditionCodes.toBitSet());\n }",
"@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}",
"public int[] a(int paramInt1, int paramInt2, int paramInt3, int paramInt4)\r\n/* 11: */ {\r\n/* 12:13 */ int i = paramInt1 - 1;\r\n/* 13:14 */ int j = paramInt2 - 1;\r\n/* 14:15 */ int k = paramInt3 + 2;\r\n/* 15:16 */ int m = paramInt4 + 2;\r\n/* 16:17 */ int[] arrayOfInt1 = this.a.a(i, j, k, m);\r\n/* 17: */ \r\n/* 18:19 */ int[] arrayOfInt2 = boy.a(paramInt3 * paramInt4);\r\n/* 19:20 */ for (int n = 0; n < paramInt4; n++) {\r\n/* 20:21 */ for (int i1 = 0; i1 < paramInt3; i1++)\r\n/* 21: */ {\r\n/* 22:22 */ int i2 = c(arrayOfInt1[(i1 + 0 + (n + 1) * k)]);\r\n/* 23:23 */ int i3 = c(arrayOfInt1[(i1 + 2 + (n + 1) * k)]);\r\n/* 24:24 */ int i4 = c(arrayOfInt1[(i1 + 1 + (n + 0) * k)]);\r\n/* 25:25 */ int i5 = c(arrayOfInt1[(i1 + 1 + (n + 2) * k)]);\r\n/* 26:26 */ int i6 = c(arrayOfInt1[(i1 + 1 + (n + 1) * k)]);\r\n/* 27:27 */ if ((i6 != i2) || (i6 != i4) || (i6 != i3) || (i6 != i5)) {\r\n/* 28:28 */ arrayOfInt2[(i1 + n * paramInt3)] = arm.w.az;\r\n/* 29: */ } else {\r\n/* 30:30 */ arrayOfInt2[(i1 + n * paramInt3)] = -1;\r\n/* 31: */ }\r\n/* 32: */ }\r\n/* 33: */ }\r\n/* 34:35 */ return arrayOfInt2;\r\n/* 35: */ }",
"public static void main(String[] args) {\n IComplex a = new Complex(5.0, 6.0);\n\n IComplex b = new Complex(-3.0, 4.0);\n\n System.out.println(\"a = \" + a);\n System.out.println(\"b = \" + b);\n System.out.println(\"Re(a) = \" + a.re());\n System.out.println(\"Im(a) = \" + a.im());\n System.out.println(\"b + a = \" + b.plus(a));\n System.out.println(\"a - b = \" + a.minus(b));\n System.out.println(\"a * b = \" + a.times(b));\n System.out.println(\"b * a = \" + b.times(a));\n System.out.println(\"a / b = \" + a.divides(b));\n System.out.println(\"(a / b) * b = \" + a.divides(b).times(b));\n System.out.println(\"conj(a) = \" + a.conjugate());\n System.out.println(\"|a| = \" + a.abs());\n System.out.println(\"tan(a) = \" + a.tan());\n System.out.println(\"b + a = \" + Complex.plus(a,b));\n }",
"public static void main(String[] args) {\nSystem.out.println(\"arthmatic operation\");\r\nint a=1+1;\r\nint b=a+1;\r\nint c=b*2;\r\n\r\nSystem.out.println(\"a=\"+a);\r\nSystem.out.println(\"b=\"+b);\r\nSystem.out.println(\"c=\"+c);\r\n\r\n \r\n\r\n\t}",
"abstract void mulS();",
"public final int mo4669op(int i, Object... objArr) {\n AppMethodBeat.m2504i(55527);\n int ix;\n if (i == 0) {\n C6093a c6093a = (C6093a) objArr[0];\n if (this.BaseRequest != null) {\n c6093a.mo13479iy(1, this.BaseRequest.computeSize());\n this.BaseRequest.writeFields(c6093a);\n }\n c6093a.mo13480iz(2, this.OpCode);\n c6093a.mo13481r(3, this.vRp);\n c6093a.mo13481r(4, this.vRq);\n c6093a.mo13480iz(5, this.wfG);\n if (this.wfH != null) {\n c6093a.mo13475e(6, this.wfH);\n }\n if (this.wfI != null) {\n c6093a.mo13475e(7, this.wfI);\n }\n c6093a.mo13480iz(8, this.wfJ);\n if (this.vIl != null) {\n c6093a.mo13479iy(9, this.vIl.computeSize());\n this.vIl.writeFields(c6093a);\n }\n AppMethodBeat.m2505o(55527);\n return 0;\n } else if (i == 1) {\n if (this.BaseRequest != null) {\n ix = C6087a.m9557ix(1, this.BaseRequest.computeSize()) + 0;\n } else {\n ix = 0;\n }\n ix = (((ix + C6091a.m9572bs(2, this.OpCode)) + (C6091a.m9576fv(3) + 4)) + (C6091a.m9576fv(4) + 4)) + C6091a.m9572bs(5, this.wfG);\n if (this.wfH != null) {\n ix += C6091a.m9575f(6, this.wfH);\n }\n if (this.wfI != null) {\n ix += C6091a.m9575f(7, this.wfI);\n }\n ix += C6091a.m9572bs(8, this.wfJ);\n if (this.vIl != null) {\n ix += C6087a.m9557ix(9, this.vIl.computeSize());\n }\n AppMethodBeat.m2505o(55527);\n return ix;\n } else if (i == 2) {\n C6086a c6086a = new C6086a((byte[]) objArr[0], unknownTagHandler);\n for (ix = C1331a.getNextFieldNumber(c6086a); ix > 0; ix = C1331a.getNextFieldNumber(c6086a)) {\n if (!super.populateBuilderWithField(c6086a, this, ix)) {\n c6086a.ems();\n }\n }\n AppMethodBeat.m2505o(55527);\n return 0;\n } else if (i == 3) {\n C6086a c6086a2 = (C6086a) objArr[0];\n axz axz = (axz) objArr[1];\n int intValue = ((Integer) objArr[2]).intValue();\n LinkedList Vh;\n int size;\n byte[] bArr;\n C6086a c6086a3;\n boolean z;\n switch (intValue) {\n case 1:\n Vh = c6086a2.mo13445Vh(intValue);\n size = Vh.size();\n for (intValue = 0; intValue < size; intValue++) {\n bArr = (byte[]) Vh.get(intValue);\n C7267hl c7267hl = new C7267hl();\n c6086a3 = new C6086a(bArr, unknownTagHandler);\n for (z = true; z; z = c7267hl.populateBuilderWithField(c6086a3, c7267hl, C1331a.getNextFieldNumber(c6086a3))) {\n }\n axz.BaseRequest = c7267hl;\n }\n AppMethodBeat.m2505o(55527);\n return 0;\n case 2:\n axz.OpCode = c6086a2.BTU.mo13458vd();\n AppMethodBeat.m2505o(55527);\n return 0;\n case 3:\n axz.vRp = Float.intBitsToFloat(c6086a2.BTU.eia());\n AppMethodBeat.m2505o(55527);\n return 0;\n case 4:\n axz.vRq = Float.intBitsToFloat(c6086a2.BTU.eia());\n AppMethodBeat.m2505o(55527);\n return 0;\n case 5:\n axz.wfG = c6086a2.BTU.mo13458vd();\n AppMethodBeat.m2505o(55527);\n return 0;\n case 6:\n axz.wfH = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(55527);\n return 0;\n case 7:\n axz.wfI = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(55527);\n return 0;\n case 8:\n axz.wfJ = c6086a2.BTU.mo13458vd();\n AppMethodBeat.m2505o(55527);\n return 0;\n case 9:\n Vh = c6086a2.mo13445Vh(intValue);\n size = Vh.size();\n for (intValue = 0; intValue < size; intValue++) {\n bArr = (byte[]) Vh.get(intValue);\n SKBuiltinBuffer_t sKBuiltinBuffer_t = new SKBuiltinBuffer_t();\n c6086a3 = new C6086a(bArr, unknownTagHandler);\n for (z = true; z; z = sKBuiltinBuffer_t.populateBuilderWithField(c6086a3, sKBuiltinBuffer_t, C1331a.getNextFieldNumber(c6086a3))) {\n }\n axz.vIl = sKBuiltinBuffer_t;\n }\n AppMethodBeat.m2505o(55527);\n return 0;\n default:\n AppMethodBeat.m2505o(55527);\n return -1;\n }\n } else {\n AppMethodBeat.m2505o(55527);\n return -1;\n }\n }",
"public static int step() {\n if (instructions_addr.get(line_count) == null) {\n // System.exit(1);\n return -1;\n }\n String[] in = (instructions_addr.get(line_count)).split(\"\\\\s+\");\n int r1 = 0;\n int r2 = 0;\n int r3 = 0;\n try {\n r1 = registers.get(in[1]);\n r2 = registers.get(in[2]);\n r3 = registers.get(in[3]);\n } catch (NullPointerException npe) {\n // sike no exception\n } catch (ArrayIndexOutOfBoundsException e) {\n\n }\n System.out.println(line_count+Arrays.toString(in));\n String op = in[0];\n switch (op) {\n case \"add\":\n register[r1] = register[r2] + register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sub\":\n register[r1] = register[r2] - register[r3];\n line_count = line_count + 1;\n break;\n\n case \"addi\":\n register[r1] = register[r2] + Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"beq\":\n if (register[r1] == register[r2]) {\n actual(1);\n line_count = labels_addr.get(in[3]);\n } else {\n actual(0);\n line_count++;\n }\n break;\n\n case \"bne\":\n if (register[r1] != register[r2]) {\n line_count = labels_addr.get(in[3]);\n actual(1);\n } else {\n line_count = line_count + 1;\n actual(0);\n }\n break;\n\n case \"or\":\n register[r1] = register[r2] | register[r3];\n line_count = line_count + 1;\n break;\n\n case \"and\":\n register[r1] = register[r2] & register[r3];\n line_count = line_count + 1;\n break;\n\n case \"sll\":\n register[r1] = register[r2] << Integer.parseInt(in[3]);\n line_count = line_count + 1;\n break;\n\n case \"slt\":\n if (register[r2] < register[r3]) {\n register[r1] = 1;\n } else {\n register[r1] = 0;\n }\n line_count = line_count + 1;\n break;\n\n case \"lw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n register[r1] = data_mem[r2 + register[r3]];\n line_count = line_count + 1;\n break;\n\n case \"sw\":\n r2 = Integer.parseInt(in[2].substring(0, in[2].indexOf(\"(\")));\n r3 = registers.get(in[3].substring(0, in[3].indexOf(\")\"))); // imm\n data_mem[r2 + register[r3]] = register[r1];\n line_count = line_count + 1;\n break;\n\n case \"j\":\n line_count = labels_addr.get(in[1]);\n break;\n\n case \"jr\":\n line_count = register[31];\n break;\n\n case \"jal\":\n register[31] = line_count + 1;\n line_count = labels_addr.get(in[1]);\n break;\n\n default:\n line_count = line_count + 1;\n }\n return 1;\n }",
"public int getOperandB();",
"protected abstract List<Individual> binaryOperation(List<Individual> acceptedFromLeft,\n List<Individual> acceptedFromRight);",
"private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }",
"private boolean[] addBit(boolean a, boolean b, boolean c) {\n // PROGRAM 1: Student must complete this method\n // This method may only use the Java logic operations && (logical and),\n // || (logical or), and ! (logical not). Do not use any Java arithmetic\n // operators in this method.\n boolean[] result = new boolean[2];\n result[0] = (a ^ b) ^ c; // (a xor b) xor c -> yields the sum\n result[1] = (a && b) || (a ^ b) && c; // (a and b) or (a xor b) and c -> yields the carry-out\n // return value is a placeholder, student should replace with correct return\n return result;\n }",
"public void execute() {\n\t\t// XOR GATE OP\n\t\txor.a.set(a.get());\n\t\txor.b.set(b.get());\n\t\txor.execute();\n\t\tsum.set(xor.out.get());\n\n\t\t// AND GATE OP\n\t\tand.a.set(a.get());\n\t\tand.b.set(b.get());\n\t\tand.execute();\n\t\tcarry.set(and.out.get());\n\n\t}",
"public int getOperandA();",
"private static Instruction create(byte opcode, boolean wide)\n {\n switch (opcode)\n {\n // Simple instructions.\n case InstructionConstants.OP_NOP:\n case InstructionConstants.OP_ACONST_NULL:\n case InstructionConstants.OP_ICONST_M1:\n case InstructionConstants.OP_ICONST_0:\n case InstructionConstants.OP_ICONST_1:\n case InstructionConstants.OP_ICONST_2:\n case InstructionConstants.OP_ICONST_3:\n case InstructionConstants.OP_ICONST_4:\n case InstructionConstants.OP_ICONST_5:\n case InstructionConstants.OP_LCONST_0:\n case InstructionConstants.OP_LCONST_1:\n case InstructionConstants.OP_FCONST_0:\n case InstructionConstants.OP_FCONST_1:\n case InstructionConstants.OP_FCONST_2:\n case InstructionConstants.OP_DCONST_0:\n case InstructionConstants.OP_DCONST_1:\n\n case InstructionConstants.OP_BIPUSH:\n case InstructionConstants.OP_SIPUSH:\n\n case InstructionConstants.OP_IALOAD:\n case InstructionConstants.OP_LALOAD:\n case InstructionConstants.OP_FALOAD:\n case InstructionConstants.OP_DALOAD:\n case InstructionConstants.OP_AALOAD:\n case InstructionConstants.OP_BALOAD:\n case InstructionConstants.OP_CALOAD:\n case InstructionConstants.OP_SALOAD:\n\n case InstructionConstants.OP_IASTORE:\n case InstructionConstants.OP_LASTORE:\n case InstructionConstants.OP_FASTORE:\n case InstructionConstants.OP_DASTORE:\n case InstructionConstants.OP_AASTORE:\n case InstructionConstants.OP_BASTORE:\n case InstructionConstants.OP_CASTORE:\n case InstructionConstants.OP_SASTORE:\n case InstructionConstants.OP_POP:\n case InstructionConstants.OP_POP2:\n case InstructionConstants.OP_DUP:\n case InstructionConstants.OP_DUP_X1:\n case InstructionConstants.OP_DUP_X2:\n case InstructionConstants.OP_DUP2:\n case InstructionConstants.OP_DUP2_X1:\n case InstructionConstants.OP_DUP2_X2:\n case InstructionConstants.OP_SWAP:\n case InstructionConstants.OP_IADD:\n case InstructionConstants.OP_LADD:\n case InstructionConstants.OP_FADD:\n case InstructionConstants.OP_DADD:\n case InstructionConstants.OP_ISUB:\n case InstructionConstants.OP_LSUB:\n case InstructionConstants.OP_FSUB:\n case InstructionConstants.OP_DSUB:\n case InstructionConstants.OP_IMUL:\n case InstructionConstants.OP_LMUL:\n case InstructionConstants.OP_FMUL:\n case InstructionConstants.OP_DMUL:\n case InstructionConstants.OP_IDIV:\n case InstructionConstants.OP_LDIV:\n case InstructionConstants.OP_FDIV:\n case InstructionConstants.OP_DDIV:\n case InstructionConstants.OP_IREM:\n case InstructionConstants.OP_LREM:\n case InstructionConstants.OP_FREM:\n case InstructionConstants.OP_DREM:\n case InstructionConstants.OP_INEG:\n case InstructionConstants.OP_LNEG:\n case InstructionConstants.OP_FNEG:\n case InstructionConstants.OP_DNEG:\n case InstructionConstants.OP_ISHL:\n case InstructionConstants.OP_LSHL:\n case InstructionConstants.OP_ISHR:\n case InstructionConstants.OP_LSHR:\n case InstructionConstants.OP_IUSHR:\n case InstructionConstants.OP_LUSHR:\n case InstructionConstants.OP_IAND:\n case InstructionConstants.OP_LAND:\n case InstructionConstants.OP_IOR:\n case InstructionConstants.OP_LOR:\n case InstructionConstants.OP_IXOR:\n case InstructionConstants.OP_LXOR:\n\n case InstructionConstants.OP_I2L:\n case InstructionConstants.OP_I2F:\n case InstructionConstants.OP_I2D:\n case InstructionConstants.OP_L2I:\n case InstructionConstants.OP_L2F:\n case InstructionConstants.OP_L2D:\n case InstructionConstants.OP_F2I:\n case InstructionConstants.OP_F2L:\n case InstructionConstants.OP_F2D:\n case InstructionConstants.OP_D2I:\n case InstructionConstants.OP_D2L:\n case InstructionConstants.OP_D2F:\n case InstructionConstants.OP_I2B:\n case InstructionConstants.OP_I2C:\n case InstructionConstants.OP_I2S:\n case InstructionConstants.OP_LCMP:\n case InstructionConstants.OP_FCMPL:\n case InstructionConstants.OP_FCMPG:\n case InstructionConstants.OP_DCMPL:\n case InstructionConstants.OP_DCMPG:\n\n case InstructionConstants.OP_IRETURN:\n case InstructionConstants.OP_LRETURN:\n case InstructionConstants.OP_FRETURN:\n case InstructionConstants.OP_DRETURN:\n case InstructionConstants.OP_ARETURN:\n case InstructionConstants.OP_RETURN:\n\n case InstructionConstants.OP_NEWARRAY:\n case InstructionConstants.OP_ARRAYLENGTH:\n case InstructionConstants.OP_ATHROW:\n\n case InstructionConstants.OP_MONITORENTER:\n case InstructionConstants.OP_MONITOREXIT:\n return new SimpleInstruction();\n\n // Instructions with a contant pool index.\n case InstructionConstants.OP_LDC:\n case InstructionConstants.OP_LDC_W:\n case InstructionConstants.OP_LDC2_W:\n\n case InstructionConstants.OP_GETSTATIC:\n case InstructionConstants.OP_PUTSTATIC:\n case InstructionConstants.OP_GETFIELD:\n case InstructionConstants.OP_PUTFIELD:\n\n case InstructionConstants.OP_INVOKEVIRTUAL:\n case InstructionConstants.OP_INVOKESPECIAL:\n case InstructionConstants.OP_INVOKESTATIC:\n case InstructionConstants.OP_INVOKEINTERFACE:\n case InstructionConstants.OP_INVOKEDYNAMIC:\n\n case InstructionConstants.OP_NEW:\n case InstructionConstants.OP_ANEWARRAY:\n case InstructionConstants.OP_CHECKCAST:\n case InstructionConstants.OP_INSTANCEOF:\n case InstructionConstants.OP_MULTIANEWARRAY:\n return new ConstantInstruction();\n\n // Instructions with a local variable index.\n case InstructionConstants.OP_ILOAD:\n case InstructionConstants.OP_LLOAD:\n case InstructionConstants.OP_FLOAD:\n case InstructionConstants.OP_DLOAD:\n case InstructionConstants.OP_ALOAD:\n case InstructionConstants.OP_ILOAD_0:\n case InstructionConstants.OP_ILOAD_1:\n case InstructionConstants.OP_ILOAD_2:\n case InstructionConstants.OP_ILOAD_3:\n case InstructionConstants.OP_LLOAD_0:\n case InstructionConstants.OP_LLOAD_1:\n case InstructionConstants.OP_LLOAD_2:\n case InstructionConstants.OP_LLOAD_3:\n case InstructionConstants.OP_FLOAD_0:\n case InstructionConstants.OP_FLOAD_1:\n case InstructionConstants.OP_FLOAD_2:\n case InstructionConstants.OP_FLOAD_3:\n case InstructionConstants.OP_DLOAD_0:\n case InstructionConstants.OP_DLOAD_1:\n case InstructionConstants.OP_DLOAD_2:\n case InstructionConstants.OP_DLOAD_3:\n case InstructionConstants.OP_ALOAD_0:\n case InstructionConstants.OP_ALOAD_1:\n case InstructionConstants.OP_ALOAD_2:\n case InstructionConstants.OP_ALOAD_3:\n\n case InstructionConstants.OP_ISTORE:\n case InstructionConstants.OP_LSTORE:\n case InstructionConstants.OP_FSTORE:\n case InstructionConstants.OP_DSTORE:\n case InstructionConstants.OP_ASTORE:\n case InstructionConstants.OP_ISTORE_0:\n case InstructionConstants.OP_ISTORE_1:\n case InstructionConstants.OP_ISTORE_2:\n case InstructionConstants.OP_ISTORE_3:\n case InstructionConstants.OP_LSTORE_0:\n case InstructionConstants.OP_LSTORE_1:\n case InstructionConstants.OP_LSTORE_2:\n case InstructionConstants.OP_LSTORE_3:\n case InstructionConstants.OP_FSTORE_0:\n case InstructionConstants.OP_FSTORE_1:\n case InstructionConstants.OP_FSTORE_2:\n case InstructionConstants.OP_FSTORE_3:\n case InstructionConstants.OP_DSTORE_0:\n case InstructionConstants.OP_DSTORE_1:\n case InstructionConstants.OP_DSTORE_2:\n case InstructionConstants.OP_DSTORE_3:\n case InstructionConstants.OP_ASTORE_0:\n case InstructionConstants.OP_ASTORE_1:\n case InstructionConstants.OP_ASTORE_2:\n case InstructionConstants.OP_ASTORE_3:\n\n case InstructionConstants.OP_IINC:\n\n case InstructionConstants.OP_RET:\n return new VariableInstruction(wide);\n\n // Instructions with a branch offset operand.\n case InstructionConstants.OP_IFEQ:\n case InstructionConstants.OP_IFNE:\n case InstructionConstants.OP_IFLT:\n case InstructionConstants.OP_IFGE:\n case InstructionConstants.OP_IFGT:\n case InstructionConstants.OP_IFLE:\n case InstructionConstants.OP_IFICMPEQ:\n case InstructionConstants.OP_IFICMPNE:\n case InstructionConstants.OP_IFICMPLT:\n case InstructionConstants.OP_IFICMPGE:\n case InstructionConstants.OP_IFICMPGT:\n case InstructionConstants.OP_IFICMPLE:\n case InstructionConstants.OP_IFACMPEQ:\n case InstructionConstants.OP_IFACMPNE:\n case InstructionConstants.OP_GOTO:\n case InstructionConstants.OP_JSR:\n\n case InstructionConstants.OP_IFNULL:\n case InstructionConstants.OP_IFNONNULL:\n\n case InstructionConstants.OP_GOTO_W:\n case InstructionConstants.OP_JSR_W:\n return new BranchInstruction();\n\n // The tableswitch instruction.\n case InstructionConstants.OP_TABLESWITCH:\n return new TableSwitchInstruction();\n\n // The lookupswitch instruction.\n case InstructionConstants.OP_LOOKUPSWITCH:\n return new LookUpSwitchInstruction();\n\n default:\n throw new IllegalArgumentException(\"Unknown instruction opcode [\"+opcode+\"]\");\n }\n }",
"public int operation(int number1,int number2,String operator)",
"private int Maj(int x, int y, int z) {\n return (x & y) ^ (x & z) ^ (y & z);\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}",
"@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}",
"LengthScalarMultiply createLengthScalarMultiply();",
"private static void destructiveMulAdd(int[] x, int y, int z) {\n // Perform the multiplication word by word\n long ylong = y & LONG_MASK;\n long zlong = z & LONG_MASK;\n int len = x.length;\n\n long product = 0;\n long carry = 0;\n for (int i = len-1; i >= 0; i--) {\n product = ylong * (x[i] & LONG_MASK) + carry;\n x[i] = (int)product;\n carry = product >>> 32;\n }\n\n // Perform the addition\n long sum = (x[len-1] & LONG_MASK) + zlong;\n x[len-1] = (int)sum;\n carry = sum >>> 32;\n for (int i = len-2; i >= 0; i--) {\n sum = (x[i] & LONG_MASK) + carry;\n x[i] = (int)sum;\n carry = sum >>> 32;\n }\n }",
"private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }",
"abstract String getOp();",
"boolean isCommutative();",
"public void dorcsd_(CHARACTER JOBU1,CHARACTER JOBU2,CHARACTER JOBV1T,CHARACTER JOBV2T,CHARACTER TRANS,CHARACTER SIGNS,INTEGER M,INTEGER P,INTEGER Q,double[] X11,INTEGER LDX11,double[] X12,INTEGER LDX12,double[] X21,INTEGER LDX21,double[] X22,INTEGER LDX22,double[] THETA,double[] U1,INTEGER LDU1,double[] U2,INTEGER LDU2,double[] V1T,INTEGER LDV1T,double[] V2T,INTEGER LDV2T,double[] WORK,INTEGER LWORK,int[] IWORK,INTEGER INFO);",
"private String reduceOperation(String op1, String opd, String op2, StringBuffer expr) {\r\n if (opd == null) {\r\n if (op1 == null || op2 == null) {\r\n return null;\r\n } else if (\"AND\".equals(op1) && \"AND\".equals(op2)) {\r\n return \"AND\";\r\n } else {\r\n return \"OR\";\r\n }\r\n } else {\r\n if (op1 != null) {\r\n expr.append(op1).append(\" \");\r\n }\r\n expr.append(opd).append(\" \");\r\n return op2;\r\n }\r\n }",
"protected static void performReduceWithABinaryOperator() {\n Integer sum = Stream.of(1, 2, 3, 4, 5).reduce(0, Integer::sum);\n\n Integer minValue = Stream.of(5, 4, 9, 2, 1).reduce(Integer.MIN_VALUE, Integer::max);\n\n String concatenation = Stream.of(\"str \", \"= \", \"alt \", \"string\")\n // the first parameter becomes the target of the concat method and the second one is the argument to concat\n // the target, the parameter and the result are of the same type and this can be considered a binary\n // operator for the reduce method\n .reduce(\"\", String::concat);\n System.out.println(concatenation);\n }",
"int executeOpCode(int pointer, int[] pmOp, boolean io) {\n\t\t// Halting: 99\n\t\tif (pmOp[_OP] == _END) {\n\t\t\tstate = _STATE_HALT;\n\t\t\treturn 1;\n\t\t}\n\t\t// 1 Arg Operator: Output: 4\n\t\tlong arg1 = getArg(pmOp[1], pointer + _R1);\n//\t\tint arg1 = pmOp[1] == 0 ? stack[stack[pointer + _R1]] : stack[pointer + _R1];\n\t\tif (pmOp[_OP] == _OUT) {\n\t\t\tif (pmOp[1] == _MODE_IMIDIATE) {\n\t\t\t\toutput(getStackAt(pointer + 1));\n\t\t\t} else if (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\toutput(getStackAt((int) getStackAt(pointer + 1)));\n\t\t\t} else {\n\t\t\t\toutput(getStackAt((int) (getStackAt(pointer + 1) + relativBase)));\n\t\t\t}\n\t\t\toutput.add(this.outputReg);\n\t\t\treturn 2;\n\t\t}\n\t\t// Input: 3\n\t\tif (pmOp[_OP] == _INP) {\n\t\t\tint inputDest = (int) getStackAt(pointer + 1);\n\t\t\tif (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\tinputDest = (int) getStackAt(pointer + 1);\n\t\t\t} else {\n\t\t\t\tinputDest = (int) (getStackAt(pointer + 1) + relativBase);\n\t\t\t}\n\t\t\tif (io && state != _STATE_INPUT_SUBMITTED) {\n\t\t\t\tstate = _STATE_INPUT_WAITING;\n\t\t\t\treturn 2;\n\t\t\t}\n\t\t\tstate = _STATE_INPUT_RESUMED;\n\t\t\tstack[inputDest] = getInput();\n\t\t\treturn 2;\n\t\t}\n\t\t// adjusts the relative base\n\t\tif (pmOp[_OP] == _ARB) {\n\t\t\tif (pmOp[1] == _MODE_PARAMETER) {\n\t\t\t\trelativBase += getStackAt((int) getStackAt(pointer + 1));\n\t\t\t} else if (pmOp[1] == _MODE_IMIDIATE) {\n\t\t\t\trelativBase += getStackAt(pointer + 1);\n\t\t\t} else {\n\t\t\t\trelativBase += getStackAt((int) (getStackAt(pointer + 1) + relativBase));\n\t\t\t}\n\t\t\treturn 2;\n\t\t}\n\n\t\tlong arg2 = getArg(pmOp[2], pointer + _R2);\n\t\tint dest = (int) getStackAt(pointer + _DE);\n\t\tif (pmOp[3] == _MODE_RELATIVEBASE) {\n\t\t\tdest = (int) (getStackAt(pointer + _DE) + relativBase);\n\t\t}\n\t\t// Operators using 2-3 Args\n\t\t// Add: 1, Mul: 2, LTH(LessThen): 7, EQU(Equals): 8, JIT(jump if true): 5,\n\t\t// JIF(jump if false): 6\n\t\tswitch (pmOp[_OP]) {\n\t\tcase _ADD:\n\t\t\tsetStackAt(dest, arg1 + arg2);\n\t\t\treturn 4;\n\t\tcase _MUL:\n\t\t\tsetStackAt(dest, arg1 * arg2);\n\t\t\treturn 4;\n\t\tcase _LTH:\n\t\t\tsetStackAt(dest, arg1 < arg2 ? 1 : 0);\n\t\t\treturn 4;\n\t\tcase _EQU:\n\t\t\tsetStackAt(dest, arg1 == arg2 ? 1 : 0);\n\t\t\treturn 4;\n\t\tcase _JIT:\n\t\t\treturn (int) (arg1 != 0 ? arg2 - pointer : 3);\n\t\tcase _JIF:\n\t\t\treturn (int) (arg1 == 0 ? arg2 - pointer : 3);\n\t\tdefault:\n\t\t\tSystem.err.println(\"Error: executeOpCodePM(\" + pointer + \", \" + Arrays.toString(pmOp) + \")\");\n\t\t\treturn -1;\n\t\t}\n\t}",
"public R visit(BinOp n) {\n R _ret=null;\n String s0 = (String)n.f0.accept(this);\n simple_exp=0;\n String s1 = (String)n.f1.accept(this);\n simple_exp=0;\n String s2 = (String)n.f2.accept(this);\n int temp = new_temp++;\n System.out.println(\"MOVE TEMP \"+temp + \" \"+s0+\" \"+s1+\" \"+s2);\n return (R)(\"TEMP \"+temp);\n }",
"public static void main(String[] args) \n\t{\n\t\tshort a=1;\n\t\tshort b=2;\n\t\t//short c=a+b;\n\t\t//System.out.println(c);\n\t\tbyte x=2;\n\t\tbyte y=3;\n\t\t//byte z=x+y;\n\t\t//System.out.println(z);\n\t\tfinal byte p=101;\n\t\tfinal byte q=12;\n\t\tbyte r=p+q;\n\t\tSystem.out.println(r);\n\t}",
"@Test\n public void test03() throws Throwable {\n Complex complex0 = new Complex((-542.432682351), 0.0);\n double double0 = complex0.getImaginary();\n Complex complex1 = complex0.sinh();\n Complex complex2 = complex0.sinh();\n Complex complex3 = complex0.exp();\n Complex complex4 = complex1.sqrt();\n Complex complex5 = complex4.sqrt();\n Complex complex6 = complex1.createComplex((-151.5), Double.NaN);\n Complex complex7 = complex4.asin();\n Complex complex8 = complex7.exp();\n Complex complex9 = complex0.multiply(complex1);\n Complex complex10 = complex7.atan();\n Complex complex11 = complex2.cos();\n Complex complex12 = complex7.sinh();\n Complex complex13 = complex2.conjugate();\n Complex complex14 = complex6.cosh();\n int int0 = complex2.hashCode();\n Complex complex15 = complex4.multiply(Double.NaN);\n Complex complex16 = complex0.sin();\n Complex complex17 = complex11.multiply(0.0);\n Complex complex18 = complex8.cos();\n Complex complex19 = complex1.negate();\n Complex complex20 = complex6.exp();\n Complex complex21 = complex8.atan();\n }",
"private int calcula(int op,int a, int b){\n \n switch (op) {\n case 0: \n return a+b;\n case 1: \n return a-b;\n case 2: \n return a*b;\n case 3: \n return a/b;\n default: \n return 0;\n }\n \n }",
"private void tred2() {\n // This is derived from the Algol procedures tred2 by\n // Bowdler, Martin, Reinsch, and Wilkinson, Handbook for\n // Auto. Comp., Vol.ii-Linear Algebra, and the corresponding\n // Fortran subroutine in EISPACK.\n\n d.assign(v.viewColumn(n - 1));\n\n // Householder reduction to tridiagonal form.\n\n for (int i = n - 1; i > 0; i--) {\n\n // Scale to avoid under/overflow.\n\n double scale = d.viewPart(0, i).norm(1);\n double h = 0.0;\n\n\n if (scale == 0.0) {\n e.setQuick(i, d.getQuick(i - 1));\n for (int j = 0; j < i; j++) {\n d.setQuick(j, v.getQuick(i - 1, j));\n v.setQuick(i, j, 0.0);\n v.setQuick(j, i, 0.0);\n }\n } else {\n\n // Generate Householder vector.\n\n for (int k = 0; k < i; k++) {\n d.setQuick(k, d.getQuick(k) / scale);\n h += d.getQuick(k) * d.getQuick(k);\n }\n double f = d.getQuick(i - 1);\n double g = Math.sqrt(h);\n if (f > 0) {\n g = -g;\n }\n e.setQuick(i, scale * g);\n h -= f * g;\n d.setQuick(i - 1, f - g);\n for (int j = 0; j < i; j++) {\n e.setQuick(j, 0.0);\n }\n\n // Apply similarity transformation to remaining columns.\n\n for (int j = 0; j < i; j++) {\n f = d.getQuick(j);\n v.setQuick(j, i, f);\n g = e.getQuick(j) + v.getQuick(j, j) * f;\n for (int k = j + 1; k <= i - 1; k++) {\n g += v.getQuick(k, j) * d.getQuick(k);\n e.setQuick(k, e.getQuick(k) + v.getQuick(k, j) * f);\n }\n e.setQuick(j, g);\n }\n f = 0.0;\n for (int j = 0; j < i; j++) {\n e.setQuick(j, e.getQuick(j) / h);\n f += e.getQuick(j) * d.getQuick(j);\n }\n double hh = f / (h + h);\n for (int j = 0; j < i; j++) {\n e.setQuick(j, e.getQuick(j) - hh * d.getQuick(j));\n }\n for (int j = 0; j < i; j++) {\n f = d.getQuick(j);\n g = e.getQuick(j);\n for (int k = j; k <= i - 1; k++) {\n v.setQuick(k, j, v.getQuick(k, j) - (f * e.getQuick(k) + g * d.getQuick(k)));\n }\n d.setQuick(j, v.getQuick(i - 1, j));\n v.setQuick(i, j, 0.0);\n }\n }\n d.setQuick(i, h);\n }\n\n // Accumulate transformations.\n\n for (int i = 0; i < n - 1; i++) {\n v.setQuick(n - 1, i, v.getQuick(i, i));\n v.setQuick(i, i, 1.0);\n double h = d.getQuick(i + 1);\n if (h != 0.0) {\n for (int k = 0; k <= i; k++) {\n d.setQuick(k, v.getQuick(k, i + 1) / h);\n }\n for (int j = 0; j <= i; j++) {\n double g = 0.0;\n for (int k = 0; k <= i; k++) {\n g += v.getQuick(k, i + 1) * v.getQuick(k, j);\n }\n for (int k = 0; k <= i; k++) {\n v.setQuick(k, j, v.getQuick(k, j) - g * d.getQuick(k));\n }\n }\n }\n for (int k = 0; k <= i; k++) {\n v.setQuick(k, i + 1, 0.0);\n }\n }\n d.assign(v.viewRow(n - 1));\n v.viewRow(n - 1).assign(0);\n v.setQuick(n - 1, n - 1, 1.0);\n e.setQuick(0, 0.0);\n }",
"protected final void operationSBC(final int data) {\r\n int tmp;\r\n\r\n if (this.decimalFlag) {\r\n tmp = 10 * (this.ac & 0xf0) + (this.ac & 0x0f) - (10 * (data & 0xf0) + (data & 0x0f));\r\n tmp = ((tmp / 10) << 4) + tmp % 10;\r\n } else {\r\n tmp = this.ac - data - (this.carryFlag ? 0 : 1);\r\n }\r\n this.overflowFlag = (((this.ac ^ tmp) & 0x80) != 0) && (((this.ac ^ data) & 0x80) != 0);\r\n this.carryFlag = tmp >= 0;\r\n this.ac = tmp & 0xff;\r\n this.zeroFlag = this.ac == 0;\r\n this.signFlag = this.ac >= 0x80;\r\n }",
"protected void o()\r\n/* 156: */ {\r\n/* 157:179 */ int i = 15 - aib.b(this);\r\n/* 158:180 */ float f = 0.98F + i * 0.001F;\r\n/* 159: */ \r\n/* 160:182 */ this.xVelocity *= f;\r\n/* 161:183 */ this.yVelocity *= 0.0D;\r\n/* 162:184 */ this.zVelocity *= f;\r\n/* 163: */ }",
"@SuppressWarnings(\"unused\")\r\n\t@Override\r\n\tpublic double doCommand(String[] parameters, int commandIndex) {\n\t\tDouble leftExpression = null;\r\n\t\tDouble rightExpression = null;\r\n\t\tString predicate=null;\r\n\t\tint res=0;\t\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tint innerLoop = 0;\r\n\t\tString[] innerLoopEquasion = new String[5];\r\n\t\tint j=0;\r\n\t\tString[] whileiLine=null;\r\n\t\tboolean flag= true;\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \"+parameters.length);\r\n//\t\t\r\n//\t\tfor(String s: parameters) {\r\n//\t\t\tSystem.out.println(s);\r\n//\t\t}\r\n//\t\t\r\n\t\tfor(int i=0; i<parameters.length;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\tinnerLoop = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n//\t\tSystem.out.println(\"length is: \" + parameters.length);\r\n//\t\tSystem.out.println(\"innerloop index: \" + innerLoop);\r\n\t\t\t\t\t\r\n\t\t//calculate how many equasion i need to calculate\r\n\t\tfor(int i=innerLoop; i<parameters.length && flag;i++) {\r\n\t\t\tif(parameters[i].contains(\"while\")) {\r\n\t\t\t\twhileiLine = parameters[i].split(\"\\\\s+\");\r\n\t\t\t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n\t\t\t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n\t\t\t\tpredicate = whileiLine[2];\r\n\t\t\t}\r\n\t\t\telse if(parameters[i].contains(\"}\")) {\r\n\t\t\t\tflag=false;\r\n\t\t\t}\t\t\t\r\n\t\t\telse if(i>innerLoop) {\t\r\n\t\t\t\t innerLoopEquasion[j]=parameters[i];\r\n\t\t\t\t//System.out.println(\"loopy: \"+ innerLoopEquasion[j]);\r\n\t\t\t\tj++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\t\r\n\t\t//apply the condition:\r\n\t switch (predicate) {\r\n case \"<\": {\r\n while (leftExpression - rightExpression < 0) {\r\n \tres=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\r\n }\r\n } break;\r\n\r\n case \">\": {\r\n while (leftExpression - rightExpression > 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"<=\": {\r\n while (leftExpression - rightExpression <= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \">=\": {\r\n while (leftExpression - rightExpression >= 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"==\": {\r\n while (leftExpression - rightExpression == 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n\r\n case \"!=\": {\r\n while (leftExpression - rightExpression != 0) {\r\n \t res=MyInterpreter.interpret(innerLoopEquasion);\r\n \t\tleftExpression = ExpressionToDouble(whileiLine[1]);\r\n \t\trightExpression= ExpressionToDouble(whileiLine[3]);\t\r\n }\r\n } break;\r\n } \r\n\t //return the next expression afer the \"}\"\r\n\t return parameters.length;\r\n\t}",
"@Override\n\tpublic float subtrair(float op1, float op2) {\n\t\treturn op1 - op2;\n\t}",
"public final void mo14275a(byte[] bArr, byte[] bArr2) {\n this.f10976a.f10927ce = this.f10976a.f10898bq ^ this.f10976a.f10927ce;\n this.f10976a.f10927ce ^= this.f10976a.f10971z;\n this.f10976a.f10874bS = this.f10976a.f10927ce ^ this.f10976a.f10874bS;\n this.f10976a.f10899br = this.f10976a.f10971z & this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10876bU ^ this.f10976a.f10899br;\n this.f10976a.f10876bU = this.f10976a.f10855b ^ this.f10976a.f10832ad;\n this.f10976a.f10927ce = this.f10976a.f10876bU ^ this.f10976a.f10789N;\n this.f10976a.f10898bq = this.f10976a.f10789N | this.f10976a.f10876bU;\n this.f10976a.f10898bq = this.f10976a.f10876bU ^ this.f10976a.f10898bq;\n this.f10976a.f10850av = this.f10976a.f10898bq ^ this.f10976a.f10850av;\n this.f10976a.f10898bq = this.f10976a.f10789N | this.f10976a.f10876bU;\n this.f10976a.f10898bq &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10898bq = this.f10976a.f10881bZ ^ this.f10976a.f10898bq;\n this.f10976a.f10871bP = this.f10976a.f10898bq ^ this.f10976a.f10871bP;\n this.f10976a.f10898bq = this.f10976a.f10855b & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10832ad ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10840al | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10864bI ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10797V | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10850av ^ this.f10976a.f10898bq;\n this.f10976a.f10850av = this.f10976a.f10855b ^ this.f10976a.f10963r;\n this.f10976a.f10850av &= this.f10976a.f10971z;\n this.f10976a.f10850av = this.f10976a.f10873bR ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10840al & (this.f10976a.f10850av ^ -1);\n this.f10976a.f10850av = this.f10976a.f10899br ^ this.f10976a.f10850av;\n this.f10976a.f10824aV = this.f10976a.f10850av ^ this.f10976a.f10824aV;\n this.f10976a.f10776A = this.f10976a.f10824aV ^ this.f10976a.f10776A;\n this.f10976a.f10824aV = this.f10976a.f10776A & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10850av = this.f10976a.f10792Q | this.f10976a.f10776A;\n this.f10976a.f10873bR = this.f10976a.f10832ad & this.f10976a.f10855b;\n this.f10976a.f10864bI = this.f10976a.f10873bR & this.f10976a.f10840al;\n this.f10976a.f10864bI = this.f10976a.f10867bL ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10861bF = this.f10976a.f10873bR ^ this.f10976a.f10861bF;\n this.f10976a.f10847as = this.f10976a.f10861bF ^ this.f10976a.f10847as;\n this.f10976a.f10847as = this.f10976a.f10797V | this.f10976a.f10847as;\n this.f10976a.f10861bF = this.f10976a.f10873bR & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10876bU ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10840al | this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10927ce ^ this.f10976a.f10861bF;\n this.f10976a.f10810aH = this.f10976a.f10861bF ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH |= this.f10976a.f10781F;\n this.f10976a.f10810aH = this.f10976a.f10849au ^ this.f10976a.f10810aH;\n this.f10976a.f10835ag = this.f10976a.f10810aH ^ this.f10976a.f10835ag;\n this.f10976a.f10810aH = this.f10976a.f10792Q & (this.f10976a.f10835ag ^ -1);\n this.f10976a.f10849au = this.f10976a.f10776A & (this.f10976a.f10835ag ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10789N | this.f10976a.f10873bR;\n this.f10976a.f10861bF = this.f10976a.f10816aN ^ this.f10976a.f10861bF;\n this.f10976a.f10816aN = this.f10976a.f10873bR & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10816aN = this.f10976a.f10873bR ^ this.f10976a.f10816aN;\n this.f10976a.f10876bU = this.f10976a.f10816aN & (this.f10976a.f10840al ^ -1);\n this.f10976a.f10876bU = this.f10976a.f10814aL ^ this.f10976a.f10876bU;\n this.f10976a.f10864bI = this.f10976a.f10876bU ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI |= this.f10976a.f10781F;\n this.f10976a.f10864bI = this.f10976a.f10898bq ^ this.f10976a.f10864bI;\n this.f10976a.f10837ai = this.f10976a.f10864bI ^ this.f10976a.f10837ai;\n this.f10976a.f10864bI = this.f10976a.f10952g & this.f10976a.f10837ai;\n this.f10976a.f10898bq = this.f10976a.f10952g & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10898bq &= this.f10976a.f10960o;\n this.f10976a.f10898bq = this.f10976a.f10837ai ^ this.f10976a.f10898bq;\n this.f10976a.f10889bh = this.f10976a.f10837ai ^ this.f10976a.f10889bh;\n this.f10976a.f10876bU = this.f10976a.f10837ai & (this.f10976a.f10788M ^ -1);\n this.f10976a.f10814aL = this.f10976a.f10952g & this.f10976a.f10876bU;\n this.f10976a.f10876bU = this.f10976a.f10952g & this.f10976a.f10876bU;\n this.f10976a.f10876bU = this.f10976a.f10837ai ^ this.f10976a.f10876bU;\n this.f10976a.f10928cf = this.f10976a.f10876bU ^ this.f10976a.f10928cf;\n this.f10976a.f10876bU &= this.f10976a.f10960o ^ -1;\n this.f10976a.f10876bU = this.f10976a.f10837ai ^ this.f10976a.f10876bU;\n this.f10976a.f10867bL = this.f10976a.f10788M & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10881bZ = this.f10976a.f10952g & this.f10976a.f10867bL;\n this.f10976a.f10881bZ = this.f10976a.f10867bL ^ this.f10976a.f10881bZ;\n this.f10976a.f10881bZ &= this.f10976a.f10960o ^ -1;\n this.f10976a.f10867bL = this.f10976a.f10952g & this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10960o & (this.f10976a.f10867bL ^ -1);\n this.f10976a.f10867bL = this.f10976a.f10889bh ^ this.f10976a.f10867bL;\n this.f10976a.f10889bh = this.f10976a.f10788M | this.f10976a.f10837ai;\n this.f10976a.f10884bc = this.f10976a.f10952g & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10889bh ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10960o & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10889bh & (this.f10976a.f10837ai ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10952g & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10889bh ^ this.f10976a.f10858bC;\n this.f10976a.f10889bh = this.f10976a.f10788M & this.f10976a.f10837ai;\n this.f10976a.f10822aT = this.f10976a.f10889bh ^ this.f10976a.f10952g;\n this.f10976a.f10822aT = this.f10976a.f10960o | this.f10976a.f10822aT;\n this.f10976a.f10886be = this.f10976a.f10837ai & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10888bg = this.f10976a.f10952g & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10888bg & this.f10976a.f10960o;\n this.f10976a.f10888bg = this.f10976a.f10960o | this.f10976a.f10888bg;\n this.f10976a.f10888bg = this.f10976a.f10926cd ^ this.f10976a.f10888bg;\n this.f10976a.f10886be = this.f10976a.f10952g & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10886be = this.f10976a.f10889bh ^ this.f10976a.f10886be;\n this.f10976a.f10822aT = this.f10976a.f10886be ^ this.f10976a.f10822aT;\n this.f10976a.f10817aO = this.f10976a.f10889bh ^ this.f10976a.f10817aO;\n this.f10976a.f10817aO = this.f10976a.f10960o & this.f10976a.f10817aO;\n this.f10976a.f10817aO = this.f10976a.f10926cd ^ this.f10976a.f10817aO;\n this.f10976a.f10926cd = this.f10976a.f10788M ^ this.f10976a.f10837ai;\n this.f10976a.f10862bG = this.f10976a.f10952g & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10889bh ^ this.f10976a.f10862bG;\n this.f10976a.f10864bI = this.f10976a.f10862bG ^ this.f10976a.f10864bI;\n this.f10976a.f10926cd ^= this.f10976a.f10952g;\n this.f10976a.f10843ao = this.f10976a.f10926cd ^ this.f10976a.f10843ao;\n this.f10976a.f10924cb = this.f10976a.f10816aN ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10797V | this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10887bf ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb &= this.f10976a.f10781F ^ -1;\n this.f10976a.f10924cb = this.f10976a.f10871bP ^ this.f10976a.f10924cb;\n this.f10976a.f10956k = this.f10976a.f10924cb ^ this.f10976a.f10956k;\n this.f10976a.f10873bR = this.f10976a.f10832ad & (this.f10976a.f10873bR ^ -1);\n this.f10976a.f10873bR = this.f10976a.f10789N | this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10880bY ^ this.f10976a.f10873bR;\n this.f10976a.f10880bY = this.f10976a.f10840al & (this.f10976a.f10873bR ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10927ce ^ this.f10976a.f10880bY;\n this.f10976a.f10841am = this.f10976a.f10880bY ^ this.f10976a.f10841am;\n this.f10976a.f10873bR &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10873bR = this.f10976a.f10861bF ^ this.f10976a.f10873bR;\n this.f10976a.f10847as = this.f10976a.f10873bR ^ this.f10976a.f10847as;\n this.f10976a.f10847as &= this.f10976a.f10781F ^ -1;\n this.f10976a.f10847as = this.f10976a.f10841am ^ this.f10976a.f10847as;\n this.f10976a.f10954i = this.f10976a.f10847as ^ this.f10976a.f10954i;\n this.f10976a.f10847as = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10841am = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10873bR = this.f10976a.f10841am & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10841am & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10927ce = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10927ce = this.f10976a.f10782G ^ this.f10976a.f10927ce;\n this.f10976a.f10924cb = this.f10976a.f10954i & this.f10976a.f10782G;\n this.f10976a.f10871bP = this.f10976a.f10954i & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10887bf = this.f10976a.f10955j & (this.f10976a.f10855b ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10887bf ^ this.f10976a.f10904bw;\n this.f10976a.f10904bw &= this.f10976a.f10840al ^ -1;\n this.f10976a.f10904bw = this.f10976a.f10899br ^ this.f10976a.f10904bw;\n this.f10976a.f10877bV = this.f10976a.f10904bw ^ this.f10976a.f10877bV;\n this.f10976a.f10780E = this.f10976a.f10877bV ^ this.f10976a.f10780E;\n this.f10976a.f10814aL = this.f10976a.f10780E | this.f10976a.f10814aL;\n this.f10976a.f10814aL = this.f10976a.f10898bq ^ this.f10976a.f10814aL;\n this.f10976a.f10858bC = this.f10976a.f10780E | this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10886be ^ this.f10976a.f10858bC;\n this.f10976a.f10881bZ = this.f10976a.f10780E | this.f10976a.f10881bZ;\n this.f10976a.f10881bZ = this.f10976a.f10822aT ^ this.f10976a.f10881bZ;\n this.f10976a.f10869bN = this.f10976a.f10780E ^ this.f10976a.f10869bN;\n this.f10976a.f10822aT = this.f10976a.f10802a | this.f10976a.f10780E;\n this.f10976a.f10886be = this.f10976a.f10822aT & (this.f10976a.f10780E ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10831ac & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10802a ^ this.f10976a.f10898bq;\n this.f10976a.f10877bV = this.f10976a.f10831ac & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10822aT ^ this.f10976a.f10877bV;\n this.f10976a.f10904bw = this.f10976a.f10831ac & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10899br = this.f10976a.f10802a & this.f10976a.f10780E;\n this.f10976a.f10816aN = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10816aN = this.f10976a.f10802a ^ this.f10976a.f10816aN;\n this.f10976a.f10926cd = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10862bG = this.f10976a.f10831ac & this.f10976a.f10899br;\n this.f10976a.f10862bG = this.f10976a.f10780E ^ this.f10976a.f10862bG;\n this.f10976a.f10806aD = this.f10976a.f10802a & (this.f10976a.f10780E ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10806aD ^ this.f10976a.f10904bw;\n this.f10976a.f10897bp = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10854az = this.f10976a.f10806aD ^ this.f10976a.f10831ac;\n this.f10976a.f10812aJ = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10812aJ = this.f10976a.f10780E ^ this.f10976a.f10812aJ;\n this.f10976a.f10821aS = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10930ch = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10930ch = this.f10976a.f10899br ^ this.f10976a.f10930ch;\n this.f10976a.f10806aD = this.f10976a.f10831ac & this.f10976a.f10806aD;\n this.f10976a.f10889bh &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10889bh = this.f10976a.f10884bc ^ this.f10976a.f10889bh;\n this.f10976a.f10884bc = this.f10976a.f10831ac & this.f10976a.f10780E;\n this.f10976a.f10884bc = this.f10976a.f10899br ^ this.f10976a.f10884bc;\n this.f10976a.f10931ci = this.f10976a.f10780E & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10897bp = this.f10976a.f10931ci ^ this.f10976a.f10897bp;\n this.f10976a.f10931ci = this.f10976a.f10831ac & this.f10976a.f10931ci;\n this.f10976a.f10864bI = this.f10976a.f10780E | this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10867bL ^ this.f10976a.f10864bI;\n this.f10976a.f10867bL = this.f10976a.f10831ac & this.f10976a.f10780E;\n this.f10976a.f10867bL = this.f10976a.f10802a ^ this.f10976a.f10867bL;\n this.f10976a.f10928cf &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10928cf = this.f10976a.f10817aO ^ this.f10976a.f10928cf;\n this.f10976a.f10888bg &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10888bg = this.f10976a.f10843ao ^ this.f10976a.f10888bg;\n this.f10976a.f10843ao = this.f10976a.f10802a ^ this.f10976a.f10780E;\n this.f10976a.f10817aO = this.f10976a.f10831ac & (this.f10976a.f10843ao ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10843ao ^ this.f10976a.f10931ci;\n this.f10976a.f10821aS = this.f10976a.f10843ao ^ this.f10976a.f10821aS;\n this.f10976a.f10843ao = this.f10976a.f10831ac & (this.f10976a.f10843ao ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10802a ^ this.f10976a.f10843ao;\n this.f10976a.f10876bU &= this.f10976a.f10780E ^ -1;\n this.f10976a.f10876bU = this.f10976a.f10808aF ^ this.f10976a.f10876bU;\n this.f10976a.f10844ap = this.f10976a.f10887bf ^ this.f10976a.f10844ap;\n this.f10976a.f10900bs = this.f10976a.f10844ap ^ this.f10976a.f10900bs;\n this.f10976a.f10820aR = this.f10976a.f10900bs ^ this.f10976a.f10820aR;\n this.f10976a.f10820aR = this.f10976a.f10783H & (this.f10976a.f10820aR ^ -1);\n this.f10976a.f10820aR = this.f10976a.f10959n ^ this.f10976a.f10820aR;\n this.f10976a.f10790O = this.f10976a.f10820aR ^ this.f10976a.f10790O;\n this.f10976a.f10820aR = this.f10976a.f10970y & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10959n = this.f10976a.f10970y & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10900bs = this.f10976a.f10790O | this.f10976a.f10970y;\n this.f10976a.f10844ap = this.f10976a.f10790O | this.f10976a.f10970y;\n this.f10976a.f10887bf = this.f10976a.f10963r | this.f10976a.f10855b;\n this.f10976a.f10887bf = this.f10976a.f10855b ^ this.f10976a.f10887bf;\n this.f10976a.f10887bf &= this.f10976a.f10971z;\n this.f10976a.f10887bf = this.f10976a.f10923ca ^ this.f10976a.f10887bf;\n this.f10976a.f10815aM = this.f10976a.f10887bf ^ this.f10976a.f10815aM;\n this.f10976a.f10815aM = this.f10976a.f10783H & (this.f10976a.f10815aM ^ -1);\n this.f10976a.f10815aM = this.f10976a.f10874bS ^ this.f10976a.f10815aM;\n this.f10976a.f10958m = this.f10976a.f10815aM ^ this.f10976a.f10958m;\n this.f10976a.f10882ba &= this.f10976a.f10908c ^ -1;\n this.f10976a.f10882ba = this.f10976a.f10865bJ ^ this.f10976a.f10882ba;\n this.f10976a.f10805aC = this.f10976a.f10882ba ^ this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10833ae | this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10902bu ^ this.f10976a.f10805aC;\n this.f10976a.f10787L = this.f10976a.f10805aC ^ this.f10976a.f10787L;\n this.f10976a.f10845aq = this.f10976a.f10787L & this.f10976a.f10845aq;\n this.f10976a.f10845aq = this.f10976a.f10964s ^ this.f10976a.f10845aq;\n this.f10976a.f10845aq |= this.f10976a.f10838aj;\n this.f10976a.f10964s = this.f10976a.f10787L & this.f10976a.f10852ax;\n this.f10976a.f10964s = this.f10976a.f10842an ^ this.f10976a.f10964s;\n this.f10976a.f10964s = this.f10976a.f10856bA | this.f10976a.f10964s;\n this.f10976a.f10866bK = this.f10976a.f10787L & this.f10976a.f10866bK;\n this.f10976a.f10866bK = this.f10976a.f10819aQ ^ this.f10976a.f10866bK;\n this.f10976a.f10803aA = this.f10976a.f10787L & (this.f10976a.f10803aA ^ -1);\n this.f10976a.f10803aA = this.f10976a.f10906by ^ this.f10976a.f10803aA;\n this.f10976a.f10851aw = this.f10976a.f10787L & this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10853ay ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw |= this.f10976a.f10838aj;\n this.f10976a.f10853ay = this.f10976a.f10787L & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10853ay = this.f10976a.f10804aB ^ this.f10976a.f10853ay;\n this.f10976a.f10964s = this.f10976a.f10853ay ^ this.f10976a.f10964s;\n this.f10976a.f10852ax = this.f10976a.f10787L & this.f10976a.f10852ax;\n this.f10976a.f10852ax = this.f10976a.f10870bO ^ this.f10976a.f10852ax;\n this.f10976a.f10852ax = this.f10976a.f10856bA | this.f10976a.f10852ax;\n this.f10976a.f10903bv = this.f10976a.f10787L & this.f10976a.f10903bv;\n this.f10976a.f10903bv = this.f10976a.f10848at ^ this.f10976a.f10903bv;\n this.f10976a.f10903bv &= this.f10976a.f10838aj ^ -1;\n this.f10976a.f10809aG = this.f10976a.f10787L & (this.f10976a.f10809aG ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10846ar ^ this.f10976a.f10809aG;\n this.f10976a.f10845aq = this.f10976a.f10809aG ^ this.f10976a.f10845aq;\n this.f10976a.f10962q = this.f10976a.f10845aq ^ this.f10976a.f10962q;\n this.f10976a.f10845aq = this.f10976a.f10782G & this.f10976a.f10962q;\n this.f10976a.f10924cb = this.f10976a.f10845aq ^ this.f10976a.f10924cb;\n this.f10976a.f10924cb = this.f10976a.f10970y | this.f10976a.f10924cb;\n this.f10976a.f10809aG = this.f10976a.f10782G & (this.f10976a.f10845aq ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10954i & (this.f10976a.f10809aG ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10845aq ^ this.f10976a.f10809aG;\n this.f10976a.f10846ar = this.f10976a.f10954i & this.f10976a.f10845aq;\n this.f10976a.f10848at = this.f10976a.f10954i & this.f10976a.f10962q;\n this.f10976a.f10870bO = this.f10976a.f10848at & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10870bO = this.f10976a.f10927ce ^ this.f10976a.f10870bO;\n this.f10976a.f10848at = this.f10976a.f10970y | this.f10976a.f10848at;\n this.f10976a.f10853ay = this.f10976a.f10782G & (this.f10976a.f10962q ^ -1);\n this.f10976a.f10853ay ^= this.f10976a.f10954i;\n this.f10976a.f10861bF = this.f10976a.f10853ay ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10962q & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10906by = this.f10976a.f10954i & this.f10976a.f10804aB;\n this.f10976a.f10906by = this.f10976a.f10845aq ^ this.f10976a.f10906by;\n this.f10976a.f10906by = this.f10976a.f10970y | this.f10976a.f10906by;\n this.f10976a.f10906by = this.f10976a.f10809aG ^ this.f10976a.f10906by;\n this.f10976a.f10880bY = this.f10976a.f10804aB ^ this.f10976a.f10880bY;\n this.f10976a.f10809aG = this.f10976a.f10880bY & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10809aG = this.f10976a.f10847as ^ this.f10976a.f10809aG;\n this.f10976a.f10809aG &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10809aG = this.f10976a.f10870bO ^ this.f10976a.f10809aG;\n this.f10976a.f10880bY = this.f10976a.f10970y & (this.f10976a.f10880bY ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10847as ^ this.f10976a.f10880bY;\n this.f10976a.f10880bY = this.f10976a.f10802a | this.f10976a.f10880bY;\n this.f10976a.f10870bO = this.f10976a.f10804aB & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10804aB |= this.f10976a.f10970y;\n this.f10976a.f10845aq = this.f10976a.f10962q | this.f10976a.f10782G;\n this.f10976a.f10819aQ = this.f10976a.f10845aq ^ this.f10976a.f10954i;\n this.f10976a.f10924cb = this.f10976a.f10819aQ ^ this.f10976a.f10924cb;\n this.f10976a.f10819aQ = this.f10976a.f10845aq & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10819aQ ^ this.f10976a.f10871bP;\n this.f10976a.f10842an = this.f10976a.f10871bP | this.f10976a.f10970y;\n this.f10976a.f10842an = this.f10976a.f10841am ^ this.f10976a.f10842an;\n this.f10976a.f10842an &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10871bP |= this.f10976a.f10970y;\n this.f10976a.f10871bP = this.f10976a.f10853ay ^ this.f10976a.f10871bP;\n this.f10976a.f10880bY = this.f10976a.f10871bP ^ this.f10976a.f10880bY;\n this.f10976a.f10871bP = this.f10976a.f10954i & (this.f10976a.f10845aq ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10845aq ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10970y & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10927ce ^ this.f10976a.f10871bP;\n this.f10976a.f10870bO = this.f10976a.f10871bP ^ this.f10976a.f10870bO;\n this.f10976a.f10871bP = this.f10976a.f10962q ^ this.f10976a.f10782G;\n this.f10976a.f10927ce = this.f10976a.f10954i & this.f10976a.f10871bP;\n this.f10976a.f10927ce = this.f10976a.f10819aQ ^ this.f10976a.f10927ce;\n this.f10976a.f10804aB = this.f10976a.f10927ce ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB &= this.f10976a.f10802a ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10906by ^ this.f10976a.f10804aB;\n this.f10976a.f10848at = this.f10976a.f10871bP ^ this.f10976a.f10848at;\n this.f10976a.f10861bF = this.f10976a.f10848at ^ this.f10976a.f10861bF;\n this.f10976a.f10873bR = this.f10976a.f10871bP ^ this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10802a | this.f10976a.f10873bR;\n this.f10976a.f10873bR = this.f10976a.f10924cb ^ this.f10976a.f10873bR;\n this.f10976a.f10846ar = this.f10976a.f10871bP ^ this.f10976a.f10846ar;\n this.f10976a.f10846ar = this.f10976a.f10970y & this.f10976a.f10846ar;\n this.f10976a.f10846ar = this.f10976a.f10847as ^ this.f10976a.f10846ar;\n this.f10976a.f10842an = this.f10976a.f10846ar ^ this.f10976a.f10842an;\n this.f10976a.f10893bl = this.f10976a.f10787L & this.f10976a.f10893bl;\n this.f10976a.f10893bl = this.f10976a.f10857bB ^ this.f10976a.f10893bl;\n this.f10976a.f10852ax = this.f10976a.f10893bl ^ this.f10976a.f10852ax;\n this.f10976a.f10896bo = this.f10976a.f10787L & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10859bD ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo |= this.f10976a.f10856bA;\n this.f10976a.f10885bd = this.f10976a.f10787L & (this.f10976a.f10885bd ^ -1);\n this.f10976a.f10885bd = this.f10976a.f10892bk ^ this.f10976a.f10885bd;\n this.f10976a.f10885bd &= this.f10976a.f10838aj ^ -1;\n this.f10976a.f10885bd = this.f10976a.f10803aA ^ this.f10976a.f10885bd;\n this.f10976a.f10968w = this.f10976a.f10885bd ^ this.f10976a.f10968w;\n this.f10976a.f10889bh = this.f10976a.f10968w & (this.f10976a.f10889bh ^ -1);\n this.f10976a.f10889bh = this.f10976a.f10888bg ^ this.f10976a.f10889bh;\n this.f10976a.f10779D = this.f10976a.f10889bh ^ this.f10976a.f10779D;\n this.f10976a.f10814aL &= this.f10976a.f10968w;\n this.f10976a.f10814aL = this.f10976a.f10876bU ^ this.f10976a.f10814aL;\n this.f10976a.f10783H = this.f10976a.f10814aL ^ this.f10976a.f10783H;\n this.f10976a.f10858bC = this.f10976a.f10968w & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10858bC = this.f10976a.f10864bI ^ this.f10976a.f10858bC;\n this.f10976a.f10801Z = this.f10976a.f10858bC ^ this.f10976a.f10801Z;\n this.f10976a.f10928cf = this.f10976a.f10968w & (this.f10976a.f10928cf ^ -1);\n this.f10976a.f10928cf = this.f10976a.f10881bZ ^ this.f10976a.f10928cf;\n this.f10976a.f10832ad = this.f10976a.f10928cf ^ this.f10976a.f10832ad;\n this.f10976a.f10895bn = this.f10976a.f10787L & (this.f10976a.f10895bn ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10868bM ^ this.f10976a.f10895bn;\n this.f10976a.f10896bo = this.f10976a.f10895bn ^ this.f10976a.f10896bo;\n this.f10976a.f10895bn = this.f10976a.f10836ah & this.f10976a.f10896bo;\n this.f10976a.f10895bn = this.f10976a.f10852ax ^ this.f10976a.f10895bn;\n this.f10976a.f10839ak = this.f10976a.f10895bn ^ this.f10976a.f10839ak;\n this.f10976a.f10895bn = this.f10976a.f10930ch & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10843ao ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10788M & (this.f10976a.f10895bn ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10898bq & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10843ao = this.f10976a.f10862bG ^ this.f10976a.f10843ao;\n this.f10976a.f10822aT &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10822aT = this.f10976a.f10816aN ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10788M & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10812aJ &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10812aJ = this.f10976a.f10898bq ^ this.f10976a.f10812aJ;\n this.f10976a.f10816aN = this.f10976a.f10839ak & (this.f10976a.f10897bp ^ -1);\n this.f10976a.f10816aN = this.f10976a.f10899br ^ this.f10976a.f10816aN;\n this.f10976a.f10877bV &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10877bV = this.f10976a.f10780E ^ this.f10976a.f10877bV;\n this.f10976a.f10822aT = this.f10976a.f10877bV ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10796U | this.f10976a.f10822aT;\n this.f10976a.f10877bV = this.f10976a.f10898bq & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10930ch ^ this.f10976a.f10877bV;\n this.f10976a.f10877bV = this.f10976a.f10788M & this.f10976a.f10877bV;\n this.f10976a.f10867bL = this.f10976a.f10839ak | this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10854az ^ this.f10976a.f10867bL;\n this.f10976a.f10877bV = this.f10976a.f10867bL ^ this.f10976a.f10877bV;\n this.f10976a.f10822aT = this.f10976a.f10877bV ^ this.f10976a.f10822aT;\n this.f10976a.f10957l = this.f10976a.f10822aT ^ this.f10976a.f10957l;\n this.f10976a.f10842an &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10842an = this.f10976a.f10880bY ^ this.f10976a.f10842an;\n this.f10976a.f10781F = this.f10976a.f10842an ^ this.f10976a.f10781F;\n this.f10976a.f10842an = this.f10976a.f10781F | this.f10976a.f10832ad;\n this.f10976a.f10822aT = this.f10976a.f10842an & (this.f10976a.f10832ad ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10832ad & this.f10976a.f10781F;\n this.f10976a.f10867bL = this.f10976a.f10832ad & (this.f10976a.f10877bV ^ -1);\n this.f10976a.f10854az = this.f10976a.f10781F & (this.f10976a.f10832ad ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10781F ^ this.f10976a.f10832ad;\n this.f10976a.f10868bM = this.f10976a.f10832ad & (this.f10976a.f10781F ^ -1);\n this.f10976a.f10821aS &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10821aS = this.f10976a.f10886be ^ this.f10976a.f10821aS;\n this.f10976a.f10886be = this.f10976a.f10839ak | this.f10976a.f10931ci;\n this.f10976a.f10886be = this.f10976a.f10904bw ^ this.f10976a.f10886be;\n this.f10976a.f10886be = this.f10976a.f10788M & (this.f10976a.f10886be ^ -1);\n this.f10976a.f10886be = this.f10976a.f10812aJ ^ this.f10976a.f10886be;\n this.f10976a.f10809aG = this.f10976a.f10839ak | this.f10976a.f10809aG;\n this.f10976a.f10809aG = this.f10976a.f10861bF ^ this.f10976a.f10809aG;\n this.f10976a.f10809aG ^= this.f10976a.f10856bA;\n this.f10976a.f10861bF = this.f10976a.f10839ak & (this.f10976a.f10802a ^ -1);\n this.f10976a.f10861bF = this.f10976a.f10930ch ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10788M & this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10816aN ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10796U | this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10886be ^ this.f10976a.f10861bF;\n this.f10976a.f10955j = this.f10976a.f10861bF ^ this.f10976a.f10955j;\n this.f10976a.f10926cd &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10926cd = this.f10976a.f10806aD ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10788M & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10843ao ^ this.f10976a.f10926cd;\n this.f10976a.f10884bc = this.f10976a.f10839ak | this.f10976a.f10884bc;\n this.f10976a.f10884bc = this.f10976a.f10897bp ^ this.f10976a.f10884bc;\n this.f10976a.f10895bn = this.f10976a.f10884bc ^ this.f10976a.f10895bn;\n this.f10976a.f10804aB = this.f10976a.f10839ak & (this.f10976a.f10804aB ^ -1);\n this.f10976a.f10804aB = this.f10976a.f10880bY ^ this.f10976a.f10804aB;\n this.f10976a.f10777B = this.f10976a.f10804aB ^ this.f10976a.f10777B;\n this.f10976a.f10804aB = this.f10976a.f10802a & (this.f10976a.f10839ak ^ -1);\n this.f10976a.f10804aB = this.f10976a.f10869bN ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB = this.f10976a.f10788M & (this.f10976a.f10804aB ^ -1);\n this.f10976a.f10870bO &= this.f10976a.f10839ak ^ -1;\n this.f10976a.f10870bO = this.f10976a.f10873bR ^ this.f10976a.f10870bO;\n this.f10976a.f10791P = this.f10976a.f10870bO ^ this.f10976a.f10791P;\n this.f10976a.f10870bO = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10873bR = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10869bN = this.f10976a.f10783H & (this.f10976a.f10791P ^ -1);\n this.f10976a.f10880bY = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10884bc = this.f10976a.f10783H & (this.f10976a.f10791P ^ -1);\n this.f10976a.f10884bc = this.f10976a.f10791P ^ this.f10976a.f10884bc;\n this.f10976a.f10897bp = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10843ao = this.f10976a.f10783H & this.f10976a.f10791P;\n this.f10976a.f10898bq = this.f10976a.f10839ak | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10817aO ^ this.f10976a.f10898bq;\n this.f10976a.f10804aB = this.f10976a.f10898bq ^ this.f10976a.f10804aB;\n this.f10976a.f10804aB &= this.f10976a.f10796U ^ -1;\n this.f10976a.f10804aB = this.f10976a.f10926cd ^ this.f10976a.f10804aB;\n this.f10976a.f10838aj = this.f10976a.f10804aB ^ this.f10976a.f10838aj;\n this.f10976a.f10804aB = this.f10976a.f10838aj ^ this.f10976a.f10781F;\n this.f10976a.f10899br = this.f10976a.f10839ak | this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10931ci ^ this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10788M & (this.f10976a.f10899br ^ -1);\n this.f10976a.f10899br = this.f10976a.f10821aS ^ this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10796U | this.f10976a.f10899br;\n this.f10976a.f10899br = this.f10976a.f10895bn ^ this.f10976a.f10899br;\n this.f10976a.f10899br ^= this.f10976a.f10836ah;\n this.f10976a.f10896bo |= this.f10976a.f10836ah;\n this.f10976a.f10896bo = this.f10976a.f10852ax ^ this.f10976a.f10896bo;\n this.f10976a.f10829aa = this.f10976a.f10896bo ^ this.f10976a.f10829aa;\n this.f10976a.f10896bo = this.f10976a.f10778C | this.f10976a.f10829aa;\n this.f10976a.f10896bo = this.f10976a.f10786K & (this.f10976a.f10896bo ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10829aa ^ this.f10976a.f10896bo;\n this.f10976a.f10852ax = this.f10976a.f10829aa & (this.f10976a.f10778C ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10829aa & (this.f10976a.f10852ax ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10794S | this.f10976a.f10895bn;\n this.f10976a.f10931ci = this.f10976a.f10786K & this.f10976a.f10852ax;\n this.f10976a.f10931ci = this.f10976a.f10852ax ^ this.f10976a.f10931ci;\n this.f10976a.f10878bW = this.f10976a.f10852ax ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10878bW = this.f10976a.f10901bt ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10952g & this.f10976a.f10878bW;\n this.f10976a.f10926cd = this.f10976a.f10786K & this.f10976a.f10852ax;\n this.f10976a.f10907bz = this.f10976a.f10852ax ^ this.f10976a.f10907bz;\n this.f10976a.f10878bW = this.f10976a.f10907bz ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW &= this.f10976a.f10837ai ^ -1;\n this.f10976a.f10907bz = this.f10976a.f10786K & (this.f10976a.f10829aa ^ -1);\n this.f10976a.f10827aY = this.f10976a.f10829aa ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10827aY = this.f10976a.f10829aa ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10952g & this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10896bo ^ this.f10976a.f10827aY;\n this.f10976a.f10827aY = this.f10976a.f10837ai | this.f10976a.f10827aY;\n this.f10976a.f10896bo = this.f10976a.f10829aa & (this.f10976a.f10794S ^ -1);\n this.f10976a.f10896bo = this.f10976a.f10931ci ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10952g & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10890bi ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10837ai | this.f10976a.f10896bo;\n this.f10976a.f10890bi = this.f10976a.f10778C & (this.f10976a.f10829aa ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10786K & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10829aa ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10794S | this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10926cd ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10952g & this.f10976a.f10898bq;\n this.f10976a.f10926cd = this.f10976a.f10786K & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10926cd &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10817aO = this.f10976a.f10890bi & (this.f10976a.f10794S ^ -1);\n this.f10976a.f10890bi = this.f10976a.f10786K & this.f10976a.f10890bi;\n this.f10976a.f10890bi = this.f10976a.f10778C ^ this.f10976a.f10890bi;\n this.f10976a.f10890bi &= this.f10976a.f10794S;\n this.f10976a.f10890bi = this.f10976a.f10952g & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10806aD = this.f10976a.f10778C & this.f10976a.f10829aa;\n this.f10976a.f10861bF = this.f10976a.f10786K & this.f10976a.f10806aD;\n this.f10976a.f10861bF = this.f10976a.f10829aa ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF &= this.f10976a.f10794S ^ -1;\n this.f10976a.f10861bF = this.f10976a.f10931ci ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10952g & (this.f10976a.f10861bF ^ -1);\n this.f10976a.f10806aD ^= this.f10976a.f10786K;\n this.f10976a.f10806aD &= this.f10976a.f10794S;\n this.f10976a.f10806aD = this.f10976a.f10901bt ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD = this.f10976a.f10952g & this.f10976a.f10806aD;\n this.f10976a.f10901bt = this.f10976a.f10778C ^ this.f10976a.f10829aa;\n this.f10976a.f10931ci = this.f10976a.f10786K & (this.f10976a.f10901bt ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10895bn ^ this.f10976a.f10931ci;\n this.f10976a.f10821aS = this.f10976a.f10931ci ^ this.f10976a.f10821aS;\n this.f10976a.f10806aD = this.f10976a.f10821aS ^ this.f10976a.f10806aD;\n this.f10976a.f10821aS = this.f10976a.f10901bt ^ this.f10976a.f10786K;\n this.f10976a.f10931ci = this.f10976a.f10821aS ^ this.f10976a.f10794S;\n this.f10976a.f10890bi = this.f10976a.f10931ci ^ this.f10976a.f10890bi;\n this.f10976a.f10827aY = this.f10976a.f10890bi ^ this.f10976a.f10827aY;\n this.f10976a.f10949d = this.f10976a.f10827aY ^ this.f10976a.f10949d;\n this.f10976a.f10884bc &= this.f10976a.f10949d ^ -1;\n this.f10976a.f10827aY = this.f10976a.f10949d & this.f10976a.f10783H;\n this.f10976a.f10907bz = this.f10976a.f10901bt ^ this.f10976a.f10907bz;\n this.f10976a.f10926cd = this.f10976a.f10907bz ^ this.f10976a.f10926cd;\n this.f10976a.f10861bF = this.f10976a.f10926cd ^ this.f10976a.f10861bF;\n this.f10976a.f10896bo = this.f10976a.f10861bF ^ this.f10976a.f10896bo;\n this.f10976a.f10951f = this.f10976a.f10896bo ^ this.f10976a.f10951f;\n this.f10976a.f10896bo = this.f10976a.f10951f ^ this.f10976a.f10801Z;\n this.f10976a.f10861bF = this.f10976a.f10951f | this.f10976a.f10801Z;\n this.f10976a.f10926cd = this.f10976a.f10861bF & (this.f10976a.f10801Z ^ -1);\n this.f10976a.f10907bz = this.f10976a.f10951f & (this.f10976a.f10801Z ^ -1);\n this.f10976a.f10890bi = this.f10976a.f10801Z & this.f10976a.f10951f;\n this.f10976a.f10931ci = this.f10976a.f10801Z & (this.f10976a.f10890bi ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10786K & this.f10976a.f10901bt;\n this.f10976a.f10895bn = this.f10976a.f10852ax ^ this.f10976a.f10895bn;\n this.f10976a.f10817aO = this.f10976a.f10895bn ^ this.f10976a.f10817aO;\n this.f10976a.f10895bn = this.f10976a.f10952g & this.f10976a.f10817aO;\n this.f10976a.f10895bn = this.f10976a.f10817aO ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10837ai | this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10806aD ^ this.f10976a.f10895bn;\n this.f10976a.f10969x = this.f10976a.f10895bn ^ this.f10976a.f10969x;\n this.f10976a.f10804aB &= this.f10976a.f10969x ^ -1;\n this.f10976a.f10895bn = this.f10976a.f10786K & (this.f10976a.f10901bt ^ -1);\n this.f10976a.f10895bn = this.f10976a.f10901bt ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10794S | this.f10976a.f10895bn;\n this.f10976a.f10895bn = this.f10976a.f10821aS ^ this.f10976a.f10895bn;\n this.f10976a.f10898bq = this.f10976a.f10895bn ^ this.f10976a.f10898bq;\n this.f10976a.f10878bW = this.f10976a.f10898bq ^ this.f10976a.f10878bW;\n this.f10976a.f10963r = this.f10976a.f10878bW ^ this.f10976a.f10963r;\n this.f10976a.f10905bx = this.f10976a.f10787L & (this.f10976a.f10905bx ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10807aE ^ this.f10976a.f10905bx;\n this.f10976a.f10903bv = this.f10976a.f10905bx ^ this.f10976a.f10903bv;\n this.f10976a.f10950e = this.f10976a.f10903bv ^ this.f10976a.f10950e;\n this.f10976a.f10875bT = this.f10976a.f10950e | this.f10976a.f10875bT;\n this.f10976a.f10875bT = this.f10976a.f10879bX ^ this.f10976a.f10875bT;\n this.f10976a.f10875bT = this.f10976a.f10958m & (this.f10976a.f10875bT ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10776A & this.f10976a.f10950e;\n this.f10976a.f10903bv = this.f10976a.f10950e & (this.f10976a.f10879bX ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10792Q | this.f10976a.f10903bv;\n this.f10976a.f10905bx = this.f10976a.f10879bX ^ this.f10976a.f10905bx;\n this.f10976a.f10807aE = this.f10976a.f10835ag | this.f10976a.f10905bx;\n this.f10976a.f10878bW = this.f10976a.f10835ag | this.f10976a.f10903bv;\n this.f10976a.f10850av = this.f10976a.f10903bv ^ this.f10976a.f10850av;\n this.f10976a.f10903bv ^= this.f10976a.f10792Q;\n this.f10976a.f10898bq = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10898bq = this.f10976a.f10950e ^ this.f10976a.f10898bq;\n this.f10976a.f10824aV = this.f10976a.f10879bX ^ this.f10976a.f10824aV;\n this.f10976a.f10824aV = this.f10976a.f10835ag | this.f10976a.f10824aV;\n this.f10976a.f10824aV = this.f10976a.f10898bq ^ this.f10976a.f10824aV;\n this.f10976a.f10898bq = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10898bq = this.f10976a.f10879bX ^ this.f10976a.f10898bq;\n this.f10976a.f10898bq = this.f10976a.f10835ag | this.f10976a.f10898bq;\n this.f10976a.f10895bn = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10821aS = this.f10976a.f10826aX & this.f10976a.f10950e;\n this.f10976a.f10821aS = this.f10976a.f10925cc ^ this.f10976a.f10821aS;\n this.f10976a.f10821aS = this.f10976a.f10958m & (this.f10976a.f10821aS ^ -1);\n this.f10976a.f10901bt = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10806aD = this.f10976a.f10835ag | this.f10976a.f10901bt;\n this.f10976a.f10806aD = this.f10976a.f10903bv ^ this.f10976a.f10806aD;\n this.f10976a.f10826aX &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10826aX = this.f10976a.f10863bH ^ this.f10976a.f10826aX;\n this.f10976a.f10875bT = this.f10976a.f10826aX ^ this.f10976a.f10875bT;\n this.f10976a.f10925cc = this.f10976a.f10950e | this.f10976a.f10925cc;\n this.f10976a.f10925cc = this.f10976a.f10894bm ^ this.f10976a.f10925cc;\n this.f10976a.f10894bm = this.f10976a.f10776A & (this.f10976a.f10950e ^ -1);\n this.f10976a.f10828aZ = this.f10976a.f10950e | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10872bQ ^ this.f10976a.f10828aZ;\n this.f10976a.f10821aS = this.f10976a.f10828aZ ^ this.f10976a.f10821aS;\n this.f10976a.f10860bE &= this.f10976a.f10950e;\n this.f10976a.f10860bE = this.f10976a.f10863bH ^ this.f10976a.f10860bE;\n this.f10976a.f10863bH = this.f10976a.f10776A ^ this.f10976a.f10950e;\n this.f10976a.f10895bn = this.f10976a.f10863bH ^ this.f10976a.f10895bn;\n this.f10976a.f10895bn &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10828aZ = this.f10976a.f10863bH & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10792Q | this.f10976a.f10863bH;\n this.f10976a.f10826aX = this.f10976a.f10894bm ^ this.f10976a.f10826aX;\n this.f10976a.f10849au = this.f10976a.f10826aX ^ this.f10976a.f10849au;\n this.f10976a.f10826aX = this.f10976a.f10863bH & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10776A ^ this.f10976a.f10826aX;\n this.f10976a.f10823aU &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10823aU = this.f10976a.f10872bQ ^ this.f10976a.f10823aU;\n this.f10976a.f10823aU = this.f10976a.f10958m & this.f10976a.f10823aU;\n this.f10976a.f10823aU = this.f10976a.f10925cc ^ this.f10976a.f10823aU;\n this.f10976a.f10925cc = this.f10976a.f10835ag & (this.f10976a.f10823aU ^ -1);\n this.f10976a.f10925cc = this.f10976a.f10875bT ^ this.f10976a.f10925cc;\n this.f10976a.f10840al = this.f10976a.f10925cc ^ this.f10976a.f10840al;\n this.f10976a.f10823aU &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10823aU = this.f10976a.f10875bT ^ this.f10976a.f10823aU;\n this.f10976a.f10830ab = this.f10976a.f10823aU ^ this.f10976a.f10830ab;\n this.f10976a.f10823aU = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10875bT = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10925cc = this.f10976a.f10830ab | this.f10976a.f10779D;\n this.f10976a.f10925cc = this.f10976a.f10779D ^ this.f10976a.f10925cc;\n this.f10976a.f10872bQ = this.f10976a.f10779D ^ this.f10976a.f10830ab;\n this.f10976a.f10825aW &= this.f10976a.f10950e ^ -1;\n this.f10976a.f10825aW = this.f10976a.f10929cg ^ this.f10976a.f10825aW;\n this.f10976a.f10825aW = this.f10976a.f10958m & this.f10976a.f10825aW;\n this.f10976a.f10825aW = this.f10976a.f10860bE ^ this.f10976a.f10825aW;\n this.f10976a.f10860bE = this.f10976a.f10835ag | this.f10976a.f10825aW;\n this.f10976a.f10860bE = this.f10976a.f10821aS ^ this.f10976a.f10860bE;\n this.f10976a.f10785J = this.f10976a.f10860bE ^ this.f10976a.f10785J;\n this.f10976a.f10860bE = this.f10976a.f10949d & (this.f10976a.f10785J ^ -1);\n this.f10976a.f10929cg = this.f10976a.f10949d & (this.f10976a.f10860bE ^ -1);\n this.f10976a.f10894bm = this.f10976a.f10785J & this.f10976a.f10949d;\n this.f10976a.f10903bv = this.f10976a.f10785J & (this.f10976a.f10949d ^ -1);\n this.f10976a.f10817aO = this.f10976a.f10949d | this.f10976a.f10903bv;\n this.f10976a.f10852ax = this.f10976a.f10903bv & this.f10976a.f10957l;\n this.f10976a.f10886be = this.f10976a.f10903bv & this.f10976a.f10957l;\n this.f10976a.f10816aN = this.f10976a.f10785J ^ this.f10976a.f10949d;\n this.f10976a.f10930ch = this.f10976a.f10785J | this.f10976a.f10949d;\n this.f10976a.f10812aJ = this.f10976a.f10957l & (this.f10976a.f10930ch ^ -1);\n this.f10976a.f10904bw = this.f10976a.f10957l & (this.f10976a.f10930ch ^ -1);\n this.f10976a.f10928cf = this.f10976a.f10930ch & this.f10976a.f10957l;\n this.f10976a.f10825aW &= this.f10976a.f10835ag;\n this.f10976a.f10825aW = this.f10976a.f10821aS ^ this.f10976a.f10825aW;\n this.f10976a.f10799X = this.f10976a.f10825aW ^ this.f10976a.f10799X;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10825aW = this.f10976a.f10863bH ^ this.f10976a.f10825aW;\n this.f10976a.f10898bq = this.f10976a.f10825aW ^ this.f10976a.f10898bq;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10776A ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10825aW & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10879bX ^ this.f10976a.f10821aS;\n this.f10976a.f10881bZ = this.f10976a.f10825aW & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10881bZ = this.f10976a.f10825aW ^ this.f10976a.f10881bZ;\n this.f10976a.f10895bn = this.f10976a.f10881bZ ^ this.f10976a.f10895bn;\n this.f10976a.f10825aW &= this.f10976a.f10792Q ^ -1;\n this.f10976a.f10825aW = this.f10976a.f10863bH ^ this.f10976a.f10825aW;\n this.f10976a.f10807aE = this.f10976a.f10825aW ^ this.f10976a.f10807aE;\n this.f10976a.f10825aW = this.f10976a.f10950e & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10825aW = this.f10976a.f10879bX ^ this.f10976a.f10825aW;\n this.f10976a.f10825aW &= this.f10976a.f10835ag ^ -1;\n this.f10976a.f10879bX = this.f10976a.f10950e | this.f10976a.f10776A;\n this.f10976a.f10825aW = this.f10976a.f10879bX ^ this.f10976a.f10825aW;\n this.f10976a.f10863bH = this.f10976a.f10879bX & (this.f10976a.f10792Q ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10879bX ^ this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10835ag & this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10901bt ^ this.f10976a.f10863bH;\n this.f10976a.f10901bt = this.f10976a.f10792Q | this.f10976a.f10879bX;\n this.f10976a.f10901bt = this.f10976a.f10879bX ^ this.f10976a.f10901bt;\n this.f10976a.f10881bZ = this.f10976a.f10835ag | this.f10976a.f10901bt;\n this.f10976a.f10881bZ = this.f10976a.f10905bx ^ this.f10976a.f10881bZ;\n this.f10976a.f10878bW = this.f10976a.f10901bt ^ this.f10976a.f10878bW;\n this.f10976a.f10905bx = this.f10976a.f10901bt & this.f10976a.f10835ag;\n this.f10976a.f10858bC = this.f10976a.f10879bX & (this.f10976a.f10950e ^ -1);\n this.f10976a.f10810aH = this.f10976a.f10858bC ^ this.f10976a.f10810aH;\n this.f10976a.f10905bx = this.f10976a.f10858bC ^ this.f10976a.f10905bx;\n this.f10976a.f10858bC = this.f10976a.f10835ag | this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10901bt ^ this.f10976a.f10858bC;\n this.f10976a.f10828aZ = this.f10976a.f10879bX ^ this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10835ag | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10850av ^ this.f10976a.f10828aZ;\n this.f10976a.f10818aP = this.f10976a.f10787L & (this.f10976a.f10818aP ^ -1);\n this.f10976a.f10818aP = this.f10976a.f10813aK ^ this.f10976a.f10818aP;\n this.f10976a.f10851aw = this.f10976a.f10818aP ^ this.f10976a.f10851aw;\n this.f10976a.f10908c = this.f10976a.f10851aw ^ this.f10976a.f10908c;\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10908c ^ this.f10976a.f10851aw;\n this.f10976a.f10818aP = this.f10976a.f10908c & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10908c ^ this.f10976a.f10790O;\n this.f10976a.f10850av = this.f10976a.f10908c & (this.f10976a.f10970y ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10850av & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10900bs = this.f10976a.f10850av ^ this.f10976a.f10900bs;\n this.f10976a.f10900bs = this.f10976a.f10782G & (this.f10976a.f10900bs ^ -1);\n this.f10976a.f10850av = this.f10976a.f10908c & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10901bt = this.f10976a.f10790O | this.f10976a.f10908c;\n this.f10976a.f10864bI = this.f10976a.f10970y & this.f10976a.f10908c;\n this.f10976a.f10814aL = this.f10976a.f10864bI & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10879bX = this.f10976a.f10864bI ^ this.f10976a.f10879bX;\n this.f10976a.f10879bX = this.f10976a.f10782G | this.f10976a.f10879bX;\n this.f10976a.f10901bt = this.f10976a.f10864bI ^ this.f10976a.f10901bt;\n this.f10976a.f10901bt ^= this.f10976a.f10782G;\n this.f10976a.f10876bU = this.f10976a.f10908c & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10889bh = this.f10976a.f10790O | this.f10976a.f10876bU;\n this.f10976a.f10888bg = this.f10976a.f10889bh & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10889bh |= this.f10976a.f10782G;\n this.f10976a.f10818aP = this.f10976a.f10876bU ^ this.f10976a.f10818aP;\n this.f10976a.f10885bd = this.f10976a.f10864bI & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10803aA = this.f10976a.f10908c & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10892bk = this.f10976a.f10970y & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10893bl = this.f10976a.f10892bk & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10857bB = this.f10976a.f10892bk & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10857bB = this.f10976a.f10908c ^ this.f10976a.f10857bB;\n this.f10976a.f10857bB = this.f10976a.f10782G & this.f10976a.f10857bB;\n this.f10976a.f10857bB = this.f10976a.f10876bU ^ this.f10976a.f10857bB;\n this.f10976a.f10820aR = this.f10976a.f10892bk ^ this.f10976a.f10820aR;\n this.f10976a.f10820aR &= this.f10976a.f10782G ^ -1;\n this.f10976a.f10892bk = this.f10976a.f10970y | this.f10976a.f10908c;\n this.f10976a.f10893bl = this.f10976a.f10892bk ^ this.f10976a.f10893bl;\n this.f10976a.f10803aA = this.f10976a.f10893bl ^ this.f10976a.f10803aA;\n this.f10976a.f10893bl = this.f10976a.f10790O | this.f10976a.f10892bk;\n this.f10976a.f10893bl = this.f10976a.f10864bI ^ this.f10976a.f10893bl;\n this.f10976a.f10893bl |= this.f10976a.f10782G;\n this.f10976a.f10893bl = this.f10976a.f10892bk ^ this.f10976a.f10893bl;\n this.f10976a.f10892bk = this.f10976a.f10790O | this.f10976a.f10892bk;\n this.f10976a.f10900bs = this.f10976a.f10892bk ^ this.f10976a.f10900bs;\n this.f10976a.f10885bd = this.f10976a.f10892bk ^ this.f10976a.f10885bd;\n this.f10976a.f10892bk |= this.f10976a.f10782G;\n this.f10976a.f10864bI = this.f10976a.f10908c & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10846ar = this.f10976a.f10864bI & (this.f10976a.f10782G ^ -1);\n this.f10976a.f10846ar = this.f10976a.f10813aK ^ this.f10976a.f10846ar;\n this.f10976a.f10813aK = this.f10976a.f10970y ^ this.f10976a.f10908c;\n this.f10976a.f10847as = this.f10976a.f10790O | this.f10976a.f10813aK;\n this.f10976a.f10847as |= this.f10976a.f10782G;\n this.f10976a.f10871bP = this.f10976a.f10790O | this.f10976a.f10813aK;\n this.f10976a.f10871bP = this.f10976a.f10908c ^ this.f10976a.f10871bP;\n this.f10976a.f10847as = this.f10976a.f10871bP ^ this.f10976a.f10847as;\n this.f10976a.f10959n = this.f10976a.f10813aK ^ this.f10976a.f10959n;\n this.f10976a.f10892bk = this.f10976a.f10959n ^ this.f10976a.f10892bk;\n this.f10976a.f10959n = this.f10976a.f10813aK & (this.f10976a.f10790O ^ -1);\n this.f10976a.f10959n = this.f10976a.f10782G & this.f10976a.f10959n;\n this.f10976a.f10959n = this.f10976a.f10864bI ^ this.f10976a.f10959n;\n this.f10976a.f10844ap = this.f10976a.f10813aK ^ this.f10976a.f10844ap;\n this.f10976a.f10820aR = this.f10976a.f10844ap ^ this.f10976a.f10820aR;\n this.f10976a.f10814aL = this.f10976a.f10813aK ^ this.f10976a.f10814aL;\n this.f10976a.f10879bX = this.f10976a.f10814aL ^ this.f10976a.f10879bX;\n this.f10976a.f10813aK ^= this.f10976a.f10790O;\n this.f10976a.f10888bg = this.f10976a.f10813aK ^ this.f10976a.f10888bg;\n this.f10976a.f10891bj &= this.f10976a.f10787L ^ -1;\n this.f10976a.f10891bj = this.f10976a.f10859bD ^ this.f10976a.f10891bj;\n this.f10976a.f10856bA = this.f10976a.f10891bj & (this.f10976a.f10856bA ^ -1);\n this.f10976a.f10856bA = this.f10976a.f10866bK ^ this.f10976a.f10856bA;\n this.f10976a.f10866bK = this.f10976a.f10836ah & this.f10976a.f10856bA;\n this.f10976a.f10866bK = this.f10976a.f10964s ^ this.f10976a.f10866bK;\n this.f10976a.f10784I = this.f10976a.f10866bK ^ this.f10976a.f10784I;\n this.f10976a.f10828aZ = this.f10976a.f10784I | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10810aH ^ this.f10976a.f10828aZ;\n this.f10976a.f10858bC &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10858bC = this.f10976a.f10905bx ^ this.f10976a.f10858bC;\n this.f10976a.f10858bC = this.f10976a.f10800Y & (this.f10976a.f10858bC ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10776A & this.f10976a.f10784I;\n this.f10976a.f10810aH = this.f10976a.f10905bx & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10866bK = this.f10976a.f10784I | this.f10976a.f10908c;\n this.f10976a.f10891bj = this.f10976a.f10866bK | this.f10976a.f10956k;\n this.f10976a.f10859bD = this.f10976a.f10866bK & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10814aL = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10859bD = this.f10976a.f10776A & (this.f10976a.f10859bD ^ -1);\n this.f10976a.f10859bD = this.f10976a.f10908c ^ this.f10976a.f10859bD;\n this.f10976a.f10859bD &= this.f10976a.f10956k ^ -1;\n this.f10976a.f10844ap = this.f10976a.f10776A & (this.f10976a.f10866bK ^ -1);\n this.f10976a.f10844ap = this.f10976a.f10956k | this.f10976a.f10844ap;\n this.f10976a.f10864bI = this.f10976a.f10908c & this.f10976a.f10784I;\n this.f10976a.f10814aL = this.f10976a.f10864bI ^ this.f10976a.f10814aL;\n this.f10976a.f10871bP = this.f10976a.f10814aL & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10924cb = this.f10976a.f10908c & (this.f10976a.f10864bI ^ -1);\n this.f10976a.f10848at = this.f10976a.f10776A & this.f10976a.f10864bI;\n this.f10976a.f10848at = this.f10976a.f10864bI ^ this.f10976a.f10848at;\n this.f10976a.f10891bj = this.f10976a.f10848at ^ this.f10976a.f10891bj;\n this.f10976a.f10878bW &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10878bW = this.f10976a.f10806aD ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10800Y & (this.f10976a.f10878bW ^ -1);\n this.f10976a.f10878bW = this.f10976a.f10828aZ ^ this.f10976a.f10878bW;\n this.f10976a.f10797V = this.f10976a.f10878bW ^ this.f10976a.f10797V;\n this.f10976a.f10878bW = this.f10976a.f10797V & this.f10976a.f10842an;\n this.f10976a.f10826aX &= this.f10976a.f10784I ^ -1;\n this.f10976a.f10826aX = this.f10976a.f10863bH ^ this.f10976a.f10826aX;\n this.f10976a.f10826aX = this.f10976a.f10800Y & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10784I & (this.f10976a.f10908c ^ -1);\n this.f10976a.f10828aZ = this.f10976a.f10776A & this.f10976a.f10863bH;\n this.f10976a.f10828aZ = this.f10976a.f10864bI ^ this.f10976a.f10828aZ;\n this.f10976a.f10810aH = this.f10976a.f10828aZ ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH = this.f10976a.f10811aI & this.f10976a.f10810aH;\n this.f10976a.f10810aH = this.f10976a.f10891bj ^ this.f10976a.f10810aH;\n this.f10976a.f10810aH &= this.f10976a.f10883bb ^ -1;\n this.f10976a.f10828aZ = this.f10976a.f10811aI & this.f10976a.f10828aZ;\n this.f10976a.f10891bj = this.f10976a.f10776A & this.f10976a.f10863bH;\n this.f10976a.f10891bj = this.f10976a.f10866bK ^ this.f10976a.f10891bj;\n this.f10976a.f10891bj |= this.f10976a.f10956k;\n this.f10976a.f10891bj = this.f10976a.f10851aw ^ this.f10976a.f10891bj;\n this.f10976a.f10891bj = this.f10976a.f10811aI & (this.f10976a.f10891bj ^ -1);\n this.f10976a.f10821aS = this.f10976a.f10784I | this.f10976a.f10821aS;\n this.f10976a.f10821aS = this.f10976a.f10898bq ^ this.f10976a.f10821aS;\n this.f10976a.f10826aX = this.f10976a.f10821aS ^ this.f10976a.f10826aX;\n this.f10976a.f10967v = this.f10976a.f10826aX ^ this.f10976a.f10967v;\n this.f10976a.f10826aX = this.f10976a.f10951f ^ this.f10976a.f10967v;\n this.f10976a.f10821aS = this.f10976a.f10779D & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10826aX = this.f10976a.f10779D & (this.f10976a.f10826aX ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10967v & (this.f10976a.f10951f ^ -1);\n this.f10976a.f10898bq = this.f10976a.f10951f ^ this.f10976a.f10898bq;\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10864bI ^ this.f10976a.f10851aw;\n this.f10976a.f10871bP = this.f10976a.f10851aw ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10811aI & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10776A & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10908c ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw &= this.f10976a.f10956k ^ -1;\n this.f10976a.f10851aw = this.f10976a.f10814aL ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10811aI & this.f10976a.f10851aw;\n this.f10976a.f10814aL = this.f10976a.f10908c & (this.f10976a.f10784I ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10864bI = this.f10976a.f10784I ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI |= this.f10976a.f10956k;\n this.f10976a.f10866bK = this.f10976a.f10814aL ^ this.f10976a.f10776A;\n this.f10976a.f10806aD = this.f10976a.f10956k & this.f10976a.f10866bK;\n this.f10976a.f10806aD = this.f10976a.f10905bx ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD = this.f10976a.f10811aI & this.f10976a.f10806aD;\n this.f10976a.f10905bx = this.f10976a.f10866bK & (this.f10976a.f10956k ^ -1);\n this.f10976a.f10850av = this.f10976a.f10866bK ^ this.f10976a.f10850av;\n this.f10976a.f10851aw = this.f10976a.f10850av ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw &= this.f10976a.f10883bb ^ -1;\n this.f10976a.f10814aL = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10864bI = this.f10976a.f10814aL ^ this.f10976a.f10864bI;\n this.f10976a.f10864bI = this.f10976a.f10811aI & this.f10976a.f10864bI;\n this.f10976a.f10814aL = this.f10976a.f10784I ^ this.f10976a.f10908c;\n this.f10976a.f10850av = this.f10976a.f10776A & (this.f10976a.f10814aL ^ -1);\n this.f10976a.f10850av = this.f10976a.f10863bH ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10956k & this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10848at ^ this.f10976a.f10850av;\n this.f10976a.f10850av = this.f10976a.f10811aI & (this.f10976a.f10850av ^ -1);\n this.f10976a.f10905bx = this.f10976a.f10814aL ^ this.f10976a.f10905bx;\n this.f10976a.f10806aD = this.f10976a.f10905bx ^ this.f10976a.f10806aD;\n this.f10976a.f10806aD |= this.f10976a.f10883bb;\n this.f10976a.f10905bx = this.f10976a.f10814aL ^ this.f10976a.f10956k;\n this.f10976a.f10871bP = this.f10976a.f10905bx ^ this.f10976a.f10871bP;\n this.f10976a.f10851aw = this.f10976a.f10871bP ^ this.f10976a.f10851aw;\n this.f10976a.f10789N = this.f10976a.f10851aw ^ this.f10976a.f10789N;\n this.f10976a.f10851aw = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10851aw &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10871bP = this.f10976a.f10781F & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10878bW = this.f10976a.f10871bP ^ this.f10976a.f10878bW;\n this.f10976a.f10878bW = this.f10976a.f10840al & (this.f10976a.f10878bW ^ -1);\n this.f10976a.f10871bP = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10871bP = this.f10976a.f10842an ^ this.f10976a.f10871bP;\n this.f10976a.f10905bx = this.f10976a.f10871bP & this.f10976a.f10797V;\n this.f10976a.f10871bP &= this.f10976a.f10797V;\n this.f10976a.f10848at = this.f10976a.f10789N | this.f10976a.f10781F;\n this.f10976a.f10848at = this.f10976a.f10877bV ^ this.f10976a.f10848at;\n this.f10976a.f10863bH = this.f10976a.f10797V & (this.f10976a.f10848at ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10862bG;\n this.f10976a.f10862bG = this.f10976a.f10781F ^ this.f10976a.f10862bG;\n this.f10976a.f10906by = this.f10976a.f10838aj & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10906by = this.f10976a.f10838aj ^ this.f10976a.f10906by;\n this.f10976a.f10927ce = this.f10976a.f10906by & (this.f10976a.f10781F ^ -1);\n this.f10976a.f10819aQ = this.f10976a.f10906by & (this.f10976a.f10969x ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10842an & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10822aT ^ this.f10976a.f10845aq;\n this.f10976a.f10871bP = this.f10976a.f10845aq ^ this.f10976a.f10871bP;\n this.f10976a.f10871bP = this.f10976a.f10840al & (this.f10976a.f10871bP ^ -1);\n this.f10976a.f10845aq = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10845aq = this.f10976a.f10838aj ^ this.f10976a.f10845aq;\n this.f10976a.f10853ay = this.f10976a.f10845aq & this.f10976a.f10781F;\n this.f10976a.f10845aq &= this.f10976a.f10781F;\n this.f10976a.f10841am = this.f10976a.f10789N | this.f10976a.f10867bL;\n this.f10976a.f10805aC = this.f10976a.f10797V | this.f10976a.f10841am;\n this.f10976a.f10805aC = this.f10976a.f10848at ^ this.f10976a.f10805aC;\n this.f10976a.f10878bW = this.f10976a.f10805aC ^ this.f10976a.f10878bW;\n this.f10976a.f10905bx = this.f10976a.f10841am ^ this.f10976a.f10905bx;\n this.f10976a.f10905bx = this.f10976a.f10840al & (this.f10976a.f10905bx ^ -1);\n this.f10976a.f10867bL = this.f10976a.f10789N | this.f10976a.f10867bL;\n this.f10976a.f10867bL = this.f10976a.f10842an ^ this.f10976a.f10867bL;\n this.f10976a.f10863bH = this.f10976a.f10867bL ^ this.f10976a.f10863bH;\n this.f10976a.f10841am = this.f10976a.f10781F & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10841am = this.f10976a.f10868bM ^ this.f10976a.f10841am;\n this.f10976a.f10841am &= this.f10976a.f10797V ^ -1;\n this.f10976a.f10841am = this.f10976a.f10867bL ^ this.f10976a.f10841am;\n this.f10976a.f10841am = this.f10976a.f10840al & this.f10976a.f10841am;\n this.f10976a.f10805aC = this.f10976a.f10854az & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10832ad ^ this.f10976a.f10805aC;\n this.f10976a.f10851aw = this.f10976a.f10805aC ^ this.f10976a.f10851aw;\n this.f10976a.f10871bP = this.f10976a.f10851aw ^ this.f10976a.f10871bP;\n this.f10976a.f10851aw = this.f10976a.f10854az & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10848at = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10848at = this.f10976a.f10781F & (this.f10976a.f10848at ^ -1);\n this.f10976a.f10848at = this.f10976a.f10969x | this.f10976a.f10848at;\n this.f10976a.f10902bu = this.f10976a.f10789N | this.f10976a.f10842an;\n this.f10976a.f10833ae = this.f10976a.f10789N | this.f10976a.f10822aT;\n this.f10976a.f10833ae = this.f10976a.f10877bV ^ this.f10976a.f10833ae;\n this.f10976a.f10833ae = this.f10976a.f10797V & (this.f10976a.f10833ae ^ -1);\n this.f10976a.f10833ae = this.f10976a.f10902bu ^ this.f10976a.f10833ae;\n this.f10976a.f10841am = this.f10976a.f10833ae ^ this.f10976a.f10841am;\n this.f10976a.f10842an ^= this.f10976a.f10789N;\n this.f10976a.f10842an &= this.f10976a.f10797V;\n this.f10976a.f10833ae = this.f10976a.f10789N | this.f10976a.f10822aT;\n this.f10976a.f10833ae = this.f10976a.f10822aT ^ this.f10976a.f10833ae;\n this.f10976a.f10842an = this.f10976a.f10833ae ^ this.f10976a.f10842an;\n this.f10976a.f10842an = this.f10976a.f10840al & this.f10976a.f10842an;\n this.f10976a.f10902bu = this.f10976a.f10833ae & (this.f10976a.f10797V ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10867bL ^ this.f10976a.f10902bu;\n this.f10976a.f10905bx = this.f10976a.f10902bu ^ this.f10976a.f10905bx;\n this.f10976a.f10854az &= this.f10976a.f10789N ^ -1;\n this.f10976a.f10854az = this.f10976a.f10877bV ^ this.f10976a.f10854az;\n this.f10976a.f10877bV = this.f10976a.f10797V & (this.f10976a.f10854az ^ -1);\n this.f10976a.f10877bV = this.f10976a.f10862bG ^ this.f10976a.f10877bV;\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10832ad;\n this.f10976a.f10862bG = this.f10976a.f10797V & (this.f10976a.f10862bG ^ -1);\n this.f10976a.f10862bG = this.f10976a.f10805aC ^ this.f10976a.f10862bG;\n this.f10976a.f10842an = this.f10976a.f10862bG ^ this.f10976a.f10842an;\n this.f10976a.f10862bG = this.f10976a.f10789N | this.f10976a.f10838aj;\n this.f10976a.f10805aC = this.f10976a.f10797V & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10851aw ^ this.f10976a.f10805aC;\n this.f10976a.f10805aC = this.f10976a.f10840al & (this.f10976a.f10805aC ^ -1);\n this.f10976a.f10805aC = this.f10976a.f10877bV ^ this.f10976a.f10805aC;\n this.f10976a.f10877bV = this.f10976a.f10838aj ^ this.f10976a.f10789N;\n this.f10976a.f10927ce = this.f10976a.f10877bV ^ this.f10976a.f10927ce;\n this.f10976a.f10927ce = this.f10976a.f10969x | this.f10976a.f10927ce;\n this.f10976a.f10822aT ^= this.f10976a.f10789N;\n this.f10976a.f10822aT &= this.f10976a.f10797V;\n this.f10976a.f10822aT = this.f10976a.f10833ae ^ this.f10976a.f10822aT;\n this.f10976a.f10822aT = this.f10976a.f10840al & (this.f10976a.f10822aT ^ -1);\n this.f10976a.f10822aT = this.f10976a.f10863bH ^ this.f10976a.f10822aT;\n this.f10976a.f10863bH = this.f10976a.f10868bM ^ this.f10976a.f10789N;\n this.f10976a.f10863bH = this.f10976a.f10797V & (this.f10976a.f10863bH ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10854az ^ this.f10976a.f10863bH;\n this.f10976a.f10863bH = this.f10976a.f10840al & this.f10976a.f10863bH;\n this.f10976a.f10868bM &= this.f10976a.f10789N ^ -1;\n this.f10976a.f10868bM = this.f10976a.f10781F ^ this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10797V & (this.f10976a.f10868bM ^ -1);\n this.f10976a.f10863bH = this.f10976a.f10868bM ^ this.f10976a.f10863bH;\n this.f10976a.f10868bM = this.f10976a.f10838aj & (this.f10976a.f10789N ^ -1);\n this.f10976a.f10868bM = this.f10976a.f10781F | this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10877bV ^ this.f10976a.f10868bM;\n this.f10976a.f10868bM = this.f10976a.f10969x | this.f10976a.f10868bM;\n this.f10976a.f10813aK = this.f10976a.f10814aL ^ this.f10976a.f10813aK;\n this.f10976a.f10844ap = this.f10976a.f10813aK ^ this.f10976a.f10844ap;\n this.f10976a.f10891bj = this.f10976a.f10844ap ^ this.f10976a.f10891bj;\n this.f10976a.f10844ap = this.f10976a.f10956k & this.f10976a.f10814aL;\n this.f10976a.f10844ap = this.f10976a.f10866bK ^ this.f10976a.f10844ap;\n this.f10976a.f10864bI = this.f10976a.f10844ap ^ this.f10976a.f10864bI;\n this.f10976a.f10806aD = this.f10976a.f10864bI ^ this.f10976a.f10806aD;\n this.f10976a.f10793R = this.f10976a.f10806aD ^ this.f10976a.f10793R;\n this.f10976a.f10806aD = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10864bI = this.f10976a.f10926cd ^ this.f10976a.f10864bI;\n this.f10976a.f10844ap = this.f10976a.f10899br & this.f10976a.f10864bI;\n this.f10976a.f10866bK = this.f10976a.f10890bi & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10866bK = this.f10976a.f10899br & this.f10976a.f10866bK;\n this.f10976a.f10813aK = this.f10976a.f10907bz & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10813aK = this.f10976a.f10931ci ^ this.f10976a.f10813aK;\n this.f10976a.f10813aK = this.f10976a.f10785J & (this.f10976a.f10813aK ^ -1);\n this.f10976a.f10854az = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10854az = this.f10976a.f10801Z ^ this.f10976a.f10854az;\n this.f10976a.f10854az = this.f10976a.f10899br & this.f10976a.f10854az;\n this.f10976a.f10833ae = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10833ae = this.f10976a.f10801Z ^ this.f10976a.f10833ae;\n this.f10976a.f10851aw = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10851aw = this.f10976a.f10861bF ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10899br & this.f10976a.f10851aw;\n this.f10976a.f10902bu = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10926cd ^ this.f10976a.f10902bu;\n this.f10976a.f10851aw = this.f10976a.f10902bu ^ this.f10976a.f10851aw;\n this.f10976a.f10851aw = this.f10976a.f10785J & (this.f10976a.f10851aw ^ -1);\n this.f10976a.f10902bu = this.f10976a.f10793R | this.f10976a.f10890bi;\n this.f10976a.f10867bL = this.f10976a.f10899br & (this.f10976a.f10902bu ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10907bz ^ this.f10976a.f10793R;\n this.f10976a.f10866bK = this.f10976a.f10882ba ^ this.f10976a.f10866bK;\n this.f10976a.f10882ba = this.f10976a.f10861bF & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10951f ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba |= this.f10976a.f10899br;\n this.f10976a.f10882ba = this.f10976a.f10833ae ^ this.f10976a.f10882ba;\n this.f10976a.f10865bJ = this.f10976a.f10896bo ^ this.f10976a.f10793R;\n this.f10976a.f10865bJ = this.f10976a.f10899br & this.f10976a.f10865bJ;\n this.f10976a.f10865bJ = this.f10976a.f10806aD ^ this.f10976a.f10865bJ;\n this.f10976a.f10865bJ = this.f10976a.f10785J & (this.f10976a.f10865bJ ^ -1);\n this.f10976a.f10865bJ = this.f10976a.f10882ba ^ this.f10976a.f10865bJ;\n this.f10976a.f10882ba = this.f10976a.f10793R | this.f10976a.f10896bo;\n this.f10976a.f10882ba = this.f10976a.f10899br & this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10864bI ^ this.f10976a.f10882ba;\n this.f10976a.f10813aK = this.f10976a.f10882ba ^ this.f10976a.f10813aK;\n this.f10976a.f10882ba = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10896bo ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10899br & (this.f10976a.f10882ba ^ -1);\n this.f10976a.f10907bz &= this.f10976a.f10793R ^ -1;\n this.f10976a.f10907bz = this.f10976a.f10861bF ^ this.f10976a.f10907bz;\n this.f10976a.f10861bF = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10861bF = this.f10976a.f10890bi ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF |= this.f10976a.f10899br;\n this.f10976a.f10861bF = this.f10976a.f10902bu ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10785J & this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10866bK ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF = this.f10976a.f10777B & (this.f10976a.f10861bF ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10793R | this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10890bi ^ this.f10976a.f10926cd;\n this.f10976a.f10844ap = this.f10976a.f10926cd ^ this.f10976a.f10844ap;\n this.f10976a.f10926cd = this.f10976a.f10931ci ^ this.f10976a.f10793R;\n this.f10976a.f10866bK = this.f10976a.f10899br & this.f10976a.f10926cd;\n this.f10976a.f10866bK = this.f10976a.f10833ae ^ this.f10976a.f10866bK;\n this.f10976a.f10833ae = this.f10976a.f10926cd ^ this.f10976a.f10899br;\n this.f10976a.f10851aw = this.f10976a.f10833ae ^ this.f10976a.f10851aw;\n this.f10976a.f10861bF = this.f10976a.f10851aw ^ this.f10976a.f10861bF;\n this.f10976a.f10861bF ^= this.f10976a.f10811aI;\n this.f10976a.f10926cd = this.f10976a.f10899br & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10926cd = this.f10976a.f10907bz ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10785J & this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10931ci ^ this.f10976a.f10926cd;\n this.f10976a.f10926cd = this.f10976a.f10777B & (this.f10976a.f10926cd ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10951f & (this.f10976a.f10793R ^ -1);\n this.f10976a.f10931ci = this.f10976a.f10951f ^ this.f10976a.f10931ci;\n this.f10976a.f10882ba = this.f10976a.f10931ci ^ this.f10976a.f10882ba;\n this.f10976a.f10882ba = this.f10976a.f10785J & (this.f10976a.f10882ba ^ -1);\n this.f10976a.f10882ba = this.f10976a.f10844ap ^ this.f10976a.f10882ba;\n this.f10976a.f10926cd = this.f10976a.f10882ba ^ this.f10976a.f10926cd;\n this.f10976a.f10796U = this.f10976a.f10926cd ^ this.f10976a.f10796U;\n this.f10976a.f10926cd = this.f10976a.f10793R | this.f10976a.f10801Z;\n this.f10976a.f10926cd = this.f10976a.f10890bi ^ this.f10976a.f10926cd;\n this.f10976a.f10854az = this.f10976a.f10926cd ^ this.f10976a.f10854az;\n this.f10976a.f10854az = this.f10976a.f10785J & (this.f10976a.f10854az ^ -1);\n this.f10976a.f10854az = this.f10976a.f10866bK ^ this.f10976a.f10854az;\n this.f10976a.f10854az &= this.f10976a.f10777B;\n this.f10976a.f10854az = this.f10976a.f10865bJ ^ this.f10976a.f10854az;\n this.f10976a.f10952g = this.f10976a.f10854az ^ this.f10976a.f10952g;\n this.f10976a.f10854az = this.f10976a.f10793R | this.f10976a.f10951f;\n this.f10976a.f10867bL = this.f10976a.f10854az ^ this.f10976a.f10867bL;\n this.f10976a.f10896bo &= this.f10976a.f10793R ^ -1;\n this.f10976a.f10896bo = this.f10976a.f10785J & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10867bL ^ this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10777B & this.f10976a.f10896bo;\n this.f10976a.f10896bo = this.f10976a.f10813aK ^ this.f10976a.f10896bo;\n this.f10976a.f10966u = this.f10976a.f10896bo ^ this.f10976a.f10966u;\n this.f10976a.f10814aL = this.f10976a.f10776A & this.f10976a.f10814aL;\n this.f10976a.f10814aL = this.f10976a.f10924cb ^ this.f10976a.f10814aL;\n this.f10976a.f10828aZ = this.f10976a.f10814aL ^ this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10883bb | this.f10976a.f10828aZ;\n this.f10976a.f10828aZ = this.f10976a.f10891bj ^ this.f10976a.f10828aZ;\n this.f10976a.f10795T = this.f10976a.f10828aZ ^ this.f10976a.f10795T;\n this.f10976a.f10828aZ = this.f10976a.f10795T | this.f10976a.f10779D;\n this.f10976a.f10891bj = this.f10976a.f10830ab | this.f10976a.f10828aZ;\n this.f10976a.f10891bj = this.f10976a.f10779D ^ this.f10976a.f10891bj;\n this.f10976a.f10814aL = this.f10976a.f10830ab | this.f10976a.f10795T;\n this.f10976a.f10814aL = this.f10976a.f10795T ^ this.f10976a.f10814aL;\n this.f10976a.f10924cb = this.f10976a.f10795T & (this.f10976a.f10830ab ^ -1);\n }",
"SEIntegerVariable getOperand2();",
"public String visit(BinOp n, Object argu)\r\n\t {\r\n switch(n.f0.f0.which)\r\n\t {\r\n\t case 0:return \"slt\";\r\n\t case 1:return \"add\";\r\n\t case 2:return \"sub\";\r\n\t case 3:return \"mul\";\r\n\t default:break;\r\n\t }\r\n return null;\r\n\t }",
"private void createMulAcc(Code32 code, int op, int cond, int Rd, int Ra, int Rn, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 16) | (Ra << 12) | (Rm << 8) | (0x9 << 4) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }",
"public int b(String paramString, int paramInt)\r\n/* 588: */ {\r\n/* 589:589 */ return this.a * c(paramString, paramInt).size();\r\n/* 590: */ }",
"private ASTNode binaryMultiplyRules(ASTNode left, ASTNode right) throws Exception {\n Token leftToken = left.getToken();\n Token rightToken = right.getToken();\n\n TokenType leftType = leftToken.getType();\n TokenType rightType = rightToken.getType();\n\n Token tempToken;\n TokenType numType = TokenType.NUMBER;\n TokenType minusType = TokenType.MINUS;\n TokenType mulType = TokenType.MUL;\n\n if (rightToken.getIdentifier().equals(\"0\")){\n //left is anything and right is 0\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (rightToken.getIdentifier().equals(\"1\")){\n //left is anything and right is 1\n return left;\n }\n else if (leftToken.getIdentifier().equals(\"0\")){\n //left is 0 and right is anything\n tempToken = new Token(numType, \"0\");\n return new Num(tempToken);\n }\n else if (leftToken.getIdentifier().equals(\"1\")){\n //left is 1 and right is anything\n return right;\n }\n else if(patternMatcher(leftType, rightType, numType, numType)){\n Double leftVal = Double.parseDouble(leftToken.getIdentifier());\n Double rightVal = Double.parseDouble(rightToken.getIdentifier());\n\n String prod = String.valueOf(leftVal * rightVal);\n tempToken = new Token(numType, prod);\n return new Num(tempToken);\n }\n else if (patternMatcher(leftType, rightType, minusType, minusType)){\n if (left instanceof UnaryOP && right instanceof UnaryOP){\n tempToken = new Token(mulType);\n ASTNode leftOP = ((UnaryOP) left).getOperand();\n ASTNode rightOp = ((UnaryOP) right).getOperand();\n return new BinaryOp(tempToken, leftOP, rightOp);\n }\n }\n tempToken = new Token(mulType);\n return new BinaryOp(tempToken ,left, right);\n }",
"public static int c(byte[] paramArrayOfbyte, int paramInt1, int paramInt2) {\n/* 46 */ if (0 > paramInt2 - paramInt1 - 4)\n/* */ {\n/* */ \n/* 49 */ return 0;\n/* */ }\n/* 51 */ return paramArrayOfbyte[paramInt1] << 24 | (paramArrayOfbyte[paramInt1 + 1] & 0xFF) << 16 | (paramArrayOfbyte[paramInt1 + 2] & 0xFF) << 8 | paramArrayOfbyte[paramInt1 + 3] & 0xFF;\n/* */ }",
"public interface OpCPUDataInterface{\n /* Returns an array of 2 longs. The first memeber identifies what type of instruction the second long is. */\n public long [] getData(Long index);\n}",
"private static int executeInstruction(int instruction, int arg0, int arg1, int arg2, int[] memory){\n\t\t\n\t\tswitch(instruction){\n\t\t\tcase mov:\n\t\t\t\tmemory[arg0] = memory[arg1];\n\t\t\t\tbreak;\n\t\t\tcase movv:\n\t\t\t\tmemory[arg0] = arg1;\n\t\t\t\tbreak;\n\t\t\tcase jmp:\n\t\t\t\treturn arg0;\n\t\t\t\t//break;\n\t\t\tcase jif:\n\t\t\t\tif(memory[arg0] != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase jifv:\n\t\t\t\tif(arg0 != 0){\n\t\t\t\t\treturn 2;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase add:\n\t\t\t\tmemory[arg0] = memory[arg1] + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase sub:\n\t\t\t\tmemory[arg0] = memory[arg1] - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mlt:\n\t\t\t\tmemory[arg0] = memory[arg1] * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase div:\n\t\t\t\tmemory[arg0] = memory[arg1] / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mod:\n\t\t\t\tmemory[arg0] = memory[arg1] % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addvl:\n\t\t\t\tmemory[arg0] = arg1 + memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase subvl:\n\t\t\t\tmemory[arg0] = arg1 - memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase mltvl:\n\t\t\t\tmemory[arg0] = arg1 * memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase divvl:\n\t\t\t\tmemory[arg0] = arg1 / memory[arg2];\n\t\t\t\tbreak;\n\t\t\tcase modvl:\n\t\t\t\tmemory[arg0] = arg1 % memory[arg2];\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase addlv:\n\t\t\t\tmemory[arg0] = memory[arg1] + arg2;\n\t\t\t\tbreak;\n\t\t\tcase sublv:\n\t\t\t\tmemory[arg0] = memory[arg1] - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltlv:\n\t\t\t\tmemory[arg0] = memory[arg1] * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divlv:\n\t\t\t\tmemory[arg0] = memory[arg1] / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modlv:\n\t\t\t\tmemory[arg0] = memory[arg1] % arg2;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase addvv:\n\t\t\t\tmemory[arg0] = arg1 + arg2;\n\t\t\t\tbreak;\n\t\t\tcase subvv:\n\t\t\t\tmemory[arg0] = arg1 - arg2;\n\t\t\t\tbreak;\n\t\t\tcase mltvv:\n\t\t\t\tmemory[arg0] = arg1 * arg2;\n\t\t\t\tbreak;\n\t\t\tcase divvv:\n\t\t\t\tmemory[arg0] = arg1 / arg2;\n\t\t\t\tbreak;\n\t\t\tcase modvv:\n\t\t\t\tmemory[arg0] = arg1 % arg2;\n\t\t\t\tbreak;\n\t\t\t///////////////////////////////\n\t\t\tcase l:\n\t\t\t\tmemory[arg0] = memory[arg1] < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase g:\n\t\t\t\tmemory[arg0] = memory[arg1] > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase le:\n\t\t\t\tmemory[arg0] = memory[arg1] <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ge:\n\t\t\t\tmemory[arg0] = memory[arg1] >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase e:\n\t\t\t\tmemory[arg0] = memory[arg1] == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase ne:\n\t\t\t\tmemory[arg0] = memory[arg1] != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvl:\n\t\t\t\tmemory[arg0] = arg1 < memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvl:\n\t\t\t\tmemory[arg0] = arg1 > memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levl:\n\t\t\t\tmemory[arg0] = arg1 <= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevl:\n\t\t\t\tmemory[arg0] = arg1 >= memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evl:\n\t\t\t\tmemory[arg0] = arg1 == memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevl:\n\t\t\t\tmemory[arg0] = arg1 != memory[arg2] ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase llv:\n\t\t\t\tmemory[arg0] = memory[arg1] < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase glv:\n\t\t\t\tmemory[arg0] = memory[arg1] > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase lelv:\n\t\t\t\tmemory[arg0] = memory[arg1] <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gelv:\n\t\t\t\tmemory[arg0] = memory[arg1] >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase elv:\n\t\t\t\tmemory[arg0] = memory[arg1] == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nelv:\n\t\t\t\tmemory[arg0] = memory[arg1] != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase lvv:\n\t\t\t\tmemory[arg0] = arg1 < arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gvv:\n\t\t\t\tmemory[arg0] = arg1 > arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase levv:\n\t\t\t\tmemory[arg0] = arg1 <= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase gevv:\n\t\t\t\tmemory[arg0] = arg1 >= arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase evv:\n\t\t\t\tmemory[arg0] = arg1 == arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase nevv:\n\t\t\t\tmemory[arg0] = arg1 != arg2 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orll:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 && memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvl:\n\t\t\t\tmemory[arg0] = arg1 != 0 || memory[arg2] != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orlv:\n\t\t\t\tmemory[arg0] = memory[arg1] != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase andvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 && arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase orvv:\n\t\t\t\tmemory[arg0] = arg1 != 0 || arg2 != 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase notl:\n\t\t\t\tmemory[arg0] = memory[arg1] == 0 ? 1 : 0;\n\t\t\t\tbreak;\n\t\t\tcase notv:\n\t\t\t\tmemory[arg0] = arg1 == 0 ? 1 : 0;\n\t\t\t\n\t\t\tcase nop:\n\t\t\t\t//do nothing\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t}\n\t\t//jump ahead one instruction\n\t\treturn 1;\n\t}",
"public Complex Plus (Complex z) {\nreturn new Complex(u+z.u,v+z.v);\n\n}",
"public void applyOperators(FockState passedRow, int[] momenta, int opTypes) {\n \n _rightMostP = 0;\n _operatorFactors = 1.0; \n for(int i=0; i<(_phiPow-1); i++) {\n \t\n \t// Run through the operators from left to right\n \n if(((opTypes & (1 << i)) != 0)) {\n \t\n \t// This bit is a 1, apply an annihilation operator to the relevant momentum mode\n \t// and update the running operator factor and rightmost operator momentum.\n \t// If this operation invalidates the state set the factor to zero.\n \n if(passedRow.getCoeff(momenta[i]) > 0) {\n \t\t_operatorFactors = (_operatorFactors * Math.sqrt(passedRow.getCoeff(momenta[i])));\n \t\t_operatorFactors = (_operatorFactors * Math.sqrt(2.0*FockState.calcFrequency(momenta[i], _systemSize, _epsilon, _mass)*_systemSize*_epsilon)); \n \t}\n else {\n \t_operatorFactors = 0.0;\n } \n passedRow.applyAnnihil(momenta[i]);\n \n // The rightmost momentum is set by the momentum just used\n \n if((momenta[i]%2) == 0) {\n \t_rightMostP = _rightMostP - (int)Math.floor((momenta[i]+1)/2); \t\n }\n else { \t\n \t_rightMostP = _rightMostP + (int)Math.floor((momenta[i]+1)/2); \t\n } \n }\n else {\n \t\n \t// This bit is a 0, apply a creation operator to the relevant momentum mode\n \t// and update the running operator factor and rightmost operator momentum.\n \n \t_operatorFactors = (_operatorFactors * Math.sqrt(passedRow.getCoeff(momenta[i]) + 1.0));\n \t_operatorFactors = (_operatorFactors * Math.sqrt(2.0*FockState.calcFrequency(momenta[i], _systemSize, _epsilon, _mass)*_systemSize*_epsilon)); \n passedRow.applyCreation(momenta[i]);\n \n // The rightmost momentum is set by the momentum just used\n \n if((momenta[i]%2) == 0) { \t\n \t_rightMostP = _rightMostP + (int)Math.floor((momenta[i]+1)/2); \t\n }\n else { \t\n \t_rightMostP = _rightMostP - (int)Math.floor((momenta[i]+1)/2); \t\n } \n } \n }\n \n // Put the rightmost momentum in the required range before using it\n \n if(((opTypes & (1 << (_phiPow-1))) != 0)) {\n \t\n \t// This bit is a 1, apply an annihilation operator to the rightmost operator momentum mode.\n \t// Complete the operator factor for this set of operators.\n \t// If this operation invalidates the state set the factor to zero.\n \t\n \twhile(_rightMostP >= (_systemSize/2)) { \t\t\t\n \t\t\t_rightMostP = (_rightMostP - _systemSize); \t\t\t\t\n \t\t} \t\t\n \t\twhile(_rightMostP < (-_systemSize/2)) { \t\t\t\t\n \t\t\t_rightMostP = (_rightMostP + _systemSize); \t\t\t\t\n \t\t}\t\t\t\n\t\t\tif(_rightMostP >= 0) {\t\t\t\t\n\t\t\t\t_rightMostP = (_rightMostP * 2);\t\t\t\t\n\t\t\t}\n\t\t\telse {\t\t\t\t\n\t\t\t\t_rightMostP = ((2*(-_rightMostP)) - 1);\t\t\t\t\n\t\t\t}\t\t\t\n \tif(passedRow.getCoeff(_rightMostP) > 0) { \t \n \t\t_operatorFactors = (_operatorFactors * Math.sqrt(passedRow.getCoeff(_rightMostP)));\n \t\t_operatorFactors = (_operatorFactors * Math.sqrt(2.0*FockState.calcFrequency(_rightMostP, _systemSize, _epsilon, _mass)*_systemSize*_epsilon)); \t\t\n \t}\n \telse {\n \t\t_operatorFactors = 0.0;\n \t} \t\n \tpassedRow.applyAnnihil(_rightMostP); \n }\n else {\n \t\n \t// This bit is a 0, apply a creation operator to the rightmost operator momentum mode.\n \t// Complete the operator factor for this set of operators.\n \t\n \t_rightMostP = (_rightMostP * -1); \t\n \twhile(_rightMostP >= (_systemSize/2)) { \t\t\t\n \t\t\t_rightMostP = (_rightMostP - _systemSize); \t\t\t\t\n \t\t} \t\t\n \t\twhile(_rightMostP < (-_systemSize/2)) { \t\t\t\t\n \t\t\t_rightMostP = (_rightMostP + _systemSize); \t\t\t\t\n \t\t} \t\n \tif(_rightMostP >= 0) {\t\t\t\t\n\t\t\t\t_rightMostP = (_rightMostP * 2);\t\t\t\t\n\t\t\t}\n\t\t\telse {\t\t\t\t\n\t\t\t\t_rightMostP = ((2*(-_rightMostP)) - 1);\t\t\t\t\n\t\t\t} \t\n \t_operatorFactors = (_operatorFactors * Math.sqrt(passedRow.getCoeff(_rightMostP) + 1.0));\n \t_operatorFactors = (_operatorFactors * Math.sqrt(2.0*FockState.calcFrequency(_rightMostP, _systemSize, _epsilon, _mass)*_systemSize*_epsilon)); \t\n passedRow.applyCreation(_rightMostP); \n }\n \n }",
"public interface InstructionCodes {\n\n int NOP = 0;\n int ICONST = 2;\n int FCONST = 3;\n int SCONST = 4;\n int ICONST_0 = 5;\n int ICONST_1 = 6;\n int ICONST_2 = 7;\n int ICONST_3 = 8;\n int ICONST_4 = 9;\n int ICONST_5 = 10;\n int FCONST_0 = 11;\n int FCONST_1 = 12;\n int FCONST_2 = 13;\n int FCONST_3 = 14;\n int FCONST_4 = 15;\n int FCONST_5 = 16;\n int BCONST_0 = 17;\n int BCONST_1 = 18;\n int RCONST_NULL = 19;\n int BICONST = 20;\n int DCONST = 21;\n\n int IMOVE = 22;\n int FMOVE = 23;\n int SMOVE = 24;\n int BMOVE = 25;\n int RMOVE = 26;\n int BIALOAD = 27;\n int IALOAD = 28;\n int FALOAD = 29;\n int SALOAD = 30;\n int BALOAD = 31;\n int RALOAD = 32;\n int JSONALOAD = 33;\n\n int IGLOAD = 34;\n int FGLOAD = 35;\n int SGLOAD = 36;\n int BGLOAD = 37;\n int RGLOAD = 38;\n\n int CHNRECEIVE = 39;\n int CHNSEND = 40;\n\n int MAPLOAD = 41;\n int JSONLOAD = 42;\n\n int COMPENSATE = 43;\n\n int BIASTORE = 44;\n int IASTORE = 45;\n int FASTORE = 46;\n int SASTORE = 47;\n int BASTORE = 48;\n int RASTORE = 49;\n int JSONASTORE = 50;\n\n int BIAND = 51;\n int IAND = 52;\n int BIOR = 53;\n int IOR = 54;\n\n int IGSTORE = 55;\n int FGSTORE = 56;\n int SGSTORE = 57;\n int BGSTORE = 58;\n int RGSTORE = 59;\n\n int IS_LIKE = 60;\n\n int STAMP = 62;\n\n int FREEZE = 63;\n int IS_FROZEN = 64;\n\n int ERROR = 65;\n int PANIC = 66;\n int REASON = 67;\n int DETAIL = 68;\n\n int MAPSTORE = 69;\n int JSONSTORE = 70;\n\n int IADD = 71;\n int FADD = 72;\n int SADD = 73;\n int DADD = 74;\n\n int SCOPE_END = 75;\n int LOOP_COMPENSATE = 76;\n\n int XMLADD = 77;\n int ISUB = 78;\n int FSUB = 79;\n int DSUB = 80;\n int IMUL = 81;\n int FMUL = 82;\n int DMUL = 83;\n int IDIV = 84;\n int FDIV = 85;\n int DDIV = 86;\n int IMOD = 87;\n int FMOD = 88;\n int DMOD = 89;\n int INEG = 90;\n int FNEG = 91;\n int DNEG = 92;\n int BNOT = 93;\n\n int IEQ = 94;\n int FEQ = 95;\n int SEQ = 96;\n int BEQ = 97;\n int DEQ = 98;\n int REQ = 99;\n int REF_EQ = 100;\n\n int INE = 101;\n int FNE = 102;\n int SNE = 103;\n int BNE = 104;\n int DNE = 105;\n int RNE = 106;\n int REF_NEQ = 107;\n\n int IGT = 108;\n int FGT = 109;\n int DGT = 110;\n\n int IGE = 111;\n int FGE = 112;\n int DGE = 113;\n\n int ILT = 114;\n int FLT = 115;\n int DLT = 116;\n\n int ILE = 117;\n int FLE = 118;\n int DLE = 119;\n\n int REQ_NULL = 120;\n int RNE_NULL = 121;\n\n int BR_TRUE = 122;\n int BR_FALSE = 123;\n\n int GOTO = 124;\n int HALT = 125;\n int TR_RETRY = 126;\n int CALL = 127;\n int VCALL = 128;\n int FPCALL = 129;\n int FPLOAD = 130;\n int VFPLOAD = 131;\n\n // Type Conversion related instructions\n int I2F = 132;\n int I2S = 133;\n int I2B = 134;\n int I2D = 135;\n int F2I = 136;\n int F2S = 137;\n int F2B = 138;\n int F2D = 139;\n int S2I = 140;\n int S2F = 141;\n int S2B = 142;\n int S2D = 143;\n int B2I = 144;\n int B2F = 145;\n int B2S = 146;\n int B2D = 147;\n int D2I = 148;\n int D2F = 149;\n int D2S = 150;\n int D2B = 151;\n int DT2JSON = 152;\n int DT2XML = 153;\n int T2MAP = 154;\n int T2JSON = 155;\n int MAP2T = 156;\n int JSON2T = 157;\n int XML2S = 158;\n\n int BILSHIFT = 159;\n int BIRSHIFT = 160;\n int ILSHIFT = 161;\n int IRSHIFT = 162;\n\n // Type cast\n int I2ANY = 163;\n int F2ANY = 164;\n int S2ANY = 165;\n int B2ANY = 166;\n\n int TYPE_ASSERTION = 167;\n\n int ANY2I = 168;\n int ANY2F = 169;\n int ANY2S = 170;\n int ANY2B = 171;\n int ANY2D = 172;\n int ANY2JSON = 173;\n int ANY2XML = 174;\n int ANY2MAP = 175;\n int ANY2STM = 176;\n int ANY2DT = 177;\n int ANY2SCONV = 178;\n int ANY2BI = 179;\n int BI2ANY = 180;\n int ANY2E = 181;\n int ANY2T = 182;\n int ANY2C = 183;\n int CHECKCAST = 184;\n\n int ANY2TYPE = 185;\n\n int LOCK = 186;\n int UNLOCK = 187;\n\n // Transactions\n int TR_BEGIN = 188;\n int TR_END = 189;\n\n int WRKSEND = 190;\n int WRKRECEIVE = 191;\n\n int WORKERSYNCSEND = 192;\n int WAIT = 193;\n\n int MAP2JSON = 194;\n int JSON2MAP = 195;\n\n int IS_ASSIGNABLE = 196;\n int O2JSON = 197;\n\n int ARRAY2JSON = 198;\n int JSON2ARRAY = 199;\n\n int BINEWARRAY = 200;\n int INEWARRAY = 201;\n int FNEWARRAY = 202;\n int SNEWARRAY = 203;\n int BNEWARRAY = 204;\n int RNEWARRAY = 205;\n\n int CLONE = 206;\n\n int FLUSH = 207;\n\n int LENGTHOF = 208;\n int WAITALL = 209;\n\n int NEWSTRUCT = 210;\n int NEWMAP = 212;\n int NEWTABLE = 215;\n int NEWSTREAM = 217;\n \n int CONVERT = 218;\n\n int ITR_NEW = 219;\n int ITR_NEXT = 221;\n int INT_RANGE = 222;\n\n int I2BI = 223;\n int BI2I = 224;\n int BIXOR = 225;\n int IXOR = 226;\n int BACONST = 227;\n int IURSHIFT = 228;\n\n int IRET = 229;\n int FRET = 230;\n int SRET = 231;\n int BRET = 232;\n int DRET = 233;\n int RRET = 234;\n int RET = 235;\n\n int XML2XMLATTRS = 236;\n int XMLATTRS2MAP = 237;\n int XMLATTRLOAD = 238;\n int XMLATTRSTORE = 239;\n int S2QNAME = 240;\n int NEWQNAME = 241;\n int NEWXMLELEMENT = 242;\n int NEWXMLCOMMENT = 243;\n int NEWXMLTEXT = 244;\n int NEWXMLPI = 245;\n int XMLSEQSTORE = 246;\n int XMLSEQLOAD = 247;\n int XMLLOAD = 248;\n int XMLLOADALL = 249;\n int NEWXMLSEQ = 250;\n\n int TYPE_TEST = 251;\n int TYPELOAD = 252;\n\n int TEQ = 253;\n int TNE = 254;\n\n int INSTRUCTION_CODE_COUNT = 255;\n}",
"public interface Operation{\r\n\tpublic void operate(Integer[] a);\r\n\tpublic String getOperationName();\r\n}",
"@Test\n public void test15() throws Throwable {\n Complex complex0 = new Complex(0.0, 0.0);\n Complex complex1 = complex0.negate();\n Complex complex2 = complex0.cosh();\n Complex complex3 = complex0.acos();\n double double0 = complex0.getArgument();\n Complex complex4 = complex1.cosh();\n }",
"@Override\n\tpublic float somar(float op1, float op2) {\n\t\treturn op1 + op2;\n\t}",
"static void main(String[] args) {\n int[] instructions = {0x0000,0x01FF,0xF025,0xFFFF};\n for (int i:instructions) {\n //holds the instruction\n int instr;\n //holds the first three bits after the opcode\n int f3Bits;\n //holsd the second three bits after the opcode\n int s3Bits;\n \n // String to hold the code disassembled into a string\n String instruction=\"\";\n\n //makes the instruction only the last 16 bits instead of int natural 32\n i = i&0x0000FFFF; \n\n //separates just the Opcode\n instr = 0xf000 &i;\n \n //Test for each instruction and adds the Call of that instruction to the\n //string\n if(i==0x0000){\n \tinstruction = \"NOP\";\n }\n else if(instr ==0x1000){\n instruction = \"ADD \";\n }\n else if(instr==0x5000){\n \tinstruction = \"AND \";\n }\n else if(instr==0x0000){\n \tinstruction = \"BR \";\n \t//Test for each part of the NZP\n int n = i & 0x0800;\n \tint z = i & 0x0400;\n \tint p = i & 0x0200;\n if(n == 0x0800)\n \tinstruction += \"n\";\n if(z == 0x0400)\n \tinstruction += \"z\";\n if(p == 0x0200)\n \tinstruction += \"p\";\n //Adds the offset to the string\n int offset9 = i & 0x01FF;\n instruction += \" \" + offset9;\n }\n else if(instr==0xC000){\n \tinstruction = \"JMP \";\n \tinstruction += \"R\"+(i&0x01C0);\n }\n else if(instr==0x4000){\n \tinstruction += \"JSR\";\n \tif((i&0x0800) == 0x0800) {\n \t\tinstruction += \" \"+(i&0x07FF);\n \t}\n \telse {\n \t\tinstruction += \"R R\"+(i&0x01C0);\n \t}\n }\n else if(instr==0x2000){\n \tinstruction = \"LD \";\n }\n else if(instr==0xA000){\n instruction = \"LDI \";\n }\n else if(instr==0x6000){\n \tinstruction = \"LDR \";\n }\n else if(instr==0xE000){\n \tinstruction = \"LEA \";\n }\n else if(instr==0x9000){\n \tinstruction = \"NOT \";\n }\n else if(instr==0x3000){\n \tinstruction =\"ST \";\n }\n else if(instr==0xB000){\n \tinstruction = \"STI \";\n }\n else if(instr==0x7000){\n \tinstruction = \"STR \";\n }\n else if(i==0xF025){\n \tinstruction = \"HALT\";\n }\n else {\n \tinstruction = \"ERROR\";\n }\n\n //Grabs the first Register either SR or DR if it is not \n // NOP RET JSR JSRR\n if(instr !=0x0000 || instr != 0xC000 || instr != 0x4000) {\n f3Bits = i & 0x0E00;\n f3Bits= f3Bits >> 9;\n\n // Does the first two Registers for ADD AND LDR STR and NOT\n if(instr==0x1000 || instr==0x5000 || instr==0x6000 || instr==0x9000 || instr==0x7000){\n instruction = instruction + \"R\"+f3Bits+\" \";\n s3Bits = i & 0x01C0;\n s3Bits = s3Bits >> 6;\n instruction = instruction + \"R\"+s3Bits+\" \";\n }\n // Does teh First register and the Offset for LD, LDI, RET, ST, STI\n else if(instr==0x2000 || instr==0xA000 || instr==0xC000 || instr==0x3000 || instr=0xB000){\n instruction = instruction +\"R\"+f3Bits+\" \";\n System.out.printf(\"%x\",i);\n int offset9 = i & 0x01FF;\n instruction = instruction + offset9;\n }\n // DOes the logic for IMM5 or the 3rd REG for ADD and AND\n if(instr==0x1000 || instr==0x5000) {\n int bit4 = i & 0x0020;\n if(bit4 == 0x0020){\n int imm5 = i & 0x001F;\n instruction = instruction + imm5;\n }\n else {\n \t instr = i &0x0007;\n \t instruction = instruction + \"R\" + instr;\n }\n }\n //Computes the Offset for LDR and STR\n else if(instr==0x6000 || instr == 0x7000) {\n int offset6 = i & 0x003F;\n instruction = instruction + offset6;\n }\n }\n System.out.println(instruction);\n }\n }",
"private void Incr16BitPC() { PCw += 2; }",
"public final int mo4669op(int i, Object... objArr) {\n AppMethodBeat.m2504i(56784);\n int ix;\n if (i == 0) {\n C6093a c6093a = (C6093a) objArr[0];\n if (this.BaseRequest != null) {\n c6093a.mo13479iy(1, this.BaseRequest.computeSize());\n this.BaseRequest.writeFields(c6093a);\n }\n if (this.lvz != null) {\n c6093a.mo13475e(2, this.lvz);\n }\n if (this.dud != null) {\n c6093a.mo13475e(3, this.dud);\n }\n if (this.duc != null) {\n c6093a.mo13475e(4, this.duc);\n }\n if (this.wfd != null) {\n c6093a.mo13475e(5, this.wfd);\n }\n if (this.wfe != null) {\n c6093a.mo13475e(6, this.wfe);\n }\n c6093a.mo13472ai(7, this.wff);\n c6093a.mo13476f(8, this.wfg);\n c6093a.mo13476f(9, this.wfh);\n AppMethodBeat.m2505o(56784);\n return 0;\n } else if (i == 1) {\n if (this.BaseRequest != null) {\n ix = C6087a.m9557ix(1, this.BaseRequest.computeSize()) + 0;\n } else {\n ix = 0;\n }\n if (this.lvz != null) {\n ix += C6091a.m9575f(2, this.lvz);\n }\n if (this.dud != null) {\n ix += C6091a.m9575f(3, this.dud);\n }\n if (this.duc != null) {\n ix += C6091a.m9575f(4, this.duc);\n }\n if (this.wfd != null) {\n ix += C6091a.m9575f(5, this.wfd);\n }\n if (this.wfe != null) {\n ix += C6091a.m9575f(6, this.wfe);\n }\n int o = ((ix + C6091a.m9578o(7, this.wff)) + (C6091a.m9576fv(8) + 8)) + (C6091a.m9576fv(9) + 8);\n AppMethodBeat.m2505o(56784);\n return o;\n } else if (i == 2) {\n C6086a c6086a = new C6086a((byte[]) objArr[0], unknownTagHandler);\n for (ix = C1331a.getNextFieldNumber(c6086a); ix > 0; ix = C1331a.getNextFieldNumber(c6086a)) {\n if (!super.populateBuilderWithField(c6086a, this, ix)) {\n c6086a.ems();\n }\n }\n AppMethodBeat.m2505o(56784);\n return 0;\n } else if (i == 3) {\n C6086a c6086a2 = (C6086a) objArr[0];\n C23470zx c23470zx = (C23470zx) objArr[1];\n int intValue = ((Integer) objArr[2]).intValue();\n switch (intValue) {\n case 1:\n LinkedList Vh = c6086a2.mo13445Vh(intValue);\n int size = Vh.size();\n for (intValue = 0; intValue < size; intValue++) {\n byte[] bArr = (byte[]) Vh.get(intValue);\n C7267hl c7267hl = new C7267hl();\n C6086a c6086a3 = new C6086a(bArr, unknownTagHandler);\n for (boolean z = true; z; z = c7267hl.populateBuilderWithField(c6086a3, c7267hl, C1331a.getNextFieldNumber(c6086a3))) {\n }\n c23470zx.BaseRequest = c7267hl;\n }\n AppMethodBeat.m2505o(56784);\n return 0;\n case 2:\n c23470zx.lvz = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 3:\n c23470zx.dud = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 4:\n c23470zx.duc = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 5:\n c23470zx.wfd = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 6:\n c23470zx.wfe = c6086a2.BTU.readString();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 7:\n c23470zx.wff = c6086a2.BTU.mo13459ve();\n AppMethodBeat.m2505o(56784);\n return 0;\n case 8:\n c23470zx.wfg = Double.longBitsToDouble(c6086a2.BTU.eib());\n AppMethodBeat.m2505o(56784);\n return 0;\n case 9:\n c23470zx.wfh = Double.longBitsToDouble(c6086a2.BTU.eib());\n AppMethodBeat.m2505o(56784);\n return 0;\n default:\n AppMethodBeat.m2505o(56784);\n return -1;\n }\n } else {\n AppMethodBeat.m2505o(56784);\n return -1;\n }\n }",
"private void sub() {\n // PROGRAM 1: Student must complete this method\n // This method must use the addBit method for bitwise subtraction.\n //invert bits of inputB\n for (int i = 0; i < inputB.length; i++) {\n if (!inputB[i]) {\n inputB[i] = true; //set each 0 bit to 1\n } else {\n inputB[i] = false; //set each 1 bit to 0\n }\n }\n adder = addBit(inputA[0], inputB[0], true); //place first iteration of addBit with a carry-in bit into adder.\n output[0] = adder[0]; //place first sum into output[0]\n //loop thru output starting at index 1 since we already computed\n for (int i = 1; i < output.length; i++) {\n cin = adder[1]; // set cin equal to carryout\n adder = addBit(inputA[i], inputB[i], cin); //call addBit with index i of inputA and inputB and cin\n output[i] = adder[0]; //place sum into output[i]\n }\n }",
"public void mul(Complex c){\n\t\tdouble tempRe = re*c.getRe() - im*c.getIm();\n\t\tim = im*c.getRe() + re*c.getIm();\n\t\tre = tempRe;\n\t}",
"private int[] productExceptSelfByMathAndConstantSpace(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n // prefix\n ret[0] = 1;\n for(int i = 1; i < len; i++){\n ret[i] = ret[i - 1] * nums[i - 1];\n }\n\n // right to keep the suffix product of i, and ret[i](product) = ret[i](prefix) * right(suffix); and then update right.\n int right = 1; // keep right value of ret[i]\n for(int i = len - 1; i >= 0; i--){\n ret[i] = right * ret[i]; // prefix prdocut of i(ret[i] for current i) * suffix product of i(right, actaully is 'i + 1' for current i)\n right = right * nums[i]; // suffix product of i(actually suffix product of \"i+1\" when right is used.)\n }\n\n return ret;\n }",
"public void multiply() {\n\t\t\n\t}",
"public int executeOperation(){\n\t\tswitch (operation){\n\t\tcase 1: \n\t\t\treturn var1 + var2;\n\t\tcase 2: \n\t\t\treturn var1 - var2;\n\t\tcase 3: \n\t\t\treturn var1 * var2;\n\t\tcase 4: \n\t\t\treturn var1 / var2;\n\t\t default:\n\t\t\treturn 0;\n\t\t\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tint x = Integer.parseInt(args[0]), y = Integer.parseInt(args[1]);\n\t\tint z1 = x & y ; // and \n\t\tint z2 = x | y ; // or \n\t\tint z3 = x ^ y ; // xor \n\t\tint z4 = ~x ; // not \n\t\tSystem.out.print(\"x = \" + Integer.toBinaryString(x)\n\t\t\t\t+ \"\\ny = \" + Integer.toBinaryString(y)\n\t\t\t\t+ \"\\nz = x & y: \" + z1\n\t\t\t\t+ \"\\nz = x | y: \" + z2\n\t\t\t\t+ \"\\nz = x ^ y: \" + z3\n\t\t\t\t+ \"\\nz = ~x: \" + z4);\n\n\t}",
"private void m5277c(C1070b op) {\n m5283g(op);\n }",
"public void mo9256h(int i, int i2) {\n }",
"public static void main(String[] args) {\n\r\n\t\tOperate op=SimpleFactory.getOperate(\"*\");\r\n\t\t\r\n\t\top.number1=1;\r\n\t\top.number2=3;\r\n\t\tSystem.out.println(op.getResult());\r\n\t}",
"private void createFPdataConv(Code32 code, int opCode, int cond, int Vd, int Vm, int opc, int op, boolean single) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | opCode;\r\n\t\tif ((opc & 4) != 0) {\t// to integer\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | (Vm&0xf) | ((Vm>>4) << 5);\r\n\t\t} else {\t// to floating point\r\n\t\t\tif (single) code.instructions[code.iCount] |= (((Vd>>1)&0xf) << 12) | ((Vd&1) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t\telse code.instructions[code.iCount] |= (1 << 8) | ((Vd&0xf) << 12) | ((Vd>>4) << 22) | (opc << 16) | (op << 7) | ((Vm>>1)&0xf) | ((Vm&1) << 5);\r\n\t\t}\r\n\t\tcode.incInstructionNum();\r\n\t}",
"@Test\n public void test02() throws Throwable {\n Complex complex0 = new Complex(77.38859, 77.38859);\n Complex complex1 = complex0.negate();\n Complex complex2 = complex1.sqrt();\n Complex complex3 = complex0.sqrt1z();\n double double0 = complex1.getReal();\n Complex complex4 = complex0.tan();\n Complex complex5 = complex2.negate();\n }",
"void mo8280a(int i, int i2, C1207m c1207m);",
"@Override\n\tprotected void executeAux(CPU cpu) throws InstructionExecutionException {\n\t\t if(cpu.getNumElem() > 0){\n\t\t\t cpu.push(-cpu.pop());\n\t\t }\n\t\t else \t\n\t\t\t\tthrow new InstructionExecutionException\n\t\t\t\t\t(\"Error ejecutando \" + this.toString() + \": faltan operandos en la pila (hay \" + cpu.getNumElem() + \")\");\n\t\t\t\n\t}",
"@Test\n public void test09() throws Throwable {\n Complex complex0 = new Complex(0.0, (-1.5707963267948966));\n Complex complex1 = new Complex((-1.5707963267948966), 0.0);\n Complex complex2 = complex0.subtract(complex1);\n Complex complex3 = complex1.sinh();\n Complex complex4 = complex2.cosh();\n Complex complex5 = complex4.divide(complex0);\n int int0 = complex1.hashCode();\n Complex complex6 = complex4.exp();\n int int1 = complex4.hashCode();\n Complex complex7 = complex4.sqrt();\n double double0 = complex4.abs();\n Complex complex8 = complex1.acos();\n Complex complex9 = complex6.sin();\n int int2 = complex4.hashCode();\n boolean boolean0 = complex1.isNaN();\n double double1 = complex0.getReal();\n Complex complex10 = complex6.log();\n Complex complex11 = complex0.pow(complex4);\n Complex complex12 = complex2.multiply(complex10);\n Complex complex13 = complex6.sqrt1z();\n Complex complex14 = complex8.log();\n }",
"@LargeTest\n public void testIntrinsicsConvolve3x3() {\n TestAction ta = new TestAction(TestName.INTRINSICS_CONVOLVE_3X3);\n runTest(ta, TestName.INTRINSICS_CONVOLVE_3X3.name());\n }",
"public abstract void zzc(B b, int i, int i2);",
"public ComplementOp() {\r\n\t\tsuper();\r\n\t}",
"private int b(String paramString, float paramFloat1, float paramFloat2, int paramInt, boolean paramBoolean)\r\n/* 426: */ {\r\n/* 427:421 */ if (paramString == null) {\r\n/* 428:422 */ return 0;\r\n/* 429: */ }\r\n/* 430:424 */ if (this.l) {\r\n/* 431:425 */ paramString = c(paramString);\r\n/* 432: */ }\r\n/* 433:428 */ if ((paramInt & 0xFC000000) == 0) {\r\n/* 434:429 */ paramInt |= 0xFF000000;\r\n/* 435: */ }\r\n/* 436:432 */ if (paramBoolean) {\r\n/* 437:433 */ paramInt = (paramInt & 0xFCFCFC) >> 2 | paramInt & 0xFF000000;\r\n/* 438: */ }\r\n/* 439:436 */ this.m = ((paramInt >> 16 & 0xFF) / 255.0F);\r\n/* 440:437 */ this.n = ((paramInt >> 8 & 0xFF) / 255.0F);\r\n/* 441:438 */ this.o = ((paramInt & 0xFF) / 255.0F);\r\n/* 442:439 */ this.p = ((paramInt >> 24 & 0xFF) / 255.0F);\r\n/* 443: */ \r\n/* 444:441 */ cjm.c(this.m, this.n, this.o, this.p);\r\n/* 445: */ \r\n/* 446:443 */ this.i = paramFloat1;\r\n/* 447:444 */ this.j = paramFloat2;\r\n/* 448:445 */ a(paramString, paramBoolean);\r\n/* 449: */ \r\n/* 450:447 */ return (int)this.i;\r\n/* 451: */ }",
"private void createMul(Code32 code, int op, int cond, int Rd, int Rn, int Rm) {\r\n\t\tcode.instructions[code.iCount] = (cond << 28) | op | (Rd << 16) | (Rm << 8) | (0x9 << 4) | Rn;\r\n\t\tcode.incInstructionNum();\r\n\t}",
"static int calculate(int a, int b, String op) {\n switch (op) {\n case \"+\":\n return a + b;\n case \"-\":\n return a - b;\n case \"*\":\n return a * b;\n case \"/\":\n return a / b;\n default:\n break;\n }\n return 0;\n }",
"@Override\n\tpublic String visitExpr(MicroParser.ExprContext ctx) {\n\t\tString prefix = visit(ctx.expr_prefix());\n\t\tString expr = prefix + visit(ctx.term());\n\t\t\n\t\t//System.out.println(\"in visit expr: \"+expr);\n\t\t//System.out.println(\"in visit expr: prefix is: \"+prefix);\n\t\tif((prefix.contentEquals(\"\"))) return expr;\n\t\tString op1, op2, result;\n\t\tString type = currentType;\n\t\tString[] ids = expr.split(\"\\\\-|\\\\+\");\n\t List<String> operands = new ArrayList<String>();\n\t List<Character> addops = new ArrayList<Character>();\n\t \n\t for(int i=0;i<expr.length();i++) {\n\t \tif(expr.charAt(i)=='+' || expr.charAt(i)=='-')\n\t \t\taddops.add(expr.charAt(i));\n\t }\n\t //create a list of addops\n\t \n\t //create a list of operands \n\t for(String i:ids) \n\t \t operands.add(i);\n\t \n\t op1 = operands.get(0);\n\t op2 = operands.get(1);\n\t temp = new Temporary(type);\n\t result = temp.fullName;\n\t tempList.addT(temp);\n\t //System.out.println(\"in visit expr, ops are: \"+op1+\" \"+ op2);\n\t //System.out.println(\"in visit expr, result is: \"+ result);\n\t if(addops.get(0)=='+') {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \t\n\t else {\n\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t \toperands.remove(0); operands.remove(0); addops.remove(0);\n\t }\n\t \n\t \t\n\t if(operands.size()==0) return result;\n\t \n\t for(int i=0; i<operands.size();i++) {\n\t \top1 = result;\n\t \top2 = operands.get(i);\n\t \ttemp = new Temporary(type);\n\t \tresult = temp.fullName;\n\t \ttempList.addT(temp);\n\t \tif(addops.get(0)=='+') {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"ADD\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t \t}\n\t\t \t\n\t\t else {\n\t\t \tglobalIR.addStmt(IRStatement.generateArithmetic(type, \"SUB\", op1, op2, result));\n\t\t \taddops.remove(0);\n\t\t }\n\t\t \t\n\t }\n\t return result; \n\t\t\n\t}",
"public final int mo4669op(int i, Object... objArr) {\n AppMethodBeat.m2504i(124352);\n int c;\n byte[] bArr;\n if (i == 0) {\n ((C6093a) objArr[0]).mo13474e(1, 8, this.jBw);\n AppMethodBeat.m2505o(124352);\n return 0;\n } else if (i == 1) {\n c = C6087a.m9552c(1, 8, this.jBw) + 0;\n AppMethodBeat.m2505o(124352);\n return c;\n } else if (i == 2) {\n bArr = (byte[]) objArr[0];\n this.jBw.clear();\n C6086a c6086a = new C6086a(bArr, unknownTagHandler);\n for (c = C1331a.getNextFieldNumber(c6086a); c > 0; c = C1331a.getNextFieldNumber(c6086a)) {\n if (!super.populateBuilderWithField(c6086a, this, c)) {\n c6086a.ems();\n }\n }\n AppMethodBeat.m2505o(124352);\n return 0;\n } else if (i == 3) {\n C6086a c6086a2 = (C6086a) objArr[0];\n bvf bvf = (bvf) objArr[1];\n int intValue = ((Integer) objArr[2]).intValue();\n switch (intValue) {\n case 1:\n LinkedList Vh = c6086a2.mo13445Vh(intValue);\n int size = Vh.size();\n for (intValue = 0; intValue < size; intValue++) {\n bArr = (byte[]) Vh.get(intValue);\n bve bve = new bve();\n C6086a c6086a3 = new C6086a(bArr, unknownTagHandler);\n for (boolean z = true; z; z = bve.populateBuilderWithField(c6086a3, bve, C1331a.getNextFieldNumber(c6086a3))) {\n }\n bvf.jBw.add(bve);\n }\n AppMethodBeat.m2505o(124352);\n return 0;\n default:\n AppMethodBeat.m2505o(124352);\n return -1;\n }\n } else {\n AppMethodBeat.m2505o(124352);\n return -1;\n }\n }",
"public abstract int compute(int i1, int i2);"
] | [
"0.579187",
"0.5782323",
"0.5763005",
"0.5583698",
"0.54705924",
"0.5446826",
"0.5415564",
"0.54087913",
"0.5405904",
"0.5394022",
"0.5376116",
"0.53482044",
"0.532981",
"0.53080374",
"0.52980006",
"0.5276717",
"0.52735645",
"0.52394235",
"0.52337307",
"0.52305657",
"0.5226426",
"0.52028",
"0.51971364",
"0.5196912",
"0.5187799",
"0.5184722",
"0.5182197",
"0.51805645",
"0.51672167",
"0.5160925",
"0.51483995",
"0.51298964",
"0.51208735",
"0.5111258",
"0.5094508",
"0.50744534",
"0.5069859",
"0.50623405",
"0.5059588",
"0.5052907",
"0.5050658",
"0.50447065",
"0.50437474",
"0.5042486",
"0.50389236",
"0.50377274",
"0.5031243",
"0.5030286",
"0.5024139",
"0.50220084",
"0.50167805",
"0.50124395",
"0.5009899",
"0.500382",
"0.4995326",
"0.49864984",
"0.49846724",
"0.49814853",
"0.49764568",
"0.49747074",
"0.4970331",
"0.49573117",
"0.49486858",
"0.49387282",
"0.49385518",
"0.49377397",
"0.49349394",
"0.49340162",
"0.4924981",
"0.4915967",
"0.49156183",
"0.491293",
"0.49106756",
"0.49065694",
"0.49046943",
"0.4895892",
"0.48931503",
"0.48880675",
"0.48860422",
"0.48811516",
"0.4879237",
"0.48786545",
"0.48641118",
"0.4863668",
"0.48555654",
"0.48548552",
"0.48539916",
"0.48517308",
"0.4851624",
"0.48501652",
"0.48486754",
"0.4847336",
"0.484699",
"0.4845815",
"0.484432",
"0.48442835",
"0.4841448",
"0.48394382",
"0.48394176",
"0.48383698",
"0.48309785"
] | 0.0 | -1 |
take the payment from users | public static void main(String[] args) {
double payment = 0;
Scanner in = new Scanner(System.in);
boolean positivePayment = true;
do {
System.out.print("Enter the payment amount: ");
try {
payment = in.nextDouble() ;
if (payment < 0) {
positivePayment = false;
throw new NegativePaymentException(payment);
}else {
positivePayment = true;
}
}catch (NegativePaymentException e) {
System.out.println(e.toString());
}
}while (!positivePayment);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String makePayment(String userName, String teamName, Payment payment) throws RemoteException, InterruptedException;",
"public void performPayment() {\n payment.executePayment(amount);\n }",
"public void makePayment() {\r\n System.out.println(\"pay\");\r\n setPayed(true);\r\n }",
"public void calculatePayment() {}",
"private void managePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nThe Following are your Purchases\\n\");\n\t\t\tList<Offer> offers = cService.seeAllOwnedOffers(user);\n\t\t\toffers.stream().filter(offer -> offer.getStatus().getStatus_name().equals(\"pending\"))\n\t\t\t\t\t.forEach(offer -> log.info(offer.toString()));\n\n\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to See Payments for an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to return to the CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tseePayments(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}",
"private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }",
"private void makePayment(User user, Scanner sc, Payment payment) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nPayment Processing\\n\");\n\t\t\tlog.info(\"Current Payment: \" + payment + \"\\n\");\n\n\t\t\tMap<String, Object> makePaymentArgs = new HashMap<>();\n\t\t\tmakePaymentArgs.put(\"offer\", payment.getOffer());\n\t\t\tmakePaymentArgs.put(\"user\", user);\n\t\t\tmakePaymentArgs.put(\"amount\", payment.getOffer().getBalance());\n\t\t\tcService.makePayment(makePaymentArgs);\n\n\t\t\tlog.info(\"\\nPayment is complete:\");\n\t\t\tlog.info(\"\t\tPress anything else to exit\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the PAYMENTS DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\t}",
"String confirmPayment(String userName, String teamName, Payment payment) throws RemoteException,\n InterruptedException;",
"private void seePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nPayments Dashboard\\n\");\n\n\t\t\tOffer offer;\n\t\t\ttry {\n\t\t\t\tlog.info(\"Select an Offer by typing in the id:\\n\");\n\t\t\t\tlog.info(\"\t\tOr press ENTER to quit\\n\");\n\t\t\t\tInteger offer_id = Integer.parseInt(sc.nextLine());\n\t\t\t\toffer = cService.getOfferById(offer_id);\n\t\t\t\tlog.info(\"Current Offer: \" + offer + \"\\n\");\n\t\t\t\tList<Payment> payments = cService.viewUnPaidPayments(user, offer);\n\t\t\t\tpayments.stream().forEach(p -> log.info(p.toString()));\n\n\t\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\t\tlog.info(\"\t\tPress 1 to Make a Payment on an Item\");\n\t\t\t\tlog.info(\"\t\tPress anything else to return to the PURCHASES DASHBOARD\");\n\t\t\t\tString choice = sc.nextLine();\n\t\t\t\tswitch (choice) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\tif (payments.size() > 0) {\n\t\t\t\t\t\tmakePayment(user, sc, payments.get(0));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"\\nSorry, payments can't be made on this offer!\\n\");\n\t\t\t\t\t\trun = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.info(\"\\nGoing back to the PURCHASES DASHBOARD\\n\");\n\t\t\t\t\trun = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException n) {\n\t\t\t\tlog.info(\"\\nPlease type in a valid number. Start all over again.\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t} while (run);\n\n\t}",
"public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}",
"void pay(Payment payment) {\n\n\t}",
"public void autoPay() {}",
"public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}",
"public void makeAnotherPayment() {\n btnMakeAnotherPayment().click();\n }",
"public void makePayment(String amount, String paymentRef) {\n JudoSDKManager.setKeyAndSecret(getApplicationContext(), API_TOKEN, API_SECRET);\n\n// Set environment to Sandbox\n JudoSDKManager.setSandboxMode(getApplicationContext());\n\n String customerRef = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n Intent intent = JudoSDKManager.makeAPayment(getApplicationContext(), JUDO_ID, \"GBP\", amount, paymentRef, customerRef, null);\n startActivityForResult(intent, ACTION_CARD_PAYMENT);\n }",
"void pay(Order order);",
"private void payByBalance(final View v) {\n if (!SanyiSDK.getCurrentStaffPermissionById(ConstantsUtil.PERMISSION_CASHIER)) {\n\n\n Toast.makeText(activity, getString(R.string.str_common_no_privilege), Toast.LENGTH_LONG).show();\n\n return;\n }\n final CashierPayment paymentMode = new CashierPayment();\n paymentMode.paymentType = ConstantsUtil.PAYMENT_STORE_VALUE;\n paymentMode.paymentName = getString(R.string.rechargeable_card);\n if (SanyiSDK.rest.config.isMemberUsePassword) {\n MemberPwdPopWindow memberPwdPopWindow = new MemberPwdPopWindow(v, activity, new MemberPwdPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(final String pwd) {\n // TODO Auto-generated method stub\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, pwd);\n }\n });\n numPadPopWindow.show();\n\n\n }\n });\n memberPwdPopWindow.show();\n return;\n }\n final NumPadPopWindow numPadPopWindow = new NumPadPopWindow(v, getActivity(), cashierResult, paymentMode, new NumPadPopWindow.OnSureListener() {\n\n @Override\n public void onSureClick(Double value, Double change) {\n // TODO Auto-generated method stub\n checkPresenterImpl.addMemberPayment(value, null);\n }\n });\n numPadPopWindow.show();\n }",
"@Override\r\n\tpublic void makePayment(int price) {\n\t\tSystem.out.println(\"Payment Of Rs. \"+price+\" Through COD Successfull. Thank You!\");\r\n\t}",
"int payInTurbo(String turboCardNo, float turboAmount, String destinationTurboOfCourse, String installmentsButInTurbo);",
"public void pay(InternalAccountOwner from, InternalAccountOwner to, BigDecimal amount) {\n PerformPaymentData data;\n try {\n data = transactionService.getPaymentData(from, to, null);\n } catch (EntityNotFoundException e) {\n System.out.println(\"Some of the users were not found. Transaction aborted.\");\n return;\n }\n\n // try to figure out the type of payment (for some reason)\n List<TransferTypeWithCurrencyVO> types = data.getPaymentTypes();\n TransferTypeWithCurrencyVO paymentType = CollectionHelper.first(types);\n if (paymentType == null) {\n System.out.println(\"There is no possible payment type.\");\n }\n\n // set up payment to be made\n PerformPaymentDTO payment = new PerformPaymentDTO();\n payment.setType(paymentType);\n payment.setFrom(from);\n payment.setTo(to);\n payment.setAmount(amount);\n\n try {\n PaymentVO result = paymentService.perform(payment);\n TransactionAuthorizationStatus authStatus = result.getAuthorizationStatus();\n if (authStatus == TransactionAuthorizationStatus.PENDING_AUTHORIZATION) {\n System.out.println(\"The payment is pending authorization.\");\n } else {\n System.out.println(\"The payment has been processed.\");\n }\n } catch (InsufficientBalanceException e) {\n System.out.println(\"Insufficient balance\");\n } catch (MaxPaymentsPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MinTimeBetweenPaymentsException e) {\n System.out.println(\"A minimum period of time should be awaited to make \"\n + \"a payment of this type\");\n } catch (MaxAmountPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (Exception e) {\n System.out.println(\"The payment couldn't be performed\");\n }\n\n }",
"public IBankTransfert payment();",
"void purchaseMade();",
"@PostMapping(\"/payment/pay/{user_id}/{order_id}/{amount}\")\n public String postPayment(@PathVariable(name=\"user_id\") String user_id, @PathVariable(name=\"amount\") Integer amount) {\n String credit = \"\";\n try (ActorClient client = new ActorClient()) {\n ActorProxyBuilder<PaymentActor> builder = new ActorProxyBuilder(PaymentActor.class, client);\n// List<Thread> threads = new ArrayList<>(NUM_ACTORS);\n ExecutorService threadPool = Executors.newSingleThreadExecutor();\n\n ActorId actorId = new ActorId(user_id);\n PaymentActor actor = builder.build(actorId);\n Future<String> future =\n threadPool.submit(new CallActor(actorId.toString(), actor, 3, amount));\n\n credit = future.get();\n\n System.out.println(\"Got user credit: \"+credit);\n\n } catch (ExecutionException | InterruptedException e) {\n e.printStackTrace();\n }\n\n String json = \"{\\\"user_id\\\":\"+user_id+\",\"+\"\\\"credit\\\":\"+credit+\"}\";\n return json;\n }",
"void payBills();",
"public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"sm@razorpay.com\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }",
"@Override\r\n public void pay() {\n }",
"CarPaymentMethod processPayPal();",
"@Override\n\tpublic void processPayment() {\n\t\t\n\t\tsetIsSuccessful();\n\t}",
"private void updatePayments(int id, int toPay) {\n\t\tint customer_id=id;\n\t\tint payment=toPay;\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into payments(customerNumber,payments) values(?,?)\");\n\t\t\tpstmt.setInt(1, customer_id);\n\t\t\tpstmt.setInt(2, payment);\n\t\t\tint rowseffected=pstmt.executeUpdate();\n\t\t\tif(rowseffected>0) {\n\t\t\t\tSystem.out.println(\"--------------------------------ORDER PLACED--------------------------------\");\n\t\t\t\tuserTasks();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void onPayClick(){\n this.user.updateCreditDec(priceToBePaid);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Information Dialog\");\n alert.setHeaderText(null);\n alert.setContentText(\"Payment successful! You payed \" + cost.getText());\n alert.showAndWait();\n }",
"public void transact() {\n\t\truPay.transact();\n\n\t}",
"@Test(priority = 4)\n\tpublic void testPayment() {\n\t\tlogger = extent.startTest(\"passed\");\n\t\tWebDriverWait wait = new WebDriverWait(driver, 100);\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.className(\"payment-info\")));\n\n\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"swit\\\"]/div[1]\")).click();\n\t\tdriver.findElement(By.id(\"btn\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t// For netbanking login\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(\"123456\");\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(\"Pass@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='LOGIN']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Payment Gateway\");\n\n\t\t//\n\t\tdriver.findElement(By.name(\"transpwd\")).sendKeys(\"Trans@456\");\n\t\tdriver.findElement(By.xpath(\"//input[@type='submit' and @value='PayNow']\")).click();\n\t\tAssert.assertEquals(driver.getTitle(), \"Order Details\");\n\t\tlogger.log(LogStatus.PASS, \"testPayment Testcase is passed\");\n\t}",
"void confirmRealWorldTrade(IUserAccount user, ITransaction trans);",
"public void save_order_without_payment(String advert, String userWhoGive,String userWhoGet,Date date,Date start, Date finish,Float price);",
"@Override\r\n\tpublic void makePayment(Payment p, int amount) {\n\t\t\r\n\t}",
"private void payButtonClicked() {\n if (checkBoxAgreedTAC.isChecked()) {\n boolean validCard = validateCard();\n if (validCard) {\n Double payAmount = Double.parseDouble(textViewPrepaidPrice.getText().toString());\n MainActivity.bus.post(new PrepayPaymentAttemptEvent(payAmount, Long.parseLong(litersToBuy.getText().toString())));\n if (PrepayCalculatorFragment.this.payDialog != null) {\n PrepayCalculatorFragment.this.payDialog.dismiss();\n }\n }\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.TACMustAgreedMessage), Toast.LENGTH_SHORT).show();\n }\n\n }",
"private void make_payment(int studentId)\n\t{\n\t\t\n\t\tdouble fee =0.0;\n\t\ttry\n\t\t{\n\t\t\tregistrationInterface.calculateFee(studentId);\n\t\t} \n\t\tcatch (SQLException e) \n\t\t{\n\n\t\t\tlogger.info(e.getMessage());\n\t\t}\n\n\t\tif(fee == 0.0)\n\t\t{\n\t\t\tlogger.info(\"You have not registered for any courses yet\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\tlogger.info(\"Your total fee = \" + fee);\n\t\t\tlogger.info(\"Want to continue Fee Payment(y/n)\");\n\t\t\tString ch = sc.next();\n\t\t\tif(ch.equals(\"y\"))\n\t\t\t{\n\t\t\t\tlogger.info(\"Select Mode of Payment:\");\n\t\t\t\t\n\t\t\t\tint index = 1;\n\t\t\t\tfor(ModeOfPayment mode : ModeOfPayment.values())\n\t\t\t\t{\n\t\t\t\t\tlogger.info(index + \" \" + mode);\n\t\t\t\t\tindex = index + 1;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tModeOfPayment mode = ModeOfPayment.getModeofPayment(sc.nextInt());\n\t\t\t\t\n\t\t\t\tif(mode == null)\n\t\t\t\t\tlogger.info(\"Invalid Input\");\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tNotification notify=null;\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tnotify = registrationInterface.payFee(studentId, mode,fee);\n\t\t\t\t\t}\n\t\t\t\t\tcatch (SQLException e) \n\t\t\t\t\t{\n\n\t\t\t\t\t\tlogger.info(e.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"Your Payment is successful\");\n\t\t\t\t\tlogger.info(\"Your transaction id : \" + notify.getReferenceId());\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}",
"void paymentOrder(long orderId);",
"void runPayment(Payment payments) {\n paymentReceiver.startPaymentBundle(payments.getAccountNumber(), payments.getPaymentDate(), payments.getCurrency());\n for (PaymentLine paymentLine: payments.getPaymentLines()) {\n paymentReceiver.payment(paymentLine.getAmount(), paymentLine.getReference());\n }\n paymentReceiver.endPaymentBundle();\n }",
"@Override\n public void onClick(View view) {\n newUser.setEmail(email.getText().toString());\n newUser.setUsername(email.getText().toString());\n newUser.setPassword(\"password\");\n\n newUser.signUpInBackground(new SignUpCallback() {\n @Override\n public void done(ParseException e) {\n gotItId = ParseUser.getCurrentUser().getObjectId(); //get the latest user id\n\n String url; //url ending\n FormBody body;\n\n //metadata JSON object used to send additional data to Stripe\n JSONObject metadata = new JSONObject();\n try {\n metadata.put(\"gotit_id\", gotItId);\n } catch (JSONException ex) {\n ex.printStackTrace();\n }\n\n //test if creating user with or without a card\n if(isChecked && card != null) {\n card = cardInputWidget.getCard(); //get a Card object from the widget used to enter card details\n\n //add the variables need to send it to the server to the body\n body = new FormBody.Builder()\n .add(\"name\", name.getText().toString())\n .add(\"metadata\", metadata.toString())\n .add(\"email\", email.getText().toString())\n .add(\"phone\", phone.getText().toString())\n .add(\"line1\", line1.getText().toString())\n .add(\"line2\", line2.getText().toString())\n .add(\"city\", city.getText().toString())\n .add(\"state\", state.getText().toString())\n .add(\"postal_code\", postal.getText().toString())\n .add(\"number\", Objects.requireNonNull(card.getNumber()))\n .add(\"exp_month\", Objects.requireNonNull(card.getExpMonth()).toString())\n .add(\"exp_year\", Objects.requireNonNull(card.getExpYear()).toString())\n .add(\"cvc\", Objects.requireNonNull(card.getCvc()))\n .build();\n url=\"create_customer_w_payment\";\n }\n else {\n body = new FormBody.Builder()\n .add(\"name\", name.getText().toString())\n .add(\"metadata\", metadata.toString())\n .add(\"email\", email.getText().toString())\n .add(\"phone\", phone.getText().toString())\n .add(\"line1\", line1.getText().toString())\n .add(\"line2\", line2.getText().toString())\n .add(\"city\", city.getText().toString())\n .add(\"state\", state.getText().toString())\n .add(\"postal_code\", postal.getText().toString())\n .build();\n url = \"create_customer\";\n }\n\n //Create the request to be sent over HTTP\n //TODO: Replace backend_app_id in string.xml\n //TODO: Replace backend_url in string.xml in production\n Request request = new Request.Builder()\n .addHeader(\"applicationId\",getString(R.string.backend_app_id))\n .url(getString(R.string.backend_url) + url)\n .post(body)\n .build();\n\n //make actual call\n //the request must be enqueued to run a different thread\n httpClient.newCall(request).enqueue(new PostCallback(ref));\n\n }\n });\n }",
"@Override\r\n\tpublic void paidBehavior() {\n\t\tSystem.out.println(\"You paid using your Vias card\");\r\n\t\t\r\n\t}",
"private void pay(){\n //Calculating the new balance\n Integer value = Integer.parseInt(this.txtAmount.getText().toString());\n int result = this.balance - value;\n //The intent to be passed back.\n Intent data = new Intent(TransferActivity.this, MainActivity.class);\n //The bundle to be put into the intent.\n Bundle bundle = new Bundle();\n //Gets time of transaction\n Calendar cal = Calendar.getInstance();\n Date date = cal.getTime();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n String formattedDate = dateFormat.format(date);\n //Fills bundle the needed data\n bundle.putInt(MainActivity.PARAM_INT_NAME, result);\n bundle.putString(MainActivity.PARAM_STRING_NAME, this.chosenName);\n bundle.putString(MainActivity.PARAM_DATE_NAME, formattedDate);\n data.replaceExtras(bundle);\n //Sets result and ends activity\n setResult(Activity.RESULT_OK, data);\n finish();\n }",
"@Override\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(\"in execute of payment\"+p);\n\t\tmap.put(\"users1\", p);\n\t\t\n\t/*int i=dao.AddUserPassangerInfo(p);\n\tSystem.out.println(i);\n\t*/if(p!=null)\n\t\treturn SUCCESS;\n\treturn ERROR;\n\t\t\n\t\t\n\t}",
"private void chargeUser(double fee, String user, String returnDate, int ISBN) {\r\n\t\tdb.executeAddFee(fee, user);\r\n\t\tdb.validateReturn(user, ISBN, returnDate);\r\n\t}",
"CarPaymentMethod payPalUser(String firstName, String lastName);",
"@Override\n public void onClick(View v) {\n\n int totalAmt = (int) Math.ceil(Double.parseDouble(String.valueOf(txtTotalAmount.getText()))); //always rounds up to the nearest whole\n\n try {\n if ((PersistentData.callpermissiongranted)&&(PersistentData.smspermissiongranted))\n {\n\n if (executionComplete && validateFields(v))\n {\n\n //Mobile Money USSD code dialer\n startActivity(new Intent(Intent.ACTION_CALL).setData(Uri.parse(\"tel:*007*1*2*101248*\"+ totalAmt +\"*123456\"+Uri.encode(\"#\"))));\n\n\n // Magic here*/\n\n mHandler.postDelayed(new Runnable() {\n public void run() {\n Log.d(\"CheckOutActivity\",\": paymentconfirmed status \" + PersistentData.paymentConfirmed);\n if(PersistentData.paymentConfirmed){\n Log.d(\"CheckOutActivity\",\": Order Started\");\n RegisterOrder RO = new RegisterOrder();\n RO.execute(\"\");\n Log.d(\"CheckOutActivity\",\": Order Executed\");\n }\n doStuff();\n }\n }, 60000);\n }\n else\n {\n //Incorrect Error handling\n //Toast.makeText(getBaseContext(), \"Your order registration is still in progress.Please await its completion. Siyabonga.\",Toast.LENGTH_LONG).show();\n }\n }\n else\n {\n checkPermissions();\n }\n }\n catch(Exception ex)\n {\n Toast.makeText(getBaseContext(), ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n\n }",
"public void makepayment() throws InterruptedException {\n\t\tdriver.switchTo().frame(0);\n\t\tThread.sleep(3000);\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_card_logo\"))).isDisplayed(),\n\t\t\t\t\" Card payment pop-up is showing\");\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"email\"))).sendKeys(getemailchars() + \"@gmail.com\");\n\t\t// wait for 20 second and enter OTP manualy\n\t\tThread.sleep(3000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"card_number\"))).sendKeys(props.getProperty(\"enter_card_number\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"month\"))).sendKeys(props.getProperty(\"enter_month\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"CVV\"))).sendKeys(props.getProperty(\"enter_CVV\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).clear();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"zip_code\"))).sendKeys(props.getProperty(\"enter_zip_code\"));\n\t\tThread.sleep(1000);\n\n\t\tdriver.findElement(By.xpath(props.getProperty(\"click_rember_checkbox\"))).click();\n\t\tThread.sleep(1000);\n\n\t\t// Enter mobile number\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\"))).clear();\n\t\tThread.sleep(1000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"mobile_No\")))\n\t\t\t\t.sendKeys(props.getProperty(\"plus_icon\") + mobile_number);\n\n\t\t// Click pay tab to make payment\n\t\tdriver.findElement(By.xpath(props.getProperty(\"payment_tab\"))).click();\n\t\tThread.sleep(2000);\n\t\tdriver.switchTo().defaultContent();\n\n\t}",
"public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }",
"public void anualTasks(){\n List<Unit> units = unitService.getUnits();\n for(Unit unit: units){\n double amount = 10000; //@TODO calculate amount based on unit type\n Payment payment = new Payment();\n payment.setPaymentMethod(PaymentMethod.Cash);\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.MONTH, 1);\n calendar.set(Calendar.DATE, 30);\n payment.setDate(LocalDate.now());\n TimeZone tz = calendar.getTimeZone();\n ZoneId zid = tz == null ? ZoneId.systemDefault() : tz.toZoneId();\n payment.setAmount(amount);\n payment.setDueDate(LocalDateTime.ofInstant(calendar.toInstant(), zid).toLocalDate());\n payment.setClient(unit.getOwner());\n payment.setUnit(unit);\n payment.setRecurringInterval(365L);\n payment.setStatus(PaymentStatus.Pending);\n paymentService.savePayment(payment);\n }\n }",
"private void acceptOrder() {\n buttonAcceptOrder.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n order.setDriver(ParseUser.getCurrentUser());\n order.saveInBackground();\n Log.i(TAG, \"driver!!: \" + order.getDriver().getUsername());\n ParseUser.getCurrentUser().put(KEY_HAS_ORDER, true);\n ParseUser.getCurrentUser().saveInBackground();\n\n finish();\n }\n });\n }",
"private void launchPayUMoneyFlow() {\n\n PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();\n\n //Use this to set your custom text on result screen button\n payUmoneyConfig.setDoneButtonText(\"Continue\");\n\n //Use this to set your custom title for the activity\n payUmoneyConfig.setPayUmoneyActivityTitle(\"VUCabs\");\n\n PayUmoneySdkInitializer.PaymentParam.Builder builder = new PayUmoneySdkInitializer.PaymentParam.Builder();\n\n double amount = 0;\n try {\n amount = Double.parseDouble(String.valueOf(Amount));\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n String txnId = System.currentTimeMillis() + \"\";\n String phone = mobile_til.getEditText().getText().toString().trim();\n String productName = \"VUCabs\";\n String firstName = name_et.getText().toString();\n String email = email_til.getEditText().getText().toString().trim();\n String udf1 = \"\";\n String udf2 = \"\";\n String udf3 = \"\";\n String udf4 = \"\";\n String udf5 = \"\";\n String udf6 = \"\";\n String udf7 = \"\";\n String udf8 = \"\";\n String udf9 = \"\";\n String udf10 = \"\";\n\n AppEnvironment appEnvironment = ((AppController) getApplication()).getAppEnvironment();\n builder.setAmount(amount)\n .setTxnId(txnId)\n .setPhone(phone)\n .setProductName(productName)\n .setFirstName(firstName)\n .setEmail(email)\n .setsUrl(appEnvironment.surl())\n .setfUrl(appEnvironment.furl())\n .setUdf1(udf1)\n .setUdf2(udf2)\n .setUdf3(udf3)\n .setUdf4(udf4)\n .setUdf5(udf5)\n .setUdf6(udf6)\n .setUdf7(udf7)\n .setUdf8(udf8)\n .setUdf9(udf9)\n .setUdf10(udf10)\n .setIsDebug(appEnvironment.debug())\n .setKey(appEnvironment.merchant_Key())\n .setMerchantId(appEnvironment.merchant_ID());\n\n try {\n mPaymentParams = builder.build();\n\n /*\n * Hash should always be generated from your server side.\n * */\n generateHashFromServer(mPaymentParams);\n\n /* *//**\n * Do not use below code when going live\n * Below code is provided to generate hash from sdk.\n * It is recommended to generate hash from server side only.\n * *//*\n mPaymentParams = calculateServerSideHashAndInitiatePayment1(mPaymentParams);\n\n if (AppPreference.selectedTheme != -1) {\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,PayUMoneyActivity.this, AppPreference.selectedTheme,mAppPreference.isOverrideResultScreen());\n } else {\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams,PayUMoneyActivity.this, R.style.AppTheme_default, mAppPreference.isOverrideResultScreen());\n }*/\n\n } catch (Exception e) {\n // some exception occurred\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n payNowButton.setEnabled(true);\n }\n }",
"public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }",
"@Override\r\n\t\t\t\t\t\t\t\t\t\t\tpublic void Payment(String result) {\n\r\n\t\t\t\t\t\t\t\t\t\t\t}",
"@Override\n public void makePayment(Item item, Customer customer, double amount) {\n itemRepo.createPayment(item,customer,amount);\n }",
"private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}",
"public ModelPayment(double payment) {\n this.payment = payment;\n }",
"@Override\n public void onClick(View v) {\n merchantWebService = new MerchantWebService();\n merchantWebService.setKey(mPaymentParams.getKey());\n merchantWebService.setCommand(PayuConstants.SAVE_USER_CARD);\n merchantWebService.setHash(mPayuHashes.getSaveCardHash());\n merchantWebService.setVar1(mPaymentParams.getUserCredentials());\n merchantWebService.setVar2(\"\" + cardHolderNameEditText.getText().toString());\n merchantWebService.setVar3(PayuConstants.CC);\n merchantWebService.setVar4(PayuConstants.CC);\n merchantWebService.setVar5(\"\" + cardNameEditText.getText().toString());\n merchantWebService.setVar6(\"\" + cardNumberEditText.getText().toString());\n merchantWebService.setVar7(\"\" + cardExpiryMonthEditText.getText().toString());\n merchantWebService.setVar8(\"\" + cardExpiryYearEditText.getText().toString());\n\n postData = new MerchantWebServicePostParams(merchantWebService).getMerchantWebServicePostParams();\n\n if (postData.getCode() == PayuErrors.NO_ERROR) {\n payuConfig.setData(postData.getResult());\n\n SaveCardTask saveCardTask = new SaveCardTask(PayUVerifyApiActivity.this);\n saveCardTask.execute(payuConfig);\n\n // lets cancel the dialog.\n saveUserCardDialog.dismiss();\n } else {\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }",
"private void launchPayUMoneyFlow(String name, String number, String description, String amt) {\n\n PayUmoneyConfig payUmoneyConfig = PayUmoneyConfig.getInstance();\n\n //Use this to set your custom text on result screen button\n payUmoneyConfig.setDoneButtonText(\"Done\");\n\n //Use this to set your custom title for the activity\n payUmoneyConfig.setPayUmoneyActivityTitle(\"DeliveryHUB PAYMENTS\");\n\n payUmoneyConfig.disableExitConfirmation(isDisableExitConfirmation);\n\n PayUmoneySdkInitializer.PaymentParam.Builder builder = new PayUmoneySdkInitializer.PaymentParam.Builder();\n\n double amount = 0;\n try {\n amount = Double.parseDouble(amt);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n String txnId = \"SH\" + System.currentTimeMillis();\n //String txnId = \"TXNID720431525261327973\";\n String phone = number;\n String productName = description;\n String firstName = name;\n String email = \"nasuruddinshaik@gmail.com\";\n String udf1 = \"\";\n String udf2 = \"\";\n String udf3 = \"\";\n String udf4 = \"\";\n String udf5 = \"\";\n String udf6 = \"\";\n String udf7 = \"\";\n String udf8 = \"\";\n String udf9 = \"\";\n String udf10 = \"\";\n\n AppEnvironment appEnvironment = ((BaseApplication) getActivity().getApplication()).getAppEnvironment();\n builder.setAmount(String.valueOf(amount))\n .setTxnId(txnId)\n .setPhone(phone)\n .setProductName(productName)\n .setFirstName(firstName)\n .setEmail(email)\n .setsUrl(appEnvironment.surl())\n .setfUrl(appEnvironment.furl())\n .setUdf1(udf1)\n .setUdf2(udf2)\n .setUdf3(udf3)\n .setUdf4(udf4)\n .setUdf5(udf5)\n .setUdf6(udf6)\n .setUdf7(udf7)\n .setUdf8(udf8)\n .setUdf9(udf9)\n .setUdf10(udf10)\n .setIsDebug(appEnvironment.debug())\n .setKey(appEnvironment.merchant_Key())\n .setMerchantId(appEnvironment.merchant_ID());\n\n try {\n mPaymentParams = builder.build();\n\n /*\n * Hash should always be generated from your server side.\n * */\n // generateHashFromServer(mPaymentParams);\n\n /* *//**\n * Do not use below code when going live\n * Below code is provided to generate hash from sdk.\n * It is recommended to generate hash from server side only.\n * */\n mPaymentParams = calculateServerSideHashAndInitiatePayment1(mPaymentParams);\n\n\n PayUmoneyFlowManager.startPayUMoneyFlow(mPaymentParams, getActivity(), R.style.AppTheme_pink, true);\n\n\n } catch (Exception e) {\n // some exception occurred\n Toast.makeText(getActivity(), e.getMessage(), Toast.LENGTH_LONG).show();\n // payNowButton.setEnabled(true);\n }\n }",
"@Override\r\n\tpublic void pay(long dateTime, float charge) {\n\t\t\r\n\t}",
"@Override\n public void onClick(View v) {\n PayUChecksum payUChecksum = new PayUChecksum();\n payUChecksum.setKey(mPaymentParams.getKey());\n payUChecksum.setCommand(PayuConstants.VERIFY_PAYMENT);\n // var 1 is from date\n payUChecksum.setVar1(verifyPaymentTransactionIdEditText.getText().toString());\n payUChecksum.setSalt(bundle.getString(PayuConstants.SALT));\n if((postData = payUChecksum.getHash()) != null && postData.getCode() == PayuErrors.NO_ERROR ){\n MerchantWebService merchantWebService = new MerchantWebService();\n merchantWebService.setKey(mPaymentParams.getKey());\n merchantWebService.setCommand(PayuConstants.VERIFY_PAYMENT);\n merchantWebService.setHash(postData.getResult());\n merchantWebService.setVar1(verifyPaymentTransactionIdEditText.getText().toString());\n if((postData = new MerchantWebServicePostParams(merchantWebService).getMerchantWebServicePostParams()) != null && postData.getCode() == PayuErrors.NO_ERROR ){\n payuConfig.setData(postData.getResult());\n\n // lets make api call\n VerifyPaymentTask verifyPaymentTask = new VerifyPaymentTask(PayUVerifyApiActivity.this);\n verifyPaymentTask.execute(payuConfig);\n\n verifyPaymentDialog.dismiss();\n\n }else{\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }else{\n Toast.makeText(PayUVerifyApiActivity.this, postData.getResult(), Toast.LENGTH_LONG).show();\n }\n }",
"void PurshaseToDonate(Integer Id_Member, Integer Id_Product, Integer Quantity);",
"private void automaticPayment(String accountName, String reciever, String billName, final int amount, String date) {\n Log.d(TAG, \"makeTransaction: Has been called\");\n final DocumentReference senderDocRef = db.collection(\"users\").document(user.getEmail())\n .collection(\"accounts\").document(accountName);\n\n final DocumentReference recieverDocRef = db.collection(\"companies\").document(reciever);\n\n final DocumentReference billDocRef = db.collection(\"companies\").document(reciever).collection(\"customer\")\n .document(user.getEmail()).collection(\"bills\").document(billName);\n\n db.runTransaction(new Transaction.Function<Void>() {\n @Override\n public Void apply(Transaction transaction) throws FirebaseFirestoreException {\n DocumentSnapshot sender = transaction.get(senderDocRef);\n DocumentSnapshot reciever = transaction.get(recieverDocRef);\n\n\n int senderBalance = sender.getLong(\"balance\").intValue();\n int recieverBalance = reciever.getLong(\"amount\").intValue();\n int transactionBalance = Math.abs(amount);\n\n if (senderBalance >= transactionBalance) {\n transaction.update(senderDocRef, \"balance\", senderBalance - transactionBalance);\n transaction.update(recieverDocRef, \"amount\", recieverBalance + transactionBalance);\n transaction.update(billDocRef, \"isPaid\", true);\n\n\n SimpleDateFormat dateformat = new SimpleDateFormat(\"dd-MM-yyyy\");\n Date newDate = new Date();\n Calendar cal = Calendar.getInstance();\n cal.setTime(newDate);\n cal.add(Calendar.MONTH, 1);\n newDate = cal.getTime();\n transaction.update(billDocRef, \"recurring\", dateformat.format(newDate));\n } else {\n Log.d(TAG, \"apply: Transaction ikke fuldført\");\n }\n\n // Success\n return null;\n }\n }).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(TAG, \"Transaction success!\");\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.w(TAG, \"Transaction failure.\", e);\n }\n });\n\n }",
"private void onPaymentButtonClicked() {\n if (cartList == null || cartList.size() < 1) {\n Toast.makeText(getContext(), \"Your cart is empty!\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n if (studentDetails[0] == null) {\n Toast.makeText(getContext(), \"Enter Student ID first\", Toast.LENGTH_SHORT).show();\n studentIdText.requestFocus();\n return;\n }\n\n final PaymentDialog dialog = new PaymentDialog(getActivity(), total, studentDetails[0]);\n\n if (dialog.getWindow() != null) {\n dialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);\n }\n\n dialog.setCancelable(false);\n dialog.show();\n dialog.setOnOrderCompleteListener(transactionList -> {\n showProgressDialog();\n orderCompleted(transactionList);\n\n dialog.dismiss();\n });\n Objects.requireNonNull(dialog.getWindow()).clearFlags(WindowManager.\n LayoutParams.FLAG_NOT_FOCUSABLE | WindowManager.LayoutParams.FLAG_ALT_FOCUSABLE_IM);\n dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_STATE_VISIBLE);\n }",
"@Override\n\tpublic int makepayment(Payment payment) {\n\t\treturn paydao.doPayment(payment);\n\t}",
"double getPaid();",
"public double calculatePayment (int hours);",
"public static void amountPaid(){\n NewProject.tot_paid = Double.parseDouble(getInput(\"Please enter NEW amount paid to date: \"));\r\n\r\n UpdateData.updatePayment();\r\n updateMenu();\t//Return back to previous menu.\r\n\r\n }",
"public void payment(double total_sales_of_transaction) {\n String payment_typ = \"\";\n Scanner scan = new Scanner(System.in);\n\n System.out.printf(\"Which payment type do you wish to use?\\n\");\n System.out.printf(\"1. Cash\\n\");\n System.out.printf(\"2. Card\\n\");\n \n\n do {\n System.out.printf(\"Please enter your choice :\");\n try {\n choice = scan.nextInt();\n } catch (InputMismatchException e) {\n scan.next();\n System.out.println(\"Something went wrong.\\n\");\n }\n } while (choice<1 || choice >2);\n\n \n\n\n if (choice == 2) {\n boolean valid_ccN = false;\n cerdit_card_ID = scan.nextLine();\n while (valid_ccN == false) {\n valid_ccN = verifiying_payment(cerdit_card_ID);\n if(valid_ccN == true){break;}\n scan.next();\n System.out.println(\"Please enter a valid CC number :\");\n cerdit_card_ID = scan.nextLine();\n }\n\n System.out.println(\"Your payment has been accpeted.\\n\");\n payment_typ = \"CC\";\n payment_used = \"CARD\";\n\n } else {\n verifiying_payment();\n payment_typ = \"C\";\n payment_used = \"CASH\";\n\n }\n\n payment_id = generate_payment_ID(payment_typ);\n printPaymentSummary();\n }",
"public abstract double pay();",
"@RequestMapping(value = \"/buy/{id}\", method = RequestMethod.POST)\n public Object buy(@PathVariable Integer id) throws SQLException {\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n UserAuthentication userAuth = UserAuthentication.select(UserAuthentication.class, \"SELECT * FROM user_authentication WHERE username=#1#\", username);\n auctionRestTemplate.post(auctionURL + \"/\" + userAuth.getPlayerId() + \"/buy/\" + id, null, String.class);\n return new RedirectView(\"/player/trading\");\n }",
"public void payCharge()\r\n\t{\r\n\t\tSystem.out.print(\"This method is used for pay charge\");\t\r\n\t}",
"public void CashPayment()\n {\n }",
"@Override\n public void onSureClick(Double value, Double change) {\n checkPresenterImpl.addMemberPayment(value, pwd);\n }",
"@Override\n\tpublic void transferAccount(Bank recievingBank, String recievingUser,\n\t\t\tBank payingBank, String payingUser, double amount) {\n\t\ttry {\n\t\t\tif (getAccount(payingBank, payingUser).getBalance() >= amount) {\n\t\t\tgetAccount(payingBank, payingUser).withdrawal(amount);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not enough funds\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t}catch(NullPointerException e){\n\t\t\t\tSystem.out.println(\"User not found\");\n\t\t\t}\n\t\t\n\t\ttry {\n\t\tgetAccount(recievingBank, recievingUser).deposit(amount);\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\tSystem.out.println(\"User not found\");\n\t\t\tgetAccount(payingBank, payingUser).deposit(amount);\n\t\t}\n\t}",
"UserAccount createUserAccount(User user, double amount);",
"@Override\r\n public void onClick(View view) {\r\n Intent paymentsIntent = new Intent(MainActivity.this, PaymentActivity.class);\r\n startActivity(paymentsIntent);\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 }",
"@Override\n public void pay(Payment payment) {\n payment.setPayed(true);\n notifyWhenPaid(payment);\n }",
"public String transaction_pay(int reservationId) {\r\n\t\ttry {\r\n\t\t\tif (username == null){\r\n\t\t\t\treturn \"Cannot pay, not logged in\\n\";\r\n\t\t\t}\r\n\t\t\tbeginTransaction();\r\n\t\t\t\r\n\t\t\t//query for the user balance \r\n\t\t\tcheckBalanceStatement.clearParameters();\r\n\t\t\tcheckBalanceStatement.setString(1, username);\r\n\t\t\tResultSet b = checkBalanceStatement.executeQuery();\r\n\t\t\tb.next();\r\n\t\t\tint user_balance = b.getInt(\"balance\");\r\n\t\t\t\r\n\t\t\t//get the price of the first flight\r\n\t\t\tunpaidReservationStatement.clearParameters();\r\n\t\t\tunpaidReservationStatement.setString(1, username);\r\n\t\t\tunpaidReservationStatement.setInt(2, reservationId);\r\n\t\t\tResultSet unpaid = unpaidReservationStatement.executeQuery();\r\n\t\t\t\r\n\t\t\tint total_price = 0;\r\n\t\t\tif (!unpaid.next()){\r\n\t\t\t\trollbackTransaction();\r\n\t\t\t\treturn \"Cannot find unpaid reservation \"+reservationId+\" under user: \"+username+\"\\n\";\r\n\t\t\t} else {\r\n\t\t\t\t//unpaid.next() ?? maybe not sure\r\n\r\n\t\t\t\tint fid1 = unpaid.getInt(\"fid1\");\r\n\t\t\t\tint fid2 = unpaid.getInt(\"fid2\");\r\n\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\tcheckPriceStatement.setInt(1, fid1);\r\n\t\t\t\tResultSet p1 = checkPriceStatement.executeQuery();\r\n\t\t\t\tp1.next();\r\n\t\t\t\ttotal_price += p1.getInt(\"price\");\r\n\t\t\t\tp1.close();\r\n\t\t\t\t\r\n\t\t\t\t//unpaidReservationStatement2.clearParameters();\r\n\t\t\t\t//unpaidReservationStatement2.setString(1, username);\r\n\t\t\t\t//unpaidReservationStatement2.setInt(2, reservationId);\r\n\t\t\t\t//ResultSet second = unpaidReservationStatement2.executeQuery();\r\n\t\t\t\tif (fid2 != 0){\r\n\t\t\t\t\t//second fid is not null\r\n\t\t\t\t\tcheckPriceStatement.clearParameters();\r\n\t\t\t\t\tcheckPriceStatement.setInt(1, fid2);\r\n\t\t\t\t\tResultSet p2 = checkPriceStatement.executeQuery();\r\n\t\t\t\t\tp2.next();\r\n\t\t\t\t\ttotal_price += p2.getInt(\"price\");\r\n\t\t\t\t\tp2.close();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (total_price > user_balance){\r\n\t\t\t\t\trollbackTransaction();\r\n\t\t\t\t\treturn \"User has only \"+user_balance+\" in account but itinerary costs \"+total_price+\"\\n\";\r\n\t\t\t\t} else {\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdatePaidStatement.clearParameters();\r\n\t\t\t\t\tupdatePaidStatement.setString(1, \"true\");\r\n\t\t\t\t\tupdatePaidStatement.setInt(2, reservationId);\r\n\t\t\t\t\tupdatePaidStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tupdateBalanceStatement.clearParameters();\r\n\t\t\t\t\tupdateBalanceStatement.setInt(1, (user_balance-total_price));\r\n\t\t\t\t\tupdateBalanceStatement.setString(2, username);\r\n\t\t\t\t\tupdateBalanceStatement.executeUpdate();\r\n\t\t\t\t\t\r\n\t\t\t\t\tcommitTransaction();\r\n\t\t\t\t\treturn \"Paid reservation: \"+reservationId+\" remaining balance: \"+(user_balance-total_price)+\"\\n\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (SQLException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\t//rollbackTransaction();\r\n\t\t\treturn \"Failed to pay for reservation \" + reservationId + \"\\n\";\r\n\t\t}\r\n }",
"public void onBuyPressed() {\n PayPalPayment payment = new PayPalPayment(new BigDecimal(String.valueOf(totalAmount)), \"USD\", \"Total Price\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n\n Intent intent = new Intent(this, PaymentActivity.class);\n\n // send the same configuration for restart resiliency\n intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);\n\n intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n\n startActivityForResult(intent, 0);\n }",
"@GetMapping(\"/payment\")\n public List<Payment> getPayments(@RequestParam int userID) { return paymentDataTierConnection.getPayments(userID); }",
"@Test\n public void makeAndRetrievePbaPaymentsByProbate() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture.aPbaPaymentRequestForProbate(\"90.00\",\n \"PROBATE\",accountNumber);\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n assertTrue(paymentDto.getReference().startsWith(\"RC-\"));\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }",
"public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n\n if (requestCode == PayUmoneyFlowManager.REQUEST_CODE_PAYMENT && resultCode == RESULT_OK && data !=\n null) {\n TransactionResponse transactionResponse = data.getParcelableExtra(PayUmoneyFlowManager\n .INTENT_EXTRA_TRANSACTION_RESPONSE);\n\n ResultModel resultModel = data.getParcelableExtra(PayUmoneyFlowManager.ARG_RESULT);\n\n // Check which object is non-null\n if (transactionResponse != null && transactionResponse.getPayuResponse() != null) {\n if (transactionResponse.getTransactionStatus().equals(TransactionResponse.TransactionStatus.SUCCESSFUL)) {\n //Success Transaction\n AddPayment(name, ridequantity, Amount);\n } else {\n Intent intent = new Intent();\n setResult(RESULT_OK, intent);\n finish();\n\n }\n\n // Response from Payumoney\n// String payuResponse = transactionResponse.getPayuResponse();\n//\n//// Response from SURl and FURL\n// String merchantResponse = transactionResponse.getTransactionDetails();\n//\n// new AlertDialog.Builder(this)\n// .setCancelable(false)\n// .setMessage(\"Payu's Data : \" + payuResponse + \"\\n\\n\\n Merchant's Data: \" + merchantResponse)\n// .setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n// public void onClick(DialogInterface dialog, int whichButton) {\n// dialog.dismiss();\n// }\n// }).show();\n\n } else if (resultModel != null && resultModel.getError() != null) {\n Log.d(TAG, \"Error response : \" + resultModel.getError().getTransactionResponse());\n } else {\n Log.d(TAG, \"Both objects are null!\");\n }\n }\n }",
"public abstract void msgPayment(Customer customer, Cash cash);",
"public double getCredits(User user) throws Exception;",
"@GetMapping(\"/payments-byuser/{id}\")\n public List<Payment> getPaymentByUser(@PathVariable Long id) {\n log.debug(\"REST request to get Payment : {}\", id);\n return paymentRepository.findByUserIsCurrentUser();\n }",
"private void sendBucks() {\n\t\tconsole.printUsers(userService.getAll(currentUser.getToken()));\n\t\tSystem.out.println(\"\");\n\n\t\tBoolean validResponse = false;\n\t\tint selectedUserId = -1;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tBigDecimal zero = new BigDecimal(0);\n\t\tBigDecimal currentBalance = (accountService.getAccountBalance(currentUser.getToken()));\n\t\tTransfer transfer = new Transfer();\n\n\t\twhile (true) {\n\t\t\t// ask which user you want to send money to or exit\n\t\t\tselectedUserId = console.getUserInputInteger(\"Enter ID of user you are sending to (0 to cancel)\");\n\t\t\tif (selectedUserId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (selectedUserId > 0 && selectedUserId <= userService.getAll(currentUser.getToken()).length) {\n\t\t\t\t// prompt for amount to send\n\t\t\t\ttransferAmount = console.getUserInputBigDecimal(\"Enter amount\");\n\t\t\t\t// transfer money\n\n\t\t\t\tif (transferAmount.compareTo(zero) == 1 && transferAmount.compareTo(currentBalance) <= 0) {\n\n\t\t\t\t\ttransfer.setFromUserId(currentUser.getUser().getId());\n\t\t\t\t\ttransfer.setToUserId(selectedUserId);\n\t\t\t\t\ttransfer.setTransferAmount(transferAmount);\n\t\t\t\t\ttransfer.setStatusOfTransferId(2);\n\t\t\t\t\ttransfer.setTypeOfTransferId(2);\n\n\t\t\t\t\t\n\t\t\t\t\ttransferService.createTransfer(currentUser.getToken(), transfer);\n\t\t\t\t\tSystem.out.println(\"\\nTransfer Complete!\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\\nInsufficient Funds! Please try again.\\n\");\n\n\t\t\t}\n\t\t}\n\n\t}",
"public double makeAPayment(double annualLeaseAmount){\n double paymentMade = 0.0;//\n return paymentMade;\n /*Now it's 0.0. There must be a place somewhere\n that has a 'make a payment'\n button or text field or whatever...\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ \n }",
"boolean hasPayment();",
"boolean hasPayment();",
"public void addindbpayment(){\n \n \n double tot = calculateTotal();\n Payment pms = new Payment(0,getLoggedcustid(),tot);\n \n System.out.println(\"NI Payment \"+getLoggedcustid()+\" \"+pms.getPaymentid()+\" \"+pms.getTotalprice());\n session = NewHibernateUtil.getSessionFactory().openSession();\n session.beginTransaction();\n session.save(pms);\n try \n {\n session.getTransaction().commit();\n session.close();\n } catch(HibernateException e) {\n session.getTransaction().rollback();\n session.close();\n }\n clear();\n setBookcart(null);\n test.clear();\n itemdb.clear();\n \n \n try{\n FacesContext.getCurrentInstance().getExternalContext().redirect(\"/BookStorePelikSangat/faces/index.xhtml\");\n } \n catch (IOException e) {}\n \n\t}",
"public void payForOrder(){\n\t\tcurrentOrder.setDate(new Date()); // setting date to current\n\t\t\n\t\t//Checking if tendered money is enough to pay for the order.\n\t\tfor(;;){\n\t\t\tJOptionPane.showMessageDialog(this.getParent(), new CheckoutPanel(currentOrder), \"\", JOptionPane.PLAIN_MESSAGE);\n\t\t\tif(currentOrder.getTendered().compareTo(currentOrder.getSubtotal())==-1){\n\t\t\t\tJOptionPane.showMessageDialog(this.getParent(), \"Not enough money tendered\", \"Error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\t//Setting order number.\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\tString str = df.format(currentOrder.getDate());\n\t\tString number = Integer.toString(till.getOrders().size()+1) +\"/\"+str;\n\t\tcurrentOrder.setNumber(number);\n\t\t\n\t\t//Setting customer name.\n\t\tcurrentOrder.setCustomerName(custNameField.getText());\n\t\t\n\t\t//Adding current order to orders list.\n\t\ttill.getOrders().add(currentOrder); \n\t\t\n\t\t//Displays the receipt.\n\t\tJOptionPane.showMessageDialog(this.getParent(), new ReceiptPanel(currentOrder), \"Receipt\", \n\t\t\t\tJOptionPane.PLAIN_MESSAGE);\n\t\t\n\t\t//Resets OrderPanel.\n\t\tthis.resetOrder();\n\t}",
"@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}",
"@Override\n public void payment(BigDecimal amount, String reference) {\n System.out.println(\"Called payment() with following info: \\namount: \" + amount + \"\\nReference Nr:\" + reference);\n\n }",
"public void transferFromBrokerageToSavings(long socialSecurityNumber, String userName, String password, double amount) throws AuthenticationException,UnauthorizedActionException, InsufficientAssetsException{\r\n if(security(socialSecurityNumber, userName, password)){\r\n throw new AuthenticationException();\r\n }\r\n if(getPatron(socialSecurityNumber).getSavingsAccount() == null || getPatron(socialSecurityNumber).getBrokerageAccount() == null){\r\n throw new UnauthorizedActionException();\r\n }\r\n try{\r\n Transaction withdraw = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.WITHDRAW, getPatron(socialSecurityNumber).getBrokerageAccount(), amount);\r\n withdraw.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(withdraw);\r\n Transaction deposit = new Transaction(getPatron(socialSecurityNumber), Transaction.TRANSACTION_TYPE.DEPOSIT, getPatron(socialSecurityNumber).getSavingsAccount(), amount);\r\n deposit.execute();\r\n txHistoryByPatron.get(getPatron(socialSecurityNumber)).add(deposit);\r\n } catch (InsufficientAssetsException e){\r\n throw new InsufficientAssetsException();\r\n }\r\n }",
"Order setAsInCharge(Order order, User user);",
"@Override\n public void onClick(View v) {\n try {\n\n //try to parse EditText text into a float\n Double paymentAmount = Double.parseDouble(mEditPaymentAmount.getText().toString());\n\n //check if the value is greater than 0\n if (Double.parseDouble(mEditPaymentAmount.getText().toString()) <= 0.00) {\n\n //Notify user payment must be greater than 0\n Toast.makeText(SubmitPaymentActivity.this, \"Amount must be more than $0.00\", Toast.LENGTH_SHORT).show();\n } else if (Math.round(Double.parseDouble(mEditPaymentAmount.getText().toString())) > Math.round(currentInvoice.getPrice())) {\n Toast.makeText(SubmitPaymentActivity.this, \"Amount cannot be greater than \" + currentInvoice.getPrice(), Toast.LENGTH_SHORT).show();\n } else {\n\n //Notify user of the payment acceptance\n Toast.makeText(SubmitPaymentActivity.this, \"Payment of \" + paymentAmount.toString() + \" Processed\", Toast.LENGTH_SHORT).show();\n\n double newBalance = currentInvoice.getPrice() - paymentAmount;\n\n if (newBalance <= 0.00) {\n newBalance = 0.00F;\n currentInvoice.setPaymentStatus(\"paid\");\n }\n\n currentInvoice.setPrice(newBalance);\n invoiceDao.update(currentInvoice);\n\n mTextViewBalance.setText(\"$\" + decimalFormat.format(currentInvoice.getPrice()));\n\n Toast.makeText(SubmitPaymentActivity.this, \"$\" + paymentAmount + \" Paid\", Toast.LENGTH_SHORT).show();\n\n //define home activity intent\n Intent intent = new Intent(SubmitPaymentActivity.this, PatientHomeActivity.class);\n //start activity\n startActivity(intent);\n\n }\n\n } catch (NumberFormatException e) {\n // Notify user payment amount must be entered\n Toast.makeText(SubmitPaymentActivity.this, \"Enter a Payment Amount\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"public void paymentgetSuccess() throws InterruptedException {\n\t\tAssert.assertTrue(driver.findElement(By.xpath(props.getProperty(\"payment_success\"))).isDisplayed(),\n\t\t\t\t\"Payment get success\");\n\t\tThread.sleep(3000);\n\t\tdriver.findElement(By.xpath(props.getProperty(\"i_payment\"))).click();\n\t\tdriver.findElement(By.xpath(props.getProperty(\"i_payment\"))).getText();\n\t}",
"@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }"
] | [
"0.7185866",
"0.7101156",
"0.7026332",
"0.70052624",
"0.6993821",
"0.6894361",
"0.6888935",
"0.68057805",
"0.6782139",
"0.67730176",
"0.6721925",
"0.6709448",
"0.670482",
"0.6656089",
"0.6579775",
"0.65621656",
"0.6512218",
"0.6491067",
"0.64868677",
"0.64828354",
"0.64334744",
"0.6428029",
"0.64259064",
"0.63963026",
"0.6372817",
"0.6341947",
"0.6285946",
"0.6285385",
"0.6251365",
"0.6225646",
"0.6219791",
"0.62127286",
"0.62072265",
"0.61825335",
"0.6167483",
"0.6163537",
"0.61612415",
"0.61577594",
"0.614863",
"0.6136068",
"0.6093586",
"0.608052",
"0.6061447",
"0.6027643",
"0.6027616",
"0.5995427",
"0.59847987",
"0.59836453",
"0.5977521",
"0.59724164",
"0.5969873",
"0.59624934",
"0.59184504",
"0.59011966",
"0.58968085",
"0.58880925",
"0.58852893",
"0.5879878",
"0.58735794",
"0.58428496",
"0.58395445",
"0.58384556",
"0.5834623",
"0.58304805",
"0.5810351",
"0.57989526",
"0.57966095",
"0.5793182",
"0.5789969",
"0.578573",
"0.57787454",
"0.57763654",
"0.57625556",
"0.5759202",
"0.5757572",
"0.57556427",
"0.57535124",
"0.5752847",
"0.57421637",
"0.573618",
"0.5716902",
"0.57157123",
"0.57047576",
"0.5703833",
"0.57030773",
"0.5686578",
"0.56837237",
"0.5682407",
"0.5679805",
"0.5675466",
"0.56739223",
"0.56739223",
"0.56732184",
"0.56726336",
"0.566625",
"0.56610984",
"0.5654664",
"0.5651065",
"0.56479067",
"0.5641759",
"0.56387794"
] | 0.0 | -1 |
A constant that contains the number of jugglers that one circuit can have | public static void main(String[] args) {
// Start a new instance of this class, which parses and adds jugglefest.txt to your Lists
JuggleFestCircuitAssignments assignment = null;
try {
assignment = new JuggleFestCircuitAssignments();
System.err.println("Added " + assignment.jugglers.size() + " jugglers and " + assignment.circuits.size() + " circuits. There will be " + assignment.MAX_JUGGLERS_PER_CIRCUIT + " jugglers per circuit.");
} catch(FileNotFoundException fnfe) {
System.err.println("Could not find file");
}
// For each juggler, add them to the best circuit they can be part of
for (int i = 0; i < assignment.jugglers.size(); i++) {
assignment.addJugglerToCircuit(i, assignment.jugglers.get(i).getDesiredCircuits().get(0));
}
System.err.println("\n\n ------------------ \n\n");
for (int i = 0; i < assignment.circuits.size(); i++) {
System.out.print("Circuit " + i + " contains: ");
for (Integer juggler : assignment.circuits.get(i).getJugglersInCircuit()) {
System.out.print(juggler + ", ");
}
System.out.println();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getConstantCount() {\r\n return EnthalpyVapour.CONSTANT_COUNT;\r\n }",
"int getNumberOfCavalry();",
"public int numberOfKnightsIn() { // numero di cavalieri a tavola\n \n return numeroCompl;\n }",
"public int getNumberOfComponents();",
"public abstract int numOfSameTypeNeighbourToReproduce();",
"public abstract int numOfEmptyToReproduce();",
"@Override\n\tpublic int count() {\n\t\treturn 4;\n\t}",
"int cardinality();",
"public native int getNumAvailableConditioners();",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"int getBurstNImages();",
"public int getNumComps(){\n return this.mFarm.getNumComps();\n }",
"private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}",
"public static int availableProcessors() {\n/* 98 */ return holder.availableProcessors();\n/* */ }",
"public int numberOfOccorrence();",
"private int numberOfCritters(int wave){\n\t\treturn 9 + (wave%3)*6;\n\t}",
"int getExperimentsCount();",
"int numberOfWorkingWorkers();",
"public static int findNumberOfCreatedComputers() {\n return objCounter;\n }",
"public int getNumberConcurrentEmulators() {\n\t\treturn (numberConcurrentEmulators);\n\t}",
"int getMinimalIterationCount();",
"public int passengers(){\n return currentCapacity(); \n }",
"public int sizeOfWatershedsArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(WATERSHEDS$4);\r\n }\r\n }",
"int numberOfWorkers();",
"int numberofhc()\n{\n\treturn hc.size();}",
"private int numberOfConstants() {\n return (int) Stream.of(this.template.split(\"\\\\.\"))\n .filter(s -> !s.equals(\"*\")).count();\n }",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"private int computeCount() {\n \n int count;\n try{\n count = this.clippingFeatures.size() * this.featuresToClip.size();\n }catch(ArithmeticException e ){\n \n count = Integer.MAX_VALUE;\n }\n return count;\n }",
"int countComponents() throws Exception;",
"@Override\n public int count() {\n return this.bench.size();\n }",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"int getJarCount();",
"int getGeoTargetConstantsCount();",
"int getProcessorpathCount();",
"int getMaxConcurrent();",
"private int determineNumberOfIterations()\r\n\t{\r\n\t\tint number = 0;\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_E.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\tfor (@SuppressWarnings(\"unused\")\r\n\t\tMap.Entry<Integer, LinkedHashMap<Integer, Double>> entry : ENERGIES_A.entrySet()) {\r\n\t\t\tnumber++;\r\n\t\t}\r\n\r\n\t\treturn number * 2; // *2 is to account for the reversed branch iterations\r\n\t}",
"int getBlockNumbersCount();",
"int getWifisCount();",
"public int getNumOfClasses();",
"protected int numGenes() {\n\t\treturn genes.size();\n\t}",
"int getMonstersCount();",
"int getMonstersCount();",
"public int getUHCReducerCount() {\n return Integer.parseInt(getOptional(\"kylin.engine.mr.uhc-reducer-count\", \"1\"));\n }",
"public abstract int numOfFoodCellToReproduce();",
"public int getActiveRunwaysCount();",
"public int countOfGenerations ();",
"public int numberOfTires() {\n int tires = 4;\n return tires;\n }",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"int getNodesCount();",
"int getNodesCount();",
"public Integer getNumOfCarbons() {\n return numOfCarbons;\n }",
"int getBlockNumsCount();",
"int getBlockNumsCount();",
"int numOfBlocks() {\n return ni * nj * nk;\n }",
"int getDataScansCount();",
"public int getNbVehicles() {\n\t\t\treturn K;\r\n\t\t}",
"Integer getConnectorCount();",
"public int getNBCInoperative();",
"public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}",
"int getProcessorCount();",
"static int size_of_jnc(String passed){\n\t\treturn 3;\n\t}",
"int numberOfCandidates();",
"public long numCandidates();",
"public int getGears();",
"long getNumberOfComparisons();",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"public int getAvailableCount();",
"public int getNumOfMatchedBets();",
"public static int size() {\n\t\treturn (anonymousSize() + registeredSize());\n\t}",
"@Override\n public long[ ][ ] count() {\n // precompute common nodes\n for (int x = 0; x < n; x++) {\n for (int n1 = 0; n1 < deg[x]; n1++) {\n int a = adj[x][n1];\n for (int n2 = n1 + 1; n2 < deg[x]; n2++) {\n int b = adj[x][n2];\n Tuple ab = createTuple(a, b);\n common2.put(ab, common2.getOrDefault(ab, 0) + 1);\n for (int n3 = n2 + 1; n3 < deg[x]; n3++) {\n int c = adj[x][n3];\n boolean st = adjacent(adj[a], b) ? (adjacent(adj[a], c) || adjacent(adj[b], c)) :\n (adjacent(adj[a], c) && adjacent(adj[b], c));\n if (!st) continue;\n Tuple abc = createTuple(a, b, c);\n common3.put(abc, common3.getOrDefault(abc, 0) + 1);\n }\n }\n }\n }\n\n // precompute triangles that span over edges\n int[ ] tri = countTriangles();\n\n // count full graphlets\n long[ ] C5 = new long[n];\n int[ ] neigh = new int[n];\n int[ ] neigh2 = new int[n];\n int nn, nn2;\n for (int x = 0; x < n; x++) {\n for (int nx = 0; nx < deg[x]; nx++) {\n int y = adj[x][nx];\n if (y >= x) break;\n nn = 0;\n for (int ny = 0; ny < deg[y]; ny++) {\n int z = adj[y][ny];\n if (z >= y) break;\n if (adjacent(adj[x], z)) {\n neigh[nn++] = z;\n }\n }\n for (int i = 0; i < nn; i++) {\n int z = neigh[i];\n nn2 = 0;\n for (int j = i + 1; j < nn; j++) {\n int zz = neigh[j];\n if (adjacent(adj[z], zz)) {\n neigh2[nn2++] = zz;\n }\n }\n for (int i2 = 0; i2 < nn2; i2++) {\n int zz = neigh2[i2];\n for (int j2 = i2 + 1; j2 < nn2; j2++) {\n int zzz = neigh2[j2];\n if (adjacent(adj[zz], zzz)) {\n C5[x]++;\n C5[y]++;\n C5[z]++;\n C5[zz]++;\n C5[zzz]++;\n }\n }\n }\n }\n }\n }\n\n int[ ] common_x = new int[n];\n int[ ] common_x_list = new int[n];\n int ncx = 0;\n int[ ] common_a = new int[n];\n int[ ] common_a_list = new int[n];\n int nca = 0;\n\n // set up a system of equations relating orbit counts\n for (int x = 0; x < n; x++) {\n for (int i = 0; i < ncx; i++) common_x[common_x_list[i]] = 0;\n ncx = 0;\n\n // smaller graphlets\n orbit[x][0] = deg[x];\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = adj[x][nx1];\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = adj[x][nx2];\n if (adjacent(adj[a], b)) orbit[x][3]++;\n else orbit[x][2]++;\n }\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n if (b != x && !adjacent(adj[x], b)) {\n orbit[x][1]++;\n if (common_x[b] == 0) common_x_list[ncx++] = b;\n common_x[b]++;\n }\n }\n }\n\n long f_71 = 0, f_70 = 0, f_67 = 0, f_66 = 0, f_58 = 0, f_57 = 0; // 14\n long f_69 = 0, f_68 = 0, f_64 = 0, f_61 = 0, f_60 = 0, f_55 = 0, f_48 = 0, f_42 = 0, f_41 = 0; // 13\n long f_65 = 0, f_63 = 0, f_59 = 0, f_54 = 0, f_47 = 0, f_46 = 0, f_40 = 0; // 12\n long f_62 = 0, f_53 = 0, f_51 = 0, f_50 = 0, f_49 = 0, f_38 = 0, f_37 = 0, f_36 = 0; // 8\n long f_44 = 0, f_33 = 0, f_30 = 0, f_26 = 0; // 11\n long f_52 = 0, f_43 = 0, f_32 = 0, f_29 = 0, f_25 = 0; // 10\n long f_56 = 0, f_45 = 0, f_39 = 0, f_31 = 0, f_28 = 0, f_24 = 0; // 9\n long f_35 = 0, f_34 = 0, f_27 = 0, f_18 = 0, f_16 = 0, f_15 = 0; // 4\n long f_17 = 0; // 5\n long f_22 = 0, f_20 = 0, f_19 = 0; // 6\n long f_23 = 0, f_21 = 0; // 7\n\n for (int nx1 = 0; nx1 < deg[x]; nx1++) {\n int a = inc[x][nx1]._1, xa = inc[x][nx1]._2;\n\n for (int i = 0; i < nca; i++) common_a[common_a_list[i]] = 0;\n nca = 0;\n for (int na = 0; na < deg[a]; na++) {\n int b = adj[a][na];\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = adj[b][nb];\n if (c == a || adjacent(adj[a], c)) continue;\n if (common_a[c] == 0) common_a_list[nca++] = c;\n common_a[c]++;\n }\n }\n\n // x = orbit-14 (tetrahedron)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || !adjacent(adj[b], c)) continue;\n orbit[x][14]++;\n f_70 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_71 += (tri[xa] > 2 && tri[xb] > 2) ? (common3.getOrDefault(createTuple(x, a, b), 0) - 1) : 0;\n f_71 += (tri[xa] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, a, c), 0) - 1) : 0;\n f_71 += (tri[xb] > 2 && tri[xc] > 2) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_67 += tri[xa] - 2 + tri[xb] - 2 + tri[xc] - 2;\n f_66 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(a, c), 0) - 2;\n f_66 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_58 += deg[x] - 3;\n f_57 += deg[a] - 3 + deg[b] - 3 + deg[c] - 3;\n }\n }\n\n // x = orbit-13 (diamond)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (!adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][13]++;\n f_69 += (tri[xb] > 1 && tri[xc] > 1) ? (common3.getOrDefault(createTuple(x, b, c), 0) - 1) : 0;\n f_68 += common3.getOrDefault(createTuple(a, b, c), 0) - 1;\n f_64 += common2.getOrDefault(createTuple(b, c), 0) - 2;\n f_61 += tri[xb] - 1 + tri[xc] - 1;\n f_60 += common2.getOrDefault(createTuple(a, b), 0) - 1;\n f_60 += common2.getOrDefault(createTuple(a, c), 0) - 1;\n f_55 += tri[xa] - 2;\n f_48 += deg[b] - 2 + deg[c] - 2;\n f_42 += deg[x] - 3;\n f_41 += deg[a] - 3;\n }\n }\n\n // x = orbit-12 (diamond)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][12]++;\n f_65 += (tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_63 += common_x[c] - 2;\n f_59 += tri[ac] - 1 + common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_54 += common2.getOrDefault(createTuple(a, b), 0) - 2;\n f_47 += deg[x] - 2;\n f_46 += deg[c] - 2;\n f_40 += deg[a] - 3 + deg[b] - 3;\n }\n }\n\n // x = orbit-8 (cycle)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int na = 0; na < deg[a]; na++) {\n int c = inc[a][na]._1, ac = inc[a][na]._2;\n if (c == x || adjacent(adj[x], c) || !adjacent(adj[b], c)) continue;\n orbit[x][8]++;\n f_62 += (tri[ac] > 0) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_53 += tri[xa] + tri[xb];\n f_51 += tri[ac] + common2.getOrDefault(createTuple(c, b), 0);\n f_50 += common_x[c] - 2;\n f_49 += common_a[b] - 2;\n f_38 += deg[x] - 2;\n f_37 += deg[a] - 2 + deg[b] - 2;\n f_36 += deg[c] - 2;\n }\n }\n\n // x = orbit-11 (paw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nx3 = 0; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (c == a || c == b || adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][11]++;\n f_44 += tri[xc];\n f_33 += deg[x] - 3;\n f_30 += deg[c] - 1;\n f_26 += deg[a] - 2 + deg[b] - 2;\n }\n }\n\n // x = orbit-10 (paw)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (!adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][10]++;\n f_52 += common_a[c] - 1;\n f_43 += tri[bc];\n f_32 += deg[b] - 3;\n f_29 += deg[c] - 1;\n f_25 += deg[a] - 2;\n }\n }\n\n // x = orbit-9 (paw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || !adjacent(adj[b], c) || adjacent(adj[x], c)) continue;\n orbit[x][9]++;\n f_56 += (tri[ab] > 1 && tri[ac] > 1) ? common3.getOrDefault(createTuple(a, b, c), 0) : 0;\n f_45 += common2.getOrDefault(createTuple(b, c), 0) - 1;\n f_39 += tri[ab] - 1 + tri[ac] - 1;\n f_31 += deg[a] - 3;\n f_28 += deg[x] - 1;\n f_24 += deg[b] - 2 + deg[c] - 2;\n }\n }\n\n // x = orbit-4 (path)\n for (int na = 0; na < deg[a]; na++) {\n int b = inc[a][na]._1, ab = inc[a][na]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == a || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][4]++;\n f_35 += common_a[c] - 1;\n f_34 += common_x[c];\n f_27 += tri[bc];\n f_18 += deg[b] - 2;\n f_16 += deg[x] - 1;\n f_15 += deg[c] - 1;\n }\n }\n\n // x = orbit-5 (path)\n for (int nx2 = 0; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (b == a || adjacent(adj[a], b)) continue;\n for (int nb = 0; nb < deg[b]; nb++) {\n int c = inc[b][nb]._1, bc = inc[b][nb]._2;\n if (c == x || adjacent(adj[a], c) || adjacent(adj[x], c)) continue;\n orbit[x][5]++;\n f_17 += deg[a] - 1;\n }\n }\n\n // x = orbit-6 (claw)\n for (int na1 = 0; na1 < deg[a]; na1++) {\n int b = inc[a][na1]._1, ab = inc[a][na1]._2;\n if (b == x || adjacent(adj[x], b)) continue;\n for (int na2 = na1 + 1; na2 < deg[a]; na2++) {\n int c = inc[a][na2]._1, ac = inc[a][na2]._2;\n if (c == x || adjacent(adj[x], c) || adjacent(adj[b], c)) continue;\n orbit[x][6]++;\n f_22 += deg[a] - 3;\n f_20 += deg[x] - 1;\n f_19 += deg[b] - 1 + deg[c] - 1;\n }\n }\n\n // x = orbit-7 (claw)\n for (int nx2 = nx1 + 1; nx2 < deg[x]; nx2++) {\n int b = inc[x][nx2]._1, xb = inc[x][nx2]._2;\n if (adjacent(adj[a], b)) continue;\n for (int nx3 = nx2 + 1; nx3 < deg[x]; nx3++) {\n int c = inc[x][nx3]._1, xc = inc[x][nx3]._2;\n if (adjacent(adj[a], c) || adjacent(adj[b], c)) continue;\n orbit[x][7]++;\n f_23 += deg[x] - 3;\n f_21 += deg[a] - 1 + deg[b] - 1 + deg[c] - 1;\n }\n }\n }\n\n // solve equations\n orbit[x][72] = C5[x];\n orbit[x][71] = (f_71 - 12 * orbit[x][72]) / 2;\n orbit[x][70] = (f_70 - 4 * orbit[x][72]);\n orbit[x][69] = (f_69 - 2 * orbit[x][71]) / 4;\n orbit[x][68] = (f_68 - 2 * orbit[x][71]);\n orbit[x][67] = (f_67 - 12 * orbit[x][72] - 4 * orbit[x][71]);\n orbit[x][66] = (f_66 - 12 * orbit[x][72] - 2 * orbit[x][71] - 3 * orbit[x][70]);\n orbit[x][65] = (f_65 - 3 * orbit[x][70]) / 2;\n orbit[x][64] = (f_64 - 2 * orbit[x][71] - 4 * orbit[x][69] - 1 * orbit[x][68]);\n orbit[x][63] = (f_63 - 3 * orbit[x][70] - 2 * orbit[x][68]);\n orbit[x][62] = (f_62 - 1 * orbit[x][68]) / 2;\n orbit[x][61] = (f_61 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][67]) / 2;\n orbit[x][60] = (f_60 - 4 * orbit[x][71] - 2 * orbit[x][68] - 2 * orbit[x][67]);\n orbit[x][59] = (f_59 - 6 * orbit[x][70] - 2 * orbit[x][68] - 4 * orbit[x][65]);\n orbit[x][58] = (f_58 - 4 * orbit[x][72] - 2 * orbit[x][71] - 1 * orbit[x][67]);\n orbit[x][57] = (f_57 - 12 * orbit[x][72] - 4 * orbit[x][71] - 3 * orbit[x][70] - 1 * orbit[x][67] - 2 * orbit[x][66]);\n orbit[x][56] = (f_56 - 2 * orbit[x][65]) / 3;\n orbit[x][55] = (f_55 - 2 * orbit[x][71] - 2 * orbit[x][67]) / 3;\n orbit[x][54] = (f_54 - 3 * orbit[x][70] - 1 * orbit[x][66] - 2 * orbit[x][65]) / 2;\n orbit[x][53] = (f_53 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63]);\n orbit[x][52] = (f_52 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59]) / 2;\n orbit[x][51] = (f_51 - 2 * orbit[x][68] - 2 * orbit[x][63] - 4 * orbit[x][62]);\n orbit[x][50] = (f_50 - 1 * orbit[x][68] - 2 * orbit[x][63]) / 3;\n orbit[x][49] = (f_49 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][62]) / 2;\n orbit[x][48] = (f_48 - 4 * orbit[x][71] - 8 * orbit[x][69] - 2 * orbit[x][68] - 2 * orbit[x][67] - 2 * orbit[x][64] - 2 * orbit[x][61] - 1 * orbit[x][60]);\n orbit[x][47] = (f_47 - 3 * orbit[x][70] - 2 * orbit[x][68] - 1 * orbit[x][66] - 1 * orbit[x][63] - 1 * orbit[x][60]);\n orbit[x][46] = (f_46 - 3 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][65] - 1 * orbit[x][63] - 1 * orbit[x][59]);\n orbit[x][45] = (f_45 - 2 * orbit[x][65] - 2 * orbit[x][62] - 3 * orbit[x][56]);\n orbit[x][44] = (f_44 - 1 * orbit[x][67] - 2 * orbit[x][61]) / 4;\n orbit[x][43] = (f_43 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59]) / 2;\n orbit[x][42] = (f_42 - 2 * orbit[x][71] - 4 * orbit[x][69] - 2 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][55]);\n orbit[x][41] = (f_41 - 2 * orbit[x][71] - 1 * orbit[x][68] - 2 * orbit[x][67] - 1 * orbit[x][60] - 3 * orbit[x][55]);\n orbit[x][40] = (f_40 - 6 * orbit[x][70] - 2 * orbit[x][68] - 2 * orbit[x][66] - 4 * orbit[x][65] - 1 * orbit[x][60] - 1 * orbit[x][59] - 4 * orbit[x][54]);\n orbit[x][39] = (f_39 - 4 * orbit[x][65] - 1 * orbit[x][59] - 6 * orbit[x][56]) / 2;\n orbit[x][38] = (f_38 - 1 * orbit[x][68] - 1 * orbit[x][64] - 2 * orbit[x][63] - 1 * orbit[x][53] - 3 * orbit[x][50]);\n orbit[x][37] = (f_37 - 2 * orbit[x][68] - 2 * orbit[x][64] - 2 * orbit[x][63] - 4 * orbit[x][62] - 1 * orbit[x][53] - 1 * orbit[x][51] - 4 * orbit[x][49]);\n orbit[x][36] = (f_36 - 1 * orbit[x][68] - 2 * orbit[x][63] - 2 * orbit[x][62] - 1 * orbit[x][51] - 3 * orbit[x][50]);\n orbit[x][35] = (f_35 - 1 * orbit[x][59] - 2 * orbit[x][52] - 2 * orbit[x][45]) / 2;\n orbit[x][34] = (f_34 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51]) / 2;\n orbit[x][33] = (f_33 - 1 * orbit[x][67] - 2 * orbit[x][61] - 3 * orbit[x][58] - 4 * orbit[x][44] - 2 * orbit[x][42]) / 2;\n orbit[x][32] = (f_32 - 2 * orbit[x][66] - 1 * orbit[x][60] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][43] - 2 * orbit[x][41] - 1 * orbit[x][40]) / 2;\n orbit[x][31] = (f_31 - 2 * orbit[x][65] - 1 * orbit[x][59] - 3 * orbit[x][56] - 1 * orbit[x][43] - 2 * orbit[x][39]);\n orbit[x][30] = (f_30 - 1 * orbit[x][67] - 1 * orbit[x][63] - 2 * orbit[x][61] - 1 * orbit[x][53] - 4 * orbit[x][44]);\n orbit[x][29] = (f_29 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][60] - 1 * orbit[x][59] - 1 * orbit[x][53] - 2 * orbit[x][52] - 2 * orbit[x][43]);\n orbit[x][28] = (f_28 - 2 * orbit[x][65] - 2 * orbit[x][62] - 1 * orbit[x][59] - 1 * orbit[x][51] - 1 * orbit[x][43]);\n orbit[x][27] = (f_27 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][45]) / 2;\n orbit[x][26] = (f_26 - 2 * orbit[x][67] - 2 * orbit[x][63] - 2 * orbit[x][61] - 6 * orbit[x][58] - 1 * orbit[x][53] - 2 * orbit[x][47] - 2 * orbit[x][42]);\n orbit[x][25] = (f_25 - 2 * orbit[x][66] - 2 * orbit[x][64] - 1 * orbit[x][59] - 2 * orbit[x][57] - 2 * orbit[x][52] - 1 * orbit[x][48] - 1 * orbit[x][40]) / 2;\n orbit[x][24] = (f_24 - 4 * orbit[x][65] - 4 * orbit[x][62] - 1 * orbit[x][59] - 6 * orbit[x][56] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][39]);\n orbit[x][23] = (f_23 - 1 * orbit[x][55] - 1 * orbit[x][42] - 2 * orbit[x][33]) / 4;\n orbit[x][22] = (f_22 - 2 * orbit[x][54] - 1 * orbit[x][40] - 1 * orbit[x][39] - 1 * orbit[x][32] - 2 * orbit[x][31]) / 3;\n orbit[x][21] = (f_21 - 3 * orbit[x][55] - 3 * orbit[x][50] - 2 * orbit[x][42] - 2 * orbit[x][38] - 2 * orbit[x][33]);\n orbit[x][20] = (f_20 - 2 * orbit[x][54] - 2 * orbit[x][49] - 1 * orbit[x][40] - 1 * orbit[x][37] - 1 * orbit[x][32]);\n orbit[x][19] = (f_19 - 4 * orbit[x][54] - 4 * orbit[x][49] - 1 * orbit[x][40] - 2 * orbit[x][39] - 1 * orbit[x][37] - 2 * orbit[x][35] - 2 * orbit[x][31]);\n orbit[x][18] = (f_18 - 1 * orbit[x][59] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][45] - 2 * orbit[x][36] - 2 * orbit[x][27] - 1 * orbit[x][24]) / 2;\n orbit[x][17] = (f_17 - 1 * orbit[x][60] - 1 * orbit[x][53] - 1 * orbit[x][51] - 1 * orbit[x][48] - 1 * orbit[x][37] - 2 * orbit[x][34] - 2 * orbit[x][30]) / 2;\n orbit[x][16] = (f_16 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][46] - 2 * orbit[x][36] - 2 * orbit[x][34] - 1 * orbit[x][29]);\n orbit[x][15] = (f_15 - 1 * orbit[x][59] - 2 * orbit[x][52] - 1 * orbit[x][51] - 2 * orbit[x][45] - 2 * orbit[x][35] - 2 * orbit[x][34] - 2 * orbit[x][27]);\n }\n\n return orbit;\n }",
"public int totalNumNodes () { throw new RuntimeException(); }",
"public int getNumberOfClasses() {\n return 200;\n }",
"public int getNumberOfAvailableGenotypeCalls();",
"public int numOfHashFunctions() {\n return config().getK();\n }",
"public int getNumberOfFloors() {\n\t\treturn 2;\r\n\t}",
"public int getNumberOfCores();",
"protected short getCount() \r\n {\r\n // We could move this to the individual implementing classes\r\n // so they have their own count\r\n synchronized(AbstractUUIDGenerator.class) \r\n {\r\n if (counter < 0)\r\n {\r\n counter = 0;\r\n }\r\n return counter++;\r\n }\r\n }",
"public int getNumSmallCars() {\r\n\t\treturn numSmallCars;\r\n\t}",
"private int numberOfComponents(ArrayList<Integer>[] adj) {\n\t\t\t\t\n\t\tint n = adj.length;\n\t\tvisited = new boolean[n]; //default is false\n\t\tCCnum = new int[n];\n\t\tDFS(adj);\n\t\t\n\t\treturn cc;\n }",
"public abstract int getMinInstances();",
"@Override\n\tpublic int numCubies () {\n\t\treturn state_.length;\n\t}",
"int getMaximalIterationCount();",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"int sizeOfBridgeElementArray();",
"default int getMaximumCount(int slot) {\n\t\treturn 64;\n\t}",
"int sizeOfPerformerArray();",
"public abstract int getCntRod();",
"int count() {\n return index.capacity() / 24;\n }",
"private void incWaiters()\r\n/* 443: */ {\r\n/* 444:530 */ if (this.waiters == 32767) {\r\n/* 445:531 */ throw new IllegalStateException(\"too many waiters: \" + this);\r\n/* 446: */ }\r\n/* 447:533 */ this.waiters = ((short)(this.waiters + 1));\r\n/* 448: */ }",
"public int sizeOfGuardianArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(GUARDIAN$22);\n }\n }",
"int getReaultCount();",
"void setNumberOfCavalry(int cavalery);",
"private int computeMaxDependencyCount (Grid grid)\n {\n int maxDependencyCount = 0;\n for (int y = 0; y < grid.getHeight (); y++)\n {\n for (int x = 0; x < grid.getWidth (); x++)\n {\n Cell cell = grid.getCell (x, y);\n if (cell != null)\n {\n int dependencyCount = cell.getDependencyCount ();\n maxDependencyCount = Math.max (maxDependencyCount, dependencyCount);\n }\n }\n }\n return maxDependencyCount;\n }",
"public abstract int getSelfCount();",
"int sizeOfPlanFeatureArray();",
"private int countGrasses()//issues...see comment below in countTrees()\n {\n int grasses = 0;\n Field field = getField();\n Iterator<Location> it;\n List<Object> plantList = new List<>();\n while(it.hasNext()) {\n plantList.add(field.getObjectAt(currant));\n if(plant instanceof Grass) {\n grasses++;\n }\n }\n return grasses;\n }",
"int getNoOfParties();",
"public int numNodes()\r\n {\r\n\tint s = 0;\r\n\tfor (final NodeTypeHolder nt : ntMap.values())\r\n\t s += nt.numNodes();\r\n\treturn s;\r\n }",
"int getInstanceCount();",
"int getMaxCount();",
"int getMaxCount();"
] | [
"0.6506253",
"0.6356201",
"0.6182387",
"0.602044",
"0.60038644",
"0.6000018",
"0.59919053",
"0.5983999",
"0.59719807",
"0.5936247",
"0.58930534",
"0.5891693",
"0.587338",
"0.58541834",
"0.5839397",
"0.5830615",
"0.5822291",
"0.58080107",
"0.580524",
"0.5800974",
"0.5783194",
"0.57661223",
"0.5746255",
"0.57439125",
"0.57426226",
"0.574039",
"0.5727231",
"0.5726258",
"0.57210684",
"0.5719388",
"0.57192117",
"0.57171136",
"0.5707852",
"0.57046163",
"0.5698053",
"0.56947875",
"0.56938124",
"0.5693339",
"0.568665",
"0.56851983",
"0.56809866",
"0.56809866",
"0.5674646",
"0.56683195",
"0.5662838",
"0.5659423",
"0.56540555",
"0.5653119",
"0.5651098",
"0.5651098",
"0.56446207",
"0.56387246",
"0.56387246",
"0.5633628",
"0.563051",
"0.5628979",
"0.5627557",
"0.5626276",
"0.5623971",
"0.5619353",
"0.5617413",
"0.56021804",
"0.5599531",
"0.5588408",
"0.5575216",
"0.5572936",
"0.55605876",
"0.5560263",
"0.5558451",
"0.55576855",
"0.5551057",
"0.553171",
"0.55244625",
"0.55216306",
"0.5521248",
"0.55212116",
"0.5515606",
"0.5511913",
"0.55095375",
"0.550887",
"0.55038244",
"0.54950714",
"0.54898477",
"0.54878706",
"0.5485855",
"0.54847926",
"0.54798365",
"0.5478812",
"0.5478288",
"0.54771036",
"0.54736185",
"0.5473591",
"0.54712445",
"0.5470385",
"0.546639",
"0.5461548",
"0.5459804",
"0.54582614",
"0.5454634",
"0.54532564",
"0.54532564"
] | 0.0 | -1 |
Attempts to add every juggler to their firstchoice circuit If that circuit is already full, after being added to the circuit, the worst person in the circuit will be kicked to their 2nd choice | public void addAllJugglersToFirstCircuitChoice() {
for (int currentJuggler = 0; currentJuggler < jugglers.size(); currentJuggler++) { // For each juggler who needs to be added to a circuit...
int currentJugglerMostDesiredCircuitIndex = jugglers.get(currentJuggler).getDesiredCircuits().get(0);
Circuit currentJugglerMostDesiredCircuit = circuits.get(currentJugglerMostDesiredCircuitIndex);
currentJugglerMostDesiredCircuit // Get the current juggler's most desired circuit...
.getJugglersInCircuit().add(currentJuggler); //... and add this juggler's number to the circuit
// If we now have too many jugglers in the circuit:
// 1) Identify the least-suitable juggler in this circuit (using dot-product)
// 2) Remove him from this circuit
// 3) Find his next-most-preferred circuit and put him in there
// , remove the one least suited for this circuit and put him in his next-desired
if (currentJugglerMostDesiredCircuit.getJugglersInCircuit().size() > MAX_JUGGLERS_PER_CIRCUIT) {
int worstJugglerInCircuitNumber = currentJuggler; // This number corresponds to the juggler who is going to be kicked out of this circuit. Defaults to the juggler who just got in, because he has to prove himself first!
// Check each juggler. If they are worse than the new juggler, they become the "worst juggler in the circuit", and will be kicked out.
for (Integer jugglerNumber : currentJugglerMostDesiredCircuit.getJugglersInCircuit()) {
if (jugglers.get(jugglerNumber).getDotProduct(currentJugglerMostDesiredCircuit) < jugglers.get(worstJugglerInCircuitNumber).getDotProduct(currentJugglerMostDesiredCircuit)) {
worstJugglerInCircuitNumber = jugglerNumber;
}
}
kickToLowerDesiredCircuit(worstJugglerInCircuitNumber, currentJugglerMostDesiredCircuitIndex); // Kicks this juggler from this circuit to his next one
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeFirstRound() {\n Strategy tactics = null;\n ArrayList<Producer> auxProducerList = new ArrayList<>(listOfProducers.getList());\n for (Distributor dst : listOfDistributors.getList()) {\n if (dst.getSubscribedproducers().isEmpty()) {\n int auxNeededPower = dst.getEnergyNeededKW();\n if (dst.getProducerStrategy().equals(\"GREEN\")) {\n tactics = new GreenStrategy();\n } else if (dst.getProducerStrategy().equals(\"PRICE\")) {\n tactics = new PriceStrategy();\n } else if (dst.getProducerStrategy().equals(\"QUANTITY\")) {\n tactics = new QuantityStrategy();\n }\n tactics.sorter(auxProducerList);\n for (Producer p : auxProducerList) {\n if (!(p.getMaxDistributors() == p.getCurrDistributors())) {\n dst.addSubscribedproducer(p);\n p.addDistIDs(dst.getId());\n p.addObserver(dst);\n p.setCurrDistributors(p.getCurrDistributors() + 1);\n auxNeededPower -= p.getEnergyPerDistributor();\n if (auxNeededPower < 0) {\n break;\n }\n }\n }\n }\n }\n\n Distributor bestDist = listOfDistributors.getBestDistinRound();\n\n for (Consumer auxcons : listOfConsumers.getList()) {\n auxcons.setBudget(auxcons.getInitialBudget() + auxcons.getMonthlyIncome());\n auxcons.setIdofDist(bestDist.getId());\n auxcons.setMonthstoPay(bestDist.getContractLength());\n auxcons.setToPay(bestDist.getContractPrice());\n bestDist.addSubscribedconsumer(auxcons);\n if (auxcons.getBudget() >= auxcons.getToPay()) {\n auxcons.addtoBudget(-auxcons.getToPay());\n auxcons.reduceMonths();\n bestDist.addBudget(auxcons.getToPay());\n } else {\n auxcons.setDuepayment(auxcons.getToPay());\n auxcons.reduceMonths();\n }\n if (auxcons.getMonthstoPay() == 0) {\n auxcons.setIdofDist(-1);\n }\n }\n\n for (Distributor d : listOfDistributors.getList()) {\n if (d.isBankrupt()) {\n continue;\n }\n d.reduceBudget();\n if (d.getBudget() < 0) {\n d.setBankrupt(true);\n }\n }\n }",
"public static void plaatsComputerVloot(){\n\t\tfor (int iPlaats = 0; iPlaats < 5; iPlaats++){\n\t\t\tboolean shipOrientation = Math.random() < 0.5;\n\t\t\tGame.computer1.fleet.get(iPlaats).horizontal = shipOrientation;\n\t\t\tif (Game.computer1.fleet.get(iPlaats).horizontal) {\n\t\t\t\tGame.computer1.fleet.get(iPlaats).switchlb();\n\t\t\t}\n\t\t\tRandom random = new Random();\n\t\t\tboolean conflict = false;\n\t\t\tif(Game.computer1.fleet.get(iPlaats).horizontal){ //horizontaal\n\t\t\t\tint randomx = random.nextInt(11 - Game.computer1.fleet.get(iPlaats).getBreedte());\n\t\t\t\tint randomy = random.nextInt(10);\n\t\t\t\tfor(int xLoper=0; xLoper < Game.computer1.fleet.get(iPlaats).getBreedte();xLoper++){ //controleer coordinaten die huidige schip wil hebben op conflicten\n\t\t\t\t\tfor(int iConflictIndex=0; iConflictIndex < iPlaats; iConflictIndex++){// deze lus pakt alle eerder geplaatste schepen (heeft geen zin om nog niet geplaatste schepen te controleren)\n\t\t\t\t\t\tfor(int iConflictCo=0;iConflictCo < Game.computer1.fleet.get(iConflictIndex).coordinates.length;iConflictCo++){ //doorloopt coordinaten van een eerder geplaatst schip en controleert op overeenkomsten.\n\t\t\t\t\t\t\tif(Game.computer1.fleet.get(iConflictIndex).coordinates[0][iConflictCo] == randomx+xLoper && Game.computer1.fleet.get(iConflictIndex).coordinates[1][iConflictCo] == randomy){\n\t\t\t\t\t\t\t\tconflict = true; //indien overeenkomst, is er een conflict.\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\tif(!conflict){\n\t\t\t\t\tfor(int l = 0; l < Game.computer1.fleet.get(iPlaats).getBreedte(); l++){ \n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[0][l] = randomx + l;\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[1][l] = randomy;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}else{ //verticaal. komt grotendeels overeen met horizontaal, commentaar: zie daar.\n\t\t\t\tint randomx = random.nextInt(10);\n\t\t\t\tint randomy = random.nextInt(11 - Game.computer1.fleet.get(iPlaats).getLengte());\n\t\t\t\tfor(int yLoper=0; yLoper < Game.computer1.fleet.get(iPlaats).getLengte();yLoper++){\n\t\t\t\t\tfor(int iConflictIndex=0; iConflictIndex < iPlaats; iConflictIndex++){\n\t\t\t\t\t\tfor(int iConflictCo=0;iConflictCo < Game.computer1.fleet.get(iConflictIndex).coordinates.length;iConflictCo++){\n\t\t\t\t\t\t\tif(Game.computer1.fleet.get(iConflictIndex).coordinates[0][iConflictCo] == randomx && Game.computer1.fleet.get(iConflictIndex).coordinates[1][iConflictCo] == randomy+yLoper){\n\t\t\t\t\t\t\t\tconflict = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(!conflict){\n\t\t\t\t\tfor(int l = 0; l < Game.computer1.fleet.get(iPlaats).getLengte(); l++){\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[0][l] = randomx;\n\t\t\t\t\t\tGame.computer1.fleet.get(iPlaats).coordinates[1][l] = randomy + l;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(conflict){\n\t\t\t\tiPlaats--;\n\t\t\t}\n\t\t}\n\t\tspelen(); //alles geplaatst, dan spelen.\n\t}",
"public void addJoker(Tile joker) {\n joker.setColour('J');\n\t\tjoker.setValue(0);\n /*\n -> inspect the meld\n -> if the meld is a set and the set is less than size 4:\n ->add the joker and set the joker's # to the # of the set\n -> if the meld is a run, look for holes in the continuity of the numbers. \n -> if a hole exists, put it there\n -> otherwise, add it to the back\n -> if there is no back, add it to the front\n */\n\n /*if (this.size() == 1) {\n joker.setValue(this.get(0).getValue()); //make a set\n }\n\n else if (this.size() > 1) {\n //isRun() only works for whole melds so check manually here\n if (tiles.get(0).getValue() == tiles.get(1).getValue()) { //adding a joker to a set\n joker.setValue(this.get(0).getValue());\n }\n else if (tiles.get(0).getColour() == tiles.get(1).getColour()) { //adding a joker to a run\n joker.setColour(tiles.get(0).getColour());\n\n for (int i=0; i<this.size()-1; i++) {\n if (this.get(i+1).getValue() - this.get(i).getValue() != 1) {\n joker.setValue(this.get(i).getValue() + 1);\n }\n }*/\n \n //if (joker.getValue() == 0) { //if a slot for joker has not been found\n if (this.isRun()) {\n joker.setColour(tiles.get(0).getColour());\n if (tiles.get(0).getValue() != 1) {\n joker.setValue(tiles.get(0).getValue() - 1);\n }\n else if (tiles.get(this.size()-1).getValue() != 13) {\n joker.setValue(tiles.get(tiles.size()-1).getValue() + 1);\n }\n\n }\n\t\telse {\n joker.setValue(tiles.get(0).getValue());\n }\n //}\n this.tiles.add(joker);\n this.sort();\n }",
"public void allCombinations(){\n // Sorts the AI's rack\n combinations = new ArrayList<ArrayList<Piece>>();\n ArrayList<Piece> pieces = playersPieces;\n this.removeNulls(numOfNulls());\n for (int index = 0; index < pieces.size();index++){\n Piece temp = pieces.get(index);\n char compareWord = pieces.get(index).theLetter();\n int lowerIndex = index-1;\n\n while (lowerIndex >=0 && compareWord < pieces.get(lowerIndex).theLetter()){\n pieces.set(lowerIndex+1, pieces.get(lowerIndex));\n lowerIndex--;\n }\n\n pieces.set(lowerIndex+1,temp);\n }\n \n // Makes a list of all combinations through the recursive combine method\n combine(pieces, 0, new ArrayList<Piece>());\n insertionSort(combinations);\n combinations.remove(0);\n \n return;\n }",
"private void makeTrips() {\n int highestThree, firstKicker, secondKicker;\n highestThree = firstKicker = secondKicker = -1;\n for (Integer key : this.cardOccurrence.keySet()) {\n int value = this.cardOccurrence.get(key);\n if(value == 3 && value > highestThree)\n highestThree = key;\n else {\n if(key > firstKicker) {\n secondKicker = firstKicker;\n firstKicker = key;\n }\n else if(key > secondKicker)\n secondKicker = key;\n }\n }\n\n //Go through Cards ArrayList to get the actual cards pertaining\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = 0; i < this.cards.size(); i++) {\n Card c = this.cards.get(i);\n if(c.sameValue(highestThree))\n validHand.add(c.toString());\n else if(c.sameValue(firstKicker) || c.sameValue(secondKicker))\n validHand.add(c.toString());\n }\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n }",
"private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }",
"private void InitializeComputerHand(){\n for(int i = 0; i < 7; i++){\n //Add to the computer\n handComputer.add(deck.get(i));\n }\n\n for(int i = 6; i >= 0; i--){\n deck.remove(i);\n }\n }",
"public void autoAdd()\n {\n switch (this.getGameType())\n {\n case 1:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(swimmers.get(i).getId(),swimmers.get(i).compete(),swimmers.get(i).getPoints());\n }\n break;\n case 2:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(runners.get(i).getId(),runners.get(i).compete(),runners.get(i).getPoints());\n }\n break;\n case 3:\n for(int i = 0; i < this.participantNum; i++)\n {\n games.get(count - 1).addParticipant(cyclists.get(i).getId(),cyclists.get(i).compete(),cyclists.get(i).getPoints());\n }\n break;\n }\n\n }",
"public void addChosenGod(ReducedGod god){\n chosenGods.add(god);\n selectedCount++;\n if(selectedCount == playersCount){\n notifyUiInteraction();\n }\n }",
"public void growthCycle() {\n\t\tboolean doMore = true;\n\t\tdo {\n\t\t\tdoMore = false;\n\t\t\tgrower = planter;\n\t\t\tCollections.shuffle(grower, random);\n\t\t\tplanter = new ArrayList<Room>();\n\t\t\tfor(Room room : grower) {\n\t\t\t\tif(rooms.size() >= size.maxRooms) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(room.plantChildren(this)) {\n\t\t\t\t\t//System.out.println(\"Added side room.\");\n\t\t\t\t\tdoMore = true;\n\t\t\t\t}\n\t\t\t} \n\t\t} while(doMore);\t\t\n\t\t//DoomlikeDungeons.profiler.endTask(\"Adding Rooms (growthCycle)\");\n\t}",
"private void cpu_jogada(){\n\n for(i=0;i<8;i++){\n for(j=0;j<8;j++){\n if(matriz[i][j] == jd2){\n // verificarAtaque(i,j,jd2);\n //verificarAtaque as posssibilidades de\n // ataque : defesa : aleatorio\n //ataque tem prioridade 1 - ve se tem como comer quem ataca\n //defesa tem prioridade 2 - ou movimenta a peca que esta sob ataque ou movimenta a outa para ajudar\n //aleatorio nao tem prioridade -- caso nao esteja sob ataque ou defesa\n }\n }\n }\n }",
"public void setFirstAdd(int i){\n if (i > whenToHalt.getMaxGens()){\n throw new IllegalArgumentException(\"First addition to the banned/solution lists must be before the maximum number of generations.\");\n }\n firstAdd = i;\n }",
"public void play() {\n\t\tthis.initializeTurn();\n\t\twhile(this.getAction() > 0) {\n\t\t\tint choix = RandomInt.randomInt(1,6, this.rand);\n\t\t\tif(choix == 1) {\n\t\t\t\t//add building, preference of Machine\n\t\t\t\tint max = 0;\n\t\t\t\tint maxi = 0;\n\t\t\t\tboolean find = false;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveBuildingCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) instanceof Machine) {\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t\tfind = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i).getPoint() > max && !find) {\n\t\t\t\t\t\t\tmax = this.getBoard().getFiveBuildingCards().get(i).getPoint();\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.addBuilding(this.getBoard().getFiveBuildingCards().get(maxi));\n\t\t\t\tDesignString.printBorder(\"Ouverture d'un chantier\");\n\t\t\t}\n\t\t\telse if(choix == 2 || choix == 3) {\n\t\t\t\t//add worker, preference of the lowest one\n\t\t\t\tint min = 999;\n\t\t\t\tint mini = 0;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveWorkerCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i).getCost() < min && this.getBoard().getFiveWorkerCards().get(i).getCost() >= this.getCoin()) {\n\t\t\t\t\t\t\tmin = this.getBoard().getFiveWorkerCards().get(i).getCost();\n\t\t\t\t\t\t\tmini = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(mini).getCost() >= this.getCoin()) {\n\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tDesignString.printBorder(\"Recrutement d'un ouvrier\");\n\t\t\t\t\tthis.hireWorker(this.getBoard().getFiveWorkerCards().get(mini));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(choix == 4 || choix == 5 || choix == 6) {\n\t\t\t\t//worker to building. Preference to the started building. If it can't play, preference to action to coin\n\t\t\t\tIBuilding building = null;\n\t\t\t\tIWorker worker = null;\n\t\t\t\tif(this.getWorkerCards().size() > 0) {\n\t\t\t\t\tif(this.getStartedBuilding().size() > 0) {\n\t\t\t\t\t\tchoix = RandomInt.randomInt(0,2,this.rand);\n\t\t\t\t\t\tif(choix%2 == 0) {\n\t\t\t\t\t\t\tint max = 0;\n\t\t\t\t\t\t\tint maxi = 0;\n\t\t\t\t\t\t\tfor(int i = 0; i < this.getStartedBuilding().size(); i++) {\n\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i) != null) {\n\t\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i).getWorkerOn().size() > max) {\n\t\t\t\t\t\t\t\t\t\tmax = this.getStartedBuilding().get(i).getWorkerOn().size();\n\t\t\t\t\t\t\t\t\t\tmaxi = i;\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\tbuilding = this.getStartedBuilding().get(maxi);\n\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\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} else if(this.getBuildingsCards().size() > 0) {\n\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void solveGame5() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}",
"public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}",
"protected void tryCombinations(LinkedList<Creature> creatureList){\n \n \n int numCombinationCreatures = maxCreatures - prioritizedHeroes.length;\n long i = 0;//debug, for seeing what step of the list it's on\n int listNum = 1;//debug\n long nCrNum = OtherThings.nCr(listNum, numCombinationCreatures);//debug\n \n boolean strengthMode = !mindFollowers();//don't need to check for duplicates if on strength mode\n \n Iterator<LinkedList<Creature>> combinations = new CombinationIterator(creatureList,numCombinationCreatures);\n \n \n while(combinations.hasNext() && searching){\n i ++;//debug\n if (i > nCrNum){//debug\n //System.out.println(listNum + \" \" + creatureList.get(listNum));//debug\n progressReport(listNum,creatureList);\n listNum ++;//debug\n nCrNum = OtherThings.nCr(listNum, numCombinationCreatures);\n }//debug\n \n \n LinkedList<Creature> combo = combinations.next();\n for (Hero hero : prioritizedHeroes){\n combo.add(hero);\n }\n \n \n if (canAffordMonsters(combo) && !usingWeakMonstersOnNH(combo)){\n if (strengthMode){\n tryPermutations(combo);\n }\n else if (!isDuplicateCombination(combo)){\n tryPermutations(combo);\n addToTriedCombos(combo);\n }\n }\n }\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 chooseCards() {\n\n if (availableGods.isEmpty()) {\n createChallenger();\n notifyChoose(cardsChosen, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n } else {\n notifyChoose(true, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n }\n\n }",
"public void AddCardToComputerHand(){\n //Add the first card to the computer\n handComputer.add(deck.get(0));\n\n //Remove card from deck\n deck.remove(0);\n }",
"@Override\n\tprotected void notifyNewBest(LinkedList<City> goodSolution, double length) {\n\t}",
"public LinkedList<CoupJeu> coupsPossibles(JoueurInterface joueur);",
"public void newHand() {\n if(player.getSecondHand().size() > 0){\n player.emptySecondHand(deck);\n shuffle();\n }\n player.resetBet();\n dealer.resetBet();\n errorFlag = false;\n userMessage = \"Place your Bet\";\n againDisabled = true;\n dealDisabled = false;\n hitDisabled = true;\n splitDisabled = true;\n standDisabled = true;\n doubleDisabled = true;\n bettingDisabled = false;\n emptyHands();\n }",
"public void insert() {\r\n\t\tinitFinish = false;\r\n\t\twhile (isEmpty()) {\r\n\t\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\t\tfor (int j = 0; j < size; j++) {\r\n\t\t\t\t\tif (candyBoard[i][j] == null||!(candyBoard[i][j] instanceof RegularCandy)) {\r\n\t\t\t\t\t\tcandyBoard[i][j] = candyRandom();\r\n\t\t\t\t\t\tcandyBoard[i][j].setCoord(i, j);\r\n\t\t\t\t\t\tactiveCandies.add(candyBoard[i][j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t}// for j\r\n\t\t\t}// for i\r\n\t\t\tfor (Candy candy : activeCandies) {\r\n\t\t\t\tif (move(candy, candy)) {\r\n\t\t\t\t\tincreaseMulty();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}// while\r\n\t\tactiveCandies.removeAllElements();\r\n\t\tinitFinish = true;\r\n\t}",
"private void pickCards() throws IOExceptionFromController {\n Deck deck = game.getDeck();\n try {\n if (playerControllers.get(0).getClient().chooseYesNo(\"Do you want to randomize the playable God Powers pool?\")) {\n deck.pickRandom(game.getPlayerNum());\n playerControllers.get(0).getClient().displayMessage(\"Picking cards...\");\n } else {\n ArrayList<Card> choices = playerControllers.get(0).getClient().chooseCards(deck.getCards(), game.getPlayerNum(), null);\n for (Card card : choices) {\n deck.pickCard(card);\n }\n }\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(0));\n }\n ArrayList<Card> cardPool = deck.getPickedCards();\n ArrayList<Card> chosenCards = new ArrayList<Card>();\n for (int i = 0; i < game.getPlayerNum(); i++) {\n int j = (i == game.getPlayerNum() - 1) ? 0 : i + 1;\n Card chosenCard;\n try {\n chosenCard = playerControllers.get(j).getClient().chooseCards(cardPool, 1, chosenCards).get(0);\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(j));\n }\n cardPool.remove(chosenCard);\n chosenCards.add(chosenCard);\n players.get(j).setGodCard(chosenCard);\n playerControllers.get(j).setGodController(chosenCard.getController());\n broadcastMessage((players.get(j).getId() + \" is \" + chosenCard.getGod() + \" (\" + players.get(j).getColor() + \")\\n\"));\n broadcastMessage(\"Picking cards...\");\n }\n }",
"public void mine() {\n\t\t\n\t\t/** generate candidate elements **/\n\t\tgce.generateCE();\n\t\t\n\t\t/** generate patterns **/\n\t\tgcp.setCEList(gce.getCEList());\n\t\tgcp.generateCP();\n\t\t\n\t}",
"private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }",
"void SendScoutBees()\n\t{\n\tint maxtrialindex,i;\n\tmaxtrialindex=0;\n\tfor (i=1;i<FoodNumber;i++)\n\t {\n\t if (trial[i]>trial[maxtrialindex])\n\t maxtrialindex=i;\n\t }\n\tif(trial[maxtrialindex]>=limit)\n\t{\n\t\tinit(maxtrialindex);\n\t}\n\t}",
"public void redistribute(int holeIndex){\n\n if(holes[holeIndex].getOwner() == nextToPlay) {\n ArrayList<Korgool> korgoolsToMove = holes[holeIndex].getKoorgools();\n Hole holeChosen = holes[holeIndex];\n Hole lastHole;\n //@Check if there are no korgools in the hole.\n if(korgoolsToMove.size() == 0){\n return;\n }\n //@Check if there are 1 korgool in the hole.\n else if(korgoolsToMove.size() == 1){\n lastHole = holes[(holeIndex + 1) % 18];\n lastHole.addKorgool(holeChosen.getKoorgools().get(0));\n holeChosen.emptyHole();\n }\n else{\n lastHole = holes[(holeIndex + korgoolsToMove.size() - 1) % 18];\n //Distributes each korgools\n for(int distributeIndex = 1; distributeIndex < korgoolsToMove.size(); distributeIndex++){\n holes[(holeIndex + distributeIndex) % 18].addKorgool(korgoolsToMove.get(distributeIndex));\n }\n Korgool first = korgoolsToMove.get(0);\n holeChosen.emptyHole();\n holeChosen.addKorgool(first);\n }\n //@Check if we add to kazan or make tuz.\n\n if(lastHole.getOwner() != nextToPlay) {\n Side checkTuzSide = (nextToPlay == Side.WHITE) ? Side.BLACK : Side.WHITE;\n int otherTuzIndex = getPlayerTuz(checkTuzSide);\n int playersKazanIndex = (nextToPlay == Side.WHITE) ? 0 : 1;\n ArrayList<Korgool> lastHoleKorgools = lastHole.getKoorgools();\n if ((((otherTuzIndex - 9) != lastHole.getHoleIndex() && (otherTuzIndex + 9) != lastHole.getHoleIndex()) || otherTuzIndex == -1) && (lastHole.getHoleIndex() != 8 && lastHole.getHoleIndex() != 17) && lastHoleKorgools.size() == 3 && !lastHole.isTuz() && !nextToPlay.hasTuz()) {\n lastHole.markAsTuz();\n\n nextToPlay.makeTuz();\n if (nextToPlay == Side.BLACK) {\n MouseListener mouseListener = lastHole.getGui().getMouseListeners()[0];\n lastHole.getGui().removeMouseListener(mouseListener);\n }\n for (int i = 0; i < lastHoleKorgools.size(); i++) {\n kazans[playersKazanIndex].addKorgool(new Korgool());\n }\n kazans[playersKazanIndex].addKorgools(lastHole.getKoorgools());\n lastHole.emptyHole();\n }\n else if(lastHoleKorgools.size() % 2 == 0){\n for(int i = 0; i < lastHoleKorgools.size(); i++) {\n kazans[playersKazanIndex].addKorgool(new Korgool());\n }\n lastHole.emptyHole();\n }\n }\n nextToPlay = nextToPlay==Side.WHITE ? Side.BLACK : Side.WHITE;\n }\n }",
"public void winBigSquare (){\n /*for (int i =0; i<9; i++){\n for (int j=0; j<9; j++)\n System.out.print(bSquares.get(i).getSmallSquare(j).getOwnership()+\" \");\n System.out.println();\n }*/\n for (int i =0; i<9; i++){\n if (bSquares.get(i).getOwnership()==0){\n bSquares.get(i).setOwnership(bSquares.get(i).checkThreeInaRow());\n //System.out.println(\"SWAGSTA!\");\n }\n }\n \n }",
"@Override\n public Matching solve() {\n while (!matching.freeElements().isEmpty()) {\n /* get first element from the queue */\n Element element = problem.element(matching.freeElements().poll().elemId());\n\n /* get its preference element: looping through its list => by the level value */\n while (!element.preferences().isEmpty()) {\n Element pref = problem.element(element.preferences().poll().elemId());\n\n /* check if is an acceptable partner for current preference */\n if (!pref.accepts(element)) {\n continue;\n }\n\n /* verify the availability of its current preference */\n if (problem.isAvailable(pref.elemId())) {\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n matching.addPair(new Pair(element, pref));\n break;\n }\n else {\n /* if the preference is already taken, get the best one between current element and its current match */\n String currMatchName = matching.getElementPair(pref);\n Element currentMatch = pref.getIndex(currMatchName);\n Element elem = pref.getIndex(element.elemId());\n\n /* when current element is better than the current match */\n if (currentMatch.level() > elem.level()){\n if (matching.isFree(elem))\n matching.removeFreeElement(elem);\n\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n problem.element(currentMatch.elemId()).setAvailability(true);\n\n /* add the current pair to the Matching and the old match for the woman to the free list */\n matching.addPair(new Pair(problem.element(element.elemId()), problem.element(pref.elemId())));\n\n matching.addFreeElement(problem.element(currMatchName));\n break;\n }\n else {\n matching.addPair(new Pair(currentMatch, pref));\n }\n }\n }\n /* when man was rejected by all its preferences */\n if (element.preferences().isEmpty())\n element.setAvailability(true);\n }\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(Element::remakeList);\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(element -> matching.addFreeElement(problem.element(element.elemId())));\n\n return matching;\n }",
"public void solveGame() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\n\t\t\tif(!relaxAllControllables){\n\t\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\n\t\t\t\t\t\tcurrentSet.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\n\t\tlosingStates.addAll(game.getStates());\n\t\t\n\t\tSet<S> currentLosingStates;\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t\tcurrentLosingStates\t= new HashSet<S>();\n\t\t\t\n\t\t\t// Handle the pending states\n\t\t\twhile (!losing.isEmpty()) {\n\t\t\t\tS state = losing.poll();\n\n\t\t\t\t\n\t\t\t\tcurrentLosingStates.add(state);\n\n\t\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\t\tfor (S pred : predecessors) {\n\t\t\t\t\tif(losing.contains(pred) || currentLosingStates.contains(pred))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t\t//if(i == -1)\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tlosingStates.retainAll(currentLosingStates);\n\t\t\t\n\t\t}\n\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}",
"public void solucioInicial2() {\n int grupsRecollits = 0;\n for (int i=0; i<numCentres*helisPerCentre; ++i) {\n Helicopter hel = new Helicopter();\n helicopters.add(hel);\n }\n int indexHelic = 0;\n int indexGrup = 0;\n int places = 15;\n while (indexGrup < numGrups) {\n int trajecte[] = {-1,-1,-1};\n for (int i=0; i < 3 && indexGrup<numGrups; ++i) {\n Grupo grup = grups.get( indexGrup );\n if (places - grup.getNPersonas() >= 0) {\n places -= grup.getNPersonas();\n trajecte[i] = indexGrup;\n indexGrup++;\n\n }\n else i = 3;\n }\n Helicopter helicopter = helicopters.get( indexHelic );\n helicopter.addTrajecte( trajecte, indexHelic/helisPerCentre );\n places = 15;\n indexHelic++;\n if (indexHelic == numCentres*helisPerCentre) indexHelic = 0;\n }\n }",
"public void addMines() {\n int xs=0;\n int ys=0;\n\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n if(difficulty==0) {\n for(int x=0;x<15;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==INSANE) {\n System.out.println(\"HELLO AGAIN OBIWAN\");\n for(int x=0;x<97;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==EZPZ) {\n for(int x=0;x<5;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==1) {\n for(int x=0;x<40;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n board[xs][ys].setMine(true);\n }\n\n\n spotsx.clear();\n spotsy.clear();\n }\n else if(difficulty==2) {\n for(int x=0;x<100;x++) {\n while(!checkSpotIsGood(ys,xs)) {\n\n xs=(int)(Math.random()*board.length);\n ys=(int)(Math.random()*board[0].length);\n }\n\n board[xs][ys].setMine(true);\n }\n\n spotsx.clear();\n spotsy.clear();\n }\n }",
"private void firstRound(Player player)\n {\n PowerUpCard option1 = powerUpCardDeck.getFirstCard();\n PowerUpCard option2 = powerUpCardDeck.getFirstCard();\n try\n {\n String chosenId = player.getView().chooseSpawnPoint(option1.getCardData(), option2.getCardData());\n PowerUpCard chosen = option1.getId().equals(chosenId) ? option1 : option2;\n Block spawnPoint = map.findRoomByColor(chosen.getColor()).getSpawnPoint();\n powerUpCardDeck.addCard(chosen);\n player.addPowerUpCard(chosen.equals(option1) ? option2 : option1);\n player.setBlock(spawnPoint);\n player.setFirstRoundPlayed(true);\n sendBroadcastUpdate();\n }\n catch (ConnectionErrorException | TimeOutException e)\n {\n powerUpCardDeck.addCard(option1);\n powerUpCardDeck.addCard(option2);\n throw e;\n }\n\n }",
"public void consolidate()\n { \n if (WarCW.p1.cardsRemaining() < 2)\n {\n if ((WarCW.p1.isEmpty()) && (WarCW.p1e.cardsRemaining() == 0))\n {\n //YOU LOSE\n //end game \n temp = (\"P2 WINS! It took \" + WarCW.round + \". There were \" + WarCW.warNum + \" wars.\");\n \n sup = new JLabel(\"\");\n sup.setFont(new Font(\"ARIAL\",Font.BOLD,46));\n sup.setText(temp);\n \n button.setEnabled(false);\n }\n else\n {\n while (!(WarCW.p1e.isEmpty())) \n {\n WarCW.p1e.shuffle();\n WarCW.temp = WarCW.p1e.useCard();\n WarCW.p1.addCard(WarCW.temp);\n }\n }\n }\n if (WarCW.p2.cardsRemaining() < 2)\n {\n if ((WarCW.p2.isEmpty()) && (WarCW.p2e.cardsRemaining() == 0))\n {\n //YOU WIN\n //end game\n temp = (\"P1 WINS! It took \" + WarCW.round + \". There were \" + WarCW.warNum + \" wars.\");\n \n sup = new JLabel(\"\");\n sup.setFont(new Font(\"ARIAL\",Font.BOLD,46));\n sup.setText(temp);\n \n button.setEnabled(false);\n }\n else\n {\n while (!(WarCW.p2e.isEmpty())) \n {\n WarCW.p2e.shuffle();\n WarCW.temp = WarCW.p2e.useCard();\n WarCW.p2.addCard(WarCW.temp);\n }\n }\n }\n }",
"public void fillDeck()\n {\n //start with an empty card at the 2 of clubs\n Card c = new Card(); \n int s = c.CLUB;\n int r = c.MIN_RANK;\n\n while (s <= c.SPADE)\n {\n while (r <= c.ACE)\n {\n Card dealing = new Card(s, r); \n dealer.enqueue(dealing); \n r++; \n }\n \n s++; \n r = c.MIN_RANK; \n }\n }",
"private void chooseAddItemsToJcb() {\n if (animalFamilyType.contains(\"Terr\")) {\n addItemJcb(terAnimals);\n } else if (animalFamilyType.contains(\"Air\")) {\n addItemJcb(airAnimals);\n } else if (animalFamilyType.contains(\"Water\")) {\n addItemJcb(waterAnimals);\n }\n }",
"@Override\r\n\tpublic void jouer() {\r\n\t\t// liste servant a retenir les cartes potentiellement selectionnables\r\n\t\tArrayList<ICarte> listeCartesPossibles = new ArrayList<ICarte>();\r\n\t\t// sert a choisir une carte aleatoirement parmis celles selectionnables\r\n\t\tRandom random = new Random();\r\n\t\t\r\n\t\t//enregistrement des cartes pouvant etre selectionnees\r\n\t\tfor(int i=0 ; i<plateau.getListeCartesMelangees().size() ; i++) {\r\n\t\t\tif (plateau.getListeCartesMelangees().get(i).getSurPlateau() == true) {\r\n\t\t\t\tlisteCartesPossibles.add(plateau.getListeCartesMelangees().get(i));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// choix aleatoire de la premiere carte\r\n\t\tcarte1 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\t//choix aleatoire de la seconde carte\r\n\t\tlisteCartesPossibles.remove(carte1);\r\n\t\tcarte2 =listeCartesPossibles.get(random.nextInt(listeCartesPossibles.size()));\r\n\t\t\r\n\t\tplateau.setCartesSelectionnees(true);\r\n\t}",
"public void setAutoHandsForPlayers(){\n\t\tint totSwitch = 0;\n\t\tHands[] allHands = new Hands[this.numberOfPlayers];\n\n\t\tfor(int i = 0 ; i < this.numberOfPlayers; i++){\n\t\t\tallHands[i] = new Hands();\n\t\t}\n\n\t\t// Case for two players\n\t\tswitch (this.numberOfPlayers){\n\t\tcase 2:\n\t\t\ttotSwitch = 1;\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\ttotSwitch = 2;\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\ttotSwitch = 3;\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\ttotSwitch = 4;\n\t\t\tbreak;\n\t\t}\n\n\t\tint twist = 0;\n\t\twhile (twist <= totSwitch){\n\t\t\tfor(int i = 0 ; i < 5; i++){\n\t\t\t\tallHands[twist].hands[i] = this.deckOfCards.cards[(twist*5)+i];\n\t\t\t}\t\n\t\t\ttwist = twist + 1;\n\t\t}\n\n\t\tfor(int i = 0; i < this.numberOfPlayers; i++){\n\t\t\tthis.players[i].playerHand.setHands(allHands[i]);\n\t\t}\n\n\t}",
"public void logic(){\n servers.sort(Comparator.comparing(Server::getSlotsTaken).reversed());\n servers.sort(Comparator.comparing(Server::getCapacity).reversed());\n\n slots = new Slot[rowsLength][slotsLength];\n for(int i=0;i<rowsLength;i++){\n for(int j=0;j<slotsLength;j++){\n slots[i][j] = new Slot(i, j);\n }\n }\n\n //Unavailable Slots\n for (Slot slot: unavailableSlots){\n slots[slot.getX()][slot.getY()].setAvailable(false);\n }\n\n\n //luam pe rand si verificam daca e liber randul si poolul\n nextServer:\n for (Server server: servers) {\n\n //line by line\n Map<Integer, Integer> linesPerformanceMap = new HashMap<>();\n Map<Integer, Integer> poolsPerformanceMap = new HashMap<>();\n\n //lines orderd by performance de la cel mai mic la cel mai mare\n for(int currentLine=0; currentLine<slots.length; currentLine++){\n linesPerformanceMap.put(currentLine, getServersPerformanceOfTheLine(slots[currentLine]));\n }\n linesPerformanceMap = linesPerformanceMap.entrySet().stream()\n .sorted(Map.Entry.<Integer, Integer>comparingByValue())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n (e1, e2) -> e1, LinkedHashMap::new));\n\n //pool ordered by performance\n for(Pool pool: pools){\n poolsPerformanceMap.put(pool.getId(), getPoolPerformance(pool));\n }\n poolsPerformanceMap = poolsPerformanceMap.entrySet().stream()\n .sorted(Map.Entry.<Integer, Integer>comparingByValue())\n .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n (e1, e2) -> e1, LinkedHashMap::new));\n\n\n\n for (Map.Entry<Integer, Integer> linePerformance : linesPerformanceMap.entrySet()) {\n Integer line = linePerformance.getKey();\n\n for (int column = 0; column < slots[line].length; column++) {\n //slot available\n if (slots[line][column].isAvailable() && slots[line][column].getServer() == null) {\n //is space\n Integer slotsAvailable = getSlotsAvailable(line, column);\n if(slotsAvailable>=server.getSlotsTaken()){\n //add\n Pool pool = getPoolWithLessServersFromTheLine(poolsPerformanceMap, line);\n\n server.setSlot(slots[line][column]);\n pools.get(pool.getId()).getServers().add(server);\n server.setPool(pools.get(pool.getId()));\n slots[line][column].setOffset(true);\n for(int k=0; k<server.getSlotsTaken(); k++){\n slots[line][column+k].setAvailable(false);\n slots[line][column+k].setServer(server);\n }\n showSlots();\n\n continue nextServer;\n }\n }\n }\n }\n }\n\n\n System.out.println();\n }",
"private void updateLastCardDiscarded(){\r\n\t\tint x = 0;\r\n\t\twhile(this != game.getPlayer(x++)){} // find the nextPlayer\r\n\t\tx = x % game.getNumberOfPlayers();\r\n\t\tnextPlayer = game.getPlayer(x);\r\n\t\t\r\n\t\tif(latestRound != game.getRoundNumber()){ // if it's a new Round, reset\r\n\t\t\tpickedUpCards = new ArrayList<Card>();\r\n\t\t\tlastCardDiscarded = null;\r\n\t\t\tlatestRound = game.getRoundNumber();\r\n\t\t\t\r\n\t\t\tfor(int y = 0; y < game.getNumberOfPlayers(); y++){ // ?????\r\n\t\t\t\tif(game.getPlayer(y) != this && \r\n\t\t\t\t\t\t(getScore() >= game.getPlayer(y).getScore() || getPhase() > game.getPlayer(y).getPhase())){//????\r\n\t\t\t\t\tsetName(oldName);\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetName(oldName + \"is#WINNING\"); // ?????\r\n\t\t}else if(lastCardDiscarded != null && Configuration.getTypeRequired(nextPlayer.getPhase(), 0) == Configuration.SET_PHASE){\r\n\t\t\tif(nextPlayer.drewFromDiscard())\r\n\t\t\t\tpickedUpCards.add(lastCardDiscarded); // add the card to picked up card if it was picked up \r\n\t\t}\r\n\t}",
"public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}",
"public void clear() {\n for (int i = 0; i < if_you_items.length; i++) {\n if_you_items[i].setEnabled(true);\n }\n for (int i = 0; i < then_we_items.length; i++) {\n then_we_items[i].setEnabled(true);\n }\n non_promised_ministries.clear();\n non_promised_ministries.addAll(all_ministries);\n // if not at war, can't ask/offer peace\n if (game.getDiplomacy().getDiplomaticState(game.getTurn(), faction) != C.DS_WAR) {\n if_you_items[IfYouWill.PEACE.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.PEACE.ordinal()].setEnabled(false);\n }\n if (faction > C.HOUSE5) { // non-house\n non_promised_ministries.clear();\n if_you_items[IfYouWill.TECH.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.TECH.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n return;\n }\n // search for promised votes and ministries in pending contracts of sender\n for (Contract con : game.getDiplomacy().getSentContracts()) {\n for (Term term : con.getTerms()) {\n if (term.getDonor() == game.getTurn()) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n if (term.getDonor() == faction) {\n switch (term.getType()) {\n case VOTES:\n System.out.println(\"DBG no votes\");\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n break;\n case MINISTRY:\n non_promised_ministries.remove(new Integer(term.getAmount()));\n break;\n case MONEY:\n break;\n case STATE:\n break;\n case TECH:\n break;\n default:\n throw new AssertionError();\n }\n }\n }\n }\n // search for promised votes and ministries for sender and for receiver\n // those that are made with sender\n if (game.getRegency().getVotes()[game.getTurn()][Regency.CANDIDATE_IDX] > -1\n || game.getRegency().getVotes()[faction][Regency.CANDIDATE_IDX] == game.getTurn()) {\n then_we_items[ThenWeWill.VOTES.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.VOTES.ordinal()].setEnabled(false);\n }\n int[] promises = game.getDiplomacy().getMinistryPromises(game.getTurn());\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] > -1) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n promises = game.getDiplomacy().getMinistryPromises(faction);\n for (int i = 0; i < promises.length; i++) {\n if (promises[i] == game.getTurn()) {\n non_promised_ministries.remove(new Integer(promises[i]));\n }\n }\n if (non_promised_ministries.isEmpty()) {\n then_we_items[ThenWeWill.MINISTRY.ordinal()].setEnabled(false);\n if_you_items[IfYouWill.MINISTRY.ordinal()].setEnabled(false);\n }\n }",
"@Override\n protected void search() {\n \n obtainProblem();\n if (prioritizedHeroes.length > maxCreatures){\n frame.recieveProgressString(\"Too many prioritized creatures\");\n return;\n }\n bestComboPermu();\n if (searching){\n frame.recieveDone();\n searching = false;\n }\n }",
"public void buildEssentialPrimeImplicant(){ \n //int count = 0; \n // For loop ticks all the essential prime Implicants\n for(Entry<Integer, Boolean> mint: mintermList.entrySet()){\n //System.out.printf(\"\\n %d minterm inside buildEssential.\", mint.getKey());\n int count = 0; \n for(Implicant p:primeImp){\n if(p.contains(mint.getKey())){\n count++;\n }\n }\n \n if(count == 1){ // Prime Implicant occurs for only one minterm\n mint.setValue(true);\n for(Implicant x:primeImp){\n if(x.contains(mint.getKey())){\n if(!finalPrimeImp.contains(x))\n finalPrimeImp.add(x);\n \n //System.out.printf(\"\\n %s added to final Prime Implicant List.\",x.toString());\n }\n }\n \n }\n \n }\n \n /**\n * Remove Essential Prime Implicant from primeImpl\n */\n for (Implicant i:finalPrimeImp){\n primeImp.remove(i);\n for(Entry<Integer, Boolean> mint: mintermList.entrySet()){\n if(i.contains(mint.getKey()))\n mint.setValue(true); \n }\n primeImp.remove(i);\n } \n }",
"public void solveGame4() {\n\t\tlosingStates = new HashSet<S>();\n\t\t\n\t\tQueue<S> losing = new LinkedList<S>();\n\t\tList<Set<S>> uncontrollableSuccessors = new ArrayList<Set<S>>();\n\t\tboolean[] isUncontrollable = new boolean[game.getStates().size()+1];\n\t\tHashMap<S, Integer> stateToIndex = new HashMap<S, Integer>();\n\t\t\n\t\tSet<S> currentUncontrollableSuccesors;\n\t\tSet<S> currentSet; \n\t\tint i;\n\t\tint indexCount = 0;\n\t\tfor(S state:game.getStates()){\n\t\t\tstateToIndex.put(state, indexCount);\n\t\t\t //if(i == -1)\n\t\t\t\t//continue;\n\t\t\tcurrentUncontrollableSuccesors = ((Set<S>)this.game.getUncontrollableSuccessors(state));\n\t\t\tcurrentSet = new HashSet<S>();\n\t\t\tfor(S s: currentUncontrollableSuccesors){\n\t\t\t\tif((!relaxOnAssumptions || (!assumptionsStates.contains(s) || assumptionsStates.contains(state))\n\t\t\t\t\t\t&& (!relaxSelfLoops || (!s.equals(state)))))\n\t\t\t\t\tcurrentSet.add(s);\n\t\t\t}\n\t\t\t uncontrollableSuccessors.add(currentSet);\n\t\t\t isUncontrollable[indexCount] = currentSet.size() > 0;\n\t\t\t indexCount+=1;\n\t\t}\n\t\t\n\t\tfor (Set<S> actualGoalSet : this.goalStates) {\n\t\t\tlosing.addAll(actualGoalSet);\n\t\t}\n\n\t\t// Handle the pending states\n\t\twhile (!losing.isEmpty()) {\n\t\t\tS state = losing.poll();\n\n\t\t\t\n\t\t\tlosingStates.add(state);\n\n\t\t\tSet<S> predecessors = this.game.getPredecessors(state);\n\t\t\tfor (S pred : predecessors) {\n\t\t\t\tif(losing.contains(pred) || losingStates.contains(pred))\n\t\t\t\t\tcontinue;\n\t\t\t\t\n\t\t\t\ti = stateToIndex.get(pred);\n\t\t\t\t//if(i == -1)\n\t\t\t\t\t//continue;\n\t\t\t\tif (!isUncontrollable[i]) {\n\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}else{\n\t\t\t\t\tuncontrollableSuccessors.get(i).remove(state);\n\t\t\t\t\tif(uncontrollableSuccessors.get(i).isEmpty())\n\t\t\t\t\t\tlosing.add(pred);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"LOSING STATES SIZe : \" + losingStates.size());\n\t\t\n\t\tthis.gameSolved = true;\n\t}",
"public void readyNextAttackers() {\n if(battleAlly == null && battleEnemy == null){\n //if(battleAlly == null && battleEnemy == null && !isBattleOver()){\n battleAlly = battleAllies.get(0);\n battleEnemy = battleEnemies.get(0);\n }\n }",
"public void makeHigh() {\n Collections.sort(this.cards, Card.COMPARE_BY_VALUE);\n ArrayList<String> validHand = new ArrayList<>();\n for(int i = this.cards.size() - 5; i < this.cards.size(); i++)\n validHand.add(this.cards.get(i).toString());\n this.cardHand = new CardHand(validHand.toArray(new String[0]));\n }",
"public void run() {\n Set<Philosopher> disabledPhils = new HashSet<Philosopher>();\r\n // True if last philosopher who tried to eat succeed\r\n boolean wasAttemptSuccessful = false;\r\n final long startTime = System.currentTimeMillis();\r\n while (System.currentTimeMillis() - startTime < runningTime) {\r\n if (wasAttemptSuccessful || hungryPhils.isEmpty()) {\r\n hungryPhils.addAll(disabledPhils);\r\n disabledPhils.clear();\r\n }\r\n Philosopher philBeingServed = null;\r\n try {\r\n philBeingServed = hungryPhils.take(); // get phil with the highest priority\r\n disabledPhils.add(philBeingServed);\r\n if (forks.get(philBeingServed.id).attempt(1)) { // Could use tryLock instead\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took left fork\");\r\n }\r\n if (forks.get(philBeingServed.id + 1).attempt(Math.round(Math.random() *\r\n (MAX_ATTEMPT_TIME + 1)))) {\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] took right fork\");\r\n }\r\n philBeingServed.giveMeal();\r\n disabledPhils.remove(philBeingServed);\r\n wasAttemptSuccessful = true;\r\n } else {\r\n wasAttemptSuccessful = false;\r\n forks.get(philBeingServed.id).release();\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.println(\"[\" + philBeingServed.id + \"] put left fork\");\r\n }\r\n }\r\n } else {\r\n wasAttemptSuccessful = false;\r\n }\r\n } catch (InterruptedException e) {\r\n if (philBeingServed != null) {\r\n forks.get(philBeingServed.id).release();\r\n forks.get(philBeingServed.id + 1).release();\r\n }\r\n e.printStackTrace();\r\n }\r\n if (FireStarter.isDebugEnabled) {\r\n System.out.printf(\"\\n\\n\"); // Kinda delimiter\r\n FireStarter.isDebugEnabled = false; // Stop producing messages from philosophers\r\n }\r\n }\r\n }",
"@Override\r\n public ElementSet nextBestSet() {\r\n \r\n ElementSet bestSet = null; //initialze variables\r\n int countBest = 0;\r\n double bestScore = Double.MAX_VALUE; //arbitrarly large number CHECK ME\r\n int count = 0;\r\n double score = 0;\r\n \r\n for (ElementSet s : _copyModel.getElements()) { //go through all sets in the model\r\n count = 0; //reset count and score for each set\r\n score = 0;\r\n for (Integer i : s.getSet()) {\r\n if(_uncoveredElements.contains(i)) { //get number of covered elements\r\n count++;\r\n } \r\n }\r\n if (count != 0) { //if it contains an element\r\n score = s.getCost() / (double)count; //compute the ratio of cost per element covered\r\n if (score < bestScore) { //if score is better than best score \r\n countBest = count;\r\n bestScore = score;\r\n bestSet = s;\r\n }\r\n }\r\n }\r\n \r\n if (bestSet == null) //if no set was chosen return null\r\n return null;\r\n \r\n _copyModel.getElements().remove(bestSet); //remcoe the chosen set from the model\r\n GreedySolver.printChosenSet(bestSet); //print the chosen set\r\n \r\n return bestSet;\r\n }",
"public void AddCardToHumanHand(){\n //Add the first card to the human hand\n handHuman.add(deck.get(0));\n\n //Remove card from deck\n deck.remove(0);\n }",
"public void addSweets(Confectionery one) {\n if (max - 1 < LastIndex) {\n Confectionery[] NewForChild = new Confectionery[max * 2];\n for (int i = 0; i < LastIndex; i++) {\n NewForChild[i] = ForChild[i];\n }\n ForChild = NewForChild;\n }\n ForChild[LastIndex] = one;\n LastIndex++;\n\n }",
"private void plant(int l) {\n if (l >= empties.size()) {\n if (currentMines > bestMines) {\n copyField(current, best);\n bestMines = currentMines;\n }\n //geval 2: we zijn nog niet alle lege vakjes afgegaan, en we kunnen misschien nog beter doen dan de huidige oplossing\n } else if(currentMines + (empties.size() - l) > bestMines ) {\n //recursief verder uitwerken, met eerst de berekening van welk vakje we na (i,j) zullen behandelen\n int i = empties.get(l).getI();\n int j = empties.get(l).getJ();\n\n //probeer een mijn te leggen op positie i,j\n if (canPlace(i,j)) {\n placeMine(i, j);\n currentMines++;\n\n\n //recursie\n plant(l + 1);\n\n //hersteloperatie\n removeMine(i, j);\n currentMines--;\n\n }\n //recursief verder werken zonder mijn op positie i,j\n plant(l +1);\n }\n }",
"public void challengeMove(){\n int maxOutcome = -1;\n int returnIndex = -1;\n Hole lastHole;\n Hole selectedHole;\n ArrayList<Hole> availableHoles = availableMoves(nextToPlay);\n for(int i = 0; i < availableHoles.size(); i++){\n selectedHole = availableHoles.get(i);\n lastHole = holes[(selectedHole.getHoleIndex() + selectedHole.getNumberOfKoorgools() - 1) % 18];\n if(lastHole.getOwner() != nextToPlay){\n int numOfKorgools = lastHole.getNumberOfKoorgools() +1;\n if(numOfKorgools == 3 && !nextToPlay.hasTuz()){\n int otherTuzIndex = getPlayerTuz(Side.WHITE);\n if(otherTuzIndex == -1 || ((otherTuzIndex + 9) != lastHole.getHoleIndex())) {\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n redistribute(selectedHole.getHoleIndex());\n return;\n }\n if(numOfKorgools % 2 == 0 && numOfKorgools > maxOutcome){\n maxOutcome = numOfKorgools;\n returnIndex = selectedHole.getHoleIndex();\n }\n }\n }\n if(returnIndex <= -1){\n randomMove();\n return;\n }\n redistribute(returnIndex);\n }",
"public JuggleFestCircuitAssignments() throws FileNotFoundException {\n // Prompt the user for the jugglefest.txt file and store the path to a variable\n // Scanner userFileNameInput = new Scanner(System.in);\n // System.out.println(\"Please enter the path to your jugglefest.txt file\");\n // String filename = userFileNameInput.nextLine();\n // userFileNameInput.close();\n // TODO Uncomment above code and make the Scanner read in from \"filename\" before sending this out to production\n\n Scanner file = new Scanner(new File(\"/Users/kevin/Github/YodleJuggleFest/jugglefest-mini.txt\")); // Open the jugglefest.txt file\n\n // Read the file one line at a time and parse their contents\n while (file.hasNext()) {\n /* Splits the line by spaces. Expect the array to contain:\n * [0] The identifier for the line (either C or J for Circuit or Juggler)\n * [1] The identifier concatenated to the # of that Circuit or Juggler (eg, C101 for Circuit #101)\n * [2] \"H\" for this Circuit/Juggler\n * [3] \"E\" for this Circuit/Juggler\n * [4] \"P\" for this Circuit/Juggler\n * [5] Only exists for Jugglers: a comma-delimited list of the 10 preferred Circuits for this Juggler\n */\n String[] inputFileLine = file.nextLine().split(\" \");\n\n // Remove everything that isn't a digit or a comma, so now all we have is the raw data that we need.\n for (int i = 0; i < inputFileLine.length; i++) {\n inputFileLine[i] = inputFileLine[i].replaceAll(\"[^\\\\d,]\", \"\");\n }\n\n // If there are 5 elements, this is a circuit element. Add it to the circuits list\n if (inputFileLine.length == 5) {\n circuits.add(Integer.parseInt(inputFileLine[1]),\n new Circuit(\n Integer.parseInt(inputFileLine[2]), // \"H\" value\n Integer.parseInt(inputFileLine[3]), // \"E\" value\n Integer.parseInt(inputFileLine[4]) // \"P\" value\n ));\n }\n\n // If there are 6 elements, this is a juggler element. Parse the last element into an array and add it to the circuits list\n else if (inputFileLine.length == 6) {\n // Parses the String into a comma-delimited array, and then converts those Strings to Integers\n String[] desiredCircuitsString = inputFileLine[5].split(\",\");\n Integer[] desiredCircuitsInt = new Integer[desiredCircuitsString.length];\n for (int i = 0; i < desiredCircuitsString.length; i++) {\n desiredCircuitsInt[i] = Integer.parseInt(desiredCircuitsString[i]);\n }\n\n jugglers.add(Integer.parseInt(inputFileLine[1]),\n new Juggler(\n Integer.parseInt(inputFileLine[2]), // \"H\" value\n Integer.parseInt(inputFileLine[3]), // \"E\" value\n Integer.parseInt(inputFileLine[4]), // \"P\" value\n Arrays.asList(desiredCircuitsInt) // Desired circuits\n ));\n }\n }\n\n file.close();\n MAX_JUGGLERS_PER_CIRCUIT = jugglers.size() / circuits.size();\n }",
"private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void PrepareNextJogada() {\n if (vez == listaJogadores.size() - 1) {\n vez = 0;\n\n } else {\n vez++;\n }\n }",
"public void bake() {\n baked = true;\n\n this.registerItemsEffective();\n\n // Remove capability constructors for capabilities that are not initialized.\n removeNullCapabilities(capabilityConstructorsTile, capabilityConstructorsTileSuper, null);\n removeNullCapabilities(capabilityConstructorsEntity, capabilityConstructorsEntitySuper, null);\n removeNullCapabilities(capabilityConstructorsItem, capabilityConstructorsItemSuper, capabilityConstructorsItemInstance);\n\n // Bake all collections\n capabilityConstructorsTileSuper = ImmutableList.copyOf(capabilityConstructorsTileSuper);\n capabilityConstructorsEntitySuper = ImmutableList.copyOf(capabilityConstructorsEntitySuper);\n capabilityConstructorsItemSuper = ImmutableList.copyOf(capabilityConstructorsItemSuper);\n\n }",
"private static void buildTunnels()\n {\n //Initialize necessary member variables\n totalCost = 0;\n connectedHills = 1;\n \n //Create a disjoint set for all of the hills on the current campus\n h = scan.nextInt();\n campus = new DisjointSet(h);\n \n //Read how many tunnels can be built\n t = scan.nextInt();\n \n //Create an array for all the possible tunnels\n edges = new edge[t];\n \n //Loop through all of the possible tunnels\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Save all information for the current possible tunnel\n edges[tunnel] = new edge();\n }\n \n //Sort the array of tunnels by their costs\n Arrays.sort(edges);\n \n //Loop through all the possible tunnels again\n for (tunnel = 0; tunnel < t; tunnel++)\n {\n //Try to connect the hills with the current tunnel and check if it was successful\n if (campus.union(edges[tunnel].x - 1, edges[tunnel].y - 1))\n {\n //Add the cost to build that tunnel to the total cost\n totalCost += edges[tunnel].d;\n \n //Incrememnt the amount of total hills connected\n connectedHills++;\n }\n \n //Check if the tunnels have connected all of the hills\n if (connectedHills == h)\n {\n //Stop trying to build tunnels\n return;\n }\n }\n }",
"public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}",
"private void checkMineralCollisions() {\n\t\t//check collisions with silver\n\t\tint len = silverBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tSilver silver = silverBlocks.get(i);\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(silver.bounds, player.bounds)) {\n\t\t\t\t\tsilverComplete ++;\n\t\t\t\t\tsilverBlocks.remove(i);\n\t\t\t\t\tlen = silverBlocks.size();\n\t\t\t\t\tcash += 10;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\t\n\t\t//check collisions with gold\n\t\tlen = goldBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tGold gold = goldBlocks.get(i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(gold.bounds, player.bounds)) {\n\t\t\t\t\tgoldComplete ++;\n\t\t\t\t\tgoldBlocks.remove(i);\n\t\t\t\t\tlen = goldBlocks.size();\n\t\t\t\t\tcash += 50;\n\t\t\t\t} \n\t\t\t} catch (Exception e) {}\n\t\t}\n\t\t\n\t\t//check collisions with diamonds\n\t\tlen = diamondBlocks.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tDiamond diamond = diamondBlocks.get(i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif(OverlapTester.overlapRectangles(diamond.bounds, player.bounds)) {\n\t\t\t\t\tdiamondComplete ++;\n\t\t\t\t\tdiamondBlocks.remove(i);\n\t\t\t\t\tlen = diamondBlocks.size();\n\t\t\t\t\tcash += 150;\n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"private void divideTo3(Habitat habitat, Pool pool) {\n\t\tboolean found=false;\r\n\t\t\r\n\t\t// from two pools of size 4 construct 3 pools with 3,3 and 2 users\r\n\t\t\r\n\t\t//pool2.addUser(pool.getListOfUsers().get(0));\r\n\t\t//pool.removeUser(pool.getListOfUsers().get(0));\r\n\t\tPoolUtilities.setPool(pool);\r\n\t\tCollections.sort(habitat.getSivs(), PoolUtilities.ComparatorGC);\r\n\t\tfor(int i=0;i<habitat.getSivs().size() && !found ;i++)\r\n\t\t{\r\n\t\t\tif((habitat.getSivs().get(i).getListOfUsers().size()>3) && habitat.getSivs().get(i) != pool)\r\n\t\t\t{\r\n\t\t\t\tfor(int j=0;j<habitat.getSivs().get(i).getListOfUsers().size() && !found;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\t//int randomNum = rand.nextInt(habitat.getSivs().get(i).getListOfUsers().size());\r\n\t\t\t\t\tfor(int k=0;k<pool.getListOfUsers().size() && !found;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint numU1,numU2;\r\n\t\t\t\t\t\tnumU1 = habitat.getSivs().get(i).getListOfUsers().get(j).getNumUser();\r\n\t\t\t\t\t\tnumU2 = pool.getListOfUsers().get(k).getNumUser();\r\n\t\t\t\t\t\tif(Utilisateurs.getAuthorizedUsers()[numU1][numU2]==1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tPool pool2 = new Pool();\r\n\t\t\t\t\t\t\tpool2.addUser(habitat.getSivs().get(i).getListOfUsers().get(j));\r\n\t\t\t\t\t\t\tpool2.addUser(pool.getListOfUsers().get(k));\r\n\t\t\t\t\t\t\tif(pool2.buildRoutes())\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tpool.removeUser(pool.getListOfUsers().get(k));\r\n\t\t\t\t\t\t\t\thabitat.getSivs().get(i).removeUser(habitat.getSivs().get(i).getListOfUsers().get(j));\r\n\t\t\t\t\t\t\t\thabitat.getSivs().get(i).buildRoutes();\r\n\t\t\t\t\t\t\t\tpool.buildRoutes();\r\n\t\t\t\t\t\t\t\thabitat.addPool(pool2);\r\n\t\t\t\t\t\t\t\tfound=true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//pool2.addUser(user);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}",
"public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}",
"@Test\n @Order(1)\n void algorithms() {\n \n Combination initialComb = new Combination();\n for (int i = 0; i < assignementProblem.getAssignmentData().getLength(); i++) {\n initialComb.add((long) i + 1);\n }\n assignementProblem.setInCombination(initialComb);\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n }",
"@Override\n public void actionPerformed(ActionEvent event)\n {\n if(Database.checkUniqueCountyID(Integer.parseInt(Database.getUserInfo().get(7)))){ //if no election for that county\n electionIndex = insertElections(); //insert into election table\n Database.insertCandidates(candidates, electionIndex); //insert into candidates table\n }\n else{\n enterCandidateArea.setText(\"Ballot already created for \" + Database.getUserInfo().get(5) + \" county\");\n }\n for(Map.Entry<String,ArrayList<String>> e : candidates.entrySet()){ //clear ballot creation\n e.setValue(null );\n e.setValue(new ArrayList<String>() );\n }\n showCandidatesArea.setText(\"\");\n }",
"void tryToFindNextKing()\n {\n if (nodeIds.size() != 0)\n {\n int nextKingId = Collections.max(nodeIds);\n CommunicationLink nextKing = allNodes.get(nextKingId);\n nextKing.sendMessage(new Message(\n Integer.toString(nextKingId), nextKing.getInfo(), myInfo, KING_IS_DEAD));\n }\n }",
"public void getChampionBans() {\n\t\tcreateBlueBanHighlight();\n\t\tcreatePurpleBanHighlight();\n\t\tblueBan = true;\n\t\tArrayList<String> temp = CHAMPIONLIST;\n\t while (numBlueBans < 3 || numPurpleBans < 3) {\n\t \ttry {\n\t \t\tArrayList<String> aL = findChampions();\n\t \t\tif (!aL.equals(temp)) {\n\t \t\t\taddChampions(panel, aL);\n\t \t\t\ttemp = aL;\n\t \t\t}\n\t \t\tThread.sleep(100);\n\t \t} catch (InterruptedException e) {\n\t \t\tcontinue;\n\t \t}\n\t }\n\t}",
"private void updateActiveChallenge() {\n categories.get(indexOfActiveCategory).increaseIndexOfActiveChallenge();\n }",
"private void declareWinner(){\r\n System.out.println(\"All proposals received\");\r\n AID best = proposals.get(0).getSender();\r\n for(ACLMessage proposal: proposals){\r\n String time = proposal.getContent().replaceFirst(\"bid\\\\(\", \"\");\r\n time = time.replaceFirst(\" sec\\\\)\", \"\");\r\n String bestTimeString = \r\n proposal.getContent().\r\n replaceFirst(\"bid\\\\(\", \"\").\r\n replaceFirst(\" sec\\\\)\", \"\");\r\n int bestTime = Integer.parseInt(bestTimeString);\r\n int propTime = Integer.parseInt(time);\r\n if (bestTime > propTime) {\r\n best = proposal.getSender();\r\n }\r\n }\r\n sendMessage(best, \"\", ACLMessage.ACCEPT_PROPOSAL);\r\n Object[] ob = new Object[2];\r\n ob[0] = best;\r\n ob[1] = currentPartial;\r\n expectedReturn.add(ob);\r\n System.out.println(\"Accepting proposal from \" + best.getLocalName());\r\n for(ACLMessage proposal: proposals){\r\n if(!proposal.getSender().equals(best)){\r\n sendMessage(proposal.getSender(), \"\", ACLMessage.REJECT_PROPOSAL);\r\n }\r\n }\r\n proposals.clear();\r\n solvables.remove(0);\r\n if(!solvables.isEmpty()){\r\n \r\n auctionJob(solvables.get(0));\r\n }\r\n }",
"public void createCariculum(){\n Set<Session> s = new HashSet<>();\n allCombinations.clear();\n RunAlgo(0, s, createModel());\n filteredResults = allCombinations;//check later if need to adjust.\n }",
"public void createDeckBuilding() {\n\t\tboolean stop = false;\n\t\twhile (this.deckBuilding.size() < 5 && stop == false) {\n\t\t\tCard cardBuilding;\n\t\t\tint number = random.nextInt(this.building.size() + this.machine.size());\n\t\t\tif (number < this.building.size()) {\n\t\t\t\tcardBuilding = pickOnThePioche(this.building);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcardBuilding = pickOnThePioche(this.machine);\n\t\t\t\tif (cardBuilding.getName().equals(\"Stop\")) {\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t\tstop = true;\n\t\t\t\t} else {\n\t\t\t\t\tthis.building.remove(cardBuilding);\n\t\t\t\t\tthis.deckBuilding.add((IBuilding) cardBuilding);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void tryStand() {\n if(player.getHand().size() > 0){\n firstStand = true;\n dealerTurn(1);\n } else{\n errorFlag = true;\n userMessage = \"You must get your initial hand dealt before you can stand\";\n }\n\n\n }",
"void setAdjForFirstType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1], null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }",
"private void move3(Habitat habitat,Pool pool)\r\n\t{\r\n\t\t// TODO Auto-generated method stub\r\n\t\tboolean moved = false;\r\n\t\tPool clonedPool=null;\r\n\t\tArrayList<Integer> tabuSivs = new ArrayList<Integer>();\r\n\t\ttabuSivs.add(-1);\r\n\t\t\r\n\t\t//Sort the users of the pool compared to gravity center\r\n\t\t//Collections.sort(pool.getListOfUsers(), User.ComparatorDistG);\r\n\t\t\r\n\t\tfor(int i =0;i<habitat.getSivs().size() - 1 && !moved;i++)\r\n\t\t{\r\n\t\t\tint k = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\tint loops = 0;\r\n\t\t\twhile((habitat.getSivs().get(k) == pool || habitat.getSivs().get(k).getRestCarCap()==0 || tabuSivs.contains(k)) && loops<10 )\r\n\t\t\t{\r\n\t\t\t\tk = (new Random()).nextInt(habitat.getSivs().size());\r\n\t\t\t\tloops++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(!tabuSivs.contains(k))\r\n\t\t\t{\r\n\t\t\t\ttabuSivs.add(k);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if(habitat.getSivs().get(i) != pool && habitat.getSivs().get(i).getListOfUsers().size()==1) \r\n\t\t\tif(habitat.getSivs().get(k) != pool && habitat.getSivs().get(k).getRestCarCap()>0)\r\n\t\t\t{\r\n\t\t\t\tclonedPool = (Pool) pool.clone();\r\n\t\t\t\t//for(int j=0;j<pool.getListOfUsers().size() && !moved;j++)\r\n\t\t\t\tfor(int j=pool.getListOfUsers().size() - 1; j>=0 && !moved;j--)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(habitat.getSivs().get(k).areAllUsersAuthorized(clonedPool.getListOfUsers().get(j).getNumUser()))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thabitat.getSivs().get(k).addUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\tif(habitat.getSivs().get(k).buildRoutes())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tmoved = true;\r\n\t\t\t\t\t\t\tclonedPool.getListOfUsers().remove(j);\r\n\t\t\t\t\t\t\tclonedPool.buildRoutes();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).removeUser(clonedPool.getListOfUsers().get(j));\r\n\t\t\t\t\t\t\thabitat.getSivs().get(k).buildRoutes();\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\t\r\n\t\tif(moved)\r\n\t\t{\r\n\t\t\thabitat.removePool(pool);\r\n\t\t\thabitat.addPool(clonedPool);\r\n\t\t}\r\n\t}",
"private void plantMushroom(){\r\n\t\tif (rand.nextInt(200) < this.BIRTH_RATE){\r\n\t\t\tint plant = rand.nextInt(5);\r\n\r\n\t\t\tMushroom mush = null;\r\n\r\n\t\t\tswitch (plant){\r\n\t\t\tcase 0:\r\n\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\r\n\t\t\t\tfor (int count = 0; count < mySnake.getList().size(); count++){\r\n\t\t\t\t\tif (count < shrooms.size()){\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * These while functions make sure that the mushrooms are not spawned on top of any\r\n\t\t\t\t\t\t * other mushroom or on top of the snake itself.\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){\r\n\t\t\t\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count))){\r\n\t\t\t\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\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\tbreak;\r\n\t\t\tcase 1:\r\n\t\t\t\tmush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\r\n\t\t\t\tfor (int count = 0; count < mySnake.getList().size(); count++){\r\n\t\t\t\t\tif (count < shrooms.size()){\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){\r\n\t\t\t\t\t\t\tmush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count))){\r\n\t\t\t\t\t\t\tmush = new RedMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\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\tbreak;\r\n\t\t\tcase 2:\r\n\t\t\t\tmush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\r\n\t\t\t\tfor (int count = 0; count < mySnake.getList().size(); count++){\r\n\t\t\t\t\tif (count < shrooms.size()){\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){\r\n\t\t\t\t\t\t\tmush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count))){\r\n\t\t\t\t\t\t\tmush = new PurpleMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\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\tbreak;\r\n\t\t\tcase 3:\r\n\t\t\t\tmush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\r\n\t\t\t\tfor (int count = 0; count < mySnake.getList().size(); count++){\r\n\t\t\t\t\tif (count < shrooms.size()){\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){\r\n\t\t\t\t\t\t\tmush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count))){\r\n\t\t\t\t\t\t\tmush = new BlueMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\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\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\r\n\t\t\t\tfor (int count = 0; count < mySnake.getList().size(); count++){\r\n\t\t\t\t\tif (count < shrooms.size()){\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count)) || mush.contains(shrooms.get(count))){\r\n\t\t\t\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\twhile (mush.contains(mySnake.getList().get(count))){\r\n\t\t\t\t\t\t\tmush = new GreenMushroom(rand.nextInt(MAX_WIDTH/10)*10, rand.nextInt(MAX_HEIGHT/10)*10);\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\tbreak;\r\n\t\t\t}\r\n\r\n\t\t\tshrooms.add(mush);\t//it adds the crated mushroom to the list of mushrooms\r\n\t\t}\r\n\t}",
"private ArrayList<Cell> createSuccesors(Cell current, boolean makeConnected) {\r\n\t\t\tint r = current.row;\r\n\t\t\tint c = current.col;\r\n\t\t\t// We create an empty list for the successors of the current cell.\r\n\t\t\tArrayList<Cell> temp = new ArrayList<>();\r\n\t\t\t// With diagonal movements priority is:\r\n\t\t\t// 1: Up 2: Up-right 3: Right 4: Down-right\r\n\t\t\t// 5: Down 6: Down-left 7: Left 8: Up-left\r\n\r\n\t\t\t// Without diagonal movements the priority is:\r\n\t\t\t// 1: Up 2: Right 3: Down 4: Left\r\n\r\n\t\t\t// If not at the topmost limit of the grid\r\n\t\t\t// and the up-side cell is not an obstacle ...\r\n\t\t\tif (r > 0 && grid[r - 1][c] != OBST &&\r\n\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t// not already belongs neither to the OPEN SET nor to the\r\n\t\t\t\t\t// CLOSED SET ...\r\n\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t: isInList(openSet, new Cell(r - 1, c)) == -1 && isInList(closedSet, new Cell(r - 1, c)) == -1)) {\r\n\t\t\t\tCell cell = new Cell(r - 1, c);\r\n\t\t\t\t// In the case of Dijkstra's algorithm we can not append to\r\n\t\t\t\t// the list of successors the \"naked\" cell we have just created.\r\n\t\t\t\t// The cell must be accompanied by the label 'dist',\r\n\t\t\t\t// so we need to track it down through the list 'graph'\r\n\t\t\t\t// and then copy it back to the list of successors.\r\n\t\t\t\t// The flag makeConnected is necessary to be able\r\n\t\t\t\t// the present method createSuccesors() to collaborate\r\n\t\t\t\t// with the method findConnectedComponent(), which creates\r\n\t\t\t\t// the connected component when Dijkstra's initializes.\r\n\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// ... update the pointer of the up-side cell so it points\r\n\t\t\t\t\t// the current one ...\r\n\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t// ... and add the up-side cell to the successors of the\r\n\t\t\t\t\t// current one.\r\n\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// If we are not even at the topmost nor at the rightmost border\r\n\t\t\t\t// of the grid\r\n\t\t\t\t// and the up-right-side cell is not an obstacle ...\r\n\t\t\t\tif (r > 0 && c < columns - 1 && grid[r - 1][c + 1] != OBST &&\r\n\t\t\t\t\t\t// ... and one of the upper side or right side cells are\r\n\t\t\t\t\t\t// not obstacles ...\r\n\t\t\t\t\t\t// (because it is not reasonable to allow\r\n\t\t\t\t\t\t// the robot to pass through a \"slot\")\r\n//\t\t\t\t(grid[r - 1][c] != OBST || grid[r][c + 1] != OBST) &&\r\n\t\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t\t// not already belongs neither to the OPEN SET nor\r\n\t\t\t\t\t\t// CLOSED SET ...\r\n\t\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t\t: isInList(openSet, new Cell(r - 1, c + 1)) == -1\r\n\t\t\t\t\t\t\t\t&& isInList(closedSet, new Cell(r - 1, c + 1)) == -1)) {\r\n\t\t\t\t\tCell cell = new Cell(r - 1, c + 1);\r\n\t\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// ... update the pointer of the up-right-side cell so\r\n\t\t\t\t\t\t// it points the current one ...\r\n\t\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t\t// ... and add the up-right-side cell to the successors\r\n\t\t\t\t\t\t// of the current one.\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If not at the rightmost limit of the grid\r\n\t\t\t// and the right-side cell is not an obstacle ...\r\n\t\t\tif (c < columns - 1 && grid[r][c + 1] != OBST &&\r\n\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t// not already belongs neither to the OPEN SET nor to the\r\n\t\t\t\t\t// CLOSED SET ...\r\n\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t: isInList(openSet, new Cell(r, c + 1)) == -1 && isInList(closedSet, new Cell(r, c + 1)) == -1)) {\r\n\t\t\t\tCell cell = new Cell(r, c + 1);\r\n\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// ... update the pointer of the right-side cell so it\r\n\t\t\t\t\t// points the current one ...\r\n\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t// ... and add the right-side cell to the successors of the\r\n\t\t\t\t\t// current one.\r\n\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// If we are not even at the lowermost nor at the rightmost\r\n\t\t\t\t// border of the grid\r\n\t\t\t\t// and the down-right-side cell is not an obstacle ...\r\n\t\t\t\tif (r < rows - 1 && c < columns - 1 && grid[r + 1][c + 1] != OBST &&\r\n\t\t\t\t\t\t// ... and one of the down-side or right-side cells are\r\n\t\t\t\t\t\t// not obstacles ...\r\n//\t\t\t\t(grid[r + 1][c] != OBST || grid[r][c + 1] != OBST) &&\r\n\t\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t\t// not already belongs neither to the OPEN SET nor to\r\n\t\t\t\t\t\t// the CLOSED SET ...\r\n\t\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t\t: isInList(openSet, new Cell(r + 1, c + 1)) == -1\r\n\t\t\t\t\t\t\t\t&& isInList(closedSet, new Cell(r + 1, c + 1)) == -1)) {\r\n\t\t\t\t\tCell cell = new Cell(r + 1, c + 1);\r\n\t\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// ... update the pointer of the downr-right-side cell\r\n\t\t\t\t\t\t// so it points the current one ...\r\n\t\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t\t// ... and add the down-right-side cell to the\r\n\t\t\t\t\t\t// successors of the current one.\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If not at the lowermost limit of the grid\r\n\t\t\t// and the down-side cell is not an obstacle ...\r\n\t\t\tif (r < rows - 1 && grid[r + 1][c] != OBST &&\r\n\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t// not already belongs neither to the OPEN SET nor to the\r\n\t\t\t\t\t// CLOSED SET ...\r\n\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t: isInList(openSet, new Cell(r + 1, c)) == -1 && isInList(closedSet, new Cell(r + 1, c)) == -1)) {\r\n\t\t\t\tCell cell = new Cell(r + 1, c);\r\n\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// ... update the pointer of the down-side cell so it points\r\n\t\t\t\t\t// the current one ...\r\n\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t// ... and add the down-side cell to the successors of the\r\n\t\t\t\t\t// current one.\r\n\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// If we are not even at the lowermost nor at the leftmost\r\n\t\t\t\t// border of the grid\r\n\t\t\t\t// and the down-left-side cell is not an obstacle ...\r\n\t\t\t\tif (r < rows - 1 && c > 0 && grid[r + 1][c - 1] != OBST &&\r\n\t\t\t\t\t\t// ... and one of the down-side or left-side cells are\r\n\t\t\t\t\t\t// not obstacles ...\r\n//\t\t\t\t(grid[r + 1][c] != OBST || grid[r][c - 1] != OBST) &&\r\n\t\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t\t// not already belongs neither to the OPEN SET nor to\r\n\t\t\t\t\t\t// the CLOSED SET ...\r\n\t\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t\t: isInList(openSet, new Cell(r + 1, c - 1)) == -1\r\n\t\t\t\t\t\t\t\t&& isInList(closedSet, new Cell(r + 1, c - 1)) == -1)) {\r\n\t\t\t\t\tCell cell = new Cell(r + 1, c - 1);\r\n\t\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// ... update the pointer of the down-left-side cell so\r\n\t\t\t\t\t\t// it points the current one ...\r\n\t\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t\t// ... and add the down-left-side cell to the successors\r\n\t\t\t\t\t\t// of the current one.\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// If not at the leftmost limit of the grid\r\n\t\t\t// and the left-side cell is not an obstacle ...\r\n\t\t\tif (c > 0 && grid[r][c - 1] != OBST &&\r\n\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t// not already belongs neither to the OPEN SET nor to the\r\n\t\t\t\t\t// CLOSED SET ...\r\n\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t: isInList(openSet, new Cell(r, c - 1)) == -1 && isInList(closedSet, new Cell(r, c - 1)) == -1)) {\r\n\t\t\t\tCell cell = new Cell(r, c - 1);\r\n\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// ... update the pointer of the left-side cell so it points\r\n\t\t\t\t\t// the current one ...\r\n\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t// ... and add the left-side cell to the successors of the\r\n\t\t\t\t\t// current one.\r\n\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (diagonal.isSelected()) {\r\n\t\t\t\t// If we are not even at the topmost nor at the leftmost border\r\n\t\t\t\t// of the grid\r\n\t\t\t\t// and the up-left-side cell is not an obstacle ...\r\n\t\t\t\tif (r > 0 && c > 0 && grid[r - 1][c - 1] != OBST &&\r\n\t\t\t\t\t\t// ... and one of the up-side or left-side cells are not\r\n\t\t\t\t\t\t// obstacles ...\r\n//\t\t\t\t(grid[r - 1][c] != OBST || grid[r][c - 1] != OBST) &&\r\n\t\t\t\t\t\t// ... and (only in the case are not running the A* or\r\n\t\t\t\t\t\t// Greedy)\r\n\t\t\t\t\t\t// not already belongs neither to the OPEN SET nor to\r\n\t\t\t\t\t\t// the CLOSED SET ...\r\n\t\t\t\t((aStar.isSelected() || guloso.isSelected() || dijkstra.isSelected()) ? true\r\n\t\t\t\t\t\t: isInList(openSet, new Cell(r - 1, c - 1)) == -1\r\n\t\t\t\t\t\t\t\t&& isInList(closedSet, new Cell(r - 1, c - 1)) == -1)) {\r\n\t\t\t\t\tCell cell = new Cell(r - 1, c - 1);\r\n\t\t\t\t\tif (dijkstra.isSelected()) {\r\n\t\t\t\t\t\tif (makeConnected) {\r\n\t\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tint graphIndex = isInList(graph, cell);\r\n\t\t\t\t\t\t\tif (graphIndex > -1) {\r\n\t\t\t\t\t\t\t\ttemp.add(graph.get(graphIndex));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t// ... update the pointer of the up-left-side cell so it\r\n\t\t\t\t\t\t// points the current one ...\r\n\t\t\t\t\t\tcell.prev = current;\r\n\t\t\t\t\t\t// ... and add the up-left-side cell to the successors\r\n\t\t\t\t\t\t// of the current one.\r\n\t\t\t\t\t\ttemp.add(cell);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// When DFS algorithm is in use, cells are added one by one at the\r\n\t\t\t// beginning of the\r\n\t\t\t// OPEN SET list. Because of this, we must reverse the order of\r\n\t\t\t// successors formed,\r\n\t\t\t// so the successor corresponding to the highest priority, to be\r\n\t\t\t// placed\r\n\t\t\t// the first in the list.\r\n\t\t\t// For the Greedy, A* and Dijkstra's no issue, because the list is\r\n\t\t\t// sorted\r\n\t\t\t// according to 'f' or 'dist' before extracting the first element\r\n\t\t\t// of.\r\n\t\t\tif (dfs.isSelected()) {\r\n\t\t\t\tCollections.reverse(temp);\r\n\t\t\t}\r\n\t\t\treturn temp;\r\n\t\t}",
"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}",
"public void initiateGame() {\n Collections.shuffle(players);\n Collections.shuffle(categories);\n for (Category c : categories) {\n c.shuffleChallenges();\n }\n }",
"@Override\r\n public void BuildCompetitors() {\r\n Competitor c = new Skier();\r\n competition.addCompetitor(c);\r\n ((Skier) c).registerObserver(gui);\r\n for (int i = 0; i < N-1;i++){\r\n competition.addCompetitor(c.Clone());\r\n ((Skier) c).registerObserver(gui);\r\n }\r\n }",
"public void kickToLowerDesiredCircuit(int jugglerBeingKicked, int circuitJugglerIsCurrentlyIn) {\n circuits.get(circuitJugglerIsCurrentlyIn).getJugglersInCircuit().remove(\n circuits.get(circuitJugglerIsCurrentlyIn).getJugglersInCircuit().indexOf(jugglerBeingKicked));\n\n\n }",
"private void initNextPiece() {\n currentPiece = nextPieces.get(0);\n if (!currentPiece.initPosition(grid) && gameOver == false) {\n musicsReader.destroyAllPlayers();\n musicsReader.play(\"gameover.mp3\", 1);\n gameOver = true;\n }\n nextPieces.remove(0);\n int r = (int) (Math.random() * suppliers.size());\n nextPieces.add((Piece) suppliers.get(r).get());\n sincePieceDown = null;\n sinceLastMove = null;\n }",
"public void vampireAdd(){\n //Will permit to know if every vampires are different\n Set<Being> swap = new HashSet();\n\n //Iterate till the set is equal to the number of vampire we need\n while(swap.size() != this.vampires){\n //Create a new vampire\n Vampire vamp = vampireSet();\n //Test if the vampire is unique\n if(swap.add(vamp)){\n //Add the vampire to the real list if it's unique\n this.beings.add(vamp);\n }\n }\n //Clear the set, I guess it's optional\n swap.clear();\n }",
"@Override\n public Matching stableMarriageGaleShapley_hospitaloptimal(Matching marriage) {\n int m = marriage.getHospitalCount();\n int n = marriage.getResidentCount();\n\n ArrayList<ArrayList<Integer>> hospital_preference = marriage.getHospitalPreference();\n ArrayList<ArrayList<Integer>> resident_preference = marriage.getResidentPreference();\n\n ArrayList<Integer> hospitalSlots = marriage.getHospitalSlots();\n\n ArrayList<Integer> residentMatching = new ArrayList<Integer>();\n arrlistInit(residentMatching, n, -1, false);\n\n /*list of residents that each hospital can propose to\n * Initially equals the hospital_preference list*/\n ArrayList<ArrayList<Integer>> residentsToProposeTo = new ArrayList<ArrayList<Integer>>();\n for (int i = 0; i < m; i++) //O(m)\n residentsToProposeTo.add(new ArrayList<Integer>(hospital_preference.get(i)));\n\n /*list of hospitals that still can propose(has free spots and hasn't proposed to every resident)*/\n ArrayList<Integer> proposing = new ArrayList<Integer>();\n arrlistInit(proposing, m, 0, true); //O(n)\n\n /*Keep track of each hospital matched residents*/\n ArrayList<ArrayList<Integer>> hospitalResidents = new ArrayList<ArrayList<Integer>>(0);\n for (int i = 0; i < m; i++) //O(m)\n hospitalResidents.add(new ArrayList<Integer>(0));\n\n /*Looping through each hospital in the proposing list\n * Even though some hospital may be added again in the proposing list, each hospital can propose at most once to each resident\n * So total running time of the loop will be O(m*n)*/\n while (!proposing.isEmpty()) {\n for (int hospitalIndex = 0; hospitalIndex < proposing.size(); hospitalIndex++) {\n /*Get the head of the proposing Arraylist*/\n int hospital = proposing.get(0);\n int residentIndex;\n int resident = 0;\n for (residentIndex = 0; residentIndex < residentsToProposeTo.get(hospital).size() && proposing.contains(hospital); hospitalIndex++) {\n /*Get the next resident the hospital hasn't proposed to yed*/\n resident = residentsToProposeTo.get(hospital).get(0);\n int hospitalRank = resident_preference.get(resident).indexOf(hospital);\n\n /*resident is matched, compare the hospitals rank*/\n if (residentMatching.get(resident) != -1) {\n int matchedHospital = residentMatching.get(resident);\n int matchedHospitalRank = resident_preference.get(resident).indexOf(matchedHospital);\n if (hospitalRank < matchedHospitalRank) {\n /*1.Add/remove to hospitalResidents\n * 2.Add in resident-matching\n * 3.Add matchedHospital to the proposing list if it's not in it\n */\n hospitalResidents.get(hospital).add(resident);\n hospitalResidents.get(matchedHospital).remove(hospitalResidents.get(matchedHospital).indexOf(resident));\n residentMatching.set(resident, hospital);\n if (!proposing.contains(matchedHospital))\n proposing.add(matchedHospital);\n\n }\n }\n /*resident is free, match with the hospital*/\n else {\n /*1.Add in hospitalResidents\n * 2.Add in resident-matching\n */\n hospitalResidents.get(hospital).add(resident);\n residentMatching.set(resident, hospital);\n }\n\n /*1.Remove resident from the hospital's list of residentsToProposeTo\n * 2.If hospital's slots are full, remove hospital from the proposing list\n */\n residentsToProposeTo.get(hospital).remove(residentsToProposeTo.get(hospital).indexOf(resident));\n if (hospitalResidents.get(hospital).size() >= hospitalSlots.get(hospital))\n proposing.remove(proposing.indexOf(hospital));\n }\n }\n }\n marriage.setResidentMatching(residentMatching);\n return marriage;\n }",
"private void checkRequiredSemaphores() {\n if (car.start == 1){\n if (car.end == 2)\n requiredSemaphores.add(Street.sw);\n else if (car.end == 3){\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n }\n // end = 4\n else {\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n }\n }\n else if (car.start == 2){\n if (car.end == 3)\n requiredSemaphores.add(Street.se);\n else if (car.end == 4){\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n }\n // end = 1\n else {\n requiredSemaphores.add(Street.se);\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n }\n }\n else if (car.start == 3){\n if (car.end == 4)\n requiredSemaphores.add(Street.ne);\n else if (car.end == 1){\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n }\n // end = 2\n else{\n requiredSemaphores.add(Street.ne);\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n }\n }\n // start = 4\n else{\n if (car.end == 1)\n requiredSemaphores.add(Street.nw);\n else if (car.end == 2){\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n }\n // end = 3\n else {\n requiredSemaphores.add(Street.nw);\n requiredSemaphores.add(Street.sw);\n requiredSemaphores.add(Street.se);\n }\n }\n }",
"public void setShortest()\n\t{\n\t\tint numberOfSpades = 0;\n\t\tint numberOfHearts = 0;\n\t\tint numberOfDiamonds = 0;\n\t\tint numberOfClubs = 0;\n\t\t\n\t\tshortest = 3;\n\t\t\n\t\t\t// count the number of each suit\n\t\tfor (int i=0; i<getCards().size(); i++)\n\t\t{\n\t\t\tswitch (getCards().get(i).getSuit())\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tnumberOfSpades++;\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 1:\n\t\t\t\tnumberOfHearts++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tnumberOfDiamonds++;\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tnumberOfClubs++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\t// test for aces, kings, or queens in spades\n\t\tboolean spadeAce = false;\n\t\tboolean spadeKing = false;\n\t\tboolean spadeQueen = false;\n\t\t\n\t\tCard spadeQueenCheck = new Card(0, 12);\n\t\tCard spadeKingCheck = new Card(0, 13);\n\t\tCard spadeAceCheck = new Card(0, 14);\n\t\t\n\t\tfor (int i=0; i<getCards().size(); i++)\n\t\t{\n\t\t\tif(getCards().get(i) == spadeQueenCheck)\n\t\t\t{\n\t\t\t\tspadeQueen = true;\n\t\t\t}\n\t\t\tif(getCards().get(i) == spadeKingCheck)\n\t\t\t{\n\t\t\t\tspadeKing = true;\n\t\t\t}\n\t\t\tif(getCards().get(i) == spadeAceCheck)\n\t\t\t{\n\t\t\t\tspadeAce = true;\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Test\n void pass3CardsRound2(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(2);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of SPADES[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n System.out.println(testDealer.getBotC().getHandCards());\n assertEquals(\"QUEEN of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n System.out.println(testDealer.getUser().getHandCards());\n assertEquals(\"QUEEN of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"static HashMap <String, ArrayList> startGame(HashMap <String, ArrayList> paramsToFront) {\n CardsActions action = new CardsActions();\n ArrayList <Card> cards = new ArrayList<>();\n ArrayList<Card> upTable = new ArrayList<>();\n ArrayList<Card> downTable = new ArrayList<>(); \n ArrayList<String> state = new ArrayList<>(); \n \n state.add(\"player_attak\"); \n\n ArrayList<String> userId = new ArrayList<>();\n double id = Math.random();\n userId.add(Double.toString(id));\n\n cards = CardsActions.createCards(cards);\n \n Card trumpCard = action.setTrumpCard(cards);\n ArrayList <Card> trumpCards = new ArrayList<>();\n trumpCards.add(trumpCard);\n // System.out.println(\"Козырь: \" + trumpCard.getName()); \n\n ArrayList <Card> playerHand = new ArrayList<>();\n action.takeCards(playerHand,cards); \n \n ArrayList <Card> compHand = new ArrayList<>();\n action.takeCards(compHand,cards);\n\n ArrayList <Integer> quantaty = new ArrayList<>();\n int quantatyComp = compHand.size();\n quantaty.add(quantatyComp);\n\n ArrayList <Integer> deck = new ArrayList<>();\n int quantatyCards = cards.size();\n deck.add(quantatyCards);\n\n for (int j = 102,i=0;i<cards.size();i++){\n // Card minTrump = cards.get(i);\n Card checker = new Card (j,trumpCard.getMasti()); \n\n if (checker.isSameRank(cards)) {j++;} \n else { \n if (checker.isSameRank(compHand)) {\n System.out.println(\"Комп ходит первый\");\n turn.compAttak (playerHand,compHand,table,cards); \n } \n else {\n turn.humanAttak(playerHand,compHand,table,cards);\n } \n }\n }\n \n paramsToFront.put(\"player_hand\", playerHand);\n paramsToFront.put(\"up_table\", upTable);\n paramsToFront.put(\"down_table\", downTable);\n paramsToFront.put(\"trump_cards\", trumpCards);\n paramsToFront.put(\"deck\", deck);\n paramsToFront.put(\"comp_hand\", quantaty);\n paramsToFront.put(\"user_id\", userId);\n paramsToFront.put(\"state\", state);\n\n return paramsToFront;\n }",
"@Test\n void pass3CardsRound3(){\n Dealer testDealer = new Dealer();\n testDealer.initDealer();\n testDealer.setRoundCount(3);\n \n List<Card> heartHand, spadeHand, clubHand, diamondHand,userPassedCards;\n\n heartHand = new ArrayList<Card>();\n spadeHand = new ArrayList<Card>();\n clubHand = new ArrayList<Card>();\n diamondHand = new ArrayList<Card>();\n userPassedCards = new ArrayList<Card>();\n \n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.ACE, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.KING, true));\n userPassedCards.add(new Card(Suit.DIAMONDS, Rank.QUEEN, true));\n\n \n for(Card c:userPassedCards) {\n c.setOwnerOfCard(\"user\");\n }\n\n for (Rank rank : Rank.values()) {\n heartHand.add(new Card(Suit.HEARTS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n spadeHand.add(new Card(Suit.SPADES, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n clubHand.add(new Card(Suit.CLUBS, rank, true));\n }\n\n for (Rank rank : Rank.values()) {\n diamondHand.add(new Card(Suit.DIAMONDS, rank, true));\n }\n \n testDealer.getBotA().fillHandCards(heartHand);\n testDealer.getBotB().fillHandCards(spadeHand);\n testDealer.getBotC().fillHandCards(clubHand);\n testDealer.getUser().fillHandCards(diamondHand);\n\n testDealer.distributePassedCards(userPassedCards);\n\n assertEquals(13, testDealer.getUserHandCards().size());\n assertEquals(13, testDealer.getBotA().getHandCards().size());\n assertEquals(13, testDealer.getBotB().getHandCards().size());\n assertEquals(13, testDealer.getBotC().getHandCards().size());\n\n assertEquals(\"QUEEN of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(0).toString());\n assertEquals(\"KING of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(1).toString());\n assertEquals(\"ACE of CLUBS[pickable by botA]\", testDealer.getBotA().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(0).toString());\n assertEquals(\"KING of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(1).toString());\n assertEquals(\"ACE of DIAMONDS[pickable by botB]\", testDealer.getBotB().getHandCards().get(2).toString());\n\n assertEquals(\"QUEEN of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(10).toString());\n assertEquals(\"KING of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(11).toString());\n assertEquals(\"ACE of HEARTS[pickable by botC]\", testDealer.getBotC().getHandCards().get(12).toString());\n\n assertEquals(\"QUEEN of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(10).toString());\n assertEquals(\"KING of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(11).toString());\n assertEquals(\"ACE of SPADES[pickable by user]\", testDealer.getUser().getHandCards().get(12).toString());\n }",
"public void LabelingCandiesToDestroy() {\n int i;\n int j;\n int checkIfSame = 1;\n int NumOfSame = 1;\n System.out.println(\" \");\n //the two sets of nested for loops are used to check for combinations in different directions (top-bottom, left-right)\n for (i = 0; i < 9; i++) {\n for (j = 0; j < 9; j++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - j)) { //when there is a valid combination, it labels the candies as 9\n if (pictures[i][j] == pictures[i][j + checkIfSame]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i][j + k] = 9; //9 is set to candies that have a 3 or more combinations\n }\n }\n\n }\n }\n //this is the second set for the other direction\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n NumOfSame = 1;\n checkIfSame = 1;\n while (checkIfSame < (9 - i)) {\n if (pictures[i][j] == pictures[i + checkIfSame][j]) {\n checkIfSame++;\n NumOfSame++;\n } else {\n break;\n }\n }\n if (NumOfSame > 2) {\n for (int k = 0; k < NumOfSame; k++) {\n pictures2[i + k][j] = 9;\n }\n }\n\n }\n }\n\n for (j = 0; j < 9; j++) {\n for (i = 0; i < 9; i++) {\n System.out.print(pictures2[i][j] + \" \");\n }\n System.out.println();\n }\n DestroyCandies();\n }",
"private void cull() {\n\t\tArrayList<NQueenBoard> temp = new ArrayList<NQueenBoard>();\n\t\ttemp.add(populationArray.get(0));\n\t\tfor (int i = 1; i < population; ++i) {\n\t\t\tfor (int j = 0; j < temp.size(); ++j) {\n\t\t\t\tif (populationArray.get(i).getFitness() > temp.get(j).getFitness()) {\n\t\t\t\t\ttemp.add(j, populationArray.get(i));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (populationArray.get(i).getFitness() <= temp.get(temp.size()-1).getFitness()) {\n\t\t\t\ttemp.add(populationArray.get(i));\n\t\t\t}\n\t\t}\n\t\t//replace the worst half with newly generated random boards\n\t\tfor (int i = temp.size()/2; i < temp.size(); ++i) {\n\t\t\ttemp.set(i, new NQueenBoard(n));\n\t\t}\n\t\tpopulationArray = temp;\n\t}",
"private void giveBirthToRabbits() {\n\t\tfor (int i = (rabbitList.size() - 1); i >= 0; i--) {\n\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\tif (rabbit.isReproducing()) {\n\t\t\t\taddNewRabbit();\n\t\t\t}\n\t\t}\n\t}",
"private void divideBest(Habitat habitat,Pool pool) {\n\t\tPool pool2 = new Pool();\r\n\t\t//Random rand2 = new Random();\r\n\t\t\r\n\t\t\r\n\t\tpool2.addUser(pool.getListOfUsers().get(0));\r\n\t\tpool.removeUser(pool.getListOfUsers().get(0));\r\n\t\t//int randomNum = rand2.nextInt(pool.getListOfUsers().size());\r\n\t\tUser user = Users.getNearestInList(pool2.getListOfUsers().get(0), pool.getListOfUsers()); \r\n\t\tpool2.addUser(user);\r\n\t\t//pool.removeUser(pool.getListOfUsers().get(randomNum));\r\n\t\tpool.removeUser(user);\r\n\t\t\r\n\t\tpool.buildRoutes();\r\n\t\tpool2.buildRoutes();\r\n\t\t\r\n\t\thabitat.addPool(pool2);\r\n\t\t\r\n\t}",
"public void populate1()\r\n\t{\r\n\t\tRandom gen=new Random();\r\n\t\tint add=(gen.nextInt(8)+5);\r\n\t\twhile (add>0)\r\n\t\t{\r\n\t\t\t/**If the max capacity is reach, will break out to prevent further car instantiation*/\r\n\t\t\tif (carNum==LIMIT)\r\n\t\t\t{\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tboolean straight;\r\n\t\t\tint straightNum=gen.nextInt(2);\r\n\t\t\tif (straightNum==0)\r\n\t\t\t\tstraight=true;\r\n\t\t\telse\r\n\t\t\t\tstraight=false;\r\n\t\t\tint directionNumber=gen.nextInt(4);\r\n\t\t\tDirection direction=null;\r\n\t\t\tStreet street=null;\r\n\t\t\tswitch (directionNumber)\r\n\t\t\t{\r\n\t\t\t\tcase 0:\r\n\t\t\t\t\tdirection=Direction.N;\r\n\t\t\t\t\tstreet=Street.CHURCH;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tdirection=Direction.S;\r\n\t\t\t\t\tstreet=Street.CHURCH;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tdirection=Direction.E;\r\n\t\t\t\t\tstreet=Street.MAIN;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tdirection=Direction.W;\r\n\t\t\t\t\tstreet=Street.MAIN;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tdefault:\r\n\t\t\t\t\tSystem.out.println(\"There was an error with your direction. Please look into this problem.\");\r\n\t\t\t}\r\n\t\t\tVehicle car=new Vehicle(carNum, time, direction, street, straight);\r\n\t\t\tcarNum++;\r\n\t\t\tif (car.getStraight())\r\n\t\t\t{\r\n\t\t\t\tswitch (car.getDirection())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase N:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in North straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchNorthStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase S:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in South straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchSouthStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase W:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in West straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainWestStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase E:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in East straight\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainEastStraight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"There wan an error enquing cars in the pre propulate method. You should look into this.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tswitch (car.getDirection())\r\n\t\t\t\t{\r\n\t\t\t\t\tcase N:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in North Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchNorthRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase S:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in South Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tChurchSouthRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase W:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in West Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainWestRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase E:\r\n\t\t\t\t\t\t//System.out.println(\"I was put in East Right\");\r\n\t\t\t\t\t\t//System.out.println(car);\r\n\t\t\t\t\t\tMainEastRight.enqueue(car);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tSystem.out.println(\"There wan an error enquing cars in the pre propulate method. You should look into this.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tadd--;\t\r\n\t\t}\t\r\n\t}",
"void set( couple ch)\r\n { \r\n \r\n //couple ch = itr.next();\r\n ch.g1.sethappy(ch.bucket);\r\n ch.b1.sethappy(ch.bucket);\r\n ch.happiness = ch.b1.happy + ch.g1.happy;\r\n ch.compatibility = (ch.b1.budget - ch.g1.getmaint()) + Math.abs(ch.b1.getintg() - ch.g1.getiq()) + Math.abs(ch.b1.getattr() - ch.g1.getb());\r\n // this sets the happiness n compatibility of the co \r\n \r\n }",
"public static void checkQueue(){\n if(Duel.getLobby().getQueue().size() >= 2){\n Duel.getGameManager().startingAGame();\n// for(Player player : Bukkit.getOnlinePlayers()){\n// if(Lobby.getQueue().get(0).equals(player.getUniqueId()) || Lobby.getQueue().get(1).equals(player.getUniqueId())){\n// Duel.getGameManager().startingAGame();\n// }\n// for(UUID uuid : Lobby.getQueue()){\n// Duel.getGameManager().startingAGame();\n// }\n }\n }",
"myGame.addTower(Tower thisTower){ // adding a tower to the game\n towers.add(thisTower); // adding a tower to the set that contains all the towers\n }",
"public void addClanCase() {\n boolean explosiveFound = false;\n EquipmentType clCase = EquipmentType.get(\"CLCASE\");\n for (int i = 0; i < locations(); i++) {\n explosiveFound = false;\n for (Mounted m : getEquipment()) {\n if (m.getType().isExplosive() && (m.getLocation() == i)) {\n explosiveFound = true;\n }\n }\n if (explosiveFound) {\n try {\n addEquipment(new Mounted(this, clCase), i, false);\n } catch (LocationFullException ex) {\n // um, that's impossible.\n }\n }\n }\n\n }",
"void jokerA() { \n\n\t\tSystem.out.println(\"OG\");\n\t\tprintList(deckRear);\n\n\t\tint target = 27;\n\t\tCardNode prev = null;\n\t\tCardNode pointer = deckRear; \n\n\t\twhile(pointer.cardValue != target){\n\t\t\tprev= pointer;\n\t\t\tpointer = pointer.next;\n\t\t}\n\n\t\tCardNode secondL = deckRear;\n\t\tint x=0;\n\t\twhile(x < 27){\n\t\t\tsecondL = secondL.next;\n\t\t\tx++;\n\t\t}\n\n\n\t\tif(deckRear.cardValue == 27){ //joker is the last card\n\n\t\t\tCardNode temp = deckRear;\n\t\t\tCardNode temp2 = deckRear.next.next;\n\t\t\tdeckRear=deckRear.next;\n\t\t\tdeckRear.next = temp;\n\t\t\tdeckRear.next.next = temp2;\n\t\t\tsecondL.next = deckRear;\n\n\t\t}else{\n\t\t\tCardNode temp= pointer.next.next;\n\t\t\tprev.next= pointer.next;\n\t\t\tprev.next.next = pointer;\n\t\t\tpointer.next= temp ;\n\t\t}\n\t\tSystem.out.println(\"jokerA\");\n\t\tprintList(deckRear);\n\t}",
"public void countSolutionsH(int c){\n if(c == board.length){\n counter ++;\n return;}\n for(int i = 0; i < board.length; i++){\n // if free space add a queen\n if(board[i][c] == 0){\n edit(i, c, true);\n //move to next column\n countSolutionsH(c + 1);\n // backtrack and try row underneath\n edit(i, c, false);}}\n }",
"private ArrayList<Player> queueConveyorBelts(boolean expressOnly) {\n queuedConveyorBelts = new LinkedList<>();\n ArrayList<Tile> targetTiles = new ArrayList<>();\n ArrayList<Player> players = new ArrayList<>();\n for (Tile[] row : board) {\n for (Tile tile : row) {\n if (tile instanceof ConveyorBelt && tile.isOccupied()) {\n ConveyorBelt belt = (ConveyorBelt) tile;\n if ((!expressOnly || belt.isExpress()) && legalRoll(belt, belt.getDirection(), expressOnly)) {\n Tile targetTile = getNextTile(belt, belt.getDirection());\n int index = targetTiles.indexOf(targetTile);\n\n // Checks if another belt already is queued to roll a player to the same tile.\n // If so, removing the queued conveyor belt from the queue\n if (targetTiles.contains(targetTile)) {\n queuedConveyorBelts.remove(index);\n players.remove(index);\n } else {\n queuedConveyorBelts.add(belt);\n players.add(belt.getPlayer());\n targetTiles.add(targetTile);\n }\n }\n }\n }\n }\n return players;\n }"
] | [
"0.5846012",
"0.57558227",
"0.57429266",
"0.5648818",
"0.5616296",
"0.55650526",
"0.5506383",
"0.53809154",
"0.5380134",
"0.5353792",
"0.5352084",
"0.53507125",
"0.53470355",
"0.53196317",
"0.52973074",
"0.5292134",
"0.5291874",
"0.52860504",
"0.52852464",
"0.5246074",
"0.5238727",
"0.5234952",
"0.5231241",
"0.5205897",
"0.52035904",
"0.5191268",
"0.5188397",
"0.51759243",
"0.5166109",
"0.5157861",
"0.5136606",
"0.5133871",
"0.51194483",
"0.51180315",
"0.5111385",
"0.51006526",
"0.50982225",
"0.50971156",
"0.50948954",
"0.5094554",
"0.5088118",
"0.50876176",
"0.50824594",
"0.507608",
"0.5058431",
"0.50524807",
"0.5030974",
"0.5028685",
"0.5022783",
"0.502176",
"0.50204396",
"0.50069475",
"0.5005045",
"0.5002728",
"0.5002512",
"0.49991083",
"0.499508",
"0.49843633",
"0.4983085",
"0.4982444",
"0.49778524",
"0.4976527",
"0.49712384",
"0.4967323",
"0.49654442",
"0.49554825",
"0.49527818",
"0.49506783",
"0.49481308",
"0.49467468",
"0.49430662",
"0.49422345",
"0.49374288",
"0.49353373",
"0.49350742",
"0.49272263",
"0.49264038",
"0.49262443",
"0.49178553",
"0.49146485",
"0.49136508",
"0.4909129",
"0.49072906",
"0.4905334",
"0.4904765",
"0.49044675",
"0.48991093",
"0.48974782",
"0.48960105",
"0.4895841",
"0.48937875",
"0.48904145",
"0.48877946",
"0.4887313",
"0.48861882",
"0.48836356",
"0.4880272",
"0.4879458",
"0.4878499",
"0.48770002"
] | 0.8271821 | 0 |
Remove this juggler from his current circuit. | public void kickToLowerDesiredCircuit(int jugglerBeingKicked, int circuitJugglerIsCurrentlyIn) {
circuits.get(circuitJugglerIsCurrentlyIn).getJugglersInCircuit().remove(
circuits.get(circuitJugglerIsCurrentlyIn).getJugglersInCircuit().indexOf(jugglerBeingKicked));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public final void remove () {\r\n }",
"public void remove() {\r\n return;\r\n }",
"public void remove() {\n removeNode(this);\n }",
"public void remove() {\n\n }",
"public void remove()\n {\n removed();\n node.shapeRemoved(shape);\n }",
"public void remove( )\n {\n JasperPortletHome.getInstance( ).remove( this );\n }",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\r\n super.remove();\r\n }",
"@Override\n public void remove(SpectatorComponent spectatorComponent) {\n }",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"public void remove () {}",
"@Override\n public void remove( )\n {\n FormPortletHome.getInstance( ).remove( this );\n }",
"public void removeThing(){\n thing = null;\n }",
"public void remove() {\n\t\tstopFloating();\t\n\t\tPacketHandler.toggleRedTint(player, false);\n\t\tplayer.addPotionEffect(new PotionEffect(PotionEffectType.BLINDNESS, 30, 1));\n\t\tplayer.stopSound(Sound.MUSIC_DISC_CHIRP);\n\t\tcleanTasks();\n\t\tactiveScenarios.remove(player.getUniqueId());\n\t}",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"@Override\n public void remove() {\n }",
"public void remove () { this.setAsDown(); n.remove(); }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}",
"public synchronized void removeThisWorker() {\n Listeler.removeWorker(this);\n }",
"@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\n public void remove() {\n }",
"public void remove() {\n this.getNext().setPrev(this.getPrev());\n this.getPrev().setNext(this.getNext());\n }",
"protected void removeSelf() {\n if (!removed && parentNode != null && componentNode != null) {\n // remove this node from parent node\n parentNode.removeChild(componentNode);\n // Mark as removed\n removed = true;\n }\n }",
"public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}",
"public void deleteCurrentJoueur(){\n\t\tElement elementPreviousToCurrent = this.getCurrentElement().getPrevious();\n\t\tElement elementNextToCurrent = this.getCurrentElement().getNext();\n\t\t\n\t\telementPreviousToCurrent.setNext(elementNextToCurrent);\n\t\telementNextToCurrent.setPrevious(elementPreviousToCurrent);\n\t\t\n\t\t// l'element suivant devient l'element courant (on passe au suivant)\n\t\tthis.setCurrentElement(this.getCurrentElement().getNext());\n\t}",
"@Override\n\tpublic void remove() { }",
"public void remove() {\r\n //\r\n }",
"public void removeVehicle() {\n\t\tmVehicles.removeFirst();\n\t}",
"public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }",
"public void removeFromPlanet() {\n this.currentPlanet = null;\n }",
"public void removeFromSilkBag() {\r\n silkBag.remove(0);\r\n }",
"ISlot remove(IStrongSlot target);",
"public void removeIt() { \n\t\t\tcollection.remove(currIndex);\n\t\t\tcurrIndex--;\n\t\t}",
"public void remove() {\n\t\tif (current == head) {\n\t\t\thead = current.getNext();\n\t\t\tcurrent = head;\n\t\t}\n\t\tif (current.getNext() == null) {\n\t\t\tcurrent.getPrevious().setNext(null);\n\t\t\tcurrent = current.getPrevious();\n\t\t}\n\t\telse {\n\t\t\tcurrent.getPrevious().setNext(current.getNext());\n\t\t\tcurrent.getNext().setPrevious(current.getPrevious());\n\t\t\tcurrent = current.getPrevious();\n\t\t}\n\t}",
"public void remove() {\r\n setRemovable(true);\r\n }",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"public void remove(){\n }",
"public void remove() {\r\n\tif (kingdom != null && currentEffect != null)\r\n\t currentEffect.removeFrom(kingdom);\r\n\tcurrentEffect = null;\r\n }",
"public void removeGate(){\n\t\t\n\t\t//remove the child gates and set them to null\n\t\twhile(this.child1!=null){\n\t\t\tthis.child1.removeGate();\n\t\t\t\n\t\t\tthis.child1 = null;\n\t\t}\n\n\t\twhile(this.child2!=null){\n\t\t\tthis.child2.removeGate();\n\t\t\tthis.child2 = null;\n\t\t}\n\t\t\n\t\tLineComponent.lines.remove(this.comp);\n\t\tthis.comp = null;\n\t\t\n\t\t//remove the gate from gateList and remove the JLabels\n\t\tDigitalCircuitUI.gateList.remove(this);\n\t\tDigitalCircuitUI.labels.remove(this);\n\t\t\n\t\t//if gate is an input, remove it from input list\n\t\tif(this.isInput()){\n\t\t\tDigitalCircuitUI.inputList.remove(this);\n\t\t}\n\t\t\n\t\t//remove the activeLabel for inputs\n\t\tContainer parent = this.getParent();\n\t\tif(parent != null){\n\t\t\tif(this.isInput()){\n\t\t\t\tparent.remove(((Input)this).activeLabel);\n\t\t\t\t//DigitalCircuitUI.inputTag--;\n\t\t\t}\n\t\t\tparent.remove(this);\n\t\t\tparent.revalidate();\n\t\t\tparent.repaint();\n\t\t}\n\t\t\n\t\t//set the parent gate's child/children to null\n\t\tif(this.pGate != null){\n\t\t\tif(this.pGate.child1 == this){\n\t\t\t\tthis.pGate.child1 = null;\n\t\t\t}\n\t\t\t\n\t\t\tif(this.pGate.child2 == this){\n\t\t\t\tthis.pGate.child2 = null;\n\t\t\t}\n\t\t}\n\t}",
"public void remove(Component c){}",
"public void removed() {\n }",
"public boolean removeVehicle(){\r\n veh = null;\r\n return true;\r\n }",
"public Node removeFromChain();",
"protected abstract void removeJointImpl( Joint joint );",
"public void removeCurrent( )\n {\n // Implemented by student.\n }",
"public BufferSlot remove();",
"public void removeJalLibraryPlate(final String plateId);",
"@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}",
"@Override\n public Car removeCar() {\n Car car = null;\n if (inDock) {\n car = transporter.removeCar(true, this);\n }\n return car;\n }",
"public /* synthetic */ void remove() {\n this.a.remove();\n }",
"public void removeComponent(Component c);",
"public void remove()\n {\n this.prev.next = this.next;\n this.next.prev = this.prev;\n this.next = null;\n this.prev = null;\n }",
"public void removeOperador() {\r\n\t\toperadorLaboratorio=null;\r\n\t}",
"@Override\r\n public void remove() {\n Node current = exp.head;\r\n if( current.next == null ){\r\n exp.head = null;\r\n }\r\n\r\n while( current.next.next != null ){\r\n current = current.next;\r\n }\r\n current.next = null; // current.next son elemani gosterir.\r\n\r\n }",
"public void remove()\n {\n ShapeParent parent = getShapeParent();\n \n if (parent != null)\n {\n parent.remove(this);\n }\n }",
"public synchronized void removeTheWarrior(){\n charactersOccupiedTheLocation[0]=null;\n notifyAll();\n }",
"public void remove()\n {\n this.morphs.remove(this.index);\n this.clamp();\n }",
"public void removeProbe(RadioProbe p) {\n probes.remove(p);\n }",
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void remove() {\n\t itr.remove();\n\t size--;\n\t nextCount--;\n\t }",
"public void removeSelf(){\n\t\tif(prev != null){\n\t\t\tprev.next = next;\n\t\t\tnext.prev = prev;\n\t\t\tprev = null;\n\t\t\tnext = null;\n\t\t}\n\t}",
"public void removeUnit(){\r\n tacUnit = null;\r\n }",
"public void remove() {\n\t\tif(this._prev != null)\n\t\t\tthis._prev._next = this._next;\n\t\tif(this._next != null)\n\t\t\tthis._next._prev = this._prev;\n\n\t\tthis._next = null;\n\t\tthis._prev = null;\n\t}",
"public abstract boolean remove(KitComponent component);",
"public void supprimerHacker() {\n if (hacker != null) {\n g.getChildren().remove(hacker);\n\n }\n }",
"public void removeSpecification() {\n simSpec = null;\n }",
"public void removeFromParent();",
"public void remove() {\n int size = itinerary.size();\n if (size != 1) {\n \n // Removes last Flight in this Itinerary.\n Flight removedFlight = this.itinerary.remove(size - 1);\n \n // Gets the new last Flight in this Itinerary.\n Flight flight = this.itinerary.get(size - 2);\n \n // Updates all the relevant fields in this Itinerary.\n this.price -= removedFlight.getCost();\n this.arrivalDateTime = flight.getArrivalDateTime();\n this.destination = flight.getDestination();\n this.travelTime = arrivalDateTime.timeDiff(departDateTime);\n this.places.remove(size);\n }\n }",
"public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}",
"public void deleteCurrWorker() {\n this.currWorker = null;\n }",
"void remove();",
"void remove();",
"void remove();",
"void remove();"
] | [
"0.6414046",
"0.6414046",
"0.6414046",
"0.6404475",
"0.6402909",
"0.6396315",
"0.6383913",
"0.63818985",
"0.6369792",
"0.6318739",
"0.6318739",
"0.6290424",
"0.6290424",
"0.6290424",
"0.6290424",
"0.6290424",
"0.6290424",
"0.6290424",
"0.6288735",
"0.6280419",
"0.62427",
"0.62427",
"0.61978364",
"0.61810684",
"0.6175682",
"0.6152789",
"0.6137743",
"0.6137743",
"0.6117132",
"0.61132264",
"0.6108174",
"0.6108174",
"0.6108174",
"0.6108174",
"0.6108174",
"0.6099619",
"0.6082869",
"0.6079401",
"0.6065081",
"0.6065081",
"0.60635036",
"0.6056729",
"0.6045717",
"0.6034929",
"0.6020117",
"0.60023844",
"0.5989837",
"0.59668076",
"0.59502083",
"0.5942797",
"0.59334296",
"0.59285665",
"0.5925455",
"0.592292",
"0.59081674",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5904579",
"0.5894134",
"0.5893625",
"0.5893193",
"0.5882156",
"0.58637863",
"0.5862252",
"0.5857764",
"0.58548343",
"0.5849316",
"0.5848639",
"0.58466744",
"0.5843547",
"0.5842191",
"0.5840707",
"0.5835471",
"0.5819928",
"0.58185506",
"0.58133173",
"0.5809648",
"0.578106",
"0.57610506",
"0.5754335",
"0.5750961",
"0.5750961",
"0.5740591",
"0.57389164",
"0.573245",
"0.57192105",
"0.5708103",
"0.5695247",
"0.5688913",
"0.5687817",
"0.5673453",
"0.56423295",
"0.5642066",
"0.5642066",
"0.5642066",
"0.5642066"
] | 0.0 | -1 |
Takes in a user's jugglefest.txt file and reads it linebyline, parsing and adding each line to their arrays | public JuggleFestCircuitAssignments() throws FileNotFoundException {
// Prompt the user for the jugglefest.txt file and store the path to a variable
// Scanner userFileNameInput = new Scanner(System.in);
// System.out.println("Please enter the path to your jugglefest.txt file");
// String filename = userFileNameInput.nextLine();
// userFileNameInput.close();
// TODO Uncomment above code and make the Scanner read in from "filename" before sending this out to production
Scanner file = new Scanner(new File("/Users/kevin/Github/YodleJuggleFest/jugglefest-mini.txt")); // Open the jugglefest.txt file
// Read the file one line at a time and parse their contents
while (file.hasNext()) {
/* Splits the line by spaces. Expect the array to contain:
* [0] The identifier for the line (either C or J for Circuit or Juggler)
* [1] The identifier concatenated to the # of that Circuit or Juggler (eg, C101 for Circuit #101)
* [2] "H" for this Circuit/Juggler
* [3] "E" for this Circuit/Juggler
* [4] "P" for this Circuit/Juggler
* [5] Only exists for Jugglers: a comma-delimited list of the 10 preferred Circuits for this Juggler
*/
String[] inputFileLine = file.nextLine().split(" ");
// Remove everything that isn't a digit or a comma, so now all we have is the raw data that we need.
for (int i = 0; i < inputFileLine.length; i++) {
inputFileLine[i] = inputFileLine[i].replaceAll("[^\\d,]", "");
}
// If there are 5 elements, this is a circuit element. Add it to the circuits list
if (inputFileLine.length == 5) {
circuits.add(Integer.parseInt(inputFileLine[1]),
new Circuit(
Integer.parseInt(inputFileLine[2]), // "H" value
Integer.parseInt(inputFileLine[3]), // "E" value
Integer.parseInt(inputFileLine[4]) // "P" value
));
}
// If there are 6 elements, this is a juggler element. Parse the last element into an array and add it to the circuits list
else if (inputFileLine.length == 6) {
// Parses the String into a comma-delimited array, and then converts those Strings to Integers
String[] desiredCircuitsString = inputFileLine[5].split(",");
Integer[] desiredCircuitsInt = new Integer[desiredCircuitsString.length];
for (int i = 0; i < desiredCircuitsString.length; i++) {
desiredCircuitsInt[i] = Integer.parseInt(desiredCircuitsString[i]);
}
jugglers.add(Integer.parseInt(inputFileLine[1]),
new Juggler(
Integer.parseInt(inputFileLine[2]), // "H" value
Integer.parseInt(inputFileLine[3]), // "E" value
Integer.parseInt(inputFileLine[4]), // "P" value
Arrays.asList(desiredCircuitsInt) // Desired circuits
));
}
}
file.close();
MAX_JUGGLERS_PER_CIRCUIT = jugglers.size() / circuits.size();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void getDataFromFile(){\n\n try\n {\n File file = new File( fileName );\n FileInputStream fis = new FileInputStream( file );\n DataInputStream in = new DataInputStream(fis);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String message = \"\", eachLine = \"\";\n\n while ((eachLine = br.readLine()) != null) {\n message += eachLine;\n }\n\n //System.out.println(message);\n StringTokenizer tokens = new StringTokenizer(message);\n\n //to set the coordination and demand of each customer\n size = Integer.parseInt(tokens.nextToken());\n processingTime = new double[size][size];\n\n for(int i = 0 ; i < size ; i ++ ){\n for(int j = 0 ; j < size ; j ++ ){\n processingTime[i][j] = Double.parseDouble(tokens.nextToken());\n }\n }\n } //end try\n catch( Exception e )\n {\n e.printStackTrace();\n System.out.println(e.toString());\n } // end catch\n //System.out.println( \"done\" );\n }",
"public void parseFile(){\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"ElevatorConfig.txt\"));\n \n String fileRead;\n \n totalSimulatedTime = 1000;\n Integer.parseInt(br.readLine());\n simulatedSecondRate = 30;\n Integer.parseInt(br.readLine());\n \n for (int onFloor = 0; onFloor< 5; onFloor++){\n \n fileRead = br.readLine(); \n String[] tokenize = fileRead.split(\";\");\n for (int i = 0; i < tokenize.length; i++){\n String[] floorArrayContent = tokenize[i].split(\" \");\n \n int destinationFloor = Integer.parseInt(floorArrayContent[1]);\n int numPassengers = Integer.parseInt(floorArrayContent[0]);\n int timePeriod = Integer.parseInt(floorArrayContent[2]);\n passengerArrivals.get(onFloor).add(new PassengerArrival(numPassengers, destinationFloor, timePeriod));\n }\n }\n \n br.close();\n \n } catch(FileNotFoundException e){ \n System.out.println(e);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n }",
"public String[] buildEntries(String a) {\n try {\n File file = new File(a);\n Scanner input = new Scanner(file);\n while (input.hasNextLine()) {\n String line=input.nextLine();\n String name=line.substring(line.indexOf(\"\\t\"));\n name=name.substring(0,name.lastIndexOf(\"H\"));\n name=name.substring(0,name.lastIndexOf(\"\\t\"));\n int entries=Integer.parseInt(line.substring(line.lastIndexOf(\"\\t\")+1,line.lastIndexOf(\"E\")));\n while (entries>0) {\n entryList.add(name);\n entries--;\n System.out.println(\"Added: \"+name);\n }\n}\n return drawBE(entryList,a);\n }\n catch(FileNotFoundException b) {\n System.out.println(\"Error, no entries\"); \n String ret[] = new String[6];\n ret[0]=\"NOFILE\";\n return ret;\n }\n }",
"public void readFile(String filename){\n\t\ttry{\n\t\t\tBufferedReader bf = new BufferedReader(new FileReader(filename));\n\t\t\tString line;\n\t\t\tString[] categories = new String[5];\n\t\t\tline = bf.readLine();\n\t\t\tint[] pointValues = new int[5];\n\t\t\tboolean FJ = false;\n\t\t\t\n\t\t\t// Read the first line\n\t\t\tint index = 0;\n\t\t\tint catnum = 0;\n\t\t\twhile(catnum < 5){\n\t\t\t\tcategories[catnum] = readWord(line, index);\n\t\t\t\tindex += categories[catnum].length();\n\t\t\t\tif(index == line.length()-1){\n\t\t\t\t\tSystem.out.println(\"Error: Too few categories.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\tfor(int i = 0; i < catnum; i++){\n\t\t\t\t\tif(categories[i].equals(categories[catnum])){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate categories.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(catnum < 4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tcatnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many categories.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tCategory cat1, cat2, cat3, cat4, cat5, cat6;\n\t\t\tcat1 = new Category(categories[0]);\n\t\t\tcat2 = new Category(categories[1]);\n\t\t\tcat3 = new Category(categories[2]);\n\t\t\tcat4 = new Category(categories[3]);\n\t\t\tcat5 = new Category(categories[4]);\n\t\t\tcat6 = new Category(\"FJ\");\n\n\t\t\t// Read the second line\n\t\t\tline = bf.readLine();\n\t\t\t//System.out.println(line);\n\t\t\tindex = 0;\n\t\t\tint pointnum = 0;\n\t\t\twhile(pointnum < 5){\n\t\t\t\tint point = 0;\n\t\t\t\ttry{\n\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\tindex += (readWord(line, index)).length();\n\t\t\t\t}\n\t\t\t\tcatch(Exception e){\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t\tSystem.out.println(\"Error: point value not integer.\");\n\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tpointValues[pointnum] = point;\n\t\t\t\tfor(int i = 0; i < pointnum; i++){\n\t\t\t\t\tif(pointValues[pointnum] == pointValues[i]){\n\t\t\t\t\t\tSystem.out.println(\"Error: Duplicate point values\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(pointnum <4)\n\t\t\t\t\tindex += 2;\n\t\t\t\tpointnum++;\n\t\t\t}\n\t\t\tif(index < line.length()-1){\n\t\t\t\tSystem.out.println(\"Error: Too many point values.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\t// Read in the questions\n\t\t\tString q=\"\";\n\t\t\tString a=\"\";\n\t\t\tString category=\"\";\n\t\t\tint point=0;\n\t\t\tint colonNumber = 0;\n\t\t\tQuestion question = new Question(0, \"\", \"\");\n\t\t\t\n\t\t\twhile((line = bf.readLine())!= null && line.length() != 0){\n\t\t\t\tindex = 0;\n\t\t\t\t// New question, initialize all vars\n\t\t\t\tif(line.substring(0,2).equals(\"::\")){\n\t\t\t\t\t// Add the previous question\n\t\t\t\t\tif(question.getPoint() != 0){\n\t\t\t\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\t\t\t\tcat1.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\t\t\t\tcat2.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\t\t\t\tcat3.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\t\t\t\tcat4.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\t\t\t\tcat5.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\t\t\t\tcat6.addQuestion(question);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta=\"\";\n\t\t\t\t\tq=\"\";\n\t\t\t\t\tcategory=\"\";\n\t\t\t\t\tpoint = 0;\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tcolonNumber = 1;\n\t\t\t\t\tquestion = new Question(0, \"\", \"\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// If FJ cont'd\n\t\t\t\telse{\n\t\t\t\t\tif(category.equals(\"FJ\")){\n\t\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\ta += readWord(line, index);\n\t\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(colonNumber < 3 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\t\tindex+=2;\n\t\t\t\t\t\t\t\tcolonNumber++;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// FJ starts\n\t\t\t\tif(readWord(line, index).equals(\"FJ\")){\n\t\t\t\t\tif(FJ){\n\t\t\t\t\t\tSystem.out.println(\"Error: Multiple final jeopardy questions.\");\n\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t}\n\t\t\t\t\tFJ = true;\n\t\t\t\t\tpoint = -100;\n\t\t\t\t\tcategory = \"FJ\";\n\t\t\t\t\tindex += 4;\n\t\t\t\t\tcolonNumber++;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\tq += readWord(line, index);\n\t\t\t\t\tindex += q.length();\n\t\t\t\t\tindex += 2;\n\t\t\t\t\tif(index < line.length()-1)\n\t\t\t\t\t\ta += readWord(line, index);\n\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t}\n\t\t\t\t// Other questions\n\t\t\t\telse{\n\t\t\t\t\twhile(index < line.length()){\n\t\t\t\t\t\t//System.out.println(colonNumber);\n\t\t\t\t\t\tswitch(colonNumber){\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tcategory = category + readWord(line, index);\n\t\t\t\t\t\t\tboolean right = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(categories[i].equals(category))\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong category.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += category.length();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tpoint = Integer.parseInt(readWord(line, index));\n\t\t\t\t\t\t\tright = false;\n\t\t\t\t\t\t\tfor(int i = 0; i < 5; i++){\n\t\t\t\t\t\t\t\tif(pointValues[i] == point)\n\t\t\t\t\t\t\t\t\tright = true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif(!right){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Wrong point value.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setPoint(point);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tq = q + readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setQuestion(q);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\ta = a+ readWord(line, index);\n\t\t\t\t\t\t\tindex += readWord(line, index).length();\n\t\t\t\t\t\t\tquestion.setAnswer(a);\n\t\t\t\t\t\t\tif(index < line.length()){\n\t\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tSystem.out.println(\"Error: Format error.\");\n\t\t\t\t\t\t\tSystem.exit(-1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(colonNumber < 4 && index < line.length()-1 && line.substring(index, index+2).equals(\"::\")){\n\t\t\t\t\t\t\tindex += 2;\n\t\t\t\t\t\t\tcolonNumber++;\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\t// Add the last question\n\t\t\tif(category.equals(cat1.getName())){\n\t\t\t\tcat1.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat2.getName())){\n\t\t\t\tcat2.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat3.getName())){\n\t\t\t\tcat3.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat4.getName())){\n\t\t\t\tcat4.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(cat5.getName())){\n\t\t\t\tcat5.addQuestion(question);\n\t\t\t}\n\t\t\telse if(category.equals(\"FJ\")){\n\t\t\t\tcat6.addQuestion(question);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"Error: Wrong category name.\");\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t\t\n\t\t\tmCategories.add(cat1);\n\t\t\tmCategories.add(cat2);\n\t\t\tmCategories.add(cat3);\n\t\t\tmCategories.add(cat4);\n\t\t\tmCategories.add(cat5);\n\t\t\tmCategories.add(cat6);\n\t\t\t\n\t\t\tbf.close();\n\t\t}\n\t\t\n\t\tcatch(IOException ioe){\n\t\t\tSystem.out.println(ioe);\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"public static void fillArray(TextFileInput input){\r\n String line = input.readLine();\r\n while(line!=null){\r\n StringTokenizer cTokens = new StringTokenizer(line, \":\");\r\n //only if the line has three arguments\r\n if(cTokens.countTokens()==3){\r\n int h = Integer.parseInt(cTokens.nextToken());\r\n int m = Integer.parseInt(cTokens.nextToken());\r\n int s = Integer.parseInt(cTokens.nextToken());\r\n Clock c = new Clock(h, m, s);\r\n //adds clocks to the array\r\n allClocks[clockCount++] = c;\r\n }\r\n else{\r\n System.out.println(line + \" does not have three tokens\");\r\n }\r\n line = input.readLine();\r\n }\r\n }",
"private void readFile() {\r\n\t\tScanner sc = null; \r\n\t\ttry {\r\n\t\t\tsc = new Scanner(inputFile);\t\r\n\t\t\twhile(sc.hasNextLine()){\r\n\t\t\t\tgrade.add(sc.nextLine());\r\n\t } \r\n\t\t}\r\n\t\tcatch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tfinally {\r\n\t\t\tsc.close();\r\n\t\t}\t\t\r\n\t}",
"public void readFromFile(){\n\t\ttry {\r\n\t\t\tFile f = new File(\"E:\\\\Study\\\\Course\\\\CSE215L\\\\Project\\\\src\\\\Railway.txt\");\r\n\t\t\tScanner s = new Scanner(f);\r\n\t\t\tpersons = new Person2 [50]; \r\n\t\t\tint i = 0;\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine()){\r\n\t\t\t\tString a = s.nextLine();\r\n\t\t\t\tString b = s.nextLine();\r\n\t\t\t\tString c = s.nextLine();\r\n\t\t\t\tString d = s.nextLine();\r\n\t\t\t\tString e = s.nextLine();\r\n\t\t\t\tString g = s.nextLine();\r\n\t\t\t\tString h = s.nextLine();\r\n\t\t\t\tString j = s.nextLine();\r\n\t\t\t\tPerson2 temp = new Person2 (a,b,c,d,e,g,h,j);\r\n\t\t\t\tpersons[i] = temp;\r\n\t\t\t\ti++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}",
"public void readVotes(File inFile)\r\n\t{\r\n\t\tArrayList<String> data = new ArrayList<>(); // Declares a String ArrayList to hold the contents of the file being read. \r\n\t\t\r\n\t\tteams.clear();\r\n\t\t\r\n\t\tScanner inputFile;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tinputFile = new Scanner(inFile);\r\n\t\t\t\r\n\t\t\t// Read each content, line by line from the .txt file into a String ArrayList\r\n\t\t\twhile (inputFile.hasNext())\r\n\t\t\t{\t\r\n\t\t\t\tdata.add(inputFile.nextLine());\r\n\t\t\t}\r\n\t\t\r\n\t\t\t// Splits the first line of the file, containing all the teams names, and place them into the teamNames String array. \r\n\t\t\tteamNames = data.get(0).split(\",\");\r\n\t \r\n\t\t\t// Splits the second line of the file, containing the name of each teams conference, and place them into the teamConferences String array. \r\n\t teamConferences = data.get(1).split(\",\");\r\n\t \r\n\t \r\n\t for(int row = 0; row < NUM_VOTERS; row++)\r\n\t {\t\r\n\t \t// Beginning from the third line of the file that was read in, split the numbers in each line and place them into the rows of the String[][] array\r\n\t \tv[row] = data.get(row+2).split(\",\");\r\n\t \t\r\n\t \tfor(int col = 0; col < NUM_TEAMS; col++)\r\n\t \t{\r\n\t \t\t// Parse the String values from the String[][] array into integers, and place them into the int[][] array\r\n\t \t\tvoteRecord[row][col] = Integer.parseInt(v[row][col]);\r\n\t\t }\r\n\t }\r\n\t \r\n\t\t for(int i = 0; i < NUM_TEAMS; i++)\r\n\t\t {\r\n\t\t \t// Declares an int array to hold the votes for each individual team.\r\n\t\t int[] teamsVotes = new int[NUM_VOTERS]; \r\n\t\t \r\n\t\t \t// Adding the votes for each individual team into an int[] array, from the 12 voters. \r\n\t\t \tfor(int j=0; j<NUM_VOTERS; j++)\r\n\t\t \t{\r\n\t\t \t\t// Places the int votes from each of the 12 voters for a team, from the int[][] array, into an int[] array for each individual team. \r\n\t\t \t\tteamsVotes[j] = voteRecord[j][i];\r\n\t\t \t\t//System.out.print(teamsVotes[j] + \",\");\r\n\t\t \t}\r\n\t\t \t//System.out.println();\r\n\t\t \t\r\n\t\t \t// Creates a CollegeFootbalTeam object, which will store the information from each individual team and then add it into an ArrayList.\r\n\t\t \t// It will repeat this 10 times, to add all 10 teams information into the ArrayList. \r\n\t\t \tCollegeFootballTeam t = new CollegeFootballTeam(teamNames[i], teamConferences[i],teamsVotes);\r\n\t\t \t\r\n\t\t \t//Sums the votes for each team being added into the ArrayList\r\n\t\t \tt.setSumOfVotes();\r\n\t\t \t//t.setVotes(teamsVotes);\r\n\t\t \r\n\t\t \t// Add the team into the teams ArrayList.\r\n\t\t \tteams.add(t);\t\r\n\t\t }\t \r\n\t\t}\r\n\t\tcatch (FileNotFoundException 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\t}",
"public static void Load(String filename) throws IOException {\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(filename));\r\n\t\t linenumber = 0;\r\n\t\t while (lnr.readLine() != null){\r\n\t\t\t linenumber++;\r\n\t\t }\r\n lnr.close();\r\n \tarrr=new String[linenumber][5];\r\n\t\tarr=arrr;\r\n\t\tBufferedReader br=new BufferedReader(new FileReader(filename));\r\n\t\t Scanner sc1=new Scanner(br);\r\n\t\t String ss=sc1.nextLine();\r\n\t\t String[] str1 = ss.split(\",\") ;\r\n\t\t String r=str1[0];\r\n\t\t String t=str1[1];\r\n\t\t String[] str2 = r.split(\":\") ;\r\n\t\t round= Integer.parseInt(str2[1]);\r\n\t\t String[] str3 = t.split(\":\") ;\r\n\t\t who=Integer.parseInt(str3[1]);\r\n\t\t arr=new String[linenumber][5];\r\n\t\t int num=0;\r\n\t\t while(sc1.hasNextLine()) {\t\r\n\t\t\t int i=0;\r\n\t\t\t num++;\r\n\t\t\t String x=sc1.nextLine();\r\n\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\twhile(i<5) {\r\n\t\t\t\tarr[num][i]=str[i];\r\n\t\t\t\ti++;\r\n\t\t\t }\r\n\t\t }\r\n\t\t int c=1;\r\n\t ch=new Character[linenumber];\r\n\r\n\t\t\twhile(c<(linenumber)) {\r\n\t\t\t\t\r\n\t\t\t\tch[c]=new Character(Integer.parseInt(arr[c][0]),Integer.parseInt(arr[c][1]),Integer.parseInt(arr[c][2]),Integer.parseInt(arr[c][3]),arr[c][4]);\t\t\t\t\t\t\t\r\n\t\t\t\tc++;\r\n\t\t\t}\t\r\n\t\t\r\n\t\t sc1.close();\r\n\t\t String file=\"Land.txt\";\r\n\t\t\tBufferedReader br2=new BufferedReader(new FileReader(file));\r\n\t\t\tland=new String[20][2];\r\n\t\t\tland2=new String[20][2];\r\n\t\t\tland=land2;\r\n\t\t\tScanner sc2=new Scanner(br2);\r\n\t\t\tString strr=sc2.nextLine();\r\n\t\t\tnum=0;\r\n\t\t\t while(sc2.hasNextLine()) {\t\r\n\t\t\t\t int i=0;\r\n\t\t\t\t num++;\r\n\t\t\t\t String x=sc2.nextLine();\t\t\t\r\n\t\t\t\tString[] str = x.split(\",\") ;\r\n\t\t\t\twhile(i<2) {\r\n\t\t\t\t\tland[num][i]=str[i];\r\n\t\t\t\t\ti++;\r\n\t\t\t\t }\t\t\t\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\t String url = \"//localhost:3306/checkpoint?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT\";\r\n\t\t // String url=\"//140.127.220.220/\";\r\n\t\t // String dbname=\"CHECKPOINT\";\r\n\t\t\t Connection conn = null;\r\n\t\t try{\r\n\t\t conn = DriverManager.getConnection(protocol + url,username,passwd);\r\n\t\t Statement s = conn.createStatement();\r\n\t\t String sql = \"SELECT PLACE_NUMBER,LAND_PRICE,TOLLS FROM LAND\";\r\n\t\t rs=s.executeQuery(sql);\r\n\t\t p_number=new int[20];\r\n\t\t l_price=new int[20];\r\n\t\t tolls=new int[20];\r\n\t\t grid=0;\r\n\t\t while(rs.next()){\r\n\t\t \tgrid++;\r\n\t\t \tp_number[grid]=rs.getInt(\"PLACE_NUMBER\");\r\n\t\t \tl_price[grid]=rs.getInt(\"LAND_PRICE\");\r\n\t\t \ttolls[grid]=rs.getInt(\"TOLLS\");\t \t\t \t\r\n\t\t }\t\t \t\t \r\n\t\t rs.close();\r\n\t\t conn.close();\r\n\t\t } catch(SQLException err){\r\n\t\t System.err.println(\"SQL error.\");\r\n\t\t err.printStackTrace(System.err);\r\n\t\t System.exit(0);\r\n\t\t }\r\n\t\t\t Land=new Land[20];\r\n\t\t\t Land2=new Land[20];\r\n\t\t\t Land=Land2;\t\t\t \r\n\t\t \tfor(int i=1;i<=grid;i++) {\r\n\t\t \t\tLand[i]=new Land(p_number[i],Integer.parseInt(land[i][1]),l_price[i],tolls[i]);\t \t\t\r\n\t\t \t}\r\n\t\t\t sc2.close();\r\n\t}",
"public void parseFile() {\n File file = new File(inputFile);\n try {\n Scanner scan = new Scanner(file);\n\n while (scan.hasNextLine()) {\n String line = scan.nextLine();\n line = line.replaceAll(\"\\\\s+\", \" \").trim();\n\n if (line.isEmpty()) {\n continue;\n }\n // System.out.println(line);\n String cmd = line.split(\" \")[0];\n String lineWithoutCmd = line.replaceFirst(cmd, \"\").trim();\n // System.out.println(lineWithoutCmd);\n\n // The fields following each command\n String[] fields;\n\n switch (cmd) {\n case (\"add\"):\n fields = lineWithoutCmd.split(\"<SEP>\");\n fields[0] = fields[0].trim();\n fields[1] = fields[1].trim();\n fields[2] = fields[2].trim();\n add(fields);\n break;\n case (\"delete\"):\n\n fields = split(lineWithoutCmd);\n delete(fields[0], fields[1]);\n break;\n case (\"print\"):\n if (lineWithoutCmd.equals(\"ratings\")) {\n printRatings();\n break;\n }\n fields = split(lineWithoutCmd);\n\n print(fields[0], fields[1]);\n\n break;\n case (\"list\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n list(fields[0], fields[1]);\n break;\n case (\"similar\"):\n // need to check if it is the movie or reviewer\n fields = split(lineWithoutCmd);\n similar(fields[0], fields[1]);\n break;\n default:\n break;\n }\n\n }\n\n }\n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n }",
"public void readInput(String fileName){\n\n BufferedReader reader;\n try {\n reader = new BufferedReader(new FileReader(fileName));\n String line = reader.readLine(); //read first line\n int numLine =1; //keep track the number of line\n while (line != null) {\n String[] tokens = line.trim().split(\"\\\\s+\"); //split line into token\n if(numLine==1){ //for the first line\n intersection = Integer.parseInt(tokens[0]); //set the number of intersection\n roadways = Integer.parseInt(tokens[1]); // set the number of roadways\n coor = new Coordinates[intersection];\n g = new Graph(intersection);//create a graph\n line = reader.readLine();\n numLine++;\n }\n else if(numLine>1&&numLine<intersection+2){ //for all intersection\n while(numLine>1&&numLine<intersection+2){\n tokens = line.trim().split(\"\\\\s+\");\n coor[Integer.parseInt(tokens[0])] = new Coordinates(Integer.parseInt(tokens[1]),Integer.parseInt(tokens[2])); //add into coor array to keep track the coor of intersection\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine ==intersection+2){ //skip the space line\n line = reader.readLine();\n numLine++;\n while(numLine<roadways+intersection+3){ // for all the roadways, only include the number of roadways mention in the first line\n tokens = line.trim().split(\"\\\\s+\");\n int fst = Integer.parseInt(tokens[0]);\n int snd = Integer.parseInt(tokens[1]);\n g.addEgde(fst,snd,coor[fst].distTo(coor[snd]));\n line = reader.readLine();\n numLine++;\n }\n }\n else if(numLine >= roadways+intersection+3)\n break;\n }\n reader.close();\n } catch (FileNotFoundException e){\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static int[][] processInput (String info) throws FileNotFoundException, IOException\n {\n BufferedReader input = new BufferedReader(new FileReader(info));\n ArrayList<Integer> pointList = new ArrayList<Integer>();\n String point;\n while ((point = input.readLine()) != null)\n {\n StringTokenizer st = new StringTokenizer(point);\n pointList.add(Integer.parseInt(st.nextToken()));\n pointList.add(Integer.parseInt(st.nextToken()));\n }\n int[][] pointSet = new int[2][pointList.size()/2];\n int j = 0;\n for (int i = 0; i<=pointList.size()-1; i=i+2)\n {\n pointSet[0][j] = pointList.get(i);\n pointSet[1][j] = pointList.get(i+1);\n j++;\n }\n return pointSet;\n }",
"public static void main(String[] args) throws IOException {\n\t\tScanner fileLine = new Scanner(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\"));\n\n\t\t// Length of the array\n\t\tLineNumberReader lnr = new LineNumberReader(new FileReader(new File (\"/Users/bsandi/eclipse-workspace/5511/src/assignment_4/ds17s-Asg4-data\")));\n\t\tlnr.skip(Long.MAX_VALUE);\n\t\tint total_entries = lnr.getLineNumber()+1;\n\n\t\tfileLine.useDelimiter(\"\\\\n|:\");\n\t\tint col_num = 4;\n\n\n\t\t//Read data from text file\n\t\tString[][] inputArr = new String[total_entries][col_num];\t\n\t\tint j = 0;\n\t\tint l = 0;\n\t\twhile (l< total_entries ) {//fileLine.hasNext()) {\n\n\t\t\tfor (int k=0 ; k<col_num ; k++) {\n\t\t\t\tinputArr[j][k] = (fileLine.next());\n\t\t\t}\n\t\t\tl++;\n\t\t\tj++;\n\t\t}\n\t\tfileLine.close();\n\t\tlnr.close();\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tint searchedField =-1;\n\t\tSystem.out.println(\"Choose a field to execute the search (1) Person’s name. (2) Email address. (3) Organization \");\n\t\tScanner field = new Scanner(System.in);\n\t\twhile (searchedField<1 || searchedField>3) {\t\n\t\t\tfield = new Scanner(System.in);\n\t\t\ttry {\n\t\t\t\tsearchedField = Integer.parseInt(field.nextLine());\n\t\t\t\tif (searchedField<1 || searchedField>3) {\n\t\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"Input 1, 2 or 3 ((1) Person’s name. (2) Email address. (3) Organization) \");\n\t\t\t}\n\t\t}\n\n\t\t\n\n\n\n\n\n\t\t// Ask for the the string to be searched \n\t\tSystem.out.println(\"Give a string you would like to search: \");\n\t\tScanner item = new Scanner(System.in);\n\t\tString searchedItem = item.nextLine();\n\t\t\n\t\t\n\t\tfield.close();\n\t\titem.close();\n\n\t\t\n\t\t\n\t\t// Create output array\n\t\tint outputIndex = 0;\n\t\tint outputItems = 0;\n\t\tString[] output = new String[total_entries]; //Change to dynamic \n\t\tfor (int i = 0 ; i< output.length ; i++) {\n\t\t\tif (bma(searchedItem,inputArr[i][searchedField-1])) {\n\t\t\t\toutput[outputIndex]= inputArr[i][0] + \" - \" + inputArr[i][1] + \" - \" +inputArr[i][2] + \" - \" + inputArr[i][3];\n\t\t\t\toutputIndex = outputIndex +1;\n\t\t\t\toutputItems = outputItems +1;\n\t\t\t}\n\t\t}\n\n\n\t\t// Print output array\n\t\tfor (int i=0 ; i < outputItems ; i++) {\n\t\t\tSystem.out.println(output[i]);\n\t\t}\n\t\tif (outputItems==0) {\n\t\t\tSystem.out.println(\"No items found\");\n\t\t}\n\n\n\n\t}",
"public BaseballElimination(String filename) {\n\n System.out.println(\"start parsing \" + filename);\n In in = new In(filename);\n if (in.hasNextLine()) {\n int count = Integer.valueOf(in.readLine());\n w = new int[count];\n l = new int[count];\n r = new int[count];\n g = new int[count][count];\n\n for (int i = 0; i < count; i++) {\n if (!in.hasNextLine()) {\n throw new IllegalArgumentException(\"Not enough lines, count is \" + count +\n \", file ends after \" + i + \" line\");\n }\n String line = in.readLine();\n System.out.println(\"Line: \" + line);\n\n String[] parts = line.split(\" \");\n names[i] = parts[0];\n w[i] = Integer.valueOf(parts[1]);\n l[i] = Integer.valueOf(parts[2]);\n r[i] = Integer.valueOf(parts[3]);\n for (int j = 0; j < count; j++) {\n g[i][j] = Integer.valueOf(parts[4 + j]);\n }\n System.out.print(\" Parsed: \" + names[i] + \" \" + w[i] + \" \" + l[i] + \" \" + r[i]);\n for (int j = 0; j < count; j++) {\n System.out.print(\" \" + g[i][j]);\n }\n System.out.println();\n }\n }\n System.out.println(\"end\");\n }",
"public static ArrayList<MonitoredData> readFileData(){\n ArrayList<MonitoredData> data = new ArrayList<>();\n List<String> lines = new ArrayList<>();\n try (Stream<String> stream = Files.lines(Paths.get(\"Activities.txt\"))) {\n lines = stream\n .flatMap((line->Stream.of(line.split(\"\\t\\t\"))))\n .collect(Collectors.toList());\n for(int i=0; i<lines.size()-2; i+=3){\n MonitoredData md = new MonitoredData(lines.get(i), lines.get(i+1), lines.get(i+2));\n data.add(md);\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n //data.forEach(System.out::println);\n return data;\n }",
"public static void main(String[] args) throws FileNotFoundException {\n Solution45 sol1 = new Solution45();\n //declare ArrayList, strings, and Arrays for processing\n ArrayList<String> text = new ArrayList<String>();\n String fileName = \"\";\n String[][] arrOfstr = new String[3][15];\n\n //scan information into ArrayList from input file\n try (Scanner input = new Scanner(Paths.get(\"data/exercise45_input.txt\"))) {\n while (input.hasNext()) {\n text.add(input.nextLine());\n }\n } catch (IOException | NoSuchElementException | IllegalStateException e) {\n e.printStackTrace();\n }\n\n //call data parser to turn arraylist into 2d array and copy it to main's array\n System.arraycopy(sol1.dataParser(text), 0, arrOfstr,\n 0, arrOfstr.length);\n\n //loop through 2d array and replace \"utilize\" with \"use\"\n for (int counter2 = 0; counter2 < arrOfstr.length; counter2++) {\n for (int counter3 = 0; counter3 < arrOfstr[counter2].length; counter3++) {\n if (arrOfstr[counter2][counter3].equals(\"\\\"utilize\\\"\")) {\n arrOfstr[counter2][counter3] = \"\\\"use\\\"\";\n }\n if (arrOfstr[counter2][counter3].equals(\"utilize\")) {\n arrOfstr[counter2][counter3] = \"use\";\n }\n if (arrOfstr[counter2][counter3].equals(\"utilizes\")) {\n arrOfstr[counter2][counter3] = \"uses\";\n }\n }\n }\n //new scanner for output file name entry\n Scanner input = new Scanner(System.in);\n System.out.println(\"Enter file or directory name:\");\n fileName = input.nextLine();\n\n //call output method to take array and output it to text file in specified directory\n sol1.fileOutput(arrOfstr, fileName);\n }",
"String [][] importData (String path);",
"public void processInput(File theFile){\n\t\t//the list of input strings\n\t\tArrayList<String> theInputString=new ArrayList<String>();\n\t\t//the list of test results, could be {null,\"f\",\"a\"}\n\t\tArrayList<String> theTestResults=new ArrayList<String>();\n\n\t\ttry {\n\t\t\t// read input file containing machine description\n\t\t\tFileInputStream inStream = new FileInputStream(theFile);\n\t\t\tBufferedReader theReader = new BufferedReader(new InputStreamReader(inStream));\n\t\t\twhile (theReader.ready()) {\n\t\t\t\tString curLine=theReader.readLine();//read the line, trimming whitespace at beginning and end\n\t\t\t\tif(curLine.startsWith(\"#\")); //skip comments\n\t\t\t\telse if(curLine.isEmpty()){\n\t\t\t\t\ttheTestResults.add(\"\");\n\t\t\t\t\ttheInputString.add(\"\");\n\t\t\t\t\t//System.out.println(\"Adding input: [null string]\");\n\t\t\t\t//process the test result specifier\n\t\t\t\t}else{\n\t\t\t\t\tif(curLine.endsWith(\"#f\")){\n\t\t\t\t\t\ttheTestResults.add(\"f\");\n\t\t\t\t\t\tcurLine=curLine.split(\"\\\\#\")[0];\n\t\t\t\t\t}else if(curLine.endsWith(\"#a\")){\n\t\t\t\t\t\ttheTestResults.add(\"a\");\n\t\t\t\t\t\tcurLine=curLine.split(\"\\\\#\")[0];\n\t\t\t\t\t}else\n\t\t\t\t\t\ttheTestResults.add(\"\");\n\n\t\t\t\t\t//add the input string to the list of input strings\n\t\t\t\t\t//System.out.println(\"Adding input: \"+curLine);\n\t\t\t\t\ttheInputString.add(curLine);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close the file readers\n\t\t\tinStream.close();\n\t\t\ttheReader.close();\n\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"Input file not found.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Cannot open input file.\");\n\t\t}\n\n\t\t//process the input strings\n\t\tint curIdx=0;\n\t\tfor(String s:theInputString){\n\t\t\tif(canHandleString(s)){\n\t\t\t\tSystem.out.println(\"[accept]\");\n\t\t\t\tboolean b = checkVaildity(s,true,theTestResults.get(curIdx));\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"[reject]\");\n\t\t\t}\n\t\t\tcurIdx++;\n\t\t}\n\t\t\n\t}",
"public static void readfile() {\r\n\t\t// read input file\r\n\t\ttry {\r\n\t\t File inputObj = new File(\"input.txt\");\r\n\t\t Scanner inputReader = new Scanner(inputObj);\r\n\t\t int i = 0;\r\n\t\t while (inputReader.hasNextLine()) {\r\n\t\t String str = inputReader.nextLine();\r\n\t\t str = str.trim();\r\n\t\t if(i == 0) {\r\n\t\t \tnumQ = Integer.parseInt(str);\r\n\t\t \torign_queries = new String[numQ];\r\n\t\t \t//queries = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(i == numQ + 1) {\r\n\t\t \tnumKB = Integer.parseInt(str);\r\n\t\t \torign_sentences = new String[numKB];\r\n\t\t \t//sentences = new ArrayList<ArrayList<String>>();\r\n\t\t }\r\n\t\t else if(0 < i && i< numQ + 1) {\t\r\n\t\t \torign_queries[i-1] = str;\r\n\t\t \t//queries.add(toCNF(str));\r\n\t\t }\r\n\t\t else {\r\n\t\t \torign_sentences[i-2-numQ] = str;\r\n\t\t \t//sentences.add(toCNF(str));\r\n\t\t }\t\t \r\n\t\t i++;\r\n\t\t }\r\n\t\t inputReader.close();\r\n\t\t } catch (FileNotFoundException e) {\r\n\t\t System.out.println(\"An error occurred when opening the input file.\");\r\n\t\t }\r\n\t}",
"public void read_file() throws FileNotFoundException, IOException {\n FileReader fw;\r\n BufferedReader rw;\r\n fw = new FileReader(\"dat.txt\");\r\n rw = new BufferedReader(fw);\r\n\r\n String s;\r\n Boy b;\r\n int i, at, intl, bud;\r\n nb = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= nb; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n b = new Boy(name, at, intl, bud, type);\r\n boy_arr.add(b);\r\n }\r\n ng = Integer.parseInt(rw.readLine());\r\n Girl g;\r\n for (i = 1; i <= ng; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n String name = st.nextToken();\r\n at = Integer.parseInt(st.nextToken());\r\n intl = Integer.parseInt(st.nextToken());\r\n bud = Integer.parseInt(st.nextToken());\r\n String type = st.nextToken();\r\n g = new Girl(name, at, intl, bud, type);\r\n girl_arr.add(g);\r\n }\r\n fw = new FileReader(\"gift.txt\");\r\n rw = new BufferedReader(fw);\r\n String ty, gid;\r\n int cs, vl,ngg;\r\n ngg = Integer.parseInt(rw.readLine());\r\n for (i = 1; i <= ngg; i++) {\r\n s = rw.readLine();\r\n StringTokenizer st = new StringTokenizer(s, \",\");\r\n gid = st.nextToken();\r\n cs = Integer.parseInt(st.nextToken());\r\n vl = Integer.parseInt(st.nextToken());\r\n ty = st.nextToken();\r\n Gift gf = new Gift(ty, cs, vl, gid);\r\n gift_arr.add(gf);\r\n }\r\n Collections.sort(gift_arr, new Compare());\r\n}",
"public void fileReadGameHistory(String filename)\n {\n \t//ArrayList<GameObject> gameObject = new ArrayList<>();\n\t\tFileReader file = null;\n\t\ttry {\n\t\t\tfile = new FileReader(filename);\n\t\t} catch (FileNotFoundException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(filename);\n\t\tBufferedReader br = new BufferedReader(file);\n\t\tString s = \"\";\n\t\ttry\n\t\t{\n\t\t\twhile((s = br.readLine()) != null )\n\t\t\t{\n\t\t\t\tString[] prop1 = s.split(\"#\");\n\t\t\t\tSystem.out.println(prop1[0] + \" fgdfsgfds \" + prop1[1]);\n\t\t\t\tString indexOfList = prop1[0];\n\t\t\t\tString[] prop2 = prop1[1].split(\",\");\n\t\t\t\tString[] prop3;\n\t\t\t\tString[] prop4 = indexOfList.split(\";\");\n\t\t\t\t//gameObject.add(new GameObject(indexOfList));\n\t\t\t\tcount = count +1;\n\t\t\t\texistCount = existCount + 1;\n\t\t\t\tif (indexOfList.charAt(0) == 's')//when this line is data of a swimming game\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(prop4[0]);\n\t\t\t\t\tgames.add(new Swimming(prop4[1],\"Swimming\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'c')//when this line is data of a cycling game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Cycling(prop4[1],\"Cycling\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (indexOfList.charAt(0) == 'r')//when this line is data of a running game\n\t\t\t\t{\n\t\t\t\t\tgames.add(new Running(prop4[1],\"Running\",prop4[0]));\n\t\t\t\t\tfor(int i = 0; i < Array.getLength(prop2); i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tprop3 = prop2[i].split(\":\");\n\t\t\t\t\t\tgames.get(count - 1).addParticipant(prop3[0], Integer.parseInt(prop3[1]), 0);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setId(prop3[0]);\n//\t\t\t\t\t\tgames.get(count-1).getResults().get(i).setRe(Integer.parseInt(prop3[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}catch (NumberFormatException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public static void getProblem(String filename){\r\n String line = \"\";\r\n try {\r\n //Get the problem instance\r\n reader = new BufferedReader(new FileReader(filename));\r\n line = reader.readLine();\r\n\r\n //Assume the first line contains the Universe\r\n inString = line.split(\",\");\r\n\r\n for (int i = 0; i < inString.length; i++) {\r\n universe.add(Integer.parseInt(inString[i]));\r\n }\r\n Collections.sort(universe);\r\n System.out.println(\"Universe:\" + universe);\r\n\r\n //Gather in the sets\r\n line = reader.readLine();\r\n while (line != null){\r\n inString = line.split(\",\");\r\n for (int i = 0; i < inString.length; i++) {\r\n set.add(Integer.parseInt(inString[i]));\r\n }\r\n //System.out.println(\"Set: \" + set);\r\n sets.add(set);\r\n set = new ArrayList<Integer>();\r\n line = reader.readLine();\r\n\r\n //Create a blank pheromone\r\n pheremones.add(0);\r\n visited.add(0);\r\n }\r\n System.out.println(\"Sets: \" + sets);\r\n\r\n //Create the pheremones\r\n //System.out.println(\"PheremoneSize: \" + pheremones.size());\r\n\r\n //Set the degradation\r\n //degrade = generationSize/2;\r\n\r\n }catch(FileNotFoundException e){System.out.println(\"File Not Found : \" + filename);}\r\n catch(Exception e){\r\n System.out.println(\"ERROR in getProblem\");\r\n System.out.println(\"File Name: \" + filename);\r\n System.out.println(\"Universe: \" + universe);\r\n System.out.println(\"Line: \" + line);\r\n System.out.println(\"InString: \" + inString.toString());\r\n System.out.println();\r\n System.out.println(e.toString());\r\n }\r\n }",
"private void read(String filename) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new FileReader(filename));\n\t\t\n\t\t//a variable that will increase by one each time another element is added to the array\n\t\t//to ensure array size is correct\n\t\tint numStation = 0;\n\t\t\n\t\t//ignores first 6 lines\n\t\tfor(int i = 0; i < 3; ++i){\n\t\t\tbr.readLine();\n\t\t}\n\t\t\n\t\t//sets String equal readline\n\t\tString lineOfData = br.readLine();\n\n\t\twhile(lineOfData != null)\n\t\t{\n\t\t\tString station = new String();\n\t\t\tstation = lineOfData.substring(10,14);\n\t\t\tMesoAsciiCal asciiAverage = new MesoAsciiCal(new MesoStation(station));\n\t\t\tint asciiAvg = asciiAverage.calAverage();\t\t\n\n\t\t\tHashMap<String, Integer> asciiVal = new HashMap<String, Integer>();\n\t\t\t//put the keys and values into the hashmap\n\t\t\tasciiVal.put(station, asciiAvg);\n\t\t\t//get ascii interger avg value\n\t\t\tInteger avg = asciiVal.get(station);\n\t\t\t\n\t\t\thashmap.put(station,avg);\n\t\t\t\n\t\t\tlineOfData = br.readLine();\n\t\t\t\n\t\t}\n\t\t\n\t\tbr.close();\n\t}",
"private static int[][] readInput() throws Exception {\r\n\t\t\r\n\t\t// Read the input into a array of strings.\r\n\t\tList<String> inputLines = new ArrayList<String>();\r\n\t\tString currLine = \"\";\r\n\t\ttry {\r\n\t\t\t// Read the content of the file into an array of strings.\r\n\t\t\tScanner myScanner = new Scanner(new File(myFileName));\r\n\t\t\twhile((currLine = myScanner.nextLine()) != null) {\r\n\t\t\t\t\r\n\t\t\t\tinputLines.add(currLine);\r\n\r\n\t\t\t\tif (!myScanner.hasNextLine()) {\r\n\t\t\t\t\tmyScanner.close();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Based out of the number of lines in the input file\r\n\t\t\t// create a nXn matrix.\r\n\t\t\tint max = inputLines.size();\r\n\t\t\tint[][] data = new int[max][max];\r\n\t\t\tint count = 0;\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < max; i++) {\r\n\t\t\t\tfor (int j = 0; j < max; j++) {\r\n\t\t\t\t\tdata[i][j] = INFINITY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Populate the nXn matrix.\r\n\t\t\tfor(int i = 0; i < inputLines.size(); i++) {\r\n\t\t\t\tcurrLine = inputLines.get(i);\r\n\t\t\t\tString[] splitLine = currLine.split(\"\\t\");\r\n\t\t\t\tfor(int j = 0; j < splitLine.length; j++) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tdata[count][j] = Integer.parseInt(splitLine[j]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException ex) { \r\n\t\t\t\t\t\t//do nothing\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcount++;\r\n\t\t\t}\t\t\t\r\n\t\t\treturn data;\r\n\t\t\t\r\n\t\t} catch(Exception ex) {\r\n\t\t\tSystem.out.println(ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}",
"private void readFileToArray(FileInputStream fis, Warship[] wsArr) throws Exception {\n\t\tScanner scanner = null;\n\t\ttry {\n\t\t\tscanner = new Scanner(fis);\n\t\t\tint i = 0;\n\t\t\twhile (scanner.hasNextLine()) {\n\t\t\t\twsArr[i] = this.getWarship(scanner.nextLine());\n\t\t\t\ti++;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthrow new Exception(e.getMessage());\n\t\t} finally {\n\t\t\tif (scanner != null) {\n\t\t\t\tscanner.close();\n\t\t\t}\n\t\t}\n\t}",
"private char[] parserGameFile(String fName) throws Exception {\r\n // Parser Master Result file, line to line \r\n BufferedReader fRd = new BufferedReader(new InputStreamReader(new FileInputStream(fName), \"UTF8\")); \r\n String line; \r\n String[] tokens = new String[40];\r\n int lineNumber=0;\r\n int gameNumber = 0;\r\n char gamesResult[] = new char[15];\r\n\r\n while ((line=fRd.readLine()) != null) { \r\n lineNumber++; \r\n tokens = line.split(\":\");\r\n\r\n if (tokens.length==3) {\r\n\r\n // Teams\r\n String[] teams = tokens[0].split(\"-\");\r\n String team1 = getTeam1(teams[0].trim());\r\n String team2 = teams[1].trim();\r\n\r\n // Pools\r\n char result = tokens[1].trim().toUpperCase().charAt(0);\r\n gamesResult[gameNumber++] = result;\r\n\r\n // Score\r\n String score = tokens[2].trim();\r\n\r\n // Add game to Games List\r\n gamesList.add(new Game(CONST.SEASON, jornada, convertToLowerCase(team1), convertToLowerCase(team2), score));\r\n System.out.println(\"/\"+convertToLowerCase(team1)+\"/\"+convertToLowerCase(team2)+\"/\"+result+\"/\"+score+\"/\");\r\n }\r\n }\r\n \r\n return gamesResult;\r\n }",
"private static void readFaculties(){\r\n try(BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(FACULTIES_CONFIG), \"Cp1252\"))){\r\n String line;\r\n while((line = br.readLine()) != null){\r\n String[] parts = line.split(\"\\t\");\r\n if(parts.length == 2){\r\n faculties.put(parts[1], parts[0]);\r\n facultyChoice.add(parts[1]);\r\n }\r\n else{\r\n Logger.getLogger(\"Helper\").log(Level.CONFIG, \"faculties.txt contains invalid data.\");\r\n }\r\n }\r\n } catch (IOException ex) {\r\n Logger.getLogger(\"Helper\").log(Level.SEVERE, null, ex);\r\n }\r\n }",
"public static String[] getUserInput() throws IOException{\n\t\t//Declare variables to read the file.\n\t\tFileInputStream inFile;\n\t\tInputStreamReader inReader;\n\t\tBufferedReader reader;\n\t\t\n\t\t//The test file that I used in order to run the program.\n\t\tString input = \"test.txt\";\n\t\t\n\t\t//Process the file, get it into a bufferedreader\n\t\tinFile = new FileInputStream (input);\n\t\tinReader = new InputStreamReader(inFile);\n\t\treader = new BufferedReader(inReader);\n\n\t\t//The only reason I do this thing where I make a big long string and then break it up\n\t\t//Is because I wasn't too sure about the rules surrounding things we haven't learned (Arrays)\n\t\tString fileData = \"\";\n\t\t\n\t\t//If there's more data, add the line to the end of the FileData String, with a space in between.\n\t\twhile(reader.ready()){\n\t\t\tfileData += (reader.readLine() + \" \");\n\t\t}\n\t\t\n\t\t//Then, break that line up into an array using the split function.\n\t\treturn breakInput(fileData);\n\t}",
"private List<String> findAnts(String inputFileName) {\n\nList<String> lines = new ArrayList<>();\ntry {\nBufferedReader br = new BufferedReader(new FileReader(inputFileName));\nString line = br.readLine();\nwhile (line != null) {\nlines.add(line);\nline = br.readLine();\n}\n} catch (Exception e) {\n\n}\n\nchar[] splitLineByLetterOrDigit;\nList<String> saveAnts = new ArrayList<>();\n\nfor (int k = 0; k < lines.size(); k++) {\nString singleLine = lines.get(k);\nsplitLineByLetterOrDigit = singleLine.toCharArray();\nfor (int i = 0; i < splitLineByLetterOrDigit.length; i++) {\nif (Character.isLetter(splitLineByLetterOrDigit[i])) {\n// first is row\nsaveAnts.add(String.format(\"%d %d %s\", k, i, splitLineByLetterOrDigit[i]));\n}\n}\n}\n\nreturn saveAnts;\n}",
"private static Wine[] read() {\r\n\t\t// We can add files we would like to parse in the following array. We use an array list\r\n\t\t// because it allows us to add dynamically.\r\n\t\tString[] file_adr = { \"data/winemag-data_first150k.txt\", \"data/winemag-data-130k-v2.csv\" };\r\n\t\tArrayList<Wine> arr_list = new ArrayList<Wine>();\r\n\t\t\r\n\t\tint k = 0;\r\n\t\twhile (k < file_adr.length) {\r\n\t\t\tboolean flag = false;\r\n\t\t\tif (file_adr[k].endsWith(\".csv\")) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t\tFile f = new File(file_adr[k]);\r\n\t\t\tScanner sc = null;\r\n\t\t\ttry {\r\n\t\t\t\tsc = new Scanner(f, \"UTF-8\");\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tsc.nextLine();\r\n\t\t\tInteger id_count = 0;\r\n\t\t\tif(!flag) {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\r\n\t\t\t\t\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 10) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\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\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString variety = st[count+8];\r\n\t\t\t\t\tString winery = st[count+9];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\t\"\",\r\n\t\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\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\twhile (sc.hasNextLine()) {\r\n\t\t\t\t\tString scanned = sc.nextLine();\r\n\t\t\t\t\t// if there is a blank line, skip it before a fail.\r\n\t\t\t\t\tif (scanned.isEmpty()) {\r\n\t\t\t\t\t\tscanned = sc.nextLine();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// use this instead of StringTokenizer because it won't skip empty fields.\r\n\t\t\t\t\tString[] st = scanned.split(\",\");\r\n\t\t\t\t\t//System.out.println(arr_list.size());\r\n\t\t\t\t\tid_count = arr_list.size();\r\n\t\t\t\t\t/* was put here to make sure all fields show up.\r\n\t\t\t\t\tString toString = \"\";\r\n\t\t\t\t\tfor (int i = 0; i < st.length; i++) {\r\n\t\t\t\t\t\ttoString += st[i] + \", \";\r\n\t\t\t\t\t}\r\n\t\t\t\t\t*/\r\n\t\t\t\t\t//System.out.println(st[0]);\r\n\t\t\t\t\t/*if(Integer.parseInt(st[0]) == 30350) {\r\n\t\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\tString country = st[1];\r\n\t\t\t\t\tString description = \"\";\r\n\t\t\t\t\t// This piece grabs our entire description! this paragraph has our delimiters so it gets split.\r\n\t\t\t\t\tint count = 0;\r\n\t\t\t\t\tfor (int i = 2; i < (st.length - 12) + 2; i++) {\r\n\t\t\t\t\t\tif (st[i].endsWith(\"\\\"\")) {\r\n\t\t\t\t\t\t\tdescription += st[i];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdescription += st[i] + \", \";\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcount++;\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\tString designation = st[count+2];\r\n\t\t\t\t\t\r\n\t\t\t\t\t// next two fields will fail if the field is empty, so make sure we assign it something.\r\n\t\t\t\t\tInteger points = !(st[count+3].isEmpty()) ? Integer.parseInt(st[count+3]) : -1;\r\n\t\t\t\t\t\r\n\t\t\t\t\tDouble price = !(st[count+4].isEmpty()) ? Double.parseDouble(st[count+4]) : -1.0;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString province = st[count+5];\r\n\t\t\t\t\tString[] region = {\r\n\t\t\t\t\t\t\tst[count+6],\r\n\t\t\t\t\t\t\tst[count+7]\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString taster_name = st[count+8];\r\n\t\t\t\t\tString taster_handle = st[count+9];\r\n\t\t\t\t\tString variety = st[count+10];\r\n\t\t\t\t\tString winery = st[count+11];\r\n\t\t\t\t\t//System.out.println(id_count);\r\n\t\t\t\t\t// unique ID system because some wine bottles have empty names.\r\n\t\t\t\t\tInteger unique_id = id_count++;\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] items = {\r\n\t\t\t\t\t\t\tcountry,\r\n\t\t\t\t\t\t\tdescription,\r\n\t\t\t\t\t\t\tdesignation,\r\n\t\t\t\t\t\t\tprovince,\r\n\t\t\t\t\t\t\twinery,\r\n\t\t\t\t\t\t\tvariety\r\n\t\t\t\t\t};\r\n\t\t\t\t\tString[] reviewer = {\r\n\t\t\t\t\t\t\ttaster_name,\r\n\t\t\t\t\t\t\ttaster_handle\r\n\t\t\t\t\t};\r\n\t\t\t\t\t\r\n\t\t\t\t\tString[] taste = {};\r\n\t\t\t\t\t// Object constructor.\r\n\t\t\t\t\tWine curr_obj = new Wine(items, taste, region, points, unique_id, price, reviewer);\r\n\t\t\t\t\t\r\n\t\t\t\t\tarr_list.add(curr_obj);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tk++;\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t}\r\n\t\t// We no longer need an array list. we have our size required. Put into an array.\r\n\t\tWine[] array_wines = new Wine[arr_list.size()];\r\n\t\tarray_wines = arr_list.toArray(array_wines);\r\n\t\t\r\n\t\treturn array_wines;\r\n\t\r\n\t}",
"static void readRecipes() {\n\t\tBufferedReader br = null;\n\t\tString line = \"\";\n\t\tString cvsSplitBy = \",\";\n\t\ttry {\n\n\t\t\tbr = new BufferedReader(new FileReader(inputFileLocation));\n\t\t\twhile ((line = br.readLine()) != null) {\n\n\t\t\t\tString[] currentLine = line.split(cvsSplitBy);\n\t\t\t\tRecipe currentRecipe = new Recipe(currentLine[0]);\n\t\t\t\t/*\n\t\t\t\t * String[] recipe=new String[currentLine.length-1];\n\t\t\t\t * System.arraycopy(currentLine,1,recipe,0,recipe.length-2);\n\t\t\t\t */\n\t\t\t\tString[] recipe = java.util.Arrays.copyOfRange(currentLine, 1,\n\t\t\t\t\t\tcurrentLine.length);\n\t\t\t\tArrayList<String> ingredients = new ArrayList<String>();\n\t\t\t\tfor (String a : recipe) {\n\t\t\t\t\tingredients.add(a);\n\t\t\t\t}\n\t\t\t\tcurrentRecipe.setIngredients(ingredients);\n\t\t\t\tRecipes.add(currentRecipe);\n\t\t\t}\n\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tif (br != null) {\n\t\t\t\ttry {\n\t\t\t\t\tbr.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}",
"private static List<String[]> readInput(String filePath) {\n List<String[]> result = new ArrayList<>();\n int numOfObject = 0;\n\n try {\n Scanner sc = new Scanner(new File(filePath));\n sc.useDelimiter(\"\");\n if (sc.hasNext()) {\n numOfObject = Integer.parseInt(sc.nextLine());\n }\n for (int i=0;i<numOfObject;i++) {\n if (sc.hasNext()) {\n String s = sc.nextLine();\n if (s.trim().isEmpty()) {\n continue;\n }\n result.add(s.split(\" \"));\n }\n }\n sc.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"FileNotFoundException\");\n }\n return result;\n }",
"public static ArrayList<BoardPair> readFile(String inFileName, String format) {\n ArrayList<BoardPair> boardPairs = new ArrayList<BoardPair>();\n try { \n File inFile = new File(inFileName); \n BufferedReader reader = new BufferedReader(new FileReader(inFile));\n String line = null;\n while ((line=reader.readLine()) != null) { // loop as long as there are input lines \n if(line.contains(\"id,delta\")) \n continue; // skip header\n String str = line.trim(); \n // line fields are: id, delta, start1..400, stop1..400\n String[] tokens = str.split(\",\"); \n int row_id = Integer.parseInt( tokens[0] );\n int delta = Integer.parseInt( tokens[1] );\n int[][] startBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n int[][] stopBoard = new int[Consts.BOARD_SIDE][Consts.BOARD_SIDE]; \n for(int col=0; col<Consts.BOARD_SIDE; col++) { \n for(int row=0; row<Consts.BOARD_SIDE; row++) {\n if(format==\"train\") { \n // train format: id, delta, start.1-start.400, stop.1-stop.400\n // note column major order!\n int startIndex = col*Consts.BOARD_SIDE + row + 2; \n int stopIndex = startIndex + Consts.BOARD_SIDE*Consts.BOARD_SIDE;\n startBoard[row][col]= Integer.parseInt( tokens[startIndex] );\n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n } \n if(format==\"test\") {\n // test format is: id, delta, stop.1-stop.400\n // note column major order!\n int stopIndex = col*Consts.BOARD_SIDE + row + 2; \n startBoard = null; \n stopBoard[ row][col]= Integer.parseInt( tokens[stopIndex ] );\n }\n }\n }\n boardPairs.add( new BoardPair(row_id, delta, startBoard, stopBoard) );\n } \n reader.close(); \n } catch (IOException e) {\n System.out.println(\"ERROR reading: \" + inFileName);\n }\n return boardPairs;\n }",
"private static City[] fileInterpreter(Scanner file,int numberOfLines){\n City[] cities = new City [numberOfLines];\n for(int i = 0 ; file.hasNextLine(); i++){\n String line = file.nextLine();\n Scanner string = new Scanner(line); //String Scanner to consume the line into city and country and rainfall...\n String cityName = string.next();\n String countryName = string.next();\n double[] data = extractRainfallInformation(line.split(\"[ \\t]+[ \\t]*\")); //to create the array of monthly rainfall\n cities[i] = new City(cityName , countryName , data);\n string.close();\n }\n file.close();\n return cities;\n }",
"public static List<Matrix> parseFile(Path path) {\n\t\tList<String> lines = null;\n\t\t\n\t\ttry {\n\t\t\tlines = Files.readAllLines(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint lineCount = lines.size();\n\t\tMatrix A = null;\n\t\tMatrix y = null;\n\t\tint rowIndex = 0;\n\t\tfor (String line : lines) {\n\t\t\t\n\t\t\t// If line is a comment skip\n\t\t\tif (line.startsWith(\"#\")) {\n\t\t\t\tlineCount--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (A == null) {\n\t\t\t\tA = new Matrix(lineCount, lineCount);\n\t\t\t}\n\t\t\t\n\t\t\tif (y == null) {\n\t\t\t\ty = new Matrix(lineCount, 1);\n\t\t\t}\n\t\t\t\n\t\t\tList<Double> dList = Util.parseLine(line);\n\t\t\t\n\t\t\t// Extract numbers\n\t\t\tfor (int i = 0, len = dList.size(); i < len; i++) {\n\t\t\t\n\t\t\t\t// Not last number - contained in A\n\t\t\t\tif (i+1 < len) {\n\t\t\t\t\tA.set(rowIndex, i, dList.get(i));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\t// ... else go to y\n\t\t\t\t\ty.set(rowIndex, 0, dList.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\trowIndex++;\n\t\t}\n\t\t\n\t\tList<Matrix> sol = new ArrayList<>();\n\t\tsol.add(A);\n\t\tsol.add(y);\n\t\t\n\t\treturn sol;\n\t}",
"private int[][] readPuzzle(File f) throws NumberFormatException, IOException {\n\t\tint[][] out = new int[N + 1][N + 1];\n\t\tBufferedReader br = new BufferedReader(new FileReader(f));\n\t\tString line = null;\n\t\tint row = 1;\n\t\ttry {\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tif (line.isBlank() || row > N)\n\t\t\t\t\tcontinue;\n\t\t\t\tString[] vals = line.split(\" \");\n\t\t\t\tif (vals.length != N)\n\t\t\t\t\treturn null;\n\t\t\t\tfor (int j = 0; j < vals.length; j++) {\n\t\t\t\t\tout[row][j + 1] = Integer.parseInt(vals[j]);\n\t\t\t\t}\n\t\t\t\trow++;\n\t\t\t}\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\t\treturn out;\n\t}",
"public static void main(String[] args) {\n ArrayList<String> lines = new ArrayList<String>();\r\n String line;\r\n try {\r\n // Create buffered reader to read input file.\r\n BufferedReader br = new BufferedReader(new FileReader(\"day6.txt\"));\r\n while ((line = br.readLine()) != null) {\r\n lines.add(line);\r\n }\r\n // Add blank line to the end, so that final group count gets calculated (part one).\r\n lines.add(\"\");\r\n // Close the buffered reader once finished.\r\n br.close();\r\n\r\n System.out.println(\"Part one results: \" + partOne(lines));\r\n System.out.println(\"Part two results: \" + partTwo(lines));\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public ArrayList<Suspect> readSuspectFile(String path)\n {\n // Create an arrayList to be populated with suspects\n ArrayList<Suspect> suspectArray = new ArrayList<>();\n try(BufferedReader fileReader = new BufferedReader(new FileReader(path)))\n {\n // Reads file until the reader reaches the end of the file\n while((e = fileReader.readLine()) != null)\n {\n // Creates a Suspect from the file, then adds the Suspect Object to the arrayList.\n String[] info = e.split(\"/\");\n Suspect s = new Suspect();\n s.setName(info[0]);\n s.setLocation(info[1]);\n s.setDescription(info[2]);\n s.setGuilty(false);\n\n\n\n //Didn't add guilty boolean from file - Instead all Suspects guilty = false.\n //Then in Mansion constructor, we draw one random suspect from the arrayList and set their boolean\n //Guilty = true;\n\n // Finally add the created Suspect to the suspectArray\n suspectArray.add(s);\n }\n }\n catch(IOException ex)\n {\n System.out.println(\"File not found\");\n }\n\n return suspectArray;\n }",
"public void main(String[] args) {\n String datas=\"\";\n try {\n File myObj = new File(\"configuracion.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n String[] partes = datas.split(\">\"); //separa el contenido del fichero en diferentes string\n String[] cambios; //y lo vuelve a separar para quitar los titulos entre <>. Ej: <Localizaciones>\n for (int i = 1; i < 4; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n //calcular num de elementos de cada parte\n int[] numelementos = new int[3];\n for (int i = 0; i < 3; i++) {\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='(')\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag1=1;\n }\n }\n }\n\n localizacionesString = new String [numelementos[0]]; //incializa la informacion de cada objeto \n personajesString = new String [numelementos[1]]; //segun el largo de los strings que hemos separado\n objetosString = new String [numelementos[2]];\n String cambio = \"\";\n int count = 0 ;\n\n //Se rellena cada string con un for propio\n //Dentro de un try para deteccion de errores\n try {\n //for para Localizaciones\n for (int i=0; count<numelementos[0]; ++i){ \n if (partes[1].charAt(i)==')'){\n localizacionesString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesString[count]=localizacionesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n if (partes[1].charAt(i)==','){ //Control de errores en el txt /*\n if(partes[1].charAt(i+1)!=' '){\n cambio=cambio+\", \";\n continue;\n }\n if(partes[1].charAt(i+1)==' '&&partes[1].charAt(i+2)==' '){\n cambio=cambio+\", \";\n ++i;\n for(;;i++){\n if(partes[1].charAt(i)!=' ')\n break;\n }\n }\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\"; \n }\n for (int f,i = 0; i < numelementos[0]; i++) {\n f=0;\n for (int j = 0; j < localizacionesString[i].length(); j++) {\n if(localizacionesString[i].charAt(j)==')'||localizacionesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count = 0;\n\n //for para Personajes\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n personajesString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n personajesString[count]=personajesString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[1]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < personajesString[i].length(); j++) {\n if(personajesString[i].charAt(j)==')'||personajesString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n \n count=0;\n\n //for para Objetos\n for (int i=0; count<numelementos[2]; ++i){\n if (partes[3].charAt(i)==')'){\n objetosString[count]=\"\";\n cambio=cambio+partes[3].charAt(i);\n objetosString[count]=objetosString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[3].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[2]; i++) { //Control de errores/*\n f=0;\n for (int j = 0; j < objetosString[i].length(); j++) {\n if(objetosString[i].charAt(j)==')'||objetosString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag1=1;\n }\n } // */\n\n \n } catch (Exception e) {\n System.out.println(\"ERROR EN LECTURA FICHERO\");\n flag1 = 1;\n }\n \n \n\n\n\n\n\n //leer fichero de objetivos(funciona igual que el de configuracion.txt)\n\n datas=\"\";\n try {\n File myObj = new File(\"objetivos.txt\");\n Scanner myReader = new Scanner(myObj);\n while (myReader.hasNextLine()) {\n String data = myReader.nextLine();\n datas = datas + data;\n }\n myReader.close();\n }\n\n catch (FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n\n partes = datas.split(\">\");\n for (int i = 1; i < 3; i++) {\n cambios=partes[i].split(\"<\");\n partes[i]=cambios[0];\n }\n \n numelementos = new int[2];\n for(int i=0 ; i<2 ; i++){\n for(int j=0; j<partes[i+1].length(); j++){\n if(partes[i+1].charAt(j)=='('){\n numelementos[i]++;\n if(partes[i+1].charAt(j)==')'){\n if(numelementos[i]==0)\n flag2=1;\n }\n }\n }\n }\n\n localizacionesObjetivoString = new String [numelementos[0]];\n objetosObjetivoString = new String [numelementos[1]];\n cambio=\"\";\n\n count = 0;\n\n try {\n // for para las localizaciones objetivo\n for (int i=0; count<numelementos[0]; ++i){\n if (partes[1].charAt(i)==')'){\n localizacionesObjetivoString[count]=\"\";\n cambio=cambio+partes[1].charAt(i);\n localizacionesObjetivoString[count]=localizacionesObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[1].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < localizacionesObjetivoString[i].length(); j++) {\n if(localizacionesObjetivoString[i].charAt(j)==')'||localizacionesObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n count=0;\n\n // for para los objetos objetivo\n for (int i=0; count<numelementos[1]; ++i){\n if (partes[2].charAt(i)==')'){\n objetosObjetivoString[count]=\"\";\n cambio=cambio+partes[2].charAt(i);\n objetosObjetivoString[count]=objetosObjetivoString[count]+cambio;\n ++count;\n cambio=\"\";\n continue;\n }\n cambio=cambio+partes[2].charAt(i);\n if(cambio.charAt(0)==' ')\n cambio=\"\";\n }\n for (int f,i = 0; i < numelementos[0]; i++) { //Control de errores /*\n f=0;\n for (int j = 0; j < objetosObjetivoString[i].length(); j++) {\n if(objetosObjetivoString[i].charAt(j)==')'||objetosObjetivoString[i].charAt(j)=='('){\n ++f;\n }\n }\n if(f<2||f>2){\n flag2=1;\n }\n } // */\n\n } catch (Exception e) {\n System.out.println(\"ERRROR EN LA LECTURA DE FICHERO\");\n flag2=1;\n }\n \n System.out.println(\"\");\n }",
"private static void readFileIntoArray (String inputFileName) {\n Path path = Paths.get(inputFileName);\n array = new int[countLines(inputFileName)];\n try {\n Scanner sc = new Scanner(path);\n int i = 0;\n while (sc.hasNextLine()) {\n array[i] = Integer.parseInt(sc.nextLine());\n i++;\n }\n sc.close();\n //sort the array\n MergeSort.mergeSort(array);\n }\n catch(FileNotFoundException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n catch(IOException e) {\n System.out.println(\"File Error\");\n e.printStackTrace();\n }\n }",
"public static ArrayList<ArrayList<Feiertag>> produceFromString(File[] f) {\n\t\tArrayList<ArrayList<Feiertag>> ret = new ArrayList<ArrayList<Feiertag>>();\n\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\tArrayList<Feiertag> temp = new ArrayList<Feiertag>();\n\t\t\ttry {\n\t\t\t\tScanner myReader = new Scanner(f[i]);\n\t\t\t\twhile (myReader.hasNextLine()) {\n\t\t\t\t\tString data = myReader.nextLine();\n\t\t\t\t\ttemp.add(new Feiertag(FeiertageFactory.toDate(data), FeiertageFactory.toName(data)));\n\t\t\t\t}\n\t\t\t\tmyReader.close();\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tret.add(temp);\n\t\t}\n\t\treturn ret;\n\t}",
"public void readFile(String filename) throws IOException {\n BufferedReader buffer = new BufferedReader(new FileReader(filename));\n\n String line;\n int row = 0;\n isFirstLine = true;\n\n while ((line = buffer.readLine()) != null) {\n String[] vals = line.trim().split(\"\\\\s+\");\n int length = vals.length;\n \n if(isFirstLine) {\n \tfor(int col = 0; col < 2; col++) {\n \t\tif(col == 0)\n \t\t\trowSize = Integer.parseInt(vals[col]);\n \t\telse\n \t\t\tcolSize = Integer.parseInt(vals[col]);\n \t}\n \tskiMap = new int[rowSize][colSize];\n \tisFirstLine = false;\n }\n else {\n \tfor (int col = 0; col < length; col++) {\n \tskiMap[row][col] = Integer.parseInt(vals[col]);\n }\n \t row++;\n }\n }\n \n if(buffer != null)\n \tbuffer.close();\n }",
"private void get_values(File f1){\n String line;\n Scanner read_file=null;\n try{\n read_file= new Scanner(f1);\n }catch(FileNotFoundException e){\n System.out.println(\"The specified file of the Student cannot be found.\");\n return;\n }\n line=read_file.nextLine();\n while(!(line.contains(\"OOP\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n //System.out.println(line.substring(8));\n OOP[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[2]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n OOP[3]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DE\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DE[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DE[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n while(!(line.contains(\"DSA\"))){\n line=read_file.nextLine();\n }\n line=read_file.nextLine();\n while(!(line.contains(\"Chap_1\"))){\n line=read_file.nextLine();\n }\n DSA[0]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[1]=Float.parseFloat(line.substring(8));\n line=read_file.nextLine();\n DSA[2]=Float.parseFloat(line.substring(8));\n\n line=read_file.nextLine();\n line=read_file.nextLine();\n total_marks=Float.parseFloat(line.substring(13));\n average=total_marks/10;\n\n read_file.close();\n }",
"public static void readFileSilver(String filename) throws FileNotFoundException{\n try {\n //Scanners and readers and everything??\n File text = new File(filename);\n Scanner inf = new Scanner(text);\n BufferedReader brTest = new BufferedReader(new FileReader(filename));\n String firstLine = brTest.readLine();\n String[] firstLineArray = new String[3];\n firstLineArray = firstLine.split(\" \");\n\n //Determines number of rows, cows, and time.\n N = Integer.parseInt(firstLineArray[0]);\n M = Integer.parseInt(firstLineArray[1]);\n T = Integer.parseInt(firstLineArray[2]);\n\n //Initializes pasture. Assume 0 for empty space, -1 for a tree.\n String temp = \"\";\n pasture = new int[N][M];\n inf.nextLine();\n\n for (int i = 0; i < N; i++){\n temp = inf.next();\n\n for (int j = 0; j < M; j++){\n if (temp.charAt(j) == '.'){\n pasture[i][j] = 0;\n }\n if (temp.charAt(j) == '*'){\n pasture[i][j] = -1;\n }\n }\n }\n\n //Determines (R1, C1) and (R2, C2).\n inf.nextLine();\n R1 = inf.nextInt(); C1 = inf.nextInt();\n R2 = inf.nextInt(); C2 = inf.nextInt();\n\n //Exceptions.\n } catch (FileNotFoundException ex){\n System.out.println(\"Yikes\");\n } catch (IOException ex){\n System.out.println(\"Yikes\");\n }\n }",
"void read() {\n try {\n pre_list = new ArrayList<>();\n suf_list = new ArrayList<>();\n p_name = new ArrayList<>();\n stem_word = new ArrayList<>();\n\n //reading place and town name\n for (File places : place_name.listFiles()) {\n fin = new FileInputStream(places);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n place.add(temp);\n }\n\n }\n\n //reading month name\n for (File mont : month_name.listFiles()) {\n fin = new FileInputStream(mont);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n month.add(temp);\n }\n }\n\n //reading compound words first\n for (File comp_word : com_word_first.listFiles()) {\n fin = new FileInputStream(comp_word);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n comp_first.add(temp);\n }\n }\n //reading next word of the compound\n for (File comp_word_next : com_word_next.listFiles()) {\n fin = new FileInputStream(comp_word_next);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n comp_next.add(temp);\n }\n }\n //reading chi square feature\n for (File entry : chifile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n chiunion.add(temp);\n }\n newunions.clear();\n newunions.addAll(chiunion);\n chiunion.clear();\n chiunion.addAll(newunions);\n chiunion.removeAll(stop_word_list);\n chiunion.removeAll(p_name);\n chiunion.removeAll(month);\n chiunion.removeAll(place);\n }\n //reading short form from abbrivation \n for (File short_list : abbrivation_short.listFiles()) {\n fin = new FileInputStream(short_list);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n shortform.add(temp);\n }\n }\n //reading long form from the abrivation \n for (File long_list : abbrivation_long.listFiles()) {\n fin = new FileInputStream(long_list);\n scan = new Scanner(fin);\n while (scan.hasNextLine()) {\n temp = scan.nextLine();\n temp = Normalization(temp);\n longform.add(temp);\n }\n }\n //reading file from stop word\n for (File stoplist : stop_word.listFiles()) {\n fin = new FileInputStream(stoplist);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n stop_word_list.add(temp);\n }\n }\n\n //reading person name list\n for (File per_name : person_name.listFiles()) {\n fin = new FileInputStream(per_name);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n p_name.add(temp);\n }\n }\n\n //reading intersection union\n for (File entry : interfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n interunion.add(temp);\n }\n }\n newunions.clear();\n newunions.addAll(interunion);\n interunion.clear();\n interunion.addAll(newunions);\n interunion.removeAll(stop_word_list);\n interunion.removeAll(p_name);\n interunion.removeAll(month);\n interunion.removeAll(place);\n }\n // reading ig union\n for (File entry : igfile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n igunion.add(temp);\n }\n }\n for (String str : igunion) {\n int index = igunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n igunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(igunion);\n igunion.clear();\n igunion.addAll(newunions);\n igunion.removeAll(stop_word_list);\n igunion.removeAll(p_name);\n igunion.removeAll(month);\n igunion.removeAll(place);\n }\n //read df uinfion\n for (File entry : dffile.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n dfunion.add(temp);\n }\n }\n for (String str : dfunion) {\n int index = dfunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n dfunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(dfunion);\n dfunion.clear();\n dfunion.addAll(newunions);\n dfunion.removeAll(stop_word_list);\n dfunion.removeAll(p_name);\n dfunion.removeAll(month);\n dfunion.removeAll(place);\n }\n //reading unified model\n for (File entry : unionall_3.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (temp.length() < 2 && temp.length() > 9) {\n\n } else {\n union_3.add(temp);\n }\n }\n for (String str : union_3) {\n int index = union_3.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n union_3.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(union_3);\n union_3.clear();\n union_3.addAll(newunions);\n union_3.removeAll(stop_word_list);\n union_3.removeAll(p_name);\n union_3.removeAll(month);\n union_3.removeAll(place);\n }\n //unified feature for the new model\n for (File entry : unified.listFiles()) {\n\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n newunion.add(temp);\n\n }\n for (String str : newunion) {\n int index = newunion.indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n newunion.set(index, stem_word.get(i));\n }\n }\n }\n newunions.clear();\n newunions.addAll(newunion);\n newunion.clear();\n newunion.addAll(newunions);\n newunion.removeAll(stop_word_list);\n newunion.removeAll(p_name);\n newunion.removeAll(month);\n newunion.removeAll(place);\n\n // newunion.addAll(newunions);\n }\n // reading test file and predict the class\n for (File entry : test_doc.listFiles()) {\n fin = new FileInputStream(entry);\n scan = new Scanner(fin);\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n file_test.add(temp);\n\n }\n newunions.clear();\n newunions.addAll(file_test);\n file_test.clear();\n file_test.addAll(newunions);\n file_test.removeAll(stop_word_list);\n file_test.removeAll(p_name);\n file_test.removeAll(month);\n file_test.removeAll(place);\n }\n //reading the whole document under economy class\n for (File entry : economy.listFiles()) {\n fill = new File(economy + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n economydocument[count1] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n economydocument[count1].add(temp);\n if (temp.length() < 2) {\n economydocument[count1].remove(temp);\n }\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n economydocument[count1].remove(temp);\n }\n }\n for (String str : economydocument[count1]) {\n int index = economydocument[count1].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n economydocument[count1].set(index, stem_word.get(i));\n }\n }\n }\n }\n economydocument[count1].removeAll(stop_word_list);\n economydocument[count1].removeAll(p_name);\n economydocument[count1].removeAll(month);\n economydocument[count1].removeAll(place);\n allecofeature.addAll(economydocument[count1]);\n ecofeature.addAll(economydocument[count1]);\n allfeature.addAll(ecofeature);\n all.addAll(allecofeature);\n count1++;\n\n }\n //reading the whole documents under education category \n for (File entry : education.listFiles()) {\n fill = new File(education + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n educationdocument[count2] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n educationdocument[count2].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n educationdocument[count2].remove(temp);\n }\n }\n }\n\n for (String str : educationdocument[count2]) {\n int index = educationdocument[count2].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n educationdocument[count2].set(index, stem_word.get(i));\n }\n }\n }\n educationdocument[count2].removeAll(stop_word_list);\n educationdocument[count2].removeAll(p_name);\n educationdocument[count2].removeAll(month);\n educationdocument[count2].removeAll(place);\n alledufeature.addAll(educationdocument[count2]);\n edufeature.addAll(educationdocument[count2]);\n allfeature.addAll(edufeature);\n all.addAll(alledufeature);\n count2++;\n }\n// //reading all the documents under sport category\n for (File entry : sport.listFiles()) {\n fill = new File(sport + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n sportdocument[count3] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n sportdocument[count3].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n sportdocument[count3].remove(temp);\n }\n }\n }\n\n for (String str : sportdocument[count3]) {\n int index = sportdocument[count3].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n sportdocument[count3].set(index, stem_word.get(i));\n }\n }\n }\n sportdocument[count3].removeAll(stop_word_list);\n sportdocument[count3].removeAll(p_name);\n sportdocument[count3].removeAll(month);\n sportdocument[count3].removeAll(place);\n allspofeature.addAll(sportdocument[count3]);\n spofeature.addAll(sportdocument[count3]);\n allfeature.addAll(spofeature);\n all.addAll(allspofeature);\n count3++;\n }\n\n// //reading all the documents under culture category\n for (File entry : culture.listFiles()) {\n fill = new File(culture + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n culturedocument[count4] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n\n culturedocument[count4].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n culturedocument[count4].remove(temp);\n }\n }\n\n }\n for (String str : culturedocument[count4]) {\n int index = culturedocument[count4].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n culturedocument[count4].set(index, stem_word.get(i));\n }\n }\n }\n culturedocument[count4].removeAll(stop_word_list);\n culturedocument[count4].removeAll(p_name);\n culturedocument[count4].removeAll(month);\n culturedocument[count4].removeAll(place);\n allculfeature.addAll(culturedocument[count4]);\n culfeature.addAll(culturedocument[count4]);\n allfeature.addAll(culfeature);\n all.addAll(allculfeature);\n count4++;\n\n }\n\n// //reading all the documents under accident category\n for (File entry : accident.listFiles()) {\n fill = new File(accident + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n accedentdocument[count5] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n accedentdocument[count5].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n accedentdocument[count5].remove(temp);\n }\n }\n\n }\n\n for (String str : accedentdocument[count5]) {\n int index = accedentdocument[count5].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n accedentdocument[count5].set(index, stem_word.get(i));\n }\n }\n }\n accedentdocument[count5].removeAll(stop_word_list);\n accedentdocument[count5].removeAll(p_name);\n accedentdocument[count5].removeAll(month);\n accedentdocument[count5].removeAll(place);\n allaccfeature.addAll(accedentdocument[count5]);\n accfeature.addAll(accedentdocument[count5]);\n allfeature.addAll(accfeature);\n all.addAll(allaccfeature);\n count5++;\n }\n\n// //reading all the documents under environmental category\n for (File entry : environmntal.listFiles()) {\n fill = new File(environmntal + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n environmntaldocument[count6] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n environmntaldocument[count6].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n environmntaldocument[count6].remove(temp);\n }\n }\n }\n\n for (String str : environmntaldocument[count6]) {\n int index = environmntaldocument[count6].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n environmntaldocument[count6].set(index, stem_word.get(i));\n }\n }\n }\n environmntaldocument[count6].removeAll(stop_word_list);\n environmntaldocument[count6].removeAll(p_name);\n environmntaldocument[count6].removeAll(month);\n environmntaldocument[count6].removeAll(place);\n allenvfeature.addAll(environmntaldocument[count6]);\n envfeature.addAll(environmntaldocument[count6]);\n allfeature.addAll(envfeature);\n all.addAll(allenvfeature);\n count6++;\n }\n\n// //reading all the documents under foreign affairs category\n for (File entry : foreign_affair.listFiles()) {\n fill = new File(foreign_affair + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n foreign_affairdocument[count7] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n foreign_affairdocument[count7].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n foreign_affairdocument[count7].remove(temp);\n }\n }\n\n }\n for (String str : foreign_affairdocument[count7]) {\n int index = foreign_affairdocument[count7].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n foreign_affairdocument[count7].set(index, stem_word.get(i));\n }\n }\n }\n foreign_affairdocument[count7].removeAll(stop_word_list);\n foreign_affairdocument[count7].removeAll(p_name);\n foreign_affairdocument[count7].removeAll(month);\n foreign_affairdocument[count7].removeAll(place);\n alldepfeature.addAll(foreign_affairdocument[count7]);\n depfeature.addAll(foreign_affairdocument[count7]);\n allfeature.addAll(depfeature);\n all.addAll(alldepfeature);\n count7++;\n }\n\n// //reading all the documents under law and justices category\n for (File entry : law_justice.listFiles()) {\n fill = new File(law_justice + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n law_justicedocument[count8] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n law_justicedocument[count8].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n law_justicedocument[count8].remove(temp);\n }\n }\n\n }\n for (String str : law_justicedocument[count8]) {\n int index = law_justicedocument[count8].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n law_justicedocument[count8].set(index, stem_word.get(i));\n }\n }\n }\n law_justicedocument[count8].removeAll(stop_word_list);\n law_justicedocument[count8].removeAll(p_name);\n law_justicedocument[count8].removeAll(month);\n law_justicedocument[count8].removeAll(month);\n alllawfeature.addAll(law_justicedocument[count8]);\n lawfeature.addAll(law_justicedocument[count8]);\n allfeature.addAll(lawfeature);\n all.addAll(alllawfeature);\n count8++;\n }\n\n// //reading all the documents under other category\n for (File entry : agri.listFiles()) {\n fill = new File(agri + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n agriculture[count9] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n agriculture[count9].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n agriculture[count9].remove(temp);\n }\n }\n\n }\n for (String str : agriculture[count9]) {\n int index = agriculture[count9].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n agriculture[count9].set(index, stem_word.get(i));\n }\n }\n }\n agriculture[count9].removeAll(stop_word_list);\n agriculture[count9].removeAll(p_name);\n agriculture[count9].removeAll(month);\n agriculture[count9].removeAll(place);\n allagrifeature.addAll(agriculture[count9]);\n agrifeature.addAll(agriculture[count9]);\n allfeature.addAll(agrifeature);\n all.addAll(allagrifeature);\n count9++;\n }\n //reading all the documents under politics category\n for (File entry : politics.listFiles()) {\n fill = new File(politics + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n politicsdocument[count10] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n politicsdocument[count10].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n politicsdocument[count10].remove(temp);\n }\n }\n }\n for (String str : politicsdocument[count10]) {\n int index = politicsdocument[count10].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n politicsdocument[count10].set(index, stem_word.get(i));\n }\n }\n }\n politicsdocument[count10].removeAll(stop_word_list);\n politicsdocument[count10].removeAll(p_name);\n politicsdocument[count10].removeAll(month);\n politicsdocument[count10].removeAll(place);\n allpolfeature.addAll(politicsdocument[count10]);\n polfeature.addAll(politicsdocument[count10]);\n allfeature.addAll(polfeature);\n all.addAll(allpolfeature);\n count10++;\n }\n //reading all the documents under science and technology category\n for (File entry : science_technology.listFiles()) {\n fill = new File(science_technology + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n science_technologydocument[count12] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n science_technologydocument[count12].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n science_technologydocument[count12].remove(temp);\n }\n }\n\n }\n for (String str : science_technologydocument[count12]) {\n int index = science_technologydocument[count12].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n science_technologydocument[count12].set(index, stem_word.get(i));\n }\n }\n }\n science_technologydocument[count12].removeAll(stop_word_list);\n science_technologydocument[count12].removeAll(p_name);\n science_technologydocument[count12].removeAll(month);\n science_technologydocument[count12].removeAll(place);\n allscifeature.addAll(science_technologydocument[count12]);\n scifeature.addAll(science_technologydocument[count12]);\n allfeature.addAll(scifeature);\n all.addAll(allscifeature);\n count12++;\n\n }\n\n //reading all the documents under health category\n for (File entry : health.listFiles()) {\n fill = new File(health + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n healthdocument[count13] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n healthdocument[count13].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n healthdocument[count13].remove(temp);\n }\n }\n }\n for (String str : healthdocument[count13]) {\n int index = healthdocument[count13].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n healthdocument[count13].set(index, stem_word.get(i));\n }\n }\n }\n healthdocument[count13].removeAll(stop_word_list);\n healthdocument[count13].removeAll(p_name);\n healthdocument[count13].removeAll(month);\n healthdocument[count13].removeAll(place);\n allhelfeature.addAll(healthdocument[count13]);\n helfeature.addAll(healthdocument[count13]);\n allfeature.addAll(helfeature);\n all.addAll(allhelfeature);\n count13++;\n }\n\n //reading all the file of relgion categories \n for (File entry : army_file.listFiles()) {\n fill = new File(army_file + \"\\\\\" + entry.getName());\n fin = new FileInputStream(fill);\n scan = new Scanner(fin);\n army[count14] = new ArrayList<>();\n while (scan.hasNext()) {\n temp = scan.next();\n temp = Normalization(temp);\n set.add(temp);\n if (comp_first.contains(temp)) {\n int index = comp_first.indexOf(temp);\n next = comp_next.get(index);\n if (comp_next.contains(next)) {\n temp = temp + next;\n }\n }\n if (shortform.contains(temp)) {\n int i = shortform.indexOf(temp);\n temp = longform.get(i);\n }\n army[count14].add(temp);\n for (char dig : temp.toCharArray()) {\n if (Character.isDigit(dig)) {\n army[count14].remove(temp);\n }\n }\n\n }\n for (String str : army[count14]) {\n int index = army[count14].indexOf(str);\n for (int i = 0; i < stem_word.size(); i++) {\n if (inf_derv[i].contains(str)) {\n army[count14].set(index, stem_word.get(i));\n }\n }\n }\n army[count14].removeAll(stop_word_list);\n army[count14].removeAll(p_name);\n army[count14].removeAll(month);\n army[count14].removeAll(place);\n allarmfeature.addAll(army[count14]);\n armfeature.addAll(army[count14]);\n allfeature.addAll(armfeature);\n all.addAll(allarmfeature);\n count14++;\n }\n } catch (Exception ex) {\n System.out.println(\"here\");\n }\n }",
"public void read()\r\n {\r\n String line = \"\";\r\n int numberOfLine = 0;\r\n BufferedReader input;\r\n \r\n try\r\n {\r\n input = new BufferedReader (new FileReader (\"Countries-Population.txt\"));\r\n \r\n //loop for as long as there is data in the file\r\n while (line != null)\r\n {\r\n line = input.readLine (); //reads each line in the file\r\n numberOfLine++;\r\n }\r\n input.close (); //closes the stream\r\n }\r\n catch (IOException e)\r\n {\r\n JOptionPane.showMessageDialog (null, \"Sorry, this file cannot be found. Please enter a different file name.\"); //error message\r\n }\r\n \r\n //create array with size to match number of lines in file\r\n String[] linesFile = new String [numberOfLine - 1], countryStr = new String[numberOfLine-1], capitalStr = new String[numberOfLine-1]; \r\n int[] intArray = new int[numberOfLine - 1];\r\n double[] doubleArray = new double[numberOfLine - 1];\r\n \r\n try\r\n {\r\n //open the same file again\r\n BufferedReader r = new BufferedReader (new FileReader (\"Countries-Population.txt\")); // reset the buffer\r\n int x = 0;\r\n \r\n while (x < numberOfLine - 1) //loop until end of file is reached\r\n {\r\n linesFile [x] = r.readLine (); //feed each data line into an array\r\n x++;\r\n }\r\n \r\n String []ppltnStr = new String[numberOfLine-1];\r\n String [] areaStr = new String[numberOfLine-1];\r\n \r\n //works backwards and extracts the data part by part\r\n for(int i = 0; i<linesFile.length; i++)\r\n {\r\n if(linesFile[i].charAt(linesFile[i].length()- 1) != ' ') //no space exceptions - some lines don't have spaces at the end\r\n {\r\n //finds the the last space to the last character, which is the population\r\n ppltnStr[i] = linesFile[i].substring(linesFile[i].lastIndexOf(' '), linesFile[i].length());\r\n ppltnStr[i] = ppltnStr[i].replaceAll(\"[, ]\", \"\"); //remove the commas and spaces\r\n \r\n linesFile[i] = linesFile[i].substring(0, linesFile[i].lastIndexOf(' ')); //removes the population from the line\r\n \r\n //finds the the last space to the last character, which is the area\r\n areaStr[i] = linesFile[i].substring(linesFile[i].lastIndexOf(' '), linesFile[i].length());\r\n areaStr[i] = areaStr[i].replaceAll(\"[, ]\", \"\");\r\n \r\n linesFile[i] = linesFile[i].substring(0, linesFile[i].lastIndexOf(' ')); //removes the area\r\n }\r\n else //has space\r\n {\r\n //finds the the second last space to the last space, which is the population\r\n ppltnStr[i] = linesFile[i].substring(linesFile[i].lastIndexOf(' ', linesFile[i].lastIndexOf(' ') - 1), linesFile[i].length()); \r\n ppltnStr[i] = ppltnStr[i].replaceAll(\"[, ]\", \"\"); //remove the commas and spaces\r\n \r\n linesFile[i] = linesFile[i].substring(0, linesFile[i].lastIndexOf(' ', linesFile[i].lastIndexOf(' ') - 1) + 1); //removes the population from the line\r\n \r\n //finds the the second last space to the last space for the new line, which is the area\r\n areaStr[i] = linesFile[i].substring(linesFile[i].lastIndexOf(' ', linesFile[i].lastIndexOf(' ') - 1), linesFile[i].length());\r\n areaStr[i] = areaStr[i].replaceAll(\"[, ]\", \"\");\r\n \r\n linesFile[i] = linesFile[i].substring(0, linesFile[i].lastIndexOf(' ', linesFile[i].lastIndexOf(' ') - 1) + 1); //removes the area\r\n }\r\n }\r\n \r\n //parses the string array into an integer array\r\n for (int i = 0 ; i < numberOfLine - 1 ; i++)\r\n {\r\n intArray [i] = Integer.parseInt (ppltnStr [i]);\r\n doubleArray [i] = Double.parseDouble (areaStr [i]);\r\n }\r\n \r\n //hardcodes the exceptions of multi-word capitals/countries\r\n for(int i = 0; i<linesFile.length;i++)\r\n {\r\n String[] lol= linesFile[i].split(\" \"); //stores the parts of the line in lol\r\n if(lol.length == 2) //has to be one or the other\r\n {\r\n if(lol[0].substring(0, 3).equals(\"Vat\")|| lol[0].substring(0, 3).equals(\"Wes\")) //exceptions\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1];\r\n capitalStr[i] = null;\r\n }\r\n else\r\n {\r\n countryStr[i] = lol[0];\r\n capitalStr[i] = lol[1];\r\n }\r\n }\r\n else if(lol.length == 3) //3 words\r\n {\r\n if(lol[0].substring(0, 2).equals(\"Uk\") || lol[0].substring(0, 2).equals(\"Be\")|| lol[0].substring(0, 2).equals(\"In\") || lol[0].substring(0, 2).equals(\"Et\")\r\n || lol[0].substring(0, 2).equals(\"Ar\")|| lol[0].substring(0, 3).equals(\"Cam\")|| lol[0].substring(0, 2).equals(\"Bo\")\r\n || lol[0].charAt(0)=='G'|| lol[0].substring(0, 2).equals(\"Ku\")|| lol[0].substring(0, 2).equals(\"Mo\")|| lol[0].substring(0, 2).equals(\"Pa\")\r\n || lol[0].substring(0, lol[0].length()).equals(\"Malaysia\")|| lol[0].substring(0, lol[0].length()).equals(\"Malaysia\")\r\n || lol[0].substring(0, lol[0].length()).equals(\"Mexico\")|| lol[0].substring(0, lol[0].length()).equals(\"Mauritius\")) //1 word country\r\n {\r\n countryStr[i] = lol[0];\r\n capitalStr[i] = lol[1] + \" \" + lol[2];\r\n }\r\n else //2 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1];\r\n capitalStr[i] = lol[2];\r\n }\r\n }\r\n else if(lol.length == 4) //4 words\r\n {\r\n if(lol[0].substring(0, 2).equals(\"An\") || lol[0].substring(0, 2).equals(\"Br\")) //1 word country\r\n {\r\n countryStr[i] = lol[0];\r\n capitalStr[i] = lol[1] + \" \" + lol[2] + \" \" + lol[3];\r\n }\r\n else if(lol[0].substring(0, 2).equals(\"Ce\") || lol[0].substring(0, lol[0].length()).equals(\"Congo,\") || lol[0].substring(0, 2).equals(\"Tr\")\r\n || lol[0].substring(0, 2).equals(\"Bo\")) //3 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1] + \" \" + lol[2];\r\n capitalStr[i] = lol[3];\r\n }\r\n else //2 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1];\r\n capitalStr[i] = lol[2] + \" \" + lol[3];\r\n }\r\n }\r\n else if(lol.length == 5) //5 words\r\n {\r\n if(lol[0].substring(0, 2).equals(\"St\")) //4 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1] + \" \" + lol[2]+ \" \" + lol[3];\r\n capitalStr[i] = lol[4];\r\n }\r\n else //3 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1] + \" \" + lol[2];\r\n capitalStr[i] = lol[3]+ \" \" + lol[4];\r\n }\r\n }\r\n else //6 word country\r\n {\r\n if(lol[0].substring(0, 2).equals(\"Sã\")) //4 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1] + \" \" + lol[2]+ \" \" + lol[3];\r\n capitalStr[i] = lol[4]+ \" \" +lol[5];\r\n }\r\n else //5 word country\r\n {\r\n countryStr[i] = lol[0] + \" \" + lol[1] + \" \" + lol[2]+ \" \" + lol[3]+ \" \" +lol[4];\r\n capitalStr[i] = lol[5];\r\n }\r\n }\r\n }\r\n r.close (); //close data file\r\n }\r\n catch (IOException e) //handle file related errors\r\n {\r\n System.out.println (e); //error msg\r\n }\r\n catch (NumberFormatException e) //error trap\r\n {\r\n JOptionPane.showMessageDialog (null, \"The file is corrupt because it contains non-integer data. Please try again!\"); //error message\r\n }\r\n population = intArray; //sets the local array equal to the global array so that other methods can process it\r\n area = doubleArray;\r\n countries = countryStr;\r\n capital = capitalStr;\r\n }",
"private void readFromFile(String filename) {\n\t\ttry {\n\t\t Scanner read = new Scanner(new File(filename));\n\t\t String line;\n\t\t int counter = 0;\n\t\t String temp;\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\t\t height = convertToInt(temp);\n\n\t\t line = read.nextLine();\n\t\t temp = line.substring(0);\n\n\t\t length = convertToInt(temp);\n\t\t size = height*length;\n\t\t \n\t\t squares = new Square[size][size];\n\n\t\t while(read.hasNextLine()) {\n\t\t\t\tline = read.nextLine();\n\t\t \tfor (int i = 0; i < line.length(); i++) {\n\t\t \t temp = line.substring(i, i+1);\n\n\t\t \t if (temp.equals(\".\")) {\n\t\t \t\t\tsquares[counter][i] = new FindValue(0);\n\t\t \t } \n\t\t \t else {\n\t\t\t\t\t\tsquares[counter][i] = new PreFilled(convertToInt(temp));\n\t\t\t \t\t}\n\t\t \t}\n\t\t \tcounter++;\n\t\t }\n\t\t} catch(IOException e) {\n\t\t e.printStackTrace();\n\t\t}\n }",
"public static Match[] init () throws FileNotFoundException{\n\n\t\tint numLine = 0;\n\t\t//reads the input file ExchangeRate.txt\n\t\tScanner input1 = new Scanner (new File (\"src/ExchangeRate.txt\"));\n\n\t\t//This loop goes through each line\n\t\twhile (input1.hasNextLine()) {\n\t\t\tinput1.nextLine();\n\t\t\tnumLine++;\n\t\t}\n\n\t\t//Close it in order to start from 0 again for the next loop\n\t\tinput1.close();\n\n\n\t\tMatch [] data = new Match [numLine];\n\t\tint i = 0;\n\t\tScanner input = new Scanner (new File(\"src/ExchangeRate.txt\"));\n\n\t\t//This while loop insures that the program names each section correctly. \n\t\twhile (input.hasNext()) {\n\t\t\tString curr1 = input.next(); //Set curr1 to the first section on the certain line\n\t\t\tString curr2 = input.next(); //Set curr2 to the second section on that same line\n\t\t\tdouble ex = input.nextDouble(); //Set ex to the third section on the same line\n\t\t\t//Sets currency2, currency2, and the exchange rate into an array\n\t\t\tdata[i] = new Match(curr1, curr2, ex);\n\t\t\ti++;\n\t\t}\n\t\tinput.close();\n\t\treturn data;\n\n\t}",
"private static Node[][] parseFile(File sudFile) {\r\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(sudFile))) {\r\n\r\n\t\t\tString currentLine;\r\n\t\t\tString firstLine;\r\n\r\n\t\t\t// Grab the dimensions of the maze and create the array.\r\n\t\t\tfirstLine = br.readLine();\r\n\t\t\tdimensions = Integer.parseInt(firstLine.substring(0, 1));\r\n\t\t\tsubGrids = Integer.parseInt(firstLine.substring(2, 3));\r\n\t\t\tpuzzle = new Node[dimensions][dimensions];\r\n\r\n\t\t\t// Note: Removed domain set present in the N-Queens problem\r\n\t\t\t// Because of how basic the domain of a sudoku problem is\r\n\t\t\t// (1-dimensions) and because checking such values fits so perfectly\r\n\t\t\t// in a for loop.\r\n\t\t\t// for (int i = 1; i <= dimensions; i++) {\r\n\t\t\t// domain.add(i);\r\n\t\t\t// }\r\n\r\n\t\t\tint r = 0;\r\n\t\t\tNode temp;\r\n\t\t\twhile ((currentLine = br.readLine()) != null) {\r\n\t\t\t\tfor (int c = 0; c < dimensions; c++) {\r\n\t\t\t\t\tif (currentLine.charAt(c) == '-') {\r\n\t\t\t\t\t\t// let's replace the dashes with zeroes for comparison's\r\n\t\t\t\t\t\t// sake, and for variable typing's sake\r\n\t\t\t\t\t\ttemp = new Node(0, new HashSet<Integer>(), r, c);\r\n\t\t\t\t\t\tpuzzle[r][c] = temp;\r\n\t\t\t\t\t\t// Keep track of these \"unsolved\" nodes\r\n\t\t\t\t\t\tconstrainedNodes.add(temp);\r\n\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttemp = new Node(Character.getNumericValue(currentLine.charAt(c)), new HashSet<Integer>(), r, c);\r\n\t\t\t\t\t\tpuzzle[r][c] = temp;\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tr++; // next row for next pass through loop\r\n\t\t\t}\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tprintArray(puzzle);\r\n\r\n\t\treturn puzzle;\r\n\r\n\t}",
"private static void parseEdges(File fileNameWithPath) throws Exception{\n\n\t\ttry {\n\n BufferedReader in = new BufferedReader(new FileReader(fileNameWithPath));\n\n\t\t /*\n\t\t * Read the first five lines from file as follows\n\t\t *\n\t\t * NAME: berlin52\n\t\t * COMMENT: 52 locations in Berlin (Groetschel)\n\t\t * DIMENSION: 52\n\t\t * EDGE_WEIGHT_TYPE: EUC_2D\n\t\t * OPTIMAL_COST: 7542\n\t\t * NODE_COORD_SECTION\n\t\t */ \n\t\t for (int i=0;i<6;i++){\n \tString str = in.readLine().trim();\n\t\t\tString[] strArray = str.split(\":\\\\s+\");\n\t\t\tif (strArray[0].equals(\"NAME\")) {\n\t\t\t\tProject.name = strArray[1]; \n\t\t\t} else if (strArray[0].equals(\"DIMENSION\")) {\n\t\t\t\tProject.dimension = new Integer(Integer.parseInt(strArray[1]));\n\t\t\t} else if (strArray[0].equals(\"OPTIMAL_COST\")) {\n\t\t\t\tProject.optimalCost = new Double(Double.parseDouble(strArray[1])); \n\t\t\t} else if (strArray[0].equals(\"EDGE_WEIGHT_TYPE\")) {\n\t\t\t\tProject.edgeWeightType = strArray[1]; }\n\t\t }\n\n\t\t if ( dimension == -1 ){\n\t\t\t throw new Exception(\"ERROR:Failed to read the file contents correctly from \"+fileNameWithPath.getPath());\n\t\t }\n\n\t\t /* read each vertex and its coordinates */\n\t\t Integer[] vertices = new Integer[Project.dimension];\n\t\t Double[] xCord = new Double[Project.dimension];\n\t\t Double[] yCord = new Double[Project.dimension];\n\t\t int vertexCount = 0;\n\n\t\t String str;\n while ((str = in.readLine().trim()) != null) {\n\t\t\tif (str.equals(\"EOF\"))\n\t\t\t\tbreak;\n\n\t\t \tString[] ar=str.split(\"\\\\s+\");\n\n\t\t\tvertices[vertexCount] =new Integer(Integer.parseInt(ar[0]));\n\t\t\txCord[vertexCount] =new Double(Double.parseDouble(ar[1]));\n\t\t\tyCord[vertexCount] =new Double(Double.parseDouble(ar[2]));\n\n\t\t\tvertexCount++;\n\t\t}\n\n in.close();\n\n\t\t/* \n\t\t * Generate the cost matrix between each pair of vertices\n\t\t * as a java HashMap<Integer,HashMap<Integer,Double>>\n\t\t*/\n\t\tfor (int i=0;i<Project.dimension;i++) {\n\t\t\tint vi = vertices[i].intValue();\n\t\t\tfor (int j=i+1;j<Project.dimension;j++) {\n\n\t\t\t\tint vj = vertices[j].intValue();\n\t\t\t\tdouble cost_ij = 0;\n\t\t\t\tif ( vi != vj)\n\t\t\t\t{\n\n\t\t\t\t\tif (Project.edgeWeightType.equals(\"GEO\")){\n\t\t\t\t\t\tint deg;\n\t\t\t\t\t\tdouble min;\n\t\n\t \t\t\t\t\tdeg = (int)(xCord[i].doubleValue());\n\t \t\t\t\t\tmin = xCord[i]- deg; \n\t \t\t\t\t\tdouble latitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[i].doubleValue());\n\t \t\t\t\t\tmin = yCord[i]- deg; \n\t \t\t\t\t\tdouble longitude_i = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(xCord[j].doubleValue());\n\t \t\t\t\t\tmin = xCord[j]- deg; \n\t \t\t\t\t\tdouble latitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdeg = (int)(yCord[j].doubleValue());\n\t \t\t\t\t\tmin = yCord[j]- deg; \n\t \t\t\t\t\tdouble longitude_j = PI * (deg + 5.0 * min/ 3.0) / 180.0; \n\t\n\t \t\t\t\t\tdouble q1 = Math.cos( longitude_i - longitude_j ); \n\t \t\t\t\t\tdouble q2 = Math.cos( latitude_i - latitude_j ); \n\t \t\t\t\t\tdouble q3 = Math.cos( latitude_i + latitude_j ); \n\n\t \t\t\t\t\tcost_ij = Math.floor( earthRadius * Math.acos( 0.5*((1.0+q1)*q2 - (1.0-q1)*q3) ) + 1.0);\n\n\t\t\t\t\t} else if (Project.edgeWeightType.equals(\"EUC_2D\")){\n\t\t\t\t\t\tdouble xd = xCord[i]-xCord[j];\n\t\t\t\t\t\tdouble yd = yCord[i]-yCord[j];\n\t\t\t\t\t\t\n\t\t\t\t\t\t//cost_ij = new Double(Math.sqrt( (xd*xd) + (yd*yd))).intValue();\n\t\t\t\t\t\tcost_ij = Math.round(Math.sqrt( (xd*xd) + (yd*yd)));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tthrow new Exception(\"ERROR:EDGE_WEIGHT_TYPE of GEO and EUC_WD are implemented , not implemented \"+Project.edgeWeightType);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\n\t\t \t\tif (!sourceGTree.containsKey(vi)){\n\t\t \t\t\tsourceGTree.put(vi,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tif (!sourceGTree.containsKey(vj)){\n\t\t \t\t\tsourceGTree.put(vj,new HashMap<Integer,Double>());\n\t\t \t\t}\n\n\t\t \t\tsourceGTree.get(vi).put(vj,cost_ij);\n\t\t \t\tsourceGTree.get(vj).put(vi,cost_ij);\n\n\t\t\t}\n\t\t}\n\n } catch (IOException e) {\n System.out.println(\"ERROR: Failed reading file \" + fileNameWithPath.getPath());\n\t\t throw e;\n }\n\n\t}",
"public void fillFromFile()\n\t{\n\t\tJFileChooser fc = new JFileChooser();\t//creates a new fileChooser object\n\t\tint status = fc.showOpenDialog(null);\t//creates a var to catch the dialog output\n\t\tif(status == JFileChooser.APPROVE_OPTION)\t\n\t\t{\n\t\t\tFile selectedFile = fc.getSelectedFile ( );\n\t\t\tthis.fileName = selectedFile;\n\t\t\tScanner file = null; //scans the file looking for information to load\n\n\t\t\tif(selectedFile.exists())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tfile = new Scanner(fileName); //scans the input file\n\t\t\t\t}\n\t\t\t\tcatch(Exception IOException)\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showConfirmDialog (null, \"Unable to import data from the list\");\n\t\t\t\t\tSystem.exit (-1);\n\t\t\t\t}//if there was an error it will pop up this message\n\t\t\t\t\n\t\t\t\tString str = file.nextLine ( ); //names the line\n\t\t\t\tString [] header = str.split (\"\\\\|\"); //splits the line at the |\n\t\t\t\tsetCourseNumber(header[1]);\n\t\t\t\tsetCourseName(header[0]);\n\t\t\t\tsetInstructor(header[2]);\n\t\t\t\t\n\t\t\t\twhile(file.hasNextLine ( ))\n\t\t\t\t{\n\t\t\t\t\tstr = file.nextLine ( ); //names the line\n\t\t\t\t\tString [] tokens = str.split (\"\\\\|\"); //splits the line at the |\n\t\t\t\t\tStudent p = new Student();\n\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tp.setStrNameLast (String.valueOf (tokens[0]));\n\t\t\t\t\t\tp.setStrNameFirst (String.valueOf (tokens[1]));\n\t\t\t\t\t\tp.setStrMajor (String.valueOf (tokens[2]));\n\t\t\t\t\t\tp.setClassification (tokens[3]);\n\t\t\t\t\t\tp.setiHoursCompleted (new Integer (tokens[4]).intValue ( ));\n\t\t\t\t\t\tp.setfGPA (new Float (tokens[5]).floatValue ( ));\n\t\t\t\t\t\tp.setStrStudentPhoto (String.valueOf (tokens[6]));\n\t\t\t\t\t//creates a person object and then populates it with an array of scanned input values\n\t\t\t\t\t\tclassRoll.add (p);\n\t\t\t\t\t\t}//creates a person object and then populates it with an array of scanned input values\n\t\t\t\t\t\tcatch(Exception IOException)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tIOException.printStackTrace ( );\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog (null, \"Bad input record: '\" + str + \"'\" + IOException.getMessage());\n\t\t\t\t\t\t}//pops up a message if there were any errors reading from the file\n\t\t\t\t}//continues through the file until there are no more lines to scan\n\t\t\tfile.close ( ); //closes the file\n\n\t\t\t\tif(selectedFile.exists ( )==false)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tthrow new Exception();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (Exception IOException)\n\t\t\t\t\t{\n\t\t\t\t\t\tJOptionPane.showMessageDialog (null, \"Bad input record: '\" + selectedFile + \"' \" + IOException.getMessage());\n\t\t\t\t\t}\n\t\t\t\t}//if the user picks a file that does not exist this error message will be caught.\n\t\t\t}\n\t\t}//if the input is good it will load the information from the selected file to and Array List\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.exit (0);\n\t\t\t}\n\t\tthis.saveNeed = true;\n\n\t\t}",
"public static String[] DataCollection(String a) throws FileNotFoundException {\n\tFile file = new File(a); \n \tScanner sc = new Scanner(file); \n \n // Counter variable to count the number of entries in text file\n\tint counter = 0;\n\n\t\n \n\tString[] data = new String[2976];\n // While loop to take in data from text file \n\twhile(sc.hasNextLine())\n\t{\n\t\n\tsc.useDelimiter(\"\\\\Z\"); \n\t\n\t// Inserting data in each line to array\n\tdata[counter] = sc.nextLine();\n\tcounter = counter + 1;\n\t\n\t}\n\treturn data;\n \t}",
"private void loadInformation(){\n\t\ttry{\n\t\t\tFileReader fr = new FileReader(\"SpaceProgramGaussDistribution.txt\");\n\t\t\tBufferedReader br = new BufferedReader(fr);\n\t\t\tScanner sc = new Scanner(br);\n\t\t\t\n\t\t\tString info = \"\";\n\t\t\t\n\t\t\twhile(sc.hasNextLine()){\n\t\t\t\tinfo += sc.nextLine();\n\t\t\t}\n\t\t\t\n\t\t\tString split[] = info.split(\"#\");\n\t\t\t\n\t\t\tfor(int i = 0; i < split.length; i++){\n\t\t\t\tpopulationInfo += split[i]+\"\\n\";\n\t\t\t}\n\t\t\tsc.close();\n\t\t\tbr.close();\n\t\t\tfr.close();\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(\"File not found: SpaceProgramGaussDistribution.txt\");\n\t\t}\n\t}",
"void readData(String fileName){ \r\n\t\ttry{ \r\n\t\t\tScanner sc = new Scanner(new File(fileName), \"UTF-8\");\r\n\t\t\t\r\n\t\t\t// input grid dimensions and simulation duration in timesteps\r\n\t\t\tdimt = sc.nextInt();\r\n\t\t\tdimx = sc.nextInt(); \r\n\t\t\tdimy = sc.nextInt();\r\n\t\t\t//System.out.println(dimt+\" \"+dimx + \" \"+dimy);\r\n\t\t\t// initialize and load advection (wind direction and strength) and convection\r\n\t\t\tadvection = new Vector[dimt][dimx][dimy];\r\n\t\t\tconvection = new float[dimt][dimx][dimy];\r\n\t\t\tfor(int t = 0; t < dimt; t++)\r\n\t\t\t\tfor(int x = 0; x < dimx; x++)\r\n\t\t\t\t\tfor(int y = 0; y < dimy; y++){\r\n\t\t\t\t\t\tadvection[t][x][y] = new Vector();\r\n\t\t\t\t\t\tadvection[t][x][y].x = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tadvection[t][x][y].y = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\tconvection[t][x][y] = Float.parseFloat(sc.next());\r\n\t\t\t\t\t\t//System.out.println(advection[t][x][y].x+\" \"+advection[t][x][y].y + \" \"+convection[t][x][y]);\r\n\t\t\t\t\t}\r\n\t\t\t\r\n\t\t\tclassification = new int[dimt][dimx][dimy];\r\n\t\t\tsc.close(); \r\n\t\t} \r\n\t\tcatch (IOException e){ \r\n\t\t\tSystem.out.println(\"Unable to open input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tcatch (InputMismatchException e){ \r\n\t\t\tSystem.out.println(\"Malformed input file \"+fileName);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void loadFromFile() {\n try {\n FileInputStream fis = openFileInput(FILENAME);\n InputStreamReader isr = new InputStreamReader(fis);\n BufferedReader reader = new BufferedReader(isr);\n Gson gson = new Gson();\n Type listFeelingType = new TypeToken<ArrayList<Feeling>>(){}.getType();\n recordedFeelings.clear();\n ArrayList<Feeling> tmp = gson.fromJson(reader, listFeelingType);\n recordedFeelings.addAll(tmp);\n fis.close();\n\n } catch (FileNotFoundException e) {\n // TODO Auto-generated catch block\n recordedFeelings = new ArrayList<Feeling>();\n e.printStackTrace();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }",
"public ArrayList<String> parseFile(String fileName) throws IOException {\n\t\tthis.parrsedArray = new ArrayList<String>();\n\t\tFileInputStream inFile = null;\n\n\t\tinFile = new FileInputStream(mngr.getPath() + fileName);\n\t\tDataInputStream in = new DataInputStream(inFile);\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\n\t\tString strLine;\n\n\t\twhile ((strLine = reader.readLine()) != null && strLine.length() > 0) {\n\t\t\t// Print the content on the console\n\t\t\tparrsedArray.add(strLine);\n\t\t}\n\n\t\tinFile.close();\n\n\t\treturn parrsedArray;\n\n\t}",
"public ArrayList<List<String>> processSemesterFile(String semesterfile) {\n\t\tArrayList<List<String>> semesters = new ArrayList<List<String>>();\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(semesterfile));\n\t\t\tString line = null;\n\t\t\twhile ((line = reader.readLine()) != null) \n\t\t\t{\n\t\t\t\tline = line.trim();\n\t\t\t\t\n\n\t\t\t\tString[] tokens = line.split(\":\");\n\n\t\t\t\tList<String> list = new ArrayList<String>();\n\t\t\t\tfor (String token : tokens) \n\t\t\t\t{\n\t\t\t\t\ttoken.trim();\n\t\t\t\t\t//System.out.println(token);\n\t\t\t\t\t//if (token.equals(\"\"))\n\t\t\t\t\t\t//continue;\n\t\t\t\t\tlist.add(token);\n\t\t\t\t}\n\t\t\t\tif (!list.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tsemesters.add(list);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t}\n\t\t\treader.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn semesters;\n\t}",
"public void setReaderToArray(){\n try{\n String client, number = null;\n\n File reader = new File(\"clientFile/clientInfo.txt\");\n\n Scanner scn = new Scanner(reader);\n scn.useDelimiter(\",\");\n\n while(scn.hasNext()){\n number = scn.next();\n client = scn.next();\n\n clientList.add(client + \" - \" + number);\n }\n scn.close();\n }catch (FileNotFoundException exception){\n System.out.println(\"An error occurred.\");\n }\n }",
"public void readtabs(File f) {\r\n \tString str = new String();\r\n try{\r\n BufferedReader br = new BufferedReader(new FileReader(f.getAbsolutePath()));\r\n str = br.readLine();\r\n \r\n while((str = br.readLine()) != null){\r\n //str = str.replaceAll(\";\", \"\");\r\n String info[] = str.split(\";\");\r\n if(f.getName().equals(\"mdl_chat_messages.txt\")){\r\n \t//chat message id; chatid; userid; groupid; system; message; timestamp;\r\n \tmobileact ma = new mobileact(info[2].trim(), info[6].trim(), \"Chat Message\", info[5]);\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_forum_posts.txt\")){\r\n \t//id; discussion; parent; userid; created; modified; mailed; subject; message; \r\n \t//messageformat; messagetrust; attachment; totalscore; mailnow; \r\n \tmobileact ma = new mobileact(info[3].trim(), info[5].trim(), \"Forum Posts\", info[8].trim());\r\n \tmobact.add(ma);\r\n }else if(f.getName().equals(\"mdl_quiz_attempts.txt\")){\r\n \t//id; quiz; userid; attempt; uniqueid; layout; currentpage; \r\n \t//preview; state; timestart; timefinish; timemodified; timecheckstate; \r\n \t//sumgrades; needsupgradetonewqe; \r\n \tmobileact ma = new mobileact(info[2].trim(), info[11].trim(), \"Attempt Quiz\", info[8].trim());\r\n \tmobact.add(ma);\r\n }\r\n }\r\n br.close();\r\n }catch(Exception e){\r\n JOptionPane.showMessageDialog(null, \"read moodle log file failed.\", \"System Message\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }",
"public void readEdges(){\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0])-1;\n int end = Integer.parseInt(lineElements[1])-1;\n vertices.get(start).addAdj(vertices.get(end));\n vertices.get(end).addAdj(vertices.get(start));\n }\n\n // Read the edges for AI agents\n\n for ( j= 0;j<edgesNum;j++){\n lineElements = lines.get(j+2).split(\" \");\n // System.out.println(lineElements[0]+\" \"+lineElements[1]);\n int start = Integer.parseInt(lineElements[0]);\n int end = Integer.parseInt(lineElements[1]);\n allSCountries.get(start).adj.add(end);\n allSCountries.get(end).adj.add(start);\n }\n }",
"public List<Grade> importGrade(String filename) throws FileNotFoundException {\n List<Grade> grades = new ArrayList<>();\n FileReader fileReader = new FileReader(DATA_PATH + filename);\n Scanner scanner = new Scanner(fileReader);\n //skip first line\n String firstLine = scanner.nextLine();\n Log.i(\"first line: \" + firstLine);\n\n while (scanner.hasNextLine()) {\n String[] s = scanner.nextLine().split(\",\");\n String degree = s[0];\n String knowledge = s[1];\n String skill = s[2];\n Grade grade = new Grade(degree, knowledge, skill);\n grades.add(grade);\n }\n\n scanner.close();\n return grades;\n }",
"public static String [][] fileToStringArray(File file, int[] xLength, int []yLength, Boolean[] cantPlay){\n //this is where the array is created\n String [][] arr = new String [yLength[0]][xLength[0]];\n //we call this irrelevant because it felt fitting because what is in there beforehand is irrelevant as long\n //as it isnt [\n String board = \"irrelevant\";\n //this breaks a loop - which needs to also cause the file to not go through - edit this eventually!****\n \n //this is set to 2 because there are 3 characters per element in an array - which is a count of 2\n int f = 2;\n try{\n Scanner console = new Scanner((file));\n \n //this makes sure that the only thing that is scanned has to do with the game board and not the title\n \n while(board.charAt(0) != '['){\n //this will grab an entire row of the board, one row at a time\n board = console.next();\n }\n for(int i = 0; i<yLength[0]; i++){\n //if there are two points where there are two chracters in [ ] then the program is suppose to \n //send an error message to the user - WIP\n if(cantPlay[0] == true){\n break;\n }\n //to make the scanner move to the next row\n if(i>0){\n board = console.next();\n }\n for(int j = 0; j<xLength[0]; j++){\n arr[i][j] = \"\";\n // System.out.println(\"TU\");\n //System.out.println(\"f: \" +f);\n //this makes it so that if f is >2 then it will be greater then 3 if it has another\n //situation where there are two characters in [ ]\n f = f - 2;\n // we increment it by f+j*3 so that it goes through each character in each row\n while(board.charAt(f+((j*3))) != ']'){\n arr[i][j] += board.charAt(f+((j*3)));\n f++;\n \n }\n if(f>3){\n cantPlay[0] = true;\n }\n //this should always snag the ] that was missed in the while loop for each element of the array\n arr[i][j] += board.charAt(f+((j*3)));\n }\n }\n }catch(FileNotFoundException fnfe){\n System.exit(1);\n }\n return arr;\n }",
"public String[][] loadData(String fileName)\n{\n String[] rows = loadStrings(fileName);\n String[][] dataa = new String [24][7];\n int i = 0;\n for (String row : rows) \n {\n String[] columns = row.split(\",\");\n if (columns.length >= 7) \n {\n for (int j = 0; j < 7; j=j+1)\n {\n dataa [i][j]=columns[j];\n }\n i = i +1;\n }\n }\n return dataa;\n}",
"public static String[][][] schematic(File file) {\n try {\n blocks = new String[8][11][11];\n \n BufferedReader bufRdr = new BufferedReader(new FileReader(file));\n String line;\n //read each line of text file\n for (int level = 0; level < 8; level++) {\n for (int row = 0; row < 11; row++) {\n line = bufRdr.readLine();\n String[] strArr = line.split(\",\");\n System.arraycopy(strArr, 0, blocks[level][row], 0, 11);\n }\n }\n } catch (IOException io) {\n System.err.println(Constants.MY_PLUGIN_NAME + \" Could not read csv file\");\n }\n return blocks;\n }",
"public static String[] getTeamInfo(){\n List<String> input = null;\n String[] output = null;\n try {\n Path path = Paths.get(Constants.TEAM_FILE_PATH);\n input = Files.readAllLines(path, StandardCharsets.UTF_8);\n output = input.get(0).split(\",\");\n } catch (Exception e){\n System.out.println(\"Exception: \" + e.toString());\n }\n return output;\n }",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader=new BufferedReader(new FileReader(\"gift1.in\"));\n\t\tint numOfPersons=Integer.parseInt(bufferedReader.readLine());\n\t\tint finalCredit[]=new int[numOfPersons];\n\t\tint initialCredit[]=new int[numOfPersons];\n\t\t\n\t\t//Line 2\n\t\t//System.out.println(\"Enter the names of the people in the group\");\n\t\tString names[]=new String[numOfPersons];\n\t\tfor (int i = 0; i < numOfPersons; i++) {\n\t\t\tnames[i]=bufferedReader.readLine();\n\t\t}\n\t\tfor (int i = 0; i < numOfPersons; i++) {\n\n\t\t\t//System.out.println(\"enter the name of the person\");\n\t\t\tString name=bufferedReader.readLine();\n\t\t\tint countNum=0;\n\t\t\tfor(int j=0;j<names.length;j++){\n\t\t\t\tif(name.contentEquals(names[j])){\n\t\t\t\t\tcountNum=j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//System.out.println(\"enter the amount to be divided to gifts\");\n\t\t\tString spaceTemp=bufferedReader.readLine();\n\t\t\tint spaceIndex=spaceTemp.indexOf(' ');\n\t\t\tint amount=Integer.parseInt(spaceTemp.substring(0,spaceIndex));\t\n\t\t\tinitialCredit[countNum]=amount;\n\t\t\t//System.out.println(\"enter the number of people to be gifted\");\n\t\t\tint numberOfPeople=Integer.parseInt(spaceTemp.substring(spaceIndex+1));\n\t\t\tint creditToBeAdded=0;\n\t\t\tif(numberOfPeople!=0){\n\t\t\t\tif(amount%numberOfPeople==0){\n\t\t\t\t\tcreditToBeAdded=amount/numberOfPeople;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tcreditToBeAdded=(int)amount/numberOfPeople;\n\t\t\t\t\tfinalCredit[countNum]+=amount-(((int)amount/numberOfPeople)*numberOfPeople);\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(numberOfPeople!=0)\n\t\t\t{\n\t\t\t\t//System.out.println(\"enter the names of people who should be gifted\");\n\t\t\t\tString peopleName=bufferedReader.readLine();\n\t\t\t\t//map the names and add credits\n\t\t\t\tfor(int j1=0;j1<names.length;j1++){\n\t\t\t\t\tif(peopleName.contentEquals(names[j1])){\n\t\t\t\t\t\tfinalCredit[j1]+=creditToBeAdded;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tnumberOfPeople--;\n\t\t\t}\n\t\t}\n\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(\"gift1.out\")));\n\t\tfor (int h = 0; h < finalCredit.length; h++) {\n\t\t\tout.println(names[h]+\" \"+(-initialCredit[h]+finalCredit[h]));\n\t\t}\n\t\tout.close();\n\t\t\n\t\t/*for (int h = 0; h < finalCredit.length; h++) {\n\t\t\tSystem.out.println(initialCredit[h]);\n\t\t}*/\n\t\tSystem.exit(0);\n\t}",
"private void readVenueFile(String path)\n {\n FileIO fileIO = new FileIO();\n fileIO.setFileName(path);\n String fileData = fileIO.readFile();\n String[] data = fileData.split(\"\\\\n\"); // split data by new line character\n for(int i = 0 ; i < data.length ; i++)\n {\n String[] values = data[i].split(\",\"); //split each row by ,\n getVenues().addVenue(values[0], Integer.parseInt(values[1]),Integer.parseInt(values[2]), Double.parseDouble(values[3])); // add a venue to the collection\n } \n }",
"public void readfiles1(String file_name){\n \n\n try{\n File fname1 = new File(file_name);\n Scanner sc = new Scanner(fname1);\n \n while (sc.hasNext()){\n String temp = sc.nextLine();\n String[] sts = temp.split(\" \");\n outs.addAll(Arrays.asList(sts));\n\n }\n\n // for (int i = 0;i<outs.size();i++){\n // System.out.println(outs.get(i));\n //}\n\n }catch(Exception ex){\n System.out.println(ex.getMessage());\n }\n }",
"public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}",
"private static void readFile(String filePath) {\n\t\ttry {\n\t\t\tString [] data; // Array of strings that contains the different cells.\n\t\t\t\n\t\t\t// Open the file and read it.\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(filePath));\n\t\t\t\n\t\t\t// Read the next line;\n\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\n\t\t\t// Number of photos.\n\t\t\tSystem.out.println(\">> Reading number of photos...\");\n\t\t\tnumberPhotos = Integer.parseInt(data[0]);\n\t\t\t\n\t\t\tSystem.out.println(\">> Reading photos info...\");\n\t\t\tSystem.out.println(\"\");\n\t\t\tfor (int i = 0; i < numberPhotos; i++) {\n\t\t\t\tdata = bufferedReader.readLine().split(ONE_SPACE);\n\t\t\t\t\n\t\t\t\tList<String> tagList = new ArrayList<String>();\n\t\t\t\t\n\t\t\t\tfor (int j = 2; j < data.length; j++) {\n\t\t\t\t\ttagList.add(data[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (data[0].toUpperCase().equals(\"V\")) {\n\t\t\t\t\tphotoList.add(new Photo(true, i, tagList));\n\t\t\t\t} else {\n\t\t\t\t\tslideList.add(new Slide(i, i, tagList));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Close the file.\n\t\t\tbufferedReader.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Error while reading the input file: \" + e);\n\t\t}\n\t}",
"public static ArrayList readData(){\n ArrayList alr = new ArrayList();\n try{\n ArrayList stringArray = (ArrayList)read(filename);\n for (int i = 0; i < stringArray.size(); i++){\n String st = (String)stringArray.get(i);\n StringTokenizer star = new StringTokenizer(st, SEPARATOR);\n int movieID = Integer.parseInt(star.nextToken().trim());\n String email = star.nextToken().trim();\n String comment = star.nextToken().trim();\n Review review = new Review(movieID, email, comment);\n alr.add(review);\n }\n }\n catch (IOException e){\n System.out.println(\"Exception > \" + e.getMessage());\n }\n return alr;\n }",
"public static Species[] loadSpeciesFile(String filename) {\n java.util.Scanner input = null;\n java.io.File inputFile = new java.io.File(filename);\n try {\n input = new java.util.Scanner(inputFile);\n } catch( java.io.FileNotFoundException e ) {\n System.err.println(\"Error: Unable to open file \" + filename);\n System.exit(1);\n }\n \n String current = \"\";\n if(input.hasNext())\n current = input.next();\n List<Species> speciesList = new ArrayList<Species>();\n while(input.hasNext()) {\n int count = 0;\n int i = 0;\n StringBuilder sequence = new StringBuilder();\n String speciesName = \"\";\n while(count < 6 && i < current.length() && current.substring(0,1).equals(\">\") ) {\n if(current.charAt(i) == '|')\n count++;\n if(count == 6 && !current.substring(i + 1).contains(\"|\")) {\n speciesName = current.substring(i + 1);\n }\n i++;\n }\n if(count == 6) {\n current = input.next();\n boolean next = true;\n while (next == true && !current.substring(0,1).equals(\">\")) {\n sequence.append(current);\n if(input.hasNext())\n current = input.next();\n else\n next = false;\n }\n String[] sequenceArray = new String[sequence.length()];\n for(int j = 0; j < sequence.length(); j++) {\n sequenceArray[j] = Character.toString(sequence.charAt(j));\n }\n Species currSpecies = new Species(speciesName, sequenceArray);\n speciesList.add(currSpecies);\n }\n else\n current = input.next();\n }\n Species[] arraySpecies = new Species[speciesList.size()];\n for (int i = 0; i < speciesList.size(); i++) {\n arraySpecies[i] = speciesList.get(i);\n }\n return arraySpecies;\n }",
"public static Visit[] getVisitListFromSequentialFile(String filename, Patient[] patientList)\n\t\t\tthrows IOException, IllegalArgumentException, NullPointerException {\n\t\tVisit[] visitInfo = new Visit[150];\n\t\tScanner inputStream = null;\n\t\tint visitCounter = 0;\n\t\tString ramq;\n\t\t\n\t\tint patientLocation;\n\t\tint year = 0;\n\t\tint month = 0;\n\t\tint day = 0;\n\t\tint hour = 0;\n\t\tint min = 0;\n\t\tint priorityCode;\n\t\tString yearStr;\n\t\tString monthStr;\n\t\tString dayStr;\n\t\tString hourStr;\n\t\tString minStr;\n\t\tString priorityCodeStr;\n\t\tString complaint;\n\n\t\ttry {\n\t\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\t\tnew InputStreamReader(new FileInputStream(filename), StandardCharsets.UTF_8));\n\n\t\t\tinputStream = new Scanner(bufferedReader);\n\t\t\tString record = null;\n\n\t\t\t// Gets the RAMQ only from patient list\n\t\t\t// Will throw a NullPoiterException if patientList is null.\n\t\t\tif (patientList == null)\n\t\t\t{\n\t\t\t\tthrow new NullPointerException(\"Patient list is null.\");\n\t\t\t}\n\t\t\tString[] ramqArray = new String[patientList.length];\n\t\t\tfor (int i = 0; i < patientList.length; i++) {\n\t\t\t\tramqArray[i] = patientList[i].getRamq().getRamq();\n\t\t\t}\n\t\t\t\n\t\t\twhile (inputStream.hasNext()) {\n\n\t\t\t\trecord = inputStream.nextLine().trim();\n\n\t\t\t\tif (!record.isEmpty()) {\n\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\tString[] recordArray = record.split(\"\\\\*\");\n\t\t\t\t\t\tif ((recordArray.length < 6) || (recordArray.length > 13)) {\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"The record contains too much or too little data.\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tramq = recordArray[0];\n\n\t\t\t\t\t\t// Checks if RAMQ exists in patient file, gets location\n\t\t\t\t\t\tpatientLocation = ListUtilities.binarySearch(ramqArray, ramq);\n\n\t\t\t\t\t\tif (patientLocation == -1) {\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"The record RAMQ is not a patient.\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Will be valid because patientList is valid\n\t\t\t\t\t\tvisitInfo[visitCounter] = new ClinicVisit(patientList[patientLocation]);\n\n\t\t\t\t\t\t// Represents the registration date\n\t\t\t\t\t\tyearStr = recordArray[1];\n\t\t\t\t\t\tmonthStr = recordArray[2];\n\t\t\t\t\t\tdayStr = recordArray[3];\n\t\t\t\t\t\thourStr = recordArray[4];\n\t\t\t\t\t\tminStr = recordArray[5];\n\n\t\t\t\t\t\tif ((!yearStr.equals(\"\")) && (!monthStr.equals(\"\")) && (!dayStr.equals(\"\"))\n\t\t\t\t\t\t\t\t&& (!hourStr.equals(\"\")) && (!minStr.equals(\"\"))) {\n\t\t\t\t\t\t\t// Attempting to parse ints for localdatetime\n\t\t\t\t\t\t\tyear = Integer.parseInt(yearStr);\n\t\t\t\t\t\t\tmonth = Integer.parseInt(monthStr);\n\t\t\t\t\t\t\tday = Integer.parseInt(dayStr);\n\t\t\t\t\t\t\thour = Integer.parseInt(hourStr);\n\t\t\t\t\t\t\tmin = Integer.parseInt(minStr);\n\n\t\t\t\t\t\t\tLocalDateTime registrationTime = LocalDateTime.of(year, month, day, hour, min);\n\t\t\t\t\t\t\tvisitInfo[visitCounter].setRegistrationDateAndTime(Optional.of(registrationTime));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Checks if triage date is present, sets it.\n\t\t\t\t\t\tif (recordArray.length >= 11) {\n\t\t\t\t\t\t\t// Represents the triage date\n\t\t\t\t\t\t\tyearStr = recordArray[6];\n\t\t\t\t\t\t\tmonthStr = recordArray[7];\n\t\t\t\t\t\t\tdayStr = recordArray[8];\n\t\t\t\t\t\t\thourStr = recordArray[9];\n\t\t\t\t\t\t\tminStr = recordArray[10];\n\n\t\t\t\t\t\t\tif ((!yearStr.equals(\"\")) && (!monthStr.equals(\"\")) && (!dayStr.equals(\"\"))\n\t\t\t\t\t\t\t\t\t&& (!hourStr.equals(\"\")) && (!minStr.equals(\"\"))) {\n\t\t\t\t\t\t\t\t// Attempting to parse ints for localdatetime\n\t\t\t\t\t\t\t\tyear = Integer.parseInt(yearStr);\n\t\t\t\t\t\t\t\tmonth = Integer.parseInt(monthStr);\n\t\t\t\t\t\t\t\tday = Integer.parseInt(dayStr);\n\t\t\t\t\t\t\t\thour = Integer.parseInt(hourStr);\n\t\t\t\t\t\t\t\tmin = Integer.parseInt(minStr);\n\n\t\t\t\t\t\t\t\tLocalDateTime triageTime = LocalDateTime.of(year, month, day, hour, min);\n\t\t\t\t\t\t\t\tvisitInfo[visitCounter].setTriageDateAndTime(Optional.of(triageTime));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// Checks if priority is present, sets it.\n\t\t\t\t\t\tif (recordArray.length >= 12) {\n\t\t\t\t\t\t\tpriorityCodeStr = recordArray[11];\n\n\t\t\t\t\t\t\tif (!priorityCodeStr.equals(\"\")) {\n\t\t\t\t\t\t\t\tpriorityCode = Integer.parseInt(priorityCodeStr);\n\t\t\t\t\t\t\t\tvisitInfo[visitCounter].setPriority(Priority.getPriorityCode(priorityCode));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Checks if complaint is present, sets it.\n\t\t\t\t\t\tif (recordArray.length == 13) {\n\t\t\t\t\t\t\tcomplaint = recordArray[12];\n\t\t\t\t\t\t\tif (!complaint.equals(\"\")) {\n\t\t\t\t\t\t\t\tvisitInfo[visitCounter].setComplaint(Optional.of(complaint));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tvisitCounter++;\n\t\t\t\t\t} catch (IllegalArgumentException iae) {\n\t\t\t\t\t\tSystem.out.println(\"The following record caused an error.\");\n\t\t\t\t\t\tSystem.out.println(record);\n\t\t\t\t\t\tSystem.out.println(iae.getMessage() + \"\\n\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} catch (DateTimeException dte) {\n\t\t\t\t\t\tSystem.out.println(\"The following record caused an error.\");\n\t\t\t\t\t\tSystem.out.println(record);\n\t\t\t\t\t\tSystem.out.println(dte.getMessage() + \"\\n\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\n\t\t\t\t} // end if record is not empty\n\n\t\t\t} // end of while loop\n\t\t\tvisitInfo = resizeVisit(visitInfo, visitCounter);\n\n\t\t\treturn visitInfo;\n\t\t}\n\n\t\tcatch (IOException e) {\n\t\t\tthrow new IOException(\"File not found.\\n\" + e.getMessage());\n\t\t} catch (NullPointerException n) {\n\t\t\tthrow new NullPointerException(n.getMessage());\n\t\t} finally {\n\t\t\tif (inputStream != null)\n\t\t\t\tinputStream.close();\n\t\t}\n\n\t}",
"public List<List<String>> read () {\n List<List<String>> information = new ArrayList<>();\n try (BufferedReader br = new BufferedReader(new FileReader(path))) {\n int aux = 0;\n while ((line = br.readLine()) != null) {\n String[] data = line.split(split_on);\n List<String> helper = new ArrayList<>();\n helper.add(data[0]);\n helper.add(data[1]);\n information.add(helper);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (br != null) {\n try {\n br.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n return information;\n }",
"private void createLinesArray()\n {\n //This will iterate through the lines array\n for (int i = 0; i < lines.length; i++)\n {\n //Stop at end-of-File\n if (mapScanner.hasNextLine())\n {\n //Add the current line to the lines array\n lines[i] = mapScanner.nextLine();\n }\n }\n }",
"void populateArray () {\r\n\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream (\"Bank.dat\");\r\n\t\t\tdis = new DataInputStream (fis);\r\n\t\t\t//Loop to Populate the Array.\r\n\t\t\twhile (true) {\r\n\t\t\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\t\t\trecords[rows][i] = dis.readUTF ();\r\n\t\t\t\t}\r\n\t\t\t\trows++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception ex) {\r\n\t\t\ttotal = rows;\r\n\t\t\tif (total == 0) { }\r\n\t\t\telse {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tdis.close();\r\n\t\t\t\t\tfis.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception exp) { }\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"public static void read6() {\n List<String> list = new ArrayList<>();\n\n try (BufferedReader br = Files.newBufferedReader(Paths.get(filePath))) {\n\n //br returns as stream and convert it into a List\n list = br.lines().collect(Collectors.toList());\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n list.forEach(System.out::println);\n }",
"public void read() {\n String line = \"\";\n int counter = 0;\n try {\n input = new BufferedReader(new FileReader(file));\n while (line != null) {\n if (!(line.equals(\"arglebargle\"))) {//not a default\n names.add(line);\n }\n }\n input.close();\n }\n catch (IOException e) {\n }\n }",
"public static void main(String[] args) {\n File data = new File(\"C:\" + File.separatorChar + \"temp\" + File.separatorChar \r\n + \"labFile.txt\");\r\n \r\n BufferedReader in = null;\r\n int count = 0;\r\n int recordCount = 0;\r\n try {\r\n //FileReader is being decorated by BufferedReader to make it read faster\r\n //buffered allows us to talk to file\r\n //open the stream\r\n in = new BufferedReader(new FileReader(data));\r\n //read the first line\r\n String line = in.readLine();\r\n //so long as line we just read is not null then continue reading file\r\n //if line is null it's end of file\r\n while (line != null) {\r\n \r\n \r\n if (count == 0) {\r\n String[] myStringArray = line.split(\" \");\r\n \r\n System.out.println(\"First Name: \" + myStringArray[0]);\r\n System.out.println(\"Last Name: \" + myStringArray[1]); \r\n } else if (count == 1) {\r\n \r\n System.out.println(\"Street Address: \" + line); \r\n } else if (count == 2) {\r\n \r\n String[] myStringArray = line.split(\" \");\r\n System.out.println(\"City: \" + myStringArray[0].replace(\",\", \" \"));\r\n System.out.println(\"State: \" + myStringArray[1]);\r\n System.out.println(\"Zip: \" + myStringArray[2]);\r\n \r\n count = -1;\r\n recordCount++;\r\n System.out.println(\"\");\r\n System.out.println(\"Number of records read: \" + recordCount);\r\n System.out.println(\"\");\r\n } \r\n count++;\r\n \r\n //reads next line\r\n line = in.readLine(); // strips out any carriage return chars\r\n \r\n }\r\n\r\n } catch (IOException ioe) {\r\n System.out.println(\"Houston, we have a problem! reading this file\");\r\n //want to close regardless if there is an error or not\r\n } finally {\r\n try {\r\n //close the stream\r\n //closing the file throws a checked exception that has to be surrounded by try catch\r\n in.close();\r\n } catch (Exception e) {\r\n\r\n }\r\n }\r\n }",
"private static String[][] getMap(String inputFile, String[][] Map) {\n\t\tFile text = new File(inputFile);\t\r\n\t\tint j = 0;\r\n\r\n\t\ttry {\r\n\t\t\tScanner s = new Scanner(text);\r\n\t\t\tString nex = s.nextLine();\r\n\t\t\t\r\n\t\t\twhile(s.hasNextLine())\r\n\t\t\t{\r\n\t\t\tnex = s.nextLine();\r\n\t\t\tfor (int i = 0; i < nex.length(); i++)\r\n\t\t\t{\r\n\t\t\t\tchar c = nex.charAt(i);\r\n\t\t\t\tString d = Character.toString(c);\r\n\t\t\t\tMap[j][i] = d;\t\r\n\t\t\t}\r\n\t\t\tj++;\r\n\t\t\t}\t\r\n\t\t\ts.close();\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}\t\t\r\n\t\treturn Map;\r\n}",
"public static void main(String[] args) {\n\n // Start a new instance of this class, which parses and adds jugglefest.txt to your Lists\n JuggleFestCircuitAssignments assignment = null;\n try {\n assignment = new JuggleFestCircuitAssignments();\n System.err.println(\"Added \" + assignment.jugglers.size() + \" jugglers and \" + assignment.circuits.size() + \" circuits. There will be \" + assignment.MAX_JUGGLERS_PER_CIRCUIT + \" jugglers per circuit.\");\n } catch(FileNotFoundException fnfe) {\n System.err.println(\"Could not find file\");\n }\n\n // For each juggler, add them to the best circuit they can be part of\n for (int i = 0; i < assignment.jugglers.size(); i++) {\n assignment.addJugglerToCircuit(i, assignment.jugglers.get(i).getDesiredCircuits().get(0));\n }\n\n System.err.println(\"\\n\\n ------------------ \\n\\n\");\n for (int i = 0; i < assignment.circuits.size(); i++) {\n System.out.print(\"Circuit \" + i + \" contains: \");\n for (Integer juggler : assignment.circuits.get(i).getJugglersInCircuit()) {\n System.out.print(juggler + \", \");\n }\n System.out.println();\n }\n }",
"public static void readFile() {\n\t\tbufferedReader = null;\n\t\ttry {\n\t\t\tFileReader fileReader = new FileReader(\"/home/bridgeit/Desktop/number.txt\");\n\t\t\tbufferedReader = new BufferedReader(fileReader);\n\n\t\t\tString line;\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] strings = line.split(\" \");\n\t\t\t\tfor (String integers : strings) {\n\t\t\t\t\thl.add(Integer.parseInt(integers));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"File Not Found...\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void takeInFile() {\n System.out.println(\"Taking in file...\");\n //Reads the file\n String fileName = \"messages.txt\";\n String line = null;\n try {\n FileReader fileReader = new FileReader(fileName);\n \n BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n //Adds each line to the ArrayList\n int i = 0;\n while ((line = bufferedReader.readLine()) != null) {\n lines.add(line);\n //System.out.println(line);\n i++;\n }\n \n bufferedReader.close();\n } catch (FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + fileName + \"'\");\n } catch (IOException ex) {\n System.out.println(\"Error reading file '\" + fileName + \"'\");\n }\n System.out.println(\"Done taking in file...\");\n }",
"public void readPairs(String fileName) {\n BufferedReader r = null;\n try {\n r = new BufferedReader(new InputStreamReader(new FileInputStream(fileName)));\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n while (true) {\n String line = null;\n try {\n line = r.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (line == null) {\n break;\n }\n assert line.length() == 11; // indatakoll, om man kör med assertions på\n String start = line.substring(0, 5);\n String goal = line.substring(6, 11);\n\n int s = words.indexOf(start);\n int v = words.indexOf(goal);\n\n shortestPathPairs(s, v);\n }\n\n }",
"public void readFile() {\r\n try {\r\n final String file = \"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\";\r\n double average = 0;\r\n BufferedReader br = new BufferedReader(new FileReader(file));\r\n String line = br.readLine();\r\n line = br.readLine();\r\n String[] splited = line.split(\",\");\r\n this.maxLA = Double.parseDouble(splited[0]);\r\n this.minLA = Double.parseDouble(splited[0]);\r\n this.maxLO = Double.parseDouble(splited[1]);\r\n this.minLO = Double.parseDouble(splited[1]);\r\n this.maxH = Math.abs(Double.parseDouble(splited[2]));\r\n this.minH = Math.abs(Double.parseDouble(splited[2]));\r\n int index = 0;\r\n double x;\r\n double y;\r\n double z;\r\n while (line != null) {\r\n String[] splitedString = line.split(\",\");\r\n x = Double.parseDouble(splitedString[0]);\r\n y = Double.parseDouble(splitedString[1]);\r\n z = Math.abs(Double.parseDouble(splitedString[2]));\r\n average += y;\r\n if (x > maxLA) {\r\n maxLA = x;\r\n } else if (x < minLA) {\r\n minLA = x;\r\n }\r\n if (y > maxLO) {\r\n maxLO = y;\r\n } else if (y < minLO) {\r\n minLO = y;\r\n }\r\n if (z > maxH) {\r\n maxH = z;\r\n } else if (z < minH) {\r\n minH = z;\r\n }\r\n Bee3D newBee = new Bee3D(x, y, z);\r\n this.beesArray[index++] = newBee;\r\n line = br.readLine();\r\n }\r\n average = average / this.numberOfBees;\r\n System.out.println(\"Maximum latitude: \" + maxLA + \" Minimum latitude: \" + minLA);\r\n System.out.println(\"Maximum longitude: \" + maxLO + \" Minimum longitude: \" + minLO);\r\n System.out.println(\"Maximum height: \" + maxH + \" Minimum height: \" + minH);\r\n this.distanceLongi = getDistanceBetween(average);\r\n System.out.println(\"Distance between the most distant latitudes \" + (int) (Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat) + \" m\");\r\n System.out.println(\"Distance between the most distant longitudes: \" + (int) (Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi) + \" m\");\r\n System.out.println(\"Distance between the most distant heights: \" + (int) (Math.abs(Math.abs(maxH) - Math.abs(minH))) + \" m\");\r\n System.out.println(\"Average distance between longitudes: \" + distanceLongi + \" m\");\r\n this.offset *= 2;\r\n this.offset += 10;\r\n this.BeesCollision = new LinkedList[(int) ((Math.abs(Math.abs(maxLO) - Math.abs(minLO)) * distanceLongi / precission) + offset)][(int) ((Math.abs(Math.abs(maxLA) - Math.abs(minLA)) * distanceLat / precission) + offset)][(int) (Math.abs((Math.abs(maxH) - Math.abs(minH)) / precission) + offset)];\r\n this.offset -= 10;\r\n this.offset /= 2;\r\n } catch (IOException ioe) {\r\n File file = new File(\"ConjuntoDeDatosCon\" + this.numberOfBees + \"abejas.txt\");\r\n System.out.println(\"Something went wrong reading the file\");\r\n System.out.println(\"File exist: \" + file.exists());\r\n }\r\n }",
"public static void main (String args[] ){\n\t\tScanner scanner = new Scanner( System.in );\r\n\t\tSystem.out.print ( \" 1. Load Employee (From File) \\n 2. Exit Program \\n Enter Your Selection: \" );\r\n\t\tint input = scanner.nextInt();\r\n\t\t\r\n\t\t//if user inputs 1 read the text file and print employees loaded from the file\r\n\t\tif (input == 1 ){\r\n\t\t\tString[] Data;\r\n\t\t\t/**\r\n\t\t\t**create four arrays each of type StaffPharmacist, PharmacyManager, StaffTechnician, Senior technician\r\n\t\t\t**in order to store the employee objects. create arrays of length 1\r\n\t\t\t**/\r\n\t\t\tStaffPharmacist [] Pharmacist = new StaffPharmacist[1];\t\t\r\n\t\t\tPharmacyManager [] Manager = new PharmacyManager[1];\t\t\t\r\n\t\t\tStaffTechnician [] staffTech = new StaffTechnician[1];\t\t\t\r\n\t\t\tSeniorTechnician [] seniorTech = new SeniorTechnician[1];\r\n\t\t\ttry{\r\n\t\t\t\t//read the text file using scanner\r\n\t\t\t\tFile file = new File(\"employees.txt\");\r\n\t\t\t\t\t\t\r\n\t\t\t\tScanner sc = new Scanner(file);\r\n\t\t\t\t\t\r\n\t\t\t\t//while text file has next line split the text to store all elements in to an array\r\n\t\t\t\twhile (sc.hasNextLine()){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//read the text file and store it in an array called data. split the text file at , and read until we have next line\r\n\t\t\t\t\tData = sc.nextLine().split(\",\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t//create 4 employee objects of each employee type \r\n\t\t\t\t\tPharmacyManager pharmacyManager = new PharmacyManager(Data);\r\n\t\t\t\t\tStaffPharmacist staffPharmacist = new StaffPharmacist(Data);\r\n\t\t\t\t\tStaffTechnician staffTechnician = new StaffTechnician(Data);\r\n\t\t\t\t\tSeniorTechnician seniorTechnician = new SeniorTechnician(Data);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tint i;\r\n\t\t\t\t\t/** parse through the text files to check the job id number.\r\n\t\t\t\t\tif the job id is one than the employee is pharmacy manager and there fore store it in an array of type pharmacy manager, else if job id == 2 than it is a staff pharmacist there fore store the staff pharmacist employee in the respective array. else if job id == 3 the employee is a staff technician therefore store the employee object staff technician in array of type staff technician and if the id == 4 than the employee is senior technician so store the employee senior technician in an array of type senior technician\r\n\t\t\t\t\t**/\r\n\t\t\t\t\tfor( i = 0; i < Data.length; i = i + 4){\r\n\t\t\t\t\t\tif( Integer.parseInt(Data[i]) == 1 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tManager[0] = pharmacyManager;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 2 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tPharmacist[0] = staffPharmacist;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 3 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tstaffTech[0] = staffTechnician;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}else if( Integer.parseInt(Data[i]) == 4 ){\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tseniorTech[0] = seniorTechnician;\r\n\t\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\t\t\r\n\t\t\t\t//close the file \r\n\t\t\t\tsc.close();\r\n\t\t\t\t\t\r\n\t\t\t\t//print that the file loaded success fully\r\n\t\t\t\tSystem.out.println ( \" \\n File Successfully Loaded! \" );\r\n\t\t\t\t\t\r\n\t\t\t\t//set a boolean variable named keepgoing equal to true.\r\n\t\t\t\tboolean keepGoing = true;\r\n\t\t\t\t//as long as keep going remains true, do the following steps\r\n\t\t\t\twhile(keepGoing){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//ask the user what they would like to do next\r\n\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t\t//if user inputs 3 that is tries to print checks prior to entering hours worked than throw an error\r\n\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tSystem.out.println( \" Please enter the hours worked (Option #2) before trying to calculate the paycheck amounts! \" );\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//again ask the user after throwing the exception about what they would like to do\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\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\t//do this steps as long as user inputs 1 or 2\r\n\t\t\t\t\t\tdo{\r\n\t\t\t\t\t\t\t//if the user inputs 1 print the employee information described in respective classes of employees\r\n\t\t\t\t\t\t\tif(input == 1){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tManager[0].printPharmacyManager();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tPharmacist[0].printStaffPharmacist();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tseniorTech[0].printSeniorTechnician();\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tstaffTech[0].printStaffTechnician();\r\n\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}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t//if the user inputs 2 prompt the user asking the number of hours worked by employees\r\n\t\t\t\t\t\t\telse if(input == 2){\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tSystem.out.print( \" \\n Please enter the hours worked: \" );\r\n\t\t\t\t\t\t\t\tint workingHours = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t//than again ask user what they would like to do\r\n\t\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t/**if user inputs 3 after they entered number of hours employees worked than calculate the employee pay checks\r\n\t\t\t\t\t\t\t\tusing the calculate pay method defined in employee class\r\n\t\t\t\t\t\t\t\tget the employees pay rate by using getHourlyRate method defined in employee class\r\n\t\t\t\t\t\t\t\t**/\r\n\t\t\t\t\t\t\t\tif(input == 3){\r\n\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tManager[0].calculatePay(workingHours, Manager[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tPharmacist[0].calculatePay(workingHours, Pharmacist[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tstaffTech[0].calculatePay(workingHours, seniorTech[0].getHourlyRate() );\r\n\t\t\t\t\t\t\t\t\tseniorTech[0].calculatePay(workingHours, staffTech[0].getHourlyRate() );\r\n\t\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\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t//again show the menu to the user asking them what they would like to do\r\n\t\t\t\t\t\t\t//if user enters one or two or three repeat the above steps else exit the loop\r\n\t\t\t\t\t\t\tSystem.out.print ( \" \\n 1. Print Employee Information \\n 2. Enter Hours Worked \\n 3. Calculate Paychecks \\n 4. Exit Program \\n Enter Your Selection: \" );\r\n\t\t\t\t\t\t\tinput = scanner.nextInt();\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}while(input == 1 || input == 2 );\r\n\t\t\t\t\t}while(input == 3);\r\n\t\t\t\t\t//if user enters 4 set keepGoing = false print good bye and exit the loop.\r\n\t\t\t\t\tif(input == 4){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tkeepGoing = false;\r\n\t\t\t\t\t\tSystem.out.println( \" Goodbye! \" );\r\n\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//if the file is not found in the system throw an IO exception printing file not found\t\t\t\t\t\t\t\r\n\t\t\t}catch(FileNotFoundException fnfe){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t//catch the exception if the file is not found\r\n\t\t\t\tSystem.out.println(\" File Load Failed! \\n java.io.FileNotFoundException: employees.txt ( The system cannot find the file specified) \\n Program Exiting..... \");\r\n\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t//if the user inputs 2 in the main menu bar exit the loop and say goodBye!\r\n\t\tif(input == 2){\r\n\t\t\t\t\r\n\t\t\tSystem.out.println ( \"\\n Good Bye! \\n\" );\r\n\t\t\t\t\r\n\t\t}\r\n\t\t\t\r\n\t}",
"private ArrayList<String> parseFile(String file_name){ // extract each line from file AS string (stopList)\r\n ArrayList<String> list = new ArrayList<>();\r\n Scanner scanner = null;\r\n try{\r\n scanner = new Scanner(new BufferedReader(new FileReader(file_name)));\r\n while (scanner.hasNextLine())\r\n {\r\n list.add(scanner.nextLine());\r\n }\r\n }\r\n catch (Exception e ){ System.out.println(\"Error reading file -> \"+e.getMessage()); }\r\n finally {\r\n if(scanner != null ){scanner.close();} // close the file\r\n }\r\n return list;\r\n }",
"private static void tokenFiles() throws IOException\r\n\t{\r\n\t\tFileReader fr = new FileReader(filename);\r\n\t\tBufferedReader br1 = new BufferedReader(fr);\r\n\t\t\r\n\t\tDouble[] salaries = new Double[10];//array for salary\r\n\t\tInteger[] id = new Integer[10];//array for id\r\n\t\tInteger[] age = new Integer[10];//array for age\r\n\t\tString[] fName = new String[10];//array for first name\r\n\t\tString[] lName = new String[10];//array for last name\r\n\t\tString[] status = new String[10];//array for status\r\n\t\tDouble[] raises = new Double[10];//array for the raised salary\r\n\t\tString s1;//string for readLine of files\r\n\t\tint i = 0;//index for loop of arrays\r\n\t\t\r\n\t\tSystem.out.println(\"\\nWith a 2% raise\\n\");\r\n\t\t//while loop to convert to proper type\r\n\t\twhile ((s1 = br1.readLine())!=null && i<10)\r\n\t\t{\r\n\t\t\tStringTokenizer st = new StringTokenizer(s1);//create new obj tokenizer\r\n\t\t\tfName[i] = st.nextToken();\r\n\t\t\tlName[i] = st.nextToken();\r\n\t\t\tid[i] = Integer.parseInt(st.nextToken());\r\n\t\t\tage[i] = Integer.parseInt(st.nextToken());\t\t\t\t\r\n\t\t\tsalaries[i] = Double.parseDouble(st.nextToken());\r\n\t\t\tstatus[i] = st.nextToken();\r\n\t\t\t\r\n\t\t\tSystem.out.println(fName[i]+\" \"+ lName[i]+\" \"+ id[i]+\r\n\t\t\t\t\t\t\" \"+ age[i]+\" \"+salaries[i]+\" \"+status[i]);\t\r\n\t\t\t\r\n\t\t\traises[i]= (salaries[i]*.02) +salaries[i];//calculate new salaries\r\n\t\t\tSystem.out.println(\"Salary with raise: \" +raises[i]);//print raise amount\r\n\t\t\ti++;\r\n\t\t}//end while loop convert to proper type\r\n\t\tbr1.close();//close this buffered reader\r\n\t}",
"public static void main(String[] args) throws IOException, ParseException {\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"C:\\\\Dev\\\\Demo\\\\Demo\\\\src\\\\main\\\\resources\\\\data\\\\USNationalParks.txt\"));\n\t\ttry {\n\t\t StringBuilder sb = new StringBuilder();\n\t\t String line = \"\";\n\t\t String[] lineArray;\n\t\t \n\t\t Park park = new Park();\n\t\t \n\t\t \n\t\t \n\t\t ArrayList<Park> retArray = new ArrayList<Park>();\n\t\t while ((line = br.readLine()) != null) {\n\t\t \tpark = new Park();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\"); //2 Acadia\n\t\t\t park.setParkName(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //2 Maine\n\t\t\t lineArray = line.split(\">\");\n\t\t\t park.setProvince(lineArray[2].substring(0, lineArray[2].indexOf('<')));\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine(); //19: \"44.35, -68.21\"\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setLatitude(lineArray[19].substring(0, 5));\n\t\t\t park.setLongitude(lineArray[19].substring(7, lineArray[19].indexOf('<')));\n\t\t\t \n\t\t\t \n\t\t\t line = br.readLine(); //4 February 26th, 1919\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setDateEstablished(stringToDate(lineArray[4].substring(0, lineArray[4].indexOf('<'))));\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); //3 347,389 acres '('\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkArea(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[3].substring(0, lineArray[3].indexOf('a')-1)).intValue());\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line); // 1 3,303,393 <\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t park.setParkVisitors(NumberFormat.getNumberInstance(java.util.Locale.US).parse(lineArray[1].substring(0, lineArray[1].indexOf('<'))).intValue());\n\t\t\t \n\t\t\t line = br.readLine(); //skip for now\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t line = br.readLine();\n\t\t\t System.out.println(line);\n\t\t\t lineArray = line.split(\">\");\n\t\t\t printArryStrings(lineArray);\n\t\t\t \n\t\t\t \n\n\t\t \n\t\t\t retArray.add(park);\n\t\t }\n\t\t \n\t\t for(Park p: retArray){\n\t\t \tSystem.out.println(\"Insert into parks(name, country, province, latitude, longitude, dtEst, parkArea, annualVisitors)\" + \"VALUES('\"+ p.getParkName()+\"',\"+ \"'United States','\"+p.getProvince() +\"','\"+ p.getLatitude()+\"','\" + p.getLongitude() + \"','\" + dateToString(p.getDateEstablished()) + \"',\" + p.getParkArea() +\",\"+ \t\t\t\tp.getParkVisitors()+\");\");\n\t\t \t//System.out.println();\n\t\t }\n\t\t} finally {\n\t\t br.close();\n\t\t}\n\t}",
"public void readData(InputStream is) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(is));\r\n\r\n String line = \"\";\r\n try {\r\n while ((line = reader.readLine()) != null) {\r\n //Split line by \",\"\r\n String[] fields = line.split(\",\");\r\n //Log.d(\"csvParseFieldLength\", String.valueOf(fields.length));\r\n ArrayList<Race> races = new ArrayList<>();\r\n if (fields[9].equals(\"\"))\r\n break;\r\n else {\r\n Swimmer s = new Swimmer(fields[0],fields[10], fields[9], Integer.parseInt(fields[8]), fields[7], races);\r\n swimmers.add(s);\r\n s.addRace(new Race(Integer.parseInt(fields[2]), Integer.parseInt(fields[3]), 0, null, (fields[4] + \" \" + fields[5])));\r\n \r\n EventID e = new EventID(eventId);\r\n String b = fields[12];\r\n \r\n \r\n if (!b.equals(\" \")) \r\n \te.addNames(b);\r\n \r\n \r\n \r\n }\r\n }\r\n } catch (IOException ex) {\r\n //Log.d(\"csvParseSwim\", \"Error reading data from file on line \" + line);\r\n }\r\n }",
"private void loadData () {\n try {\n File f = new File(\"arpabet.txt\");\n BufferedReader br = new BufferedReader(new FileReader(f));\n vowels = new HashMap<String, String>();\n consonants = new HashMap<String, String>();\n phonemes = new ArrayList<String>();\n String[] data = new String[3];\n for (String line; (line = br.readLine()) != null; ) {\n if (line.startsWith(\";\")) {\n continue;\n }\n data = line.split(\",\");\n phonemes.add(data[0]);\n if (data[1].compareTo(\"v\") == 0) {\n vowels.put(data[0], data[2]);\n } else {\n consonants.put(data[0], data[2]);\n }\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"protected String[] readInFile(String filename) {\n Vector<String> fileContents = new Vector<String>();\n try {\n InputStream gtestResultStream1 = getClass().getResourceAsStream(File.separator +\n TEST_TYPE_DIR + File.separator + filename);\n BufferedReader reader = new BufferedReader(new InputStreamReader(gtestResultStream1));\n String line = null;\n while ((line = reader.readLine()) != null) {\n fileContents.add(line);\n }\n }\n catch (NullPointerException e) {\n CLog.e(\"Gest output file does not exist: \" + filename);\n }\n catch (IOException e) {\n CLog.e(\"Unable to read contents of gtest output file: \" + filename);\n }\n return fileContents.toArray(new String[fileContents.size()]);\n }",
"private static void readCandidateName(String path) throws IOException {\n\n File file = new File(path);\n\n List<String> contents = FileUtils.readLines(file);\n char alphabet;\n\n for (alphabet = 'A'; alphabet <= 'Z'; alphabet++) {\n // Iterate the result to print each line of the file.\n for (String line : contents) {\n candidateNames.put(alphabet, line);\n\n //create new ArrayList for each candidate.\n candidateVotes.put(alphabet, new ArrayList());\n numberOfCandidates++;\n alphabet++;\n\n }\n break;\n }\n }",
"@SuppressWarnings(\"resource\")//I ADDED\n\tpublic static CensusData parse(String filename) {\n\t\tCensusData result = new CensusData();\n\t\t\n try {\n BufferedReader fileIn = new BufferedReader(new FileReader(filename));\n \n // Skip the first line of the file\n // After that each line has 7 comma-separated numbers (see constants above)\n // We want to skip the first 4, the 5th is the population (an int)\n // and the 6th and 7th are latitude and longitude (floats)\n // If the population is 0, then the line has latitude and longitude of +.,-.\n // which cannot be parsed as floats, so that's a special case\n // (we could fix this, but noisy data is a fact of life, more fun\n // to process the real data as provided by the government)\n \n String oneLine = fileIn.readLine(); // skip the first line\n\n // read each subsequent line and add relevant data to a big array\n while ((oneLine = fileIn.readLine()) != null) {\n String[] tokens = oneLine.split(\",\");\n if(tokens.length != TOKENS_PER_LINE)\n \tthrow new NumberFormatException();\n int population = Integer.parseInt(tokens[POPULATION_INDEX]);\n if(population != 0)\n \tresult.add(population,\n \t\t\t Float.parseFloat(tokens[LATITUDE_INDEX]),\n \t\t Float.parseFloat(tokens[LONGITUDE_INDEX]));\n }\n\n fileIn.close();\n } catch(IOException ioe) {\n System.err.println(\"Error opening/reading/writing input or output file.\");\n System.exit(1);\n } catch(NumberFormatException nfe) {\n System.err.println(nfe.toString());\n System.err.println(\"Error in file format\");\n System.exit(1);\n }\n return result;\n\t}",
"private static String[] readFile(String path) throws FileNotFoundException{\n\t\tjava.io.File file = new java.io.File(path);\n\t\tjava.util.Scanner sc = new java.util.Scanner(file); \n\t\tStringBuilder content = new StringBuilder();\n\t\twhile (sc.hasNextLine()) {\n\t\t String line = sc.nextLine();\n\t\t if (!line.startsWith(\"!--\")){\n\t\t \tline = line.trim();\n\t\t \tString[] lineContent = line.split(\"/\");\n\t\t \tfor (String entry : lineContent){\n\t\t \t\tcontent.append(entry);\n\t\t \t\tcontent.append(\"/\");\n\t\t \t}\n\t\t \tcontent.append(\"!\");\n\t\t }\n\t\t}\n\t\tsc.close();\n\t\treturn content.toString().split(\"!\");\n\t}",
"String[] readFile(String path) {\n ArrayList<String> list = new ArrayList<>();\n String[] output = null;\n Scanner reader;\n File file;\n\n try {\n file = new File(path);\n reader = new Scanner(file);\n while (reader.hasNextLine()) {\n list.add(reader.nextLine());\n }\n output = new String[list.size()];\n for (int i = 0; i < list.size(); i++) output[i] = list.get(i);\n reader.close();\n } catch (FileNotFoundException e) {\n System.out.println(\"File not found exception\");\n }\n return output;\n }",
"private Point[] readTestFile(String filename) {\n In in = new In(filename);\n int N = in.readInt();\n Point[] points = new Point[N];\n for (int i = 0; i < N; i++) {\n int x = in.readInt();\n int y = in.readInt();\n points[i] = new Point(x, y);\n }\n return points;\n }",
"public static void processFilesForValidation() {\r\n\t\t// Process each file one at a time.\r\n\t\tfor (int i = 0; i < inScanners.length; i++) {\r\n\t\t\tScanner sc = inScanners[i];\r\n\t\t\tint articleCount = 1;\r\n\t\t\t// Read the input file.\r\n\t\t\ttry {\r\n\t\t\t\twhile(sc.hasNextLine()) {\r\n\t\t\t\t\tString s = sc.nextLine();\r\n\t\t\t\t\t// If we come across an article, read its contents and add it to the file.\r\n\t\t\t\t\tif(s.startsWith(\"@ARTICLE{\")) {\r\n\t\t\t\t\t\tauthor = journal = title = year = volume = number = pages = doi = ISSN = month = \"\";\r\n\t\t\t\t\t\twhile (!s.equals(\"}\")) {\r\n\t\t\t\t\t\t\ts = sc.nextLine();\r\n\t\t\t\t\t\t\tparseValue(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Throw an exception if a field is missing.\r\n\t\t\t\t\t\tif (author.isEmpty() || journal.isEmpty() || title.isEmpty() || year.isEmpty() || volume.isEmpty() \r\n\t\t\t\t\t\t\t\t|| number.isEmpty() || pages.isEmpty() || doi.isEmpty() || ISSN.isEmpty() || month.isEmpty()) {\r\n\t\t\t\t\t\t\tthrow new FileInvalidException(\"One or more fields are missing.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Add the article to the file if valid.\r\n\t\t\t\t\t\tString author1 = author.replaceAll(\" and\", \",\");\r\n\t\t\t\t\t\tint andIndex = author.indexOf(\"and\");\r\n\t\t\t\t\t\tString author2 = andIndex != -1 ? author.replaceAll(author.substring(andIndex,author.length()), \"et al\") : author;\r\n\t\t\t\t\t\tString author3 = author.replaceAll(\"and\", \"&\");\r\n\t\t\t\t\r\n\t\t\t\t\t\t// IEEE\r\n\t\t\t\t\t\toutWriters[i][0].println(author1+\". \\\"\"+title+\"\\\", \"+journal+\", vol. \"+volume+\", no. \"+number+\", p. \"+pages+\", \"+month+\" \"+year+\".\\r\\n\");\r\n\t\t\t\t\t\t// ACM\r\n\t\t\t\t\t\toutWriters[i][1].println(\"[\"+articleCount+\"]\\t\"+author2+\". \"+year+\". \"+title+\". \"+journal+\". \"+volume+\", \"+number+\" (\"+year+\"), \"+pages+\". DOI:https://doi.org/\"+doi+\".\\r\\n\");\r\n\t\t\t\t\t\t// NJ\r\n\t\t\t\t\t\toutWriters[i][2].println(author3+\". \"+title+\". \"+journal+\". \"+volume+\", \"+pages+\"(\"+year+\").\\r\\n\");\r\n\t\t\t\t\t\tarticleCount++;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t// Close output writers once file has been read.\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t}\r\n\t\t\t\tnumValidFiles++;\r\n\t\t\t}\r\n\t\t\t// If file is invalid, close and delete the output files.\r\n\t\t\tcatch (FileInvalidException e) {\r\n\t\t\t\tSystem.out.println(\"Error: Detected Empty Field!\" \r\n\t\t\t\t\t\t + \"\\n============================\"\r\n\t\t\t + \"\\nProblem detected with input file: Latex\" + (i + 1) + \".bib\"\r\n\t\t\t\t\t\t + \"\\nFile is invalid: \" + e.getMessage() + \" Processing stopped at this point. \"\r\n\t\t\t\t\t\t + \"Other empty/missing fields may be present as well.\\n\");\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t\toutFiles[i][j].delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Close input file after reading.\r\n\t\t\tsc.close();\r\n\t\t}\r\n\t}",
"private List<String> init(Path path) throws Exception {\n List<String> lines = Files.readAllLines(path);\n if (lines.size() != 0) {\n int numberOfFields = Integer.parseInt(lines.get(0));\n fillFieldsList(lines, numberOfFields);\n fillPlayersList(lines, numberOfFields);\n } else {\n throw new FileEmptyException();\n }\n return lines;\n }",
"public static void main(String[] args) throws IOException {\n if(args.length == 0) {\r\n System.out.println(\"Proper Usage is: java inputfile.txt outputfile.txt\");\r\n System.exit(0);\r\n }\r\n\r\n //Assign agruments\r\n String inputfile=args[0];\r\n String outputfile=args[1];\r\n\r\n //Verify inputfile size is not empty\r\n if (getFileSize(inputfile)<0) {\r\n System.out.println(\"Source input filesize is empty: \");\r\n System.exit(0);\r\n }\r\n\r\n List<String> rowsInputFile = new ArrayList<String>();\r\n rowsInputFile=retrieveAllRows(inputfile);\r\n\r\n ArrayList<Integer> errorList = new ArrayList<>();\r\n ArrayList<ParseString> validRowList = new ArrayList<ParseString>();\r\n\r\n\r\n //evaluateRows=evaluateRows(rowsInputFile);\r\n\r\n //errorList =\r\n //validRowList=\r\n\r\n for (int i = 0; i < rowsInputFile.size(); i++) {\r\n\r\n String pattern = \"\\\\d{3} \\\\d{3} \\\\d{4}\";\r\n String inputString = rowsInputFile.get(i);\r\n Pattern r = Pattern.compile(pattern);\r\n Matcher m = r.matcher(inputString);\r\n\r\n if (m.find()) { //Match\r\n validRowList.add(new ParseString(rowsInputFile.get(i), true));\r\n out.println(inputString);\r\n } else { //No Match\r\n out.println(inputString);\r\n int actualline = i + 1;\r\n errorList.add(actualline);\r\n }\r\n }\r\n\r\n sortJsonArray(validRowList);\r\n\r\n JsonObject json = new JsonObject();\r\n loadValidDataJson(json,validRowList);\r\n loadErrorDataJson(json,errorList);\r\n\r\n createJsonFile(json);\r\n\r\n }"
] | [
"0.5957833",
"0.5932612",
"0.5897084",
"0.5895178",
"0.5894573",
"0.5893767",
"0.58590883",
"0.58192617",
"0.5807401",
"0.58052146",
"0.5797004",
"0.5711522",
"0.56944275",
"0.56923366",
"0.5687254",
"0.5666475",
"0.566062",
"0.56511724",
"0.5647744",
"0.56375444",
"0.56271434",
"0.55994165",
"0.5591297",
"0.55891997",
"0.55739766",
"0.5567015",
"0.5518469",
"0.551589",
"0.54932684",
"0.5492846",
"0.54883826",
"0.5487298",
"0.5486686",
"0.5472535",
"0.5457613",
"0.54464096",
"0.5441471",
"0.54302156",
"0.5404683",
"0.5391839",
"0.53867817",
"0.5379335",
"0.53772616",
"0.53751296",
"0.5359042",
"0.5357331",
"0.5353576",
"0.534863",
"0.5344609",
"0.5343477",
"0.5334248",
"0.5325002",
"0.531496",
"0.531448",
"0.5303395",
"0.5290323",
"0.5290071",
"0.5288937",
"0.5281055",
"0.5267979",
"0.5266325",
"0.52622306",
"0.526128",
"0.5249032",
"0.52398026",
"0.5233288",
"0.5232512",
"0.52297753",
"0.52278656",
"0.5222841",
"0.5218908",
"0.5214044",
"0.5213885",
"0.5211924",
"0.52106196",
"0.52097076",
"0.5204772",
"0.5198621",
"0.5198381",
"0.51952344",
"0.5194506",
"0.5188727",
"0.5184882",
"0.51808995",
"0.51735914",
"0.5170604",
"0.5166889",
"0.5165827",
"0.5156603",
"0.5153332",
"0.5149357",
"0.5141874",
"0.51357514",
"0.51329726",
"0.5128607",
"0.5123985",
"0.51235324",
"0.5121674",
"0.5120947",
"0.5117951"
] | 0.62138575 | 0 |
Test if the list is logically empty. | public boolean isEmpty( )
{
return header.next == null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean empty() {\n\t\treturn list.size() == 0;\n\t}",
"public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }",
"public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }",
"public boolean empty() {\n return list.isEmpty();\n }",
"public boolean isEmpty()\n\t{\n\t\treturn list.isEmpty();\n\t}",
"public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }",
"public boolean isEmpty() {\n return list.isEmpty();\n }",
"public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean isListRemainingEmpty();",
"public synchronized boolean isEmpty () {\n return list.isEmpty();\n }",
"public synchronized boolean isEmpty(){\n return list.isEmpty();\n }",
"public boolean isEmpty(){\n return this.listSize == 0;\n }",
"public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}",
"@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }",
"@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}",
"public boolean empty()\n {\n boolean result = (dataList.size() == 0) ? true : false;\n return result;\n }",
"public boolean empty() {\n\t\treturn (size() <= 0);\n\t}",
"boolean isEmpty(int list) {\n\t\treturn m_lists.getField(list, 0) == -1;\n\t}",
"public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn data != null && data.list != null && data.list.isEmpty();\r\n\t}",
"public boolean isEmpty() // true if list is empty\r\n\t{\r\n\t\treturn (first == null);\r\n\t}",
"public boolean isEmpty() {\n return dataList.size() <= 0 || (dataList.size() == 1 && dataList.get(0).isEmpty());\n }",
"public boolean empty() { \t \n\t\t return size <= 0;\t \n }",
"boolean isEmpty() {\n return this.myArrayList.isEmpty();\n }",
"public boolean isEmpty() {\n\t\treturn allItems.size() == 0;\n\t}",
"public boolean empty() {\r\n\r\n\t\tif(item_count>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"public boolean empty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty() {\r\n return NumItems == 0;\r\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn numItems == 0 ;\r\n\t}",
"public boolean empty() {\n return size <= 0;\n }",
"public boolean isEmpty() {\n\t\treturn (_items.size() == 0);\n\t}",
"public boolean empty() {\n return size == 0;\n }",
"@Override\r\n\tpublic boolean isEmpty() {\n\t\treturn this.size == 0;\r\n\t}",
"private boolean isEmpty() {\n\t\treturn size() == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn firstNode == null; // return true if List is empty\n\t}",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty() { return size == 0; }",
"public boolean isEmpty(){\n\t\treturn firstNode == null; //return true if List is empty\n\t}",
"public boolean isEmpty() {\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tStudent emptyChecker;\r\n\t\tint size = sizeOfList(list);\r\n\t\twhile (i < size) {\r\n\t\t\temptyChecker = list[i];\r\n\t\t\tif (emptyChecker != null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tnumStudents = 0;\r\n\t return true;\r\n\t}",
"public boolean isEmpty() {\n\n\t\tif (numItems == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\n\t}",
"public boolean isEmpty(){\n for(int i = 0; i < arrayList.length; i++) {\n if (arrayList[i] != null)\n return false;\n }\n return true;\n }",
"public boolean isEmpty(){\n return(numItems == 0);\n }",
"public boolean isEmpty()\n {\n //this method is used to check length\n //replacing head == null so I don't have to maintain a head\n //also error checks for null lists\n return (entryList == null || (entryList.size() == 0));\n //just doing .size() == 0 will raise a null pointer exception on occasion\n }",
"public boolean isEmpty()\r\n {\r\n if (count > 0) return false;\r\n else return true;\r\n }",
"public boolean isEmpty()\n {\n return elements.isEmpty();\n }",
"private boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public static boolean isEmpty(List list){\n\n if(list == null){\n return true;\n }\n if(list.size() == 0){\n return true;\n }\n return false;\n }",
"public boolean isEmpty() {\n return elements.isEmpty();\n }",
"public final boolean isEmpty() {\r\n\t\treturn this.size == 0;\r\n\t}",
"public boolean isEmpty()\n {\n return ll.getSize()==0? true: false;\n }",
"public boolean isEmpty() {\n \tif (numItems==0) {\n \t\treturn true;\n \t}\n \treturn false;\n }",
"public boolean isEmpty() {\r\n return (size == 0);\r\n }",
"public synchronized boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn (count == 0);\r\n\t}",
"public synchronized boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty()\r\n {\r\n return (size() == 0);\r\n }",
"public boolean isEmpty()\n {\n return this.size == 0;\n }",
"public boolean isEmpty(){\n return itemCount == 0;\n }",
"@Override\n public boolean isEmpty() {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n return stack.isListEmpty();\n }",
"public boolean isEmpty() {\r\n return items.isEmpty();\r\n }",
"private boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty() {\n\t\treturn elements == 0;\n\t}",
"public boolean isEmpty() {\n return elements == 0;\n }",
"boolean isEmpty() {\n\t\treturn m_list_nodes.size() == 0;\n\t}",
"public boolean isEmpty() {\n\t\treturn(this.size == 0);\n\t}",
"public static boolean isEmpty() \r\n\t{\r\n\t\treturn m_count == 0;\r\n }",
"public boolean isEmpty() {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n return this.size == 0;\n }",
"public boolean isEmpty() {\n\t\treturn this.size == 0;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn size == 0;\n\t}",
"public boolean isEmpty(){\n return (numItems==0);\n }",
"public boolean isEmpty() {\r\n return size == 0;\r\n }",
"public boolean isEmpty()\r\n\t{\r\n\t\treturn count == 0;\r\n\t}",
"public boolean isEmpty() {\r\n \r\n return size == 0;\r\n }",
"public boolean isEmpty() {\n return (this.size == 0);\n }",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn(size() == 0);\n\t}",
"public boolean isEmpty() {\n return items.isEmpty();\n }",
"public boolean isEmpty() {\n return items.isEmpty();\n }",
"public boolean isEmpty() { return count == 0; }",
"public boolean isEmpty() {\n\t\treturn size == 0;\r\n\t}",
"public boolean isEmpty() {\n return (size == 0);\n }",
"public boolean isEmpty() {\n\t\treturn (size == 0);\n\t}",
"public boolean isEmpty() {\n\t\treturn elements.isEmpty();\n\t}",
"public boolean isEmpty()\n {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size() == 0;\n }",
"public boolean isEmpty() {\r\n return size == 0; \r\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n return size == 0;\n }",
"public boolean isEmpty() {\n\t\tif (l.getHead() == null)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"@Override\n public boolean isEmpty() {\n return this.count() == 0;\n }",
"public boolean isEmpty() {\r\n return size == 0;\r\n }"
] | [
"0.85706264",
"0.85014397",
"0.8394054",
"0.83663195",
"0.83663195",
"0.83433235",
"0.83208483",
"0.8307951",
"0.82785374",
"0.82604975",
"0.8256402",
"0.82369184",
"0.8215179",
"0.81770074",
"0.8164669",
"0.8161009",
"0.81303084",
"0.8104123",
"0.80912656",
"0.79676914",
"0.7903675",
"0.78812283",
"0.7875595",
"0.7855086",
"0.78215235",
"0.7794786",
"0.7788811",
"0.7786273",
"0.7778078",
"0.77751666",
"0.7769203",
"0.7760719",
"0.774806",
"0.77457446",
"0.77444214",
"0.77430964",
"0.7736591",
"0.773518",
"0.77291214",
"0.77171206",
"0.77171206",
"0.77171206",
"0.7703517",
"0.7700293",
"0.76942253",
"0.76910955",
"0.7690834",
"0.76850957",
"0.76839036",
"0.7671564",
"0.7670978",
"0.7669275",
"0.766843",
"0.7653631",
"0.76459056",
"0.7643592",
"0.7641276",
"0.76412576",
"0.76377386",
"0.7633409",
"0.7633142",
"0.7632525",
"0.7624276",
"0.7621186",
"0.7619052",
"0.7617208",
"0.7615852",
"0.76148546",
"0.76139665",
"0.7612291",
"0.7608842",
"0.7608418",
"0.760678",
"0.760678",
"0.7606234",
"0.76060593",
"0.76060593",
"0.76052916",
"0.7602489",
"0.7600738",
"0.75970834",
"0.75958824",
"0.7594154",
"0.7590378",
"0.7590378",
"0.7590264",
"0.7589959",
"0.75890243",
"0.7588987",
"0.75869477",
"0.7585006",
"0.7584053",
"0.75826097",
"0.75819904",
"0.75819904",
"0.75819904",
"0.75819904",
"0.75819904",
"0.7580348",
"0.7579719",
"0.7579617"
] | 0.0 | -1 |
Make the list logically empty. | public void makeEmpty( )
{
header.next = null;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void makeEmpty() {\r\n\t\tArrays.fill(list, -1);\r\n\t}",
"public void makeEmpty() {\n // remove Squares until empty\n while (!exploreList.isEmpty()) {\n exploreList.getNext();\n }\n }",
"public void makeEmpty() {\n System.out.println(\"List is now empty\");\n head = null;\n tail = null;\n\n }",
"public void makeEmpty() {\n for (int i = 0; i < buckets.length; i++) {\n buckets[i] = new SList();\n }\n size = 0;\n }",
"@Override\n public void makeEmpty() {\n this.head = null;\n this.tail = null;\n }",
"public void EmptyList(){\n BusStopSearcherPresenter.setListview(initList(emptylist));\n }",
"public void makeEmpty( )\n {\n doClear( );\n }",
"public void emptyList() {\n coursesTaken = new ArrayList<CourseTaken>();\r\n }",
"public void makeEmpty(){\n front = null;\n numItems =0;\n }",
"public void makeEmpty();",
"public void makeEmpty();",
"public void clearListNotIndex(){\n for(int z=0; z<list.length; z++){\n list [z] = 0;\n }\n }",
"public void makeEmpty() {\n defTable = new DList[sizeBucket];\n for(int i=0; i<sizeBucket; i++) {\n defTable[i] = new DList();\n }\n size = 0;\n }",
"public void makeEmpty(){\n deleteAll(root);\n root = null;\n numItems = 0;\n }",
"public void empty() {\n _items.clear();\n }",
"public void clearInitialize(){\n index=0;\n for(int i =0; i < list.length;i++){\n list[i]=0;\n }\n hasFilled = false;\n\n }",
"public boolean empty() {\n if (list.size() == 0) {\n return true;\n }\n else {\n return false;\n }\n }",
"public boolean empty() {\n return list.isEmpty();\n }",
"public Builder clearList() {\n list_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x08000000);\n onChanged();\n return this;\n }",
"public void clear() {\n list = new Object[MIN_CAPACITY];\n n = 0;\n }",
"public void clear() {\n lists = new TernarySearchTree<>();\n }",
"public void makeEmpty() {\r\n\t\theader.next = null;\r\n\t\tlast = null;\r\n\t}",
"public void clear() {\n size = 0;\n Arrays.fill(items, null);\n }",
"List() {\n this.length = 0;\n }",
"public void reset() {\n this.list.clear();\n }",
"public abstract void makeEmpty();",
"public void makeEmpty() {\r\n for (int i = 0; i < tableSize; i++) {\r\n table[i] = new DList<Entry<K, V>>();\r\n }\r\n }",
"public void clearList() {\n\t\thead = null;\n\t\tlength = 0;\n\t}",
"public void empty() {\n int StartSize = stockList.size();\r\n // While array is not empty.\r\n while (stockList.size() > 0) {\r\n // For every item in the \"stockList\" array.\r\n for (int i = 0; i < StartSize; i++) {\r\n // Remove the beanBag object at the current position in the \"stockList\".\r\n stockList.remove(i);\r\n // Set the global int \"nextReservationNumber\" to 0.\r\n nextReservationNum = 0;\r\n }\r\n }\r\n }",
"@Test\r\n\tpublic void testIsEmpty() {\r\n\t\tAssert.assertFalse(list.isEmpty());\r\n\t\tlist.clear();\r\n\t\tAssert.assertTrue(list.isEmpty());\r\n\t}",
"private void updateEmptyLists() {\n \n for(int i = 0; i < this.allLists.size(); i++) {\n if(this.allLists.get(i).size() == 0) {\n for(int c = 0; c < this.dataTable.getRowCount(); c++) {\n this.allLists.get(i).add(\"\");\n }\n }\n }\n }",
"public void clear(){\n\n \tlist = new ArrayList();\n\n }",
"public boolean empty() {\n\t\treturn list.size() == 0;\n\t}",
"public void clearList() {\n\t\tthis.head = null;\n\t\tthis.tail = null;\n\t\tlength = 0;\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"@Override\n\tpublic boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"@Override\n public boolean isEmpty()\n {\n return list.size()<1;\n }",
"@Override\n\tpublic boolean isEmpty()\n\t{\n if (list.isEmpty())\n {\n return true;\n } \n else\n {\n return false;\n }\n\t}",
"@Test\n public void clearForEmptyList() {\n myList.clear();\n\n //then\n assertTrue(myList.isEmpty());\n assertEquals(\"[]\", myList.toString());\n }",
"public void makeEmpty() {\n header.next = null;\n }",
"@Nonnull\n public static <T> PlayList<T> empty()\n {\n return new PlayList<>();\n }",
"public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000004);\n isList_ = false;\n onChanged();\n return this;\n }",
"public void clear()\n {\n int llSize = ll.getSize();\n for(int i=0; i<llSize; i++){\n ll.remove(0);\n }\n }",
"public Builder clearIsList() {\n bitField0_ = (bitField0_ & ~0x00000008);\n isList_ = false;\n onChanged();\n return this;\n }",
"public void Reset()\n {\n this.list1.clear();\n }",
"public void testIsEmpty() {\r\n assertTrue( list.isEmpty());\r\n list.add(\"A\");\r\n assertFalse(list.isEmpty());\r\n }",
"public void makeEmpty(){\n for(int element = set.length - 1; element >= 0; element--){\n remove(set[element]);\n }\n }",
"public void clear() {\n this.entries = new Empty<>();\n }",
"public static <T>\n LazyList<T> empty() {\n return EMPTY;\n }",
"public void clear() {\n\t\tlists.clear();\n\t}",
"public void doEmptyTableList() {\n tableList.deleteList();\n }",
"public void clear() {\n\t\tthis.count = (emptyItem ? 1 : 0);\n\t\tpages.clear();\n\t}",
"public boolean empty() {\r\n\r\n\t\tif(item_count>0)\r\n\t\t\treturn false;\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void setEmpty() {\n\t\t\n\t}",
"public boolean isEmpty(){\n return this.listSize == 0;\n }",
"public void makeEmpty() { \r\n for (int i = 0; i < hash_table.length; i++) {\r\n if (hash_table[i] != null) {\r\n hash_table[i] = null;\r\n }\r\n }\r\n size = 0;\r\n }",
"public static boolean empty() {\n\n if (list.size() != 0){\n return false;\n }\n return true;\n }",
"@Override\n public void clear() {\n size = 0;\n first = null;\n last = null;\n }",
"public void clear() {\n for (int i = 0; i < size; i++) genericArrayList[i] = null;\n size = 0;\n }",
"public boolean isEmpty(){\n\t\tif(list.isEmpty()){\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void clearList() {\n\t\tdeletedList.clear();\n\t}",
"protected void clear() {\n\n\t\tthis.myRRList.clear();\n\t}",
"public void emptyArrayList_ListOfMiniCartItems() {\n ListOfMiniCartItems.clear();\n System.out.println(\" Clear Mini-Cart Item Array List: \" + ListOfMiniCartItems);\n }",
"@Test\n public void testIsEmpty() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.clear();\n\n boolean expResult = true;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }",
"@Test\n public void testIsEmpty_Empty_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(3, 2);\n instance.add(1);\n instance.add(2);\n instance.add(3);\n instance.add(4);\n instance.add(5);\n instance.add(6);\n instance.clear();\n\n boolean expResult = true;\n boolean result = instance.isEmpty();\n assertEquals(expResult, result);\n }",
"@Test\n public void clearList(){\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n list.add(3);\n list.add(4);\n list.add(5);\n\n assertEquals(5,list.size());\n\n list.clear();\n\n assertEquals(0,list.size());\n }",
"@Test\n public void testClear() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n instance.clear();\n\n assertTrue(instance.isEmpty());\n\n }",
"void clear() {\n\t\t// Initialize new empty list, clearing out old data\n\t\tmNewsList = new ArrayList<>();\n\t}",
"public boolean isEmpty() {\n return list.isEmpty();\n }",
"@Test(timeout = TIMEOUT)\n public void testIsEmptyAndClear() {\n assertTrue(list.isEmpty());\n\n // Should not be empty after adding elements\n list.addAtIndex(0, \"0a\"); // 0a\n list.addAtIndex(1, \"1a\"); // 0a, 1a\n list.addAtIndex(2, \"2a\"); // 0a, 1a, 2a\n list.addAtIndex(3, \"3a\"); // 0a, 1a, 2a, 3a\n list.addAtIndex(4, \"4a\"); // 0a, 1a, 2a, 3a, 4a\n assertFalse(list.isEmpty());\n\n // Clearing the list should empty the array and reset size\n list.clear();\n assertTrue(list.isEmpty());\n assertEquals(0, list.size());\n assertArrayEquals(new Object[ArrayList.INITIAL_CAPACITY],\n list.getBackingArray());\n }",
"public void clear()\r\n {\r\n phoneList = new ArrayList<String>();\r\n }",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"@SuppressWarnings(\"unchecked\")\n public void clear() {\n list = (E[])new Object[capacity];\n size = 0;\n }",
"public TempList<T> clear() {\n chk();\n list.clear();\n return this;\n }",
"void clear() {\n\t\tfor (int list = getFirstList(); list != -1;) {\n\t\t\tlist = deleteList(list);\n\t\t}\n\t}",
"@Test\r\n\tvoid testClear() {\r\n\t\tSortedList list = new SortedList(\"List\");\r\n\t\tlist.insert(toDoItem1);\r\n\t\tlist.insert(toDoItem2);\r\n\t\tlist.insert(toDoItem3);\r\n\t\tlist.insert(toDoItem4);\r\n\r\n\t\tlist.clear();\r\n\t\tif (list.getSize() != 0 || list.getHead() != null || list.getTail() != null) {\r\n\t\t\tfail(\"Clear failed\");\r\n\t\t}\r\n\t}",
"@Test\n public void testClear_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 1, 1, 1, 1, 1);\n instance.addAll(c);\n instance.clear();\n\n assertTrue(instance.isEmpty());\n\n }",
"@Test\r\n\tpublic void testIsEmpty() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\tassertTrue(testArray.isEmpty());\r\n\t\ttestArray.add(\"hi\");\r\n\t\tassertTrue(!testArray.isEmpty());\r\n\t}",
"@Test\n public void isEmpty() {\n assertTrue(myList.isEmpty());\n\n //given\n myList.add(0);\n\n //then\n assertFalse(myList.isEmpty());\n }",
"public boolean isEmpty(){\n\n \treturn list.size() == 0;\n\n }",
"@Override\n public void clear() {\n size = 0;\n }",
"@Override\n public void clear() {\n size = 0;\n }",
"@Override\n public void clear() {\n size = 0;\n }",
"public Builder clearItems() {\n items_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public ListMatcher empty() {\n\n\t\tnotNull();\n\t\t\n\t\tif (target.isEmpty()) {\n\t\t\treturn this;\n\t\t}\n\n\t\tthrow getException(\"Expected an empty list but it was %s\", target);\n\t}",
"myArrayList() {\n\t\thead = null;\n\t\ttail = null;\n\t}",
"public OccList reset()\n {\n size = 0;\n return this;\n }",
"@Override\n public boolean isEmpty() { return true; }",
"public static void emptyWishlist() {\n click(WISHLIST_UPPER_MENU);\n click(REMOVE_FROM_WISHLIST_BUTTON);\n }",
"@Override\n\tpublic void clear() {\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\telements[i] = null;\n\t\t}\n\n\t\tsize = 0;\n\t}",
"void empty();",
"public boolean isEmpty() {\n\t\treturn list.isEmpty();\n\t}",
"public void clear()\n {\n dessertList.clear();\n }",
"public /*@ pure @*/ boolean isEmpty() {\n return the_list == null;\n }",
"public void clear() {\n this.first = null;\n this.last = null;\n this.nrOfElements = 0;\n }",
"public boolean isEmpty() {\r\n\t\treturn al.listSize == 0;\r\n\t}",
"public void ensureEmptied() {\n }",
"@Override\r\n public boolean isEmpty() {\n return size == 0;\r\n }",
"@Test\r\n\tpublic void testClear() {\r\n\t\tlist.clear();\r\n\t\tAssert.assertNull(list.getFirst());\r\n\t\tAssert.assertEquals(0, list.size());\r\n\t}",
"public boolean empty();"
] | [
"0.8348013",
"0.77435744",
"0.7662704",
"0.76451147",
"0.76307905",
"0.73778",
"0.7342188",
"0.730314",
"0.7217259",
"0.71914214",
"0.71914214",
"0.7176521",
"0.714788",
"0.71270126",
"0.7109684",
"0.7094476",
"0.70119107",
"0.7009763",
"0.70068604",
"0.69944215",
"0.69820255",
"0.69614685",
"0.69550854",
"0.69493604",
"0.6935262",
"0.69257087",
"0.6925494",
"0.69156104",
"0.68978816",
"0.68974704",
"0.68485093",
"0.68447936",
"0.6840324",
"0.6822014",
"0.6797914",
"0.6797914",
"0.677181",
"0.6768253",
"0.6759545",
"0.67280596",
"0.6722672",
"0.67139554",
"0.6712898",
"0.67071986",
"0.6691759",
"0.6663936",
"0.666281",
"0.6657344",
"0.664687",
"0.6635402",
"0.6624819",
"0.6610675",
"0.66005534",
"0.65990657",
"0.6592249",
"0.6590831",
"0.6585274",
"0.6581039",
"0.6556635",
"0.65437496",
"0.65400654",
"0.6534206",
"0.65340567",
"0.6522139",
"0.65159476",
"0.65124357",
"0.6510172",
"0.65017134",
"0.6496422",
"0.648983",
"0.6484414",
"0.6480173",
"0.64741266",
"0.64716506",
"0.6466186",
"0.64658153",
"0.646488",
"0.6462701",
"0.6461839",
"0.64563155",
"0.6455228",
"0.6455228",
"0.6455228",
"0.6452602",
"0.6452504",
"0.6444866",
"0.64372957",
"0.64354575",
"0.6432588",
"0.64268",
"0.6418681",
"0.64171404",
"0.64014643",
"0.6398305",
"0.6395472",
"0.6393568",
"0.6381854",
"0.63805735",
"0.6379611",
"0.6379118"
] | 0.6899806 | 28 |
Return an iterator representing the header node. | public LinkedListItr zeroth( )
{
return new LinkedListItr( header );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ListIterator getHeaders()\n { return headers.listIterator(); }",
"public ListIterator getHeaderNames() {\n ListIterator li = this.headers.listIterator();\n LinkedList retval = new LinkedList();\n while (li.hasNext()) {\n SIPHeader sipHeader = (SIPHeader) li.next();\n String name = sipHeader.getName();\n retval.add(name);\n }\n return retval.listIterator();\n }",
"public ListIterator getHeaders(String headerName) {\n if (headerName == null)\n throw new NullPointerException\n (\"null headerName\");\n SIPHeader sipHeader= (SIPHeader)\n nameTable.get(headerName.toLowerCase());\n // empty iterator\n if (sipHeader == null) return new LinkedList().listIterator();\n if (sipHeader instanceof SIPHeaderList ) {\n return ((SIPHeaderList) sipHeader).listIterator();\n } else {\n return new HeaderIterator(this,sipHeader);\n }\n }",
"public abstract Iterator getAllMimeHeaders();",
"public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }",
"@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }",
"public LinkedListIterator<AnyType> first() {\n return new LinkedListIterator<AnyType>(header.next);\n }",
"@Override\n public RaftNode getHeader() {\n return allNodes.getHeader();\n }",
"Rule Header() {\n // Push 1 HeaderNode onto the value stack\n return Sequence(\n FirstOf(\n Include(),\n CppInclude(),\n Namespace()),\n actions.pushHeaderNode());\n }",
"public List<Header> getHeaderList() {\n return mHeaderList;\n }",
"public LinkedListIterator<AnyType> zeroth() {\n return new LinkedListIterator<AnyType>(header);\n }",
"@Override\n public Iterator<Node<E>> heads() {\n return heads.iterator();\n }",
"public Enumeration getAllHeaderLines() throws MessagingException {\n/* 504 */ if (this.headers == null)\n/* 505 */ loadHeaders(); \n/* 506 */ return this.headers.getAllHeaderLines();\n/* */ }",
"@Override\r\n public boolean hasNext() {\n return returned.next != header;\r\n }",
"public Map<String, String> readHeader() {\r\n\t\tMap<String, String> headers = null;\r\n\t\tif (advanceToTag(\"Document\")) {\r\n\t\t\tif (advanceToTag(\"Header\")) {\r\n\t\t\t\theaders = this.in.readPropertyBlock();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn headers;\r\n\t}",
"@Override\n public StreamHeader getHeader() throws Exception {\n return header;\n }",
"public HashMap<String, String> getHeaderList() {\n return headerList;\n }",
"public RowIterator getPurchaseOrderHeaderEO()\n {\n return (RowIterator)getAttributeInternal(PURCHASEORDERHEADEREO);\n }",
"public Iterable<HashNode> iterator() {\n\t\treturn bucket;\n\t\t//for(HashTable<Character, Integer>.HashNode x : HT.iterator()) {\n\t}",
"public Vector<YANG_Header> getHeaders() {\n\t\treturn headers;\n\t}",
"List<Header> headers();",
"public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"public List<VCFFilterHeaderLine> headerLines();",
"public Map<String, String> getHeaderList() {\n return headerMap;\n }",
"Collection<String> getHeaderNames();",
"public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }",
"public List<Div> getHeaders()\n {\n if (headers == null)\n {\n headers = new ArrayList<>();\n }\n return headers;\n }",
"List<? extends Header> getAllHeaders();",
"public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }",
"public Set<QName> getHeaders() {\n\t\treturn headers;\n\t}",
"@Override\n public ElementHeader getElementHeader()\n {\n return elementHeader;\n }",
"FHiterator() {\n\t\t\tmCurrentNode = mHead.next;\n\t\t\tmCurrentIndex = 0;\n\t\t}",
"public Iterator begin()\n\t{\n\t\treturn new LinkedListIterator(head); \n\t}",
"public List<Map<String, Map<String, Object>>> getHeader(){\n return headerDescription;\n }",
"public E getHead() {\r\n\t\tif (head == null) {\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\t} else {\r\n\t\t\treturn indices.get(0).data;\t\r\n\t\t}\r\n\t}",
"public Optional<List<Headers>> headers() {\n return Codegen.objectProp(\"headers\", TypeShape.<List<Headers>>builder(List.class).addParameter(Headers.class).build()).config(config).get();\n }",
"@Override\n\t\tpublic Enumeration getHeaderNames() {\n\t\t\treturn null;\n\t\t}",
"@Override\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator<Key>() {\n\t\t\tNode temp = getFirstNode();\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn temp.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key next() {\n\t\t\t\tKey k = temp.next.key;\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn k;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPrevious() {\n\t\t\t\treturn !temp.equals(getFirstNode());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key previous() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int nextIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int previousIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void set(Key key) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void add(Key key) {\n\n\t\t\t}\n\t\t};\n\t}",
"public String headerLine() {\n return headerLine;\n }",
"@Override\n\tpublic Iterator<E> iterator()\n\t{\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Node<E> current = first;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn current.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next()\n\t\t\t{\n\t\t\t\tif (hasNext())\n\t\t\t\t{\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\treturn current.value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"public Set<String> getHeaderNames() {\n return headers.keySet();\n }",
"public Iterator nodeIterator() { return nodes.keySet().iterator(); }",
"public void visit(Header n){\r\n\t\tif(tempNode.notifyNode().equals(\"Header\")){\r\n\t\t\ttempNode = nodeList.get(sequence);\r\n\t\t\tArrayList<Token> tokenList = tempNode.getTokenList();\r\n\t\t\tString tmp =\"\";\r\n\t\t\tfor(int i=0;i<tempNode.getTokenListSize();i++){\r\n\t\t\t\tvisit(tokenList.get(i));\r\n\t\t\t}\r\n\r\n\t\t\tif(tokenList.size()<1)\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+\"</h\"+tempNode.htype+\">\";\r\n\t\t\telse\r\n\t\t\ttmp = \"<h\"+tempNode.htype+\">\"+line+\"</h\"+tempNode.htype+\">\";\r\n\t\t\tline = tmp;\r\n\t\t}\r\n\t }",
"public Object getHeader() {\n return header;\n }",
"public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}",
"public List<byte[]> getHeader() {\n\t\treturn this.fileHeader;\n\t}",
"public Class<?> header() {\n return header;\n }",
"public DNode<E> iterator()\n {\n \treturn first;\t\t\n }",
"public abstract Iterator getMatchingMimeHeaders(String names[]);",
"private List readHeadings( PushbackInputStream stream ) throws IOException {\n List headings = new ArrayList();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\r':\n case '\\n':\n done = true;\n break;\n case ' ':\n case '\\t':\n break;\n case '\"':\n case '\\'':\n stream.unread( c );\n headings.add( readString( stream ) );\n break;\n case END:\n done = true;\n break;\n default:\n stream.unread( c );\n headings.add( readToken( stream ) );\n }\n }\n return headings;\n }",
"public List<Label> getHeaderLabels() {\r\n return headerLabels;\r\n }",
"@Override\n\tpublic FileItemHeaders getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"public Enumeration getAllHeaders() throws MessagingException {\n/* 451 */ if (this.headers == null)\n/* 452 */ loadHeaders(); \n/* 453 */ return this.headers.getAllHeaders();\n/* */ }",
"public String getHeader() {\n return header;\n }",
"public String getHeader() {\n return header;\n }",
"public String getHeader()\r\n\t{\r\n\t\treturn header;\r\n\t}",
"public ASTNodeIterator iterator() {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = name;\n return I;\n }",
"Set<String> getHeaderNames();",
"public ListIterator getUnrecognizedHeaders() {\n return this.unrecognizedHeaders.listIterator();\n }",
"public List<String> getHeaders() {\n try {\n return load().getHeaderNames();\n } catch (IOException ex) {\n Logger.getLogger(IntelligentSystem.class.getName()).log(Level.SEVERE, null, ex);\n }\n return Collections.EMPTY_LIST;\n }",
"public std_msgs.msg.dds.Header getHeader()\n {\n return header_;\n }",
"public Element first() {\n if(isEmpty()) return null;\n else return header.getNextNode().getContent();\n }",
"public Iterator<Hex> iterator() {\n return new Iterator<Hex>() {\n private int g = 0;\n private int h = 0;\n @Override\n public boolean hasNext() {\n return g < hexWidth && h < hexHeight;\n }\n @Override\n public Hex next() {\n Hex result = hexes[g][h];\n if (++g == hexWidth) {\n g = 0;\n h++;\n }\n return result;\n }\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n };\n }",
"@Override\n\tpublic Map<String, String> getHeader() {\n\t\treturn this.header;\n\t}",
"public String getHeader() {\n\t\treturn _header;\n\t}",
"E head() throws NoSuchElementException;",
"public java.util.List<ConnectionHeaderParameter> getHeaderParameters() {\n return headerParameters;\n }",
"public Map<String, Header> getHeaderMap() {\n return headerMap;\n }",
"public String getHeader() {\n\t\t\treturn header;\n\t\t}",
"@Nonnull @NonnullElements @NotLive @Unmodifiable public List<Pair<String,String>> getHeaders() {\n return headerList;\n }",
"public Iterator<String> keyIterator() {\n \treturn new MapIter(first);\n }",
"public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }",
"public Iterator<Type> iterator() {\n return new LinkedListIterator(first);\n }",
"public java.lang.String getHeaderName() {\r\n return headerName;\r\n }",
"public final Iterator<PropertyDeclaration> getDeclarationIterator()\n {\n final Type superType = getSuperClass();\n\n return new FilterIterator(declarations.values().iterator(), new Predicate()\n {\n public boolean evaluate(Object object)\n {\n return superType.getProperty(((PropertyDeclaration)object).getName()) == null;\n }\n });\n }",
"public Map<String, String> headers() {\n return this.header.headers();\n }",
"org.apache.xmlbeans.XmlString xgetHeader();",
"TupleHeader getHeader() {\n return header;\n }",
"public Map<String,List<String>> getHeaderMap() {\n\n\t\treturn headers;\n\t}",
"public Map<String, AbstractHeader> getHeaders()\n\t{\n\t\treturn headers;\n\t}",
"@Test\n public void getAllHeaders() {\n List<WebElement> headers = driver.findElements(By.xpath(\"(//div[@class='jXpA9e Ui5IUc']//table)[1]//th\"));\n System.out.println(\"headers.size() = \" + headers.size());\n\n for (WebElement header : headers) {\n System.out.println(header.getText());\n }\n\n }",
"FS2ObjectHeaders getHeaders();",
"public boolean getHeader() {\n return isHeader;\n }",
"public Node getHeadNode();",
"public Header getHeader() {\n\t\treturn this.header;\n\t}",
"@Override\n\tpublic Collection<String> getHeaderNames() {\n\t\treturn null;\n\t}",
"public String[] getHeaders()\n\t{\n\t\tString[] lines = this.header.split(\"\\\\r\\\\n\");\n\t\treturn lines;\n\t}",
"public byte[] getHeader() {\n\treturn header;\n }",
"@Override\r\n public Iterator<NamedTreeNode<T>> iterator()\r\n {\r\n return new Iterator<NamedTreeNode<T>>()\r\n {\r\n NamedTreeNode<T> n = (NamedTreeNode<T>)getLeftNode();\r\n @Override\r\n public boolean hasNext()\r\n {\r\n return n != null;\r\n }\r\n @Override\r\n public NamedTreeNode<T> next()\r\n {\r\n if( n == null ) {\r\n throw new NoSuchElementException();\r\n }\r\n NamedTreeNode<T> r = n;\r\n n = (NamedTreeNode<T>)n.getRightNode();\r\n return r;\r\n }\r\n @Override\r\n public void remove()\r\n {\r\n throw new UnsupportedOperationException();\r\n }\r\n };\r\n }",
"public String getHeaderNames(){return header.namesText;}",
"@Override\n\t\tpublic Enumeration getHeaders(String name) {\n\t\t\treturn null;\n\t\t}",
"public NetFlowHeader getHeader() throws IOException {\n if (header == null) {\n header = prepareHeader();\n }\n\n return header;\n }",
"public abstract Iterator getNonMatchingMimeHeaders(String names[]);",
"public Iterator<K> iterator()\n {\n\treturn new SkipListIterator<K>(this.head);\n }",
"public VersionedMap getHeaders ()\n {\n return headers;\n }",
"List<? extends Header> getHeaders(String name);",
"@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }",
"public Map<String, HeaderInfo> getHeaders() {\n\t\treturn headers;\n\t}",
"public HeaderSet getReceivedHeaders() throws IOException {\n ensureOpen();\n\n return replyHeaders;\n }",
"ElementNode gethead(){\r\n\t\t\treturn this.head;\r\n\t\t}"
] | [
"0.7547807",
"0.7223722",
"0.6943666",
"0.69106495",
"0.6592624",
"0.65584123",
"0.64848894",
"0.6247986",
"0.61993086",
"0.61544365",
"0.612524",
"0.60952926",
"0.6058907",
"0.60422957",
"0.5980112",
"0.5969269",
"0.5969007",
"0.5959527",
"0.5948375",
"0.5946342",
"0.5892751",
"0.58871216",
"0.58846545",
"0.58612186",
"0.5855851",
"0.5852612",
"0.5814908",
"0.5798243",
"0.57877564",
"0.57836676",
"0.57783335",
"0.5772565",
"0.5767228",
"0.5759371",
"0.57371986",
"0.5736702",
"0.57338446",
"0.5727736",
"0.5716543",
"0.571338",
"0.57102203",
"0.57061416",
"0.57058996",
"0.56749135",
"0.5660381",
"0.56484306",
"0.56323886",
"0.56228817",
"0.56112236",
"0.55834234",
"0.5567379",
"0.5550024",
"0.5528559",
"0.5527123",
"0.5527123",
"0.5517888",
"0.55044276",
"0.54971355",
"0.54966944",
"0.5490658",
"0.5488332",
"0.547146",
"0.5460058",
"0.54587394",
"0.54445654",
"0.54415077",
"0.54396355",
"0.5435249",
"0.542934",
"0.54265106",
"0.542395",
"0.54169506",
"0.54147995",
"0.54115003",
"0.5407022",
"0.5397678",
"0.53953546",
"0.5389732",
"0.53890544",
"0.5388761",
"0.53850996",
"0.5383155",
"0.5382613",
"0.538188",
"0.5380295",
"0.53791404",
"0.5376971",
"0.5376726",
"0.5376718",
"0.5376218",
"0.53560376",
"0.53560233",
"0.5353597",
"0.53523153",
"0.534241",
"0.53361934",
"0.53359044",
"0.53358173",
"0.53101355",
"0.52931374"
] | 0.60001403 | 14 |
Return an iterator representing the first node in the list. This operation is valid for empty lists. | public LinkedListItr first( )
{
return new LinkedListItr( header.next );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public LinkedListIterator<AnyType> first() {\n return new LinkedListIterator<AnyType>(header.next);\n }",
"public ListIterator iterator()\n {\n return new ListIterator(firstLink);\n }",
"public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }",
"@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }",
"public Iterator begin()\n\t{\n\t\treturn new LinkedListIterator(head); \n\t}",
"public DNode<E> iterator()\n {\n \treturn first;\t\t\n }",
"@Override\n\tpublic Iterator<E> iterator()\n\t{\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Node<E> current = first;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn current.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next()\n\t\t\t{\n\t\t\t\tif (hasNext())\n\t\t\t\t{\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\treturn current.value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"public Iterator<Type> iterator() {\n return new LinkedListIterator(first);\n }",
"public StringListIterator first()\n {\n\treturn new StringListIterator(head);\n }",
"public Iterator iterator() {\n\t\treturn theList.listIterator(0);\n\t}",
"public ListIterator<E> listIterator()\r\n {\r\n return listIterator(0);\r\n }",
"public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }",
"public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}",
"public E first() { // returns (but does not remove) the first element\n // TODO\n if (isEmpty()) return null;\n return tail.getNext().getElement();\n }",
"public E getFirst() {\r\n\t\t// element checks to see if the list is empty\r\n\t\treturn element();\r\n\t}",
"public E getFirst() {\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\t\treturn mHead.next.data;\n\t}",
"public static <C> C FIRST(LIST<C> L) {\n if ( isNull( L ) ) {\n return null;\n }\n if ( L.iter != null ) {\n if ( L.iter.hasNext() ) {\n return L.iter.next();\n } else {\n L.iter = null;\n return null;\n }\n }\n return L.list.getFirst();\n }",
"public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public ListIterator() {current=first.next;}",
"public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }",
"public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}",
"public LinkedListNode<T> getFirstNode() {\n\t\t//return the head node of the list\n\t\treturn head;\t\t\n\t}",
"public Node<E> getFirst(){\n Node<E> toReturn = head.getNext();\n return toReturn == tail ? null: toReturn;\n }",
"public E peek() {\n if(head == null) {\n // The list is empty\n throw new NoSuchElementException();\n } else {\n return head.item;\n }\n }",
"Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}",
"public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}",
"public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }",
"public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}",
"public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}",
"public E getFirst(){\n return head.getNext().getElement();\n }",
"public ListNode getFirstNode(){\n\t\treturn firstNode;\n\t}",
"public Object firstElement();",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public Iterator iterator () {\n return new MyIterator (first);\n }",
"public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn this.head;\n\t}",
"public LinkedListIterator<AnyType> zeroth() {\n return new LinkedListIterator<AnyType>(header);\n }",
"public final Node<N> first() {\n throw new UnsupportedOperationException();\n }",
"public LinkedListNode<T> getFirstNode()\n\t{\n\t\treturn head;\n\t}",
"@Override\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator<Key>() {\n\t\t\tNode temp = getFirstNode();\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn temp.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key next() {\n\t\t\t\tKey k = temp.next.key;\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn k;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPrevious() {\n\t\t\t\treturn !temp.equals(getFirstNode());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key previous() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int nextIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int previousIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void set(Key key) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void add(Key key) {\n\n\t\t\t}\n\t\t};\n\t}",
"public LinkedListItr zeroth( )\n {\n return new LinkedListItr( header );\n }",
"public Node getFirst()\n {\n return this.first;\n }",
"@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }",
"public Node getFirstNode() {\n\t return firstNode;\r\n\t }",
"public E next()\r\n {\r\n E valueToReturn;\r\n\r\n if (!hasNext())\r\n throw new NoSuchElementException(\"The lister is empty\");\r\n \r\n // get the string from the node\r\n valueToReturn = cursor.getData();\r\n \r\n // advance the cursor to the next node\r\n cursor = cursor.getLink();\r\n \r\n return valueToReturn;\r\n }",
"public AIter next() {\n int p;\n return (p = start + 1) < size ? new Iter(p) : null;\n }",
"@Override\r\n\tpublic Iterator<T> iterator() {\n\t\treturn new Iterator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T next() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t}",
"@Override\r\n public T next() {\r\n if (hasNext()) {\r\n node = node.next();\r\n nextCalled = true;\r\n return node.getData();\r\n }\r\n else {\r\n throw new NoSuchElementException(\"Illegal call to next(); \"\r\n + \"iterator is after end of list.\");\r\n }\r\n }",
"public Iterator<E> iterator() {\n\t\treturn new LinkedListItr();\r\n\t}",
"public ListIterator<T> listIterator() {\n\t\treturn null;\n\t}",
"public ListIterator listIterator() {\n\t\treturn null;\n\t}",
"public E first() {\n if(isEmpty()){\n return null;\n }else{\n return header.getNext().getElement();\n }\n }",
"public ListIterator listIterator(int arg0) {\n\t\treturn null;\n\t}",
"@Test\n public void whenAddOneToEmptyTreeThenIteratorHasNext() {\n tree.add(1);\n\n Iterator<Integer> iterator = this.tree.iterator();\n\n assertThat(iterator.next(), is(1));\n }",
"@Override\n\tpublic ListIterator<T> listIterator() {\n\t\treturn null;\n\t}",
"public E peekFirst() {\n\t\tif (mSize == 0)\n\t\t\treturn null;\n\t\treturn mHead.next.data;\n\t}",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"public ListIterator<T> listIterator(int arg0) {\n\t\treturn null;\n\t}",
"public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}",
"Node getFirst() {\n return this.first;\n }",
"public T peek() throws NoSuchElementException\n\t{\n\t\tcheckEmpty();\n\t\treturn list.get(0);\n\t}",
"public E peekFirst();",
"@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}",
"@Test\n public void testNext_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 3, 4, 5));\n\n ListIterator<Integer> instance = baseList.listIterator();\n Integer expResult = 1;\n Integer result = instance.next();\n assertEquals(expResult, result);\n }",
"public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}",
"public Object getFirst() {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n\r\n return header.next.element;\r\n }",
"public T first() throws EmptyCollectionException{\n if (front == null){\n throw new EmptyCollectionException(\"list\");\n }\n return front.getElement();\n }",
"public ListIterator<E> listIterator() {\n\t\treturn new LinkedListItr();\r\n\t}",
"public Iterator iterator() {\n\t\treturn new LinkedListIterator();\n\t}",
"@Override\n public Iterator<Node> iterator() {\n return this;\n }",
"public OSMNode firstNode() {\n return nodes.get(0);\n }",
"@Nonnull\n public Optional<ENTITY> peekNext()\n {\n return hasNext() ? Optional.of(items.get(index + 1)) : Optional.empty();\n }",
"@Override\n\tpublic Object peek() {\n\t\treturn list.getFirst();\n\t}",
"@Override\r\n\tpublic Iterator<Item> iterator() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}",
"NodeIterable(Node firstChild) {\n next = firstChild;\n }",
"public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }",
"@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}",
"public synchronized DoubleLinkedListNodeInt getFirst() {\n\t\tif(isEmpty())\n\t\t\treturn null;\n\t\treturn head.getNext();\n\t}",
"@Override \r\n\tpublic LLNode<T> next() throws NoSuchElementException{\r\n\t\tLLNode<T> node = nodeptr;\r\n\t\tif (nodeptr == null)\r\n\t\t\tthrow new NoSuchElementException();\r\n\t\tnodeptr = nodeptr.getNext();\r\n\t\treturn node;\r\n\t}",
"public Iterator<T> iterator() {\n\t\treturn list.iterator();\n\t}",
"@Override\n public T next() {\n T n = null;\n if (hasNext()) {\n // Give it to them.\n n = next;\n next = null;\n // Step forward.\n it = it.next;\n stop -= 1;\n } else {\n // Not there!!\n throw new NoSuchElementException();\n }\n return n;\n }",
"public E getFirst() {\n return peek();\n }",
"public Object getFirst()\n {\n if (first == null)\n {\n throw new NoSuchElementException();\n }\n else\n return first.getValue();\n }",
"public Iterator<K> iterator()\n {\n\treturn new SkipListIterator<K>(this.head);\n }",
"public Iterator<E> iterator()\n {\n return new CircularLinkedListIterator();\n }",
"Iterator<E> iterator();",
"Iterator<E> iterator();",
"@Override\n public Iterator<Item> iterator() {\n class DequeIterator implements Iterator<Item> {\n private Node node = first;\n @Override\n public boolean hasNext() {\n return node != null;\n }\n\n @Override\n public Item next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n Item item = node.item;\n node = node.next;\n return item;\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n }\n return new DequeIterator();\n }",
"public Object front() {\n ListNode p = this.l.start;\n while(p.next!=null)\n {\n p = p.next;\n }\n\t\treturn (Object) p.item;\n\t}",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn new LinkedListIterator();\n\t}",
"public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }",
"public Iterator<E> iterator()\r\n {\r\n return listIterator();\r\n }",
"@Override\r\n\tpublic Object first(){\r\n\t\tcheck();\r\n\t\treturn head.value;\r\n\t}",
"public int getFirstElement() {\n\t\tif( head == null) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse {\n\t\t\treturn head.data;\n\t\t}\n\t}",
"public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }",
"@Override\r\n\tpublic T first() {\n\t\treturn head.content;\r\n\t}",
"public Iterator<T> iterator()\n\t{\n\t\treturn new LinkedListIterator();\n\t}",
"@Override\r\n\tpublic Iterator<E> iterator() {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic Iterator<ItemT> iterator() {\n\t\treturn null;\n\t}",
"public Object getFirst() throws ListException {\r\n\t\tif (size() >= 1) {\r\n\t\t\treturn get(1);\r\n\t\t} else {\r\n\t\t\tthrow new ListException(\"getFirst on an empty list\");\r\n\t\t}\r\n\t}"
] | [
"0.7300311",
"0.71235216",
"0.71110433",
"0.709144",
"0.70602316",
"0.7020782",
"0.69913626",
"0.69345045",
"0.6923151",
"0.6860733",
"0.67683417",
"0.67280084",
"0.6708393",
"0.66136545",
"0.6609241",
"0.6600038",
"0.6590816",
"0.65790087",
"0.6532418",
"0.648783",
"0.64878",
"0.64795",
"0.6451416",
"0.6443467",
"0.6440333",
"0.6439466",
"0.6438502",
"0.64173454",
"0.63987976",
"0.6393711",
"0.6389673",
"0.63799626",
"0.636077",
"0.63538265",
"0.6347938",
"0.63112134",
"0.6310072",
"0.62993807",
"0.62833846",
"0.62800616",
"0.627088",
"0.6263445",
"0.62489635",
"0.6240171",
"0.6238167",
"0.62288994",
"0.6227261",
"0.6225555",
"0.6196542",
"0.619023",
"0.6189617",
"0.61848176",
"0.61715066",
"0.6155243",
"0.61520255",
"0.6134328",
"0.612572",
"0.6125296",
"0.61248577",
"0.61014885",
"0.6099702",
"0.60991585",
"0.60985553",
"0.6098542",
"0.6089032",
"0.6083644",
"0.60755795",
"0.6074274",
"0.6071013",
"0.6069422",
"0.60649425",
"0.6057985",
"0.605736",
"0.6047578",
"0.6046957",
"0.604327",
"0.6037465",
"0.6022821",
"0.6014595",
"0.6011296",
"0.5992109",
"0.59885967",
"0.5988339",
"0.5985037",
"0.59844565",
"0.59751415",
"0.59751415",
"0.5967104",
"0.5951753",
"0.5945911",
"0.5941717",
"0.5940616",
"0.5939706",
"0.5936769",
"0.5935537",
"0.5924233",
"0.59109855",
"0.5904316",
"0.5885195",
"0.5885101"
] | 0.6963401 | 7 |
Return iterator corresponding to the first node containing an item. | public LinkedListItr find( Object x )
{
ListNode itr = header.next;
while( itr != null && !itr.element.equals( x ) )
itr = itr.next;
return new LinkedListItr( itr );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }",
"public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }",
"@Override\n\tpublic Iterator<E> iterator()\n\t{\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Node<E> current = first;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn current.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next()\n\t\t\t{\n\t\t\t\tif (hasNext())\n\t\t\t\t{\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\treturn current.value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}",
"public DNode<E> iterator()\n {\n \treturn first;\t\t\n }",
"@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }",
"public Iterator iterator () {\n return new MyIterator (first);\n }",
"public LinkedListIterator<AnyType> first() {\n return new LinkedListIterator<AnyType>(header.next);\n }",
"public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }",
"public Item getFirst();",
"public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }",
"private Node getRefTo(T item){\n Node n = first;\n while(n != null && !n.value.equals(item))\n n = n.next;\n return n;\n }",
"@Override\n public Iterator<Item> iterator() {\n class DequeIterator implements Iterator<Item> {\n private Node node = first;\n @Override\n public boolean hasNext() {\n return node != null;\n }\n\n @Override\n public Item next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n Item item = node.item;\n node = node.next;\n return item;\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n }\n return new DequeIterator();\n }",
"public Iterator<Type> iterator() {\n return new LinkedListIterator(first);\n }",
"public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}",
"public E find(E item){\n\t\tE found = find(item, root);\n\t\treturn found;\n\t}",
"public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }",
"@Override\n public Iterator<Item> iterator() {\n return new DequeIterator<Item>(first);\n }",
"public Iterator<Item> iterator() {\n return new Iterator<Item>() {\n public boolean hasNext() {\n return false;\n }\n\n public Item next() {\n return null;\n }\n };\n }",
"public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }",
"public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }",
"public Iterator begin()\n\t{\n\t\treturn new LinkedListIterator(head); \n\t}",
"public Iterator <item_t> iterator () {\n return new itor ();\n }",
"public ListIterator iterator()\n {\n return new ListIterator(firstLink);\n }",
"@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}",
"@Override\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator<Key>() {\n\t\t\tNode temp = getFirstNode();\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn temp.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key next() {\n\t\t\t\tKey k = temp.next.key;\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn k;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPrevious() {\n\t\t\t\treturn !temp.equals(getFirstNode());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key previous() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int nextIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int previousIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void set(Key key) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void add(Key key) {\n\n\t\t\t}\n\t\t};\n\t}",
"public abstract TreeIter<T> iterator();",
"public Iterator<Item> iterator() {\n RQIterator it = new RQIterator();\n return it;\n }",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"public Iterator<PartialTree> iterator() {\r\n \treturn new PartialTreeListIterator(this);\r\n }",
"public BinaryTree<E> find(E item) \r\n\t{\r\n\t\treturn finderHelper(item, root);\r\n\t}",
"public Iterator nodeIterator() { return nodes.keySet().iterator(); }",
"@Override\r\n\tpublic Iterator<Item> iterator() {\n\t\treturn null;\r\n\t}",
"@Nonnull\n public Optional<ENTITY> peekNext()\n {\n return hasNext() ? Optional.of(items.get(index + 1)) : Optional.empty();\n }",
"@Override\n public Iterator<Node> iterator() {\n return this;\n }",
"@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }",
"public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}",
"public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }",
"public node getFirst() {\n\t\treturn head;\n\t\t//OR\n\t\t//getAt(0);\n\t}",
"public Object firstElement();",
"@Override\n\tpublic Iterator<ItemT> iterator() {\n\t\treturn null;\n\t}",
"public Iterator iterator() {\n\t\treturn theList.listIterator(0);\n\t}",
"public Item next()\n\t\t {\n\t\t\t if (!hasNext()) throw new NoSuchElementException();\n\t\t\t return items[indexs[i++]];\n\t\t }",
"public Iterator<Object> iterator()\r\n {\r\n return new MyTreeSetIterator(root);\r\n }",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public Iterator<Item> iterator(){\n return this.doublyLinkedList.iterator();\n }",
"Iterator<E> iterator();",
"Iterator<E> iterator();",
"@Test\n public void whenAddOneToEmptyTreeThenIteratorHasNext() {\n tree.add(1);\n\n Iterator<Integer> iterator = this.tree.iterator();\n\n assertThat(iterator.next(), is(1));\n }",
"@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }",
"public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tpublic Iterator<T> iterator() {\n\t\treturn this.itemList.iterator();\n\t}",
"public BSTNode<E> find (E item) {\r\n\t\tBSTNode<E> pointer = this;\r\n\t\twhile (pointer != null) {\r\n\t\t\tif (pointer.value.compareTo(item) == 0) {\r\n\t\t\t\treturn pointer;\r\n\t\t\t}\r\n\t\t\tif (pointer.value.compareTo(item) > 0) {\r\n\t\t\t\tpointer = pointer.left;\r\n\t\t\t}else if (pointer.value.compareTo(item) < 0) {\r\n\t\t\t\tpointer = pointer.right;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\r\n public Iterator<NamedTreeNode<T>> iterator()\r\n {\r\n return new Iterator<NamedTreeNode<T>>()\r\n {\r\n NamedTreeNode<T> n = (NamedTreeNode<T>)getLeftNode();\r\n @Override\r\n public boolean hasNext()\r\n {\r\n return n != null;\r\n }\r\n @Override\r\n public NamedTreeNode<T> next()\r\n {\r\n if( n == null ) {\r\n throw new NoSuchElementException();\r\n }\r\n NamedTreeNode<T> r = n;\r\n n = (NamedTreeNode<T>)n.getRightNode();\r\n return r;\r\n }\r\n @Override\r\n public void remove()\r\n {\r\n throw new UnsupportedOperationException();\r\n }\r\n };\r\n }",
"public Iterator<Item> iterator() {\n return new LinkedBagIterator();\n }",
"public Iterator<Item> iterator() {\n return new AIterator();\n }",
"@Override\n public Iterator<T> iterator() {\n return new UsedNodesIterator<>(this);\n }",
"public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }",
"public int indexOf(E item) {\r\n\t\tint count = 0;\r\n\t\tNode p = first;\r\n\t\tfor (count = 0; p.item != item; count++) {\r\n\t\t\tp = p.next;\r\n\t\t}\r\n\t\tif (p.item == item) return count;\r\n\t\telse return -1;\r\n\t}",
"@Override\n public Iterator<T> iterator() {\n return items.iterator();\n }",
"public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}",
"public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }",
"public T item() throws IOException, NoSuchElementException;",
"public Item next() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot retrieve item from empty deque\");\n }\n Item item = current.getItem(); //item = current item to be returned\n current = current.getNext();\n return item;\n }",
"public ASTNodeIterator iterator() {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = name;\n return I;\n }",
"public Node getFirst()\n {\n return this.first;\n }",
"@Override\r\n\t\tpublic Item next() {\r\n\t\t\tif (!hasNext()) {\r\n\t\t\t\tthrow new NoSuchElementException();\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn queue[index[i++]];\r\n\t\t\t}\r\n\t\t}",
"public Iterator<T> iterator() {\n return new SetIterator<T>(this.head);\n }",
"boolean nextItem();",
"public Iterable<Key> iterator() {\n Queue<Key> queue = new LinkedList<>();\n inorder(root, queue);\n return queue;\n }",
"Iterator<T> iterator();",
"public Node<T> getFirst() {\r\n\t\treturn first;\r\n\t}",
"Node getFirst() {\n return this.first;\n }",
"public E first() \n throws NoSuchElementException {\n if (entries != null && \n size > 0 ) {\n position = 0;\n E element = entries[position]; \n position++;\n return element;\n } else {\n throw new NoSuchElementException();\n }\n }",
"public Unit first()\n\t{\n\t\tif (size() == 0)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\t\treturn iterator().next();\n\t}",
"NodeIterable(Node firstChild) {\n next = firstChild;\n }",
"public Iterator<String> keyIterator() {\n \treturn new MapIter(first);\n }",
"@Override\n public Spliterator<T> spliterator() {\n return items.spliterator();\n }",
"public Object getItem(Node itemNode) throws XmlRecipeException;",
"Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}",
"public boolean contains(Item item){\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perfrom contains because the DList instance is empty!\");\n for(Node temp = first.next; temp.next!=null; temp=temp.next)\n if(temp.data.equals(item)) return true;\n return false; \n }",
"public LinkedListIterator<AnyType> find(AnyType x) {\n ListNode<AnyType> itr = header.next;\n\n while (itr != null && !itr.element.equals(x)) {\n itr = itr.next;\n }\n\n return new LinkedListIterator<AnyType>(itr);\n }",
"@Override\n public Map.Entry<K, V> next() {\n if (iter.hasNext()) {\n \n lastItemReturned = iter.next();\n return lastItemReturned;\n } else {\n throw new NoSuchElementException();\n }\n }",
"private BinaryTreeNode findNode(T item) {\n\t\tif (item.equals(root.data)) {\n\t\t\treturn root;\n\t\t}\n\n\t\telse return findNodeRecursive(item, root);\n\t}",
"public boolean offerFirst(E item);",
"Iterator<CtElement> descendantIterator();",
"public boolean contains(int item) {\n if (item == datum() ) return true; // true upon finding the item\n else if (next() == null) return false; // false if item not found until the end of list\n else return next.contains(item); \n }",
"public Iterator<Item> iterator() {\n\t\treturn new ListIterator(); \n\t\t}",
"public StringListIterator first()\n {\n\treturn new StringListIterator(head);\n }",
"public Iterator<E> iterator();",
"public Iterator<E> iterator();",
"public Iterator<E> iterator();",
"public ASTNodeIterator iterator()\n {\n ASTNodeIterator I = new ASTNodeIterator(1);\n I.children[0] = expression;\n return I;\n }",
"public Iterator<S> iterator() {\n\t\t// ..\n\t\treturn null;\n\t}",
"public Iterator<ResultItem> iterateItems() {\r\n\t\treturn items.iterator();\r\n\t}",
"public Iterator<Item> iterator() {\n return new ListIterator();\n\n }",
"public T iterator();",
"private E find(E item, Node<E> root){\n\t\t/** item not found */\n\t\tif(root == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tint comparison = item.compareTo(root.item);\n\t\t\n\t\t/** item found */\n\t\tif(comparison == 0){\n\t\t\treturn root.item;\n\t\t}\n\t\t/** item less than that of root */\n\t\telse if(comparison < 0){\n\t\t\treturn find(item, root.left);\n\t\t}\n\t\t/** item greater than that of root */\n\t\telse{\n\t\t\treturn find(item, root.right);\n\t\t}\n\t}",
"@Override\r\n\tpublic Iterator<T> iterator() {\n\t\treturn new Iterator<T>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic boolean hasNext() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tnodo<T> sig = sentinel;\r\n\t\t\t\tsentinel = sentinel.getNext();\r\n\t\t\t\treturn (sentinel != null) ? true : false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic T next() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\treturn sentinel.getValue();\r\n\t\t\t}\r\n\t\t};\r\n\t\t\r\n\t}",
"public RNode deleteFirstOccurrence(int item) {\n\tif (item == datum() ) return next;\n\telse {\n\t if (next != null) next = next.deleteFirstOccurrence(item);\n\t return this;\n\t}\n }"
] | [
"0.6841889",
"0.6589411",
"0.6363438",
"0.61736107",
"0.6149679",
"0.6119475",
"0.6082776",
"0.60471165",
"0.60451186",
"0.60408306",
"0.60058814",
"0.59655833",
"0.5963659",
"0.5867978",
"0.5847075",
"0.5831629",
"0.58231044",
"0.58204603",
"0.579043",
"0.57896346",
"0.57881063",
"0.5768633",
"0.5759012",
"0.57486224",
"0.5744126",
"0.5707724",
"0.5699156",
"0.56951725",
"0.5674033",
"0.56449825",
"0.56344545",
"0.5628203",
"0.5621836",
"0.56189114",
"0.56182045",
"0.561226",
"0.5607244",
"0.5597768",
"0.55948025",
"0.55764735",
"0.5574531",
"0.5540685",
"0.55190086",
"0.551112",
"0.55085427",
"0.55040723",
"0.5502094",
"0.5502094",
"0.5501965",
"0.5496401",
"0.5492906",
"0.54923475",
"0.5476595",
"0.5473901",
"0.546987",
"0.5469712",
"0.5459449",
"0.5452227",
"0.5451804",
"0.54474074",
"0.54442155",
"0.5442842",
"0.5440093",
"0.54241794",
"0.5411187",
"0.5389123",
"0.5382983",
"0.53720915",
"0.53717566",
"0.53689176",
"0.536168",
"0.53423595",
"0.5335792",
"0.5334358",
"0.5331124",
"0.533102",
"0.5322029",
"0.5314598",
"0.53072375",
"0.53058475",
"0.53002393",
"0.5298342",
"0.5297209",
"0.52939194",
"0.5291762",
"0.5290931",
"0.5290499",
"0.52902436",
"0.528764",
"0.528099",
"0.528099",
"0.528099",
"0.5274124",
"0.52697885",
"0.5262991",
"0.5262493",
"0.5262065",
"0.52585495",
"0.5253961",
"0.5253491"
] | 0.5386369 | 66 |
Return iterator prior to the first node containing an item. | public LinkedListItr findPrevious( Object x )
{
ListNode itr = header;
while( itr.next != null && !itr.next.element.equals( x ) )
itr = itr.next;
return new LinkedListItr( itr );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Iterator<Item> iterator() {\n return new HeadFirstIterator();\n }",
"OIterator<V> before();",
"public Item next() throws XPathException {\n while (true) {\n NodeInfo next = (NodeInfo)iterator.next();\n if (next == null) {\n current = null;\n position = -1;\n return null;\n }\n if (current != null && next.isSameNodeInfo(current)) {\n continue;\n } else {\n position++;\n current = next;\n return current;\n }\n }\n }",
"@Nonnull\n public Optional<ENTITY> peekNext()\n {\n return hasNext() ? Optional.of(items.get(index + 1)) : Optional.empty();\n }",
"public Item next() throws XPathException {\n curr = base.next();\n if (curr == null) {\n pos = -1;\n } else {\n pos++;\n }\n return curr;\n }",
"@Override\n\tpublic Item next() {\n\t\tindex = findNextElement();\n\n\t\tif (index == -1)\n\t\t\treturn null;\n\t\treturn items.get(index);\n\t}",
"public Node findInOrderSuccessor() {\n\n return null;\n }",
"public DNode<E> iterator()\n {\n \treturn first;\t\t\n }",
"private Node getRefTo(T item){\n Node n = first;\n while(n != null && !n.value.equals(item))\n n = n.next;\n return n;\n }",
"public Iterator begin()\n\t{\n\t\treturn new LinkedListIterator(head); \n\t}",
"@Override\n public Iterator<E> iterator() {\n return new InsideIterator(first);\n }",
"public Iterator<DocTokenInf> getPrev(int vertex) {\n\t\tDocTokenLinkedList ll = list[vertex];\n\t\tif(ll == null)\n\t\t\treturn null;\n\t\treturn ll.iterator();\n\t}",
"public LinkedListIterator<AnyType> findPrevious(AnyType x) {\n ListNode<AnyType> itr = header;\n\n while (itr.next != null && !itr.next.element.equals(x)) {\n itr = itr.next;\n }\n\n return new LinkedListIterator<AnyType>(itr);\n }",
"public Iterator<T> preorderIterator() { return new PreorderIterator(root); }",
"public /*@ non_null @*/ JMLListEqualsNode<E> prepend(E item) {\n // cons() handles any necessary cloning\n return cons(item, this);\n }",
"public static Node inorderSuccessor(Node x) {\n Node cursor = null;\n if (x == null) {\n return cursor;\n }\n\n if (x.right != null) {\n cursor = x.right;\n while (cursor != null) {\n cursor = cursor.left;\n }\n return cursor;\n } else {\n cursor = x.parent;\n while (cursor != null && cursor.val < x.val) {\n cursor = cursor.parent;\n }\n return cursor;\n }\n }",
"@Override\n\tpublic Iterator<E> iterator()\n\t{\n\t\treturn new Iterator<E>() {\n\t\t\tprivate Node<E> current = first;\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn current.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic E next()\n\t\t\t{\n\t\t\t\tif (hasNext())\n\t\t\t\t{\n\t\t\t\t\tcurrent = current.next;\n\t\t\t\t\treturn current.value;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthrow new NoSuchElementException();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t}",
"@Nonnull\n public Optional<ENTITY> next()\n {\n currentItem = Optional.of(items.get(++index));\n update();\n return currentItem;\n }",
"private Node locatePrevNode(K key) { \n\t\tNode p = null; \n\t\tNode current = first; \n\t\twhile (current != null && current.getData().getKey().compareTo(key) < 0) {\n\t\t\tp = current; \n\t\t\tcurrent = current.getNext(); \n\t\t}\n\t\treturn p; \n\t}",
"public LinkedListItr first( )\n {\n return new LinkedListItr( header.next );\n }",
"@Override\n\tpublic Iterator<T> iteratorPreOrder() {\n\t\treturn null;\n\t}",
"@Override\n public Iterator<Item> iterator() {\n return new DequeIterator<Item>(first);\n }",
"public Item removeFirst() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.first.item;\n\n this.first = this.first.next;\n if (this.first != null)\n this.first.prev = null;\n else\n this.last = null;\n --this.n;\n\n return ret;\n }",
"public IndexRecord getIteratorPrev() {\n iter = (iter == 0 ? -1 : iter - 1);\n return (iter == -1 ? null : data[iter]);\n }",
"public LinkedListIterator<AnyType> first() {\n return new LinkedListIterator<AnyType>(header.next);\n }",
"public Iterator<Item> iterator() {\n return new CustomIterator<Item>(head);\n }",
"public Item peek(){\n if(isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\n return first.item;\n }",
"public Node<T> getFirst() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.next;\r\n }",
"@Override\n public Iterator<E> getPreorderIterator() {\n return new PreorderIterator();\n }",
"public Item peek() {\r\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\r\n return first.item;\r\n }",
"public Iterator<K> iterator()\n {\n\treturn new SkipListIterator<K>(this.head);\n }",
"public Iterator<PartialTree> iterator() {\r\n \treturn new PartialTreeListIterator(this);\r\n }",
"public Iterator iterator () {\n return new MyIterator (first);\n }",
"private IAVLNode findPredecessor(IAVLNode node)\r\n\t{\r\n\t\t//minimum node has no predecessor\r\n\t\tif (node == minimum) \r\n\t\t\treturn null; \r\n\t\t\r\n\t\tif (node.getLeft().isRealNode()) \r\n\t\t\treturn maxPointer(node.getLeft()); \r\n\t\telse \r\n\t\t{\r\n\t\t\tIAVLNode parent = node.getParent();\r\n\t\t\twhile ((node == parent.getLeft())&&(parent != null)) \r\n\t\t\t{ \r\n\t\t\t\tnode = parent; \r\n \t\t\t\tparent = parent.getParent() ; \r\n\t\t\t}\r\n\t\t\treturn parent;\t\r\n\t\t}\r\n\t}",
"@Override\n public Iterator<Item> iterator() {\n class DequeIterator implements Iterator<Item> {\n private Node node = first;\n @Override\n public boolean hasNext() {\n return node != null;\n }\n\n @Override\n public Item next() {\n if (!hasNext()) {\n throw new NoSuchElementException();\n }\n Item item = node.item;\n node = node.next;\n return item;\n }\n\n @Override\n public void remove() {\n throw new UnsupportedOperationException();\n }\n\n }\n return new DequeIterator();\n }",
"@Override\n\tpublic Iterator<E> iterator() {\n\n\t\tNode tempRoot = root;\n\t\tinOrder(tempRoot);\n\t\treturn null;\n\t}",
"public Item peek() throws NoSuchElementException\r\n {\r\n if (size == 0)\r\n throw new NoSuchElementException();\r\n return heap[1]; // root siempre esta en la posicion 1\r\n }",
"Iterator getPrecedingSiblingAxisIterator(Object contextNode) throws UnsupportedAxisException;",
"public int getPrev(int iterator) {\n int block = iterator / (len << 1);\n iterator--;\n if (iterator < 2 * len * block) {\n block--;\n if (block < 0) return NO_ELEMENT;\n iterator = endOfBlock[block] - 1;\n }\n return iterator;\n }",
"public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }",
"public Integer peek() {\n if (next != null) {\n return next;\n }\n\n if (iterator.hasNext()) {\n next = iterator.next();\n return next;\n }\n\n return null;\n }",
"Iterable<T> followNode(T start) throws NullPointerException;",
"public E first() {\n if (this.isEmpty()) return null;\r\n return this.head.getElement();\r\n }",
"public Node findPredecessor(int id) {\n\t\tNode n = this;\n\t\twhile (id <= n.getId() || id > n.getSuccessor().getId()) {\n\t\t\tn = n.closestPrecedingFinger(id);\n\t\t}\n\t\treturn n;\n\t}",
"public Item getFirst();",
"public Object getPrev() {\n\t\tif (current != null) {\n\t\t\tcurrent = current.prev;\n\t\t} else {\n\t\t\tcurrent = start;\n\t\t}\n\t\treturn current == null ? null : current.item; //Ha nincs még start, akkor null adjon vissza\n\t}",
"public E first() {\n if (isEmpty()) return null;\n return first.item;\n }",
"public Item peek(){\n\t\tif(isEmpty()){\r\n\t\t\tthrow new NoSuchElementException(\"Stack Underflow\"); // if stack is empty , ,t throws an exception\r\n\t\t}\r\n\t\treturn first.item;\r\n\t}",
"@Test public void preceding() {\n execute(new Add(NAME, FILE));\n query(\"(//ul)[last()]/preceding::ul\", \"\");\n query(\"(//ul)[1]/preceding::ul\", \"\");\n query(\"//ul/preceding::ul\", \"\");\n query(\"//li/preceding::li\", LI1 + '\\n' + LI1);\n }",
"public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }",
"public Iterator<Type> iterator() {\n return new LinkedListIterator(first);\n }",
"public Item next() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot retrieve item from empty deque\");\n }\n Item item = current.getItem(); //item = current item to be returned\n current = current.getNext();\n return item;\n }",
"boolean nextItem();",
"private T getPredecessor (BSTNode<T> current) {\n\t\twhile(current.getRight() != null) {\n\t\t\tcurrent = current.getRight();\n\t\t}\n\t\treturn current.getData();\n\n\t}",
"Iterable<T> followNodeAndSelef(T start) throws NullPointerException;",
"private T getPredecessor(BSTNode<T> current) {\n while (current.getRight() != null) {\n current = current.getRight();\n }\n return current.getData();\n }",
"public E peekFirst();",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else {\n first.pre = null;\n }\n len--;\n return item;\n }",
"private\t\tMiContainerIterator getPreviousIterator()\n\t\t{\n\t\tif (startAtTop)\n\t\t\t{\n\t\t\twhile (++layerNum <= editor.getNumberOfLayers() - 1)\n\t\t\t\t{\n\t\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t\t{\n\t\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\treturn(null);\n\t\t\t}\n\t\twhile (--layerNum >= 0)\n\t\t\t{\n\t\t\tif (editor.getLayer(layerNum).isVisible())\n\t\t\t\t{\n\t\t\t\treturn(new MiContainerIterator(\n\t\t\t\t\teditor.getLayer(layerNum), !startAtTop, \n\t\t\t\t\titerateIntoPartsOfParts, iterateIntoAttachmentsOfParts));\n\t\t\t\t}\n\t\t\t}\n\t\treturn(null);\n\t\t}",
"public Item next(){\n if(current==null) {\n throw new NoSuchElementException();\n }\n\n Item item = (Item) current.item;\n current=current.next;\n return item;\n }",
"public O before(O a)\r\n {\r\n int index = indexOf(a);\r\n if (index != -1 && index != 0) //is defined and not first\r\n return get(index-1);\r\n else return null;\r\n }",
"public E first() {\n\r\n if (head == null) {\r\n return null;\r\n } else {\r\n return head.getItem();\r\n }\r\n\r\n }",
"public ListIterator iterator()\n {\n return new ListIterator(firstLink);\n }",
"public Iterator next() {\n return new FilterIterator(succ.iterator(), filter);\n }",
"@Override\n\tpublic Iterator<Key> iterator() {\n\t\treturn new ListIterator<Key>() {\n\t\t\tNode temp = getFirstNode();\n\t\t\t@Override\n\t\t\tpublic boolean hasNext() {\n\t\t\t\treturn temp.next != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key next() {\n\t\t\t\tKey k = temp.next.key;\n\t\t\t\ttemp = temp.next;\n\t\t\t\treturn k;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic boolean hasPrevious() {\n\t\t\t\treturn !temp.equals(getFirstNode());\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic Key previous() {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int nextIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic int previousIndex() {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void remove() {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void set(Key key) {\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void add(Key key) {\n\n\t\t\t}\n\t\t};\n\t}",
"public Node getPredecessor(Node element) {\r\n\t\tNode predecessor = null;\r\n\t\tif (element.getLeftChild() != null) {\r\n\t\t\tpredecessor = element.getLeftChild();\r\n\t\t\tif (predecessor.getRightChild() == null) {\r\n\t\t\t\tpredecessor = element.getLeftChild();\r\n\t\t\t} else {\r\n\t\t\t\twhile (predecessor.getRightChild() != null) {\r\n\t\t\t\t\tpredecessor = predecessor.getRightChild();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"No left sub tree\");\r\n\t\t\tif (element.isRoot()) {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t\tpredecessor = element;\r\n\t\t\tSystem.out.println(\"-- \" + element.getKey());\r\n\t\t\tNode rightChild = predecessor.getParent().getRightChild();\r\n\t\t\tif (rightChild == null) {\r\n\t\t\t\trightChild = predecessor.getParent();\r\n\t\t\t}\r\n\t\t\twhile (!predecessor.getParent().equals(root) && !rightChild.equals(predecessor)) {\r\n\t\t\t\tSystem.out.println(\"In loop\");\r\n\t\t\t\tpredecessor = predecessor.getParent();\r\n\t\t\t\trightChild = predecessor.getParent().getRightChild();\r\n\t\t\t\tif (rightChild == null) {\r\n\t\t\t\t\trightChild = predecessor.getParent();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (predecessor.getParent().getKey() < predecessor.getKey()) {\r\n\t\t\t\tpredecessor = predecessor.getParent();\r\n\t\t\t} else {\r\n\t\t\t\t// element is the smallest, no predecessor\r\n\t\t\t\tpredecessor = null;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn predecessor;\r\n\t}",
"public Integer peek() {\n if (isPeeked)\n return peekedElement;\n else {\n if (!hasNext())\n return -1;\n peekedElement = iterator.next();\n isPeeked = true;\n return peekedElement;\n }\n }",
"Node predecessor(T value) {\n Node x = search(value);\n if (x.value.compareTo(value) < 0) return x;\n else return predecessor(x);\n }",
"@Override\r\n\tpublic E peekFirst() {\n\t\treturn peek();\r\n\t}",
"public T prev() {\n cursor = ((Entry<T>) cursor).prev;\n ready = true;\n return cursor.element;\n }",
"public Integer peek() {\n List<Integer> temp = new ArrayList<>();\n \n while(iterator.hasNext()){\n \ttemp.add(iterator.next());\n }\n \n Integer result = null;\n if(temp.size() > 0){\n result = temp.get(0);\n }\n \n iterator = temp.iterator();\n return result;\n\t}",
"@Override\n public Integer next() {\n if (!isPeeked && hasNext())\n return iterator.next();\n int toReturn = peekedElement;\n peekedElement = -1;\n isPeeked = false;\n return toReturn;\n }",
"public Integer peek() {\n if (iter == null) {\n return null;\n }\n\n if (cur != null) {\n return cur;\n }\n\n if (iter.hasNext()) {\n cur = iter.next();\n return cur;\n } else {\n return null;\n }\n }",
"HNode getPreviousSibling();",
"public BSTNode<E> find (E item) {\r\n\t\tBSTNode<E> pointer = this;\r\n\t\twhile (pointer != null) {\r\n\t\t\tif (pointer.value.compareTo(item) == 0) {\r\n\t\t\t\treturn pointer;\r\n\t\t\t}\r\n\t\t\tif (pointer.value.compareTo(item) > 0) {\r\n\t\t\t\tpointer = pointer.left;\r\n\t\t\t}else if (pointer.value.compareTo(item) < 0) {\r\n\t\t\t\tpointer = pointer.right;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n public Item next() {\n if(!hasNext()) throw new NoSuchElementException(\"Failed to perform next because hasNext returned false!\");\n Item item = current.data;\n current = current.next;\n return item;\n }",
"public Item peek()\n {\n if (isEmpty()) throw new NoSuchElementException(\"Stack underflow\");\n return top.item;\n }",
"public AIter next() {\n int p;\n return (p = start + 1) < size ? new Iter(p) : null;\n }",
"public T getFirst( ){\r\n\t\tif (isEmpty())\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t//first node\r\n\t\tArrayNode<T> first = beginMarker.next;\r\n\t\ttry{\r\n\t\t\t//first elem\r\n\t\t\treturn first.getFirst();\r\n\t\t}catch( IndexOutOfBoundsException e){\r\n\t\t\tthrow new NoSuchElementException(\"ChainedArrays are empty\");\r\n\t\t}\r\n\t\t\r\n\t}",
"public Iterator<T> inorderIterator() { return new InorderIterator(root); }",
"Node firstNode() {\r\n\t\treturn first.next.n;\r\n\t}",
"public Integer peek() {\n if (hasNext()){\n if (list.isEmpty()){\n Integer next = iterator.next();\n list.add(next);\n return next;\n }else {\n return list.get(list.size()-1);\n }\n }else {\n return null;\n }\n }",
"@Test(expected = NoSuchElementException.class)\n public void testPrevious_Start() {\n OasisList<Integer> baseList = new SegmentedOasisList<>();\n baseList.addAll(Arrays.asList(1, 2, 5, 8));\n\n ListIterator<Integer> instance = baseList.listIterator();\n instance.previous();\n }",
"@Test\n public void whenAddOneToEmptyTreeThenIteratorHasNext() {\n tree.add(1);\n\n Iterator<Integer> iterator = this.tree.iterator();\n\n assertThat(iterator.next(), is(1));\n }",
"public Object getFirst() {\n\t\tcurrent = start;\n\t\treturn start == null ? null : start.item;\n\t}",
"@Override\n\t\tpublic Item next() {\n\t\t\tItem item=current.item;\n\t\t\tcurrent=current.next;\n\t\t\treturn item;\n\t\t}",
"@Override\n\tpublic Position<E> addFirst(E e) {\n\t\treturn addBetween(head, head.next, e);\n\t}",
"public Iterator<T> iterator() {\n if (this.nrOfElements == 0) {\n return Collections.<T>emptyList().iterator();\n }\n return new Iterator<T>() {\n private Node walker = null;\n\n @Override\n public boolean hasNext() {\n return walker != last;\n }\n\n @Override\n public T next() {\n if (this.walker == null) {\n this.walker = first;\n return this.walker.getData();\n }\n\n if (this.walker.getNext() == null) {\n throw new NoSuchElementException();\n }\n\n this.walker = this.walker.getNext();\n return this.walker.getData();\n }\n };\n }",
"@Override\n public T next() {\n if (nextItem == null)\n throw new NoSuchElementException();\n T item = nextItem;\n lastItem = nextItem;\n remainingItemCount.decrement();\n if (remainingItemCount.isZero())\n getNextReady();\n return item;\n }",
"public Iterator<T> iterator()\n\t{\n\t\treturn new Iterator<T>()\n\t\t{\n\t\t\tNode<T> actual = head;\n\n\t\t\t@Override\n\t\t\tpublic boolean hasNext()\n\t\t\t{\n\t\t\t\treturn actual != null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic T next() \n\t\t\t{\n\t\t\t\tif(hasNext())\n\t\t\t\t{\n\t\t\t\t\tT data = actual.getElement();\n\t\t\t\t\tactual = actual.getNext();\n\t\t\t\t\treturn data;\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\t}",
"@Nonnull\n public Optional<ENTITY> previous()\n {\n currentItem = Optional.of(items.get(--index));\n update();\n return currentItem;\n }",
"public\t\tMiPart\t\tgetPrevious()\n\t\t{\n\t\tMiPart obj = iterator.getPrevious();\n\t\twhile ((obj == null) || ((filter != null) && ((obj = filter.accept(obj)) == null)))\n\t\t\t{\n\t\t\tif (!hasLayers)\n\t\t\t\treturn(null);\n\t\t\tif (!iterateThroughAllLayers)\n\t\t\t\treturn(null);\n\t\t\tMiContainerIterator iter = getPreviousIterator();\n\t\t\tif (iter == null)\n\t\t\t\treturn(null);\n\t\t\titerator = iter;\n\t\t\tobj = iterator.getPrevious();\n\t\t\t}\n\t\treturn(obj);\n\t\t}",
"public Item setFront(Item item) {\n // check if list is not empty:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to setFront, because DList is empty!\");\n // update the data of the first actual node (first itself is a sentinel node)\n Item oldValue = first.next.data;\n first.next.data = item;\n return oldValue;\n }",
"public SequenceIterator getAnother() throws XPathException {\n return new FocusIterator((base.getAnother()));\n }",
"protected Tuple fetchNext() throws NoSuchElementException, TransactionAbortedException, DbException {\n\t\t// some code goes here\n\t\tTuple ret;\n\t\twhile (childOperator.hasNext()) {\n\t\t\tret = childOperator.next();\n\t\t\tif (pred.filter(ret))\n\t\t\t\treturn ret;\n\t\t}\n\t\treturn null;\n\t}",
"public StringListIterator first()\n {\n\treturn new StringListIterator(head);\n }",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldFirst = this.first;\n this.first = oldFirst.next;\n this.size--;\n\n if (this.size != 0) {\n this.first.prev = null;\n } else {\n this.last = null;\n }\n\n return oldFirst.item;\n }",
"public void addFirst(Item item) {\n if (item == null) {\n throw new NullPointerException(\"Item Null\");\n } else {\n\n if (isEmpty()) {\n first = new Node<Item>();\n first.item = item;\n last = first;\n } else {\n Node<Item> oldFrist = first;\n first = new Node<Item>();\n first.item = item;\n first.next = oldFrist;\n oldFrist.prev = first;\n }\n N++;\n }\n }",
"public Object next()\n {\n if(!hasNext())\n {\n throw new NoSuchElementException();\n //return null;\n }\n previous= position; //Remember for remove;\n isAfterNext = true; \n if(position == null) \n {\n position = first;// true == I have not called next \n }\n else\n {\n position = position.next;\n }\n return position.data;\n }",
"public Node getFirst() {\r\n\t\treturn getNode(1);\r\n\t}"
] | [
"0.65342605",
"0.61520076",
"0.6139895",
"0.60605067",
"0.6060185",
"0.60481954",
"0.58963287",
"0.5861567",
"0.58472735",
"0.5841323",
"0.5834209",
"0.5798078",
"0.5795983",
"0.5783272",
"0.5735753",
"0.57341075",
"0.57179755",
"0.5691694",
"0.56890255",
"0.56815654",
"0.56213176",
"0.5614717",
"0.56109315",
"0.5607459",
"0.5603566",
"0.5583053",
"0.55805284",
"0.55744946",
"0.5567143",
"0.5558097",
"0.5526249",
"0.5517381",
"0.55097693",
"0.55081207",
"0.55058813",
"0.55055803",
"0.54957604",
"0.54925823",
"0.548737",
"0.5482991",
"0.54777926",
"0.5470353",
"0.54680103",
"0.5459934",
"0.54489654",
"0.5448107",
"0.54427934",
"0.54422885",
"0.5433354",
"0.5432782",
"0.54308105",
"0.5425254",
"0.5424904",
"0.54237497",
"0.5415596",
"0.54126686",
"0.5412358",
"0.54123026",
"0.5411475",
"0.5408964",
"0.5387689",
"0.5387323",
"0.5378602",
"0.53756297",
"0.53706896",
"0.5368798",
"0.536359",
"0.5357649",
"0.5352011",
"0.53502655",
"0.5347204",
"0.5342798",
"0.5342459",
"0.5338137",
"0.53360283",
"0.5334738",
"0.5317331",
"0.53168917",
"0.5307105",
"0.529722",
"0.52940714",
"0.5291082",
"0.5285859",
"0.5283171",
"0.5280708",
"0.52752775",
"0.52741283",
"0.5271192",
"0.52686465",
"0.52624655",
"0.526107",
"0.5258865",
"0.5247681",
"0.5243008",
"0.52423996",
"0.52386296",
"0.5230708",
"0.52302086",
"0.5229403",
"0.52209926"
] | 0.59792966 | 6 |
Remove the first occurrence of an item. | public void remove( Object x )
{
LinkedListItr p = findPrevious( x );
if( p.current.next != null )
p.current.next = p.current.next.next; // Bypass deleted node
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Item removeFirst() {\n nextFirst = moveForward(nextFirst, 1);\n Item output = items[nextFirst];\n items[nextFirst] = null;\n size -= 1;\n return output;\n }",
"Object removeFirst();",
"public Item removeFirst() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[++firstCursor];\r\n items[firstCursor] = null;\r\n return result;\r\n }",
"public RNode deleteFirstOccurrence(int item) {\n\tif (item == datum() ) return next;\n\telse {\n\t if (next != null) next = next.deleteFirstOccurrence(item);\n\t return this;\n\t}\n }",
"public T removeFirst();",
"public E removeFirst();",
"public void removeFirst() \r\n\t{\r\n\t\tint position = 1;\r\n\t\tif ( this.isEmpty() || position > numItems || position < 1 )\r\n\t\t{\r\n\t\t\tSystem.out.print(\"This delete can not be performed \"+ \"an element at position \" + position + \" does not exist \" );\r\n\t\t}\r\n\t\tfor (int i=position-1; i< numItems-1; i++)\r\n\t\t\tthis.bookArray[i] = this.bookArray[i+1];\r\n\t\t\tthis.bookArray[numItems-1] = null;\r\n\t\t\tnumItems--;\r\n\t\t\tSystem.out.println(\"DELETED first book from the Array \\n\");\r\n\t\t\r\n\t\t\treturn ;\r\n\t}",
"public Item removeFirst() {\n if (!isEmpty()) {\n Item item = first.item;\n first = first.back;\n size--;\n if (size != 0)\n first.front = null;\n return item;\n } else throw new NoSuchElementException(\"?\");\n }",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else {\n first.pre = null;\n }\n len--;\n return item;\n }",
"public T removeFirst( ){\r\n\t\t//calls remove onfirst\r\n\t\tT toRemove = getFirst();\r\n\t\treturn remove(toRemove);\r\n\t}",
"public Item removeFirst() {\n\t\tif (count == 0) throw new NoSuchElementException();\n\t\tcount--;\n\t\tItem target = first.item;\n\t\tNode nextNode = first.next;\n\t\tfirst = null;\n\t\tif (count > 0) {\n\t\t\tfirst = nextNode;\n\t\t} \n\t\treturn target;\n\t}",
"public T removeFirst() {\n if (size == 0) {\n return null;\n }\n nextFirst = plusOne(nextFirst);\n size -= 1;\n T toRemove = items[nextFirst];\n items[nextFirst] = null;\n if (isSparse()) {\n resize(capacity / 2);\n }\n return toRemove;\n }",
"public Item removeFirst() {\n if (isEmpty())\n throw new NoSuchElementException();\n Item item = first.item;\n first = first.next;\n if (first != null)\n first.prev = null;\n else\n last = first;\n size--;\n return item;\n }",
"public Item removeFirst() {\n if (size == 0) {\n return null;\n } else if (size == 1) {\n StuffNode i = sentinel.next;\n sentinel.next = sentinel;\n sentinel.prev = sentinel;\n size -= 1;\n return i.item;\n } else {\n StuffNode i = sentinel.next;\n sentinel.next = i.next;\n i.next.prev = sentinel;\n size -= 1;\n return i.item;\n }\n }",
"public Item removeFirst() {\n if (this.isEmpty())\n throw new java.util.NoSuchElementException();\n\n Item ret = this.first.item;\n\n this.first = this.first.next;\n if (this.first != null)\n this.first.prev = null;\n else\n this.last = null;\n --this.n;\n\n return ret;\n }",
"public Item removeFirst() {\n if (first == null)\n throw new NoSuchElementException();\n \n final Item element = first.item;\n final Node<Item> next = first.next;\n first.item = null;\n first.next = null; // help GC\n first = next;\n if (next == null)\n last = null;\n else\n next.prev = null;\n size--;\n \n return element;\n }",
"public Item removeFirst() throws NoSuchElementException {\n checkDequeIsNotEmpty();\n\n Item item = first.item;\n first = first.next;\n size--;\n\n if (isEmpty()) {\n // to avoid loitering; first already points to null\n last = null;\n } else {\n first.prev = null;\n }\n return item;\n }",
"public void removefirst()\r\n {\r\n Item item = pre.item;\r\n pre = pre.next;\r\n n--;\r\n }",
"public Item removeFirst() {\n\t\tif (first == null) {\n\t\t\tthrow new java.util.NoSuchElementException();\n\t\t}\n\t\tItem temp = first.item;\n\t\tif (first == last) {\n\t\t\tlast = null;\n\t\t\tfirst = null;\n\t\t} else {\n\t\t\tfirst = first.next;\n\t\t\tfirst.previous = null;\n\t\t}\n\t\tsize--;\n\t\treturn temp;\n\t}",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Trying to remove an item from an empty deque.\");\n }\n\n Item item = first.item; // save item to return\n first = first.next; // delete first node\n if (first == null) {\n last = null;\n } else {\n first.previous = null;\n }\n size--;\n if (isEmpty()) {\n last = null;\n }\n assert check();\n return item; // return the saved item\n }",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n\n Node oldFirst = this.first;\n this.first = oldFirst.next;\n this.size--;\n\n if (this.size != 0) {\n this.first.prev = null;\n } else {\n this.last = null;\n }\n\n return oldFirst.item;\n }",
"public Item removeFirst() {\n Item val = deck[fFront];\n deck[fFront++] = null;\n return val;\n }",
"public Item removeFirst(){\n return this.doublyLinkedList.removeFirst();\n }",
"public Item removeFirst(){\r\n\t\tif (isEmpty()) throw new NoSuchElementException(\"Queue underflow\");\r\n\t\tItem tmp = list[first];\r\n\t\tlist[first++] = null;\r\n\t\tn--;\r\n\t\tprior=first-1;\r\n\t\tif(first==list.length){first=0;}\r\n\t\tif (n > 0 && n == list.length/4) resize(list.length/2); \r\n\t\treturn tmp;}",
"public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException();\n\n // Set the item to be returned to the item field of the first node\n Item item = headOfDeque.item;\n\n // If this is the last node - reset deque.\n if (lastNode()) {\n resetDeque();\n }\n else { // reassign head\n headOfDeque = headOfDeque.next;\n headOfDeque.previous = null;\n }\n\n dequeSize--;\n\n return item;\n }",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n Item item = head.item;\n if (size == 1) {\n tail = null;\n head = null;\n } else {\n Node<Item> nextHead = head.next;\n nextHead.prev = null;\n head = nextHead;\n }\n\n size--;\n return item;\n }",
"public T removeFirst() throws EmptyCollectionException;",
"public Item removeFirst() {\n if (isEmpty()) throw new NoSuchElementException(\"Removing from an empty deque\");\n Node<Item> tmpFirst = first;\n Item firstItem = tmpFirst.item;\n first = tmpFirst.next;\n size--;\n if (isEmpty()) last = null;\n else first.prev = null;\n return firstItem;\n }",
"public Item removeFirst(){\n\t\tif(isEmpty()){\n\t\t\tthrow new NoSuchElementException(\"Queue underflow\");\n\t\t}else{\n\t\t\t//save item to return\n\t\t\tItem returnItem = first.item;\n\t\t\t//delete first node\n\t\t\tfirst = first.next;\n\t\t\tn--;\n\t\t\tif(isEmpty()){\n\t\t\t\tlast = null; // to avoid loitering\n\t\t\t}else{\n\t\t\t\tfirst.prev = null;\n\t\t\t}\n\t\t\treturn returnItem;\n\t\t}\n\t}",
"public Item removeLast();",
"public T removeFirst() {\n return remove(sentinel.next);\n }",
"public Item removeFirst() {\n\t\tif (isEmpty()) {\n\t\t\tthrow new NoSuchElementException();\n\t\t}\n\t\tNode<Item> tmp = head;\n\t\thead = head.next;\n\t\tif (head == null) {\n\t\t\ttail = null;\n\t\t} else {\n\t\t\thead.prev = null;\n\t\t}\n\t\tN--;\n\t\ttmp.next = null;\n\t\treturn tmp.item;\n\t}",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"queue is empty\");\n }\n Item a;\n a = first.item;\n first = first.next;\n if (first == null) {\n last = null;\n }\n else first.prev = null;\n size--;\n return a;\n }",
"public Item removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Can not call removeFirst() on an empty deque\");\n }\n\n Item item = first.item;\n first = first.next;\n n--;\n if (isEmpty()) {\n last = null;\n }\n else {\n first.prev = null;\n }\n return item;\n\n }",
"public E removeFirst() {\n\n\t\tif (mSize == 0)\n\t\t\tthrow new NoSuchElementException();\n\n\t\tE retVal = remove(mHead.next);\n\n\t\tmSize--;\n\t\tmodCount++;\n\n\t\treturn retVal;\n\t}",
"public E removeFirst() {\n return pop();\n }",
"public Item removeFirst() {\n //check if the DList is empty or not:\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perform removeFirst() bacause the DList instance is empty!\");\n Node oldFirst = first.next;\n Item item = oldFirst.data; \n\n // pointer re-wiring:\n Node newFirst = oldFirst.next; \n first.next = newFirst;\n newFirst.prev = first;\n oldFirst.next = null;\n oldFirst.prev = null;\n\n // check if last pointer has to be updated or not (paying the peiper):\n if(isEmpty()) {\n last.prev = first; // update the last sentinel node to point to the first sentinel node\n }\n\n // update the size: \n size--;\n\n return item;\n }",
"public Item removeFirst() throws NoSuchElementException {\n if (isEmpty()) {\n throw new NoSuchElementException(\"Cannot remove first item from empty deque\");\n }\n if (size == 1) { //remove last item in deque of size 1\n Item item = head.getItem(); //item = item to be removed\n head = null;\n tail = null;\n return item;\n }\n Node n = head; //n = temporary Node\n head = head.getNext(); //assign 2nd node as new head, \"removing\" previous head from deque\n size--;\n return n.getItem();\n }",
"public Object removeFirst() {\r\n Object first = header.next.element;\r\n remove(header.next);\r\n return first;\r\n }",
"@Override\n public T removeFirst() {\n if (size == 0) {\n return null;\n }\n\n int position = plusOne(nextFirst);\n T itemToReturn = array[position];\n array[position] = null;\n nextFirst = position;\n size -= 1;\n\n if ((double)size / array.length < 0.25 && array.length >= 16) {\n resize(array.length / 2);\n }\n return itemToReturn;\n }",
"public final void removeFirst() {\n this.size--;\n setFirst((Node) ((Node) get()).get());\n }",
"public E removeFirst() {\n if(isEmpty()){\n return null;\n }else{\n return remove(header.getNext());\n }\n }",
"public Node removeFirst() {\r\n\t\treturn removeNode(0);\r\n\t}",
"public T removeFirst() {\n if (size == 0) {\n return null;\n }\n if (size == 1) {\n size--;\n return array[front];\n }\n this.checkReSizeDown();\n size--;\n front++;\n this.updatePointer();\n return array[Math.floorMod(front - 1, array.length)];\n }",
"@Override\n public E removeFirst() {\n if (isEmpty()) {\n throw new NoSuchElementException(\"No elements in dequeue\");\n }\n E value = dequeue[head];\n dequeue[head] = null;\n head = ++head % dequeue.length;\n size--;\n if (size < dequeue.length / 2) {\n reduce();\n }\n return value;\n }",
"public synchronized Object removeFirstElement() {\n return _queue.remove(0);\n }",
"@Override\r\n\tpublic boolean removeFirstOccurrence(Object o) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic E removeFirst() {\n\t\treturn null;\r\n\t}",
"@Override\n public E deleteMin()\n {\n return list.removeFirst();\n }",
"public E removeFirst() {\n\t\t// Bitte fertig ausprogrammieren:\n\t\treturn null;\n\t}",
"public Item removeStart() {\n if (size == 0) throw new NoSuchElementException(); // if there's no elements in circle\n else if (size == 1) return removeBreaker(); // if it's the last element\n else { // if there are two or more nodes in the circle\n Node temp = head; // saves the current head\n head = temp.next; // moves head marker\n temp.before.next = head;\n head.before = temp.before; // updates referances\n size--;\n return temp.item;\n }\n }",
"public synchronized DoubleLinkedListNodeInt removeFirst() {\n\t\tDoubleLinkedListNodeInt node = getFirst();\n\t\tif(node != null){\n\t\t\tnode.remove();\n\t\t}\n\t\treturn node;\n\t}",
"public U removeFirst(){\r\n\t \tif (getArraySize()==0)\r\n\t \t\tthrow new IndexOutOfBoundsException();\r\n\t \t//calls remove on first\r\n\t \treturn remove(0);\r\n\t }",
"private E unlinkFirst(Node<E> f) {\r\n // assert f == first && f != null;\r\n final E element = f.item;\r\n final Node<E> next = f.next;\r\n f.item = null;\r\n f.next = null; // help GC\r\n first = next;\r\n if (next == null)\r\n last = null;\r\n else\r\n next.prev = null;\r\n size--;\r\n modCount++;\r\n return element;\r\n }",
"default ItemStack removeOneItem() {\n return removeOneItem(StandardStackFilters.ALL);\n }",
"@Override\n\tpublic T remove(T removeItem) {\n\t\t// TODO\n\t\tT item;\n\t\tint index=indexOf(removeItem);\n\t\tif (index == -1) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\titem = data[index];\n\t\t\tfor(int j=index;j<size-1;j++)\n\t\t\t\tdata[j] = data[j+1];\n\t\t\tsize--;\n\t\t\treturn item;\n\t\t}\n\t\t// Find the removeItem in the array\n\t\t// return null if not found\n\t\t// First, Store the item found in a variable\n\t\t// shift the sequence element to the blank(adjust the array)\n\t\t// decrease size by 1\n\t\t// return the stored item\n\n\t}",
"public T removeFirst(){\n\tT ret = _front.getCargo();\n\t_front = _front.getPrev();\n\t_front.setNext(null);\n\t_size--;\n\treturn ret;\n }",
"public String removeFirst() {\n\t\treturn removeAt(0);\n\t}",
"public E removeFirst(){\r\n return null;\r\n }",
"public Object removeFirst(){\n if (first == null)\n throw new NoSuchElementException();\n Object element = first.data;\n first = first.next;\n return element ;\n }",
"public void remove(Item item) {\n for (int i = 0; i < items.length; i++) {\n if (items[i] == item) {\n items[i] = null;\n return;\n }\n }\n }",
"public T removeFront() {\n\t\tT found = start.value;\n\t\tstart = start.next;\n\t\treturn found;\n\t}",
"@Override\n public Item removeLast() {\n nextLast = moveBack(nextLast, 1);\n Item output = items[nextLast];\n items[nextLast] = null;\n size -= 1;\n return output;\n }",
"public void removeFirst() {\n\t\t\thead = head.next;\n\t\t}",
"public PersistentLinkedList<T> removeFirst() {\n return remove(0);\n }",
"public T removeFirst() {\r\n \r\n if (size == 0) {\r\n return null;\r\n }\r\n \r\n T deleted = front.element;\r\n front = front.next;\r\n size--;\r\n \r\n return deleted;\r\n }",
"public T removeFirst() \r\n {\r\n if (isEmpty()) throw new NoSuchElementException();\r\n Node<T> currFirst = sentinel.next;\r\n Node<T> toBeFirst = currFirst.next;\r\n T currFirstVal = currFirst.getValue();\r\n toBeFirst.prev = sentinel;\r\n sentinel.next = toBeFirst;\r\n currFirst = null;\r\n size--;\r\n return currFirstVal;\r\n }",
"public void removeItem(){\n\t\tthis.item = null;\n\t}",
"@Override\n public void deleteFirst() {\n if (this.isEmpty()){\n throw new IllegalStateException(\"List is empty\");\n }\n for (int j = 0; j < size - 1; j++){\n data[j] = data[j + 1];\n }\n data[size - 1] = null;\n size--;\n }",
"private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}",
"protected int removeFirst() throws Exception {\n if (size > 0) {\n int temp = heap[1];\n heap[1] = heap[size];\n heap[size] = 0;\n size--;\n return temp;\n } else {\n throw new Exception(\"No Item in the heap\");\n }\n }",
"public DataItem removeItem()\r\n\t{\r\n\t\tDataItem temp=itemArray[numItems-1];\r\n\t\titemArray[numItems-1]=null;\r\n\t\tnumItems--;\r\n\t\treturn temp;\r\n\t}",
"public Card removeFirstCard()\n {\n return cards.remove(0);\n }",
"public T removeFirst()\r\n {\r\n T removedData; // holds data from removed node\r\n\r\n if (numElements == 0)\r\n throw new NoSuchElementException(\r\n \"Remove attempted on empty list\\n\");\r\n removedData = front.data;\r\n front = front.next;\r\n if (numElements == 1)\r\n rear = null;\r\n \r\n numElements--;\r\n return removedData;\r\n }",
"public DataItem removeItem()\n\t{\n\t\tDataItem temp = itemArray[numItems-1];\n\t\titemArray[numItems-1] = null;\n\t\tnumItems--;\n\t\treturn temp;\n\t}",
"@Override\n public boolean remove(T item) {\n //find the node with the value\n Node n = getRefTo(item);\n //make sure it actually is in the set\n if(n == null)\n return false;\n //reassign the value from the first node to the removed node\n n.value = first.value;\n //take out the first node\n remove();\n return true;\n }",
"synchronized public V removeOne() {\n int i = 0;\n for (; i < keys.length; i++) {\n if (keys[i] == null || keys[i] == skip) {\n continue;\n }\n break;\n }\n if (i == keys.length) {\n return null;\n }\n return (V) remove(keys[i]);\n }",
"public Item deleteAtStart() { \t\n \tItem returnItem = head.item;\n \thead = head.next;\n \ttail.next = head;\n \tsize--;\n \treturn returnItem;\n }",
"final void deleteFirst(int elt) {\n if (contents != null && n >= 0 && n <= contents.length){\n int[] new_contents;\n //@ loop_invariant (i <= n);\n for (int i = 0; i < n; i++) {\n if (contents[i] == elt) {\n n--;\n new_contents = new int[contents.length];\n arraycopy(contents, 0, new_contents, 0, i);\n arraycopy(contents, i+1, new_contents, i, n-i);\n contents = new_contents;\n return;\n }\n }\n }\n }",
"@Override\n\tpublic void pop() {\n\t\tlist.removeFirst();\n\t}",
"private T unlinkFirst(final int idx) {\r\n\t\tfinal T element = serializer.getRandomAccess(idx);\r\n\t\tfinal int next = getNextPointer(idx);\r\n\t\tfirst = next;\r\n\t\tif (next == -1) {\r\n\t\t\tlast = -1;\r\n\t\t} else {\r\n\t\t\tsetPrevPointer(next, -1);\r\n\t\t}\r\n\t\tdeleteElement(idx);\r\n\t\tsize--;\r\n\t\tmodCount++;\r\n\t\treturn element;\r\n\t}",
"public void deleteFirst() {\r\n\t\tif(isEmpty()) return;\r\n\t\thead = head.next;\r\n\t}",
"T removeFromHead() {\n if (this.size() == 0) {\n throw new RuntimeException(\"Cannot remove from an empty list\");\n }\n return header.removeFromHead();\n }",
"Node removeFirst() {\n\t\tNode tmp = head;\n\t\thead = head.next;\n\t\treturn tmp;\n\t}",
"public Item takeItem(int index) {\n return items.remove(index);\n }",
"public E removeFirst() throws NoSuchElementException{\n if(size == 0)\n throw new NoSuchElementException();\n else{\n E removedElement = head.getNext().getElement();\n head.setNext(head.getNext().getNext());\n head.getNext().setPrevious(head);\n size--;\n return removedElement;\n }\n }",
"public void removeFirst(){\r\n\t\tNode removedHead = head;\r\n\t\thead = head.next;\r\n\t\tremovedHead = null;\r\n\t}",
"@Override\n public E remove(int index) {\n\t E first = _store[index];\n\t _store[index] = null;\n\t for( int i = index; i< _size-1;i++) {\n\t\t _store[i]=_store[i+1];\n\t }\n\t_store[_size-1]=null;\n\t _size -=1;\n\t \n\t\t \n\treturn first;\n }",
"default ItemStack removeOneItem(Predicate<ItemStack> filter) {\n for (IInventoryAdapter inventoryObject : this) {\n InventoryManipulator im = InventoryManipulator.get(inventoryObject);\n ItemStack stack = im.removeItem(filter);\n if (!InvTools.isEmpty(stack))\n return stack;\n }\n return InvTools.emptyStack();\n }",
"public Object removeFirst() {\n if(head == null) return null;\n if(head.getNext() == null) {\n Object temp = head.getElement();\n head = tail = null;\n return temp;\n }\n\n Object temp = head.getElement();\n Node n = head.getNext();\n n.setPrevious(null);\n head = n;\n\n return temp;\n }",
"@Override\n public void removeFirstObjectInAdapter() {\n Log.d(\"LIST\", \"removed object!\");\n rowItem.remove(0);\n arrayAdapter.notifyDataSetChanged();\n }",
"public Item removeLast() {\n Item last = items[size];\n items[size] = null;\n size -= 1;\n return last;\n }",
"@Override\n public int remove() {\n isEmptyList();\n int result = first.value;\n first = first.next;\n first.previous = null;\n size--;\n return result;\n }",
"public void popFirst() {\n this.head = this.head.next;\n this.length--;\n }",
"private E removeFirst ()\n {\n Node<E> temp = head;\n if (head != null) {\n head = head.next;\n size--;\n return temp.data;\n }\n else\n return null;\n }",
"private E remove(){\n E tmp = array[0];\n swap(0,--lastPosition);\n array[lastPosition] = null;\n trickleDown(0);\n array = Arrays.copyOfRange(array,0,array.length);\n return tmp;\n }",
"public void deleteFirst() {\r\n\t\tif(isEmpty()) return;\r\n\t\t// if there is only element in the Deque, then deleting it will make front and rear point to invalid positions again\r\n\t\telse if( rear==front) front = rear = -1;\r\n\t\t// else increment the front pointer\r\n\t\telse front = (front+1)%maxSize;\r\n\t}",
"@Override\n public T remove() {\n //make sure there is something in the set\n if (first == null)\n return null;\n //make a reference to the data in the first node, then\n //update the reference to the second node\n T val = first.value;\n first = first.next;\n //return the data\n numItems--;\n return val;\n }",
"public Item removeLast() {\r\n if (isEmpty()) {\r\n throw new NoSuchElementException();\r\n }\r\n Item result = items[--lastCursor];\r\n items[lastCursor] = null;\r\n return result;\r\n }",
"public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}",
"public TypeHere removeLast() {\n TypeHere x = getLast();\n items[size - 1] = null;\n size -= 1; \n return x;\n }"
] | [
"0.8124812",
"0.77813673",
"0.7642432",
"0.7637581",
"0.75555396",
"0.74784",
"0.73648924",
"0.73228943",
"0.73153096",
"0.72929865",
"0.7280261",
"0.7173665",
"0.7112929",
"0.7095792",
"0.70660245",
"0.7061142",
"0.70455295",
"0.70293605",
"0.7020801",
"0.7019287",
"0.7018162",
"0.69885844",
"0.6962311",
"0.6952167",
"0.69414717",
"0.69205064",
"0.69153464",
"0.6888899",
"0.68809426",
"0.68736273",
"0.6873345",
"0.68639904",
"0.6855562",
"0.6848966",
"0.6823511",
"0.6804492",
"0.68043613",
"0.68027943",
"0.67712253",
"0.67635274",
"0.6748336",
"0.66807663",
"0.6667777",
"0.6662952",
"0.66575295",
"0.6652652",
"0.66344815",
"0.66200006",
"0.6606351",
"0.65654105",
"0.65371984",
"0.65333796",
"0.6506876",
"0.6495856",
"0.6481889",
"0.6468966",
"0.6457533",
"0.6443458",
"0.64428467",
"0.6440611",
"0.6421414",
"0.64012337",
"0.6392922",
"0.63658726",
"0.63216925",
"0.63206726",
"0.6315578",
"0.63111246",
"0.63011795",
"0.62832177",
"0.62801445",
"0.6277679",
"0.6271955",
"0.62517625",
"0.62452126",
"0.6244223",
"0.62335503",
"0.6230991",
"0.62292194",
"0.6208788",
"0.6201762",
"0.6200839",
"0.6198725",
"0.619079",
"0.61451507",
"0.6140388",
"0.61378974",
"0.6128169",
"0.61268157",
"0.6120182",
"0.6118692",
"0.6117392",
"0.6110761",
"0.6104049",
"0.6094724",
"0.6086289",
"0.60824776",
"0.6069592",
"0.60676754",
"0.60581946",
"0.60557765"
] | 0.0 | -1 |
Get the conent by type | public Integer getRandomIndexByType(int type){
Random randomGenerator = new Random();
newContent.clear();
for(int i = 0; i<this.type.size(); i++)
{
if(this.type.get(i) == type) {
newContent.add(this.content.get(i));
}
}
Integer index = randomGenerator.nextInt(newContent.size());
return index;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String getType() {\n\t\treturn \"Concert\";\r\n\t}",
"private Acao.Tipo getTipo(String tipo) {\n if (tipo.contentEquals(DISPARO.getName())) {\n return DISPARO;\n }\n\n if (tipo.contentEquals(DESCONEXAO.getName())) {\n return DESCONEXAO;\n }\n\n return null;\n }",
"Object getTipo();",
"Act getCDAType();",
"Collaboration getType();",
"public String getConvention(String type) {\n\t\t\treturn conventions.get(type);\n\t\t}",
"@Override\n public String getCondimentType() {\n return TYPE;\n }",
"public Conge find( Integer idConge ) ;",
"private ClusterConstraints getConstraintsInstance(ConstraintType type) {\n ClusterConstraints constraints = _constraintMap.get(type);\n if (constraints == null) {\n constraints = new ClusterConstraints(type);\n _constraintMap.put(type, constraints);\n }\n return constraints;\n }",
"public Kind findByType(String type) {\n\t\tString hql=\"from Kind k where k.type=:type\";\n\t\tKind kind = sessionFactory.getCurrentSession().createQuery(hql,Kind.class).setParameter(\"type\", type).uniqueResult();\t\t\n\t\treturn kind;\n\t}",
"public ConditionConnectiveType getType() {\n\t\treturn type;\n\t}",
"cb.Careerbuilder.Company.PhoneType getType();",
"public String getcType() {\n return cType;\n }",
"public String getCocType() {\n\t\treturn cocType;\n\t}",
"im.turms.common.constant.ChatType getChatType();",
"public String tipoConta() {\n return \"Conta Comum\";\n }",
"PartyType getConsignorParty();",
"Optional<Type> buscarPorType(String type);",
"public Component getComponent(Class type) {\n for (Component component : components) {\n if (component.getClass().equals(type)) {\n return component;\n }\n }\n return null;\n }",
"public String getCtype() {\n return ctype;\n }",
"private String getType(){\r\n return type;\r\n }",
"String getConvention(String type) {\n\t\tfor (int i = scopeStack.size() - 1; i >= 0; i--) {\n\t\t\tScope scope = scopeStack.elementAt(i);\n\t\t\tString prefix = scope.getConvention(type);\n\t\t\tif (prefix != null) return prefix;\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"@Override\n\tpublic ArrayList<Coupon> getCouponByType(Coupon.CouponType type, Company c) throws CouponSystemException {\n\t\tConnection con = cp.getConnection(); // Get the connection\n\n\t\tCoupon coup = new Coupon();\n\t\tArrayList<Coupon> couponList = new ArrayList<>();\n\t\ttry (Statement st = con.createStatement();\n\t\t\t\tResultSet rs = st.executeQuery(\n\t\t\t\t\t\t\"SELECT coupon.* from company_coupon right join coupon on company_coupon.coupon_id = coupon.id where company_coupon.comp_id=\"\n\t\t\t\t\t\t\t\t+ c.getId() + \"and type= '\" + type + \"'\")) {\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tcoup = new Coupon(rs.getString(2), rs.getDate(3), rs.getDate(4), rs.getInt(5),\n\t\t\t\t\t\tCoupon.CouponType.valueOf(rs.getString(6)), rs.getString(7), rs.getDouble(8), rs.getString(9));\n\t\t\t\tcoup.setId(rs.getLong(1));\n\t\t\t\tcouponList.add(coup);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tthrow new CouponSystemException(\"can not read the coupons\", e);\n\t\t} finally {\n\t\t\tcp.returnConnection(con); // return the connection to the Connection pool\n\t\t}\n\t\treturn couponList;\n\t}",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"String getType();",
"CatType catType();",
"public CIType getType() {\r\n\t\treturn type;\r\n\t}",
"abstract ContentType getContnentType();",
"public int getType() { return type; }",
"public int getType() { return type; }",
"public String getType() {\n\t\t\n\t\tif(this instanceof Friend_Connection) {\n\t\t\treturn \"[FRIEND]\";\n\t\t\t\n\t\t}else if(this instanceof Couple_Connection){\n\t\t\treturn \"[COUPLE]\";\n\t\t\n\t\t}else if(this instanceof Parent_Connection) {\n\t\t\treturn \"[RELATIVE]\";\n\t\t\n\t\t}else if(this instanceof Colleagues_Connection) {\n\t\t\treturn \"[COLLEAGUE]\";\n\t\t\n\t\t}else if(this instanceof Classmates_Connection) {\n\t\t\treturn \"[CLASSMATE]\";\n\t\t}else {\n\t\t\treturn \"\";\n\t\t}\n\t\t\n\t}",
"Concierto createConcierto();",
"Food getByType(String type);",
"public Collection<Coupon> getCouponByType(CouponType type) throws DbException;",
"Object getConref();",
"TypeAssociation getAssocieCommeSujetInstanceObjet();",
"java.lang.String getSubType();",
"public TYPE getType(){\n return this.type;\n }",
"public String getType() {return type;}",
"public String getType() { return type; }",
"public String getTipo();",
"public String getTipo();",
"<T extends Component> Optional<T> getExactComponent(Class<T> type);",
"ConfigCategory getCategoryOfTypeAndCode(String typeConstant, String categoryCode);",
"public Concert getConcert(Concert concert){\n\t\tif(concerts.isEmpty() || concerts == null) return null;\n\t\tint index = concerts.indexOf(concert);\n\t\tif(index == -1) return null;\n\t\treturn concerts.get(index);\n\t}",
"public int getType(){\n return type;\n }",
"public ConnectionType getConnectionType(){\n\t return connectionType; \n }",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"int getType();",
"public CWLType getType() {\n return type;\n }",
"private int getTipo(String _type) {\n\t\tif (_type.equals(TAG_CELL_TYPE_EMPTY)) {\n\t\t\treturn TAG_C_VUOTA;\n\t\t}\n\t\tif (_type.equals(TAG_CELL_TYPE_OPTION)) {\n\t\t\treturn TAG_C_SCELTA;\n\t\t}\n\t\tif (_type.equals(TAG_CELL_TYPE_EFFECT)) {\n\t\t\treturn TAG_C_EFFETTO;\n\t\t}\n\t\tif (_type.equals(TAG_CELL_TYPE_END)) {\n\t\t\treturn TAG_C_FINALE;\n\t\t}\n\t\tif (_type.equals(TAG_CELL_TYPE_LOOT)) {\n\t\t\treturn TAG_C_LOOT;\n\t\t}\n\t\tif (_type.equals(TAG_CELL_TYPE_GATE)) {\n\t\t\treturn TAG_C_GATE;\n\t\t}\n\t\treturn TAG_C_VUOTA;\n\t}",
"public String getType(){\r\n return type;\r\n }",
"public int getType() { \n return type; \n }",
"public DatabaseReference getRef(String type) {\n return db.getReference(type);\n }",
"private EntityCocoon getConsumableCocoon()\n\t{\n\t\tfinal List<Entity> nearbyCocoons = RadixLogic.getAllEntitiesOfTypeWithinDistance(EntityCocoon.class, this, 5);\n\t\tEntityCocoon nearestCocoon = null;\n\t\tdouble lowestDistance = 100D;\n\n\t\tfor (final Entity entity : nearbyCocoons)\n\t\t{\n\t\t\tEntityCocoon cocoon = (EntityCocoon)entity;\n\t\t\tfinal double distanceToCurrentEntity = RadixMath.getDistanceToEntity(this, cocoon);\n\n\t\t\tif (!cocoon.isEaten() && distanceToCurrentEntity < lowestDistance)\n\t\t\t{\n\t\t\t\tlowestDistance = distanceToCurrentEntity;\n\t\t\t\tnearestCocoon = cocoon;\n\t\t\t}\n\t\t}\n\n\t\treturn nearestCocoon;\n\t}",
"public String getType(){\n return this.type;\n }",
"public String getType(){\n \treturn this.type;\n }",
"protected Algorithm getAlgorithm(char type) {\n\t\tfor (int i = 0; i < algorithms.size(); ++i)\n\t\t\tif (algorithms.get(i).getType() == type)\n\t\t\t\treturn algorithms.get(i);\n\t\treturn null;\n\t}",
"Coding getType();",
"public int getType() {\n return type;\n }",
"TypeAssociation getAssocieCommeObjetAdresse();",
"type getType();",
"protected int getType() {\n return MenuBrawable.CONVEX;\n }",
"@Nullable ConnectionPointType getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();",
"public String getType();"
] | [
"0.63419604",
"0.60253316",
"0.5992642",
"0.5979966",
"0.5923641",
"0.59140724",
"0.5912702",
"0.5867254",
"0.5810114",
"0.5745841",
"0.56737447",
"0.5660343",
"0.5657048",
"0.56316316",
"0.55868375",
"0.55831116",
"0.5574545",
"0.55485857",
"0.55132645",
"0.5507623",
"0.55022293",
"0.54823387",
"0.54698235",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.54516697",
"0.5446789",
"0.544535",
"0.54415363",
"0.54380167",
"0.54380167",
"0.5437377",
"0.5430084",
"0.54248637",
"0.5421841",
"0.5420335",
"0.5409101",
"0.5391523",
"0.53814286",
"0.5375646",
"0.53735626",
"0.5352491",
"0.5352491",
"0.53460073",
"0.53382576",
"0.5337987",
"0.53254545",
"0.531657",
"0.5315493",
"0.5315493",
"0.5315493",
"0.5315493",
"0.5315493",
"0.5315493",
"0.5315493",
"0.5315493",
"0.53070676",
"0.5304789",
"0.5304746",
"0.5300474",
"0.52965814",
"0.52764285",
"0.52743894",
"0.52712536",
"0.5261172",
"0.5253253",
"0.5250058",
"0.52441317",
"0.5238213",
"0.5236886",
"0.52352107",
"0.52349794",
"0.52349794",
"0.52349794",
"0.52349794",
"0.52349794",
"0.52349794",
"0.52349794",
"0.52349794"
] | 0.0 | -1 |
Get a message from file by index | public String getNotiContent(int index){
return content.get(index);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Res.Msg getMsg(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"io.dstore.engine.Message getMessage(int index);",
"public synchronized Message get (int index) {\n return list.get(index);\n }",
"Rsp.Msg getMsg(int index);",
"long getMessageId(int index);",
"public String getMessageAt(int i){\n return message[i];\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.Message getMessage(int index) {\n return message_.get(index);\n }",
"public Msg getMsg(int index) {\n return instance.getMsg(index);\n }",
"public Msg getMsg(int index) {\n return instance.getMsg(index);\n }",
"main.java.io.grpc.chatservice.Message getMessages(int index);",
"public com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index) {\n if (entryBuilder_ == null) {\n return entry_.get(index);\n } else {\n return entryBuilder_.getMessage(index);\n }\n }",
"public Msg getMsg(int index) {\n return msg_.get(index);\n }",
"public Msg getMsg(int index) {\n return msg_.get(index);\n }",
"public ChatMessage getItem(int index) \n\t{\n\t\treturn this.messages.get(index);\n\t}",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.Message getMessage(int index) {\n if (messageBuilder_ == null) {\n return message_.get(index);\n } else {\n return messageBuilder_.getMessage(index);\n }\n }",
"io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index);",
"io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index);",
"io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index);",
"io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index);",
"io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index);",
"public String getMessage(int index) {\n return text.get(index);\n }",
"public entities.Torrent.FileInfo getFileInfo(int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index);\n } else {\n return fileInfoBuilder_.getMessage(index);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n public synchronized MessageReference getMessageByIndex(int index) throws NoSuchMessageException {\n \tfinal Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this).identity();\n q.descend(\"mMessageIndex\").constrain(index);\n final ObjectSet<MessageReference> result = q.execute();\n \n switch(result.size()) {\n \t case 1:\n \t \tfinal MessageReference ref = result.next();\n \t \tref.initializeTransient(mFreetalk);\n \t \treturn ref;\n \t case 0:\n \t throw new NoSuchMessageException();\n \t default:\n \t \tthrow new DuplicateMessageException(\"index \" + Integer.toString(index));\n }\n }",
"@Override\n public String getMessage(int index) {\n if (index >= messages.size() || index < 0)\n throw new IllegalArgumentException(\"There is no message with the given index\");\n return messages.get(index);\n }",
"java.lang.String getContents(int index);",
"public entities.Torrent.FileInfo getFiles(int index) {\n if (filesBuilder_ == null) {\n return files_.get(index);\n } else {\n return filesBuilder_.getMessage(index);\n }\n }",
"entities.Torrent.FileInfo getFileInfo(int index);",
"com.polytech.spik.protocol.SpikMessages.Sms getMessages(int index);",
"public int getIndex() {\n \treturn mMessageIndex;\n }",
"public EventLogMessageEntry getEventLogMessage(int index);",
"com.google.protobuf.ByteString getContentsBytes(int index);",
"public long getMessageId(int index) {\n return instance.getMessageId(index);\n }",
"public String getRecord(int index) {\r\n\t\tString record = \"\";\r\n\t\tif (index<fileRecords.size() && index>-1) {\r\n\t\t\trecord = fileRecords.get(index);\r\n\t\t}\r\n\t\telse {\r\n\t\t\t/*\r\n\t\t\t * TODO\r\n\t\t\t * Error: index out of bounds\r\n\t\t\t */\r\n\t\t}\r\n\t\treturn record;\r\n\t}",
"public if4031.common.Message getMessages(int index) {\n return messages_.get(index);\n }",
"entities.Torrent.FileInfo getFiles(int index);",
"double getFile(int index);",
"byte[] readPiece(int index){\n return Arrays.copyOfRange(file_pieces,index*piece_size,piece_size*(index+1)-1);\n }",
"String get(int index);",
"public String readLine(int index, String filePath){\n String lineData = \"\";\n try{\n File myFile = new File(filePath);\n Scanner myReader = new Scanner(myFile);\n for(int i = 0; i < index; i++){\n myReader.nextLine();\n }\n lineData = myReader.nextLine();\n myReader.close();\n } catch(FileNotFoundException e) {\n System.out.println(\"An error occurred.\");\n e.printStackTrace();\n }\n return lineData;\n }",
"public void readMessagesFromFile(File msgFile) throws Exception{ \n /** Using BufferedReader and FileReader to read the message from the File*/\n BufferedReader message = new BufferedReader(new FileReader(msgFile));\n String text;\n String[] textMessage = new String[messages.length];\n /** Using while loop to copy the messages from the file to the textMessage array*/\n while((text = message.readLine()) != null){\n textMessage[msgCount] = text;\n msgCount +=1;\n if(msgCount==9){\n break;\n }\n }\n /** For loop to split the String into two parts */\n for (int i = 0; i< msgCount; ++i){\n String[] parts = textMessage[i].split(\" \",2);\n messages[i] = new TextMessage(parts[0],parts[1]);\n }\n if (msgCount<messages.length){\n for (int m = msgCount; m<messages.length; ++m){\n messages[m] = new TextMessage(null,null);\n }\n }\n message.close();\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n return message_.get(index);\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n return message_.get(index);\n }",
"com.google.protobuf.ByteString getResponse(int index);",
"public if4031.common.Message getMessages(int index) {\n if (messagesBuilder_ == null) {\n return messages_.get(index);\n } else {\n return messagesBuilder_.getMessage(index);\n }\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n if (messageBuilder_ == null) {\n return message_.get(index); } else {\n return messageBuilder_.getMessageOrBuilder(index);\n }\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n if (messageBuilder_ == null) {\n return message_.get(index); } else {\n return messageBuilder_.getMessageOrBuilder(index);\n }\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n if (messageBuilder_ == null) {\n return message_.get(index); } else {\n return messageBuilder_.getMessageOrBuilder(index);\n }\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n if (messageBuilder_ == null) {\n return message_.get(index); } else {\n return messageBuilder_.getMessageOrBuilder(index);\n }\n }",
"public io.dstore.engine.MessageOrBuilder getMessageOrBuilder(\n int index) {\n if (messageBuilder_ == null) {\n return message_.get(index); } else {\n return messageBuilder_.getMessageOrBuilder(index);\n }\n }",
"public String getAttachFileByIndex(int index){\n\t\treturn attachName.get(index);\n\t}",
"public entities.Torrent.FileInfoOrBuilder getFileInfoOrBuilder(\n int index) {\n if (fileInfoBuilder_ == null) {\n return fileInfo_.get(index); } else {\n return fileInfoBuilder_.getMessageOrBuilder(index);\n }\n }",
"java.lang.String getSourceFile(int index);",
"static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c = st.nextToken();\r\n\t\t index = Integer.parseInt(c);\r\n\t\t c = st.nextToken();\r\n\t\t code = Integer.parseInt(c);\r\n\t\t \t\tSystem.out.println(\"ClientMessageReader: il codice del messaggio ricevuto è \"+code);\r\n\t\t \t//\t||(code == Parameters.START_PLAYBACK) \r\n\t\t if((code == Parameters.START_OFF)|| (code == Parameters.FILES_RESPONSE))\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t }\r\n\t\t if(code == Parameters.CONFIRM_REQUEST)\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t\t \t\t\tSystem.out.println(\"CONFIRM_REQUEST firstParam: \"+firstParam);\r\n\t\t }\r\n\t }",
"public static int readIntFromIndex(File file, String index) {\n if(!file.exists()) return -1;\n String[] lines = getFileLines(file);\n for(String line : lines) {\n if(line.startsWith(index)) {\n line = line.replace(index,\"\");\n try{\n return Integer.parseInt(line);\n } catch (Exception e) { //continues looking for another index\n e.printStackTrace();\n ZmdbLogger.log(\"Unable to get integer from index \" + index + \" from file \" + file.getPath() + \". Continuing to look for another index.\");\n }\n }\n }\n //if nothing was found or Integer.parseInt failed\n return -1;\n }",
"public static String seekIndex(File indexFile ,int authorid)\n\t{\n\t\tString index = \"\";\n\t\tString line = \"\";\n\t\tString id = \"\";\n\t\tBufferedReader reader = null;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(indexFile.getAbsolutePath()));\n\t\t\twhile((line=reader.readLine())!=null)\n\t\t\t{\n\t\t\t\tid = line.split(\" \")[0];\n\t\t\t\tif(!id.equals(String.valueOf(authorid)))\n\t\t\t\t\tcontinue;\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tindex = line;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\n\t\t\treader.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\treturn index;\n\t}",
"com.google.devtools.kythe.proto.Analysis.FileInfo getEntry(int index);",
"protected abstract int readInternal(int index);",
"public String getString(int index) throws IOException {\n\t\t\tInputStream in = newInputStream(index);\n\t\t\treturn in != null ? inputStreamToString(in) : null;\n\t\t}",
"public long getMessageId(int index) {\n return messageId_.getLong(index);\n }",
"public entities.Torrent.FileInfoOrBuilder getFilesOrBuilder(\n int index) {\n if (filesBuilder_ == null) {\n return files_.get(index); } else {\n return filesBuilder_.getMessageOrBuilder(index);\n }\n }",
"@Override\r\n\tpublic List<ChatMessageModel> getMessages(int messageIndex) {\n\t\treturn null;\r\n\t}",
"public ChatMessage getItem(int index) {\n return this.chatMessageList.get(index);\n }",
"main.java.io.grpc.chatservice.MessageOrBuilder getMessagesOrBuilder(\n int index);",
"public com.google.devtools.kythe.proto.Analysis.FileInfoOrBuilder getEntryOrBuilder(\n int index) {\n if (entryBuilder_ == null) {\n return entry_.get(index); } else {\n return entryBuilder_.getMessageOrBuilder(index);\n }\n }",
"public String get(int index){\n\t\treturn list.get(index);\n\t}",
"public String getFileSource(int index) {\n\t\tFile f = openFiles.get(index); \n\t\tString path = f.getAbsolutePath();\n\t\tint last = path.lastIndexOf('/');\n\t\tString pathSimple = path.substring(0, last+1);\n\t\t\n\t\treturn pathSimple;\t\n\t}",
"public String getString(int index);",
"public DataFile getDataFileAtIndex(int index){\n return data.get(index).getDataFile();\n }",
"com.google.protobuf.ByteString getCached(int index);",
"public int findBeginSendEntryIndex(long messageId);",
"pb4client.TransportRequest getReq(int index);",
"public ITCMessage[] readMessages(int inNumberMessages) throws IOException;",
"public MetadataEntry getMetadata(int index) {\n if (metadataBuilder_ == null) {\n return metadata_.get(index);\n } else {\n return metadataBuilder_.getMessage(index);\n }\n }",
"@Override\n\tpublic String getElementAt(int index) {\n\t\tif (index < contents.length)\n\t\t\treturn contents[index++];\n\t\telse\n\t\t\treturn null;\n\t}",
"PCommon_Base.CommonBase.NetTransferMsg getNetTransferMsgs(int index);",
"public E get(int index)\n\t{\n\t\treturn contents[index];\n\t}",
"public void testIndices() throws StorageFileException, IOException {\n\t\tConversation conv = Conversation.createConversation();\r\n\t\tMessageData msg = MessageData.createMessageData(conv);\r\n\t\r\n\t\t// indexMessageParts\r\n\t\ttry {\r\n\t\t\tmsg.setIndexMessageParts(0x0100000000L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmsg.setIndexMessageParts(-1L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t\r\n\t\t// indexPrev\r\n\t\ttry {\r\n\t\t\tmsg.setIndexPrev(0x0100000000L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t\r\n\t\ttry {\r\n\t\t\tmsg.setIndexPrev(-1L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t\r\n\t\t// indexNext\r\n\t\ttry {\r\n\t\t\tmsg.setIndexNext(0x0100000000L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t\r\n\t\ttry {\r\n\t\t\tmsg.setIndexNext(-1L);\r\n\t\t\tassertTrue(false);\r\n\t\t} catch (IndexOutOfBoundsException ex) {\r\n\t\t}\r\n\t}",
"PACKET getIndex(int index);",
"public synchronized BodyPart getBodyPart(int index) throws MessagingException {\n/* 257 */ parse();\n/* 258 */ return super.getBodyPart(index);\n/* */ }",
"com.google.protobuf.ByteString getData(int index);",
"com.google.protobuf.ByteString getData(int index);",
"public com.rpg.framework.database.Protocol.Item getItems(int index) {\n if (itemsBuilder_ == null) {\n return items_.get(index);\n } else {\n return itemsBuilder_.getMessage(index);\n }\n }",
"com.google.cloud.dialogflow.cx.v3beta1.ResponseMessage getMessages(int index);",
"public TransmissionProtocol.Request getRequest(int index) {\n if (requestBuilder_ == null) {\n return request_.get(index);\n } else {\n return requestBuilder_.getMessage(index);\n }\n }",
"java.lang.String getFileNames(int index);"
] | [
"0.7004804",
"0.69117886",
"0.69117886",
"0.69117886",
"0.69117886",
"0.69117886",
"0.6766431",
"0.6673877",
"0.6544813",
"0.6488643",
"0.6473983",
"0.6473983",
"0.6473983",
"0.6473983",
"0.6473983",
"0.6470233",
"0.6470233",
"0.6466554",
"0.6429158",
"0.6404653",
"0.6404653",
"0.62873864",
"0.62203383",
"0.62203383",
"0.62203383",
"0.62203383",
"0.62203383",
"0.61813885",
"0.61813885",
"0.61813885",
"0.61813885",
"0.61813885",
"0.6164753",
"0.6159667",
"0.61172724",
"0.61078584",
"0.610622",
"0.6093521",
"0.60795665",
"0.5986044",
"0.59856015",
"0.5978309",
"0.5952461",
"0.5914189",
"0.58676016",
"0.58629525",
"0.58545774",
"0.58278596",
"0.58217347",
"0.5767176",
"0.57416695",
"0.5693054",
"0.56555194",
"0.56555194",
"0.56555194",
"0.56555194",
"0.56555194",
"0.56417704",
"0.56085026",
"0.55999106",
"0.55999106",
"0.55999106",
"0.55999106",
"0.55999106",
"0.5598787",
"0.55838615",
"0.5571285",
"0.5570046",
"0.55426604",
"0.55384463",
"0.5537502",
"0.55243915",
"0.5511381",
"0.5509699",
"0.5507317",
"0.5495506",
"0.5483684",
"0.5481154",
"0.54810274",
"0.5474042",
"0.5471607",
"0.5463425",
"0.5457792",
"0.5452555",
"0.5451693",
"0.5439136",
"0.54289037",
"0.54267764",
"0.5423768",
"0.54134834",
"0.5412934",
"0.54087645",
"0.5397878",
"0.5394925",
"0.5390178",
"0.5390178",
"0.53810453",
"0.53808933",
"0.537789",
"0.5372325"
] | 0.5582563 | 66 |
Get message from file by random type | public String getContentByArrayTypeRandom(int...type){
ArrayList<String> arrayMessage = new ArrayList<String>();
Random randomGenerator = new Random();
for (int j = 0; j<type.length; j++){
for(int i = 0; i<this.type.size(); i++)
{
if(this.type.get(i) == type[j]) {
arrayMessage.add(this.content.get(i));
}
}
}
int index = randomGenerator.nextInt(arrayMessage.size());
String message = arrayMessage.get(index);
info("Message is: "+message);
return message;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getAttachFileByArrayTypeRandom(int...type){\n\t\tArrayList<String> arrayAttachFile = new ArrayList<String>();\n\t\tRandom randomGenerator = new Random();\n\t\tfor (int j = 0; j<type.length; j++){\n\t\t\tfor(int i = 0; i<this.type.size(); i++)\n\t\t\t{\t\n\t\t\t\tif(this.type.get(i) == type[j]) {\n\t\t\t\t\tarrayAttachFile.add(this.attachName.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint index = randomGenerator.nextInt(arrayAttachFile.size());\n\t\tString attachFile = arrayAttachFile.get(index);\n\t\tinfo(\"AttachFile is: \"+attachFile);\n\t\treturn attachFile;\n\t}",
"public String getAttachFileRandom(){\n\t\tRandom randomGenerator = new Random();\n\t\tint index = randomGenerator.nextInt(this.attachName.size());\n\t\tString attachFile = this.attachName.get(index);\n\t\treturn attachFile;\n\t}",
"String getMessageMimeType(String msgId);",
"com.example.cs217b.ndn_hangman.MessageBuffer.Messages.MessageType getType();",
"private static String getRandomType(){\r\n int index = r.nextInt(typeOfRooms.length);\r\n return typeOfRooms[index];\r\n }",
"private String generateAnswer() throws IOException {\n int j = lineNumber();\n int i = 0;\n String result = \"\";\n Random rnd = new Random();\n int rndNumber = rnd.nextInt(j);\n File answers = new File(this.settings.getValue(\"botAnswerFile\"));\n try (RandomAccessFile raf = new RandomAccessFile(answers, \"r\")) {\n while (raf.getFilePointer() != raf.length()) {\n result = raf.readLine();\n i++;\n if ((i - 1) == rndNumber) {\n break;\n }\n }\n }\n return result;\n }",
"static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c = st.nextToken();\r\n\t\t index = Integer.parseInt(c);\r\n\t\t c = st.nextToken();\r\n\t\t code = Integer.parseInt(c);\r\n\t\t \t\tSystem.out.println(\"ClientMessageReader: il codice del messaggio ricevuto è \"+code);\r\n\t\t \t//\t||(code == Parameters.START_PLAYBACK) \r\n\t\t if((code == Parameters.START_OFF)|| (code == Parameters.FILES_RESPONSE))\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t }\r\n\t\t if(code == Parameters.CONFIRM_REQUEST)\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t\t \t\t\tSystem.out.println(\"CONFIRM_REQUEST firstParam: \"+firstParam);\r\n\t\t }\r\n\t }",
"public String getRandomExistingFile()\n\t{\n\t\tRandom r = new Random((long)0xff);\n\t\tint index = Math.abs(r.nextInt()) % this.existingFile.size();\n\t\tint temp = 0;\n\t\t\n\t\tIterator<Entry<String, byte[]>> existing = this.existingFile.entrySet().iterator();\n\t\tEntry<String, byte[]> entry = null;\n\t\twhile (existing.hasNext() && temp <= index) \n\t\t\t entry = existing.next();\n\t\treturn entry.getKey();\t\t\n\t}",
"public static String getMsg(String file, String key) {\n\n ResourceBundle bundle = getBundle(file);\n return getMsg(bundle, key);\n }",
"public static String pickWord(String f) throws IOException {\n \n //read in number of words in file\n Scanner read = new Scanner(new File(f));\n int wordCount = read.nextInt();\n read.next();\n \n //read each word as an element of a string array\n String[] words = new String[wordCount];\n for(int wordsIndex = 0; wordsIndex < wordCount; wordsIndex++) {\n words[wordsIndex] = read.nextLine();\n }\n \n Random rand = new Random();\n int num = rand.nextInt(wordCount);\n //String word = words[rand];\n //return a randomly chosen word from the string array\n return words[num];\n \n }",
"entities.Torrent.Message.Type getType();",
"public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }",
"public static Number readNumber(String message, String type){\n Scanner in = new Scanner(System.in);\n System.out.print(message);\n switch (type.toLowerCase().trim()){\n case \"byte\":\n return in.nextByte();\n case \"short\":\n return in.nextShort();\n case \"int\":\n return in.nextInt();\n case \"long\":\n return in.nextLong();\n case \"float\":\n return in.nextFloat();\n case \"double\":\n return in.nextDouble();\n default:\n return -1; \n }\n }",
"public String getRandomNonExistingFile()\n\t{\n\t\tRandom r = new Random((long)0xff);\n\t\tint index = Math.abs(r.nextInt()) % this.prefix.size();\n\t\tint temp = 0;\n\t\t\n\t\tIterator<Entry<String, byte[]>> existing = this.prefix.entrySet().iterator();\n\t\tEntry<String, byte[]> entry = null;\n\t\twhile (existing.hasNext() && temp <= index) \n\t\t\t entry = existing.next();\n\t\tString filename = entry.getKey();\n\t\treturn filename.substring(0, filename.length() - 1);\t\t\n\t}",
"public static byte readType(byte[] msg) {\n return msg[0];\n }",
"public String readARandomWord() {\r\n\r\n\t\tString inputFileName = \"dictionary.txt\";\r\n\t\tString[] wordsArray = null;\r\n\r\n\t\tScanner textFileScanner = new Scanner(BackToTheFutureClient.class.getResourceAsStream(inputFileName));\r\n\t\tArrayList<String> wordsList = new ArrayList<String>();\r\n\r\n\t\t// Reading all the lines from the file into array list\r\n\t\twhile (textFileScanner.hasNextLine()) {\r\n\t\t\tString w = textFileScanner.next();\r\n\t\t\twordsList.add(w);\r\n\t\t}\r\n\t\ttextFileScanner.close();\r\n\r\n\t\t// Convert words list to words array\r\n\t\twordsArray = wordsList.toArray(new String[wordsList.size()]);\r\n\r\n\r\n\t\tString randomWord = \"\";\r\n\r\n\t\t// Choose a random word from the array list of words\r\n\t\tif (wordsArray != null) {\r\n\t\t\tint index = new Random().nextInt(wordsArray.length);\r\n\t\t\trandomWord = (wordsArray[index]);\r\n\t\t}\r\n\t\treturn randomWord;\r\n\t}",
"private String getRandomTopic()\n\t{\n\t\tString randomTopic = \"\";\n\t\tdouble myRandom = Math.random();\n\t\tint myRandomListPosition = (int) (myRandom * randomList.size());\n\n\t\trandomTopic = randomList.get(myRandomListPosition);\n\t\treturn randomTopic;\n\t}",
"@Override\n protected void channelRead0(ChannelHandlerContext ctx, Map<String, Object> msg) throws Exception {\n Object id = msg.get(IAdapter.TEMPLATE_ID);\n Validate.notNull(id);\n if ((int)id == SyncMessageDecoder.TEMPLATE_ID){\n //TODO do some business ,For example printout\n Object o = msg.get(SyncInfo.class.getSimpleName());\n Validate.notNull(o);\n if (o instanceof SyncInfo){\n System.out.println(((SyncInfo)o).toString());\n }\n }\n }",
"T read(String identifier) throws IOException;",
"private byte[] generateRandomMessage(int size) {\r\n\t\t\r\n\t\tif (size < 10) { // minimum length is 10, since first 9 digits \r\n\t\t\t\t\t\t // are used as message id\r\n\t\t\tsize = 10;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString message = \"\";\r\n\t\t\r\n\t\tfor(int j=0; j<size; j++) {\r\n\t\t\t\r\n\t\t\tmessage += (char)(random.nextInt(10)+'0');\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn message.getBytes();\r\n\t\t\r\n\t}",
"edu.usfca.cs.dfs.StorageMessages.RetrieveFile getRetrieveFile();",
"public String getReadMimeType(int formatIndex);",
"private String readFile(File file, int flag) throws IOException {\n\t\tBufferedReader reader = new BufferedReader(new FileReader(file));\n\t\tString senderDomain = \"\";\n\t\tString subject = \"\";\n\t\tint nonCharNum = -1;\n\t\tint sendTime = -1;\n\t\tBoolean firstLine = true;\n\t\tBoolean base64 = false;\n\t\tBoolean reply = false;\n\t\tBoolean firstSpace = true;\n\t\tString emailContent = \"\";\n\t\tString emailContentLine = new String();\n\t\twhile ((emailContentLine = reader.readLine()) != null) {\n\t\t\tif (emailContentLine.equals(\"-- \"))\n\t\t\t\tbreak;\n\t\t\tif (emailContentLine.startsWith(\"From \") && (firstLine == true)) {\n\t\t\t\tsenderDomain = emailContentLine.split(\" \")[1].split(\"\\\\.\")[emailContentLine\n\t\t\t\t\t\t.split(\" \")[1].split(\"\\\\.\").length - 1].toLowerCase();\n\t\t\t}\n\t\t\tif (emailContentLine.startsWith(\"Return-Path: \")) {\n\t\t\t\tif (emailContentLine.split(\" \")[1].split(\"\\\\.\")[emailContentLine\n\t\t\t\t\t\t.split(\" \")[1].split(\"\\\\.\").length - 1]\n\t\t\t\t\t\t.replaceAll(\"\\\\W+\", \"\").toLowerCase().length() <= 3)\n\t\t\t\t\tsenderDomain = emailContentLine.split(\" \")[1].split(\"\\\\.\")[emailContentLine\n\t\t\t\t\t\t\t.split(\" \")[1].split(\"\\\\.\").length - 1].replaceAll(\n\t\t\t\t\t\t\t\"\\\\W+\", \"\").toLowerCase();\n\t\t\t}\n\t\t\tif ((emailContentLine.startsWith(\"From \") && (firstLine == true))\n\t\t\t\t\t|| emailContentLine.startsWith(\"Delivery-Date\")) {\n\t\t\t\tint hour = Integer\n\t\t\t\t\t\t.parseInt(emailContentLine.split(\" \")[emailContentLine\n\t\t\t\t\t\t\t\t.split(\" \").length - 2].split(\":\")[0]);\n\t\t\t\tsendTime = hour;\n\t\t\t}\n\t\t\tif (emailContentLine.startsWith(\"Date: \")\n\t\t\t\t\t&& (emailContentLine.split(\"\\\\s+\").length == 7)) {\n\t\t\t\tint hour = 0;\n\t\t\t\ttry {\n\t\t\t\t\thour = Integer.parseInt(emailContentLine.split(\"\\\\s+\")[5]\n\t\t\t\t\t\t\t.split(\":\")[0]);\n\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\tSystem.out.println(file.getAbsolutePath());\n\t\t\t\t}\n\t\t\t\tsendTime = hour;\n\t\t\t}\n\t\t\tif (emailContentLine.startsWith(\"Subject:\")) {\n\t\t\t\tsubject = emailContentLine.substring(9);\n\t\t\t\tif (subject.startsWith(\"Re:\")) {\n\t\t\t\t\treply = true;\n\t\t\t\t\tsubject = subject.substring(5);\n\t\t\t\t}\n\t\t\t}\n\t\t\temailContent += emailContentLine + \"\\n\";\n\t\t\tfirstLine = false;\n\t\t\tif (emailContentLine.length() == 0) {\n\t\t\t\tif (firstSpace == true)\n\t\t\t\t\temailContent = subject + \"\\n\";\n\t\t\t\tfirstSpace = false;\n\t\t\t}\n\t\t\tif (emailContentLine.contains(\"base64\")) {\n\t\t\t\temailContent = \"\";\n\t\t\t\tbase64 = true;\n\t\t\t}\n\t\t}\n\t\tif (base64 == true) {\n\t\t\temailContent = emailContent.replace(\" \", \"+\");\n\t\t\temailContent = Jsoup.parse(\n\t\t\t\t\tnew String(Base64.decodeBase64(emailContent.getBytes())))\n\t\t\t\t\t.text();\n\t\t}\n\t\temailContent = Jsoup.parse(emailContent).text().replaceAll(\" \", \" \");\n\t\tint orginalLengh = emailContent.length();\n\t\temailContent = emailContent.replaceAll(\"[^a-zA-Z0-9$]+\", \" \");\n\t\temailContent = emailContent.replace(\"$\", \"$ \");\n\t\tnonCharNum = (int) (((double) (orginalLengh - emailContent.length()) / orginalLengh) * 10);\n\t\tif (flag == 0) {\n\t\t\thamSenderDomain = new String();\n\t\t\thamTime = new String();\n\t\t\thamReply = new String();\n\t\t\thamNonCharNum = new String();\n\t\t\thamSenderDomain = senderDomain;\n\t\t\thamTime = String.valueOf(sendTime);\n\t\t\thamReply = reply.toString();\n\t\t\thamNonCharNum = String.valueOf(nonCharNum);\n\t\t} else if (flag == 1) {\n\t\t\tspamSenderDomain = new String();\n\t\t\tspamTime = new String();\n\t\t\tspamReply = new String();\n\t\t\tspamNonCharNum = new String();\n\t\t\tspamSenderDomain = senderDomain;\n\t\t\tspamTime = String.valueOf(sendTime);\n\t\t\tspamReply = reply.toString();\n\t\t\tspamNonCharNum = String.valueOf(nonCharNum);\n\t\t} else if (flag == 2) {\n\t\t\ttestSenderDomain = new String();\n\t\t\ttestTime = new String();\n\t\t\ttestReply = new String();\n\t\t\ttestNonCharNum = new String();\n\t\t\ttestSenderDomain = senderDomain;\n\t\t\ttestTime = String.valueOf(sendTime);\n\t\t\ttestReply = reply.toString();\n\t\t\ttestNonCharNum = String.valueOf(nonCharNum);\n\t\t}\n\t\treader.close();\n\n\t\treturn emailContent;\n\t}",
"public String getMimeType(String extension, String def) throws IOException {\n byte[] type = new byte[128];\n byte[] buf = new byte[16];\n byte[] ext = extension.toLowerCase().getBytes(\"ASCII\");\n int state = 1;\n int x = 0;\n int t = 0;\n for (int off = 0; off < this.inLen; off++) {\n byte ch = this.in[off];\n switch (state) {\n case 1:\n if (!(ch == (byte) 32 || ch == (byte) 9)) {\n if (ch == (byte) 35) {\n state = 2;\n break;\n }\n state = 3;\n }\n case 2:\n if (ch != (byte) 10) {\n break;\n }\n x = 0;\n t = 0;\n state = 1;\n break;\n case 3:\n if (ch != (byte) 32 && ch != (byte) 9) {\n int t2 = t + 1;\n type[t] = ch;\n t = t2;\n break;\n }\n state = 4;\n break;\n case 4:\n if (!(ch == (byte) 32 || ch == (byte) 9)) {\n state = 5;\n }\n case 5:\n switch (ch) {\n case (byte) 9:\n case SmbConstants.DEFAULT_MAX_MPX_COUNT /*10*/:\n case (byte) 32:\n case (byte) 35:\n int i = 0;\n while (i < x && x == ext.length && buf[i] == ext[i]) {\n i++;\n }\n if (i != ext.length) {\n if (ch == (byte) 35) {\n state = 2;\n } else if (ch == (byte) 10) {\n x = 0;\n t = 0;\n state = 1;\n }\n x = 0;\n break;\n }\n return new String(type, 0, t, \"ASCII\");\n break;\n default:\n int x2 = x + 1;\n buf[x] = ch;\n x = x2;\n break;\n }\n default:\n break;\n }\n }\n return def;\n }",
"private String mbrec(String message) {\r\n\t\treturn \"Reading \" + filename + \": \" + message;\r\n\t}",
"public Sound loadSound(String file);",
"public Integer getRandomIndexByType(int type){\n\t\tRandom randomGenerator = new Random();\n\t\tnewContent.clear();\n\t\tfor(int i = 0; i<this.type.size(); i++)\n\t\t{\t\n\t\t\tif(this.type.get(i) == type) {\n\t\t\t\tnewContent.add(this.content.get(i));\n\t\t\t}\n\t\t}\n\t\tInteger index = randomGenerator.nextInt(newContent.size());\n\t\treturn index;\n\t}",
"private String randWord() {\r\n List<String> wordList = new ArrayList<>();\r\n\r\n try {\r\n InputStream input = getClass().getResourceAsStream(\"res/hangmanWords.txt\");\r\n DataInputStream data_input = new DataInputStream(input);\r\n BufferedReader buffer = new BufferedReader(new InputStreamReader(data_input));\r\n String str_line;\r\n\r\n while ((str_line = buffer.readLine()) != null) {\r\n str_line = str_line.trim();\r\n if ((str_line.length() != 0)) {\r\n wordList.add(str_line);\r\n }\r\n }\r\n } catch (Exception e) {\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n int rand = new Random().nextInt(wordList.size());\r\n return wordList.get(rand);\r\n }",
"public void sendFile(Type type, String file_name) {\n try {\n // Use this for reading the data.\n byte[] buffer = new byte[1000];\n\n FileInputStream inputStream = new FileInputStream(file_name);\n\n // read fills buffer with data and returns\n // the number of bytes read (which of course\n // may be less than the buffer size, but\n // it will never be more).\n int total = 0;\n int nRead = 0;\n while((nRead = inputStream.read(buffer)) != -1) {\n // Convert to String so we can display it.\n // Of course you wouldn't want to do this with\n // a 'real' binary file.\n System.out.println(new String(buffer));\n out.writeByte(nRead);\n total += nRead;\n }\n\n\n // Always close files.\n inputStream.close();\n\n System.out.println(\"Read \" + total + \" bytes\");\n }\n catch(FileNotFoundException ex) {\n System.out.println(\n \"Unable to open file '\" + file_name + \"'\");\n }\n catch(IOException ex) {\n System.out.println(\n \"Error reading file '\" + file_name + \"'\");\n // Or we could just do this:\n // ex.printStackTrace();\n }\n }",
"private void detectQuestionType(String userMessage) {\n String firstWord = firstWord(userMessage).toLowerCase();\n List<String> answer;\n if (firstWord.equals(\"where\")) {\n answer = additionalDB.get(\"where\");\n } else if (firstWord.equals(\"when\")) {\n answer = additionalDB.get(\"when\");\n }else {\n \tanswer = additionalDB.get(\"ques\");\n }\n responsesList.add(new Response(getRandomElementFromList(answer)));\n }",
"public String readText(String _filename, String _type) {\r\n\t\treturn readText(_filename, _type, (java.net.URL) null);\r\n\t}",
"public int lookupReadMimeType(String mimeType);",
"public char message_type_GET()\n { return (char)((char) get_bytes(data, 0, 2)); }",
"private String genReadCode(String name, String type) {\n\n if (type.equals(\"char\")) {\n return INSTREAM_VAR_NAME + \".readChar( \" + name + \" );\";\n } else if (type.equals(\"short\")) {\n return INSTREAM_VAR_NAME + \".readShort( \" + name + \" );\";\n } else if (type.equals(\"int\")) {\n return INSTREAM_VAR_NAME + \".readInt( \" + name + \" );\";\n } else if (type.equals(\"float\")) {\n return INSTREAM_VAR_NAME + \".readFloat( \" + name + \" );\";\n } else if (type.equals(\"double\")) {\n return INSTREAM_VAR_NAME + \".readDouble( \" + name + \" );\";\n } else if (type.equals(\"std::string\")) {\n return INSTREAM_VAR_NAME + \".readString( \" + name + \" );\";\n } else if (type.equals(\"bool\")) {\n return INSTREAM_VAR_NAME + \".readBoolean( \" + name + \" );\";\n } else {\n throw new IllegalArgumentException(\"unknown primitive type=\" + type);\n }\n }",
"abstract String getSound();",
"public abstract String getMessageType();",
"public String getText(String type) {\n String path = filePath.get(type);\n InputStream is = getClass().getResourceAsStream(path);\n\n if (is == null) {\n return \"File not found\";\n }\n return new BufferedReader(\n new InputStreamReader(is, StandardCharsets.UTF_8))\n .lines()\n .collect(Collectors.joining(\"\\n\"));\n }",
"Res.Msg getMsg(int index);",
"private static String pickRoom(char type) {\n String path = ROOT_ROOM_PATH;\n switch(type) {\n case(LayoutGenerator.START):\n path += START_ROOM_PATH + LayoutGenerator.START;\n break;\n case(LayoutGenerator.FINISH):\n path += FINISH_ROOM_PATH + LayoutGenerator.FINISH;\n break;\n case(LayoutGenerator.TREASURE):\n path += TREASURE_ROOM_PATH + LayoutGenerator.TREASURE;\n break;\n default: // If somehow a weird char is inputted\n case(LayoutGenerator.NORMAL):\n path += NORMAL_ROOM_PATH + LayoutGenerator.NORMAL;\n break;\n case(LayoutGenerator.ENEMY):\n path += ENEMY_ROOM_PATH + LayoutGenerator.ENEMY;\n break;\n case(LayoutGenerator.DOOR):\n path += DOOR_ROOM_PATH + LayoutGenerator.DOOR;\n break;\n case(LayoutGenerator.KEY):\n path += KEY_ROOM_PATH + LayoutGenerator.KEY;\n break;\n\n }\n\n // At this point, the path should be \"src/rooms/[type]/[type char]\"\n // All files start with the char of its type and a number\n\n int numFiles = new File(path.substring(0, path.length() - 2)).listFiles().length;\n Random rand = new Random();\n path += rand.nextInt(numFiles) + \".txt\";\n\n return path;\n }",
"public void readMessagesFromFile(File msgFile) throws Exception{ \n /** Using BufferedReader and FileReader to read the message from the File*/\n BufferedReader message = new BufferedReader(new FileReader(msgFile));\n String text;\n String[] textMessage = new String[messages.length];\n /** Using while loop to copy the messages from the file to the textMessage array*/\n while((text = message.readLine()) != null){\n textMessage[msgCount] = text;\n msgCount +=1;\n if(msgCount==9){\n break;\n }\n }\n /** For loop to split the String into two parts */\n for (int i = 0; i< msgCount; ++i){\n String[] parts = textMessage[i].split(\" \",2);\n messages[i] = new TextMessage(parts[0],parts[1]);\n }\n if (msgCount<messages.length){\n for (int m = msgCount; m<messages.length; ++m){\n messages[m] = new TextMessage(null,null);\n }\n }\n message.close();\n }",
"private static String getStringByType(int type)\n {\n switch(type){\n case RingtoneManager.TYPE_ALARM:\n return Settings.System.ALARM_ALERT;\n case RingtoneManager.TYPE_NOTIFICATION:\n return Settings.System.NOTIFICATION_SOUND;\n case RingtoneManager.TYPE_RINGTONE:\n return Settings.System.RINGTONE;\n default:\n return null;\n }\n }",
"private void messagesLoad(String mesagesFileName) throws IOException {\n String temp = new String(Files.readAllBytes(Paths.get(mesagesFileName)));\n String allMessages = stripAccents(temp); // only if you use mockmock or an non UTF-8 compatible SMPT server\n \n //then we split the String into an ArrayList of String\n //in the file messages.utf8 we have used \"=_=_=\" as seperator\n messages = new ArrayList<String>(Arrays.asList(allMessages.split(\"=_=_=\\n\")));\n }",
"String read();",
"String read();",
"private String getTextFromMessage(Message message) throws Exception {\r\n\t\tString result = \"\";\r\n\t\tif (message.isMimeType(\"text/plain\")) {\r\n\t\t\tresult = message.getContent().toString();\r\n\t\t} else if (message.isMimeType(\"multipart/*\")) {\r\n\t\t\tMimeMultipart mimeMultipart = (MimeMultipart) message.getContent();\r\n\t\t\tresult = getTextFromMimeMultipart(mimeMultipart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private static ArrayList<Message> ReadFile(Scanner sc) {\t\n\t\tArrayList<Message> messageList = new ArrayList<Message>();\n\t\t\n\t\t/* Iterating over each string in file and creating\n\t\t * Message object with file contents\n\t\t*/\n\t\twhile (sc.hasNextLine()) {\n\t\t\tString line = sc.nextLine();\n\t\t\tScanner lineScanner = new Scanner(line);\n\t\t\twhile (lineScanner.hasNext()) {\n\t\t\t\ttry {\n\t\t\t\t\tString received = lineScanner.next(); \n\t\t\t\t\tString sent = lineScanner.next();\n\t\t\t\t\tString node1 = lineScanner.next();\n\t\t\t\t\tString notification = lineScanner.next();\n\t\t\t\t\tString node2 = null;\n\t\t\t\t\tif (lineScanner.hasNext()) {\n\t\t\t\t\t\tnode2 = lineScanner.next();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlong receivedVal = Long.parseLong(received);\n\t\t\t\t\tlong sentVal = Long.parseLong(sent);\n\t\t\t\t\tMessage message = new Message(receivedVal, sentVal, node1,\n\t\t\t\t\t\t\tnotification, node2);\n\t\t\t\t\t\n\t\t\t\t\tmessageList.add(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tlineScanner.close();\n\t\t}\n\t\treturn messageList;\n\t}",
"public static String textSelection(String pressed, String custom) throws IOException {\n if (pressed != null) {\n File file = null;\n Random rand = new Random();\n int n = rand.nextInt(3);\n if (pressed == \"Hard\") {\n if (n == 0) {\n file = new File(\"fileHard1.txt\");\n } else if (n == 1) {\n file = new File(\"fileHard2.txt\");\n } else if (n == 2) {\n file = new File(\"fileHard3.txt\");\n }\n } else if (pressed == \"VHard\") {\n if (n == 0) {\n file = new File(\"fileVHard1.txt\");\n } else if (n == 1) {\n file = new File(\"fileVHard2.txt\");\n } else if (n == 2) {\n file = new File(\"fileVHard3.txt\");\n }\n } else if (pressed == \"Medium\") {\n if (n == 0) {\n file = new File(\"fileMedium1.txt\");\n } else if (n == 1) {\n file = new File(\"fileMedium2.txt\");\n } else if (n == 2) {\n file = new File(\"fileMedium3.txt\");\n }\n } else if (pressed == \"Easy\") {\n if (n == 0) {\n file = new File(\"fileEasy1.txt\");\n } else if (n == 1) {\n file = new File(\"fileEasy2.txt\");\n } else if (n == 2) {\n file = new File(\"fileEasy3.txt\");\n }\n } else {\n System.out.println(pressed);\n System.out.println(\"no if hit\");\n file = new File(\"fileEasy3.txt\");\n }\n return Files.readAllLines(Paths.get(file.getAbsolutePath())).get(0);\n }\n else {\n String finalString = \"\";\n List<String> lines = Files.readAllLines(Paths.get(custom));\n for (String s:lines) {\n finalString += s;\n }\n return finalString;\n }\n }",
"@Test\n public void getMatchDetailsTest2(){\n try {\n RiotApiHandler userTest=RiotApiHandler.getInstance();\n Path testfile = Path.of(\"matchinfo.txt\");\n String fin = Files.readString(testfile);\n Assert.assertNotEquals(fin,userTest.getMatchDetails(\"EUN1_2775220260\",\"eun1\"));\n }\n catch (IOException exception){\n exception.printStackTrace();\n }\n }",
"@Override\n public void run() {\n FILEPREFIX = \".//files\"+serverID + \"//\";\n ClientMessage = (Message) socketRead();\n ServerMessage = getReturnMessage(ClientMessage);\n //System.out.println(\"client\"+ClientMessage.getFrom()+\"message : \"+ClientMessage.getContent());\n File file = new File(FILEPREFIX + ClientMessage.getFileName());\n switch (ClientMessage.getType()){\n case \"enquiry\"://return the list of file\n ServerMessage.setContent(ListAllFile());\n break;\n case \"read\"://read the last line\n System.out.println(ClientMessage.getFrom() + \": Reading...\");\n ServerMessage.setContent(\"Reading: \"+ReadLastLine(file));\n System.out.println(\"Reading \"+ClientMessage.getContent());\n break;\n case \"write\"://write to the end of file\n System.out.println(ClientMessage.getFrom() + \": writing...\");\n try{\n WriteLastLine(file,ClientMessage.getContent());\n }catch (IOException e) {\n System.out.println(\"write error\");\n }\n\n ServerMessage.setContent(\"writing: \"+ReadLastLine(file));\n System.out.println(\"Writing \"+ClientMessage.getContent());\n break;\n default://unknown command\n System.out.println(ClientMessage.getType());\n ServerMessage.setContent(\"Error\");\n System.out.println(ClientMessage.getFrom() + \": Wrong type\");\n break;\n }\n socketWrite(ServerMessage);\n\n try {//close the socket connection\n client.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"Message getNextMessage();",
"private String getMimeType(String aFilename) {\n String extension = aFilename.substring(aFilename.length() - 3, aFilename.length()).toUpperCase();\n\n if (extension.equals(\"AMR\")) {\n return \"audio/AMR\";\n }\n //DuongNT add\n if (extension.equals(\"WAV\")) {\n return \"audio/X-WAV\";\n } else {\n return \"audio/midi\";\n }\n }",
"T read(int id);",
"T read(int id);",
"private String wordToFind() {\n\t\t\n\t\t//It actually just gets the incomplete version of the word, with underscores.\n\t\t//By the point this method is called, the server will have created a thread for\n\t\t//this client and generated a random word for this client to aim for. \n\t\t//The underscore variant will be just as long as the real word, so it can be used\n\t\t//for array lengths and, since it'll be all underscores, even if a hacker went to\n\t\t//print out the value of temp, they wouldn't get anywhere.\n\t\tout.println(\"GetWord\");\n\t\tString temp = null;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\ttemp = in.readLine();\n\t\t\t\tif(temp!=null) {\n\t\t\t\t\tcurrentWordLabel = new Label(temp);\n\t\t\t\t\treturn temp;\n\t\t\t\t}\n\t\t\t}catch(IOException ioe) {\n\t\t\t}\n\t\t}\n\t}",
"protected void getRndWord(String fileName) {\n\t\t// create the dict in the DictReader\n\t\tdr.readInFile(fileName);\n\t\t// get a random word and save it to this.word from the DictReader\n\t\tthis.word = new Word(dr.getRandomWord());\n\t}",
"private byte[] uniqueMessageID(Random rand){\n \tbyte[] messageID = new byte[Constants.MESSAGE_ID_LEN];\n \t\n synchronized (this.messageIDs) {\n boolean uniqueID = false;\n while (!uniqueID) {\n rand.nextBytes(messageID); //Fills messageID with random bytes\n uniqueID = true;\n for (byte[] i : messageIDs){\n if (Arrays.equals(i, messageID)) {\n Log.d(TAG, \"Message already recieved, ID starts with: \" //Message exists in messageIDs\n + messageID[0]);\n uniqueID = false;\n break; //Regenerates a random ID and tries again.\n }\n }\n }\n }\n \n return messageID;\n }",
"public Sound createSound(String file);",
"private static AcSentFile getSentFileFromFile(AcDbAccountAccess a, AcLockingFileWrapper w)\n {\n return a.getSentFileDb().getByFileNamePath(w.getUnlockedFilename(), w.getFilepath());\n }",
"messages.Basemessage.BaseMessage.Type getType();",
"private static String getUser(String message) { return message.split(\"!\")[0].substring(1); }",
"static void loadMessages(String messagesFilePath) {\r\n \t\tMessage[] messageIDs = Message.values();\r\n \t\tmessages = new String[Message.values().length];\r\n \r\n \t\tHashMap<String, CustomizableMessage> defaults = new HashMap<String, CustomizableMessage>();\r\n \r\n \t\t// initialize default messages\r\n \t\taddDefault(defaults, Message.YOU_HAVE_TO_SNEAK, \"&7You have to sneak to remove this.\", null);\r\n \t\taddDefault(defaults, Message.SIGN_REMOVED, \"&aBillboard sign was removed.\", null);\r\n \t\taddDefault(defaults, Message.ADDED_SIGN, \"&aThis sign can now be rented from &f{2} &afor &8{0} $ &afor &8{1} days&a.\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.ALREADY_BILLBOARD_SIGN, \"&7This sign is already a billboard sign.\", null);\r\n \t\taddDefault(defaults, Message.NO_TARGETED_SIGN, \"&7You have to target a sign.\", null);\r\n \t\taddDefault(defaults, Message.ONLY_AS_PLAYER, \"This only works as player.\", null);\r\n \t\taddDefault(defaults, Message.INFO_HEADER, \"&3Billboard - Information\", null);\r\n \t\taddDefault(defaults, Message.INFO_CREATOR, \"&5Creator: &2{0}\", \"0: creator\");\r\n \t\taddDefault(defaults, Message.INFO_OWNER, \"&5Owner: &2{0}\", \"0: owner\");\r\n \t\taddDefault(defaults, Message.INFO_PRICE, \"&5Price: &2{0} $\", \"0: price\");\r\n \t\taddDefault(defaults, Message.INFO_DURATION, \"&5Duration: &2{0} days\", \"0: duration\");\r\n \t\taddDefault(defaults, Message.INFO_RENT_SINCE, \"&5Rented since: &2{0}\", \"0: since date\");\r\n \t\taddDefault(defaults, Message.INFO_RENT_UNTIL, \"&5Rented until: &2{0}\", \"0: until date\");\r\n \t\taddDefault(defaults, Message.INFO_TIME_LEFT, \"&5Time remaining: &2{0}\", \"0: time left\");\r\n \t\taddDefault(defaults, Message.CLICK_TO_RENT, \"&6Click the sign again, to rent it from &8{2} &6for &b{0} $ &6for &b{1} days&6.\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.YOU_HAVE_RENT_A_SIGN, \"&aYou have rented this sign now from &8{2} &6for &b{1} days &a. \\n&bTo edit it: &aright-click it with a sign\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.TRANSACTION_FAILURE, \"&cSomething went wrong: {0}\", \"0: errorMessage\");\r\n \t\taddDefault(defaults, Message.NO_LONGER_AVAILABLE, \"&cThis sign is no longer available!\", null);\r\n \t\taddDefault(defaults, Message.NOT_ENOUGH_MONEY, \"&cYou have not enough money! \\nYou need &8{0} $&c, but you only have &8{1} $&c!\", \"0: price 1: balance\");\r\n \t\taddDefault(defaults, Message.MAX_RENT_LIMIT_REACHED, \"&cYou already own too many billboard signs &7(limit: &e{0}&7)&c!\", \"0: limit\");\r\n \t\taddDefault(defaults, Message.CANT_RENT_OWN_SIGN, \"&cYou can't rent your own sign.\", null);\r\n \t\taddDefault(defaults, Message.NO_PERMISSION, \"&cYou have no permission for that.\", null);\r\n \t\taddDefault(defaults, Message.SIGN_LINE_1, \"&bRENT ME\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.SIGN_LINE_2, \"&f(click!)\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.SIGN_LINE_3, \"&8{0} $\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.SIGN_LINE_4, \"&8{1} days\", \"0: price 1: duration 2: creator\");\r\n \t\taddDefault(defaults, Message.DATE_FORMAT, \"dd/MM/yyyy HH:mm:ss\", \"Only change this if you know what you are doing..\");\r\n \t\taddDefault(defaults, Message.TIME_REMAINING_FORMAT, \"%d days %d h %d min\", \"Only change this if you know what you are doing..\");\r\n \t\taddDefault(defaults, Message.INVALID_NUMBER, \"&cInvalid number: {0}\", \"0: the invalid argument\");\r\n \t\taddDefault(defaults, Message.RENT_SIGN_LINE_1, \"&aRent by\", \"0: price 1: duration 2: creator 3: new owner\");\r\n\t\taddDefault(defaults, Message.RENT_SIGN_LINE_2, \"&f{0}\", \"0: price 1: duration 2: creator 3: new owner\");\r\n \t\taddDefault(defaults, Message.RENT_SIGN_LINE_3, \"&cRight-click\", \"0: price 1: duration 2: creator 3: new owner\");\r\n \t\taddDefault(defaults, Message.RENT_SIGN_LINE_4, \"&cwith a sign!\", \"0: price 1: duration 2: creator 3: new owner\");\r\n \r\n \t\t// load the message file\r\n \t\tFileConfiguration config = YamlConfiguration.loadConfiguration(new File(messagesFilePath));\r\n \r\n \t\t// for each message ID\r\n \t\tfor (int i = 0; i < messageIDs.length; i++) {\r\n \t\t\t// get default for this message\r\n \t\t\tMessage messageID = messageIDs[i];\r\n \t\t\tCustomizableMessage messageData = defaults.get(messageID.name());\r\n \r\n \t\t\t// if default is missing, log an error and use some fake data for\r\n \t\t\t// now so that the plugin can run\r\n \t\t\tif (messageData == null) {\r\n \t\t\t\tBillboards.logger.severe(\"Missing message for \" + messageID.name() + \". Please contact the developer.\");\r\n \t\t\t\tmessageData = new CustomizableMessage(messageID, \"Missing message! ID: \" + messageID.name() + \". Please contact a server admin.\", null);\r\n \t\t\t}\r\n \r\n \t\t\t// read the message from the file, use default if necessary\r\n \t\t\tmessages[messageID.ordinal()] = config.getString(\"Messages.\" + messageID.name() + \".Text\", messageData.text);\r\n \t\t\tconfig.set(\"Messages.\" + messageID.name() + \".Text\", messages[messageID.ordinal()]);\r\n \t\t\t// translate colors\r\n \t\t\tmessages[messageID.ordinal()] = ChatColor.translateAlternateColorCodes('&', messages[messageID.ordinal()]);\r\n \r\n \t\t\tif (messageData.notes != null) {\r\n \t\t\t\tmessageData.notes = config.getString(\"Messages.\" + messageID.name() + \".Notes\", messageData.notes);\r\n \t\t\t\tconfig.set(\"Messages.\" + messageID.name() + \".Notes\", messageData.notes);\r\n \t\t\t}\r\n \t\t}\r\n \r\n \t\t// save any changes\r\n \t\ttry {\r\n \t\t\tconfig.save(messagesFilePath);\r\n \t\t} catch (IOException exception) {\r\n \t\t\tBillboards.logger.severe(\"Unable to write to the configuration file at \\\"\" + messagesFilePath + \"\\\"\");\r\n \t\t}\r\n \r\n \t\tdefaults.clear();\r\n \t\tSystem.gc();\r\n \t}",
"public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }",
"private Collection<String> loadMessagesFromFile(String folderName, String fileName){\r\n\t\tCollection<String> res = new HashSet<String>();\r\n\t\tFileManager fileMngr = new FileManager(viewsFoldersPath+\"/\"+folderName+\"/\"+fileName);\r\n\t\tString[] content;\r\n\t\tString aux, messageCode;\r\n\t\t\r\n\t\t// Loop over all file lines and add i18n&l10n codes\r\n\t\tcontent = fileMngr.readFile().split(\"\\n\");\r\n\t\tfor(int i=0; i<content.length; i++){\r\n\t\t\taux = content[i];\r\n\t\t\tif(!aux.isEmpty() && aux.charAt(0)!='#'){\r\n\t\t\t\tmessageCode = aux.split(\"=\")[0];\r\n\t\t\t\tmessageCode = messageCode.trim();\r\n\t\t\t\tif(res.contains(messageCode)) System.out.println(\"WARNING! Duplicated i18n&l10n code '\"+messageCode+\"' into \"+folderName+\"/\"+fileName);\r\n\t\t\t\tres.add(messageCode);\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn res;\r\n\t}",
"protected abstract MessageType getMessageType();",
"public static void readAllMsgs(String name){\n\t\tmsgs = \"\";\n\t\tposts.clear();\n\t\tBufferedReader reader=null;\n\n\t\ttry {\n\t\t\tString loc = \".\\\\\" + name + \".csv\";\n\t\t\treader = new BufferedReader(new FileReader(loc));\n\t\t} \n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString line = \"\";\n\t\t\n\t\ttry{\n\t\t\t//Gender\n\t\t\tline = reader.readLine();\n\t\t\t//Age\n\t\t\tline = reader.readLine();\n\t\t\t//No. of friends\n\t\t\tline = reader.readLine();\n\t\t\t//Faltu heading line\n\t\t\tline = reader.readLine();\n\t\t\twhile( (line=reader.readLine())!=null ){\n\t\t\t\tString[] parts = line.split(\"~\");\n\t\t\t\tmsgs += parts[5] + \"\\n\";\n\t\t\t\tposts.add(parts[5]);\n\t\t\t}\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry{\n\t\t\treader.close();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public String readText(String _filename, String _type, java.net.URL _codebase) {\r\n\t\t// LDLTorre for Moodle support\r\n\t\tif (_filename.startsWith(\"url:\")) {\r\n\t\t\tString url = \"\";\r\n\t\t\tif (_filename.startsWith(\"url:\")) {\r\n\t\t\t\turl = _filename.substring(4);\r\n\t\t\t\tif (_codebase == null || url.startsWith(\"http:\"))\r\n\t\t\t\t\t; // Do nothing\r\n\t\t\t\telse\r\n\t\t\t\t\turl = _codebase + url;\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tjava.net.URL urlConn = new java.net.URL(url);\r\n\t\t\t\tInputStream is = (InputStream) urlConn.getContent();\r\n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(is));\r\n\t\t\t\tString line = null;\r\n\t\t\t\tStringBuffer sb = new StringBuffer();\r\n\t\t\t\twhile ((line = br.readLine()) != null) {\r\n\t\t\t\t\tsb.append(line + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t\treturn sb.toString();\r\n\t\t\t} catch (java.lang.Exception ioe) {\r\n\t\t\t\tSystem.err.println(\"Error when trying to read \" + _filename);\r\n\t\t\t\tioe.printStackTrace(System.err);\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// LDLTorre for Moodle support\r\n\t\ttry { // Either memory or a file\r\n\t\t\tjava.io.Reader in;\r\n\t\t\tif (_filename.startsWith(\"ejs:\"))\r\n\t\t\t\tin = new java.io.CharArrayReader((char[]) memory.get(_filename));\r\n\t\t\telse\r\n\t\t\t\tin = new java.io.FileReader(_filename);\r\n\t\t\tjava.io.LineNumberReader l = new java.io.LineNumberReader(in);\r\n\t\t\tStringBuffer txt = new StringBuffer();\r\n\t\t\tString sl = l.readLine();\r\n\t\t\twhile (sl != null) {\r\n\t\t\t\ttxt.append(sl + \"\\n\");\r\n\t\t\t\tsl = l.readLine();\r\n\t\t\t}\r\n\t\t\tin.close();\r\n\t\t\treturn txt.toString();\r\n\t\t} catch (java.lang.Exception ioe) {\r\n\t\t\tSystem.err.println(\"Error when trying to read \" + _filename);\r\n\t\t\tioe.printStackTrace(System.err);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private String getRandomResponse() {\n\t\tfinal int NUMBER_OF_RESPONSES = 6;\n\t\tdouble r = Math.random();\n\t\tint whichResponse = (int) (r * NUMBER_OF_RESPONSES);\n\t\tString response = \"\";\n\n\t\tif (whichResponse == 0) {\n\t\t\tresponse = \"Interesting, tell me more.\";\n\t\t} else if (whichResponse == 1) {\n\t\t\tresponse = \"Hmmm.\";\n\t\t} else if (whichResponse == 2) {\n\t\t\tresponse = \"Do you really think so?\";\n\t\t} else if (whichResponse == 3) {\n\t\t\tresponse = \"You don't say.\";\n\t\t} else if(whichResponse == 4) {\n\t\t\tresponse = \"Well, that's right.\";\n\t\t} else if(whichResponse == 5) {\n\t\t\tresponse = \"Can we switch the topic?\";\n\t\t}\n\n\t\treturn response;\n\t}",
"private MqttMessage readEngineTemp() {\n double temp = 80 + rnd.nextDouble() * 20.0;\n byte[] payload = String.format(\"T:%04.2f\",temp).getBytes();\n MqttMessage msg = new MqttMessage(payload);\n return msg;\n }",
"public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}",
"public MyFile getMyFile() {\r\n\t\tMyFile msg = new MyFile(path);\r\n\t\tString LocalfilePath = path;\r\n\r\n\t\ttry {\r\n\t\t\tFile newFile = new File(LocalfilePath);\r\n\t\t\tbyte[] mybytearray = new byte[(int) newFile.length()];\r\n\t\t\tFileInputStream fis = new FileInputStream(newFile);\r\n\t\t\tBufferedInputStream bis = new BufferedInputStream(fis);\r\n\r\n\t\t\tmsg.initArray(mybytearray.length);\r\n\t\t\tmsg.setSize(mybytearray.length);\r\n\r\n\t\t\tbis.read(msg.getMybytearray(), 0, mybytearray.length);\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error send (Files)msg) to Server\");\r\n\t\t}\r\n\t\treturn msg;\r\n\t}",
"com.czht.face.recognition.Czhtdev.MessageType getType();",
"abstract String getFileRoute() throws IOException;",
"String getFileMimeType();",
"@Order(2)\n\t\t@TestFactory\n\t\tpublic Iterable<DynamicTest> getMessageTest() throws IOException, ParseException {\n\t\t\t\n\t\t\tCollection<DynamicTest> tests = new ArrayList<DynamicTest>();\n\t\t\tString allMessagesResponse = Requests.getMessage(\"\");\n\t\t\t\n\t\t\tArrayList<String> idList = JSONUtils.getAllRecordsByKey(allMessagesResponse, \"id\");\n\t\t\t\n\t\t\tfor (String id : idList){\n\t\t\t\tboolean response = Requests.sendGETBoolReturn(Requests.MESSAGE_URL, id);\n\t\t\t\t\n\t\t\t tests.add(DynamicTest.dynamicTest(\"Was a GET of an existing message successful\", () -> assertTrue(response)));\n\t\t\t}\n\t\t\treturn tests;\n\t\t}",
"public static void sendFileResponse(Supplier<Pair<String,File>> message, MessageReceivedEvent event)\n {\n sendFileResponseWithAlternate(message, null, event);\n }",
"public void onReceive(Object message) throws Throwable {\n if(message instanceof InitPublish) {\n //String fileDirectory = getAbsolutePath(directory,fileName);\n\n //send ce-bay message to publish the given file\n cebay.tell(new Publish(filePath, hashedFileName(), seederAddress()), getSelf());\n //receiving this message if someone wants to download our file\n } else if(message instanceof GetFile) {\n GetFile requestedFile = (GetFile) message;\n if(requestedFile.name().equals(this.fileName)) {\n byte[] data = new byte[(int)file.length()];\n FileInputStream fis = new FileInputStream(file);\n if(fis.read(data) != -1) {\n //send the sender a message with the requested file as byte[]\n getSender().tell(new FileRetrieved(data), getSelf());\n }\n fis.close();\n\n } else {\n //if a file is requested which we don't provide send the sender a fileNotFount-message\n getSender().tell(new FileNotFound(requestedFile.name()), getSelf());\n }\n //receiving this message from ce-bay\n } else if (message instanceof GetStatus) {\n //sending the message statusRetrieved back to ce-bay\n getSender().tell(new StatusRetrieved(), getSelf());\n } else {\n //if unknown message\n getSender().tell(\"Diese Nachricht konnte nicht verarbeitet werden!\", getSelf());\n }\n }",
"private void createMsgSample() throws IOException {\n\t\tnew File(\"reply/msg/Sample\").mkdir();\n\t\tSystem.out.print(\"[INFO][PLUGIN][REPLY]:Creating MSG Sample...\");\n\t\tFileWriter sampMsg = new FileWriter(\"reply/msg/Sample/Hello.txt\");\n\t\tsampMsg.write(\"Hello world!\\n\");\n\t\tsampMsg.flush();\n\t\tsampMsg.close();\n\t\tFileWriter sampCmd = new FileWriter(\"reply/cmd/SampleMsg.yml\");\n\t\tsampCmd.write(\"msg\\n\");\n\t\tsampCmd.write(\"Sample\\n\");\n\t\tsampCmd.write(\"Hello&&world!\\n\");\n\t\tsampCmd.write(\"break\\n\");\n\t\tsampCmd.flush();\n\t\tsampCmd.close();\n\t\tSystem.out.println(\"DONE!\");\n\t}",
"public static void pbMessage(String data, String discordid, String uuid, char type) {\n\t\tEmbedBuilder embed = new EmbedBuilder();\n\t\tString localData = GeneralUtils.readJsonToString(\"linked player/\" + uuid + \"/data.json\");\n\n\t\t// Add a unique part to the request url so discord cannot cache it and the skin stays up to date.\n\t\t// By: EatMyVenom\n\t\tlong time = System.currentTimeMillis();\n\n\t\tString url = \"https://crafatar.com/renders/body/\" + uuid + \"?overlay&size=512&time=\" + time;\n\t\tString avatarUrl = Bot.server.getMemberById(discordid).getUser().getAvatarUrl();\n\t\tString name = Bot.server.getMemberById(discordid).getEffectiveName();\n\t\tint oldQ = Stats.getQualificationToInt(localData);\n\t\tint newQ = API.getQualificationToInt(data);\n\t\tint oldF = Stats.getFinalsToInt(localData);\n\t\tint newF = API.getFinalsToInt(data);\n\t\t\n\t\tembed.setAuthor(name + \" | \" + API.getName(data), url, avatarUrl);\n\t\tembed.setThumbnail(url);\n\t\tembed.setFooter(\"Discord ID: \" + discordid + \"\\nUUID: \" + uuid);\n\t\t\n\t\tif (type == 'q') {\n\t\t\tif (newQ - oldQ <= 0) return;\n\t\t\tembed.setTitle(API.getName(data)+\" Improved \" + GeneralUtils.getGenderPrefix(discordid) + \" **Qualifiers** Personal Best!\");\n\t\t\tembed.setColor(RolesManager.getRoleColor(newQ));\n\t\t\tembed.addField(\"Old PB\", \"**\" + oldQ + \"**\",true);\n\t\t\tembed.addField(\"New PB\", \"**\" + newQ + \"**\",true);\n\t\t\tembed.addField(\"Increase\",\"**\" + (newQ - oldQ) + \"**\",true);\n\t\t} else {\n\t\t\tif (newF - oldF <= 0) return;\n\t\t\tembed.setTitle(API.getName(data) + \" Improved \" + GeneralUtils.getGenderPrefix(discordid) + \" **Finals** Personal Best!\");\n\t\t\tembed.setColor(RolesManager.getRoleColor(newF));\n\t\t\tembed.addField(\"Old PB\", \"**\" + oldF + \"**\",true);\n\t\t\tembed.addField(\"New PB\", \"**\" + newF + \"**\",true);\n\t\t\tembed.addField(\"Increase\",\"**\" + (newF - oldF) + \"**\",true);\n\t\t}\n\t\tnew RolesManager().addClubRole(Bot.server, Bot.server.getMemberById(discordid), newQ, newF, null);\n\t\tBot.server.getTextChannelById(ConfigManager.getString(\"trackerChannel\")).sendMessage(embed.build()).complete();\n\t}",
"public static String getMessage(int msg_type)\n\t{\n\t\tString msg = \"\";\n\t\t\n\t\tif(msg_type == TYPE_GET_VERSION)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetVersion\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_DATA)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetData\\\"/>\";\n//\t\t\tmsg = \"<PublicSDK Message=\\\"GetIntegratedData\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_EVENTS)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetEvents\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_IMAGE)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetImage\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_PRODUCT_INFORMATION)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetProductInformation\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_GET_TIME)\n\t\t{\n\t\t\tmsg = \"<Message Type=\\\"GetTime\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_SET_TIME)\n\t\t{\n\t\t\tmsg = \"<PublicSDK Message=\\\"SetTime\\\" UTC=\\\"%s\\\" Milliseconds=\\\"%s\\\"/>\";\n\t\t}\n\t\telse if(msg_type == TYPE_CLEAR_DATA)\n\t\t{\n\t\t\tmsg = \"<PublicSDK Message=\\\"ClearData\\\"/>\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog4j.warn(\"No message mapped for msg_type = \" + msg_type + \". Return msg = null..\");\n\t\t\tmsg = null;\n\t\t}\n\t\t\n\t\treturn msg;\n\t}",
"public ITCMessage readMessage() throws IOException;",
"private Message readMessage() throws IOException, ClassNotFoundException {\n Message message = (Message) objectInputStream.readObject();\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp !=\n Message.Command.GET_AVAILABLE) {\n if (connectionType == Message.Command.REGISTER_CLIENT) {\n connectionLoggerService.add(\"Client - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n\n } else if (connectionType == Message.Command.REGISTER_AH) {\n connectionLoggerService.add(\"Auction House - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n } else {\n connectionLoggerService.add(\"Unknown - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n }\n }\n return message;\n }",
"private String[] getRandomNames(StreamTokenizer st) throws IOException {\n\t\t// now pattern\n\t\tst.nextToken();\n\t\tif (st.sval == null || st.sval.equals(\"\"))throw new IOException(\"Argument 2 must be a pattern name enclosed by \\\"\"); //$NON-NLS-2$\n\t\tString pattern = st.sval;\n\n\t\t// now gender\n\t\tst.nextToken();\n\t\tif (st.sval == null || st.sval.equals(\"\"))throw new IOException(\"Argument 3 must be a gender name enclosed by \\\"\"); //$NON-NLS-2$\n\t\tString gender = st.sval;\n\n\t\t// at last the number of arguements\n\t\tint type = st.nextToken();\n\t\tif (type != StreamTokenizer.TT_NUMBER)\n\t\t\tthrow new IOException(\"Argument 4 must be an integer number\"); //$NON-NLS-1$\n\t\tint count = (int) st.nval;\n\n\t\t// get language\n\t\tString lang = getLanguageFromTokenizer(st);\n\n\t\t// more?\n\t\tif (st.nextToken() != StreamTokenizer.TT_EOF)\n\t\t\tthrow new IOException(\"Expected request form: GET \\\"PATTERN\\\" \\\"GENDER\\\" COUNT \\\"LANGUAGE\\\"\");\n\n\t\t// ok, everything fine - now get names\n\t\ttry {\n\t\t\treturn ng.getRandomName(pattern, gender, count, lang);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new String[] { \"###ERROR###\" }; //$NON-NLS-1$\n\t\t}\n\t}",
"static Room randomWorld(String fileName, Random rand) throws IOException {\n Scanner fileIn = new Scanner(new File(fileName));\n ArrayList<Room> rooms = new ArrayList<Room>();\n \n // first create the rooms and their content - first room is the entrance room\n Room entrance = new Room(fileIn.nextLine());\n addStuff(entrance, fileIn);\n rooms.add(entrance);\n \n // add more rooms\n while (fileIn.hasNextLine()) {\n String name = fileIn.nextLine();\n if (name.equals(\"*****\")) break; // YUK!\n else {\n Room room = new Room(name);\n addStuff(room, fileIn);\n rooms.add(room); \n }\n }\n \n // now connect the rooms randomly\n for (Room room : rooms) {\n room.connectNorth(rooms.get(rand.nextInt(rooms.size())));\n room.connectEast(rooms.get(rand.nextInt(rooms.size())));\n room.connectSouth(rooms.get(rand.nextInt(rooms.size())));\n room.connectWest(rooms.get(rand.nextInt(rooms.size())));\n } \n return entrance; \n }",
"static Room randomWorld(String fileName, Random rand) throws IOException {\n Scanner fileIn = new Scanner(new File(fileName));\n ArrayList<Room> rooms = new ArrayList<Room>();\n \n // first create the rooms and their content - first room is the entrance room\n Room entrance = new Room(fileIn.nextLine());\n addStuff(entrance, fileIn);\n rooms.add(entrance);\n \n // add more rooms\n while (fileIn.hasNextLine()) {\n String name = fileIn.nextLine();\n if (name.equals(\"*****\")) break; // YUK!\n else {\n Room room = new Room(name);\n addStuff(room, fileIn);\n rooms.add(room); \n }\n }\n \n // now connect the rooms randomly\n for (Room room : rooms) {\n room.connectNorth(rooms.get(rand.nextInt(rooms.size())));\n room.connectEast(rooms.get(rand.nextInt(rooms.size())));\n room.connectSouth(rooms.get(rand.nextInt(rooms.size())));\n room.connectWest(rooms.get(rand.nextInt(rooms.size())));\n } \n return entrance; \n }",
"public static void main(String[] args) throws IOException {\n RJEReader reader = new RJEReader(Lib.readResource(\"mt103.rje\", null));\n\n /*\n * Iterate the reader\n */\n while (reader.hasNext()) {\n /*\n * Read the message.\n */\n //System.out.println(reader.next());\n AbstractMT msg = reader.nextMT();\n\n if (msg.isType(103)) {\n\n /*\n * Specialize the message\n */\n MT103 mt = (MT103) msg;\n\n /*\n * Print some content from message\n *\n * Expected output:\n * Sender: FOOTUS3NBXXX\n * Receiver: BICFOOYYAXXX\n * Reference: FDF0510141142100\n * Value Date: 2005/10/14\n * Amount: USD 1814,28\n * --------------------------\n * Sender: FOOBESMMAXXX\n * Receiver: BICFOOYYAXXX\n * Reference: INGDESMM\n * Value Date: 2005/10/28\n * Amount: EUR 111222,33\n * --------------------------\n */\n System.out.println(\"Sender: \" + mt.getSender());\n System.out.println(\"Receiver: \" + mt.getReceiver());\n System.out.println(\"Reference: \" + mt.getField20().getValue());\n\n Field32A f = mt.getField32A();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n System.out.println(\"Value Date: \" + sdf.format(f.getDateAsCalendar().getTime()));\n System.out.println(\"Amount: \" + f.getCurrency() + \" \" + f.getAmount());\n System.out.println(\"--------------------------\");\n }\n }\n }",
"public String getRandomString(String template){\n reporter.info(\"Get random string for template: \"+ template);\n return RandomDataGenerator.getRandomField(template,RandomDataGenerator.DEFAULT_SEPARATOR);\n //return DataGenerator.getString(template);\n }",
"Rsp.Msg getMsg(int index);",
"public synchronized static String getRandomFilename()\n {\n // Reserve space to fill with random bytes\n\n byte bytes[] = new byte[20];\n\n secure_random.nextBytes(bytes);\n\n return convertRandomBytesToFileName(bytes);\n }",
"public ArrayList<String> Info_Disco_Mus_Rep1(String genero) {\r\n String line;\r\n ArrayList<String> Lista_datos_nombre_genero = new ArrayList();\r\n try (BufferedReader br = new BufferedReader(new FileReader(\"src/Archivos/cat_musica.txt\"))) {\r\n while ((line = br.readLine()) != null) {\r\n String[] info_disco = line.split(\";\");\r\n if (info_disco[2].equals(genero)) {\r\n Lista_datos_nombre_genero.add(info_disco[0]);\r\n }\r\n }\r\n } catch (IOException ex) {\r\n System.out.println(ex);\r\n }\r\n return Lista_datos_nombre_genero;\r\n }",
"private static String getPromptMessage(TorrentFile file) {\n return format(FORMAT_DOWNLOAD_PART, join(\"/\", file.getPathElements()));\n }",
"public static String getMessageType(TextMessage message) {\n JSONObject json = new JSONObject(message.getPayload());\n String type = json.keys().next();\n\n return type;\n }",
"public void run()\n {\n \n try {\n String Msg = \"\";\n ArrayList<String> tokens=new ArrayList<String>();\n while ((Msg = this.reader.readLine())!=null)\n {\n if(!tokens.isEmpty())\n {\n //not empty,clear.\n tokens.clear();\n\n }\n //check the msg\n System.out.println(\"Inside while, Received msg in client handler:\"+Msg);\n //all the meta datas are separated using :\n tokens.addAll(Constants.tokens(Msg, \":\"));\n //if it's a login request\n if(tokens.contains(Constants.LOGIN_ID))\n {\n this.userID=tokens.get(1);//the 2nd string of this format LOGIN_ID:username:password\n this.password=tokens.get(2);\n this.client_delegate.validate(this);\n }\n //if it's a log out request.\n if(tokens.contains(Constants.LOGOUT_ID))\n {\n this.client_delegate.logout(this);\n }\n //public room message\n if(tokens.contains(Constants.PUBLIC_ROOM))\n {\n \n if(tokens.get(1).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessage(tokens.get(1)+\":\"+tokens.get(2));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessage(tokens.get(1));\n }\n \n }\n //private message\n if(tokens.contains(Constants.MESSAGE_ID))\n {\n //private message\n if(tokens.get(2).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2)+\":\"+tokens.get(3), tokens.get(4));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2), tokens.get(3));\n }\n }\n if(tokens.contains(Constants.FILE))\n {\n this.client_delegate.sendFileTo(tokens.get(1), Integer.parseInt(tokens.get(2)), tokens.get(3));\n }\n \n \n\n }\n } catch (Exception ex) {\n System.out.printf(\"Error parsing message from client:%s.\",this.userID);\n }\n }",
"private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }",
"Message get(String id);",
"private ClientInfo getClientInfo(String clientID){\n\n ClientInfo clientInfo = new ClientInfo((clientID));\n\n String clientFile_name = clientID +\".txt\";\n\n File clientFile = new File(ServerInfoDir.CLIENTS_INFO_DIR, clientFile_name);\n\n try{\n //Create object of FileReader\n FileReader inputFile = new FileReader(clientFile);\n\n //Instantiate the BufferedReader Class\n BufferedReader bufferReader = new BufferedReader(inputFile);\n\n //Variable to hold the one line data\n String line = null, groupID = null, postname = null;\n String parts[], posts[];\n\n while ((line = bufferReader.readLine()) != null) {\n parts = line.split(\":\");\n\n clientInfo.subscribe(parts[0]);\n\n if(parts.length > 1) {\n posts = parts[1].split(\",\"); /*Get what the client has read in a group*/\n\n for (String str : posts)\n clientInfo.readPost(parts[0], str);\n }\n\n }\n\n bufferReader.close();\n }catch(Exception e){\n System.out.println(\"Error while reading file:\" + e.getMessage());\n }\n\n\n return clientInfo;\n }",
"@Override\n\tpublic void process(ChannelHandlerContext ctx, BaseMessage baseMessage) throws IOException {\n\t\tCompleteMsg completeMsg = new CompleteMsg(baseMessage);\n\t\tFtsTask ftsTask = TaskMgr.getTask(completeMsg.getUuid());\n\t\tString filename = ftsTask.getFtsFile().getFileNameto();\n\t\tString filepath = ftsTask.getFtsFile().getFilePathto();\n\t\tString fileorgname = filename + ftsTask.getFtsFile().getFilesuffix();\n\t\tCompleteMsg completeMsg2;\n\t\tif (ftsTask != null) {\n\t\t\tlogger.info(\"File Recv Complete!\");\n\t\t\tif (ftsTask.getFtsFile().isOverWrite() && new File(filepath + \"\\\\\" + filename).exists()) {\n\t\t\t\tnew File(filepath + \"\\\\\" + filename).delete();\n\t\t\t\tlogger.info(\"Same Name File Deleted!\");\n\t\t\t}\n\t\t\tif (new File(filepath + \"\\\\\" + filename).exists()) {\n\t\t\t\tcompleteMsg2 = new CompleteMsg(completeMsg.getUuid(), false, \"file exits\");\n\t\t\t\tlogger.error(\"File Exits not OverWrite!\");\n\t\t\t} else {\n\t\t\t\tFile file = new File(filepath + \"\\\\\" + fileorgname);\n\t\t\t\tif (file.exists()) {\n\t\t\t\t\tif (FileUtils.getFileHash(ftsTask.getHashType(), filepath + \"\\\\\" + fileorgname, 0L).equalsIgnoreCase(ftsTask.getHashCode())) {\n\t\t\t\t\t\tfile.renameTo(new File(filepath + \"\\\\\" + filename));\n\t\t\t\t\t\tlogger.info(\"File CheckSum OK! HashCode->\" + ftsTask.getHashCode());\n\t\t\t\t\t\tcompleteMsg2 = new CompleteMsg(completeMsg.getUuid(), true, \"ok\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcompleteMsg2 = new CompleteMsg(completeMsg.getUuid(), false, \"file check sum error\");\n\t\t\t\t\t\tfile.delete();\n\t\t\t\t\t\tlogger.info(\"Temp File Check Sum Error ,Deleted!\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tcompleteMsg2 = new CompleteMsg(completeMsg.getUuid(), false, \"file not found!\");\n\t\t\t\t\tlogger.error(\"File Not Found! FileInfo->\" + ftsTask.getFtsFile());\n\t\t\t\t}\n\t\t\t}\n\t\t\tctx.writeAndFlush(completeMsg2);\n\t\t\tTaskMgr.removeTask(ftsTask.getUuid());\n\t\t}\n\n\t}",
"public static BufferedSound getSound(String path, int type) {\n\t\tif (sounds.containsKey(path)) {\n\t\t\treturn sounds.get(path);\n\t\t}\n\t\ttry (InputStream is = Assets.class.getResourceAsStream(path)) {\n\t\t\tif (is != null) {\n\t\t\t\tBufferedSound sound = new BufferedSound(is, type);\n\t\t\t\tsounds.putIfAbsent(path, sound);\n\t\t\t\treturn sound;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"IMMIME(String sMIMEFileName)\r\n {\r\n if (sMIMEFileName.startsWith(\"mime.Windows\"))\r\n sMIMEFileName = \"mime.Windows\";\r\n\r\n try\r\n {\r\n m_hashTable = new Hashtable();\r\n m_hashTableExt = new Hashtable();\r\n\r\n BufferedReader in = \r\n new BufferedReader(new InputStreamReader(\r\n IMMIME.class.getResourceAsStream(sMIMEFileName), CHAR_ENCODING));\r\n\r\n while (in.ready()) \r\n {\r\n String szTemp = in.readLine();\r\n\r\n // Checks for the comment line.\r\n if((szTemp.trim().length() == 0) ||\r\n (szTemp.charAt(0) == '#'))\r\n continue;\r\n\r\n StringTokenizer st = new StringTokenizer(szTemp);\r\n\r\n String szMIMEType = st.nextToken();\r\n String szPlayer = null;\r\n String szExt = null;\r\n\r\n // Gets the player if it exists.\r\n if (st.hasMoreElements()) \r\n {\r\n szPlayer = st.nextToken();\r\n\r\n // Gets the filename extension if it exists.\r\n if (st.hasMoreElements()) \r\n szExt = st.nextToken();\r\n }\r\n\r\n // Stores them into the hash table.\r\n if (szPlayer != null)\r\n m_hashTable.put(szMIMEType, szPlayer);\r\n if (szExt != null)\r\n m_hashTableExt.put(szMIMEType, \".\"+szExt);\r\n }\r\n\r\n in.close();\r\n }\r\n catch (Exception e)\r\n {\r\n new IMMessage(IMConstants.WARNING, \"NO_MIME_CONF\", e);\r\n }\r\n }",
"public static IpMessage analysisFileType(String remote, FileStructForBinder fileTransfer) {\n String fileName = fileTransfer.fileName;\n if (fileName != null) {\n String mimeType = MediaFile.getMimeTypeForFile(fileName);\n if (mimeType == null) {\n mimeType = MimeTypeMap.getSingleton().getMimeTypeFromExtension(\n Utils.getFileExtension(fileName));\n }\n if (mimeType != null) {\n if (mimeType.contains(Utils.FILE_TYPE_IMAGE)) {\n return new PluginIpImageMessage(fileTransfer, remote);\n } else if (mimeType.contains(Utils.FILE_TYPE_AUDIO)\n || mimeType.contains(\"application/ogg\")) {\n return new PluginIpVoiceMessage(fileTransfer, remote);\n } else if (mimeType.contains(Utils.FILE_TYPE_VIDEO)) {\n return new PluginIpVideoMessage(fileTransfer, remote);\n } else if (fileName.toLowerCase().endsWith(\".vcf\")) {\n return new PluginIpVcardMessage(fileTransfer, remote);\n } else {\n // Todo\n Logger.d(TAG, \"analysisFileType() other type add here!\");\n }\n }\n } else {\n Logger.w(TAG, \"analysisFileType(), file name is null!\");\n }\n return new PluginIpAttachMessage(fileTransfer, remote);\n }",
"public abstract MessageType getType();"
] | [
"0.5753247",
"0.5593399",
"0.54552853",
"0.5321626",
"0.5315495",
"0.5205512",
"0.52054566",
"0.5198405",
"0.5194884",
"0.51843446",
"0.5158554",
"0.50920457",
"0.5079871",
"0.5063669",
"0.5042158",
"0.5041736",
"0.5039787",
"0.5016215",
"0.49992588",
"0.49916524",
"0.49816847",
"0.49801347",
"0.49750277",
"0.49631238",
"0.4947615",
"0.4904157",
"0.4899469",
"0.48850563",
"0.48746878",
"0.4849625",
"0.48344746",
"0.48338103",
"0.48259366",
"0.4825832",
"0.4810508",
"0.4806607",
"0.47996488",
"0.47981825",
"0.47978616",
"0.47959188",
"0.4793682",
"0.47873107",
"0.47644064",
"0.47644064",
"0.4759563",
"0.4748544",
"0.474472",
"0.47444132",
"0.47423843",
"0.47414365",
"0.4728013",
"0.47259647",
"0.47259647",
"0.472001",
"0.4718103",
"0.4716634",
"0.47090417",
"0.47017756",
"0.47013873",
"0.46994612",
"0.469019",
"0.46869987",
"0.46695745",
"0.46690995",
"0.46634638",
"0.4660874",
"0.46495283",
"0.4641379",
"0.46408105",
"0.46404183",
"0.46301132",
"0.46300882",
"0.46245587",
"0.46240997",
"0.46191654",
"0.46162665",
"0.4606288",
"0.46008515",
"0.45974746",
"0.45940867",
"0.45906374",
"0.45894536",
"0.45804206",
"0.45804206",
"0.45685205",
"0.4567348",
"0.4559228",
"0.4552004",
"0.45518398",
"0.45491797",
"0.45454985",
"0.45377257",
"0.45342782",
"0.45333797",
"0.45272127",
"0.45228785",
"0.45215642",
"0.4518803",
"0.45156288",
"0.45029095"
] | 0.59985733 | 0 |
Get mode from file by random type | public String getModeByArrayTypeRandom(int...type){
ArrayList<String> array = new ArrayList<String>();
Random randomGenerator = new Random();
for (int j = 0; j<type.length; j++){
for(int i = 0; i<this.type.size(); i++)
{
if(this.type.get(i) == type[j]) {
array.add(this.mode.get(i));
}
}
}
int index = randomGenerator.nextInt(array.size());
String mode = array.get(index);
info("Mode is: "+mode);
return mode;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static FileIOMode valueOf(int mode){\r\n\t\tswitch(mode){\r\n\t\t\tcase 0: return NON_STREAM;\r\n\t\t\tcase 1: return STREAM;\r\n\t\t\tcase 2: return BOTH;\r\n\t\t\tcase -1: return NONE;\r\n\t\t\tdefault: return null;\r\n\t\t}\r\n\t}",
"public static int fileType(File file) {\n for (String type : imageType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_IMAGE_CODE;\n }\n }\n\n for (String type : videoType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.CAMERA_VIDEO_CODE;\n }\n }\n\n for (String type : audioType) {\n if (file.getName().toLowerCase().endsWith(type)) {\n return Template.Code.AUDIO_CODE;\n }\n }\n return Template.Code.FILE_MANAGER_CODE;\n\n }",
"private int getFileType(String fileName) {\n\t\tString[] buffer = fileName.split(\"\\\\.\");\n\t\tif (buffer[buffer.length - 1].equals(\"txt\"))\n\t\t\treturn 0;\n\t\telse if (buffer[buffer.length - 1].equals(\"pdf\"))\n\t\t\treturn 1;\n\t\telse if (buffer[buffer.length - 1].equals(\"jpg\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"png\"))\n\t\t\treturn 2;\n\t\telse if (buffer[buffer.length - 1].equals(\"mp3\"))\n\t\t\treturn 3;\n\t\telse if (buffer[buffer.length - 1].equals(\"avi\")\n\t\t\t\t|| buffer[buffer.length - 1].equals(\"mp4\"))\n\t\t\treturn 4;\n\t\telse\n\t\t\treturn -1;\n\t}",
"public int getClienteType(String filename){\r\n\t\tFile file = new File(filename+\".csv\");\r\n\t\tint type = 0;\r\n\t\ttry {\r\n\t\t\tScanner fr = new Scanner(file);\r\n\t\t\tfr.nextLine();\r\n\t\t\tString s = fr.nextLine();\r\n\t\t\ttype = Integer.parseInt(s);\r\n\t\t\tfr.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\tSystem.out.print(\"Um erro ocorreu!\");\r\n\t\t}\r\n\t\t\r\n\t\treturn type;\r\n\t}",
"java.lang.String getMode();",
"public int lookupReadFileExtension(String extension);",
"private String getTypeFromExtension()\n {\n String filename = getFileName();\n String ext = \"\";\n\n if (filename != null && filename.length() > 0)\n {\n int index = filename.lastIndexOf('.');\n if (index >= 0)\n {\n ext = filename.substring(index + 1);\n }\n }\n\n return ext;\n }",
"String getFileMimeType();",
"public Integer getFileType() {\n return fileType;\n }",
"public abstract int getMode();",
"public String getTokenType()\n {\n String tokenType = \"\";\n try\n {\n FileReader fileReader = new FileReader(getCache(\"tokenType\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n tokenType = bufferedReader.readLine();\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n return tokenType;\n }",
"public String getInodePermissions(short fileMode)\n {\n\n\n StringBuilder inodeType = new StringBuilder();\n StringBuilder permissions = new StringBuilder();\n\n\n for(int i = 0; i < fileModes.length; i++)\n {\n if(fileMode(fileMode, fileModes[i]))\n {\n inodeType.append(getFileModeString(fileModes[i]));\n }\n }\n\n for(int i = 0; i < filePermissions.length; i++)\n {\n if(fileMode(fileMode, filePermissions[i]))\n {\n permissions.append(getFilePermission(filePermissions[i]));\n }\n else\n {\n permissions.append(\"-\");\n }\n }\n return inodeType.toString() + permissions.toString();\n }",
"@Test\n public void testGetFileType() {\n System.out.println(\"getFileType\");\n String file = \"adriano.pdb\";\n String expResult = \"pdb\";\n String result = Util.getFileType(file);\n assertEquals(expResult, result);\n }",
"public String getFileType()\n {\n if (m_fileOptions.m_type == null ||\n m_fileOptions.m_type.length() <= 0)\n {\n return getTypeFromExtension();\n }\n\n return m_fileOptions.m_type;\n }",
"public int lookupReadMimeType(String mimeType);",
"public IoMode getMode() {\r\n\t\treturn this.mode;\r\n\t}",
"public String getReadMimeType(int formatIndex);",
"public Mode getMode() {\n\t\tPointer mode_ptr = binding_tv.get_type_mode(ptr);\n\t\tif (mode_ptr == null)\n\t\t\treturn null;\n\t\treturn new Mode(mode_ptr);\n\t}",
"public String getAttachFileByArrayTypeRandom(int...type){\n\t\tArrayList<String> arrayAttachFile = new ArrayList<String>();\n\t\tRandom randomGenerator = new Random();\n\t\tfor (int j = 0; j<type.length; j++){\n\t\t\tfor(int i = 0; i<this.type.size(); i++)\n\t\t\t{\t\n\t\t\t\tif(this.type.get(i) == type[j]) {\n\t\t\t\t\tarrayAttachFile.add(this.attachName.get(i));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint index = randomGenerator.nextInt(arrayAttachFile.size());\n\t\tString attachFile = arrayAttachFile.get(index);\n\t\tinfo(\"AttachFile is: \"+attachFile);\n\t\treturn attachFile;\n\t}",
"public static FileType get(int value) {\n\t\tswitch(value) {\n\t\t\tcase DETECT_VALUE:\n\t\t\t\treturn DETECT;\n\t\t\tcase PUPPET_ROOT_VALUE:\n\t\t\t\treturn PUPPET_ROOT;\n\t\t\tcase MODULE_ROOT_VALUE:\n\t\t\t\treturn MODULE_ROOT;\n\t\t\tcase SINGLE_SOURCE_FILE_VALUE:\n\t\t\t\treturn SINGLE_SOURCE_FILE;\n\t\t}\n\t\treturn null;\n\t}",
"public static String randomAccessRead() {\n String s = \"\";\n try {\n RandomAccessFile f = new RandomAccessFile(FILES_TEST_PATH, \"r\");\n f.skipBytes(14);\n s = f.readLine();\n f.close();\n } catch(Exception e) {\n e.printStackTrace();\n }\n return s;\n }",
"private static String pickRoom(char type) {\n String path = ROOT_ROOM_PATH;\n switch(type) {\n case(LayoutGenerator.START):\n path += START_ROOM_PATH + LayoutGenerator.START;\n break;\n case(LayoutGenerator.FINISH):\n path += FINISH_ROOM_PATH + LayoutGenerator.FINISH;\n break;\n case(LayoutGenerator.TREASURE):\n path += TREASURE_ROOM_PATH + LayoutGenerator.TREASURE;\n break;\n default: // If somehow a weird char is inputted\n case(LayoutGenerator.NORMAL):\n path += NORMAL_ROOM_PATH + LayoutGenerator.NORMAL;\n break;\n case(LayoutGenerator.ENEMY):\n path += ENEMY_ROOM_PATH + LayoutGenerator.ENEMY;\n break;\n case(LayoutGenerator.DOOR):\n path += DOOR_ROOM_PATH + LayoutGenerator.DOOR;\n break;\n case(LayoutGenerator.KEY):\n path += KEY_ROOM_PATH + LayoutGenerator.KEY;\n break;\n\n }\n\n // At this point, the path should be \"src/rooms/[type]/[type char]\"\n // All files start with the char of its type and a number\n\n int numFiles = new File(path.substring(0, path.length() - 2)).listFiles().length;\n Random rand = new Random();\n path += rand.nextInt(numFiles) + \".txt\";\n\n return path;\n }",
"public String getFileType(){\n\t\treturn type;\n\t}",
"public static native void chmod(String path, int mode) throws IOException;",
"public String getReadFileExtension(int formatIndex);",
"public static FileType valueOf(File file){\r\n\t\tString fileName = file.getName().toUpperCase();\r\n\t\treturn FileType.valueOf(fileName.substring(fileName.lastIndexOf(\".\")+1));\r\n\t}",
"public String getFILE_TYPE() {\r\n return FILE_TYPE;\r\n }",
"public int value() { return mode; }",
"public java.lang.String getFiletype() {\n return filetype;\n }",
"public String getFiletype() {\n return filetype;\n }",
"public Mode getMode();",
"private static native int native_chmod( String path, int mode );",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n mode_ = s;\n }\n return s;\n }\n }",
"public int lookupWriteFileExtension(String extension);",
"private int getModTypeFromPosition(int position) {\n int modTypePosition = position + (isIdle ? 1 : 0); // If this is an idle image, increase the \"mod type position\" (i.e. skip the \"single slice\" option)\n\n switch (modTypePosition) {\n case 0:\n return Constants.SINGLE_SLICE;\n case 1:\n return Constants.REPEAT_SLICE;\n case 2:\n return Constants.REPEAT_PATTERN;\n default:\n return Constants.SINGLE_SLICE;\n }\n }",
"public static FileType get(String literal) {\n\t\tfor(int i = 0; i < VALUES_ARRAY.length; ++i) {\n\t\t\tFileType result = VALUES_ARRAY[i];\n\t\t\tif(result.toString().equals(literal)) {\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"String[] getFileTypes();",
"public RandomAccessFile getCases() {\n \n return cases;\n}",
"protected FileType doGetType()\n {\n return m_type;\n }",
"public com.google.protobuf.ByteString\n getModeBytes() {\n java.lang.Object ref = mode_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n mode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"private String getMimeType(String aFilename) {\n String extension = aFilename.substring(aFilename.length() - 3, aFilename.length()).toUpperCase();\n\n if (extension.equals(\"AMR\")) {\n return \"audio/AMR\";\n }\n //DuongNT add\n if (extension.equals(\"WAV\")) {\n return \"audio/X-WAV\";\n } else {\n return \"audio/midi\";\n }\n }",
"private Map<String, ArrayList<Integer>> createModes(String file) throws FileNotFoundException {\n Map<String, ArrayList<Integer>> tempModes = new HashMap<String, ArrayList<Integer>>();\n Scanner modeScan = new Scanner(new File(file));\n while (modeScan.hasNextLine()) {\n Scanner line = new Scanner(modeScan.nextLine());\n String name = line.next();\n ArrayList<Integer> notes = new ArrayList<Integer>();\n while (line.hasNextInt()) {\n notes.add(line.nextInt());\n }\n tempModes.put(name, notes);\n }\n return tempModes;\n }",
"public com.google.protobuf.ByteString\n getModeBytes() {\n java.lang.Object ref = mode_;\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 mode_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String getMode()\n {\n return mode.toString();\n }",
"public String getFileType() {\n return fileType;\n }",
"int getOperatingMode();",
"public java.lang.String getMode() {\n java.lang.Object ref = mode_;\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 if (bs.isValidUtf8()) {\n mode_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public static TransferMode getTransferMode(byte[] data, int length) {\n\n\t\tint seperator = getFilename(data, length).getBytes().length + 3; // The location\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of the 0\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// separating\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// filename\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// and mode\n\n\t\tfor (int i = seperator; i < length; i++) {\n\t\t\tif (data[i] == 0) { // stop once encountering a 0 byte\n\t\t\t\tif (i != seperator) { // if the iterator didn't progress return\n\t\t\t\t\t\t\t\t\t\t// invalid (ie. zero length mode)\n\t\t\t\t\treturn TransferMode\n\t\t\t\t\t\t\t.valueOf(new String(data, seperator, i - getFilename(data, length).getBytes().length - 3));\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn TransferMode.INVALID;\n\t}",
"public int getMode() {\n\t\treturn this.mode;\n\t}",
"private String fileType(String username,String folderName,String fileName){\n //从数据库中获取用户ID\n int userId=userService.getUserIdByname(username);\n //根据用户ID和文件夹名获取文件夹ID\n int folderId=folderService.getFolderIdByName(folderName,userId);\n //根据文件夹id和文件夹名获取文件实体,再取出type\n String fileType= tableService.getTableByName(fileName,folderId).getType();\n return fileType;\n }",
"public static String getFileType(){\n\t\t//Get the selected file type\n\t\tString type = (String) fileType.getSelectedItem();\n\t\t//Re-enable the combobox, since download has already started\n\t\tfileType.setEnabled(true);\n\t\t//Reset the default file type\n\t\tfileType.setSelectedIndex(0);\n\t\treturn type;\n\t}",
"String kind();",
"String kind();",
"public int getMode() {\n return mode;\n }",
"com.google.protobuf.ByteString\n getModeBytes();",
"public int getIOReg(String n) {\n return layout.getIOReg(n);\n }",
"public String getMimeType(String extension, String def) throws IOException {\n byte[] type = new byte[128];\n byte[] buf = new byte[16];\n byte[] ext = extension.toLowerCase().getBytes(\"ASCII\");\n int state = 1;\n int x = 0;\n int t = 0;\n for (int off = 0; off < this.inLen; off++) {\n byte ch = this.in[off];\n switch (state) {\n case 1:\n if (!(ch == (byte) 32 || ch == (byte) 9)) {\n if (ch == (byte) 35) {\n state = 2;\n break;\n }\n state = 3;\n }\n case 2:\n if (ch != (byte) 10) {\n break;\n }\n x = 0;\n t = 0;\n state = 1;\n break;\n case 3:\n if (ch != (byte) 32 && ch != (byte) 9) {\n int t2 = t + 1;\n type[t] = ch;\n t = t2;\n break;\n }\n state = 4;\n break;\n case 4:\n if (!(ch == (byte) 32 || ch == (byte) 9)) {\n state = 5;\n }\n case 5:\n switch (ch) {\n case (byte) 9:\n case SmbConstants.DEFAULT_MAX_MPX_COUNT /*10*/:\n case (byte) 32:\n case (byte) 35:\n int i = 0;\n while (i < x && x == ext.length && buf[i] == ext[i]) {\n i++;\n }\n if (i != ext.length) {\n if (ch == (byte) 35) {\n state = 2;\n } else if (ch == (byte) 10) {\n x = 0;\n t = 0;\n state = 1;\n }\n x = 0;\n break;\n }\n return new String(type, 0, t, \"ASCII\");\n break;\n default:\n int x2 = x + 1;\n buf[x] = ch;\n x = x2;\n break;\n }\n default:\n break;\n }\n }\n return def;\n }",
"public int getMode()\r\n {\r\n Bundle b = getArguments();\r\n return b.getInt(PARAM_MODE);\r\n }",
"public com.good.gd.file.RandomAccessFile getRandomAccessFile(String fileName, String mode)\n throws FileNotFoundException {\n return new com.good.gd.file.RandomAccessFile(fileName, mode);\n }",
"String getFileExtension();",
"public void testGetType_1()\n\t\tthrows Exception {\n\t\tFiles fixture = new Files();\n\t\tfixture.setAbsolutePath(\"\");\n\t\tfixture.setType(\"\");\n\t\tfixture.setReadable(\"\");\n\t\tfixture.setSize(\"\");\n\t\tfixture.setWritable(\"\");\n\t\tfixture.setExecutable(\"\");\n\t\tfixture.setMtime(\"\");\n\n\t\tString result = fixture.getType();\n\n\t\t\n\t\tassertEquals(\"\", result);\n\t}",
"public Long getFiletypeForFileFormat(String fileformat)\r\n\t\t\tthrows ProcessingException;",
"public final Modes getMode() {\n return mode;\n }",
"public final EnumModesBase getMode() {\r\n\t\treturn this.mode;\r\n\t}",
"public String getMode()\n {\n return mode;\n }",
"public static FileType getType(final File file) {\n if (FileUtils.isLink(file)) {\n return SYMLINK;\n } else if (file.isDirectory()) {\n return DIRECTORY;\n } else if (file.isFile()) {\n return FILE;\n }\n return FILE;\n }",
"public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }",
"public abstract String getFileFormatName();",
"public String getMode() {\n return mode;\n }",
"public String getMode() {\n return mode;\n }",
"String getFileExtensionByFileString(String name);",
"public int getMode() {\n return this.mode;\n }",
"private FileType getFileType(String name) {\n\t\tif(name==null)\n\t\t\treturn null;\n\t\tfor(FileType fileType: fileTypes){\n\t\t\tif(name.startsWith(fileType.getFileNamePrefix())){\n\t\t\t\treturn fileType;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public java.nio.channels.FileChannel getChannel() {\n return this.randomAccessFile.getChannel();\n }",
"private void getDetailsOfFiles(){\n\t\tString path = tfile.getAbsolutePath();\n\t\t\n\t\ttype = path.substring(path.lastIndexOf('.')+1);\n\t\t\n\t\tif(path.contains(\"/\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"/\")+1);\n\t\t}else if(path.contains(\"\\\\\")){\n\t\t\tfileName = path.substring(path.lastIndexOf(\"\\\\\")+1);\n\t\t}\n\t}",
"private int getFileType(SourceFile sourceFile)\n\t{\n\t\tString name = sourceFile.getName();\n\t\tString pkg = sourceFile.getPackageName();\n\n\t\tif (name.startsWith(\"<\") && name.endsWith(\">\") || name.equals(\"GeneratedLocale\")) //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t\t\treturn SYNTHETIC_FILE;\n\n for (final String frameworkPkg : FRAMEWORK_FILE_PACKAGES )\n {\n // look for packages starting with pkgName\n if (pkg.startsWith(frameworkPkg + '\\\\') || //$NON-NLS-1$\n pkg.startsWith(frameworkPkg + '/') || //$NON-NLS-1$\n pkg.equals(frameworkPkg)) //$NON-NLS-1$\n {\n return FRAMEWORK_FILE;\n }\n }\n\n if (name.startsWith(\"Actions for\")) //$NON-NLS-1$\n return ACTIONS_FILE;\n\n return AUTHORED_FILE;\n}",
"private String getMode(Resource renderletDef) {\n\t\tIterator<Triple> renderletModeIter = configGraph.filter(\n\t\t\t\t(NonLiteral) renderletDef, TYPERENDERING.renderingMode, null);\n\t\tif (renderletModeIter.hasNext()) {\n\t\t\tTypedLiteral renderletMode = (TypedLiteral) renderletModeIter.next().getObject();\n\t\t\treturn LiteralFactory.getInstance().createObject(String.class,\n\t\t\t\t\trenderletMode);\n\t\t}\n\t\treturn null;\n\t}",
"String getContentType(String fileExtension);",
"FileFormat getFormat();",
"public String getAttachFileRandom(){\n\t\tRandom randomGenerator = new Random();\n\t\tint index = randomGenerator.nextInt(this.attachName.size());\n\t\tString attachFile = this.attachName.get(index);\n\t\treturn attachFile;\n\t}",
"public int lookupWriteMimeType(String mimeType);",
"public abstract String getFileExtension();",
"public RandomAccessFile getFile()\n {\n \treturn f;\n }",
"public T mode();",
"private int evaluateType(byte[] header) {\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_UNIX, header, MAGIC_OFFSET, MAGICLEN)) {\n return UNIX_FORMAT;\n }\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_POSIX, header, MAGIC_OFFSET, MAGICLEN)) {\n return POSIX_FORMAT;\n }\n if (ArchiveUtils.matchAsciiBuffer(MAGIC_GNU, header, MAGIC_OFFSET, MAGICLEN)) {\n return GNU_FORMAT;\n }\n return 0;\n }",
"public TFileType getFileType() {\n\n\t\treturn type;\n\t}",
"public CamMode getCamMode() {\n NetworkTableEntry camMode = m_table.getEntry(\"camMode\");\n double cam = camMode.getDouble(0.0);\n CamMode mode = CamMode.getByValue(cam);\n return mode;\n }",
"public String getMode(){\r\n\t\treturn mode;\r\n\t}",
"public FileType getFileType() {\n return fileType;\n }",
"private static ModeFlags getModesFromChannel(Channel channel) throws InvalidValueException {\n ModeFlags modes;\n if (channel instanceof ReadableByteChannel) {\n if (channel instanceof WritableByteChannel) {\n modes = new ModeFlags(RDWR);\n } else {\n modes = new ModeFlags(RDONLY);\n }\n } else if (channel instanceof WritableByteChannel) {\n modes = new ModeFlags(WRONLY);\n } else {\n // FIXME: I don't like this\n modes = new ModeFlags(RDWR);\n }\n \n return modes;\n }",
"protected int getFilePriority(File file) {\n \treturn 1;\n }",
"private static String getRandomType(){\r\n int index = r.nextInt(typeOfRooms.length);\r\n return typeOfRooms[index];\r\n }",
"public String getWriteFileExtension(int formatIndex);",
"public static File promptFileOpen(String title, String typeInfo, String extension) {\n return promptFileOpenExtensions(title, typeInfo, extension);\n }",
"File openFile();",
"public static LoaderType loadFilePatternLoaderType(Preferences pref, String key, String def) {\n String res = pref.get(key, def);\n\n LoaderType type = LoaderType.valueOf(res.toUpperCase());\n\n if (type == null) {\n Log.msg(LogType.MANDATORY, \"Error parsing preferences: \" + key + \" must be valid LoaderType\");\n }\n\n return type;\n }",
"public String getContentTypeFor(String fileName)\r\n {\r\n String ret_val = null;\r\n\r\n if(fileName.toUpperCase().endsWith(\".PNG\"))\r\n ret_val = \"image/png\";\r\n else if(fileName.toUpperCase().endsWith(\".TIF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TIFF\"))\r\n ret_val = \"image/tiff\";\r\n else if(fileName.toUpperCase().endsWith(\".TGA\"))\r\n ret_val = \"image/targa\";\r\n else if(fileName.toUpperCase().endsWith(\".BMP\"))\r\n ret_val = \"image/bmp\";\r\n else if(fileName.toUpperCase().endsWith(\".PPM\"))\r\n ret_val = \"image/x-portable-pixmap\";\r\n else if(fileName.toUpperCase().endsWith(\".PGM\"))\r\n ret_val = \"image/x-portable-graymap\";\r\n\r\n // handle previous filename maps\r\n if(ret_val == null && prevMap != null)\r\n return prevMap.getContentTypeFor(fileName);\r\n\r\n // return null if unsure.\r\n return ret_val;\r\n }",
"protected abstract String getFileExtension();",
"public String openFile() {\n\t\t\n\t\tString chosenFile = \"\";\n\t\treturn chosenFile;\n\t\t\n\t}",
"String getMimeType();"
] | [
"0.5901427",
"0.5848196",
"0.5715686",
"0.54570687",
"0.5456189",
"0.5377375",
"0.52813303",
"0.52782154",
"0.52566355",
"0.51885027",
"0.5186996",
"0.51721925",
"0.5153644",
"0.5133552",
"0.51124954",
"0.5074389",
"0.50309837",
"0.5013837",
"0.5003754",
"0.49750438",
"0.4968015",
"0.4949335",
"0.49461278",
"0.49366537",
"0.49317464",
"0.49281847",
"0.49240884",
"0.48945975",
"0.48926094",
"0.48844144",
"0.48780665",
"0.48730826",
"0.4831397",
"0.48295707",
"0.4818847",
"0.48113346",
"0.4806665",
"0.48013777",
"0.4800021",
"0.47736126",
"0.47733524",
"0.4771163",
"0.4762984",
"0.47583553",
"0.47492048",
"0.47367886",
"0.47345877",
"0.47218704",
"0.4714567",
"0.47072765",
"0.47041765",
"0.47027147",
"0.47027147",
"0.47015202",
"0.47005054",
"0.46958214",
"0.46854657",
"0.46764857",
"0.46733007",
"0.46730703",
"0.46730226",
"0.4655059",
"0.46538478",
"0.46355405",
"0.4632664",
"0.4630417",
"0.46252376",
"0.46196097",
"0.4616764",
"0.4616764",
"0.4616014",
"0.4615366",
"0.46022892",
"0.45945176",
"0.45894775",
"0.45838878",
"0.45818713",
"0.4577907",
"0.45762128",
"0.45693374",
"0.45648298",
"0.45638004",
"0.45612818",
"0.45489427",
"0.45414877",
"0.45411786",
"0.45411572",
"0.45405805",
"0.45389023",
"0.45284373",
"0.45262355",
"0.452463",
"0.45182228",
"0.45029187",
"0.4496099",
"0.44937885",
"0.4493259",
"0.44927233",
"0.44867638",
"0.4486328"
] | 0.5700248 | 3 |
. Create a new History node object | public final void addHistoryNode(final ShapePicaso shape,
final int operation, final Object newHist,
final Object oldHist) {
if (newHist instanceof SceneCoordinates
&& operation == Operations.MOVE) {
SceneCoordinates newVal = (SceneCoordinates) newHist;
SceneCoordinates oldVal = (SceneCoordinates) oldHist;
HistoryNode node = new HistoryNode(shape,
operation, newVal, oldVal);
this.historyManager.addNewRecord(node);
} else if (newHist instanceof HorizontalAndVerticalScales
&& operation == Operations.RESIZE) {
HorizontalAndVerticalScales newVal =
(HorizontalAndVerticalScales) newHist;
HorizontalAndVerticalScales oldVal =
(HorizontalAndVerticalScales) oldHist;
HistoryNode node = new HistoryNode(shape,
operation, newVal, oldVal);
this.historyManager.addNewRecord(node);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private History() {}",
"public History() {\n }",
"public History(History historyData) {\n\tthis.timestampMinute = historyData.getTimestampMinute();\n\tthis.status = historyData.getStatus();\n\tthis.plug = historyData.getPlug();\n }",
"public HistoryGraph() {\n revisions = new HashSet<Revision>();\n orderedRevisions = new ArrayList<Revision>();\n }",
"public static SyncHistory createEntity() {\n return new SyncHistory();\n }",
"private static void createHistoryEntry(int docId, String username, String eventType) {\r\n History history = new History();\r\n history.setDocId(docId);\r\n history.setDate(DateBean.toCompactString());\r\n history.setUsername(username);\r\n history.setEvent(eventType);\r\n HistoryDAO historyDao = (HistoryDAO) Context.getInstance().getBean(HistoryDAO.class);\r\n historyDao.store(history);\r\n }",
"public UpdateHistory() {\n this(\"update_history\", null);\n }",
"protected abstract void createHistoryEvents();",
"public CommandHistoryLinkedList() {\r\n\t\thistoryDate = new LinkedList<String>();\r\n\t\thistoryAL = new LinkedList<ArrayList<String>>();\r\n\t}",
"private void setHistory(final CreateUrlRequest request)\n {\n String token = Session.getInstance().generateUrl(request);\n History.newItem(token, true);\n }",
"public final void addHistoryNode(final ShapePicaso shape,\n\t\t\tfinal int operation) {\n\t\tif (operation == Operations.DELETE\n\t\t\t\t|| operation == Operations.DRAW) {\n\t\t\tHistoryNode node = new HistoryNode(shape, operation);\n\t\t\tthis.historyManager.addNewRecord(node);\n\t\t}\n\t}",
"public BrowserHistory(String homepage) {\n head = new Node(homepage);\n current = head;\n }",
"private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }",
"public History(\n Long historyId,\n @JsonProperty(\"inspector_id\") Long inspectorId,\n @JsonProperty(\"estate_id\") Long estateId,\n @JsonProperty(\"view_date\") Timestamp viewDate\n ) {\n this.historyId = historyId;\n this.inspectorId = inspectorId;\n this.estateId = estateId;\n this.viewDate = viewDate;\n }",
"public IapHistory() {\n\t\tthis(\"iap_history\", null);\n\t}",
"private Object appendHistory(final Context ctx, final NumberMgmtHistory history) throws HomeException,\r\n HomeInternalException\r\n {\r\n final Home home = getHome(ctx);\r\n if (!validate(ctx, history))\r\n {\r\n return null;\r\n }\r\n return home.create(ctx, history);\r\n }",
"public HistoryFragment() {\n }",
"public HistoryFragment() {\n }",
"LoginHistory create(LoginHistory entity);",
"TNode createTNode();",
"public BitHistory(BitHistory bitHistory) {\n mMaxSize = bitHistory.mMaxSize;\n mHistory.addAll(bitHistory.mHistory);\n }",
"public History() {\n\tthis.timestampMinute = new Date();\n\tthis.status = false;\n\n }",
"void createNode(NodeKey key);",
"private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public static HistoryFragment newInstance() {\n HistoryFragment fragment = new HistoryFragment();\n return fragment;\n }",
"void nodeCreate( long id );",
"public BuildHistory(){\n buildHistory = new ArrayList<Build>();\n }",
"public NotificationHistoryManager() {\n }",
"public void push(int new_data) {\n\t\tNode new_Node = new Node(new_data);//Create a new node with 7 as data.\n\t\tnew_Node.next = head; // Node's next Addr part points to the HEAD.\n\t\tnew_Node.prev = null; // Node's prev part is NULL.\n\t\tif (head != null)\n\t\t\thead.prev = new_Node; // Take the current HEAD Node and assign this newly created node's address to the current HEAD's prev part\n\t\thead = new_Node; // Make the current node as a new HEAD.\n\t}",
"public RecordObject createNode(String token, Object record) throws RestResponseException;",
"public History(String str, String str2, String str3) {\n super(str, str2, str3, null);\n j.b(str, \"title\");\n this.title = str;\n this.subtitle = str2;\n this.referrer = str3;\n }",
"public static BrowserHistoryNode addUrl(String webUrl) {\n if (BROWSER_HISTORY_LIST.isEmpty()) {\n BrowserHistoryNode firstItem = new BrowserHistoryNode(null, null, webUrl, 0);\n BROWSER_HISTORY_LIST.add(firstItem);\n return firstItem;\n } else {\n BrowserHistoryNode last = BROWSER_HISTORY_LIST.getLast();\n BrowserHistoryNode newNode = new BrowserHistoryNode(null, last, webUrl, BROWSER_HISTORY_LIST.size());\n BROWSER_HISTORY_LIST.addLast(newNode);\n last.setNext(newNode);\n BROWSER_HISTORY_LIST.set(last.getId(), last);\n return newNode;\n }\n }",
"public int addTmlHistory(String tmlId,String time,String type);",
"void addRecord(HistoryRecord record) throws IOException;",
"private Node createNode(EventPair ep, Color c, Node parent) {\n Node node = new Node();\n node.ID = ep.ID;\n node.count = ep.count;\n node.color = c;\n node.left = createNullLeaf(node);\n node.right = createNullLeaf(node);\n node.parent = parent;\n return node;\n }",
"@Override\n\tpublic String createNode(String type,String name,String time,String loca,String phone, String desc,String axisId ) {\n\t\tNode node = new Node(type, name, time, loca, phone, desc, axisId);\n\t\thibernatedao.insert(null, node);\n\t\treturn node.getId();\n\t}",
"public PurchaseHistory() {\n this.purchaseHistory = new HashMap<>();\n }",
"public Node<E> createNode(E e) {\n Node<E> nodeFromCache = getNodeFromCache();\n if (nodeFromCache == null) {\n return super.createNode(e);\n }\n nodeFromCache.setValue(e);\n return nodeFromCache;\n }",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"@Override\n public EditHistory createFromParcel(Parcel in) {\n return new EditHistory(in);\n }",
"public History(String eventTitle, String eventDate) {\n\n mEventTitle = eventTitle;\n mEventDate = eventDate;\n\n }",
"Link createLink();",
"public DispatchRouteHistoricalEntryBuilder() {\r\n dispatchRouteHistoricalEntry = new DispatchRouteHistoricalEntry();\r\n }",
"private ModelTipHistory() {\n }",
"int createTicketHistory(TicketHistory ticketHistory, int ticketId, int userId);",
"public interface TokenHistoryMapper {\n\n\n void create(TokenHistory tokenHistory);\n\n}",
"public void push(String new_data) {\n // 1. allocate node \n // 2. put in the data \n Node new_Node = new Node(new_data);\n\n // 3. Make next of new node as head and previous as NULL \n new_Node.next = head;\n new_Node.prev = null;\n\n // 4. change prev of head node to new node \n if (head != null) {\n head.prev = new_Node;\n }\n\n // 5. move the head to point to the new node \n head = new_Node;\n }",
"public void setIdHistory( int nIdHistory )\n {\n _nIdHistory = nIdHistory;\n }",
"protected SearchNode createNewNode( int x, int y, int z, float g, float h,\n\t\t\t\t\t SearchNode predecessor,\n\t\t\t\t\t byte searchStatus ) {\n\t\treturn new SearchNode( x, y, z, g, h, predecessor, searchStatus );\n\t}",
"public ViewHistory(ElectricityCompany m,ControllerHistory c) {//construction of view history\r\n\t\tsuper(m,c);\t\t\r\n\t\tthis.setTitle(\"View History\");\r\n\t\tthis.setSize(400,300);\r\n\t\tHistoryPanel history = new HistoryPanel(m);\r\n\t\tthis.add(history);\r\n\t\t\r\n\t}",
"@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}",
"void createNode(String path);",
"public BuildHistory(ArrayList<Build> buildHistory) {\n this.buildHistory = buildHistory;\n }",
"public Exchange(int a) {\r\n id = a;\r\n // allexchanges.Insert(new ExchangeNode(this)); //problem here\r\n }",
"public StringBuilder getHistory() {\r\n\t\treturn history;\r\n\t}",
"public Changelog() {\n\t\tthis(\"changelog\", null);\n\t}",
"public void create(NetworkNode networkNode);",
"private final void createAndAddNode(String name) {\n\t}",
"public Node(String newdata)\n {\n previous = null;\n next = null;\n data = newdata;\n }",
"private Node createTrackingNode(Session session, RequestData requestData, String userId) throws RepositoryException {\n Calendar today = Calendar.getInstance();\n String path = String.format(\"%s/%s/%s/%s\",\n ConversionJob.JOB_DATA_LOCATION,\n requestData.getType().name().toLowerCase(),\n new SimpleDateFormat(\"yyyy/MM/dd\").format(today.getTime()),\n JcrUtil.createValidName(requestData.getName(), JcrUtil.HYPHEN_LABEL_CHAR_MAPPING, \"-\"));\n Node node = JcrUtils.getOrCreateByPath(path, true, JcrConstants.NT_UNSTRUCTURED, JcrConstants.NT_UNSTRUCTURED, session, false);\n node.setProperty(PN_TITLE, requestData.getName());\n node.setProperty(PN_TEMPLATE_RULES, requestData.getTemplateRules());\n node.setProperty(PN_COMPONENT_RULES, requestData.getComponentRules());\n node.setProperty(PN_POLICY_RULES, requestData.getPolicyRules());\n node.setProperty(PN_TYPE, requestData.getType().toString());\n node.setProperty(PN_CONF_PATH, requestData.getConfPath());\n node.setProperty(PN_SOURCE_ROOT, requestData.getSourceRoot());\n node.setProperty(PN_TARGET_ROOT, requestData.getTargetRoot());\n node.setProperty(PN_PAGE_HANDLING, requestData.getPageHandling().name());\n node.setProperty(PN_OVERWRITE, requestData.isOverwrite());\n node.setProperty(PN_INITIATOR, userId);\n node.setProperty(JcrResourceConstants.SLING_RESOURCE_TYPE_PROPERTY, ConversionJob.RESOURCE_TYPE);\n return node;\n }",
"public ConversionHistory() {\r\n conversionDate = LocalDate.now();\r\n }",
"public static VniHistory createEntity(EntityManager em) {\n VniHistory vniHistory = new VniHistory()\n .date(DEFAULT_DATE)\n .value(DEFAULT_VALUE);\n return vniHistory;\n }",
"@Override\n public ListNode<T> push(T e) {\n \treturn new ListNode<T>(e, this);\n }",
"void push(int new_data){\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node=new Node(new_data);\n /* 3. Make next of new Node as head */\n new_node.next=head;\n /* 4. Move the head to point to new Node */\n head=new_node;\n }",
"void push(int new_Data)\n {\n Node new_Node = new Node(new_Data); /* allocate node */\n \n // if head is null, head = new_Node\n if(head==null){\n head = new_Node;\n return;\n }\n \n /* link the old list off the new node */\n new_Node.next = head;\n \n /* change prev of head node to new node */\n head.prev = new_Node;\n \n /* since we are adding at the begining, prev is always NULL */\n new_Node.prev = null;\n \n /* move the head to point to the new node */\n head = new_Node;\n }",
"static Node newNode(int key) {\n\t\tNode temp = new Node();\n\t\ttemp.data = key;\n\t\ttemp.next = null;\n\t\treturn temp;\n\t}",
"public void switchToHistory() {\r\n\t\thistoryPane.addEditTabs(editTabs);\r\n\t\tlayout.show(this, \"historyPane\");\r\n\t\trevalidate();\r\n\t\trepaint();\r\n\t}",
"@Override HashMapEntry<K, V> constructorNewEntry(\n K key, V value, int hash, HashMapEntry<K, V> next) {\n LinkedEntry<K, V> header = this.header;\n LinkedEntry<K, V> oldTail = header.prv;\n LinkedEntry<K, V> newTail\n = new LinkedEntry<K,V>(key, value, hash, next, header, oldTail);\n return oldTail.nxt = header.prv = newTail;\n }",
"public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public String getHistory () {\r\n\t\treturn history;\r\n\t}",
"public HistoryFileManager() {\n super(HistoryFileManager.class.getName());\n }",
"private EventHistoryTable() {}",
"public NodesHistory nodesHistory() {\n return this.nodesHistory;\n }",
"public EventHistoryFragment() {\n\t}",
"void push(int new_data) {\n /* 1 & 2: Allocate the Node &\n Put in the data*/\n Node new_node = new Node(new_data);\n\n /* 3. Make next of new Node as head */\n new_node.next = head;\n\n /* 4. Move the head to point to new Node */\n head = new_node;\n }",
"public String getHistoryData(long fromTime) {\r\n\t\t\r\n\t\tVector history = dataStorage.getHistory(fromTime);\r\n\t\tif (history== null || history.isEmpty())\r\n\t\t\treturn null;\r\n\t\t\r\n\t\tDocument serviceDoc = createXMLDocumentStructure();\r\n\t\tElement root = serviceDoc.getDocumentElement();\r\n\r\n\t\t// Add the <HistoryList> tag\r\n\t\tElement historyListElement = serviceDoc.createElement(\"HistoryList\");\r\n\t\tIterator i = history.iterator();\r\n\t\twhile (i.hasNext())\r\n\t\t{\r\n\t\t\tAddressLocation al = (AddressLocation)i.next();\r\n\t\t\tElement historyElement = serviceDoc.createElement(\"History\");\r\n\t\t\thistoryElement.setAttribute(\"latitude\",\r\n\t\t\t\t\tnew Double(al.latitude).toString());\r\n\t\t\thistoryElement.setAttribute(\"longitude\", new Double(\r\n\t\t\t\t\tal.longitude).toString());\r\n\t\t\thistoryElement.setAttribute(\"timestamp\", new Long(\r\n\t\t\t\t\tal.time).toString());\r\n\t\t\thistoryListElement.appendChild(historyElement);\r\n\t\t}\r\n\t\troot.appendChild(historyListElement);\r\n\t\treturn write(serviceDoc);\r\n\t}",
"public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }",
"static Node newNode(int key) {\n\t\tNode temp = new Node();\n\t\ttemp.key = key;\n\t\ttemp.left = temp.right = null;\n\t\treturn temp;\n\t}",
"private static Node createNode(int value) {\n\t\treturn new Node(value);\n\t}",
"NodeChain createNodeChain();",
"public static EventHistoryFragment newInstance(String param1, String param2) {\n\t\tEventHistoryFragment fragment = new EventHistoryFragment();\n\t\treturn fragment;\n\t}",
"public History(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"public History(Integer idPerson, Integer idTravel, Integer idHotel, Integer idTransport, Integer idAttraction, Date startDate, Date endDate, String name, String city, double price) {\r\n this.idPerson = idPerson;\r\n this.idTravel = idTravel;\r\n this.idHotel = idHotel;\r\n this.idTransport = idTransport;\r\n this.idAttraction = idAttraction;\r\n this.startDate = startDate;\r\n this.endDate = endDate;\r\n this.name = name;\r\n this.city = city;\r\n this.price = price;\r\n }",
"public String getHistory () {\n\t\treturn history;\n\t}",
"public RBNode<T, E> createRBNode(T key, E value) {\r\n\t\tRBNode<T, E> tempRBNode = new RBNode<T, E>(key, value, 'r');\r\n\t\treturn tempRBNode;\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tGUIViewTransactionHistory h = new GUIViewTransactionHistory(true);\n\t\t\t}",
"public String toString ()\r\n\t{\r\n\t\treturn history + \" \";\r\n\t}",
"static Node newNode(int key) \n{ \n\tNode node = new Node(); \n\tnode.left = node.right = null; \n\tnode.data = key; \n\treturn node; \n}",
"LINK createLINK();",
"@Override\r\n\tpublic void create() {\n\t\t\r\n\t}",
"public Node createNode(String p_name) {\n\t\tNode n = new Node(p_name, this);\n\t\taddNode(n);\n\t\treturn n;\n\t}",
"BookList push(Node book){\n BookList l = new BookList(book);\n BookList current = this;\n l.next = current;\n return l;\n }",
"public Node(String n) {\n\t\tname = n;\n\t\t//connections = new ArrayList<Node>();\n\t\t//connections = new HashSet<String>();\n\t\t\n\t\t//checkRep();\n\t}",
"public void insertHistory(RecordDTO recordDTO);",
"public IapHistory(String alias) {\n\t\tthis(alias, IAP_HISTORY);\n\t}",
"public void createNode()\r\n\t{\r\n\t\tTreeNode first=new TreeNode(1);\r\n\t\tTreeNode second=new TreeNode(2);\r\n\t\tTreeNode third=new TreeNode(3);\r\n\t\tTreeNode fourth=new TreeNode(4);\r\n\t\tTreeNode fifth=new TreeNode(5);\r\n\t\tTreeNode sixth=new TreeNode(6);\r\n\t\tTreeNode seventh=new TreeNode(7);\r\n\t\tTreeNode eight=new TreeNode(8);\r\n\t\tTreeNode nine=new TreeNode(9);\r\n\t\troot=first;\r\n\t\tfirst.left=second;\r\n\t\tfirst.right=third;\r\n\t\tsecond.left=fourth;\r\n\t\tthird.left=fifth;\r\n\t\tthird.right=sixth;\r\n\t\tfifth.left=seventh;\r\n\t\tseventh.right=eight;\r\n\t\teight.left=nine;\r\n\t\t\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic AnalysisGraph createNewInstance() {\n\t\tAnalysisGraph graph = new AnalysisGraph();\n\t\tgraph.currentIndex = currentIndex;\n\t\t\n\t\tgraph.nodes = (HashMap<String, Node>) nodes.clone();\n\t\tgraph.nodeList = (ArrayList<Node>)((ArrayList<Node>) nodeList).clone();\n\t\tgraph.links = (ArrayList<Link>)((ArrayList<Link>) links).clone();\n\t\treturn graph;\n\t}",
"public void create() {\n\t\t\n\t}",
"public EventHistoryItem(EventHistoryItem source) {\n if (source.TimeStamp != null) {\n this.TimeStamp = new Long(source.TimeStamp);\n }\n if (source.ProductId != null) {\n this.ProductId = new String(source.ProductId);\n }\n if (source.DeviceName != null) {\n this.DeviceName = new String(source.DeviceName);\n }\n if (source.EventId != null) {\n this.EventId = new String(source.EventId);\n }\n if (source.Type != null) {\n this.Type = new String(source.Type);\n }\n if (source.Data != null) {\n this.Data = new String(source.Data);\n }\n }"
] | [
"0.72306657",
"0.6916947",
"0.6458725",
"0.643741",
"0.64204895",
"0.63812536",
"0.6371915",
"0.63579065",
"0.6208519",
"0.6120133",
"0.60602015",
"0.60544163",
"0.6021408",
"0.6021139",
"0.6014176",
"0.59828997",
"0.5976352",
"0.5976352",
"0.58450687",
"0.5816305",
"0.58047706",
"0.57900524",
"0.5696038",
"0.5686022",
"0.56803864",
"0.56636924",
"0.5651714",
"0.5645022",
"0.5625366",
"0.5622305",
"0.5620024",
"0.5613423",
"0.55843484",
"0.55494606",
"0.55427676",
"0.5510195",
"0.55053514",
"0.55022025",
"0.5501224",
"0.5462256",
"0.5455874",
"0.54479927",
"0.5433897",
"0.53792405",
"0.53607494",
"0.53512746",
"0.534987",
"0.5347094",
"0.5345065",
"0.53393364",
"0.5336443",
"0.5333035",
"0.53299165",
"0.5310821",
"0.5302435",
"0.53023607",
"0.5294073",
"0.52668947",
"0.5260013",
"0.52579993",
"0.52453417",
"0.52403426",
"0.52377915",
"0.5230361",
"0.5212839",
"0.52048784",
"0.51968056",
"0.519537",
"0.51927614",
"0.51762164",
"0.51762164",
"0.51752377",
"0.5174706",
"0.5170622",
"0.5157291",
"0.515155",
"0.5149048",
"0.51487225",
"0.5142225",
"0.51345336",
"0.51338506",
"0.51255673",
"0.5124196",
"0.5122617",
"0.5120218",
"0.5115748",
"0.5115304",
"0.51089686",
"0.510822",
"0.5106382",
"0.50977755",
"0.5095949",
"0.5093814",
"0.50877494",
"0.50850976",
"0.5082656",
"0.50791293",
"0.5078384",
"0.50740194",
"0.50735444"
] | 0.60942554 | 10 |
. Add a node without previous or new object, for delete, for draw | public final void addHistoryNode(final ShapePicaso shape,
final int operation) {
if (operation == Operations.DELETE
|| operation == Operations.DRAW) {
HistoryNode node = new HistoryNode(shape, operation);
this.historyManager.addNewRecord(node);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void addNode()\n {\n Node newNode = new Node(this.numNodes);\n this.nodeList.add(newNode);\n this.numNodes = this.numNodes + 1;\n }",
"public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }",
"private void addNode(DLinkedNode node){\n node.pre = head;\n node.post = head.post;\n\n head.post.pre = node;\n head.post = node;\n }",
"private void addNode(DLinkedNode node) {\n\t\t\tnode.pre = head;\n\t\t\tnode.post = head.post;\n\n\t\t\thead.post.pre = node;\n\t\t\thead.post = node;\n\t\t}",
"public void addNode(Node node){subNodes.add(node);}",
"public Node appendNode(Node node);",
"public void nodeDemo() {\n final PLayer layer = getCanvas().getLayer();\n final PNode aNode = PPath.createRectangle(0, 0, 100, 80);\n\n // A node needs to be a descendent of the root to be displayed on the\n // screen.\n layer.addChild(aNode);\n\n // The default color for a node is blue, but you can change that with\n // the setPaint method.\n aNode.setPaint(Color.red);\n\n // A node can have children nodes added to it.\n aNode.addChild(PPath.createRectangle(0, 0, 100, 80));\n\n // The base bounds of a node is easy to change. Note that changing the\n // base\n // bounds of a node will not change it's children.\n aNode.setBounds(-10, -10, 200, 110);\n\n // Each node has a transform that can be used to transform the node, and\n // all its children on the screen.\n aNode.translate(100, 100);\n aNode.scale(1.5);\n aNode.rotate(45);\n\n // The transparency of any node can be set, this transparency will be\n // applied to any of the nodes children as well.\n aNode.setTransparency(0.75f);\n\n // Its easy to copy nodes.\n final PNode aCopy = (PNode) aNode.clone();\n\n // Make is so that the copies children are not pickable. For this\n // example\n // that means you will not be able to grab the child and remove it from\n // its parent.\n aNode.setChildrenPickable(false);\n\n // Change the look of the copy\n aNode.setPaint(Color.GREEN);\n aNode.setTransparency(1.0f);\n\n // Let's add the copy to the root, and translate it so that it does not\n // cover the original node.\n layer.addChild(aCopy);\n aCopy.setOffset(0, 0);\n aCopy.rotate(-45);\n }",
"private void removeNode(DLinkedNode node){\n DLinkedNode pre = node.pre;\n DLinkedNode post = node.post;\n\n pre.post = post;\n post.pre = pre;\n }",
"@Override\r\n\tpublic void undo() \r\n\t\t{\n\t\tif (parent.addChild(child)) \r\n\t\t\t{\r\n\t\t\taddArcs(sourceArcs);\r\n\t\t\taddArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}",
"private void addNode(NeuralNode node) {\r\n\t\tinnerNodes.add(node);\r\n\t}",
"@Override\n public void add(E e) throws NullPointerException\n {\n if(e == null)\n {\n throw new NullPointerException();\n }\n new Node(e, left, right);\n idx += 1;\n previous();\n canRemove = false;\n }",
"public void addNode() {\n if (nodeCount + 1 > xs.length)\n resize();\n nodeCount++;\n }",
"void addNode(int node);",
"public void addNode(NodeImpl node) {\n supervisedNodes.add(node);\n \n colorNodes();\n shortenNodeLabels();\n colorNodeLabels();\n colorNodeLabelBorders();\n }",
"private void addNode(DLinkedNode node) {\n\t\tnode.prev = head;\n\t\tnode.next = head.next;\n\n\t\thead.next.prev = node;\n\t\thead.next = node;\n\t}",
"@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}",
"void addNode(Node n) {\n nodes.put(n.id, n);\n }",
"private void addNode(Node node)\n\t{\n\t\tif (node == null)\n\t\t\treturn;\n\t\tthis.nodes[node.getRowIndex()][node.getColumnIndex()] = node;\n\t}",
"private void removeNode(DNode node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }",
"private void removeNode(DLinkedNode node) {\n\t\t\tDLinkedNode pre = node.pre;\n\t\t\tDLinkedNode post = node.post;\n\n\t\t\tpre.post = post;\n\t\t\tpost.pre = pre;\n\t\t}",
"private void addNode(Node node) {\n node.prev = fakeHead;\n node.next = fakeHead.next;\n \n fakeHead.next.prev = node;\n fakeHead.next = node;\n }",
"private void add_node(Node node) {\n if (this.nodes.get(node.name) != null) {\n throw new RuntimeException(\"Node \" + node.name + \" already exists!\");\n }\n this.nodes.put(node.name, node);\n this.bars.put(node.name, new TreeMap<String, Bar>());\n }",
"Node(Object newItem){\n item = newItem; //--points to a different\n next = null;\n }",
"public void addVertex();",
"private void unhilitNode()\n {\n\tif (hilited==null) return;\n\tGraphics g = getGraphics();\n\tsetRenderColor(g,Color.black);\n\trenderCircle(g,hilited.x,hilited.y,hilited.diameter+4);\n\thilited = null;\n }",
"@Override\n public void visit(Node node) {\n nodes.add(node);\n }",
"public Node addNode(Coordinate coordIn){//adds a node to the list\n\t\t//linear search to make sure the node already isnt there\n\t\tint i;\n\t\tfloat inx = coordIn.getX();\n\t\tfloat iny = coordIn.getY();\n\t\tfloat inz = coordIn.getZ();\n\t\tNode n = null;\n\t\tfor(i = 0; i < listOfNodes.size(); i++){\n\t\t\tn = listOfNodes.get(i);\n\t\t\tif(n==null) continue;\n\t\t\tfloat ox = n.getCoordinate().getX();\n\t\t\tfloat oy = n.getCoordinate().getY();\n\t\t\tfloat oz = n.getCoordinate().getZ();\n\t\t\tif(inx <= ox + 0.01f && inx >= ox - 0.01f && iny <= oy + 0.01f && iny >= oy - 0.01f && inz <= oz + 0.01f && inz >= oz - 0.01f)break;\n\t\t}\n\t\tif(i < listOfNodes.size()){ // found duplicate\n\t\t\treturn n;\n\t\t}\n\n\t\tnode_count++;\n\t\tfor(; node_arrayfirstopen < node_arraysize && listOfNodes.get(node_arrayfirstopen) != null; node_arrayfirstopen++);\n\t\tif(node_arrayfirstopen >= node_arraysize){\t//resize\n\t\t\tnode_arraysize = node_arrayfirstopen+1;\n\t\t\tlistOfNodes.ensureCapacity(node_arraysize);\n\t\t\tlistOfNodes.setSize(node_arraysize);\n\t\t}\n\t\tId nid = new Id(node_arrayfirstopen, node_count);\n\t\tn = new Node(coordIn, nid);\n\t\tlistOfNodes.set(node_arrayfirstopen, n);\n\t\tupdateAABBGrow(n.getCoordinate());\n\t\t\n\t\tif(node_arraylasttaken < node_arrayfirstopen) node_arraylasttaken = node_arrayfirstopen; //todo redo\n\t\treturn n;\n\t}",
"private void addNode() {\n // Add GUI node\n int nodeCount = mGraph.getNodeCount();\n Node node = mGraph.addNode(String.valueOf(nodeCount));\n node.addAttribute(\"ui.label\", nodeCount);\n\n // Add Node_GUI node for algorithm to read from\n Node_GUI listNode = new Node_GUI();\n mNodeList.add(listNode);\n }",
"public synchronized void add (E object) {\n Node<E> node = new Node<>(object);\n if (first == null) {\n first = node;\n } else if (last == null) {\n last = node;\n last.prev = first;\n first.next = last;\n } else {\n Node<E> temp = last;\n temp.prev.next = temp;\n temp.next = node;\n last = node;\n node.prev = temp;\n }\n }",
"private void deleteNode(Node node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }",
"Graph(){\n\t\taddNode();\n\t\tcurrNode=myNodes.get(0);\n\t}",
"public abstract void addChild(Node node);",
"public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}",
"void deleteNode(ZVNode node);",
"private void deleteNode(Node n) {\n n.next.pre = n.pre;\n n.pre.next = n.next;\n }",
"public void addNodeToTheObjects(Node theNode) {\r\n getTheObjects().add(theNode);\r\n }",
"@Test\n\tpublic void addNodeAfterGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node after the given node \");\n\t\tdll.push(4);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.InsertAfter(dll.head.next, 3);\n\t\tdll.print();\n\t}",
"private void drawNode(Graphics g, Node n)\n {\n\n\tNode p = n.parent;\n\n\tif (p!=null) {\n\t if (n.paths_passing>0) {\n\t\t//setRenderColor(g,hilitcolor);\n\t\tsetRenderColor(g,n.path_color);\n\t\trenderLine(g,n.x-1,n.y,p.x-1,p.y);\n\t }\n\n// \t setRenderColor(g,(n.paths_passing>0)?hilitcolor:linecolor);\n \t setRenderColor(g,(n.paths_passing>0)?n.path_color:linecolor);\n\t renderLine(g,n.x,n.y,p.x,p.y);\n//\t setRenderColor(g,(p.paths_passing>0)?hilitcolor:normalcolor);\n\t setRenderColor(g,(p.paths_passing>0)?p.path_color:normalcolor);\n \t renderNode(g,p);\n\t}\n// \tsetRenderColor(g,(n.paths_passing>0)?hilitcolor:normalcolor);\n\tsetRenderColor(g,(n.paths_passing>0)?n.path_color:normalcolor);\n\trenderNode(g,n);\n }",
"Node(int newX, int newY, int newId)\n {\n connectedNodes = new ArrayList<Node>();\n id = newId;\n x = newX;\n y = newY;\n weight = 1;\n }",
"public void add(DefaultGraphCell node) {\n nodes.add(node);\n groupObject.add(node);\n fragmentName.append(((NodeData)node.getUserObject()).getName() + \" \");\n \n }",
"private void add(DoublyLinkedNode newNode) {\n insertQueue(newNode);\n map.put(newNode.key, newNode);\n if (map.size() > size) {\n DoublyLinkedNode toBeDelete = tail.prev;\n delete(toBeDelete);\n map.remove(toBeDelete.key);\n }\n }",
"private void moveToHead(Node node) {\n deleteNode(node);\n addNode(node);\n }",
"public void insertnode ()\n\t// insert an empty node\n\t{\n\t\tif (Pos.haschildren() && !GF.askInsert()) return;\n\t\tNode n = new Node(Pos.node().number());\n\t\tPos.insertchild(new TreeNode(n));\n\t\tn.main(Pos);\n\t\tgetinformation();\n\t\tPos = Pos.lastChild();\n\t\tsetlast();\n\t\tshowinformation();\n\t\tcopy();\n\t}",
"private void removeNode(Node<E> node) {\n node.prev.next = node.next;\n node.next.prev = node.prev;\n }",
"protected void addingNode( SearchNode n ) { }",
"private void moveToHead(DLinkedNode node){\n this.removeNode(node);\n this.addNode(node);\n }",
"public void addVertex (){\t\t \n\t\tthis.graph.insert( new MyList<Integer>() );\n\t}",
"public void addOne()\n\t{\n\t\tBlock b = new Block(p1.tail.oldPosX, p1.tail.oldPosY, p1.tail, this);\n\t\tBlock b2 = new Block(p2.tail.oldPosX, p2.tail.oldPosY, p2.tail, this);\n\t\t\n\t\tb.setFill(Color.RED.desaturate());\n\t\tb2.setFill(Color.BLUE.desaturate());\n\n\t\tp1.tail = b;\n\t\tp2.tail = b2;\n\t\taddBlock(b);\n\t\taddBlock(b2);\n\t}",
"boolean addNode(N node);",
"public void addNode(int key)\n{\n Node n1 = new Node(key);\n\t\n\tif(!getNodes().containsKey(n1.getKey())) \n\t{\n\tmc++;\n\tthis.getNodes().put(n1.getKey(),n1);\n\t\t\n\t}\n\telse {\n\t\treturn;\n\t\t//System.out.println(\"Node already in the graph\");\n\t}\n}",
"private void addNode(Node<AnyType> t) {\n \n if ( isEmpty() ) {\n \n headNode = t;\n tailNode = headNode;\n \n } else { \n \n Node<AnyType> node = getNode( size-1 );\n node.setNextNode( t );\n t.setPreviousNode( node );\n \n tailNode = t;\n \n }\n \n size++;\n \n }",
"public void addBack(E data) {\r\n\t\tNode<E> node = new Node<E>(data);\r\n\t\tif(isEmpty())\r\n\t\t\tfirst = last = node;\r\n\t\telse {\r\n\t\t\tlast = last.next = node;//the last node's next node will be the new node - at the end\r\n\t\t}\r\n\t}",
"static void deleteNode(Node node){\n\t\tif(node.next==null){\r\n\t\t\tnode=null;\r\n\t\t}\r\n\t\tnode.data=node.next.data;\r\n\t\tnode.next=node.next.next;\r\n\t}",
"public void addNodeToParentNode(Node node) throws NoParentNodeException, NoSelectedNodeException {\n\n\t\t//Update the swing view first because it will send the needed exceptions\n\t\tesv.addNodeToParentNode(node);\n\n\t\t//Update internal representation of tree\n\t\tFolder parent = (Folder)this.selectedNode.getParent();\n\t\tparent.addChild(node);\n\t\tnode.setParent(parent);\n\n\t\t//Update lastInserted HashMap\n\t\tthis.lastInsertedNodes.clear();\n\t\tthis.lastInsertedNodes.put(0, node);\n\t}",
"private Node addNode(String nodeName)\r\n\t{\r\n\t final Node n = new Node(nodeName, attributes, numNodes());\r\n\t if (nodeMap.put(nodeName, n) != null)\r\n\t\tthrow new RuntimeException(\"Node <\"+n+\"> already exists!\");\r\n\t return n;\r\n\t}",
"void addNode(String node);",
"public void add(Item item) {\r\n Node x = current.prev; //prev node\r\n Node y = new Node(); //new node\r\n Node z = current; //current node\r\n y.item = item;\r\n x.next = y;\r\n y.next = z;\r\n z.prev = y;\r\n y.prev = x;\r\n n++;\r\n index++;\r\n lastAccessed = null;\r\n }",
"private void drawNode(Graphics g, Node n) {\r\n\t\tNode n1 = new Node(3, 5);\r\n\t\tSystem.out.println(\"n.x=\" + n.x + \" n.y=\" + n.y);\r\n\t\tg.fillRect(n1.x * nodeWidth, n1.y * nodeHeight, nodeWidth - 1, nodeHeight - 1);\r\n\t}",
"@Override\n\tpublic boolean addNode(N node)\n\t{\n\t\tif (node == null)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\tif (nodeEdgeMap.containsKey(node))\n\t\t{\n\t\t\t// Node already in this Graph\n\t\t\treturn false;\n\t\t}\n\t\tnodeList.add(node);\n\t\tnodeEdgeMap.put(node, new HashSet<ET>());\n\t\tgcs.fireGraphNodeChangeEvent(node, NodeChangeEvent.NODE_ADDED);\n\t\treturn true;\n\t}",
"public void add(DNode node)\n\t{\n\t\tif(first==null)\n\t\t{\n\t\t\tfirst=node;\n\t\t\t//System.out.println(\"add first\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//System.out.println(\"add next\");\n\t\t\tDNode tem=first;\n\t\t\twhile(tem.nextDNode!=null)\n\t\t\t{\n\t\t\t\ttem=tem.nextDNode;\n\t\t\t}\n\t\t\ttem.nextDNode=node;\n\t\t}\n\t}",
"private void moveToHead(DLinkedNode node){\n\t\tremoveNode(node);\n\t\taddNode(node);\n\t}",
"void add(int vertex);",
"public Node setPrevNode(Node node);",
"@Override\r\n public void addChild (TreeNode node)\r\n {\r\n super.addChild(node);\r\n\r\n // Side effect for note, since the geometric parameters of the chord\r\n // are modified\r\n if (node instanceof Note) {\r\n reset();\r\n }\r\n }",
"public void cutNode ()\n {\n copyNode();\n deleteNode();\n }",
"public void add(E x) {\n\n // situation 1: You alter/affect the head\n // situation 2: You alter something after the head.\n if(head == null) {\n head = new RectNode<E>(x);\n size++;\n } else {\n\n // This is a traversal to get to the end of the list.\n RectNode travs;\n travs = head;\n\n while(travs.next != null) {\n travs = travs.next;\n }\n travs.next = new RectNode<E>(x);\n size++;\n }\n\n }",
"boolean addNode(long idNum, String label);",
"void newNode(int nodeId) {\n window.newNode(nodeId);\n }",
"Node(){\r\n\t\tdata = null;\r\n\t\tnext = null;\r\n\t}",
"public void add(Node node) {\n if (node.getId() != null) {\n if (node.getId().equals(\"DestructibleBlock\")) {\n staticElements.add(node);\n destructibleBlocks.add((DestructibleBlock) node);\n }\n if (node.getId().equals(\"IndestructibleBlock\")) {\n staticElements.add(node);\n }\n }\n fieldPane.getChildren().add(node);\n }",
"private void addToHead() {\n Node currentNode = null;\n switch (head.dir) {\n case LEFT:\n currentNode = new Node(head.row - 1, head.col, head.dir);\n break;\n case RIGHT:\n currentNode = new Node(head.row + 1, head.col, head.dir);\n break;\n case UP:\n currentNode = new Node(head.row, head.col - 1, head.dir);\n break;\n case DOWN:\n currentNode = new Node(head.row, head.col + 1, head.dir);\n break;\n }\n currentNode.next = head;\n head.pre = currentNode;\n head = currentNode;\n size++;\n }",
"private final void createAndAddNode(String name) {\n\t}",
"private void removeNode(DLinkedNode node){\n\t\tDLinkedNode prev = node.prev;\n\t\tDLinkedNode next = node.next;\n\n\t\tprev.next = next;\n\t\tnext.prev = prev;\n\t}",
"void append(SNode node);",
"void addNode(Entity entity) {\n\t\tProcessing.nodeSet.add(entity);\n\t\tSystem.out.println(\"the entity was successfully added to the network.\");\n\t}",
"TreeNode addChild(TreeNode node);",
"private void removeNode(Node node){\n\n if (node.pre == null) {\n this.head = node.next;\n } else {\n node.pre.next = node.next;\n }\n\n if (node.next == null) {\n this.end = node.pre;\n } else {\n node.next.pre = node.pre;\n } \n }",
"public void addNode(Node newNode){\r\n\t\t\tNode temp = this.head;\r\n\t\t\tnewNode.prev = null;\r\n\t\t\tif(this.head == null){\r\n\t\t\t\tthis.head = newNode;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\twhile(temp.next!=null){\r\n\t\t\t\t\ttemp = temp.next;\r\n\t\t\t\t}\r\n\t\t\t\ttemp.next = newNode;\r\n\t\t\t\tnewNode.prev = temp;\r\n\t\t\t}\r\n\t\t}",
"public void add(Object data) \r\n\t{\r\n\t\tif(headPointer == null)\r\n\t\t{\r\n\t\t\theadPointer = new Node(data,tail,null);\r\n\t\t}\r\n\t\telse if(tail == null)\r\n\t\t{\r\n\t\t\ttail = new Node(data, null, headPointer);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tNode t = tail;\r\n\t\t\ttail = new Node(data, null, t);\r\n\t\t\tt.setNext(tail);\r\n\t\t\tt.getPrev().setNext(t);\t\t\r\n\t\t}\r\n\t\tincrementCounter();\r\n\t}",
"public void addNode(int item) { \n //Create a new node \n Node newNode = new Node(item); \n \n //if list is empty, head and tail points to newNode \n if(head == null) { \n head = tail = newNode; \n //head's previous will be null \n head.previous = null; \n //tail's next will be null \n tail.next = null; \n } \n else { \n //add newNode to the end of list. tail->next set to newNode \n tail.next = newNode; \n //newNode->previous set to tail \n newNode.previous = tail; \n //newNode becomes new tail \n tail = newNode; \n //tail's next point to null \n tail.next = null; \n } \n }",
"private void drawNodes(int x, int y, Node node) {\r\n int yS = node.isMax() ? y : (y + nodeSize);\r\n int yD = node.isMax() ? y + nodeSize : y;\r\n Offset s = new Offset(x, yS, code, \"NE\");\r\n Offset dL = new Offset(x - (nodeSize / 2), yD, code, \"NE\");\r\n Offset dR = new Offset(x + (nodeSize / 2), yD, code, \"NE\");\r\n\r\n TriangleProperties nodeProps = new TriangleProperties();\r\n nodeProps.set(AnimationPropertiesKeys.FILLED_PROPERTY, true);\r\n Triangle tNode = lang.newTriangle(s, dL, dR, node.getId(), null, nodeProps);\r\n tNode.changeColor(\"fillColor\", nodeColor, null, null);\r\n pMap.put(node.getId(), tNode);\r\n if (node.getParent() != null) {\r\n Primitive from = pMap.get(node.getParent().getId());\r\n drawLine(from, tNode, node.getId());\r\n }\r\n if (node.isLeaf()) {\r\n int valLength = String.valueOf(node.getValue()).length();\r\n Offset tO;\r\n if (node.isMax()) {\r\n tO = new Offset(-valLength * 3, -nodeSize / 30, tNode, \"C\");\r\n } else {\r\n tO = new Offset(-valLength * 3, -nodeSize / 3, tNode, \"C\");\r\n }\r\n Text tVal = lang.newText(tO, String.valueOf(node.getValue()), \"tVal\"\r\n + node.getId(), null);\r\n tVal.changeColor(\"\", Color.white, null, null);\r\n pMap.put(\"tVal\" + node.getId(), tVal);\r\n }\r\n }",
"public Node (Object newItem) {\n next = null; // set intially to null\n item = newItem;\n }",
"private void add(Node node) {\n Node headNext = head.next;\n head.next = node;\n node.previous = head;\n node.next = headNext;\n headNext.previous = node;\n }",
"private void moveToHead(DLinkedNode node) {\n\t\t\tthis.removeNode(node);\n\t\t\tthis.addNode(node);\n\t\t}",
"void add(Vertex vertex);",
"public void remove(Node node) {\n\t\tNode cloneNode = node;\n\t\tint index = indexOf(cloneNode.block);\n\t\tif (index != (-1)){\n\t\t\tgetNode(index - 1).next = cloneNode.next;\n\t\t\tgetNode(index + 1).previous = cloneNode.previous;\n\t\t\tsize--;\n\t\t\t\n\t\t}\n\t}",
"SELLbeholder() {\n listehode = new Node(null, null);\n }",
"protected void addNode(INode node) {\n\n if (node != null) {\n\n this.ids.add(node.getID());\n this.nodeMap.put(node.getID(), node);\n }\n }",
"public void draw() {\n if (first.p == null) return;\n Node n = first;\n Node n2 = first.next;\n while (!n.next.equals(first)) {\n n.p.drawTo(n2.p);\n n = n.next;\n n2 = n2.next;\n }\n n.p.drawTo(n2.p);\n }",
"@Override\n\tpublic void addChild(Node node) {\n\t\t\n\t}",
"@Override\n public void add(EventNode node) {\n nodes.add(node);\n // Invalidate the relations cache.\n //\n // NOTE: The reason we do not update the relations here is because the\n // node might not be finalized yet. That is, the node's transitions\n // might not be created/added yet, so at this point we do not know the\n // exact set of relations associated with this node.\n cachedRelations = null;\n }",
"void moveTo(Node n);",
"@Override\n\tpublic void putNode(N node) {\n\t\t\n\t}",
"private void addNode(Node<E> node, E value) {\n if (node.children == null) {\n node.children = new ArrayList<>();\n }\n node.children.add(new Node<>(value));\n }",
"void addFlight(Node toNode);",
"private void addAfter (Node<E> node, E item)\n {\n Node<E> temp = new Node<E>(item,node.next);\n node.next = temp;\n size++;\n }",
"public boolean addNode(NodeType node) {\n\t\treturn false;\n\t}",
"public void addNode(String item){\n Node newNode = new Node(item,null);\nif(this.head == null){\n this.head = newNode;\n}else{\n Node currNode = this.head;\n while(currNode.getNextNode() != null){\n currNode = currNode.getNextNode();\n }\n currNode.setNextNode(newNode);\n}\nthis.numNodes++;\n }",
"public void addToStart(Order ord){\n\t\tNode temp= new Node(ord, null, head);\n\t\tif(head!=null){\n\t\t\thead.previous=temp;\n\t\t}\n\t\thead=temp;\t\n\t}",
"@Override\n public void actionPerformed(ActionEvent e) {\n graph.addUndoableEdit(new DeleteUndoableEdit(graph));\n }",
"public boolean add(Object o) {\n Node newNode;\n if (size == 0){\n newNode = new Node(o,null);\n first = newNode;\n last = newNode;\n size =+ 1;\n return true;\n }else{\n newNode = new Node(o,last);\n last.next = newNode;\n last = newNode;\n this.size = this.size + 1;\n return true;\n }\n }"
] | [
"0.672394",
"0.65281326",
"0.6503216",
"0.6500664",
"0.63441014",
"0.63416517",
"0.6258217",
"0.62443876",
"0.6233943",
"0.61997443",
"0.618217",
"0.6178405",
"0.6147245",
"0.6142399",
"0.6142326",
"0.6128075",
"0.6099769",
"0.609513",
"0.60570586",
"0.6048624",
"0.60441947",
"0.6036138",
"0.60210985",
"0.6019561",
"0.6018524",
"0.5997475",
"0.5996506",
"0.5987431",
"0.5982364",
"0.597916",
"0.59780616",
"0.59767705",
"0.5946262",
"0.5939414",
"0.5914008",
"0.5913181",
"0.59042513",
"0.5877863",
"0.5871179",
"0.5858919",
"0.5848465",
"0.5843412",
"0.58338356",
"0.58333886",
"0.5822752",
"0.581909",
"0.58182085",
"0.5817877",
"0.5810911",
"0.5805966",
"0.57966673",
"0.5796257",
"0.578426",
"0.5781028",
"0.5779763",
"0.57796204",
"0.57478374",
"0.57449096",
"0.5742343",
"0.5739478",
"0.57374567",
"0.5736928",
"0.5719205",
"0.5717698",
"0.57136095",
"0.5704092",
"0.5687238",
"0.56869626",
"0.5685305",
"0.5678842",
"0.56771415",
"0.567436",
"0.567235",
"0.5670674",
"0.5668065",
"0.56645554",
"0.56642014",
"0.56516933",
"0.565016",
"0.5642974",
"0.5642544",
"0.56412745",
"0.56393194",
"0.5635566",
"0.5632813",
"0.56252474",
"0.5624911",
"0.5623374",
"0.5611703",
"0.56100607",
"0.55954146",
"0.55941063",
"0.5592987",
"0.5584067",
"0.55802846",
"0.55798125",
"0.5579765",
"0.55772847",
"0.5574886",
"0.55732965",
"0.5571449"
] | 0.0 | -1 |
. Undo the context to the previews state | public final void undo() {
this.historyManager.undo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void undo() {\n\t\t\r\n\t}",
"@Override\n\tpublic void undo() {\n\t\tlight.off();\n\t}",
"@Override\n public void undo() {\n Memento temp = createMemento();\n memento.restore();\n memento = temp;\n }",
"public void undo() {\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 }",
"@Override\n public void undo()\n {\n story.setEstimate(oldEstimate);\n\n if (ready) {\n story.setReadinessToReady();\n }\n }",
"public void undo() {\n setExecuted(false);\n }",
"@Override\n public void undo() {\n\n }",
"@Override\n public void undo() {\n\n }",
"void undo();",
"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\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\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}",
"public void undo() {\r\n pop( true );\r\n announce( null );\r\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 }",
"public void undo() {\n\t\tlight.on();\n\t}",
"public void undo() {\n target.setCombatState( oldState );\n }",
"protected abstract void internalUndo();",
"@Override\n void undo() {\n assert false;\n }",
"public void undo(View v) {\n \tclickBox(prev);\n \tclickBox(prev);\n \tundoBut.setEnabled(false);\n \tmoveCount--;\n \tstartTime-=1000;\n }",
"void undo() {\r\n if (_moveCount > 0) {\r\n undoPosition();\r\n }\r\n }",
"@Override\r\n public void undo() {\n\r\n }",
"public void undo() {\n\t\tparent.requestChange(new ModelChangeRequest(this.getClass(), parent,\n\t\t\t\t\"create\") {\n\t\t\t@Override\n\t\t\tprotected void _execute() throws Exception {\n\t\t\t\teditor.selectPage((CompositeActor) parent);\n\t\t\t\tif (child instanceof NamedObj) {\n\t\t\t\t\tComponentUtility.setContainer(child, null);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n T undo();",
"@Override\n\tpublic void undo() {\n\t\tthis.list.delete(shape);\n\n\t}",
"public abstract void undo();",
"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}",
"public void cancelState() {\n if (isQuestionEditMode) {\n //deleteAllQuestionInputTextAreas();\n //addCurrentQuestionsToView();\n }\n }",
"@Override\n\tpublic void undo() {\n\t\tsecurity.off();\n\t}",
"@Override\n public void undo(){\n this.parent.getSelectedArea().clear();\n }",
"public void roundUndo() {\n roundsHistory.pop();\n updateGameDescriptorAfterUndo();\n }",
"@Override\r\n\tpublic void undo() {\n\t\tlight.on();\r\n\t}",
"void processUndo() {\r\n boardManager.undo();\r\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 undo() {\n\t\tstate = null;\n\t\tfor (Row r : containingRows)\n\t\t\tr.undo(this);\n\t}",
"public void undo() {\n\t\tif(committed){\n\t\t\treturn;\n\t\t}\n\t\tboolean [][] tempGrid = grid;\n\t\tgrid = backupGrid;\n\t\tbackupGrid = tempGrid;\n\n\t\tint [] tempWidths = widths;\n\t\twidths = backupWidths;\n\t\tbackupWidths = tempWidths;\n\n\t\tint [] tempHeights = heights;\n\t\theights = backupHeights;\n\t\tbackupHeights = tempHeights;\n\n\t\tint tempMaxColumnHeight = maxColumnHeight;\n\t\tmaxColumnHeight = backupMaxColumnHeight;\n\t\tbackupMaxColumnHeight = tempMaxColumnHeight;\n\n\t\tcommit();\n\t}",
"@Override\n\tpublic String Undo() {\n\t\treturn \"Apagando la licuadora..........\" + receiver.turnOff();\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 }",
"void undoPlay();",
"@Override\r\n\tpublic E undo() {\n\t\treturn null;\r\n\t}",
"public void undoChanges() {\r\n if (getPageDataStoresStatus() == DataStoreBuffer.STATUS_NOT_MODIFIED)\r\n return;\r\n else\r\n _ds.undoChanges(_ds.getRow());\r\n }",
"public void reset() {\n\t\treset(ModSettings.currentContext);\n\t}",
"public void undo() {\n\t\tcmd = new UndoCommand(editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"@Override\r\n public void undo() {\r\n if (newSource != null) {\r\n edge.setSource(oldSource);\r\n } else if (newTarget != null) {\r\n edge.setTarget(oldTarget);\r\n }\r\n }",
"private void undoAction(){\n if (allClickedButtons.size() > 0) {\n ButtonClass button = allClickedButtons.get(allClickedButtons.size() - 1);\n //If the button constituted a gameWin, then undo that impact as well\n if (checkGameWin(button.getSmallGame().getLettersOfAllButtons())) {\n //Resets \"partOfWonBoard\" for the buttons on the same smallGame\n for (ButtonClass b: button.getSmallGame().getAllButtons()) {\n b.setPartOfWonBoard(false);\n }\n button.getSmallGame().changeGameColor(R.color.black);\n }\n button.resetButtonResource();\n allClickedButtons.remove(button);\n if(allClickedButtons.size() > 0) {\n chosenButton = allClickedButtons.get(allClickedButtons.size()-1);\n chosenGame = chosenButton.getSmallGame();\n updateBigGameBoardForNextMove();\n } else {\n activity.startGame();\n }\n } else {\n Toast.makeText(activity,\n \"Cannot undo at this time\",\n Toast.LENGTH_SHORT).show();\n }\n }",
"public void restoreState(FacesContext context, Object state) {\n }",
"public void undo() throws CannotUndoException;",
"@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t\tCollections.swap(model.getListOfShapes(), model.getListOfShapes().size()-1, i); \r\n\t\t\r\n\t\t/*if(print == true) {\r\n\t\t\t\r\n\t\t\tFrame.textArea.append(\"UNDO >>> Bring to back: \" + s +\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tprint = true;*/\r\n\t\r\n\t\t\r\n\t}",
"@Override\n public boolean canUndo() {\n return false;\n }",
"@Override\r\n\tpublic void undo() {\n\t\tfor(IShape shape : tempList)\r\n\t\t\tshapeList.remove(shape);\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}",
"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}",
"public void undo() {\n compositionManager.ungroup(group);\n }",
"@Override\r\n\tpublic void undo(RechercheDetailleeAction arg0, RechercheDetailleeResult arg1, ExecutionContext arg2) throws ActionException {\n\r\n\t}",
"public void discardAndGoBack() {\n try {\n currentEditor.setValue(null);\n if (currentEditor instanceof RestrictedEntityEditor) {\n ((RestrictedEntityEditor) currentEditor).refreshListOfValues();\n }\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while discarding value of an editor. \", ex);\n }\n goBack();\n }",
"public void undo(String dummy) {\n _game.undo();\n _display.repaint();\n updateScore();\n }",
"@Override\n\tpublic void onUndoNotPossible() {\n\n\t}",
"public void undo() {\n if (!canUndo()) {\n throw new VersionedAssignmentList.NoUndoableStateException();\n }\n currentStatePointer--;\n resetData(assignmentListStateList.get(currentStatePointer));\n }",
"public void undoAction(){}",
"@Override\r\n\tpublic void undo(Transaction tx) {\r\n\t\t// do nothing\r\n\t\t\r\n\t}",
"void undoExpenseTracker() throws NoUserSelectedException;",
"public String undo() {\n/* 145 */ return undo(0, false);\n/* */ }",
"@Override\n\tpublic void undoCommand() {\n\t\tselectionModel.removeAllFromSelectionList();\n\t\tmodel.removeElement(device);\n\t}",
"public void revise()\n {\n \n super.revise();\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 }",
"@Override\n public boolean isUndo() {\n return false;\n }",
"public void UndoRecover()\n\t{\n\t\t//System.out.println(\"Undo!\");\n\t\tif (m_backupLayerIndex != -1)\n\t\t{\n\t\t\t//if the last change was a new gate added to layer,\n\t\t\t//we need to change again the sizes of layers, as we save them\n\t\t\tif (m_layers.get(m_backupLayerIndex).IsLastChangeNewGate())\n\t\t\t{\n\t\t\t\t//system.out.format(\"Undoing a new gate: resizing the layer %d to have one less item, now %d\\n\", m_backupLayerIndex, m_layersSizes.get(m_backupLayerIndex+1)-1);\n\t\t\t\tLogger.write(\"Undoing a new gate: resizing the layer \" + String.valueOf(m_backupLayerIndex ) + \" to have one less item, now \" + String.valueOf(m_layersSizes.get(m_backupLayerIndex+1)-1 ));\n\t\t\t\tm_layersSizes.set(m_backupLayerIndex+1, m_layersSizes.get(m_backupLayerIndex+1) - 1);\n\t\t\t}\n\t\t\tm_layers.get(m_backupLayerIndex).UndoRecoverLayer();\n\t\t\tm_backupLayerIndex = -1;\n\t\t}\n\t\tif (m_secondBackupLayerIndex != -1)\n\t\t{\n\t\t\tm_layers.get(m_secondBackupLayerIndex).UndoRecoverLayer();\n\t\t\tm_secondBackupLayerIndex = -1;\n\t\t}\n\t\tm_backupLayerIndex = -1;\n\t\tm_secondBackupLayerIndex = -1;\n\t}",
"@Override\n public boolean undo() {\n // nothing required to be done\n return false;\n }",
"abstract protected void revert();",
"public void resetContexto()\r\n {\r\n this.contexto = null;\r\n }",
"void undoPreviousAction() throws NothingToUndoException;",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"public void undoLastCapturedPhoto() {\n\t\t\n\t}",
"public void undoMove();",
"@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}",
"private void abortTransformations() {\n for (Integer num : this.mTransformedViews.keySet()) {\n TransformState currentState = getCurrentState(num.intValue());\n if (currentState != null) {\n currentState.abortTransformation();\n currentState.recycle();\n }\n }\n }",
"@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }",
"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 }",
"private void restorePreviousState() {\n\n\t\tif (StoreAnalysisStateApplication.question1Answered) {\n\t\t\tfirstImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question2Answered) {\n\t\t\tsecondImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.question3Answered) {\n\t\t\tthirdImageVievQuestion\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\tfirstImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.swipegestureenabled);\n\t\t}\n\n\t\tif (StoreDesignStateApplication.stageCleared) {\n\t\t\tsecondImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.voicereadingenabled);\n\t\t}\n\n\t\tif (StoreImplementationStateApplication.stageCleared) {\n\t\t\tthirdImageVievDescription\n\t\t\t\t\t.setImageResource(R.drawable.microphonenabled);\n\t\t}\n\n\t}",
"void cancelOriginal();",
"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 undo(){\n if(!isFreeDraw) { //in waypoint mode delete the last point\n int size = mMapInterface.getPathFrame().size();\n if (size >= 1) {\n isPathReady=false;\n mMapInterface.getPathFrame().remove(size - 1);\n pointsCounter--;\n googleMap.clear();\n drawLine();\n }\n }\n else{ //in continu mode delete all path\n deletePath();\n drawFree();\n }\n }",
"public void undoAll() {\n firePropertyChange(\"array\", null, EMPTY_STRING);\n myDrawingArray.clear();\n myUndoStack.clear();\n myCurrentShape = new Drawing(new Line2D.Double(), Color.WHITE, 0);\n repaint();\n }",
"public void undo() {\n TopsoilTabPane topsoilTabPane = (TopsoilTabPane) topsoilTab.getTabPane();\n topsoilTabPane.getTabs().add(topsoilTab);\n }",
"@Override\n public void undo()\n {\n PointsBinding.setScaling(false);\n property.setValue(orig_points);\n property.getWidget().setPropertyValue(propX, orig_x);\n property.getWidget().setPropertyValue(propY, orig_y);\n property.getWidget().setPropertyValue(propWidth, orig_width);\n property.getWidget().setPropertyValue(propHeight, orig_height);\n PointsBinding.setScaling(true);\n }",
"void Undo() {\n if (shapes.size() > 0) {\n shapes.remove(shapes.size() - 1);\n lineColours.remove(lineColours.size() - 1);\n currentPenColour = lineColours.get(lineColours.size() - 1);\n fillColours.remove(fillColours.size() - 1);\n currentFillColour = fillColours.get(fillColours.size() - 1);\n writeFile.undoWrite();\n repaint();\n }\n }",
"public void undoClick(){\n //For Two Player Games\n if (activity.getPlayerVsPlayer()) {\n undoAction();\n } else {\n //One Player games vs the computer\n computerIsMoving = true;\n for(int i=0;i<2;i++) {\n undoAction();\n }\n computerIsMoving = false;\n }\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 public void undo(TSPSolution solution) {\n apply(solution);\n }",
"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}",
"public boolean undo() {\n if (points.size()==0) {\n return false;\n }\n points.undo();\n repaint();\n return true;\n }",
"public void resetSelection(IClientContext context) throws Exception;",
"void restoreBefore() {\r\n\t\t\tsurface.basemap.clear();\r\n\t\t\tsurface.basemap.putAll(basemapBefore);\r\n\t\t\tsurface.buildingmap.clear();\r\n\t\t\tsurface.buildingmap.putAll(buildingmapBefore);\r\n\t\t\tsurface.features.clear();\r\n\t\t\tsurface.features.addAll(surfaceBefore);\r\n\t\t\tsurface.buildings.clear();\r\n\t\t\tsurface.buildings.addAll(buildingsBefore);\r\n\t\t}",
"public void resetPresentation();",
"void resetView();",
"@Override\n\tpublic UpdateContainer undoIt(Workspace workspace) {\n\t\treturn null;\n\t}"
] | [
"0.7164444",
"0.6932179",
"0.69059116",
"0.6888256",
"0.6869684",
"0.68208224",
"0.67334604",
"0.6733197",
"0.6733197",
"0.6717346",
"0.66810673",
"0.66480744",
"0.66480744",
"0.66480744",
"0.66384155",
"0.66156733",
"0.6516074",
"0.6515352",
"0.64975244",
"0.64790756",
"0.6437653",
"0.64063376",
"0.63942313",
"0.6391467",
"0.6386661",
"0.6379985",
"0.6311435",
"0.63088125",
"0.6307297",
"0.6293875",
"0.6278191",
"0.6260689",
"0.62547964",
"0.6248501",
"0.62364703",
"0.6223993",
"0.6178103",
"0.61754364",
"0.6169229",
"0.61619216",
"0.6155612",
"0.61371475",
"0.61352366",
"0.613412",
"0.6133626",
"0.6124404",
"0.61163753",
"0.61161244",
"0.61155134",
"0.6110804",
"0.6094931",
"0.6089896",
"0.6065877",
"0.60617596",
"0.60569525",
"0.6051684",
"0.60447866",
"0.60430825",
"0.60368705",
"0.6026539",
"0.602057",
"0.60180306",
"0.6007919",
"0.5998332",
"0.59786445",
"0.5975461",
"0.5967042",
"0.5954862",
"0.5946795",
"0.5944614",
"0.59339404",
"0.5931446",
"0.5926625",
"0.5915486",
"0.5907922",
"0.5901373",
"0.5899435",
"0.58764446",
"0.5874257",
"0.58712924",
"0.58692634",
"0.58491945",
"0.58476704",
"0.5847133",
"0.58425194",
"0.5836207",
"0.5832383",
"0.5831891",
"0.58283114",
"0.58156645",
"0.58122563",
"0.5811237",
"0.5796696",
"0.579174",
"0.5785627",
"0.5762575",
"0.5760305",
"0.57598376",
"0.57479393",
"0.574774"
] | 0.66010606 | 16 |
. Redo the context to the next state | public final void redo() {
this.historyManager.redo();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tprotected void restoreContext() {\n\t\t\t\t\r\n\t\t\t}",
"public void reset() {\n context.reset();\n state = State.NAME;\n }",
"public void reset() {\n\t\treset(ModSettings.currentContext);\n\t}",
"protected void resetState()\n {\n // Nothing to do by default.\n }",
"public abstract Op resetStates();",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.369 -0500\", hash_original_method = \"D28ACF4ED7DED6C7ED370F52380381BA\", hash_generated_method = \"21646247B3F1AB7BA202FFA1C126FBBF\")\n \npublic void popContext ()\n {\n contexts[contextPos].clear();\n contextPos--;\n if (contextPos < 0) {\n throw new EmptyStackException();\n }\n currentContext = contexts[contextPos];\n }",
"public void restoreState(FacesContext context, Object state) {\n }",
"public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }",
"public void context_restore(long context) {\n context_restore(nativeHandle, context);\n }",
"public void onRestorePendingState() {\n }",
"@Override\n\tpublic void resetToExisting() {\n\t\t\n\t}",
"void resetMachineState(ExecutionContext context) {\r\n synchronized (classLoaderLock) {\r\n if (classLoader == null) {\r\n return;\r\n }\r\n classLoader.resetCachedResults(context);\r\n // Discard the class loader. This will unload all classes in the module and adjunct.\r\n classLoader = null;\r\n }\r\n }",
"synchronized void revertState()\n {\n state = state.revert();\n notifyAll();\n }",
"@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}",
"public void resetState();",
"@Override\r\n\t\t\tpublic void reset() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n\t\tprotected void reset()\n\t\t{\n\t\t}",
"public void resetContexto()\r\n {\r\n this.contexto = null;\r\n }",
"public void reset() {\n this.state = null;\n }",
"protected void reset() {\n\t\t}",
"@Override\n\tpublic void reset(){\n\t\tstate.reset();\n\t\toldState.reset();\n\t\treturnAction = new boolean[Environment.numberOfButtons]; \n\t\trewardSoFar = 0;\n\t\tcurrentReward = 0;\n\t}",
"public void removeTopRewardAndContinue() {\n inventoryEntityToRetrieve.pop();\n if (inventoryEntityToRetrieve.isEmpty()) incrementStateIndex();\n }",
"public void revise()\n {\n \n super.revise();\n }",
"private void abortTransformations() {\n for (Integer num : this.mTransformedViews.keySet()) {\n TransformState currentState = getCurrentState(num.intValue());\n if (currentState != null) {\n currentState.abortTransformation();\n currentState.recycle();\n }\n }\n }",
"@Override\n public void reset() \n {\n\n }",
"public void restart() {\n ReadOnlyAssignmentList currentState = assignmentListStateList.get(currentStatePointer);\n assignmentListStateList.clear();\n assignmentListStateList.add(currentState);\n currentStatePointer = 0;\n }",
"public void reset() {\n\t\t\t\t\r\n\t\t\t}",
"public void popState();",
"public void restoreState() {\n\t\tsuper.restoreState();\n\t}",
"@Override\r\n\tpublic void nextState() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void reset()\r\n\t{\r\n\t}",
"public void reset(){\n currentStage = 0;\n currentSide = sideA;\n }",
"public void restoreState() \n\t{\n\t\tsuper.restoreState();\n\t}",
"@Override\n\tpublic void reset() {\n\t\tthis.prepare();\n\t\tsuper.reset();\n\t}",
"public final void rewind() {\n branch = 0;\n }",
"public void flowAbrupted() {\n prevInstruction = null;\n }",
"public void reset() {\n this.isExhausted = false;\n }",
"void clearCurrent();",
"public static void releaseState() {\n MockPageContext.methodArguments.clear();\n MockPageContext.methodResults.clear();\n MockPageContext.throwExceptions.clear();\n MockPageContext.globalException = null;\n }",
"public final void popState() {\n engine.getGameStateManager().popState();\n }",
"public void resetState() {\n \ts = State.STRAIGHT;\n }",
"@Override\r\n\tpublic void reset() {\n\t}",
"protected void doRestoreState(RestorableSupport rs, RestorableSupport.StateObject context)\n {\n this.doMyRestoreState(rs, context);\n }",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n\tpublic void reset() {\n\t\t\n\t}",
"@Override\n public void reset() {\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 }",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\r\n\tpublic void reset() {\n\r\n\t}",
"@Override\n public void reset() {\n cancelAll();\n }",
"public void refill(){\r\n\t}",
"public void reset () {}",
"@Override\n public TurnState getNextState() { return new Finalize(); }",
"public void undo() {\n target.setCombatState( oldState );\n }",
"private void reset() {\n }",
"public void discardAndGoBack() {\n try {\n currentEditor.setValue(null);\n if (currentEditor instanceof RestrictedEntityEditor) {\n ((RestrictedEntityEditor) currentEditor).refreshListOfValues();\n }\n } catch (Exception ex) {\n throw new RuntimeException(\"Exception while discarding value of an editor. \", ex);\n }\n goBack();\n }",
"private void changeContext(){\n MainWorkflow.observeContexts(generateRandom(24,0));\n }",
"@Override\r\n\tpublic void resume() {\n\t\tcurrentState.resume();\r\n\t}",
"void clearObjectFlowStates();",
"@Override\n\tpublic void reset() {\n\t}",
"@Override\n public void reset() {\n\n }",
"public void switchToGlobalContext(){\n currentConstants = null;\n currentVariables = null;\n\n temporaryConstants = null;\n temporaryVariables = null;\n }",
"@Override\n\tpublic void reset() {\n\n\t}",
"public void\n\t invalidateState()\n\t //\n\t ////////////////////////////////////////////////////////////////////////\n\t {\n\t if (state != null) {\n\t\t\t\tstate.destructor();\n\t\t\t\tstate = null;\n\t }\n\t }",
"protected void reset() {\n writer.flush();\n stack.clear();\n context = new JsonContext(JsonContext.Mode.VALUE);\n }",
"public void levelDown() {\n this._learnState -= 1;\n this.save();\n }",
"public void clearState() {\r\n int size = states.size();\r\n states.clear();\r\n states.add(inception);\r\n for (int i = states.size(); i < size; i++) {\r\n nextState();\r\n }\r\n alteredStates.clear();\r\n }",
"synchronized void advanceState()\n {\n state = state.advance();\n notifyAll();\n }",
"@Override\r\n\tpublic void resetObject() {\n\t\t\r\n\t}",
"@Override\n public void onRestate() {\n }",
"public void reset() {\r\n bop.reset();\r\n gzipOp = null;\r\n }",
"@Override\n public StepResult undoStep(FlightContext context) throws InterruptedException {\n return StepResult.getStepResultSuccess();\n }",
"public void undo() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t\tCollections.swap(model.getListOfShapes(), model.getListOfShapes().size()-1, i); \r\n\t\t\r\n\t\t/*if(print == true) {\r\n\t\t\t\r\n\t\t\tFrame.textArea.append(\"UNDO >>> Bring to back: \" + s +\"\\n\");\r\n\t\t}\r\n\t\t\r\n\t\tprint = true;*/\r\n\t\r\n\t\t\r\n\t}",
"public void undo() {\n\t\tstate = null;\n\t\tfor (Row r : containingRows)\n\t\t\tr.undo(this);\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"@Override\n\tpublic void stateMachineAbort() {\n\n\t}",
"protected void reset() {\r\n super.reset();\r\n this.ring = null;\r\n }",
"@Override\n public final void switchBack() {\n }",
"public synchronized void reset() {\n }",
"public void pop(){\n states.pop().dispose();\n }",
"@Override\n\tvoid reset() {\n\t\t\n\t}",
"private void breakSpecialState() {\n this.inSpecialState = false;\n this.resetXMovement();\n }",
"void detachCurrent();",
"public void back() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null)\n\t return;\n\n\tif (!crossLocation.isEmpty()) {\n\t\t\n\t crossLocation.pop();\n\n\t //back\n\t ArrayList<Location> lastNode = crossLocation.peek();\n\t next = lastNode.get(0);\n\t}\n\n\tLocation loc = getLocation();\n\t\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\t\n\tint counter = dirCounter.get(getDirection());\n\tdirCounter.put(getDirection(), --counter);\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n }",
"public void reset() {\n\r\n\t}",
"void unsetState();",
"private void Back() {\n this.dispose();\n tmrTime.stop();\n }",
"private static void endTenantFlow() {\n Stack<TenantContextDataHolder> contextDataStack = parentHolderInstanceStack.get();\n if (contextDataStack != null) {\n holderInstance.set(contextDataStack.pop());\n }\n }",
"public void reset(){\n active = false;\n done = false;\n state = State.invisible;\n curX = 0;\n }",
"@Override\n\tpublic void stateMachineAbort() {\n\t}",
"@Override\n public void endState() {\n spells.clear();\n spellButtons.clear();\n }",
"public void reset() {\n\n\t}",
"public void changeState() {\n if (!isDead) {\n Bitmap temp = getBitmap();\n setBitmap(stateBitmap);\n stateBitmap = temp;\n }\n }",
"private void exitSequence_mainRegion_State1() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}",
"private void advance() {\n assert currentItemState == ItemProcessingState.COMPLETED || currentIndex == -1\n : \"moving to next but current item wasn't completed (state: \" + currentItemState + \")\";\n currentItemState = ItemProcessingState.INITIAL;\n currentIndex = findNextNonAborted(currentIndex + 1);\n retryCounter = 0;\n requestToExecute = null;\n executionResult = null;\n assert assertInvariants(ItemProcessingState.INITIAL);\n }"
] | [
"0.6881498",
"0.65221566",
"0.6331624",
"0.6165009",
"0.61412925",
"0.61164266",
"0.60641193",
"0.60161746",
"0.59693784",
"0.59675884",
"0.596567",
"0.59639204",
"0.592049",
"0.5912353",
"0.5912353",
"0.5912353",
"0.5912353",
"0.59119445",
"0.5907788",
"0.5894306",
"0.5866875",
"0.58616865",
"0.584304",
"0.5832949",
"0.5812496",
"0.5811658",
"0.57969403",
"0.57784575",
"0.5777077",
"0.57507217",
"0.5748542",
"0.57428306",
"0.57409936",
"0.57305866",
"0.5725076",
"0.5706546",
"0.5704632",
"0.57030994",
"0.56962365",
"0.56945735",
"0.5685287",
"0.5681898",
"0.56802744",
"0.5670049",
"0.56452554",
"0.5637419",
"0.5635417",
"0.5635417",
"0.5629557",
"0.5623251",
"0.56223744",
"0.56223744",
"0.5619686",
"0.5619451",
"0.56180626",
"0.56109357",
"0.5608668",
"0.56081593",
"0.56004393",
"0.5596431",
"0.5592876",
"0.5589149",
"0.558379",
"0.5572737",
"0.55720127",
"0.55614614",
"0.55498016",
"0.554576",
"0.5544146",
"0.55414695",
"0.55360824",
"0.5534055",
"0.553281",
"0.55308455",
"0.5525377",
"0.55237645",
"0.55139947",
"0.55083585",
"0.5506808",
"0.5506808",
"0.5506808",
"0.5506808",
"0.5506231",
"0.55034596",
"0.54980224",
"0.5489946",
"0.548273",
"0.54812455",
"0.5475265",
"0.5475052",
"0.5455944",
"0.5455203",
"0.54527694",
"0.54512",
"0.54502696",
"0.5445679",
"0.54407054",
"0.5440604",
"0.5433455",
"0.5431876",
"0.54269075"
] | 0.0 | -1 |
Creates a new ValidatorStandardSubsetBroad validator. | public ValidatorStandardSubsetBroad() {
super();
addErrorKey(ERROR_KEY1);
addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY1);
addErrorKey(ERROR_KEY2);
addValidatorErrorListener(new DefaultErrorListener(), ERROR_KEY2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private TSLValidatorFactory() {\r\n\t\tsuper();\r\n\t}",
"public BundleValidator() {\n\t\tsuper();\n\t}",
"public Wps10Validator() {\r\n super();\r\n xmlTypeValidator = XMLTypeValidator.INSTANCE;\r\n }",
"public GenericSchemaValidator() {}",
"public SpecValidator() {\n\t\tsuper();\n\t}",
"public SampleModel createSubsetSampleModel(int bands[]) {\n if (bands.length > bankIndices.length)\n throw new RasterFormatException(\"There are only \" + bankIndices.length + \" bands\");\n int newBankIndices[] = new int[bands.length];\n int newBandOffsets[] = new int[bands.length];\n\n for (int i = 0; i < bands.length; i++) {\n newBankIndices[i] = bankIndices[bands[i]];\n newBandOffsets[i] = bandOffsets[bands[i]];\n }\n\n return new ComponentSampleModel(this.dataType, width, height, this.pixelStride, this.scanlineStride,\n newBankIndices, newBandOffsets);\n }",
"public SubsetTableImpl() {\n\t\tsuper();\n\t\tsubset = new int[0];\n\t}",
"public SampleModel createSubsetSampleModel(int bands[]) {\n int newBandOffsets[] = new int[bands.length];\n for (int i = 0; i < bands.length; i++) {\n newBandOffsets[i] = bandOffsets[bands[i]];\n }\n return new PixelInterleavedSampleModel(this.dataType, width, height, this.pixelStride, scanlineStride,\n newBandOffsets);\n }",
"protected DTDSubset() { }",
"public static ITSLValidator createTSLValidator(ITSLObject tslObject) {\r\n\r\n\t\tITSLValidator result = null;\r\n\r\n\t\tif (tslObject != null) {\r\n\r\n\t\t\tif (ITSLSpecificationsVersions.SPECIFICATION_119612.equals(tslObject.getSpecification())) {\r\n\r\n\t\t\t\tif (ITSLSpecificationsVersions.VERSION_020101.equals(tslObject.getSpecificationVersion())) {\r\n\t\t\t\t\tresult = new es.gob.valet.tsl.certValidation.impl.ts119612.v020101.TSLValidator(tslObject);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\r\n\t}",
"CrossValidation createCrossValidation();",
"public SELF withValidation(boolean enableValidation) {\n this.enableValidation = enableValidation;\n return self();\n }",
"public void testCtor2() {\r\n try {\r\n new BloomFilter(Integer.MAX_VALUE, new DefaultHashFunctionFamily(10000));\r\n fail(\"The length of bitset is too large.\");\r\n } catch(IllegalArgumentException e) {\r\n //good\r\n }\r\n }",
"public final void setSubsetConversion(final String cSubsetConversion) {\n\t\tthis.subsetConversion = cSubsetConversion;\n\t}",
"SubsetTableImpl(int numColumns) {\n\t\tsuper(numColumns);\n\t\tsubset = new int[0];\n\t}",
"BSubTrue createBSubTrue();",
"@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }",
"public ValidatorFilter() {\n\n\t}",
"@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }",
"public SGraphValidator() {\r\n\t\tsuper();\r\n\t}",
"private static void checkNSSubset(XSWildcardDecl dWildcard, int min1, int max1, XSWildcardDecl bWildcard, int min2, int max2) throws XMLSchemaException {\n/* 1196 */ if (!checkOccurrenceRange(min1, max1, min2, max2)) {\n/* 1197 */ throw new XMLSchemaException(\"rcase-NSSubset.2\", new Object[] {\n/* 1198 */ Integer.toString(min1), (max1 == -1) ? \"unbounded\" : \n/* 1199 */ Integer.toString(max1), \n/* 1200 */ Integer.toString(min2), (max2 == -1) ? \"unbounded\" : \n/* 1201 */ Integer.toString(max2)\n/* */ });\n/* */ }\n/* */ \n/* 1205 */ if (!dWildcard.isSubsetOf(bWildcard)) {\n/* 1206 */ throw new XMLSchemaException(\"rcase-NSSubset.1\", null);\n/* */ }\n/* */ \n/* 1209 */ if (dWildcard.weakerProcessContents(bWildcard)) {\n/* 1210 */ throw new XMLSchemaException(\"rcase-NSSubset.3\", new Object[] { dWildcard\n/* 1211 */ .getProcessContentsAsString(), bWildcard\n/* 1212 */ .getProcessContentsAsString() });\n/* */ }\n/* */ }",
"public Validation() {\n }",
"public SortedSubset(RangeSet<T> constitutingSuperset, T lowerbound, T upperbound)\n\t{\n\t\tinit(constitutingSuperset, lowerbound, upperbound, true, false);\n\t}",
"public static ValidatorConfig getStandardPDFA1BConfiguration () {\n\t ValidatorConfig pdfa1bStandardConfig = new ValidatorConfig();\n\t pdfa1bStandardConfig.addPriorHelpers(STREAM_FILTER, StreamValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(CATALOG_FILTER, CatalogValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(FONT_FILTER, FontValidationHelper.class);\n\t pdfa1bStandardConfig.addPriorHelpers(GRAPHIC_FILTER, GraphicsValidationHelper.class);\n\n\t pdfa1bStandardConfig.addStandHelpers(TRAILER_FILTER, TrailerValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(XREF_FILTER, XRefValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(BOOKMARK_FILTER, BookmarkValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(ACRO_FORM_FILTER, AcroFormValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(FILE_SPECIF_FILTER, FileSpecificationValidationHelper.class);\n\t // Page Helper must be called after the FontHelper to check\n\t // if Fonts used by the page content are embedded in the PDF file.\n\t pdfa1bStandardConfig.addStandHelpers(PAGE_FILTER, PagesValidationHelper.class);\n\t pdfa1bStandardConfig.addStandHelpers(META_DATA_FILTER, MetadataValidationHelper.class);\n\n\t pdfa1bStandardConfig.setActionFactory(ActionManagerFactory.class);\n\t pdfa1bStandardConfig.setAnnotationFactory(PDFAbAnnotationFactory.class);\n\t return pdfa1bStandardConfig;\n }",
"public com.vodafone.global.er.decoupling.binding.request.ValidateServiceRequest createValidateServiceRequest()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ValidateServiceRequestImpl();\n }",
"public SearchConditionSB() {\r\n }",
"Constraint createConstraint();",
"Constraint createConstraint();",
"LengthConstraint createLengthConstraint();",
"public SELF enableValidation() {\n this.enableValidation = true;\n return self();\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n boolean weakMinimumSizeAllowed) {\n return create(listener, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"public static MetricTransformation2DRobustEstimator create(\n boolean weakMinimumSizeAllowed) {\n return create(weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"@Override\n public Validation create(Validation value) {\n return null;\n }",
"public void testConstructors()\n {\n VectorThresholdInformationGainLearner<String> subLearner = null;\n double percentToSample = RandomSubVectorThresholdLearner.DEFAULT_PERCENT_TO_SAMPLE;\n VectorFactory<?> vectorFactory = VectorFactory.getDefault();\n int[] dimensionsToConsider = null;\n RandomSubVectorThresholdLearner<String> instance = new RandomSubVectorThresholdLearner<String>();\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertNotNull(instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n\n subLearner = new VectorThresholdInformationGainLearner<String>();\n percentToSample = percentToSample / 2.0;\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, random);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n\n vectorFactory = VectorFactory.getSparseDefault();\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, random, vectorFactory);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n \n dimensionsToConsider = new int[] {5, 12};\n vectorFactory = VectorFactory.getSparseDefault();\n instance = new RandomSubVectorThresholdLearner<String>(subLearner,\n percentToSample, dimensionsToConsider, random, vectorFactory);\n assertSame(subLearner, instance.getSubLearner());\n assertEquals(percentToSample, instance.getPercentToSample());\n assertSame(dimensionsToConsider, instance.getDimensionsToConsider());\n assertSame(random, instance.getRandom());\n assertSame(vectorFactory, instance.getVectorFactory());\n }",
"ValueRangeConstraint createValueRangeConstraint();",
"public static BsonDocument createPartitionBounds(final BsonValue lower, final BsonValue upper) {\n BsonDocument partitionBoundary = new BsonDocument();\n if (lower.getBsonType() != BsonType.MIN_KEY) {\n partitionBoundary.append(\"$gte\", lower);\n }\n if (upper.getBsonType() != BsonType.MAX_KEY) {\n partitionBoundary.append(\"$lt\", upper);\n }\n return partitionBoundary;\n }",
"private ValidationUtils() {}",
"public BoundsUserSpace() {\n super();\n }",
"public ConfigurationValidator2D(VersionRules theRules){\n\t\tthis.theRules = theRules;\n\t}",
"public static MetricTransformation2DRobustEstimator create(\n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(qualityScores, weakMinimumSizeAllowed, DEFAULT_ROBUST_METHOD);\n }",
"VariantConditionModel createInstanceOfVariantConditionModel();",
"@BeforeClass\n public static void setUpValidator() {\n vf = Validation.buildDefaultValidatorFactory();\n validator = vf.getValidator();\n }",
"Subdivision create(Subdivision subdivision);",
"public void setSubsetVersion(String version);",
"public GridAxis1D.Builder<?> makeSubsetByIndex(Range subsetRange) {\n int ncoords = subsetRange.length();\n Preconditions.checkArgument(subsetRange.last() < orgGridAxis.getNcoords());\n\n double resolution = 0.0;\n if (orgGridAxis.getSpacing().isRegular()) {\n resolution = subsetRange.stride() * orgGridAxis.getResolution();\n }\n\n GridAxis1D.Builder<?> builder = orgGridAxis.toBuilder();\n builder.subset(ncoords, orgGridAxis.getCoordMidpoint(subsetRange.first()),\n orgGridAxis.getCoordMidpoint(subsetRange.last()), resolution, subsetRange);\n return builder;\n }",
"public static final InputValidator<String> createLengthValidator(\n\t\t\tint minLength,\n\t\t\tdouble maxLength, \n\t\t\tString validationMessage\n\t) {\n\t\treturn new InputValidator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic String getErrorMessage(String input) {\n\t\t\t\treturn input.length() >= minLength \n\t\t\t\t\t\t&& input.length() <= maxLength ? DEFAULT_SUCCESS_MESSAGE : validationMessage;\n\t\t\t}\n\t\t};\n\t}",
"private Remove initAttributesFilter(BitSet subset) throws Exception {\n\t\tRemove attributesFilter = new Remove();\n\t\tint[] indices = CommonUtilities.bitsetToIntegerArray(subset, true);\n\n\t\tindices[indices.length - 1] = instances.classIndex();\n\t\tattributesFilter.setAttributeIndicesArray(indices);\n\t\tattributesFilter.setInvertSelection(true);\n\t\tattributesFilter.setInputFormat(instances);\n\t\treturn attributesFilter;\n\t}",
"public Table shallowCopy() {\n\t\tSubsetTableImpl vt =\n\t\t\tnew SubsetTableImpl(this.getColumns(), this.subset);\n\t\tvt.setLabel(getLabel());\n\t\tvt.setComment(getComment());\n\t\treturn vt;\n\t}",
"protected boolean applySubsetRule(Node value) {\n\n int type;\n int sizeParents;\n boolean isAppliedRule = false;\n Node auxI;\n Node auxJ;\n int i;\n NodeList auxNodeList = new NodeList();\n Node auxNode;\n\n\n //If the subset rule is forbidden then the methods finishes\n if (canApplySubsetRule == false) {\n return false;\n } else {\n\n type = value.getKindOfNode();\n\n if (type == Node.UTILITY) {\n return false;\n } else {//(type == Node.SUPER_VALUE)\n NodeList parents = diag.parents(value);\n sizeParents = parents.size();\n\n //See if subset rule can be applied to some ancestors\t\t\t\n for (i = 0; (i < sizeParents) && (isAppliedRule == false); i++) {\n isAppliedRule = applySubsetRule(parents.elementAt(i));\n }\n if (isAppliedRule) {\n indexOperation++;\n try {\n diag.save(\"debug-operation-\" + indexOperation + \".elv\");\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n if (isAppliedRule == false) {\n //See if subset rule can be applied to two utility parents\n for (i = 0; (i < sizeParents - 1) && (isAppliedRule == false); i++) {\n auxI = parents.elementAt(i);\n if (auxI.getKindOfNode() == Node.UTILITY) {\n for (int j = i + 1; (j < sizeParents) && (isAppliedRule == false); j++) {\n auxJ = parents.elementAt(j);\n if (auxJ.getKindOfNode() == Node.UTILITY) {\n if (verifySubsetRule(auxI, auxJ)) {\n String operation =\n \"Apply subset rule to: \" + auxI.getName() + \" and \" + auxJ.getName();\n\n statistics.addOperation(operation);\n System.out.println(operation);\n\n auxNodeList.insertNode(auxI);\n auxNodeList.insertNode(auxJ);\n auxNode = introduceSVNode(auxNodeList, value);\n System.out.println(\"Nodo introducido por la subset rule anterior: \" + auxNode.getName());\n ReductionAndEvalID.reduceNode((IDWithSVNodes) diag, auxNode);\n System.out.println(\"Reducción del nodo: \" + auxNode.getName());\n\n statistics.addSize(diag.calculateSizeOfPotentials());\n statistics.addTime(crono.getTime());\n\n\n isAppliedRule = true;\n\n indexOperation++;\n try {\n diag.save(\"debug-operation-\" + indexOperation + \".elv\");\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n\n }\n }\n }\n }\n }\n\n }\n }\n\n return isAppliedRule;\n }\n }",
"public static MetricTransformation2DRobustEstimator create(\n MetricTransformation2DRobustEstimatorListener listener, \n double[] qualityScores, boolean weakMinimumSizeAllowed) {\n return create(listener, qualityScores, weakMinimumSizeAllowed, \n DEFAULT_ROBUST_METHOD);\n }",
"public static SubtypeDef create(String subtypeName) throws IllegalArgumentException\n {\n if (subtypeName == null)\n {\n throw new IllegalArgumentException(\"No null subtype name accepted\");\n }\n if (subtypeName.length() == 0)\n {\n throw new IllegalArgumentException(\"No empty subtype name accepted\");\n }\n return new SubtypeDef(subtypeName);\n }",
"public void setValidRange (int lowerBounds, int upperBounds)\r\n\t{\r\n\t\tm_lowerBounds = lowerBounds;\r\n\t\tm_upperBounds = upperBounds;\r\n\t}",
"public StochasticSamplingSubnetLayer(final Layer subnetwork, final int samples) {\n super(subnetwork);\n this.samples = samples;\n }",
"public com.vodafone.global.er.decoupling.binding.request.SelfcareFullSubscriptionsType.SubscriptionFilterType createSelfcareFullSubscriptionsTypeSubscriptionFilterType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareFullSubscriptionsTypeImpl.SubscriptionFilterTypeImpl();\n }",
"private void createConstraintsForSingleton() {\n \t\tSet s = slice.entrySet();\n \t\tfor (Iterator iterator = s.iterator(); iterator.hasNext();) {\n \t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n \t\t\tHashMap conflictingEntries = (HashMap) entry.getValue();\n \t\t\tif (conflictingEntries.size() < 2)\n \t\t\t\tcontinue;\n \n \t\t\tCollection conflictingVersions = conflictingEntries.values();\n \t\t\tString singletonRule = \"\"; //$NON-NLS-1$\n \t\t\tArrayList nonSingleton = new ArrayList();\n \t\t\tint countSingleton = 0;\n \t\t\tfor (Iterator conflictIterator = conflictingVersions.iterator(); conflictIterator.hasNext();) {\n \t\t\t\tIInstallableUnit conflictElt = (IInstallableUnit) conflictIterator.next();\n \t\t\t\tif (conflictElt.isSingleton()) {\n \t\t\t\t\tsingletonRule += \" -1 \" + getVariable(conflictElt); //$NON-NLS-1$\n \t\t\t\t\tcountSingleton++;\n \t\t\t\t} else {\n \t\t\t\t\tnonSingleton.add(conflictElt);\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (countSingleton == 0)\n \t\t\t\tcontinue;\n \n \t\t\tfor (Iterator iterator2 = nonSingleton.iterator(); iterator2.hasNext();) {\n \t\t\t\tconstraints.add(singletonRule + \" -1 \" + getVariable((IInstallableUnit) iterator2.next()) + \" >= -1;\"); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\t}\n \t\t\tsingletonRule += \" >= -1;\"; //$NON-NLS-1$\n \t\t\tconstraints.add(singletonRule);\n \t\t}\n \t}",
"public ColorClass setConstraint(Interval newconstr) {\n return setConstraint(new Interval[] {newconstr} );\n }",
"public TestPN2SCValidationBWD() {\r\n\t\tsuper(PetriNetLanguagePackage.eINSTANCE,\r\n\t\t\t\tPetriNetToStatechartIntegrationPackage.eINSTANCE,\r\n\t\t\t\tStatechartLanguagePackage.eINSTANCE);\r\n\t}",
"@Override\n\tpublic void CheckBounds() {\n\t\t\n\t}",
"public static BrokerCompatibilityCheck create(final Map<String, Object> streamsConfig, final Set<String> topicNames) {\n if (topicNames.isEmpty()) {\n throw new KsqlException(\"Unable to check broker compatibility against a broker without any topics\");\n }\n final Map<String, Object> consumerConfigs = new StreamsConfig(streamsConfig)\n .getConsumerConfigs(\"__ksql_compatibility_check\", \"ksql_server\");\n\n // remove this otherwise it will try and instantiate the StreamsPartitionAssignor\n consumerConfigs.remove(\"partition.assignment.strategy\");\n final KafkaConsumer<String, String> consumer\n = new KafkaConsumer<>(consumerConfigs, new StringDeserializer(), new StringDeserializer());\n return new BrokerCompatibilityCheck(consumer, new TopicPartition(topicNames.iterator().next(), 0));\n }",
"public SamFilterParams create() {\n return new SamFilterParams(this);\n }",
"public Table getSubset(int pos, int len) {\n\t\treturn new SubsetTableImpl(this, this.resubset(pos, len));\n\t}",
"public PickBounds() {\n\tbounds = null;\n }",
"RegExConstraint createRegExConstraint();",
"private ValidatorForm(){}",
"public void mo38839a(BrandsValidation brandsValidation) {\n }",
"public SearchKeywordRequestChildBroadcastorSource(FreeClientPool clientPool, int treeBranchCount, int serverPort, SearchKeywordBroadcastRequestCreator creator)\n\t{\n\t\tsuper(clientPool, treeBranchCount, serverPort, creator);\n\t}",
"@Test\n @ExpectedException(BusinessRuleException.class)\n public final void testMinLengthValidation() {\n\n SimpleCustomerDto customer = new SimpleCustomerDto();\n customer.setFirstName(\"Alfred\");\n customer.setLastName(\"Sloan\");\n customer.setCustomerNr(-1);\n customer.setUsername(\"a\"); // violates minlength = 3 constraint\n customer.setBirthDate(new DateTime(2008, 1, 1, 1, 1, 0, 0));\n\n customerServiceModelService.createCustomer(customer);\n }",
"public DataResourceBuilder _standardLicense_(URI _standardLicense_) {\n this.dataResourceImpl.setStandardLicense(_standardLicense_);\n return this;\n }",
"public BroadcastReaderSource(FreeClientPool clientPool, int rootBranchCount, int treeBranchCount, BroadcastRequestCreator creator)\n\t{\n\t\tsuper(clientPool, rootBranchCount, treeBranchCount, creator);\n\t}",
"FilterCondition createFilterCondition(int clueNum);",
"public LoadBalancerWRR(List<ServerUnit> _ListOfServers)\n\t{\n\t\tsuper(_ListOfServers);\n\t\ttypeOfLoadBalancer = typeOfLoadBalancer.WeightedRoundRobin;\n\t\tinitChosenServerIndex();\n\n\t/*\tinitTableOfServer();\n\t\tinitTempTableOfServer();*/\n\n\t}",
"public Tdt4250Validator() {\n\t\tsuper();\n\t}",
"public TextController createBounds(ControllerCore genCode) {\n\t\tboundsTXT = new TextController(\"bounds\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(bounds$1LBL);\n\t\t\t\tsetProperty(\"bounds\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn boundsTXT;\n\t}",
"public MhsmNetworkRuleSet() {\n }",
"public LinearConstraint() {\n\n }",
"public ValidateConfiguration() {\n super();\n }",
"public PerfIDEValidation(String name) {\n super(name);\n }",
"public BattlefieldSpecification() {\n\t\tthis(800, 600);\n\t}",
"protected Validator createValidator (PrintStream out)\n {\n return new Validator(out);\n }",
"private HyperplaneSubsets() {\n }",
"BSubFalse createBSubFalse();",
"public SubsetFilter createFilter(Dimension dimension);",
"public static StringArraySplitterBuilder newSplitter() {\n splitter = new StringArraySplit();\n return INSTANCE;\n }",
"public SettingInteger setValidRange(int min, int max) { _minValue = min; _maxValue = max; return this; }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"public com.vodafone.global.er.decoupling.binding.request.SelfcareSubscriptionsRequestType.SubscriptionFilterType createSelfcareSubscriptionsRequestTypeSubscriptionFilterType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SelfcareSubscriptionsRequestTypeImpl.SubscriptionFilterTypeImpl();\n }",
"public DoubleBoundedRangeModel()\n {\n this(0.0, 0.0, 0.0, 1.0, 10);\n }",
"public DoubleBoundedRangeModel(\n double v,\n double e,\n double minimum,\n double maximum)\n {\n this(v, e, minimum, maximum, 10);\n\n }",
"public SubsetTableImpl(TableImpl table, int[] subset) {\n\t\tthis.columns = table.getColumns();\n\t\tthis.label = table.label;\n\t\tthis.comment = table.comment;\n\t\tthis.subset = subset;\n\t}",
"private void setBounds(RectProto.Builder builderForValue) {\n this.bounds_ = (RectProto) builderForValue.build();\n this.bitField0_ |= 8;\n }",
"public ClassOfService(long min, long max, int mul) {\n\t\tthis.minThreshold = min;\n\t\tthis.maxThreshold = max;\n\t\tthis.multiplier = mul;\n\t}",
"public void setLowerBound (int lowerBound) throws ModelException;",
"public Code visitNarrowSubrangeNode(ExpNode.NarrowSubrangeNode node) {\n beginGen(\"NarrowSubrange\");\n Code code = node.getExp().genCode(this);\n code.genBoundsCheck(node.getSubrangeType().getLower(), \n node.getSubrangeType().getUpper());\n endGen(\"NarrowSubrange\");\n return code;\n }",
"@Override\n\tpublic void initialize(ValidCreateEmail constraintAnnotation) {\n\t\tConstraintValidator.super.initialize(constraintAnnotation);\n\t}",
"public BinaryMatrixNew() {\n\t\t\tsuper(Matrixes.<R, C>newValidating(PredicateUtils.inBetween(0d, 1d)));\n\t\t}",
"public RuleBasedValidator() {\n globalRules = new ArrayList();\n rulesByProperty = new HashMap();\n }",
"public com.vodafone.global.er.decoupling.binding.request.SubscriptionFullType.SuperCreditBalancesType createSubscriptionFullTypeSuperCreditBalancesType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.SubscriptionFullTypeImpl.SuperCreditBalancesTypeImpl();\n }",
"public GroupValidator()\n {\n this(new HashMap<Object, IValidator>());\n }"
] | [
"0.4894249",
"0.47646338",
"0.47617212",
"0.47493842",
"0.474759",
"0.47248787",
"0.47162527",
"0.46213746",
"0.45720822",
"0.4530216",
"0.451608",
"0.4498111",
"0.44854268",
"0.44813108",
"0.44649836",
"0.44632477",
"0.44602233",
"0.44489136",
"0.43682253",
"0.43623248",
"0.43612653",
"0.43434417",
"0.43375903",
"0.43084866",
"0.42829996",
"0.4281214",
"0.42636415",
"0.42636415",
"0.42583904",
"0.4245137",
"0.42256665",
"0.4223646",
"0.42202556",
"0.4200625",
"0.41969576",
"0.41925701",
"0.419243",
"0.4185276",
"0.41802484",
"0.41800475",
"0.41773975",
"0.4176538",
"0.4169491",
"0.4164271",
"0.4152696",
"0.41457957",
"0.41413337",
"0.41407454",
"0.41156805",
"0.41087803",
"0.4099388",
"0.40980718",
"0.40964606",
"0.4091929",
"0.40851498",
"0.40831092",
"0.40750563",
"0.4071719",
"0.40675914",
"0.40645865",
"0.40601376",
"0.40464246",
"0.40408754",
"0.40391517",
"0.4035511",
"0.4035023",
"0.40347052",
"0.4031592",
"0.40209782",
"0.40199065",
"0.4010387",
"0.4008507",
"0.39988774",
"0.3996576",
"0.3990496",
"0.39862436",
"0.39835975",
"0.39775443",
"0.39750963",
"0.3969023",
"0.3968276",
"0.39673346",
"0.3965299",
"0.3958414",
"0.39530757",
"0.39530757",
"0.39530757",
"0.39471057",
"0.39462104",
"0.394416",
"0.3938337",
"0.3936855",
"0.3936189",
"0.3932825",
"0.39300802",
"0.39294273",
"0.39290673",
"0.3922018",
"0.39217868",
"0.39206493"
] | 0.64180887 | 0 |
The method that is executed when you hit the run button. | public static void main(String[] args) {
// create a scanner for user input
Scanner input = new Scanner(System.in);
// declare integer variable
int posInt;
// only allows user to enter positive integer
do{
// ask the user for a postivie integer
System.out.println("Please enter a positive integer to determine its factors:");
posInt = input.nextInt();
} while(posInt <= 0);
// declare and initilaize counting variable
int count = 1;
// declare factor variable
int factor;
// tell the user what the factors
System.out.println("The factors of " + posInt + " are:");
// goes through all values up to integer to check for factors
while(count <= posInt){
if( posInt%count == 0){
// division to solve for factors
factor = posInt/count;
// prints to the user the factors
System.out.println(count);
}
// moves up one number and loop repeats unless greater than posInt
count = count + 1;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract void executeRunButton();",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRun();\n\t}",
"default void run() {\n\t\tSystem.out.println(\"run\");\r\n\t}",
"@Override\n public void run() {\n nextButtonAction(); // invoking next button //\n }",
"@Override\n\tpublic void run() {\n\t\tLog.i(tag, \"run\");\n\t}",
"public void intialRun() {\n }",
"public void run(){ \n \t//sets up the GUI and performs operations based on ActionListeners\n \tpackageGUI();\n \toperate();\n }",
"public void run() {\r\n _btnPreviewStop.setText(\"Preview\"); // I18N\r\n }",
"public abstract void viewRun();",
"public static void run(){}",
"public void run(){\n\t}",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"public void run();",
"@SuppressLint(\"InlinedApi\")\n @Override\n public void run() {\n }",
"public void run()\n {\n getMenuChoice();\n }",
"public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }",
"public void runEvent();",
"void mainButtonPressed();",
"public static void run() {\n }",
"@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(\"i am runing\");\r\n\t}",
"public void run()\n\t\t{\n\t\t}",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tRunAll();\n\t}",
"public void runEditorNew()\r\n\t{\r\n\t\tmainFrame.runEditorNew();\r\n\t}",
"public void run() {\r\n\t\t// overwrite in a subclass.\r\n\t}",
"public abstract void executeFightButton();",
"public void run()\r\n\t{\r\n\t\t\r\n\t}",
"public void testing() {\n System.out.println(\"button pressed!\");\n }",
"public void run()\n\t{\n\t}",
"@Override\r\n\tabstract public void run();",
"void run();",
"void run();",
"void run();",
"void run();",
"boolean run();",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO step in using debugger\r\n\t\t\t\t\tSystem.out.println(\"Step in button pressed\");\r\n\t\t\t\t}",
"@Override\n public void run() {\n Icon infoIcon = UIManager.getIcon(\"OptionPane.informationIcon\");\n // drop down options\n Object[] options = {\"Create DB\", \"Login\"};\n // show input dialog with dropdown options\n String action = (String) JOptionPane.showInputDialog(null,\n \"Select an action:\", \"ShowInputDialog\",\n JOptionPane.PLAIN_MESSAGE, infoIcon, options, \"Numbers\");\n // on option select\n switch(action) {\n case \"Create DB\" : {\n // create DB, tables and populate with data\n ApplicationDAO.createDBAndTables();\n break;\n }\n case \"Login\" : {\n // login\n boolean isLoggedIn = Login.login();\n break;\n }\n }\n }",
"public void run() {\n }",
"@Override\n abstract public void run();",
"public void run() {\n\n }",
"public void buttonClicked();",
"public void run() {\n }",
"public void run() {\n\n\t}",
"public void run() {\n\n\t}",
"public void run() {\n }",
"public abstract void run() ;",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t}",
"public void run() {\n\t\t\t\t\n\t\t\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"private void entryAction() {\n\t}",
"public void run() {\r\n }",
"public void run() {\n super.run();\n }",
"@Override\r\n\tpublic abstract void run();",
"public void run() {\n\t\t\n\t}",
"public void run() {\n\t\t\r\n\t}",
"public void run() {\n\t\t\r\n\t}",
"@Override\n public void run() {\n chosenActionUnit.run(getGame(), inputCommands);\n }",
"public abstract void run();",
"public abstract void run();",
"public abstract void run();",
"public void run() {\n\t}",
"public void run() {\n\t}",
"public void run() {\n criaGUI();\n \n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"public void run() {\n }",
"protected void run() {\r\n\t\t//\r\n\t}",
"public void run()\n {\n\n }",
"public void run()\n {\n }",
"public void run()\n {\n }",
"public void run() {\n }",
"public void runEditorExisting()\r\n\t{\r\n\t\tmainFrame.runEditorExisting();\r\n\t}",
"public void run() {\n\n }",
"public void run() {\n\t\t\tshowSystemDialog(ResultMsg);\r\n\t\t}",
"public void click() {\n System.out.println(\"Click\");\n }",
"public void run() {\n\t\t\t\tif (alertsList.isEmpty()) {\n\t\t\t\t\t// set 0\n\t\t\t\t\talertsButton.setText(\"0\");\n\t\t\t\t} else {\n\t\t\t\t\t// set to the number of alerts\n\t\t\t\t\tString alertSize = Integer.toString(alertsList.size());\n\t\t\t\t\talertsButton.setText(alertSize);\n\t\t\t\t}\n\t\t\t}",
"public void run() {\n super.executeStep();\n }",
"public void runGame()\r\n\t{\r\n\t\tmainFrame.runGame();\r\n\t}",
"public void run() {\n\n\n }",
"@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tupdateUI();\n\t\t\t\t\t\t}",
"@Override\r\n public void run() {\n opsi_menu();\r\n\r\n }",
"public void run() {\n\t\t\t\tviewer.collapseToLevel(root, 2); // TODO: does not, it always collapse to level 1\n//\t\t\t\tshowSelection(par, sel);\n//\t\t\t\tif (actionCollapsAll.isChecked()) {\n//\t\t\t\t\t\n//\t\t\t\t}\n\t\t\t}",
"public void run() {\n }",
"public void run() {\n }",
"public void run() { //these are the methods that are present in the parent interface class, they need to have a body in the child interface class\n\t\tSystem.out.println(\"Lizard is running\");\n\t}",
"public void run()\n\t{\n\t\tGLabel label = new GLabel(\"Hello world!\", 10, 10);\n\t\tadd(label);\n\t}",
"@Override\n\t\t\tpublic String run() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"hi deepali\");\n\t\t\n\t}",
"public SysRunGUI() {\n initComponents();\n this.run();\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t// TODO Do some stuff to start debugging\r\n\t\t\t\t\tSystem.out.println(\"Debug button pressed!\");\r\n\t\t\t\t}",
"public void run(){\n int selection = -1;\n super.myConsole.listOptions(menuOptions);\n selection = super.myConsole.getInputOption(menuOptions);\n branchMenu(selection);\n }",
"void PostRun() {\n }"
] | [
"0.79754335",
"0.7550978",
"0.7196994",
"0.7061655",
"0.70090747",
"0.70074403",
"0.69017625",
"0.68695426",
"0.6855391",
"0.6853005",
"0.6842966",
"0.6823052",
"0.6823052",
"0.6823052",
"0.6823052",
"0.6823052",
"0.68221825",
"0.6808255",
"0.68016386",
"0.6769912",
"0.6756376",
"0.6751927",
"0.6732592",
"0.67264634",
"0.6697121",
"0.6686738",
"0.66784185",
"0.6668431",
"0.6667804",
"0.66672206",
"0.6662261",
"0.66359997",
"0.66344655",
"0.6614765",
"0.6614765",
"0.6614765",
"0.6614765",
"0.6614065",
"0.6600224",
"0.65977687",
"0.6592681",
"0.6579454",
"0.6572343",
"0.65684384",
"0.6561303",
"0.6555909",
"0.6555909",
"0.6540371",
"0.65303457",
"0.6525311",
"0.6525311",
"0.6525311",
"0.6520202",
"0.6519281",
"0.6519281",
"0.6519281",
"0.65152097",
"0.6513951",
"0.65031034",
"0.65013963",
"0.64976704",
"0.649618",
"0.64931244",
"0.64931244",
"0.6491897",
"0.6488941",
"0.6488941",
"0.6488941",
"0.64668405",
"0.64668405",
"0.6459854",
"0.6459653",
"0.6459653",
"0.6459653",
"0.6459653",
"0.64554703",
"0.64509577",
"0.6444888",
"0.6444888",
"0.6436835",
"0.643571",
"0.64308333",
"0.64300007",
"0.64232445",
"0.64228916",
"0.6402871",
"0.63840926",
"0.6376982",
"0.6364052",
"0.63639957",
"0.6353869",
"0.6352214",
"0.6352214",
"0.63431066",
"0.63283205",
"0.63199466",
"0.63189596",
"0.63111544",
"0.6301212",
"0.62966424",
"0.62900513"
] | 0.0 | -1 |
Returns a list of task records. | @GetMapping(value="/all",produces= { MediaType.APPLICATION_JSON_VALUE })
public List<TaskDTO> getAllTasks()
{
return taskService.getAllTasks();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<DiagramTask> getAllrecords()\r\n {\r\n List<DiagramTask> tasks = new ArrayList();\r\n \r\n try\r\n {\r\n tasks = TASK_DAO.retrieveTask();\r\n \r\n }\r\n catch (HibernateException e)\r\n {\r\n addMessage(\"Error!\", \"Please try again.\");\r\n Logger.getLogger(DiagramTaskBean.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n return tasks;\r\n }",
"List<Task> getTaskdetails();",
"List<Task> getAllTasks();",
"public List<Task> getAllTasks() {\n List<Task> taskList = new ArrayList<Task>();\n String queryCommand = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(queryCommand, null);\n if (cursor.moveToFirst()) {\n do {\n Task task = new Task();\n task.setId(cursor.getString(0));\n task.setLabel(cursor.getString(1));\n task.setTime(cursor.getString(2));\n taskList.add(task);\n } while (cursor.moveToNext());\n }\n return taskList;\n }",
"List<ReadOnlyTask> getTaskList();",
"List<ReadOnlyTask> getTaskList();",
"public ArrayList<Task> retrieveTaskList() {\r\n\r\n\r\n return taskList;\r\n }",
"TaskList getList();",
"public static List<Task> findAll() {\n\t\treturn getPersistence().findAll();\n\t}",
"public List<Task> getAllTasks() {\n List<Task> tasks = new ArrayList<Task>();\n String selectQuery = \"SELECT * FROM \" + TABLE_TASKS+\" ORDER BY \"+KEY_DATE;\n\n Log.e(LOG, selectQuery);\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // looping through all rows and adding to list\n if (c.moveToFirst()) {\n do {\n Task tk = new Task();\n tk.setId(c.getLong((c.getColumnIndex(KEY_ID))));\n tk.setTaskName((c.getString(c.getColumnIndex(KEY_TASKNAME))));\n tk.setDateAt(c.getString(c.getColumnIndex(KEY_DATE)));\n tk.setStatus(c.getInt(c.getColumnIndex(KEY_STATUS)));\n\n // adding to todo list\n tasks.add(tk);\n } while (c.moveToNext());\n }\n c.close();\n return tasks;\n }",
"private List<TaskObject> getAllTasks(){\n RealmQuery<TaskObject> query = realm.where(TaskObject.class);\n RealmResults<TaskObject> result = query.findAll();\n result.sort(\"completed\", RealmResults.SORT_ORDER_DESCENDING);\n\n tasks = new ArrayList<TaskObject>();\n\n for(TaskObject task : result)\n tasks.add(task);\n\n return tasks;\n }",
"public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);",
"@Override\r\n\tpublic List<Task> findAll() {\n\t\treturn taskRepository.findAll();\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n public List<Item> getListOfTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item\").list();\n session.close();\n return list;\n }",
"public List<String> getRecordings(){\n findRecordings();\n return _records;\n }",
"public List<Record> listAllRecords();",
"public ArrayList<Task> getTasks() {\n // List of workouts to return\n ArrayList<Task> tasks = new ArrayList<>();\n\n // Cursor is what moves throughout the entire database\n Cursor cursor = database.query(SQLiteHelper.TABLE_TASKS,\n allColumns, null, null, null, null,\n SQLiteHelper.COLUMN_ID + \" ASC\");\n\n cursor.moveToFirst();\n while (!cursor.isAfterLast()) {\n Task task = cursorToTask(cursor);\n\n tasks.add(task);\n\n cursor.moveToNext();\n }\n cursor.close();\n\n return tasks;\n }",
"ObservableList<Task> getTaskList();",
"@RequestMapping(method = RequestMethod.GET, value = \"/get-tasks\")\r\n\tpublic List<Task> getTasks() {\r\n\t\tList<Task> dummyTasks = new ArrayList<Task>();\r\n\t\treturn dummyTasks;\r\n\t}",
"Set<Task> getAllTasks();",
"public static List<Task> getTaskFromDb() {\n List<Task> taskList = new ArrayList<>();\n try {\n // taskList = Task.listAll(Task.class);\n taskList= Select.from(Task.class).orderBy(\"due_date Desc\").where(\"status=?\", new String[] {\"0\"}).list();\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n return taskList;\n\n }",
"@Override\n\tpublic ArrayList<DetailedTask> selectAllTasks() throws SQLException, ClassNotFoundException\n\t{\n\t\tArrayList<DetailedTask> returnValue = new ArrayList<DetailedTask>();\n\t\t \n\t\t Gson gson = new Gson();\n\t\t Connection c = null;\n\t Statement stmt = null;\n\t \n\t \n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t c.setAutoCommit(false);\n\t \n\t logger.info(\"Opened database successfully (selectAllTasks)\");\n\n\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task;\" );\n\n\t while(rs.next())\n\t {\n\t \t Type collectionType = new TypeToken<List<Item>>() {}.getType();\n\t \t List<Item> items = gson.fromJson(rs.getString(\"items\"), collectionType);\n\t \n\t \t returnValue.add(new DetailedTask(rs.getInt(\"id\"), rs.getString(\"description\"), \n\t \t\t rs.getDouble(\"latitude\"), rs.getDouble(\"longitude\"), rs.getString(\"status\"), \n\t \t\t items, rs.getInt(\"plz\"), rs.getString(\"ort\"), rs.getString(\"strasse\"), rs.getString(\"typ\"), \n\t \t\t rs.getString(\"information\"), gson.fromJson(rs.getString(\"hilfsmittel\"), String[].class), rs.getString(\"auftragsfrist\"), \n\t \t\t rs.getString(\"eingangsdatum\")));\n\t }\n\n\t rs.close();\n\t stmt.close();\n\t c.close();\n\t \n\t \n\t return returnValue;\n\t}",
"public List<Task> listTasks(String extra);",
"@GetMapping(value = \"/getAllTasks\")\n\tpublic List<Task> getAllTasks()\n\t{\n\t\treturn this.integrationClient.getAllTasks();\n\t}",
"public String listOfTasks() {\n String listOfTasks = Messages.LIST_TASKS_MESSAGE;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n listOfTasks += recordedTask.get(i).getTaskNum() + DOT_OPEN_SQUARE_BRACKET\n + recordedTask.get(i).getCurrentTaskType() + CLOSE_SQUARE_BRACKET + OPEN_SQUARE_BRACKET\n + recordedTask.get(i).taskStatus() + CLOSE_SQUARE_BRACKET + Messages.BLANK_SPACE\n + recordedTask.get(i).getTaskName()\n + ((i == Parser.getOrderAdded() - 1) ? Messages.EMPTY_STRING : Messages.NEW_LINE);\n }\n return listOfTasks;\n }",
"public LiveData<List<Task>> getAllTasks(){\n allTasks = dao.getAll();\n return allTasks;\n }",
"@GET(\"/task/.json\")\n Call<Map<String, Task>> getAllTasks();",
"public ArrayList<Task> getAllTasks() {\n \treturn this.taskBuffer.getAllContents();\n }",
"public List<TaskMaster> retrieveTaskByProjectId(Long projectId);",
"public List<Task> getAllTask() {\n\t\treturn taskRepo.findAll();\n\t}",
"public List<TaskDefinition> getTasksDefinition() throws DaoRepositoryException;",
"java.util.List<com.google.cloud.aiplatform.v1.PipelineTaskDetail> \n getTaskDetailsList();",
"java.util.List<String>\n getTaskIdList();",
"@Override\r\n\tpublic List<ExecuteTask> getAll() {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\";\r\n\t\treturn getForList(sql);\r\n\t}",
"@RequestMapping(value=\"/tasks\", method = RequestMethod.GET)\npublic @ResponseBody List<Task> tasks(){\n\treturn (List<Task>) taskrepository.findAll();\n}",
"public List<Recordings> getRecordings() {\r\n\r\n\t\tList<Recordings> recordingsList = new ArrayList<Recordings>();\r\n\r\n\t\tList<Map<String, Object>> rows = jdbcTemplate.queryForList(\"Select * from RECORDINGS\");\r\n\r\n\t\tfor (Map<String, Object> row : rows) {\r\n\t\t\tRecordings recordings = new Recordings();\r\n\t\t\trecordings.setFileName((String)row.get(\"FILENAME\"));\r\n\t\t\trecordings.setSourceURL((String)row.get(\"SOURCEURL\"));\r\n\t\t\trecordings.setId(((BigDecimal)row.get(\"ID\")).longValue());\r\n\t\t\trecordingsList.add(recordings);\r\n\t\t}\r\n\t\treturn recordingsList;\r\n\t}",
"public ArrayList<Task> getList() {\n return tasks;\n }",
"public List<TaskDescription> getActiveTasks();",
"@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn (List<ScheduleTask>) find(\"from ScheduleTask\");\n\t}",
"public List<TaskItem> zGetTasks() throws HarnessException {\n\n\t\tList<TaskItem> items = new ArrayList<TaskItem>();\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']/div\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\n\t\t\tString itemLocator = rowLocator + \"[\" + i + \"]\";\n\n\t\t\tString id;\n\t\t\ttry {\n\t\t\t\tid = this.sGetAttribute(\"xpath=(\" + itemLocator + \")@id\");\n\t\t\t} catch (SeleniumException e) {\n\t\t\t\t// Make sure there is an ID\n\t\t\t\tlogger.warn(\"Task row didn't have ID. Probably normal if message is 'Could not find element attribute' => \"+ e.getMessage());\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tString locator = null;\n\t\t\tString attr = null;\n\n\t\t\t// Skip any invalid IDs\n\t\t\tif ((id == null) || (id.trim().length() == 0))\n\t\t\t\tcontinue;\n\n\t\t\t// Look for zli__TKL__258\n\t\t\tif (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\tlogger.info(\"TASK: \" + id);\n\n\t\t\t\t// Is it checked?\n\t\t\t\t// <div id=\"zlif__TKL__258__se\" style=\"\"\n\t\t\t\t// class=\"ImgCheckboxUnchecked\"></div>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//div[contains(@class, 'ImgCheckboxUnchecked')]\";\n\t\t\t\titem.gIsChecked = this.sIsElementPresent(locator);\n\n\t\t\t\t// Is it tagged?\n\t\t\t\t// <div id=\"zlif__TKL__258__tg\" style=\"\"\n\t\t\t\t// class=\"ImgBlank_16\"></div>\n\t\t\t\tlocator = itemLocator + \"//div[contains(@id, '__tg')]\";\n\t\t\t\t// TODO: handle tags\n\n\t\t\t\t// What's the priority?\n\t\t\t\t// <td width=\"19\" id=\"zlif__TKL__258__pr\"><center><div style=\"\"\n\t\t\t\t// class=\"ImgTaskHigh\"></div></center></td>\n\t\t\t\tlocator = itemLocator\n\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div\";\n\t\t\t\tif (!this.sIsElementPresent(locator)) {\n\t\t\t\t\titem.gPriority = \"normal\";\n\t\t\t\t} else {\n\t\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t\t+ \"//td[contains(@id, '__pr')]/center/div)@class\";\n\t\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\t\tif (attr.equals(\"ImgTaskHigh\")) {\n\t\t\t\t\t\titem.gPriority = \"high\";\n\t\t\t\t\t} else if (attr.equals(\"ImgTaskLow\")) {\n\t\t\t\t\t\titem.gPriority = \"low\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Is there an attachment?\n\t\t\t\t// <td width=\"19\" class=\"Attach\"><div id=\"zlif__TKL__258__at\"\n\t\t\t\t// style=\"\" class=\"ImgBlank_16\"></div></td>\n\t\t\t\tlocator = \"xpath=(\" + itemLocator\n\t\t\t\t+ \"//div[contains(@id, '__at')])@class\";\n\t\t\t\tattr = this.sGetAttribute(locator);\n\t\t\t\tif (attr.equals(\"ImgBlank_16\")) {\n\t\t\t\t\titem.gHasAttachments = false;\n\t\t\t\t} else {\n\t\t\t\t\t// TODO - handle other attachment types\n\t\t\t\t}\n\n\t\t\t\t// See http://bugzilla.zmail.com/show_bug.cgi?id=56452\n\n\t\t\t\t// Get the subject\n\t\t\t\tlocator = itemLocator + \"//td[5]\";\n\t\t\t\titem.gSubject = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the status\n\t\t\t\tlocator = itemLocator + \"//td[6]\";\n\t\t\t\titem.gStatus = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the % complete\n\t\t\t\tlocator = itemLocator + \"//td[7]\";\n\t\t\t\titem.gPercentComplete = this.sGetText(locator).trim();\n\n\t\t\t\t// Get the due date\n\t\t\t\tlocator = itemLocator + \"//td[8]\";\n\t\t\t\titem.gDueDate = this.sGetText(locator).trim();\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t}\n\n\t\t}\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}",
"public List<Task> getAllTasksForUser(long userId);",
"@Override\n\tpublic List<Task> getTasks() {\n\t\treturn details.getPendingTasks();\n\t}",
"public ArrayList<Task> list() {\r\n return tasks;\r\n }",
"public String list() {\n final StringBuilder list = new StringBuilder(\"Here are the tasks in your list:\\n\\t\");\n records.forEach((el) -> list.append(\n String.format(\"%1$d. %2$s \\n\\t\",\n records.indexOf(el) + 1, el.toString())));\n return list.toString();\n }",
"public List<ScheduledTask> getAllPendingTasks() {\n \t\tSet<String> smembers = jedisConn.smembers(ALL_TASKS);\n \t\tList<ScheduledTask> alltasks = new ArrayList<>();\n \t\tGson gson = new Gson();\n \t\t// the get actual tasks by the ids\n \t\tfor (String member : smembers) {\n \t\t\tString string = jedisConn.get(PENDING_TASK(member));\n \t\t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t\talltasks.add(task);\n \t\t}\n \t\treturn alltasks;\n \t}",
"public TaskList() {\n recordedTask = new ArrayList<>();\n }",
"public List<TempWTask> getTaskList(){return taskList;}",
"public List<Record>getRecords(){\n List<Record>recordList=new ArrayList<>();\n RecordCursorWrapper currsorWrapper=queryRecords(null,null);\n try{\n currsorWrapper.moveToFirst();\n while(!currsorWrapper.isAfterLast()){\n recordList.add(currsorWrapper.getRecord());\n currsorWrapper.moveToNext();\n }\n }finally {\n currsorWrapper.close();\n }\n return recordList;\n }",
"private TaskBaseBean[] getAllTasksCreatedByUser100() {\n TaskBaseBean[] tasks = TaskServiceClient.findTasks(\n projObjKey,\n AppConstants.TASK_BIA_CREATED_BY,\n \"100\"\n );\n return tasks;\n }",
"public List<TaskMaster> retrieveCompletedTaskByProjectId(Long projectId);",
"@Access(AccessType.PUBLIC)\r\n \tpublic Set<String> getTasks();",
"ObservableList<Task> getFilteredTaskList();",
"public ArrayList<Task> getTaskList() {\n return taskList;\n }",
"public AllRecords getAllRecords() {\n\t\treturn fileService.withFile(FILE_NAME, new AllRecords(), file -> {\n\t\t\tvar records = fileService.readFile(file, AllRecords.class);\n\t\t\trecords.easy = sort(records.easy);\n\t\t\trecords.medium = sort(records.medium);\n\t\t\trecords.hard = sort(records.hard);\n\t\t\treturn records;\n\t\t});\n\t}",
"@Override\n\tpublic List<TaskKeeper> getList() {\n\t\treturn (List<TaskKeeper>) taskKeeperRepositories.findAll();\n\t}",
"@Override\r\n\tpublic List<ExecuteTask> getByTask(int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id = ?\";\r\n\t\treturn getForList(sql,taskId);\r\n\t}",
"@Query(\"SELECT * from task_table ORDER BY task ASC\")\n LiveData<List<Task>> getAllTasks();",
"@GetMapping(\"/getall\")\n public List<Task> getAll() {\n return taskService.allTasks();\n\n }",
"public static List<TaskTimeElement> findAll() {\r\n List<TaskTimeElement> ret = new ArrayList<TaskTimeElement>();\r\n String sql = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findAll\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"SELECT ID\" +\r\n \",DURATION\" + \r\n \",TASKDATE\" + \r\n \",TASKNAME\" + \r\n \",USERNAME\" +\r\n \" FROM TASKTIMEELEMENT\" +\r\n \" WHERE ENABLED IS TRUE\" +\r\n (userName == null\r\n ? \"\"\r\n : (\" AND USERNAME='\" + DatabaseBase.encodeToSql(userName) + \"'\")) +\r\n \" ORDER BY TASKDATE,TASKNAME\";\r\n rs = theStatement.executeQuery(sql);\r\n TaskTimeElement object;\r\n while(rs.next()) {\r\n object = new TaskTimeElement();\r\n int i = 1;\r\n object.setId(rs.getLong(i++));\r\n object.setDuration(rs.getDouble(i++));\r\n object.setTaskDate(rs.getString(i++));\r\n object.setTaskName(rs.getString(i++));\r\n object.setUserName(rs.getString(i++));\r\n object.setEnabled(true);\r\n ret.add(object);\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n ret = null;\r\n }\r\n catch (Exception ex) {\r\n Trace.error(\"Exception\", ex);\r\n ret = null;\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }",
"@Transactional\r\n\tpublic List<String> getTasks(String assignee) {\r\n\t\tString assign = ORDER_ASSIGNEE;\r\n\t\tlogger.info(\"Received order to getTasks, assignee : \" + assign);\r\n\t\tList<Task> tasks = taskService.createTaskQuery().taskCandidateGroup(assign).list();\r\n\r\n\t\tList<String> orders = tasks.stream().map(task -> {\r\n\t\t\tMap<String, Object> variables = taskService.getVariables(task.getId());\r\n\t\t\treturn (String) variables.get(\"orderid\");\r\n\t\t}).collect(Collectors.toList());\r\n\r\n\t\tlogger.info(\"orderid(s) : \" + orders.toString());\r\n\t\treturn orders;\r\n\t}",
"@Override\n\tpublic List<ScheduleTask> getScheduleTaskList() {\n\t\treturn scheduleTaskDAO.getScheduleTaskList();\n\t}",
"List<TbCrmTask> selectAll();",
"private List<Task> readFromFile() {\n if (file.exists()) {\n try {\n return objectmapper.readValue(file,TaskList.class);\n } catch (IOException e) {\n throw new IllegalStateException(e);\n }\n } else {\n return new ArrayList<>();\n }\n }",
"@Override\r\n\tpublic ArrayList<Task> getAllTasks() {\n\t\treturn null;\r\n\t}",
"public List<Task> getTasks() {\n return tasks;\n }",
"public List<Task> getTasks() {\n return tasks;\n }",
"public List<Task> getTasks() {\n return tasks;\n }",
"public ArrayList<Task> getTaskList() {\n return tasks;\n }",
"public List<Test> getAllRecord() {\n\t\tList<Test> lis=(List<Test>)testRepository.findAll();\n\t\treturn lis;\n\t}",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n public List<TaskDef> retrieveAll(Long task_process_id) {\n return TaskDefIntegrationService.list(task_process_id);\n }",
"@Override\n\tpublic List<Task> filterByTask(int id_task) {\n\t\treturn null;\n\t}",
"public ArrayList<Task> getIncompleteTasks() {\n ArrayList<Task> output = new ArrayList<>();\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return output;\n\n // run the query to get all incomplete tasks\n Cursor rawTasks = db.rawQuery(\"SELECT * FROM Tasks WHERE is_complete = 0 ORDER BY due_date ASC;\", null);\n\n // move the cursor to the first result (or skip this section if there are no results)\n if (rawTasks.moveToFirst()) {\n // iterate through results\n do {\n // convert the cursor version of the task to a real Task object and add it to output\n output.add(new Task(rawTasks));\n } while (rawTasks.moveToNext());\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTasks.close();\n db.close();\n\n // return the (possibly empty) list\n return output;\n\n }",
"@SuppressWarnings(\"unchecked\")\n public List<Item> getActiveTasks() {\n Session session = this.factory.openSession();\n List<Item> list = session.createQuery(\"from Item where status = 0\").list();\n session.close();\n return list;\n }",
"@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}",
"List<ExtDagTask> taskList(ExtDagTask extDagTask);",
"@GetMapping(value =\"/getTasksById/{projectId}\")\n\tpublic List<Task> getTaskByProjectId(@PathVariable (value= \"projectId\") Long projectId)\n\t{\n\t\treturn this.integrationClient.getTaskByProjectId(projectId);\n\t}",
"public List<WTask> getTaskList(){return taskList;}",
"@Override\n\tpublic List findAll()\n\t{\n\t\treturn teataskMapper.findAll();\n\t}",
"public void listTasks() {\n try {\n File file = new File(filePath);\n Scanner sc = new Scanner(file);\n Ui.viewTasks();\n while (sc.hasNextLine()) {\n System.out.println(sc.nextLine());\n }\n } catch (FileNotFoundException e) {\n Ui.printFileNotFound();\n }\n }",
"public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new GAZRecordRowMapper());\n\t}",
"public List<File> getTasks() {\n return tasks;\n }",
"public ArrayList<Task> getTasks(Calendar cal) \n\t{\n ArrayList<Task> tasks = new ArrayList<Task>();\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tResultSet results = statement.executeQuery(\"SELECT * FROM tasks\");\n\n\t\twhile(results.next())\n\t\t{\n\t\t\tint id = result.getInt(1);\n\t\t\tint year = result.getInt(2);\n\t\t\tint month = result.getInt(3);\n\t\t\tint day = result.getInt(4);\n\t\t\tint hour = result.getInt(5);\n\t\t\tint minute = result.getInt(6);\n\t\t\tString descrip = result.getString(7);\n\t\t\tboolean recurs = result.getBoolean(8);\n\t\t\tint recursDay = result.getInt(9);\n\t\t\t\n\t\t\tCalendar cal = new Calendar();\n\t\t\tcal.set(year, month, day, hour, minute);\n\t\t\t\n\t\t\tTask task;\n\t\t\t\n\t\t\tif(recurs)\n\t\t\t{\n\t\t\t\ttask = new Task(cal, descrip, recursDay));\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttask = new Task(cal, descrip));\n\t\t\t}\n\t\t\t\n\t\t\ttask.setID(id);\n\t\t}\n\t\tstatement.close();\n\t\tresults.close();\n return tasks;\n }",
"public ArrayList<Task> list() {\n return this.list;\n }",
"public List<Task> getTasks() {\n return this.tasks;\n }",
"@Override\n\tpublic List<Record> getAllRecord() {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\ttry {\n\t\t\tlist = dao.findAll();\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t\ttx.rollback();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn list;\n\t}",
"public List<TaskMaster> retrieveTaskWithFilters(Date startDate, Date endDate, Long assignedTo, Long taskPriority, Long projectId, String status, Long createdBy);",
"ObservableList<Task> getCurrentUserTaskList();",
"public List<TaskMaster> retrieveAllTaskByUserId(Long userId);",
"public List<AbsRecord> getRecords()\n\t{\n\t\treturn getRecordBy(null, new HBRecordRowMapper());\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @RolesAllowed({\"admin\", \"simple\"})\n public List<Task> listAll(@Context UriInfo uriInfo) {\n Long projectId = (uriInfo.getPathSegments().size() != 1?\n Long.valueOf(uriInfo.getPathSegments().get(1).getPath())\n :null);\n\n List<Task> results;\n\n if (projectId != null) {\n results = em.createQuery(\"SELECT t FROM Task t INNER JOIN t.project p WHERE p.id = :projId\", Task.class)\n .setParameter(\"projId\", projectId)\n .getResultList();\n } else {\n results = em.createQuery(\"SELECT t FROM Task t\", Task.class).getResultList();\n }\n\n return results;\n }",
"public final Record[] getRecords() {\n Record[] myRecords = new Record[records.size()];\n\n Iterator iterator = records.iterator();\n for (int i = 0; i < records.size(); i++) {\n myRecords[i] = (Record) iterator.next();\n }\n\n return myRecords;\n }",
"public List<Task> load(){\n try {\n List<Task> tasks = getTasksFromFile();\n return tasks;\n }catch (FileNotFoundException e) {\n System.out.println(\"☹ OOPS!!! There is no file in the path: \"+e.getMessage());\n List<Task> tasks = new ArrayList();\n return tasks;\n }\n }",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord[] getTaskmonitorrecordArray();",
"LiveData<List<Task>> getSortedTasks(LocalDate startDate,\r\n LocalDate endDate);",
"public ArrayList<Task> getTaskList() {\n\t\treturn tasks;\n\t}",
"public String getTasks() {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n\n return result.toString();\n }",
"ObservableList<Task> getUnfilteredTaskList();",
"@Override\n\tpublic List<ChTaskRecord> select(ChTaskRecord chTaskRecord) {\n\t\treturn chTaskRecordMapper.select(chTaskRecord);\n\t}",
"public List<TaskItem> zGetTasks(TaskStatus status) throws HarnessException {\n\n\t\tList<TaskItem> items = null;\n\n\t\t// The task page has the following under the zl__TKL__rows div:\n\t\t// <div id='_newTaskBannerId' .../> -- enter a new task\n\t\t// <div id='_upComingTaskListHdr' .../> -- Past due\n\t\t// <div id='zli__TKL__267' .../> -- Task item\n\t\t// <div id='zli__TKL__299' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- Upcoming\n\t\t// <div id='zli__TKL__271' .../> -- Task item\n\t\t// <div id='zli__TKL__278' .../> -- Task item\n\t\t// <div id='zli__TKL__275' .../> -- Task item\n\t\t// <div id='_upComingTaskListHdr' .../> -- No due date\n\t\t// <div id='zli__TKL__284' .../> -- Task item\n\t\t// <div id='zli__TKL__290' .../> -- Task item\n\n\t\t// How many items are in the table?\n\t\tString rowLocator = \"//div[@id='\" + Locators.zl__TKL__rows + \"']\";\n\t\tint count = this.sGetXpathCount(rowLocator);\n\t\tlogger.debug(myPageName() + \" zGetTasks: number of rows: \" + count);\n\n\t\t// Get each conversation's data from the table list\n\t\tfor (int i = 1; i <= count; i++) {\n\t\t\tString tasklocator = rowLocator + \"/div[\" + i + \"]\";\n\n\t\t\tString id = this.sGetAttribute(\"xpath=(\" + tasklocator + \")@id\");\n\t\t\tif (Locators._newTaskBannerId.equals(id)) {\n\t\t\t\t// Skip the \"Add New Task\" row\n\t\t\t\tcontinue;\n\t\t\t} else if (Locators._upComingTaskListHdr.equals(id)) {\n\t\t\t\t// Found a status separator\n\n\t\t\t\tString text = this.sGetText(tasklocator);\n\t\t\t\tif ((\"Past Due\".equals(text)) && (status == TaskStatus.PastDue)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"Upcoming\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.Upcoming)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else if ((\"No Due Date\".equals(text))\n\t\t\t\t\t\t&& (status == TaskStatus.NoDueDate)) {\n\n\t\t\t\t\titems = new ArrayList<TaskItem>();\n\t\t\t\t\tcontinue;\n\n\t\t\t\t}\n\n\t\t\t\t// If a list already exists, then we've just completed it\n\t\t\t\tif (items != null)\n\t\t\t\t\treturn (items);\n\n\t\t\t} else if (id.contains(Locators.zli__TKL__)) {\n\t\t\t\t// Found a task\n\n\t\t\t\t// If the list is initialized, then we are in the correct list\n\t\t\t\t// section\n\t\t\t\tif (items == null)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tTaskItem item = new TaskItem();\n\n\t\t\t\t// TODO: extract the info from the GUI\n\n\t\t\t\titems.add(item);\n\t\t\t\tlogger.info(item.prettyPrint());\n\n\t\t\t} else {\n\t\t\t\tlogger.warn(\"Unknown task row ID: \" + id);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\t// If items is still null, then we didn't find any matching tasks\n\t\t// Just return an empty list\n\t\tif (items == null)\n\t\t\titems = new ArrayList<TaskItem>();\n\n\t\t// Return the list of items\n\t\treturn (items);\n\n\t}",
"void getTasks( AsyncCallback<java.util.List<org.openxdata.server.admin.model.TaskDef>> callback );"
] | [
"0.7653332",
"0.737288",
"0.71132785",
"0.7069109",
"0.7053144",
"0.7053144",
"0.6977781",
"0.6956452",
"0.69157153",
"0.6890589",
"0.6887421",
"0.6885465",
"0.683065",
"0.67333645",
"0.6731582",
"0.6645706",
"0.6638877",
"0.6633417",
"0.6623075",
"0.66105086",
"0.65689003",
"0.6526215",
"0.65062666",
"0.6487088",
"0.6480613",
"0.6457783",
"0.6453587",
"0.64280534",
"0.63776696",
"0.63651323",
"0.63641804",
"0.63596123",
"0.634702",
"0.6346736",
"0.6335662",
"0.6332434",
"0.63165677",
"0.6292645",
"0.6260394",
"0.625368",
"0.6248728",
"0.6243102",
"0.62427545",
"0.62187797",
"0.62125105",
"0.62089175",
"0.6194084",
"0.61825716",
"0.6175492",
"0.6156601",
"0.6154094",
"0.61275613",
"0.6098062",
"0.60942215",
"0.6089503",
"0.6088762",
"0.607349",
"0.6062367",
"0.6058148",
"0.6057856",
"0.6032143",
"0.6027474",
"0.6022308",
"0.6017502",
"0.6014584",
"0.6014584",
"0.6014584",
"0.6000335",
"0.5999837",
"0.5981738",
"0.5968664",
"0.5949622",
"0.5944366",
"0.5944015",
"0.5943125",
"0.59317243",
"0.59110904",
"0.59104127",
"0.5898211",
"0.5895523",
"0.58945006",
"0.58919245",
"0.5891706",
"0.5871925",
"0.5871162",
"0.5870588",
"0.5868868",
"0.58551145",
"0.58433926",
"0.5838588",
"0.5837089",
"0.5825031",
"0.5820917",
"0.5816247",
"0.58146155",
"0.5804228",
"0.579355",
"0.57888",
"0.57823354",
"0.57782936"
] | 0.6237429 | 43 |
Adds a new task record. | @PreAuthorize("hasRole('ADMIN') or hasRole('DBA')")
@PostMapping(value="/add",consumes= { MediaType.APPLICATION_JSON_VALUE },produces= { MediaType.APPLICATION_JSON_VALUE })
public StatusDTO addtask(@RequestBody TaskDTO task)
{
taskService.addTask(task);
StatusDTO status = new StatusDTO();
status.setMessage("Task added successfully");
status.setStatus(200);
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID, task.getId());\n values.put(KEY_LABEL, task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.insert(TABLE_NAME, null, values);\n db.close();\n }",
"int insert(_task record);",
"public void addTask(Task newTask) {\n recordedTask.add(newTask);\n updateTaskToFile();\n }",
"int insert(Task record);",
"void addTask(Task task);",
"public void add(Task task)\n {\n this.tasks.add(task);\n }",
"public void addTask(Task task) {\n\t\tSystem.out.println(\"Inside createTask()\");\n\t\t\n\t\ttoDoList.add(task);\n\t\tdisplay();\n\t}",
"public void add(Task task){ this.tasks.add(task);}",
"long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n double time;\n\n ContentValues values = new ContentValues();\n values.put(KEY_INFO, task.getInfo()); // task info\n if (task.calendarExists()) {\n time = task.getCalendar().getTimeInMillis();\n } else {\n time = 0;\n }\n values.put(KEY_CALENDAR, time); // Task calendar\n values.put(KEY_LATITUDE, task.getLatitude());\n values.put(KEY_LONGITUDE, task.getLongitude());\n\n // Inserting Row\n long id;\n id = db.insert(TABLE_TASKS, null, values);\n Log.d(TAG, \"ID: \" + Long.toString(id));\n db.close(); // Closing database connection\n return id;\n }",
"public long addTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_TASKNAME, task.getTaskName()); // task name\n // status of task- can be 0 for not done and 1 for done\n values.put(KEY_STATUS, task.getStatus());\n values.put(KEY_DATE,task.getDateAt());\n\n // Inserting Row\n long task_id= db.insert(TABLE_TASKS, null, values);\n // insert row\n\n return task_id;\n\n }",
"public void add(final Task task) {\n }",
"void add(final Task task);",
"@Override\r\n\tpublic Task addTask(Task task) {\n\t\treturn taskRepository.save(task);\r\n\t}",
"String addTask(Task task);",
"public void addTask(View v) {\n int taskId = Integer.parseInt(txtId.getText().toString());\n String tskName = txtTaskName.getText().toString();\n String taskDesc = txtTaskDescription.getText().toString();\n ContentValues values = new ContentValues();\n values.put(\"taskId\", taskId);\n values.put(\"taskName\", tskName);\n values.put(\"taskDescription\", taskDesc);\n try {\n taskManager.addTask(values);\n Toast.makeText(this, \"Data Inserted\", Toast.LENGTH_LONG).show();\n } catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_LONG).show();\n }\n }",
"public void addTask(Task task) {\n list.add(task);\n }",
"public void addTask(Task task)\n {\n tasks.add(task);\n }",
"TaskDetail add() {\n taskDetails.put(task, this);\n return this;\n }",
"public void add(Task task) {\r\n tasks.add(task);\r\n }",
"@Override\n\tpublic void add(ScheduleTask st) {\n\t\tsave(st);\n\n\t}",
"public void addTask(Task task) {\n this.tasks.add(task);\n }",
"@Override\n\tpublic void addTask(Task task) {\n\t\t\n\t}",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public void addTask(Task task) {\n tasks.add(task);\n }",
"public int addTask(Task task) {\n\t\treturn (Integer)getHibernateTemplate().save(task);\n\t}",
"void addTask(Task person) throws UniqueTaskList.DuplicateTaskException;",
"public void add(Task t)\n {\n\ttoDo.add(t);\n }",
"@RequestMapping(method = RequestMethod.POST, value = \"/add-task\",consumes = MediaType.APPLICATION_JSON_VALUE,headers = {\r\n \"content-type=application/json\" })\r\n\tpublic Task addTask(@RequestBody Task task) {\r\n\t\tinvokeNotification();\r\n\t\treturn task;\r\n\r\n\t}",
"public void addRecord();",
"public static void addTask(Task taskToAdd)\n\t{\n\t\tStatement statement = dbConnect.createStatement();\n\t\t\n\t\tCalendar cal = taskToAdd.getCal();\n\t\tint year = cal.get(YEAR);\n\t\tint month = cal.get(MONTH);\n\t\tint day = cal.get(DAY_OF_MONTH);\n\t\tint hour = cal.get(HOUR_OF_DAY);\n\t\tint minute = cal.get(MINUTE);\n\t\t\n\t\tString descrip = taskToAdd.getDescription();\n\t\tboolean recur = taskToAdd.getRecurs();\n\t\tint recurI;\n\t\tif(recur) recurI = 1;\n\t\telse recurI = 0;\n\t\tint recursDays = taskToAdd.getRecurIntervalDays();\n\t\t\n\t\tstatement.executeUpdate(\"INSERT INTO tasks (Year, Month, Date, Hour, Minute, Description, Recursion, RecursionDays) VALUES(\" +year+\", \"+month+\", \"+day+\", \"+hour+\", \"+minute+\", '\"+descrip+\"', \"+recurI+\", \"+recursDays+\")\");\n\t\tstatement.close();\n\t\treturn;\n\t}",
"public void createTask(Task task) {\n ContentValues values = new ContentValues();\n values.put(SQLiteHelper.COLUMN_NAME, task.getName());\n database.insert(SQLiteHelper.TABLE_TASKS, null, values);\n }",
"@Override\n\tpublic void addTask(Teatask ta)\n\t{\n\t\tteataskMapper.addTask(ta);\n\t}",
"public void addElement(DemoTask task) {\n\t\tdata.add(task);\n\t}",
"@Override\n\tpublic void addScheduleTask(ScheduleTask st) {\n\t\tscheduleTaskDAO.add(st);\n\t}",
"boolean addTask(Task newTask);",
"public void add(Task newTask) {\n tasks.add(newTask);\n }",
"void addTask(Task<?> task) {\n tasks.addFirst(task);\n }",
"int insert(JmfTaskMqRef record);",
"public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\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} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}",
"int insertTask(TaskInfo taskInfo);",
"private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }",
"public void onClick_AddRecord(View v, String task, int status) {\n\t\t\n\t\t// insertRow() returns a long which is the id number\n\t\tlong newId = myDb.insertRow(task, status);\n\t\tpopulateListViewFromDB();\n\t\t\n\t\t\n\t}",
"public void addTask(Task task) {\n tasks.add(task);\n notifyObservers();\n }",
"public String addTask(Task t) {\n tasks.add(t);\n return tasks.get(tasks.size() - 1).toString();\n }",
"public void addToTaskList(Task task) {\n taskList.add(task);\n }",
"public void addNewTask(String taskName) {\n\t\tCommand cmdAdd = new CmdAdd();\n\t\tcmdAdd.setParameter(CmdParameters.PARAM_NAME_TASK_NAME, taskName);\n\t\tcmdAdd.execute();\n\t}",
"public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }",
"public void addTask(Task task) {\n\t\tMessage msg=new Message(null, null, task);\n\t\ttry {\n\t\t\tchannel.send(msg);\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\t//Runtime exception with info for use in debugging\n\t\t\tthrow new RuntimeException(ex.getMessage());\n\t\t}\n\t}",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord addNewTaskmonitorrecord();",
"private void addTask(ToDoList toDoList, JSONObject jsonObject) {\n String name = jsonObject.getString(\"title\");\n LocalDate dueDate = LocalDate.parse(jsonObject.getString(\"dueDate\"));\n boolean complete = jsonObject.getBoolean(\"complete\");\n boolean important = jsonObject.getBoolean(\"important\");\n Task newTask = new Task(name, dueDate);\n newTask.setComplete(complete);\n newTask.setImportant(important);\n\n toDoList.addTask(newTask);\n }",
"public void addTask(Task task) {\n tasks.add(task);\n cachedTasks.push(new CachedTask(task, \"add\", getTasksSize() - 1));\n }",
"int insert(TbCrmTask record);",
"private void doAddTask() {\n System.out.println(\n \"Kindly enter the time, description and date of the task you would like to add on separate lines.\");\n String time = input.nextLine();\n String description = input.nextLine();\n String date = input.nextLine();\n todoList.addTask(new Task(time,description,date));\n System.out.println(time + \" \" + description + \" \" + date + \" \" + \"has been added.\");\n }",
"private void addTask(String line, ArrayList<Task> tasks) {\n String[] info = line.split(\" \\\\| \");\n String type = info[0];\n int complete = Integer.parseInt(info[1]);\n String title = info[2];\n switch(type) {\n case \"T\":\n Todo newTodo = new Todo(title, complete);\n tasks.add(newTodo);\n break;\n case \"D\":\n String deadline = info[3];\n LocalDate deadlineInLocalDate = LocalDate.parse(deadline);\n Deadline newDeadline = new Deadline(title, complete, deadlineInLocalDate);\n tasks.add(newDeadline);\n break;\n case \"E\":\n String time = info[3];\n LocalDate timeInLocalDate = LocalDate.parse(time);\n Event newEvent = new Event(title, complete, timeInLocalDate);\n tasks.add(newEvent);\n break;\n case \"P\":\n String start = info[3];\n String end = info[4];\n LocalDate startInLocalDate = LocalDate.parse(start);\n LocalDate endLocalDate = LocalDate.parse(end);\n PeriodTask periodTask = new PeriodTask(title, complete, startInLocalDate, endLocalDate);\n tasks.add(periodTask);\n break;\n default:\n throw new AssertionError(type);\n }\n }",
"public void addTask(final BTask t) {\n\t\tbloc.addLast(t);\n\t}",
"@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)\n public long addTask(Task taskObj, ContentData cData) throws CannotAddTaskException {\n OrganizationalEntity orgOBj = taskObj.getTaskData().getCreatedBy();\n checkAndSetTempOrgEntitySet(orgOBj);\n checkAndSetListOfOrgEntities(taskObj.getPeopleAssignments().getPotentialOwners());\n \n TaskServiceSession taskSession = null;\n try {\n taskSession = taskService.createSession();\n taskSession.addTask(taskObj, cData);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n eventSupport.fireTaskAdded(taskObj, cData);\n return taskObj.getId();\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }",
"@Insert\n long insert(Task task);",
"public void addTask(Task t){\n\t\ttry {\n\t\t\taction.put(t);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void addToList(Task task) throws InvalidCommandException;",
"public void addTask(View v) {\n EditText field = (EditText) findViewById(R.id.list_edittext);\n String task = field.getText().toString().trim();\n\n // Do not add empty tasks\n if(!task.equals(\"\")) {\n database.addTask(task);\n field.setText(\"\");\n Toast.makeText(this, String.format(getResources().getString(R.string.list_add_toast),\n task), Toast.LENGTH_LONG).show();\n }\n }",
"public String addTask(TasksModel obj)\n\t{\n\t\t\tString memo=\"\"; \n\t\t\tif(obj.getMemo()!=null)\n\t\t\t{\n\t\t\t\tmemo=obj.getMemo().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setMemo(memo);\n\t\t\t\n\t\t\tString commnets=\"\"; \n\t\t\tif(obj.getComments()!=null)\n\t\t\t{\n\t\t\t\tcommnets=obj.getComments().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setComments(commnets);\n\t\t\t\t\n\t\t\tString stepsToReproduce=\"\"; \n\t\t\tif(obj.getTaskStep()!=null)\n\t\t\t{\n\t\t\t\tstepsToReproduce=obj.getTaskStep().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setTaskStep(stepsToReproduce);\n\t\t\t\n\t\t query=new StringBuffer();\t\t \n\t\t query.append(\" Insert into tasks (taskID,createDate,expectedDateTofinsh,toBeReminderIn,createdUser,taskNo,tasktype,taskName,steps,linkid,customerrefKey,projectrefKey,servicerefKey,assignedUser,ccemployeeKey,priorityrefKey,estTime,memo,actualTime,status,usercomments,hourOrDays,customerType,reminderDate,createdAutomaticFeedback,customerNameFeedback,feedBackKey)\");\n\t\t query.append(\" values(\"+obj.getTaskid()+\",'\"+sdf.format(obj.getCreationDate())+\"','\"+sdf.format(obj.getExpectedDatetofinish())+\"',\"+obj.getRemindIn()+\",\" + obj.getCreatedUserID()+\",'\"+obj.getTaskNumber()+\"',\"+obj.getTaskTypeId()+\",'\"+obj.getTaskName()+\"',\");\n\t\t query.append(\"'\"+obj.getTaskStep()+\"',\"+obj.getPrviousTaskLinkId()+\",\"+obj.getCustomerRefKey()+\",\"+obj.getProjectKey()+\",\"+obj.getSreviceId()+\",\"+obj.getEmployeeid()+\",\"+obj.getCcEmployeeKey()+\",\"+obj.getPriorityRefKey()+\",\");\n\t\t query.append(\"\"+obj.getEstimatatedNumber()+\",'\"+obj.getMemo()+\"',\"+obj.getActualNumber()+\",\"+obj.getStatusKey()+\",'\"+obj.getComments()+\"','\"+obj.getHoursOrDays()+\"','\"+obj.getClientType()+\"','\"+sdf.format(obj.getReminderDate())+\"','\"+obj.getCreatedAutommaticTask()+\"','\"+obj.getCustomerNamefromFeedback()+\"',\"+obj.getFeedbackKey()+\")\");\n\t\t return query.toString();\n\t}",
"public void addTask(String type, String name) {\n Task taskToAdd = new Task(type, name);\n storage.add(taskToAdd);\n if (taskToAdd.hasDate()) {\n if (!dateStorage.containsKey(taskToAdd.getDate())) {\n dateStorage.put(taskToAdd.getDate(), new ArrayList<>());\n }\n dateStorage.get(taskToAdd.getDate()).add(taskToAdd);\n }\n taskAdded(taskToAdd, storage);\n }",
"public static void addTask(@NonNull final AsyncTask<Void, Integer, Boolean> task) {\n tasksList.add(task);\n }",
"public void addTaskListRecNum(int recnum) { taskListRecNums.add(recnum); }",
"org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract addNewTaskAbstract();",
"private void newTask()\n {\n \t//TODO add alarm\n \tTask task = new Task(taskName.getText().toString(), taskDetails.getText().toString());\n \tdb.createTask(task);\n \t//TODO Tie notification to an alarm\n \t//Create notification\n \tIntent notifyIntent = new Intent(this, TaskNotification.class);\n \tnotifyIntent.putExtra(\"title\", task.name); //add title name\n \tnotifyIntent.putExtra(\"id\", (int) task.id); //add id\n \tstartActivity(notifyIntent); //create the intent\n \t\n \trefreshData();\n }",
"@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void addSubTask(AuctionTask task);",
"public void add(Task var) {\n\t\tif (tasks.size() < numOfTasks) {\n\t\t\ttasks.add(var);\n\t\t}\n\t}",
"public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }",
"@Override\n public boolean add(Task task) {\n return tasks.add(task);\n }",
"@Test\n public void confirmTaskAdded() {\n TaskList tasks = new TaskList(\"./test/junit.txt\");\n LocalDateTime date = LocalDateTime.parse(\"2015-10-20 1800\");\n String taskDescription = \"read a book\";\n tasks.addDeadline(taskDescription, date);\n Task addedTask = tasks.get(0);\n assertEquals(\"[D][ ] read a book by: 2015-10-20 18:00\", addedTask.toString());\n }",
"int insertSelective(_task record);",
"@Test\r\n\tpublic void testAddTask() {\n\t\ttodo.addTask(new Task(\"Test task1\"));\r\n\t\t\r\n\t\tCollection<Task> col = todo.getAllTasks();\r\n\t\tassertTrue(\"Expected collectioon to contain 1 task object\", col.size() == 1);\t\t\r\n\t\t\r\n\t\tTask[] tasks = new Task[] {};\r\n\t\tTask t = col.toArray(tasks)[0];\r\n\t\t\r\n\t\tassertEquals(\"Test task1\", t.getDescription());\t\t\r\n\t}",
"private void saveNewTask(int taskId, int catId) {\n Task task = new Task();\n task.setCategoryId(catId);\n task.setTaskId(taskId);\n task.setTaskContent(mTaskContent.getText().toString());\n task.setDueDate(dueDate);\n if (setReminder)\n task.setReminder(1);\n else\n task.setReminder(0);\n task.setStatus(0);\n task.setTaskTitle(mTaskTile.getText().toString());\n task.save();\n if (setReminder)\n setAlarm(task);\n }",
"@Override\n\tpublic Integer addSTask(Integer taskNum, Integer studyLogId,\n\t\t\tString taskName, Integer coin) throws WEBException {\n\t\ttry {\n\t\t\tslDao = (StudyLogDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_LOG_INFO);\n\t\t\tstDao = (StudyTaskDao) DaoFactory.instance(null).getDao(Constants.DAO_STUDY_TASK_INFO);\n\t\t\tSession sess = HibernateUtil.currentSession();\n\t\t\ttran = sess.beginTransaction();\n\t\t\tStudyTaskInfo st = new StudyTaskInfo(slDao.getEntityById(sess, studyLogId), taskNum,\n\t\t\t\t\ttaskName, coin, CurrentTime.getCurrentTime());\n\t\t\tstDao.save(sess, st);\n\t\t\ttran.commit();\n\t\t\treturn st.getId();\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tthrow new WEBException(\"增加学习任务信息时出现异常!\");\n\t\t} finally{\n\t\t\tHibernateUtil.closeSession();\n\t\t}\n\t}",
"int insertSelective(Task record);",
"public String addTaskDetails(TasksModel obj)\n\t{\n\t\t\tString memo=\"\"; \n\t\t\tif(obj.getMemo()!=null)\n\t\t\t{\n\t\t\t\tmemo=obj.getMemo().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setMemo(memo);\n\t\t\t\n\t\t\tString commnets=\"\"; \n\t\t\tif(obj.getComments()!=null)\n\t\t\t{\n\t\t\t\tcommnets=obj.getComments().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setComments(commnets);\n\t\t\t\t\n\t\t\tString stepsToReproduce=\"\"; \n\t\t\tif(obj.getTaskStep()!=null)\n\t\t\t{\n\t\t\t\tstepsToReproduce=obj.getTaskStep().replaceAll(\"'\",\"`\");\n\t\t\t}\n\t\t\tobj.setTaskStep(stepsToReproduce);\n\t\t\t\n\t\t\tCalendar cal = Calendar.getInstance(); \n\t\t\tTimestamp timestamp = new Timestamp(cal.getTimeInMillis());\n\t\t\t\n\t\t query=new StringBuffer();\t\t \n\t\t query.append(\" Insert into TaskDetails (taskID,actualTime,status,usercomments,DateTime,UserId)\");\n\t\t query.append(\" values(\"+obj.getTaskid()+\",\"+obj.getActualNumber()+\",\"+obj.getStatusKey()+\",'\"+obj.getComments()+\"','\"+timestamp+\"',\"+obj.getCreatedUserID()+\")\");\n\t\t return query.toString();\n\t}",
"public void addTask(View view) {\n // Model of the list data\n ListModel model = ListModel.getInstance();\n\n // String for the date in \"mm/dd/yyyy\" format\n String date;\n\n // Get the name of the task\n EditText text = (EditText) findViewById(R.id.taskInput);\n String taskName = text.getText().toString();\n\n // Add list to model\n model.addTask(listName, taskName);\n\n\n // Return to the single list activity\n Log.i(TAG, \"Creating intent to return to the single list activity\");\n Intent intent = new Intent(this, SingleListActivity.class);\n intent.putExtra(Extra.LIST, listName);\n Log.i(TAG, \"Intent created with extra message (list name).\");\n Log.i(TAG, \"Starting single list activity\");\n startActivity(intent);\n }",
"public static boolean insertTask(Task task){\n try{\n String query = \"INSERT INTO TASK VALUES (?,?,?,?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, task.getName()); // Add task's name to the statement\n statement.setString(2, task.getColor().toString()); // Add task's colour to the statement\n statement.setString(3, \"false\"); // Task completion variable will always be false when a new task is created/added.\n statement.setString(4, task.getDate().toString()); // Add task's date to the statement\n int result = statement.executeUpdate(); // send out the statement\n return (result > 0);\n } catch (SQLException e) { // If the task wasn't able to be added\n e.printStackTrace(); // Create alert for If the task was unable to be added\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to add new task.\");\n alert.showAndWait();\n }\n return false;\n }",
"public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);",
"@Override\n public CompletableFuture<Void> addTask(String queueName, GarbageCollector.TaskInfo task) {\n Preconditions.checkNotNull(queueName, \"queueName\");\n Preconditions.checkNotNull(task, \"task\");\n try {\n val processor = eventProcessorMap.get(queueName);\n Preconditions.checkArgument(null != processor, \"Attempt to add to non existent queue (%s).\", queueName);\n return Futures.toVoid(processor.add(SERIALIZER.serialize(task), Duration.ofMillis(1000)));\n } catch (Throwable e) {\n return CompletableFuture.failedFuture(e);\n }\n }",
"void addItem(DataRecord record);",
"public static void add(Tasks currentTask) {\n tasks.add(currentTask);\n tasksCount++;\n }",
"public RetailStore addTransportTask(RetailscmUserContext userContext, String retailStoreId, String name, String start, Date beginTime, String driverId, String truckId, String belongsToId, BigDecimal latitude, BigDecimal longitude , String [] tokensExpr) throws Exception;",
"public static void addRecord() {\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter name: \");\r\n\t\tString name = in.nextLine();\r\n\t\tSystem.out.println(\"Enter number: \");\r\n\t\tString number = in.nextLine();\r\n\t\ttd.addRecord(name,number);\r\n\t\t\r\n\t\tSystem.out.println(\"Added record for \" + name + \" along with their number \" + number);\r\n\t}",
"void addTasks(List<Task> tasks);",
"int insertDptTask(DptTaskInfo dptTaskInfo);",
"public void addTask(String task, String... args) {\r\n\t\ttasks.add(new String[][]{new String[]{task}, args});\r\n\t}",
"noNamespace.TaskmonitorrecordDocument.Taskmonitorrecord insertNewTaskmonitorrecord(int i);",
"@POST\n @Consumes(MediaType.APPLICATION_JSON)\n public void newEmployee(String task) {\n Employee employee = new Employee(\"Bruno\");\n employeeService.updateTask(employee);\n }",
"public int addPaidTask(final DBPaidTask task)\n\t\t\tthrows DatabaseUnkownFailureException, InvalidParameterException;",
"void add(CallRecordAddReqDto req);",
"public static Result add(Long project) {\n if(Secured.isMemberOf(project)) {\n Form<Task> taskForm = form(Task.class).bindFromRequest();\n if(taskForm.hasErrors()) {\n return badRequest();\n } else {\n return ok(\n \t\t\n //item.render(Note.create(taskForm.get(), project, folder), true)\n );\n }\n } else {\n return forbidden();\n }\n }",
"void addDoneTask(Task task);",
"@Override\r\n public void add() {\n String ID =id.getText();\r\n String Name =name.getText();\r\n String form_date =date_start.getText();\r\n String to_date =date_finish.getText();\r\n String Status =status.getText();\r\n String MemberID = MemberId.getText();\r\n ArrayList<String> arr = new ArrayList<String>();\r\n arr.add(ID);\r\n arr.add(Name);\r\n arr.add(form_date);\r\n arr.add(to_date);\r\n arr.add(Status);\r\n arr.add(MemberID);\r\n String PathFile = \"/home/yara/Documents/4year/OODP/Task.txt\";\r\n FileFacade facade = new FileFacade();\r\n facade.Add(PathFile, arr);\r\n }",
"public void addTask(String wholeLine) {\n String type;\n boolean completionStatus;\n String name;\n String date = null;\n try {\n Scanner currentLine = new Scanner(wholeLine);\n // something like [T][✓]\n if (currentLine.hasNext()) {\n String typeCompletion = currentLine.next();\n switch (typeCompletion.charAt(1)) {\n case ('T'):\n type = \"todo\";\n break;\n case ('E'):\n type = \"event\";\n break;\n case ('D'):\n type = \"deadline\";\n break;\n default:\n // this shouldn't happen\n type = null;\n }\n completionStatus = typeCompletion.charAt(4) != 'X';\n } else {\n throw Ui.DukeException.fileError();\n }\n\n if (currentLine.hasNext()) {\n name = currentLine.nextLine().trim();\n } else {\n throw Ui.DukeException.fileError();\n }\n assert type != null;\n int dateLocation = containsDate(name);\n if (dateLocation >= 0) {\n date = name.substring(dateLocation);\n name = name.substring(0, dateLocation - 5);\n }\n Task taskToAdd = new Task(type, name, completionStatus, date);\n storage.add(taskToAdd);\n if (taskToAdd.hasDate()) {\n if (!dateStorage.containsKey(taskToAdd.getDate())) {\n dateStorage.put(taskToAdd.getDate(), new ArrayList<>());\n }\n dateStorage.get(taskToAdd.getDate()).add(taskToAdd);\n }\n taskAdded(taskToAdd, storage);\n } catch (Ui.DukeException e) {\n echo(e.getMessage());\n }\n }",
"public static void testAddTask(final Todoist todo, final String[] tokens) {\n try {\n todo.addTask(createTask(tokens));\n } catch (Exception e) {\n System.out.println(e.getMessage());\n }\n }"
] | [
"0.7659062",
"0.7264049",
"0.7260238",
"0.71724904",
"0.70858103",
"0.6998211",
"0.69910336",
"0.6971978",
"0.69668686",
"0.69631237",
"0.6963067",
"0.6923598",
"0.6920122",
"0.6893734",
"0.6820563",
"0.68176574",
"0.6805576",
"0.67994845",
"0.6779452",
"0.6757607",
"0.67278844",
"0.672643",
"0.67141324",
"0.67141324",
"0.67141324",
"0.6668298",
"0.66561675",
"0.6652358",
"0.6651358",
"0.661641",
"0.66110724",
"0.6608888",
"0.65638167",
"0.6552227",
"0.65399504",
"0.64742005",
"0.6467969",
"0.6460339",
"0.6460055",
"0.64112675",
"0.63801664",
"0.6363563",
"0.6359787",
"0.6286192",
"0.62724125",
"0.6257952",
"0.6256442",
"0.62232465",
"0.6198468",
"0.6183394",
"0.6183394",
"0.61787325",
"0.617043",
"0.6163405",
"0.6152865",
"0.6138638",
"0.61238956",
"0.61152697",
"0.61143976",
"0.61134607",
"0.61114734",
"0.60937834",
"0.60798156",
"0.60676336",
"0.6059698",
"0.60571164",
"0.6055911",
"0.60387963",
"0.603758",
"0.6028071",
"0.6004535",
"0.59985954",
"0.5993813",
"0.597966",
"0.59757364",
"0.59699005",
"0.5964745",
"0.5954687",
"0.59523636",
"0.59382874",
"0.5922845",
"0.58908594",
"0.58793753",
"0.586535",
"0.585955",
"0.58523154",
"0.5847775",
"0.5846888",
"0.5833056",
"0.58194065",
"0.5811159",
"0.5776853",
"0.57759315",
"0.57755226",
"0.57492566",
"0.5747725",
"0.57385916",
"0.5732979",
"0.5709097",
"0.56946915"
] | 0.5999587 | 71 |
Returns a particular task record for a given task id. | @GetMapping(value="/{taskId}",produces= { MediaType.APPLICATION_JSON_VALUE })
public TaskDTO getTask(@PathVariable("taskId") Integer taskId)
{
return taskService.getTaskDTO(taskId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic Teatask getById(int taskid)\n\t{\n\t\treturn teataskMapper.getById(taskid);\n\t}",
"@Nullable\n public Task getTask(int id) {\n Task output = null;\n\n // get a readable instance of the database\n SQLiteDatabase db = getReadableDatabase();\n if (db == null) return null;\n\n // run the query to get the matching task\n Cursor rawTask = db.rawQuery(\"SELECT * FROM Tasks WHERE id = ? ORDER BY due_date ASC;\", new String[]{String.valueOf(id)});\n\n // move the cursor to the first result, if one exists\n if (rawTask.moveToFirst()) {\n // convert the cursor to a task and assign it to our output\n output = new Task(rawTask);\n }\n\n // we're done with the cursor and database, so we can close them here\n rawTask.close();\n db.close();\n\n // return the (possibly null) output\n return output;\n }",
"Task selectByPrimaryKey(String taskid);",
"public Task getTaskById(Long id ) {\n\t\treturn taskRepo.getOne(id);\n\t}",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n public TaskDef retrieve(Long task_id) {\n return TaskDefIntegrationService.find(task_id);\n }",
"public Task getTask(final int id) {\n return tasks.get(id);\n }",
"@Override\r\n\tpublic ExecuteTask getById(int id) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_id = ?\";\r\n\t\treturn get(sql,id);\r\n\t}",
"@Override\r\n\tpublic Optional<Task> findTask(Integer taskId) {\n\t\treturn taskRepository.findById(taskId);\r\n\t}",
"public Task getTask(String taskId) throws DaoException, DataObjectNotFoundException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId);\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n if(task!=null) {\r\n //Task task = (Task)col.iterator().next();\r\n //task.setLastModifiedBy(UserUtil.getUser(task.getLastModifiedBy()).getName());\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(dao.selectReassignments(taskId));\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID));\r\n return task;\r\n }\r\n return null;\r\n }",
"public static Task fetchByPrimaryKey(long taskId) {\n\t\treturn getPersistence().fetchByPrimaryKey(taskId);\n\t}",
"public Task getTask(Integer tid);",
"@RequestMapping(value = \"/tasks/{id}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<TaskDTO> getTask(@PathVariable Long id) {\n log.debug(\"REST request to get Task : {}\", id);\n TaskDTO taskDTO = taskService.findOne(id);\n return Optional.ofNullable(taskDTO)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }",
"public static ITask findTaskById(final long taskId) {\r\n try {\r\n return SecurityManagerFactory.getSecurityManager().executeAsSystem(new Callable<ITask>() {\r\n public ITask call() throws Exception {\r\n ITask t = null;\r\n try {\r\n TaskQuery query = TaskQuery.create().where().taskId().isEqual(taskId);\r\n t = Ivy.wf().getGlobalContext().getTaskQueryExecutor().getResults(query).get(0);\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n }\r\n return t;\r\n }\r\n });\r\n } catch (Exception e) {\r\n Ivy.log().error(e);\r\n return null;\r\n }\r\n }",
"public Task getTask(int index) {\n return records.get(index);\n }",
"@GetMapping(\"/tasks/{id}\")\n public ResponseEntity<Task> getTaskById(@PathVariable Long id){\n Task task = taskRepository.findById(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"Task not found with Id of \" + id));\n return ResponseEntity.ok(task);\n }",
"@Override\n public Optional<Task> getTaskById(UUID id)\n {\n return null;\n }",
"@Override\n\tpublic DetailedTask selectTask(int id) throws SQLException, ClassNotFoundException\n\t{\n\t\t DetailedTask returnValue = null;\n\t\t \n\t\t Gson gson = new Gson();\n\t\t Connection c = null;\n\t Statement stmt = null;\n\t \n\t \n\t Class.forName(\"org.postgresql.Driver\");\n\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t c.setAutoCommit(false);\n\t \n\t logger.info(\"Opened database successfully (selectTask)\");\n\n\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task WHERE id=\"+id+\";\" );\n\t rs.next();\n\n\t Type collectionType = new TypeToken<List<Item>>() {}.getType();\n\t List<Item> items = gson.fromJson(rs.getString(\"items\"), collectionType);\n\t \n\t returnValue = new DetailedTask(rs.getInt(\"id\"), rs.getString(\"description\"), \n\t \t\t rs.getDouble(\"latitude\"), rs.getDouble(\"longitude\"), rs.getString(\"status\"), \n\t \t\t items, rs.getInt(\"plz\"), rs.getString(\"ort\"), rs.getString(\"strasse\"), rs.getString(\"typ\"), \n\t \t\t rs.getString(\"information\"), gson.fromJson(rs.getString(\"hilfsmittel\"), String[].class),\n\t \t\t rs.getString(\"auftragsfrist\"), \n\t \t\t rs.getString(\"eingangsdatum\"));\n\t \n\t rs.close();\n\t stmt.close();\n\t c.close();\n\t \n\t return returnValue;\n\t}",
"private Task getTask(Integer identifier) {\n Iterator<Task> iterator = tasks.iterator();\n while (iterator.hasNext()) {\n Task nextTask = iterator.next();\n if (nextTask.getIdentifier().equals(identifier)) {\n return nextTask;\n }\n }\n\n return null;\n }",
"_task selectByPrimaryKey(Integer taskid);",
"public Task getTaskById(int id) {\n\t\t\n\t\tfor(Task task: tasks) {\n\t\t\tif(task.getId()==id)\n\t\t\t\treturn task;\n\t\t}\n\t\t\t\n\t\tthrow new NoSuchElementException(\"Invalid Id:\"+id);\n\t}",
"@GetMapping(\"/bytaskid/{id}\")\r\n public List<TaskStatus> getByTaskId(@PathVariable(value = \"id\") Long id) {\r\n\r\n List<TaskStatus> tsk = dao.findByTaskID(id);\r\n return tsk;\r\n\r\n }",
"public Record readRecord(Long id);",
"public static ITask findWorkOnTaskById(long taskId) {\r\n Ivy ivy = Ivy.getInstance();\r\n IPropertyFilter<TaskProperty> taskFilter =\r\n ivy.session.getWorkflowContext().createTaskPropertyFilter(TaskProperty.ID, RelationalOperator.EQUAL, taskId);\r\n IQueryResult<ITask> queryResult =\r\n ivy.session.findWorkTasks(taskFilter, null, 0, 1, true,\r\n EnumSet.of(TaskState.SUSPENDED, TaskState.RESUMED, TaskState.PARKED));\r\n List<ITask> tasks = queryResult.getResultList();\r\n if (tasks != null && tasks.size() > 0) {\r\n return tasks.get(0);\r\n }\r\n return null;\r\n }",
"public Subtask getSubtask(String task_name, int project_id) {\n try {\n Connection con = DBManager.getConnection();\n String SQL = \"SELECT subtask_id, task_name FROM subtask where task_name = ? AND project_id = ?;\";\n PreparedStatement ps = con.prepareStatement(SQL);\n ps.setString(1, task_name);\n ps.setInt(2, project_id);\n\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n int id = rs.getInt(\"subtask_id\");\n Subtask subtask = new Subtask(id, task_name, project_id);\n return subtask;\n }\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n return null;\n }",
"List<Workflow> findByIdTask( int nIdTask );",
"@Override\r\n\tpublic ExecuteTask get(int memberId,int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask \"\r\n\t\t\t\t+ \"WHERE et_member_id = ? AND er_task_id = ?\";\r\n\t\treturn get(sql,memberId,taskId);\r\n\t}",
"public Task getTask(String taskId, String userId) throws DaoException, DataObjectNotFoundException, SecurityException\r\n {\n dao = (TaskManagerDao) getDao();\r\n Task task = dao.selectTask(taskId,userId);\r\n if(task!=null) {\r\n // Task task = (Task)col.iterator().next();\r\n task.setAttendees(getAssignees(taskId));\r\n task.setReassignments(getReassignments(taskId));\r\n ResourceManager rm = (ResourceManager)Application.getInstance().getModule(ResourceManager.class);\r\n task.setResources(rm.getBookedResources(task.getId(),CalendarModule.DEFAULT_INSTANCE_ID)); return task;\r\n }else throw new DataObjectNotFoundException(); \r\n }",
"public TodoItem getTodoItemById(Long id) throws RecordNotFoundException {\n Optional<TodoItem> todoItem = todoItemRepository.findById(id);\n\n if (todoItem.isPresent()) {\n return todoItem.get();\n } else {\n throw new RecordNotFoundException(\"No TodoItem record exist for given id\");\n }\n }",
"public TaskSummary getTask(Long taskId){\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n Task taskObj = taskSession.getTask(taskId);\n TaskSummary tSummary = new TaskSummary();\n tSummary.setActivationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setActualOwner(taskObj.getTaskData().getActualOwner());\n tSummary.setCreatedBy(taskObj.getTaskData().getCreatedBy());\n tSummary.setCreatedOn(taskObj.getTaskData().getCreatedOn());\n tSummary.setDescription(taskObj.getDescriptions().get(0).getText());\n tSummary.setExpirationTime(taskObj.getTaskData().getExpirationTime());\n tSummary.setId(taskObj.getId());\n tSummary.setName(taskObj.getNames().get(0).getText());\n tSummary.setPriority(taskObj.getPriority());\n tSummary.setProcessId(taskObj.getTaskData().getProcessId());\n tSummary.setProcessInstanceId(taskObj.getTaskData().getProcessInstanceId());\n tSummary.setStatus(taskObj.getTaskData().getStatus());\n tSummary.setSubject(taskObj.getSubjects().get(0).getText());\n return tSummary;\n }catch(RuntimeException x) {\n throw x;\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }",
"TrackerTasks getTrackerTasks(final Integer id);",
"@Query(\"SELECT * FROM \" + TABLE + \" WHERE mId == :id\")\n @Nullable\n Task get(long id);",
"@GetMapping(\"/vehicle-tasks/{id}\")\n @Timed\n @Secured(AuthoritiesConstants.ADMIN)\n public ResponseEntity<VehicleTask> getVehicleTask(@PathVariable Long id) {\n log.debug(\"REST request to get VehicleTask : {}\", id);\n VehicleTask vehicleTask = vehicleTaskService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(vehicleTask));\n }",
"TbCrmTask selectByPrimaryKey(Long id);",
"@Transactional(readOnly = true) \n public TaskProject findOne(Long id) {\n log.debug(\"Request to get TaskProject : {}\", id);\n TaskProject taskProject = taskProjectRepository.findOne(id);\n return taskProject;\n }",
"public TodoData getTodoById(int todoId) {\n return todoMap.get(todoId);\n }",
"@Override\n\tpublic List<Task> filterByTask(int id_task) {\n\t\treturn null;\n\t}",
"public Record getRecord(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(Record.TABLE_NAME,\n new String[]{Record.COLUMN_ID,\n Record.COLUMN_TITLE,\n Record.COLUMN_AUTHOR,\n Record.COLUMN_DESCRIPTION,\n Record.COLUMN_URL,\n Record.COLUMN_IMAGE,\n Record.COLUMN_CONTENT,\n Record.COLUMN_TIMESTAMP},\n Record.COLUMN_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare record object\n Record record = new Record(\n cursor.getInt(cursor.getColumnIndex(Record.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TITLE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_AUTHOR)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_DESCRIPTION)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_URL)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_IMAGE)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_CONTENT)),\n cursor.getString(cursor.getColumnIndex(Record.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return record;\n }",
"public Record readRecord(int recordId) {\n return records[recordId];\n }",
"@Override\n public String getTask(String id) {\n JSONObject response = new JSONObject();\n try {\n ITaskInstance task = dataAccessTosca.getTaskInstance(id);\n if (task != null) {\n //get the belonging work item\n List<IWorkItem> workItem = dataAccessTosca.getWorkItems(id);\n //get the presentationDetails\n JSONObject presentation = new JSONObject();\n presentation.put(\"title\", task.getPresentationName());\n presentation.put(\"subject\", task.getPresentationSubject());\n presentation.put(\"description\", task.getPresentationDescription());\n //get inputParameters\n Set<IInputParameter> inputParameters = dataAccessTosca.getInputParametersByTask(task.getId());\n\n //get outputParameters\n Set<IOutputParameter> outputParameters = dataAccessTosca.getOutputParametersByTask(task.getId());\n //put information in response\n response.put(\"id\", task.getId());\n response.put(\"name\", task.getName());\n JSONArray taskTypes = new JSONArray();\n taskTypes.addAll(dataAccessTosca.getTaskTypeByTask(task.getId()));\n response.put(\"taskTypes\", taskTypes);\n response.put(\"priority\", task.getPriority());\n response.put(\"status\", task.getStatus().name().toLowerCase());\n if (workItem.get(0).getAssignee() != null) {\n response.put(\"claimedBy\", workItem.get(0).getAssignee().getUserId());\n }\n response.put(\"presentationDetails\",presentation);\n if (inputParameters != null) {\n JSONArray inputs = new JSONArray();\n for (IInputParameter input : inputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", input.getLabel());\n i.put(\"value\", input.getValue());\n inputs.add(i);\n }\n response.put(\"inputParameters\", inputs);\n }\n if (outputParameters != null) {\n JSONArray outputs = new JSONArray();\n for (IOutputParameter output : outputParameters) {\n JSONObject i = new JSONObject();\n i.put(\"label\", output.getLabel());\n i.put(\"value\", output.getValue());\n outputs.add(i);\n }\n response.put(\"outputParameters\",outputs);\n }\n\n return response.toString();\n }\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return null;\n }",
"@Override\r\n\tpublic List<ExecuteTask> getByTask(int taskId) {\n\t\tString sql = \"SELECT et_id id,et_member_id memberId,et_task_id taskId,et_comments comments FROM executetask\"\r\n\t\t\t\t+ \" WHERE et_task_id = ?\";\r\n\t\treturn getForList(sql,taskId);\r\n\t}",
"public OpenERPRecord get(int id) {\r\n\t\tIterator<OpenERPRecord> i = records.iterator();\r\n\t\twhile (i.hasNext()) {\r\n\t\t\tOpenERPRecord n = i.next();\r\n\t\t\tInteger rID = (Integer) n.get(\"id\"); // no class cast exception\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// expected here...\r\n\t\t\tif (rID == id)\r\n\t\t\t\treturn n;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public TaskDetails getSpecificTask (int position){\n return taskList.get(position);\n }",
"@Override\n\tpublic Record getRecordById(int id) {\n\t\tSession session = HibernateSessionFactory.getSession();\n\t\tTransaction tx = session.beginTransaction();\n\t\tRecordDAO recordDAO = new RecordDAO();\n\t\tRecord R = null;\n\n\t\ttry {\n\t\t\tR = recordDAO.findById(id);\n\t\t\ttx.commit();\n\t\t} catch (RuntimeException e) {\n\t\t\te.printStackTrace();\n\t\t\ttx.commit();\n\t\t} finally {\n\t\t\tsession.close();\n\t\t}\n\n\t\treturn R;\n\t}",
"@Override\r\n\tpublic FyTestRecord findById(Long id) {\n\t\treturn testRecordDao.findOne(id);\r\n\t}",
"public Task get(int taskIndex) {\n return tasks.get(taskIndex);\n }",
"public Task get(int taskIndex) {\n return tasks.get(taskIndex);\n }",
"T get(PK id);",
"TrackerTasks loadTrackerTasks(final Integer id);",
"public Todo fetchByPrimaryKey(long todoId);",
"@RequestMapping(value = \"/get-task/{taskName}\", method = RequestMethod.GET)\r\n\tpublic Task getTask(@PathVariable(\"taskName\") String taskName) {\r\n\t\tTask dumyTask = new Task();\r\n\t\tdumyTask.setTaskName(taskName);\r\n\t\treturn dumyTask;\r\n\t}",
"public java.lang.Object getTaskID() {\n return taskID;\n }",
"public Cursor getRecord(int id) {\n Cursor res = db.rawQuery( \"select * from TRACKRECORD where TRACKID=\"+id+\"\", null );\n return res;\n }",
"net.zyuiop.ovhapi.api.objects.license.Task getServiceNameTasksTaskId(java.lang.String serviceName, long taskId) throws java.io.IOException;",
"T getById(PK id);",
"@SuppressWarnings(\"unchecked\")\r\n public List<UserPlanTask> UserPlanTaskEdit(long task_id) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n\r\n List<UserPlanTask> EditTask = null;\r\n try {\r\n EditTask = session.createQuery(\"from UserPlanTask where taskId='\" + task_id + \"'\").list();\r\n } catch (HibernateException HE) {\r\n System.out.println(HE);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return EditTask;\r\n }",
"@Override\n\tpublic RecordableRecord findRecordableRecordByPid(String id) {\n\t\treturn recordableRecordRepository.findRecordableRecordByPid(id);\n\t}",
"public ToDo getToDo(String id) {\n return Arrays.stream(allTodos).filter(x -> x._id.equals(id)).findFirst().orElse(null);\n }",
"public int getTaskID() {\n\t\treturn taskID;\n\t}",
"public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}",
"public Task getTask(int index)\n {\n return tasks.get(index);\n }",
"public T getByID(int id) {\n\t\treturn this.data.get(id);\n\t}",
"public static TaskTimeElement findByID(long id) {\r\n String sql = null;\r\n TaskTimeElement ret = null;\r\n Statement theStatement = null;\r\n Connection theConnection = null;\r\n ResultSet rs = null;\r\n\r\n try {\r\n theConnection = AdminConnectionManager.getConnection(ME + \".findByID\");\r\n theStatement = theConnection.createStatement();\r\n sql = \"select \" +\r\n \"DURATION\" + \r\n \",TASKDATE\" + \r\n \",TASKNAME\" + \r\n \",USERNAME\" +\r\n \" from TaskTimeElement where id = \" + id;\r\n rs = theStatement.executeQuery(sql);\r\n if (rs.next()) {\r\n int i = 1;\r\n ret = new TaskTimeElement();\r\n ret.setId(id);\r\n ret.setDuration(rs.getDouble(i++));\r\n ret.setTaskDate(rs.getString(i++));\r\n ret.setTaskName(rs.getString(i++));\r\n ret.setUserName(rs.getString(i++));\r\n }\r\n }\r\n catch (SQLException e) {\r\n Trace.error(\"sql=\" + sql, e);\r\n }\r\n finally {\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theStatement != null) {\r\n try {\r\n theStatement.close();\r\n }\r\n catch (SQLException e) {}\r\n }\r\n if (theConnection != null)\r\n AdminConnectionManager.releaseConnection(theConnection);\r\n }\r\n return ret;\r\n }",
"@Override\n //@Transactional(readOnly = true)\n public ProjectTransactionRecordDTO findOne(Long id) {\n log.debug(\"Request to get ProjectTransactionRecord : {}\", id);\n ProjectTransactionRecord projectTransactionRecord = projectTransactionRecordRepository.findOne(id);\n return projectTransactionRecordMapper.toDto(projectTransactionRecord);\n }",
"public Task getTask(int taskNumber) {\n assert taskNumber <= getNumTasks() && taskNumber > 0 : \"Task number should be valid\";\n return tasks.get(taskNumber - 1);\n }",
"public Task getTask() {\n Long __key = this.TaskId;\n if (task__resolvedKey == null || !task__resolvedKey.equals(__key)) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n TaskDao targetDao = daoSession.getTaskDao();\n Task taskNew = targetDao.load(__key);\n synchronized (this) {\n task = taskNew;\n \ttask__resolvedKey = __key;\n }\n }\n return task;\n }",
"@GetMapping(\"/byid/{id}\")\r\n public ResponseEntity<TaskStatus> getTaskStatusById(@PathVariable(value = \"id\") Long id) {\r\n\r\n TaskStatus tsk = dao.findOne(id);\r\n\r\n if (tsk == null) {\r\n return ResponseEntity.notFound().build();\r\n }\r\n return ResponseEntity.ok().body(tsk);\r\n\r\n }",
"String get(String id);",
"@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }",
"public TWorkTrustDetail selectByPrimaryKey(String id) {\n\t\tTWorkTrustDetail key = new TWorkTrustDetail();\n\t\tkey.setId(id);\n\t\tTWorkTrustDetail record = (TWorkTrustDetail) getSqlMapClientTemplate()\n\t\t\t\t.queryForObject(\n\t\t\t\t\t\t\"t_work_trust_detail.ibatorgenerated_selectByPrimaryKey\",\n\t\t\t\t\t\tkey);\n\t\treturn record;\n\t}",
"T getById(int id);",
"public List<TaskMaster> retrieveTaskByProjectId(Long projectId);",
"public boolean containsTask(final int taskid) {\n return tasks.containsKey(taskid);\n }",
"public List<String> finddetails(long id ) {\n id=id-1;\n Log.d(SimpleTodoActivity.APP_TAG, \"findspecific triggered with ID----->\"+id);\n List<String> tasks = new ArrayList<String>();\n\n try{\n String query = \"SELECT * FROM \"+TABLE_NAME+\" WHERE id=\" + id +\";\";\n\n Cursor c = storage.rawQuery(query, null);\n if (c.moveToFirst()){\n do{\n String title = c.getString(c.getColumnIndex(KEY_TITLE));\n String description = c.getString(c.getColumnIndex(KEY_DESCRIPTION));\n String priority=c.getString(c.getColumnIndex(KEY_PRIORITY));\n String task_date=c.getString(c.getColumnIndex(KEY_TASKDATE));\n String task_group=c.getString(c.getColumnIndex(KEY_GROUP_NAME));\n tasks.add(title);\n tasks.add(description);\n tasks.add(priority);\n tasks.add(task_group);\n tasks.add(task_date);\n }while(c.moveToNext());\n }\n c.close();\n\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n\n\n return tasks;\n }",
"public Task getTask(Long row_num) {\n List<Task> taskList = new ArrayList<Task>();\n Task result = new Task();\n Integer r = row_num.intValue();\n taskList = getAllTasks();\n result = taskList.get(r);\n return result;\n }",
"CptDataStore selectByPrimaryKey(String id);",
"@Override\n public TaskInstance getByTaskInstanceId(Integer taskInstanceId) {\n TaskInstance taskInstance = taskInstanceCache.get(taskInstanceId);\n if (taskInstance == null){\n taskInstance = processService.findTaskInstanceById(taskInstanceId);\n taskInstanceCache.put(taskInstanceId,taskInstance);\n }\n return taskInstance;\n }",
"Object getTaskId();",
"public static ToDoItem getToDoByID(int id)\r\n\t{\r\n\t\treturn Global.getMainGui().getToDoItemList().stream()\r\n\t\t\t\t.filter(item -> item.getId() == id)\r\n\t\t\t\t.findFirst().get();\r\n\t}",
"public ToDoList getItem(int key_id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_NAME, new String[]{KEY_ID,\n TITLE, DETAILS}, KEY_ID + \"=?\",\n new String[]{String.valueOf(key_id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n ToDoList itemFound = new ToDoList(cursor.getString(1), cursor.getString(2), cursor.getInt(0));\n return itemFound;\n }",
"com.google.cloud.aiplatform.v1.PipelineTaskDetail getTaskDetails(int index);",
"@Override\n\tpublic T getEntryById(Serializable id) {\n\t\treturn (T) this.hibernateTemplate.get(this.classt, id);\n\t}",
"TempletLink selectByPrimaryKey(String id);",
"Schedule selectByPrimaryKey(Integer id);",
"T getById(ID id);",
"T get(Integer id);",
"T getById(Long id);",
"public Task get(int index){\n return tasks.get(index);\n }",
"public Task getTask(int index) {\n return taskList.get(index - 1);\n }",
"@GetMapping(path=\"/{id}/getTasks\")\n public @ResponseBody List<Task> getTasksForMember(@PathVariable long id){\n return taskRepository.findByTeammember(teamMemberRepository.getOne(id));\n }",
"public Project getTasks(String projectId) {\n try {\n\n String selectProject = \"select * from PROJECTS where PROJECT_ID = ?\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectProject);\n ps.setString(1, projectId);\n ResultSet rs = ps.executeQuery();\n if (rs.next()) {\n String startdate = rs.getString(\"STARTDATE\");\n String invoicesent = rs.getString(\"INVOICESENT\");\n String hours = rs.getString(\"HOURS\");\n String client = \"\";\n String duedate = rs.getString(\"DUEDATE\");\n String description = rs.getString(\"DESCRIPTION\");\n Project p = new Project(client, description, projectId,\n duedate, startdate, hours, duedate, duedate,\n invoicesent, invoicesent);\n rs.close();\n ps.close();\n return p;\n } else {\n return null;\n }\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"@Override\n public String toString() {\n return \"Task no \"+id ;\n }",
"FileRecordAdmin selectByPrimaryKey(String id);",
"List<Task> getTaskdetails();",
"public Record getRecordWithId(final String recordId) {\n ArrayList<Record> allRecords = getAllSavedRecords();\n for (final Record eachRecord : allRecords) {\n if (eachRecord.recordId.equals(recordId)) {\n return eachRecord;\n }\n }\n return null;\n }",
"@Override\n\tpublic ZgTaskEntity selectTaskInfo(Integer id,String schedulingId) {\n\t\tzgTaskDao.updateIsRead(id);\n\t\tZgTaskEntity zgTask = zgTaskDao.selectTask(id);\n\t\tif(StringUtils.isNotBlank(schedulingId)){\n\t\t\tList<Long> joinPeople = ejSchedulingPeopleDao.selectJoinPeople(schedulingId);\n\t\t\tEjSchedulingEntity ejSchedulingEntity = ejSchedulingDao.selectById(schedulingId);\n\t\t\tzgTask.setJoinPeopleList(joinPeople);\n\t\t\tzgTask.setSchedulingCompere(ejSchedulingEntity.getCompere());\n\t\t\tzgTask.setSchedulingCreateUser(ejSchedulingEntity.getCreateUser());\n\t\t}\n//\t\tzgTaskEntityVo.setId(zgTask.getId());\n//\t\tzgTaskEntityVo.setCreateTime(zgTask.getCreateTime());\n//\t\tzgTaskEntityVo.setTaskType(zgTask.getTaskType());\n//\t\tzgTaskEntityVo.setUserId(zgTask.getUserId());\n//\t\tzgTaskEntityVo.setWorkTask(zgTask.getWorkTask());\n\t\t//查询完成情况\n\t\tList<ZgTaskFinishEntity> completionList = zgTaskFinishDao.selectCompletion(id);\n\t\t//查询督办情况\n\t\tList<ZgTaskFinishEntity> rigorousList = zgTaskFinishDao.selectRigorous(id);\n\t\tzgTask.setCompletionList(completionList);\n\t\tzgTask.setRigorousList(rigorousList);\n\t\tList<ZgTaskFinishEntity> finishList = zgTaskFinishDao.selectList(new EntityWrapper<ZgTaskFinishEntity>().and(\"task_id =\"+zgTask.getId()).and(\"schedule != 0\").orderBy(\"create_time asc\"));\n\t\tif(finishList.size() > 0){\n for (ZgTaskFinishEntity zgTaskFinishEntity:finishList) {\n List<EjSchedulingFileEntity> fileList = ejSchedulingFileDao.selectList(new EntityWrapper<EjSchedulingFileEntity>().and(\"finish_id =\"+zgTaskFinishEntity.getId()));\n zgTaskFinishEntity.setFileList(fileList);\n }\n }\n\t\tzgTask.setFinishList(finishList);\n\t\treturn zgTask;\n\t}",
"RecordLike selectByPrimaryKey(String id);",
"EtpBase selectByPrimaryKey(String id);",
"T get(ID id);",
"Optional<TITransferDetails> findOne(UUID id);",
"@Transactional\r\n\tpublic Trip getTripById(int id) {\n\t\treturn dao.getTripById(id);\r\n\t}"
] | [
"0.7581322",
"0.74201405",
"0.7370575",
"0.71835136",
"0.71777195",
"0.71391374",
"0.7125044",
"0.70673925",
"0.70073986",
"0.6956902",
"0.68519133",
"0.6838586",
"0.6791982",
"0.6684294",
"0.66681474",
"0.661242",
"0.65782404",
"0.65374535",
"0.64607215",
"0.64562154",
"0.6437925",
"0.64048785",
"0.64039123",
"0.6377958",
"0.6352128",
"0.63395",
"0.62911576",
"0.6274718",
"0.6231061",
"0.6228387",
"0.62158805",
"0.62084043",
"0.61933166",
"0.61657894",
"0.61481196",
"0.6140438",
"0.6132549",
"0.6124079",
"0.6094961",
"0.60834193",
"0.60772413",
"0.6040807",
"0.60282147",
"0.59630144",
"0.5900334",
"0.5900334",
"0.5898578",
"0.5893187",
"0.5892809",
"0.5885712",
"0.58574724",
"0.58274305",
"0.5826319",
"0.5823041",
"0.58055705",
"0.57998663",
"0.5776629",
"0.5774124",
"0.57589835",
"0.5758328",
"0.57544166",
"0.57413757",
"0.572333",
"0.57073134",
"0.57056916",
"0.5705658",
"0.5701186",
"0.56972146",
"0.56971234",
"0.5678435",
"0.567118",
"0.5669713",
"0.56572527",
"0.56365496",
"0.5628878",
"0.5621044",
"0.5619026",
"0.56023306",
"0.5598247",
"0.5596921",
"0.55941385",
"0.5590361",
"0.55901563",
"0.5588461",
"0.5581804",
"0.55697644",
"0.5566736",
"0.5561803",
"0.5556332",
"0.55447733",
"0.55369145",
"0.55321",
"0.55300534",
"0.55195117",
"0.55187327",
"0.5518478",
"0.5517637",
"0.5505014",
"0.5497463",
"0.54967576"
] | 0.5783087 | 56 |
Deletes a particular task record for a given task id. | @PreAuthorize("hasRole('ADMIN') or hasRole('DBA')")
@DeleteMapping(value="/delete/{taskId}",produces= { MediaType.APPLICATION_JSON_VALUE })
public StatusDTO deleteTask(@PathVariable("taskId") Integer taskId)
{
taskService.deleteTask(taskId);
StatusDTO status = new StatusDTO();
status.setMessage("Task Status deleted successfully");
status.setStatus(200);
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deleteByid(int taskid)\n\t{\n\t\tteataskMapper.deleteByid(taskid);\n\t}",
"public void deleteTask(long task_id) {\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_TASKS, KEY_ID + \" = ?\",\n new String[] { String.valueOf(task_id) });\n }",
"public void deleteTask(Task task) {\n database.delete(SQLiteHelper.TABLE_TASKS,\n SQLiteHelper.COLUMN_ID + \" = \" + task.get_id(), null);\n }",
"public void deleteTask(Task task){\n SQLiteDatabase db = this.getWritableDatabase();\n db.delete(TABLE_NAME, KEY_ID + \" = ?\",\n new String[] { String.valueOf(task.getId()) });\n taskIndexReset();\n db.close();\n }",
"public Result deleteTask(Long id) {\n Task.delete(id);\n return redirect(routes.TasksController.tasks()); \n }",
"public void deleteTask(long id){\n open(); // open the database\n database.delete(\"tasks\", \"_id=\" + id, null);\n close(); // close the database\n Log.v(TAG, \"deleteTask\");\n }",
"int deleteByPrimaryKey(String taskid);",
"void deleteTask(int id);",
"@RequestMapping(value = \"/tasks/{id}\",\n method = RequestMethod.DELETE,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public ResponseEntity<Void> deleteTask(@PathVariable Long id) {\n log.debug(\"REST request to delete Task : {}\", id);\n taskService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(\"task\", id.toString())).build();\n }",
"int deleteByPrimaryKey(Integer taskid);",
"@Override\r\n\tpublic void deleteByTask(int taskId) {\n\t\tString sql = \"DELETE FROM executetask WHERE et_task_id = ?\";\r\n\t\tupdate(sql,taskId);\r\n\t}",
"public void deleteTask(Task task)\n {\n tasks.remove(task);\n }",
"public void deleteTask(Task task) {\n tasks.remove(task);\n }",
"@DeleteMapping(\"/tasks/{id}\")\n public ResponseEntity<Map<String,Boolean>> deleteTask(@PathVariable Long id){\n Task task = taskRepository.findById(id)\n .orElseThrow(() -> new ResourceNotFoundException(\"Task not found with Id of \" + id));\n\n taskRepository.delete(task);\n Map<String,Boolean> response = new HashMap<>();\n response.put(\"deleted\", Boolean.TRUE);\n return ResponseEntity.ok(response);\n }",
"public void delete(Long id) {\n\t\tPersistenceManager pm = PMF.get().getPersistenceManager();\n\t\ttry {\n\t\t\tTask item = pm.getObjectById(Task.class, id);\n\t\t\tpm.deletePersistent(item);\n\t\t} finally {\n\t\t\tpm.close();\n\t\t}\n\t}",
"public void deleteTask(Integer tid);",
"public Boolean delete(int id) {\n \t\t//get the task for its user id\n \t\tString string = jedisConn.get(PENDING_TASK(String.valueOf(id)));\n \t\tGson gson = new Gson();\n \t\tScheduledTask task = gson.fromJson(string, ScheduledTask.class);\n \t\t// remove the task from the db\n \t\tLong del = jedisConn.del(PENDING_TASK(String.valueOf(id)));\n \t\t//remove the task from alltasks\n \t\tjedisConn.srem(ALL_TASKS, String.valueOf(id));\n \t\t//remove the task from users tasks\n\t\tjedisConn.srem(USER_TASKS(String.valueOf(task.getUserId())), String.valueOf(id));\n \t\tif (del == 1) {\n \t\t\treturn true;\n \t\t}\n \t\telse {\n \t\t\treturn false;\n \t\t}\n \t}",
"@Override\n public boolean deleteTask(String id) {\n boolean deleted = false;\n try {\n deleted = dataAccessTosca.deleteHumanTaskInstance(id);\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return deleted;\n }",
"boolean deleteTask(Task task);",
"public boolean deleteTask(long userId, String taskId);",
"void deleteTrackerTasks(final Integer id);",
"@DeleteMapping(\"/vehicle-tasks/{id}\")\n @Timed\n @Secured(AuthoritiesConstants.ADMIN)\n public ResponseEntity<Void> deleteVehicleTask(@PathVariable Long id) {\n log.debug(\"REST request to delete VehicleTask : {}\", id);\n vehicleTaskService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"@Override\r\n public void delete(DiagramTask task)\r\n {\r\n try\r\n {\r\n TASK_DAO.deleteTask(task.getId());\r\n addMessage(\"Success!\", \"Task deleted correctly.\");\r\n\r\n }\r\n catch (HibernateException e)\r\n {\r\n addMessage(\"Error!\", \"Please try again.\");\r\n Logger.getLogger(DiagramTaskBean.class.getName()).log(Level.SEVERE, null, e);\r\n }\r\n }",
"public static boolean deleteTask(Task task) {\n try{\n String query = \"DELETE FROM TASK WHERE (NAME=? AND COLOUR=? AND DATE=?)\"; // Setup query for task\n PreparedStatement statement = DatabaseHandler.getConnection().prepareStatement(query); // Setup statement for query\n statement.setString(1, task.getName()); // Add task's values to the statement\n statement.setString(2, task.getColor().toString());\n statement.setString(3, task.getDate().toString());\n int result = statement.executeUpdate(); // send out the statement\n getMainController().loadTasks();\n return (result > 0);\n } catch (SQLException e) { // If the task wasn't able to be deleted\n e.printStackTrace(); // Create alert for failing to delete\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setHeaderText(null);\n alert.setContentText(\"Unable to delete task.\");\n alert.showAndWait();\n }\n return false;\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete ProjectTransactionRecord : {}\", id);\n projectTransactionRecordRepository.delete(id);\n }",
"@Transactional( WorkflowPlugin.BEAN_TRANSACTION_MANAGER )\n void removeByIdTask( int nIdTask );",
"void deleteById(final String id);",
"public void deleteTask(int taskNumber) {\n assert taskNumber <= getNumTasks() && taskNumber > 0 : \"Task number should be valid\";\n tasks.remove(taskNumber - 1);\n }",
"public void deleteTask() throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n Task toBeDeleted = tasks.get(taskIndex);\n tasks.remove(taskIndex);\n storage.updateFile(tasks.TaskList);\n System.out.println(\n \"The following task has been deleted!\\n\" + toBeDeleted + \"\\n\");\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n\n System.out.println(LINEBAR);\n\n }",
"public void deleteTask(int userId, int taskId) {\n String query = \"DELETE FROM \" + Constant.TASKS_TABLE + \" WHERE \" + Constant.USERS_USERID + \"=?\" + \" AND \" + Constant.TASKS_TASKID + \"=?\";\n\n try {\n PreparedStatement preparedStatement = getDbConnection().prepareStatement(query);\n preparedStatement.setInt(1,userId);\n preparedStatement.setInt(2,taskId);\n preparedStatement.execute();\n preparedStatement.close();\n } catch (SQLException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n\tpublic void delete(int memberId,int taskId) {\n\t\tString sql = \"DELETE FROM executetask WHERE et_member_id = ? and et_task_id = ?\";\r\n\t\tupdate(sql,memberId,taskId);\r\n\t}",
"void deleteTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;",
"void deleteTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"void deleteById(String id);",
"public void deleteById(String id);",
"public Task deleteTask(int taskNumber) {\n int idx = taskNumber - 1;\n Task deletedTask = this.tasks.get(idx);\n this.tasks.remove(idx);\n return deletedTask;\n }",
"boolean deleteById(int id);",
"public void deleteTask(String item){\n SQLiteDatabase db = this.getWritableDatabase();\n db.execSQL(\"DELETE FROM ToDo where task='\"+item+\"'\");\n }",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(String id);",
"public void delete(Long id) {\n log.debug(\"Request to delete TaskProject : {}\", id);\n taskProjectRepository.delete(id);\n taskProjectSearchRepository.delete(id);\n }",
"void deleteById(Integer id);",
"void deleteById(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"public void delete(Integer id);",
"private String deleteTask(int location, TaskList tasks, Storage storage) throws DukeException {\n String response;\n int index = location - 1;\n if (index >= 0 && index < tasks.getLength()) {\n Task task = tasks.deleteTask(index);\n storage.updateFile(tasks);\n response = task + \"\\n\";\n } else {\n throw new DukeException(\"☹ OOPS!!! Input a valid index\");\n }\n return response;\n }",
"public void deleteTrip(int id) {\n // Create the where clause (specifies the Trip that's being deleted)\n String whereClause = TRIP_ID + \"= ?\";\n String[] whereArgs = {Integer.toString(id)};\n\n // Open the database for writing\n openWritableDB();\n\n // Delete the Trip and then close the connection\n db.delete(TRIP_TABLE, whereClause, whereArgs);\n closeConnection();\n }",
"public boolean delete(String id);",
"public boolean delete(String id);",
"public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}",
"public boolean deleteTask(Task t) {\n return this.tasks.remove(t);\n }",
"@SuppressWarnings(\"unchecked\")\r\n public UserPlanTask UserPlanTaskDelete(Long taskId) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n\r\n UserPlanTask deleteList = (UserPlanTask) session.load(UserPlanTask.class, taskId);\r\n if (null != deleteList) {\r\n session.delete(deleteList);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return deleteList;\r\n }",
"public void deleteTask(int index) throws DukeException {\n this.tasks.remove(index);\n }",
"@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Record : {}\", id);\n recordRepository.deleteById(id);\n }",
"void deleteById(int id);",
"public void removeByTodoId(long todoId);",
"public boolean deleteById(Object id);",
"public boolean deleteById(Object id);",
"public void delete(int taskNumber) {\n Task currentTask = storage.get(taskNumber);\n line();\n System.out.println(\"Deleted task:\");\n System.out.println(currentTask);\n storage.remove(taskNumber);\n System.out.println(\"There are now \" + storage.size() + \" task(s) remaining.\");\n line();\n }",
"@GetMapping(\"/deleteFriend/{id}\")\n\tpublic String DeleteTask(@PathVariable(\"id\")Long fid) {\n\t\tthis.fServ.delete(fid);\n\t\treturn \"redirect:/tasks\";\n\t}",
"@GetMapping(\"/deleteFriend/{id}\")\n\tpublic String DeleteTask(@PathVariable(\"id\")Long fid) {\n\t\tthis.fServ.delete(fid);\n\t\treturn \"redirect:/tasks\";\n\t}",
"public void delete(int id);",
"public Task delete(String num) throws DukeException {\n try {\n if (num.equals(\"all\")) {\n deleteAll();\n return null;\n } else {\n int intNum = Integer.parseInt(num);\n Task temp = tasks.get(intNum - 1);\n tasks.remove(intNum - 1);\n return temp;\n }\n } catch (NumberFormatException e) {\n throw new DukeException(\"Please key in an index!\");\n } catch (IndexOutOfBoundsException r) {\n throw new DukeException(\"The task does not exist\");\n }\n }",
"public boolean deleteTask(long rowId) {\n //\n return db.delete(DATABASE_TABLE, KEY_ROWID +\n \"=\" + rowId, null) > 0;\n }",
"void deleteById(long id);",
"public boolean deleteById(final Long id);",
"public void deleteById(Integer id) {\n\n\t}",
"public void deleteTodo(Long todoId) {\n todoRepository.deleteById(todoId);\n }",
"int deleteByExample(TaskExample example);",
"public void deleteTask() {\n\t\tsuper.deleteTask();\n\t\tif (mTaskDetailNavigator != null) {\n\t\t\tmTaskDetailNavigator.onTaskDeleted();\n\t\t}\n\t}",
"public void deleteTask(View v) {\n //grab the parent view of the DONE button\n View parent = (View)v.getParent();\n\n //grab the TextView from item_todo.xml\n TextView taskTextView = (TextView)parent.findViewById(R.id.taskTitle);\n String task = String.valueOf(taskTextView.getText());\n\n //a read/write database object will be returned\n SQLiteDatabase db = dbHelper.getWritableDatabase();\n\n //delete the entry in the database that matches the selected task\n db.delete(TaskContract.TaskEntry.TABLE,\n TaskContract.TaskEntry.COL_TASK_TITLE + \" =?\",\n new String[]{task});\n db.close(); //close the database object\n updateUI(); //update the look of the ListView\n }",
"public void deleteById(Long id);",
"boolean delete(final ID id);",
"public void deleteRecord() {\n\n new BackgroundDeleteTask().execute();\n }",
"public void deleteTransactionById(int id);",
"@Override\n\tpublic void delete(long id) {\n\t\tCR.deleteById(id);\n\t}",
"@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);",
"@Override\r\n\tpublic Trainee deleteById(int id) {\n\t\treturn dao.deleteById(id);\r\n\t}",
"public void removeTask(ToDoTask t) {\n database.removeTask(t);\n Toast.makeText(this, String.format(getResources().getString(R.string.list_remove_toast),\n t.getTask()), Toast.LENGTH_LONG).show();\n }",
"@Override\n public DeleteFuotaTaskResult deleteFuotaTask(DeleteFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteFuotaTask(request);\n }",
"public int delete(String id) {\n\treturn projectmapper.delete(id);\n}",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);",
"void delete(String id);"
] | [
"0.7898437",
"0.7817556",
"0.76332706",
"0.7533177",
"0.7397137",
"0.73969394",
"0.73633426",
"0.73439246",
"0.7181288",
"0.7050157",
"0.69655913",
"0.69454795",
"0.6909172",
"0.68971795",
"0.6878985",
"0.6878719",
"0.68749535",
"0.6833033",
"0.67598045",
"0.67338",
"0.65143085",
"0.6460238",
"0.64347124",
"0.63245934",
"0.6262937",
"0.6244608",
"0.6239151",
"0.6236803",
"0.622924",
"0.6206679",
"0.6195622",
"0.6180054",
"0.6177905",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6139444",
"0.6099538",
"0.6093078",
"0.6081067",
"0.6062993",
"0.6049893",
"0.6049893",
"0.6049893",
"0.6049893",
"0.6049893",
"0.60442775",
"0.6042582",
"0.6042582",
"0.6013168",
"0.6013168",
"0.6013168",
"0.60058236",
"0.6004334",
"0.60042626",
"0.60042626",
"0.5997974",
"0.59911865",
"0.59886926",
"0.59813386",
"0.5980607",
"0.5975147",
"0.596808",
"0.59671813",
"0.59671813",
"0.5944468",
"0.5919374",
"0.5919374",
"0.59015834",
"0.5900117",
"0.5893419",
"0.58908147",
"0.5881628",
"0.58384544",
"0.5838435",
"0.58315295",
"0.58200556",
"0.57826316",
"0.5778421",
"0.5771331",
"0.5762052",
"0.57613623",
"0.5756597",
"0.5751627",
"0.5749561",
"0.5746212",
"0.57327676",
"0.5731605",
"0.5727936",
"0.5727936",
"0.5727936",
"0.5727936",
"0.5727936",
"0.5727936"
] | 0.6036659 | 55 |
Updates a particular task record for a given task id inside task dto. | @PostMapping(value="/update",consumes={MediaType.APPLICATION_JSON_VALUE},produces={MediaType.APPLICATION_JSON_VALUE})
public StatusDTO updateTask(@RequestBody TaskDTO task){
taskService.updateTask(task);
StatusDTO status = new StatusDTO();
status.setMessage("Task details updated successfully");
status.setStatus(200);
return status;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"TaskResponse updateTask(TaskRequest taskRequest, Long taskId);",
"public int updateTask(Task task) {\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues values = new ContentValues();\n values.put(KEY_TASKNAME, task.getTaskName());\n values.put(KEY_STATUS, task.getStatus());\n values.put(KEY_DATE,task.getDateAt());\n\n // updating row\n return db.update(TABLE_TASKS, values, KEY_ID + \" = ?\",\n new String[] { String.valueOf(task.getId()) });\n }",
"int updateByPrimaryKey(_task record);",
"@Test\n public void updateTaskAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n Task updatedTask = new Task(\"title2\", \"description2\", \"id\", true);\n mDatabase.taskDao().updateTask(updatedTask);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, \"id\", \"title2\", \"description2\", true);\n }",
"void updateTask(UserDto user);",
"int updateByPrimaryKey(Task record);",
"@Override\n @Modifying\n public ResponseEntity<GenericResponseDTO> updateTask(String codeTask, TaskDTO taskDTO) {\n TaskEntity taskEntity = new TaskEntity();\n Optional<TaskEntity> oldTask;\n try{\n oldTask = taskRepository.findByCodeTask(codeTask);\n if (oldTask.isPresent()){\n taskEntity = itaskConverter.taskDtoToTaskEntity(taskDTO);\n taskEntity.setIdTable(oldTask.get().getIdTable());\n taskRepository.save(taskEntity);\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"tarea actualizada\")\n .objectResponse(taskDTO)\n .statusCode(HttpStatus.OK.value())\n .build(), HttpStatus.OK);\n }else{\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"no se encontro ninguna tarea para actualizar\")\n .objectResponse(null)\n .statusCode(HttpStatus.OK.value())\n .build(), HttpStatus.OK);\n }\n }catch (Exception e){\n log.error(\"Algo fallo en la creacion de la tarea \" + e);\n return new ResponseEntity<>(GenericResponseDTO.builder()\n .message(\"Error actualizando tarea: \" + e.getMessage())\n .objectResponse(null)\n .statusCode(HttpStatus.BAD_REQUEST.value())\n .build(), HttpStatus.BAD_REQUEST);\n }\n }",
"@Override\n\tpublic void updateByid(Teatask ta)\n\t{\n\t\tteataskMapper.updateByid(ta);\n\t}",
"public void updateTask(Task task){//needs to depend on row num\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(KEY_ID,task.getId());\n values.put(KEY_LABEL,task.getLabel());\n values.put(KEY_TIME, task.getTime());\n db.update(TABLE_NAME, values, KEY_ID+\" = ?\",\n new String[] { String.valueOf(task.getId()) });\n }",
"@PostMapping(value=\"/{id}/edit\")\n public String editTask(@PathVariable(\"id\") Long id, @ModelAttribute @Valid Task task, Errors errors,\n Model model, @RequestParam Long projectId, @RequestParam Long userId) {\n task.setProject(projectService.findById(projectId));\n task.setUser(userService.findById(userId));\n\n if (errors.hasErrors()) {\n model.addAttribute(\"projects\", projectService.findAll());\n model.addAttribute(\"users\", userService.findAll());\n return EDIT_TASK_PAGE;\n }\n\n taskService.saveOne(task);\n\n return REDIRECT_TASK_PAGE;\n }",
"int updateByPrimaryKey(TbCrmTask record);",
"int updateByPrimaryKeySelective(_task record);",
"public void updateToDone(int _id) {\n\n ContentValues values = new ContentValues();\n String date = DateFormat.getDateInstance().format(new Date());\n\n values.put(\"dateDone\", date);\n values.put(\"done\", 1);\n\n getWritableDatabase().update(\"tasks\", values, \"_id = '\"+_id+\"'\", null);\n }",
"int updateByExample(@Param(\"record\") Task record, @Param(\"example\") TaskExample example);",
"int updTravelById(Travel record) throws TravelNotFoundException;",
"public void update(RutaPk pk, Ruta dto) throws RutaDaoException;",
"public void updateTask(int tid,String title,String detail,int money,String type,int total_num,int current_num,Timestamp start_time,Timestamp end_time,String state);",
"public String editTask(TasksModel obj)\n\t{\n\t\tString memo=\"\"; \n\t\tif(obj.getMemo()!=null)\n\t\t{\n\t\t\tmemo=obj.getMemo().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setMemo(memo);\n\t\t\n\t\tString commnets=\"\"; \n\t\tif(obj.getComments()!=null)\n\t\t{\n\t\t\tcommnets=obj.getComments().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setComments(commnets);\n\t\t\t\n\t\tString stepsToReproduce=\"\"; \n\t\tif(obj.getTaskStep()!=null)\n\t\t{\n\t\t\tstepsToReproduce=obj.getTaskStep().replaceAll(\"'\",\"`\");\n\t\t}\n\t\tobj.setTaskStep(stepsToReproduce);\n\t\tquery=new StringBuffer();\n\t\tquery.append(\"Update tasks set customerType='\"+obj.getClientType()+\"',taskNo='\"+obj.getTaskNumber()+\"',tasktype=\"+obj.getTaskTypeId()+\",expectedDateTofinsh='\"+sdf.format(obj.getExpectedDatetofinish())+\"',reminderDate='\"+sdf.format(obj.getReminderDate())+\"',toBeReminderIn=\"+obj.getRemindIn()+\",taskName='\"+obj.getTaskName()+\"',steps='\"+obj.getTaskStep()+\"',linkid=\"+obj.getPrviousTaskLinkId()+\",customerrefKey=\"+obj.getCustomerRefKey()+\",\");\t\n\t\tquery.append(\"projectrefKey=\"+obj.getProjectKey()+\",servicerefKey=\"+obj.getSreviceId()+\",assignedUser=\"+obj.getEmployeeid()+\",ccemployeeKey=\"+obj.getCcEmployeeKey()+\",priorityrefKey=\"+obj.getPriorityRefKey()+\",estTime=\"+obj.getEstimatatedNumber()+\",memo='\"+obj.getMemo()+\"',actualTime=\"+obj.getActualNumber()+\",status=\"+obj.getStatusKey()+\",usercomments='\"+obj.getComments()+\"',hourOrDays='\"+obj.getHoursOrDays()+\"' where taskID=\"+obj.getTaskid()+\"\");\n\t\tquery.append(\" \");\n\t\treturn query.toString();\n\t}",
"@Override\n public Mono<BaseSingleInterface.BaseTask<Task>> updateProjectTask(Long code, String columnName, Task task) {\n Query updateQuery = new Query(where(\"code\").is(code).and(\"columns.name\").is(columnName).and(\"columns.tasks.name\").is(task.getName()));\n Update update = new Update().set(\"columns.$[columnIndex].tasks.$\", task).filterArray(Criteria.where(\"columnIndex.name\").is(columnName));\n return template.updateMulti(updateQuery, update, Project.class)\n .filter(result -> result.getModifiedCount() > 0)\n .flatMap(result -> findByProjectColumnTaskName(code, columnName, task.getName(), Pageable.unpaged()));\n }",
"int updateByPrimaryKeySelective(Task record);",
"public void setTask(TaskDTO task) {\n\t\tthis.task = task;\r\n\t\t\r\n\t\t\r\n\t}",
"boolean updateTask(Task updatedTask);",
"int updateByPrimaryKey(JmfTaskMqRef record);",
"int updateByExampleSelective(@Param(\"record\") Task record, @Param(\"example\") TaskExample example);",
"@SuppressWarnings(\"unchecked\")\r\n public UserPlanTask UserPlanTaskUpdate(long taskId, String TTitle, String TDescription, String TDate, Integer status) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n UserPlanTask UpdateTaskList = (UserPlanTask) session.load(UserPlanTask.class, taskId);\r\n UpdateTaskList.setTTitle(TTitle);\r\n UpdateTaskList.setTDescription(TDescription);\r\n UpdateTaskList.setTDate(TDate);\r\n UpdateTaskList.setStatus(status);\r\n if (null != UpdateTaskList) {\r\n session.update(UpdateTaskList);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return UpdateTaskList;\r\n }",
"public String update(String id, String datetime, String description, String request, String status);",
"public static Task<Void> updateTrip(String tripId, Map<String, Object> data) {\n Log.d(Const.TAG, \"updateTrip: \" + Thread.currentThread().getId());\n return FirebaseFirestore.getInstance()\n .collection(Const.TRIPS_COLLECTION)\n .document(tripId)\n .update(data);\n }",
"@Transactional(Transactional.TxType.REQUIRES_NEW)\n public TaskDef update(TaskDef taskEntity) {\n return TaskDefIntegrationService.update(taskEntity);\n }",
"@Override\n public boolean updateTask(String id,String name, String[] taskTypeNames, String state, HashMap inputParameter, HashMap outputParameter, String title, String subject, String description, String priority, String claimed) {\n boolean response = false;\n try {\n response = dataAccessTosca.updateTask(id, name, taskTypeNames, state, inputParameter ,outputParameter, title, subject, description, priority, claimed);\n } catch (DatabaseException e) {\n e.printStackTrace();\n }\n return response;\n }",
"@Test\n public void updateCompletedAndGetById() {\n mDatabase.taskDao().insertTask(TASK);\n\n // When the task is updated\n mDatabase.taskDao().updateCompleted(TASK.getId(), false);\n\n // When getting the task by id from the database\n Task loaded = mDatabase.taskDao().getTaskById(\"id\");\n\n // The loaded data contains the expected values\n assertTask(loaded, TASK.getId(), TASK.getTitle(), TASK.getDescription(), false);\n }",
"@SuppressWarnings(\"unchecked\")\r\n public List<UserPlanTask> UserPlanTaskEdit(long task_id) {\r\n session = sf.openSession();\r\n Transaction t = session.beginTransaction();\r\n\r\n List<UserPlanTask> EditTask = null;\r\n try {\r\n EditTask = session.createQuery(\"from UserPlanTask where taskId='\" + task_id + \"'\").list();\r\n } catch (HibernateException HE) {\r\n System.out.println(HE);\r\n }\r\n t.commit();\r\n session.close();\r\n sf.close();\r\n return EditTask;\r\n }",
"boolean updateById(T entity);",
"public void setTaskID(java.lang.Object taskID) {\n this.taskID = taskID;\n }",
"@Override\n public TrackDTO update(TrackDTO dto, Long id) {\n Track trackByIdFromDB = trackRepository\n .findById(id)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Track\", id));\n\n /**\n * Este metodo hace la validacion de datos en el dto y los sustituye en el entity\n */\n mergeData(trackByIdFromDB, dto);\n\n /**\n * Se guarda los nuevos datos de la cancion en la base de datos a travez del repositorio.\n */\n trackRepository.save(trackByIdFromDB);\n\n /**\n * Se convierte la cancion (trackByIdFromDB) a un tipo DTO con los nuevos datos\n * y se guarda en la variable trackUpdated para luego ser el retorno del metodo.\n */\n TrackDTO trackUpdated = trackMapper.toDTO(trackByIdFromDB, context);\n\n return trackUpdated;\n\n }",
"@Test\n\tpublic void testUpdateTask() {\n\t}",
"@Mappings({\n\t\t@Mapping(target=\"id\", source=\"entity.id\"),\n\t\t@Mapping(target=\"userId\", source=\"entity.userId\"),\n\t\t@Mapping(target=\"task_description\", source=\"entity.description\"),\n\t\t@Mapping(target=\"createdDate\", source=\"entity.createdDate\"),\n\t\t@Mapping(target=\"modifiedDate\", source=\"entity.modifiedDate\")\n\t\t//@Mapping(target=\"isDeleted\", source=\"entity.isDeleted\")\n\t\t})\n\n\t\tTaskDto taskToTaskDTO(Task entity);",
"@Override\r\n\tpublic void update(ExecuteTask executeTask) {\n\t\tString sql = \"UPDATE executetask SET et_comments = ? WHERE et_id = ?\";\r\n\t\tupdate(sql,executeTask.getComments(),executeTask.getId());\r\n\t}",
"@Test\n @Order(3)\n public void editTaskTest(){\n TaskDTO taskDTO1 = new TaskDTO();\n taskDTO1.setName(\"First task\");\n taskDTO1.setDescription(\"Description of First Task\");\n taskDTO1.setTime(LocalTime.of(1,1));\n taskDTO1.setDate(LocalDate.of(2020, 3, 10));\n taskService.addTask(taskDTO1);\n\n //Setup of second task\n TaskDTO taskDTO2 = new TaskDTO();\n taskDTO2.setName(\"Second task\");\n taskDTO2.setDescription(\"Description of Second Task\");\n taskDTO2.setTime(LocalTime.of(2,2));\n taskDTO2.setDate(LocalDate.of(2020, 3, 11));\n\n //method to be tested\n taskService.replaceTask(4L,taskDTO2);\n Task task = taskService.getTasks().get(4L);\n\n //checks\n assertEquals(task.getName(), \"Second task\");\n assertEquals(task.getDescription(), \"Description of Second Task\");\n assertEquals(task.getDate(), LocalDate.of(2020, 3, 11));\n assertEquals(task.toString(),\"Task{id=4, name='Second task', description='Description of Second Task', date=2020-03-11, time=02:02, subTasks=[]}\");\n }",
"private void updateTask(String task_id, final String task, final String status, final int position){\n if(!preference.getAPI_KEY().isEmpty()){\n Call call = service.updateTask(preference.getAPI_KEY(), task_id, task, status);\n connection.request(call, new ResponseListener() {\n @Override\n public void onSuccess(String response) {\n Log.e(TAG, \"\"+response);\n list_task.get(position).setTask(task);\n list_task.get(position).setStatus(status);\n notifyDataSetChanged();\n }\n\n @Override\n public void onError(String error) {\n Log.e(TAG, \"\"+error);\n }\n });\n }else {\n Toast.makeText(context, \"please login to check data\", Toast.LENGTH_SHORT).show();\n }\n\n }",
"int updateByPrimaryKey(ResultDto record);",
"public void update(FaqPk pk, Faq dto) throws FaqDaoException;",
"void updateUser(int id, UpdateUserDto updateUserDto);",
"public void update(TipologiaStrutturaPk pk, TipologiaStruttura dto) throws TipologiaStrutturaDaoException;",
"public void update(TipoPk pk, Tipo dto) throws TipoDaoException;",
"void editTask(ReadOnlyTask taskToEdit, Name taskName, Date startDate, Date endDate, Priority priority,\n\t\t\tRecurrenceRate recurrenceRate);",
"@Repository\npublic interface TaskRepository extends JpaRepository<TTaskEntity, Integer> {\n @Modifying\n @Transactional\n @Query(\"update TTaskEntity task set \" +\n \"task.title=:title, \" +\n \"task.info=:info,\" +\n \"task.linkUrl=:linkUrl,\" +\n \"task.iconUrl=:iconUrl,\" +\n \"task.bannerUrl=:bannerUrl,\"+\n \"task.bannerTitle=:bannerTitle,\"+\n \"task.bannerLinkUrl=:bannerLinkUrl \"+\n \"where task.id=:id\")\n public void updateTask(@Param(\"title\") String title, @Param(\"info\") String info,\n @Param(\"linkUrl\") String linkUrl, @Param(\"iconUrl\") String iconUrl,\n @Param(\"bannerUrl\") String bannerUrl, @Param(\"bannerTitle\") String bannerTitle,\n @Param(\"bannerLinkUrl\") String bannerLinkUrl,\n @Param(\"id\") Integer id);\n}",
"private void updateAction(String taskId) {\n setupPrioritySpinner();\n try {\n QueryBuilder<Task, String> queryBuilder = taskDao.queryBuilder();\n taskForUpdate = taskDao.queryForFirst(queryBuilder.where().eq(Task.TASK_ID, taskId).prepare());\n mTitle.setText(taskForUpdate.getTitle());\n mDescription.setText(taskForUpdate.getDescription());\n mDate.setDate(taskForUpdate.getDate().getTime());\n mPriority.setSelection(taskForUpdate.getPriority());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void update(DatiBancariPk pk, DatiBancari dto) throws DatiBancariDaoException;",
"@PutMapping(value = \"/{id}\")\n\tpublic ResponseEntity<Response<TimeEntryDto>> update(@PathVariable(\"id\") final Long id,\n\t\t\t@Valid @RequestBody final TimeEntryDto timeEntryDto, final BindingResult result) throws ParseException {\n\t\tLOGGER.info(\"Updating time entry: {}\", timeEntryDto.toString());\n\t\tfinal Response<TimeEntryDto> response = new Response<TimeEntryDto>();\n\t\tvalidateEmployee(timeEntryDto, result);\n\t\ttimeEntryDto.setId(Optional.of(id));\n\t\tTimeEntry timeEntry = this.convertDtoToTimeEntry(timeEntryDto, result);\n\n\t\tif (result.hasErrors()) {\n\t\t\tLOGGER.error(\"Error validating time entry: {}\", result.getAllErrors());\n\t\t\tresult.getAllErrors().forEach(error -> response.getErrors().add(error.getDefaultMessage()));\n\t\t\treturn ResponseEntity.badRequest().body(response);\n\t\t}\n\n\t\ttimeEntry = this.timeEntryService.persist(timeEntry);\n\t\tresponse.setData(this.convertTimeEntryToDto(timeEntry));\n\t\treturn ResponseEntity.ok(response);\n\t}",
"@RequestMapping(value = \"{id}\", method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity<?> put(@PathVariable long id, @Valid @RequestBody SaveTodoDto dto) {\n Todo todo = getTodoOrThrow(id);\n\n todo.setDescription(dto.getDescription());\n todo.setTitle(dto.getTitle());\n\n todo = repository.save(todo);\n\n return ResponseEntity.ok(dtoConverter.convert(todo));\n }",
"int updateByPrimaryKey(UploadStateRegDTO record);",
"void updateTaskDueDate(int id, LocalDateTime dueDate);",
"public void update(SmsAgendaGrupoPk pk, SmsAgendaGrupo dto) throws SmsAgendaGrupoDaoException;",
"public void setTaskId(UUID taskId) {\n this.taskId = taskId;\n }",
"public void updateTaskModifiedTime(String taskId){\r\n dao = (TaskManagerDao) getDao();\r\n try {\r\n dao.updateTaskModifiedTime(taskId);\r\n } catch (DaoException e) {\r\n Log.getLog(getClass()).error(\"error updating modifiedTime of TaskId: \" + taskId);\r\n }\r\n }",
"@ApiOperation(value = \"Api Endpoint to update the Patient details\")\n @PutMapping(path = \"/{patientId}\")\n @LogExecutionTime\n public PatientDto updatePatientRecord(@Valid @RequestBody PatientDto patientDto, @PathVariable long patientId) {\n return patientService.updatePatientRecord(patientId, patientDto);\n }",
"public TrackDTO update(TrackDTO dto, Long albumId, Long trackId) {\n Album albumByIdFromDB = albumRepository\n .findById(albumId)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Album\", albumId));\n\n /**\n * Busco el Track en la base de datos, en caso que no exista, lanzara una ExceptionEntityNotFound\n */\n Track trackByIdFromDB = trackRepository\n .findById(trackId)\n .orElseThrow(() -> logicExceptionComponent.getExceptionEntityNotFound(\"Track\", trackId));\n\n /**\n * Se le setea el album de la base de datos al track de la base de datos\n */\n trackByIdFromDB.setAlbum(albumByIdFromDB);\n\n /**\n * se realiza el merge de los datos del dto a los que se trajo en la base de datos.\n */\n mergeData(trackByIdFromDB, dto);\n\n /**\n * se procede a guardar los cambios en la base de datos.\n */\n trackRepository.save(trackByIdFromDB);\n\n /**\n * se convierte el entity a dto\n */\n TrackDTO trackUpdated = trackMapper.toDTO(trackByIdFromDB, context);\n\n /**\n * se entrega al controlador el dto con los cambios efectuados\n */\n return trackUpdated;\n\n }",
"CustDataNotesResponseDTO updateCustDataNotes(String id,CustDataNotesRequestDTO custDataNotesRequestDTO) throws Exception;",
"@Override\n\tpublic void deleteByid(int taskid)\n\t{\n\t\tteataskMapper.deleteByid(taskid);\n\t}",
"public void updateTaskStatus(CaptureTask task, String status, String description) {\n\t\t\r\n\t}",
"public abstract <T> void update(String id, Map<String, Object> objectMap, Class<T> clazz);",
"@PutMapping(\"/{id}\")\n public ResponseEntity<?> updateProject(@RequestBody ProjectDTO projectDTO,@PathVariable int id)\n {\n Project project11=projectMapper.map(projectDTO);\n Project project1=projectservice.updateProject(id,project11);\n return new ResponseEntity<>(projectMapper.map(project1), HttpStatus.OK);\n\n }",
"@RequestMapping(value = \"/update/{id}\", method = RequestMethod.POST)\r\n public @ResponseBody\r\n List<Task> updateStatus(@PathVariable(\"id\") String id,\r\n @RequestParam(required = false) String content,\r\n @RequestParam(required = false) String status,\r\n @RequestParam(required = false) String assigneeId,\r\n @RequestParam(required = false) String timeInDays) {\n \r\n int taskId = ResourceUtil.stringToIntegerConversion(\"task_id\", id);\r\n List<Task> result = new ArrayList<Task>();\r\n \r\n try { \r\n Task task = new Task();\r\n task = taskManager.readTask(taskId);\r\n \r\n if (content != null)\r\n task.setContent(content);\r\n if (status != null)\r\n task.setStatus(TaskStatus.valueOf(status));\r\n if (assigneeId != null)\r\n task.setUser(userServiceManager.readUser(assigneeId));\r\n if (timeInDays != null) {\r\n \tint time_In_Days = ResourceUtil.stringToIntegerConversion(\"task_time_in_days\", timeInDays);\r\n task.setMilestonePeriod(timeInDays);\r\n task.setTimeInDays(time_In_Days);\r\n } \r\n // if none of these was changed, do not update\r\n if (content != null || status != null || assigneeId != null || timeInDays != null)\r\n taskManager.updateTask(task);\r\n result.add(task);\r\n } catch (Exception e) {\r\n logger.error(e.getMessage(), e);\r\n String exceptionMsg = \"Error occured while updating the task (pKey) \"+id;\r\n ScrumrException.create(exceptionMsg, MessageLevel.SEVERE, e);\r\n }\r\n return result;\r\n }",
"public CompletionStage<Result> updateItem(Long id) {\n MessageDispatcher jdbcDispatcher = AkkaDispatcher.jdbcDispatcher;\n\n JsonNode nItem = request().body().asJson();\n ItemEntity item = Json.fromJson( nItem , ItemEntity.class ) ;\n ItemEntity itemViejo = ItemEntity.FINDER.byId(id);\n return CompletableFuture.supplyAsync(\n ()->{\n if(itemViejo == null)\n {\n return itemViejo;\n }else\n { item.setId(id);\n item.update();\n return item;\n }\n }\n ).thenApply(\n itemEntity -> {\n if(itemEntity == null)\n {\n return notFound();\n }else\n {\n return ok(Json.toJson(itemEntity));\n }\n }\n\n );\n }",
"boolean updateActiveTask(Task task);",
"int updateByPrimaryKey(Schedule record);",
"@PutMapping(\"/activities/{id}\")\n\tpublic ResponseEntity<Activity> updateActivity(@PathVariable Long id,@RequestBody Activity activityDetails){\n\t\tActivity activity = activityRepository.findById(id)\n\t\t\t\t.orElseThrow(()-> new ResourceNotFoundException(\"Activity not exist with id :\" +id));\n\t\tactivity.setActivity_name(activityDetails.getActivityName());\n\t\tactivity.setActivity_Detail(activityDetails.getActivityDetail());\n\t\tactivity.setActivityDate(activityDetails.getActivityDate());\n\t\tactivity.setActivityLocation(activityDetails.getActivityLocation());\n\t\tactivity.setActivityUrl(activityDetails.getActivityUrl());\n\t\tActivity updatedActivity = activityRepository.save(activity);\n\t\treturn ResponseEntity.ok(updatedActivity);\n\t}",
"public void updateTaskDetailsInDB(UniverseDefinitionTaskParams taskParams) {\n getRunnableTask().setTaskDetails(RedactingService.filterSecretFields(Json.toJson(taskParams)));\n }",
"@Transactional\n\tpublic void update(SnmpEventsProcessPk pk, SnmpEventsProcess dto) throws SnmpEventsProcessDaoException\n\t{\n\t\tjdbcTemplate.update(\"UPDATE \" + getTableName() + \" SET MARK = ?, MANUFACTURE = ?, RESULTLIST = ?, WARNMESSAGE = ?, SUMMARY = ? WHERE MARK = ?\",dto.getMark(),dto.getManufacture(),dto.getResultlist(),dto.getWarnmessage(),dto.getSummary(),pk.getMark());\n\t}",
"public void update(NominaPuestoPk pk, NominaPuesto dto) throws NominaPuestoDaoException;",
"public User updateUser(long id, UserDto userDto);",
"public void update(SgfensBancoPk pk, SgfensBanco dto) throws SgfensBancoDaoException;",
"public void setTaskId(String taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(String taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"public void setTaskId(Integer taskId) {\n this.taskId = taskId;\n }",
"@PutMapping(\"/{id}\")\n @PreAuthorize(\"hasRole('ADMIN') or hasRole('USER')\")\n public ResponseEntity<RecipeDto> update(@Valid @RequestBody RecipeDto recipeDto, @PathVariable(\"id\") int id) {\n return new ResponseEntity<>(RecipeDto.from(recipeService.updateRecipe(id, Recipe.from(recipeDto))), HttpStatus.OK);\n }",
"int updateByPrimaryKey(Tourst record);",
"public void update(LearningResultHasActivityPk pk, LearningResultHasActivity dto) throws LearningResultHasActivityDaoException;",
"public PersonDto updatePerson(String id, PersonDto personDto) {\n Optional<Person> model = Optional.empty();\n return model\n .map(p -> {\n p.setFirstName(personDto.getFirstName());\n p.setLastName(personDto.getLastName());\n p.setAddress(personDto.getAddress());\n p.setAliases(personDto.getAliases());\n return p;\n })\n // TODO: Replace by a method in MongoPersonRepository to save a person and returns the saved person\n .map(Function.identity())\n .map(personMapper::toDto)\n .orElse(null);\n }",
"@Override\n\tpublic Teatask getById(int taskid)\n\t{\n\t\treturn teataskMapper.getById(taskid);\n\t}",
"public void updateTasks(List<Task> listOfTasks);",
"int updateByPrimaryKey(EtpBase record);",
"@Override\n public UpdateFuotaTaskResult updateFuotaTask(UpdateFuotaTaskRequest request) {\n request = beforeClientExecution(request);\n return executeUpdateFuotaTask(request);\n }",
"int updateByPrimaryKey(T record);",
"int updateByPrimaryKey(ResourcePojo record);",
"int updateByPrimaryKey(DebtsRecordEntity record);",
"int updateByPrimaryKey(MVoucherDTO record);",
"int updateByPrimaryKey(Depart record);",
"@Override\n public void saveTask(TaskEntity task) {\n this.save(task);\n }",
"int updateByPrimaryKey(Tour record);",
"D update(D dto);",
"int updWayBillById(WayBill record) throws WayBillNotFoundException;",
"public void update(ItemsPk pk, Items dto) throws ItemsDaoException;",
"Weather update(Long id, WeatherInformation weatherInformation);",
"@Override\n\tpublic boolean updateTaskStatus(int id, String status) throws SQLException, ClassNotFoundException{\n\t\t Connection c = null;\n\t\t Statement stmt = null;\n\t\t \n\t\t Class.forName(\"org.postgresql.Driver\");\n\t\t c = DriverManager.getConnection(dataBaseLocation, dataBaseUser, dataBasePassword);\n\t\t c.setAutoCommit(false);\n\t\t \n\t\t logger.info(\"Opened database successfully (updateTaskStatus)\");\n\t\t \n\t\t stmt = c.createStatement();\n\t ResultSet rs = stmt.executeQuery( \"SELECT * FROM task WHERE id=\"+id+\";\" );\n\t rs.next();\n\t \n\t if(rs.getString(\"status\").equals(status))\n\t {\n\t \t return false;\n\t }\n\t \n\t stmt = c.createStatement();\n\t \n\t String sql = \"UPDATE task SET status='\"+status+\"' WHERE id=\"+id+\";\";\n\t \n\t stmt.executeUpdate(sql);\n\t \n\t stmt.close();\n\t c.commit();\n\t c.close();\n\t \n\t logger.info(\"Task Status changed to planned\");\n\t\t \n\t return true;\n\t}",
"@PutMapping(\"/{id}\")\n public TelephoneEntry updateEntry(@PathVariable Long id, @Valid @RequestBody TelephoneEntry telephoneEntry) {\n telephoneEntryService.findById(id).orElseThrow(() -> new EntryNotFoundException(id));\n return telephoneEntryService.update(id, telephoneEntry);\n }",
"public void updateCalendarProject(String id, CalendarProject project) {\n String sql = \"UPDATE calendar_projects SET name = :name, duration = :duration WHERE id = :id \";\n Map params = new HashMap();\n params.put(\"id\", id);\n params.put(\"name\", project.getProject());\n params.put(\"duration\", project.getDuration());\n int rows = jdbcTemplate.update(sql, params);\n if (rows != 1) {\n throw new DataAccessException(\"Unexpected rows. Expected: 1 Rows: \" + rows) {\n };\n }\n }",
"@Test(dependsOnMethods = { \"testAssignTaskWithNegativeCase\" },\n description = \"podio {updateTask} integration test with optonal parameters.\")\n public void testUpdateTaskWithOptionalParameters() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:updateTask\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_updateTask_optional.json\");\n String taskId = esbRestResponse.getBody().getString(\"task_id\");\n \n String apiEndPoint = apiUrl + \"/task/\" + taskId;\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getJSONObject(\"created_by\").getString(\"name\"), apiRestResponse\n .getBody().getJSONObject(\"created_by\").getString(\"name\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"text\"), apiRestResponse.getBody().getString(\"text\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"external_id\"),\n apiRestResponse.getBody().getString(\"external_id\"));\n }",
"public Task update(Task item) {\n\t\t// set the user id (not sure this is where we should be doing this)\n\t\titem.setUserId(getUserId());\n\t\titem.setEmailAddress(getUserEmail());\n\t\tif (item.getDueDate() == null) {\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.set(2011, 5, 11);\n\t\t\titem.setDueDate(c.getTime());\n\t\t}\n\t\tPersistenceManager pm = PMF.get().getPersistenceManager();\n\t\ttry {\n\t\t\tpm.makePersistent(item);\n\t\t\treturn item;\n\t\t} finally {\n\t\t\tpm.close();\n\t\t}\n\t}"
] | [
"0.7458916",
"0.6744763",
"0.6680115",
"0.64767677",
"0.64695317",
"0.64297676",
"0.635232",
"0.63452154",
"0.6332466",
"0.6240078",
"0.6237575",
"0.6204066",
"0.61785144",
"0.6145372",
"0.6142452",
"0.6108643",
"0.6090374",
"0.60670775",
"0.6051184",
"0.6031232",
"0.59709436",
"0.596828",
"0.59610534",
"0.594142",
"0.5934589",
"0.59015673",
"0.5872675",
"0.5842532",
"0.5785978",
"0.5775004",
"0.5768949",
"0.5737161",
"0.57330316",
"0.5729297",
"0.5713314",
"0.5707425",
"0.5696411",
"0.56903106",
"0.5672705",
"0.5671356",
"0.56572646",
"0.5656729",
"0.5634468",
"0.5616499",
"0.56101876",
"0.55947167",
"0.5591649",
"0.5585435",
"0.5565923",
"0.55571043",
"0.55379784",
"0.55363756",
"0.5519684",
"0.5501239",
"0.5497412",
"0.54886115",
"0.54707366",
"0.5461924",
"0.5458525",
"0.5439265",
"0.54296494",
"0.5420334",
"0.5416369",
"0.5416126",
"0.5413918",
"0.5413452",
"0.5411322",
"0.5408109",
"0.5407545",
"0.5394701",
"0.5394347",
"0.53933924",
"0.5391792",
"0.5391792",
"0.5390802",
"0.5390802",
"0.53885776",
"0.53873193",
"0.5381305",
"0.53801465",
"0.5376271",
"0.5375017",
"0.53652114",
"0.5361435",
"0.53516483",
"0.5350992",
"0.5350738",
"0.53485346",
"0.53429854",
"0.53393024",
"0.5335118",
"0.5328913",
"0.5319287",
"0.5302427",
"0.52993345",
"0.52914804",
"0.5287472",
"0.5287314",
"0.5277205",
"0.5276885"
] | 0.66896737 | 2 |
array[low, high) [3, 4) | static void mergeSortInner(int[] array, int low, int high, int[] extra) {
if (low == high - 1) {
return;
}
if (low >= high) {
return;
}
// 1. 平均切分
int mid = low + (high - low) / 2;
// [low, mid) + [mid, high)
// 2. 分治算法处理所有两个小区间
mergeSortInner(array, low, mid, extra);
mergeSortInner(array, mid, high, extra);
// 左右两个小区间已经有序了
merge(array, low, mid, high, extra);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int toIndex(int x, int y);",
"public static int[] getindex(int[] values) {\n\t \n\t \n\t \n\t int[] b = {64,128,192,256};\n\t \n\t int redindex = 0;\n\t int greenindex=0;\n\t int blueindex=0;\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t if(values[0] <= indexlevel8[i]) { redindex = i; break;}\n\t }\n\t \n\t for(int i=0; i<indexlevel8.length;i++) {\n\t\t if(values[1] <= indexlevel8[i]) { greenindex = i; break;}\n\t\t }\n\t \n\t for(int i=0; i<b.length;i++) {\n\t\t if(values[2] <= b[i]) { blueindex = i; break;}\n\t }\n\t \n\t values[0] = redindex*32+16;\n\t values[1] = greenindex*32+16;\n\t values[2] = blueindex*64+32;\n\t \n\t \n\t return values; // the values of the lookup table for 8bit scale\n }",
"private static int partition2 (List<Point> array, int low, int high)\n {\n int pivot = (int) array.get(high).getX(); \n \n int i = (low - 1); // Index of smaller element\n\n for (int j = low; j <= high- 1; j++)\n {\n // If current element is smaller than or\n // equal to pivot\n if (array.get(j).getX() <= pivot)\n {\n i++; // increment index of smaller element\n swap(array, i, j);\n }\n }\n swap(array, i + 1, high);\n return (i + 1);\n }",
"protected ArrayNode<T> getNode( int idx, int lower, int upper){\r\n\t\tif ((idx < lower)||(idx>upper))\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\treturn getNode(idx);\r\n\t}",
"public static int[] range(int[] a, int low, int high) throws IllegalArgumentException {\n if (a == null || a.length == 0) {\n throw new IllegalArgumentException();\n }\n \n int increment = 0;\n \n for (int i : a) {\n if (i >= low && i <= high) {\n increment++;\n }\n }\n \n int[] array = new int[increment];\n increment = 0;\n \n //for(int i = 0; i < a.length; i++)\n for (int i : a) {\n if (i >= low && i <= high) {\n array[increment] = i;\n increment++;\n }\n }\n \n return array;\n }",
"private int quickSelect(int[] arr, int n, int low, int high){\n\n int index = partition(arr, low, high);\n\n if (index - low == n - 1)\n return arr[index];\n\n if (index - low > n - 1)\n return quickSelect(arr, n, low, index - 1);\n\n return quickSelect(arr, n - index + low- 1,index + 1, high);\n }",
"Long pickupSpan(INDArray array);",
"private int partition(int[] array, int low, int high) {\n int pivot = array[high];\n int pIndex = low;\n for(int i = low; i <= high - 1; i++) {\n if (array[i] <= pivot) {\n swap(array, i, pIndex);\n pIndex++;\n }\n }\n swap(array, pIndex, high);\n return pIndex;\n }",
"@Override\n\tprotected T pickPivot(T[] array, int start, int end) {\n\t\treturn array[start];\n\t}",
"private int split(int[] array, int low, int high) {\n\t\tint pivot = low;\n\t\tint i = low + 1;\n\t\tint j = high;\n\t\t\n\t\t//we are choosing pivot always the first element in the array\n\t\twhile (i <= j) {\n\t\t\tif (array[i] <= array[pivot]) {\n\t\t\t\ti++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tif (array[j] > array[pivot]) {\n\t\t\t\tj--;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tswap(array, i++, j--);\n\t\t}\n\t\t\n\t\tif (array[pivot] > array[j] ) {\n\t\t\tswap(array, pivot, j);\n\t\t\treturn j;\n\t\t}\n\t\t\n\t\treturn pivot;\n\t}",
"protected abstract int quickSelect(Integer[] map, int right, int idx);",
"public int getArrayIndex(){\n return squareIndex * 9 + position;\n }",
"public int[] getSlicePosition();",
"public static int ternarySearch(int[] arr, int low, int high, int data) {\n\t\t\n\t\tif (low <= high) {\n\t\t\t\n\t\t\tint mid1 = low + (high - low) / 3;\n\t\t\tint mid2 = high - (high - low) / 3;\n\t\t\t\n\t\t\tif (data == arr[mid1])\n\t\t\t\treturn mid1;\n\t\t\t\n\t\t\telse if (data == arr[mid2])\n\t\t\t\treturn mid2;\n\t\t\t\n\t\t\telse if (data < arr[mid1])\n\t\t\t\treturn ternarySearch(arr, low, mid1 - 1, data);\n\t\t\t\n\t\t\telse if (data > arr[mid1] && data < arr[mid2])\n\t\t\t\treturn ternarySearch(arr, mid1 + 1, mid2 - 1, data);\n\t\t\t\n\t\t\telse \n\t\t\t\treturn ternarySearch(arr, mid2 + 1, high, data);\n\t\t}\n\t\t\n\t\t// if the element is not present then, return -1\n\t\treturn -1;\n\t}",
"public static int getMid(int low, int high) \r\n\t{\r\n\t\treturn ((low + high + 1) / 2);\r\n\t}",
"private static int binary_search(int[] array, int num, int low, int high) {\n\t\t\n\t\treturn -1;\n\t}",
"private static int partition(int[] arr, int low, int high) {\n int pivot = arr[high];\n int temp;\n int partitionIndex = low - 1;\n for (int k = low; k < high; k++) {\n if (arr[k] < pivot) {\n partitionIndex++;\n //swap if index are not same, so as avoid redundant swaps\n swap(arr, partitionIndex, k);\n }\n }\n //swap pivot to correct position\n swap(arr, partitionIndex + 1, high);\n // return correct pivot index\n LOGGER.info(\"Placeed pivot {} : position {}\", arr[partitionIndex + 1], partitionIndex + 1);\n return partitionIndex + 1;\n }",
"public abstract int [] getReleasePosition();",
"private static int partition(int[] arr, int low, int high) {\n int pivot = arr[high]; \n int i = (low-1); // index of smaller element\n for (int j=low; j<high; j++)\n {\n // If current element is smaller than or\n // equal to pivot\n if (arr[j] <= pivot)\n {\n i++;\n \n // swap arr[i] and arr[j]\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n }\n }\n \n // swap arr[i+1] and arr[high] (or pivot)\n int temp = arr[i+1];\n arr[i+1] = arr[high];\n arr[high] = temp;\n \n return i+1;\n }",
"public int[] searchRange_v2(int[] A, int target) {\n // Start typing your Java solution below\n // DO NOT write main() function\n int[] res = new int[2];\n res[0] = findLow(A, 0, A.length - 1, target);\n res[1] = findHigh(A, 0, A.length - 1, target);\n return res;\n }",
"public abstract void selectIndexRange(int min, int max);",
"private static boolean binarySearch(int[] data, int target, int low, int high) {\n if (low > high) {\n return false;\n } else {\n int mid = (low + high) / 2;\n if (target == data[mid]) {\n return true;\n } else if (target < data[mid]) {\n return binarySearch(data, target, low, mid - 1);\n } else {\n return binarySearch(data, target, mid + 1, high);\n }\n }\n }",
"private static int partion(int[] arr, int lo, int hi) {\n int pivot = arr[hi];\n int i = lo;\n for (int j = lo; j <= hi; j++) {\n if (arr[j] < pivot) {\n int tmp = arr[i];\n arr[i] = arr[j];\n arr[j] = tmp;\n i++;\n }\n }\n int tmp = arr[i];\n arr[i] = arr[hi];\n arr[hi] = tmp;\n return i;\n }",
"public static int[] quickselect(int[] arr, int start, int end) {\n if(start < end) return new int[] {};\n int pivot = partition(arr, start ,end );\n //int mid = (0 + arr.length)/2;\n quickselect(arr, start, pivot);\n quickselect(arr, pivot + 1, end);\n return arr;\n }",
"public int getElementArray2(int index)\n {\n return array2[index];\n }",
"private static void Merge(int[] a, int low, int m, int high) {\n\t\tint j=m+1,k=low;\n\t\tint temp=low;\n\t\tint [] tmp=new int [a.length];\n\t\twhile(low<=m&&j<=high){\n\t\t\tif(a[low]<=a[j]){\n\t\t\t\ttmp[k++]=a[low++];\n\t\t\t}else {\n\t\t\t\ttmp[k++]=a[j++];\n\t\t\t}\n\t\t}\n\t\twhile (low<=m) {\n\t\t\ttmp[k++]=a[low++];\n\t\t}\n\t\twhile (j<=high) {\n\t\t\ttmp[k++]=a[j++];\n\t\t}\n\t\twhile (temp<=high) {\n\t\t\ta[temp]=tmp[temp++];\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public static int[] quickSort(int[] arr, int low, int high) {\n if (arr == null || arr.length == 0)\n return arr;\n if (low >= high)\n return arr;\n int middle = low + (high - low) / 2;\n int pivot = arr[middle];\n int i = low, j = high;\n while (i <= j) {\n while (arr[i] < pivot) {\n i++;\n }\n while (arr[j] > pivot) {\n j--;\n }\n if (i <= j) {\n int temp = arr[i];\n arr[i] = arr[j];\n arr[j] = temp;\n i++;\n j--;\n }\n }\n if (low < j)\n quickSort(arr, low, j);\n\n if (high > i)\n quickSort(arr, i, high);\n\n return arr;\n }",
"int binarySearch(int[] arr, int low, int high, int key){\n while(low <= high){\n int mid = (low + high) / 2;\n if (key < arr[mid])\n high = mid - 1;\n else if (key > arr[mid])\n low = mid + 1;\n else\n return mid;\n }\n return -1;\n }",
"@Override\n\tpublic int[] locate(int target) {\n\t\tint n = this.length(); //number of rows\n\t\tint min = 0;\n\t\tint max = n-1;\n\t\tint mid = 0;\n\t\tint mid_element = 0;\n\t\twhile(min <= max){\n\t\t\tmid = (min + max)/2;\n\t\t\tmid_element = inspect(mid,mid);\n\t\t\tif(mid_element == target){\n\t\t\t\treturn new int[]{mid, mid};\n\t\t\t}\n\t\t\telse if(mid_element < target){\n\t\t\t\tmin = mid + 1;\n\t\t\t}\n\t\t\telse if(mid_element > target){\n\t\t\t\tmax = mid - 1;\n\t\t\t}\n\t\t}\n\t\tif(target < mid_element){\n\t\t\tif(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r,max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c <= mid; c++){\n\t\t\t\t\tif(inspect(mid, c) == target){\n\t\t\t\t\t\treturn new int[]{mid,c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif(target > inspect(0, n-1)){\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\telse if(target <= inspect(0, max)){\n\t\t\t\tfor(int r = 0; r < max; r++){\n\t\t\t\t\tif(inspect(r, max) == target){\n\t\t\t\t\t\treturn new int[]{r, max};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int c = 0; c < min; c++){\n\t\t\t\t\tif(inspect(min, c) == target){\n\t\t\t\t\t\treturn new int[]{min, c};\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public int[] searchRange(int[] A, int target) {\n // write your code here\n if (A == null || A.length == 0) return new int[] {-1, -1};\n int left = 0, right = A.length - 1;\n while (left + 1 < right) {\n int mid = left + (right - left) / 2;\n if (A[mid] >= target) {\n right = mid;\n }\n else{\n left = mid;\n }\n }\n int leftBound = -1, rightBound = -1;\n if (A[left] == target)\n leftBound = left;\n else if (A[right] == target)\n leftBound = right;\n\n left = 0;\n right = A.length - 1;\n while (left + 1 < right) {\n int mid = left + (right - left) / 2;\n if (A[mid] <= target) {\n left = mid;\n }\n else {\n right = mid;\n }\n }\n if (A[right] == target) rightBound = right;\n else if (A[left] == target) rightBound = left;\n return new int[] {leftBound, rightBound};\n }",
"abstract int[] crossOver();",
"public static void merge(Value[] arr, int low, int high) {\r\n int mid = low + (high - low) / 2; // the mid-point\r\n // Merge the two \"halves\" into a new array merged\r\n Value[] merged = new Value[high - low];\r\n int low_i = low;\r\n int upp_i = mid;\r\n for (int mer_i = 0; mer_i < merged.length; mer_i++) {\r\n if (low_i == mid) {\r\n // We already put all elements from the lower half in their\r\n // right place, so just put all the elements from the upper half\r\n // in their place, and be done.\r\n while (upp_i < high) {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n mer_i++;\r\n }\r\n break;\r\n } else if (upp_i == high) {\r\n // We already put all elements from the upper half in their\r\n // right place, so just put all the elements from the lower half\r\n // in their place, and be done.\r\n while (low_i < mid) {\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n mer_i++;\r\n }\r\n double x = 0.5;\r\n for (int i = 0; i < merged.length; i++) {\r\n merged[i].draw(x, 0);\r\n }\r\n break;\r\n } else if (arr[low_i].getValue() < arr[upp_i].getValue()) { // when comparing objects, use arr[low_i].compareTo(arr[upp_i) < 0\r\n merged[mer_i] = arr[low_i];\r\n low_i++;\r\n } else {\r\n merged[mer_i] = arr[upp_i];\r\n upp_i++;\r\n }\r\n }\r\n // Copy the elements of merged back into arr in the right place.\r\n for (int i = 0; i < merged.length; i++)\r\n arr[low + i] = merged[i];\r\n }",
"static void binarySearch(int mat[][], int i, int j_low, int j_high, int x){\n\t\t\n\t\twhile(j_low < j_high){\n\t\t\t\n\t\t}\n\t}",
"private static int partition(int[] a, int low, int high) {\n int middle = (low + high)/2;\n medianOfThree(a, low, middle, high);\n swap(a, middle, high);\n\n int pivot = a[high];\n int i = low - 1;\n for (int j = low; j < high; j++) {\n if(a[j] <= pivot) {\n i++;\n swap(a, i, j);\n }\n }\n i++;\n swap(a, i, high);\n return i;\n }",
"public int arrayOffset()\r\n/* 133: */ {\r\n/* 134:162 */ return 0;\r\n/* 135: */ }",
"private int getIndex2(int val){\n return val/bucket;\n }",
"int indexOfPivotElement(T[] arr, int first, int last, Comparator<? super T> comp);",
"public double get(int row, int col){\n \treturn array[row-1][col-1];\n }",
"Color3b colorAt(int xIndex, int yIndex);",
"double getValueAt(int x, int y);",
"public int get(int index) {\n return array[index];\n }",
"private static int binarySearch(int[] arr, int low, int high, int target) {\n\n\t\tif (low <= high) {\n\n\t\t\tint mid = low + (high - low) / 2;\n\n\t\t\tif (arr[mid] == target) {\n\t\t\t\treturn mid;\n\t\t\t}\n\n\t\t\tif (arr[mid] < target) {\n\t\t\t\treturn binarySearch(arr, mid + 1, high, target);\n\t\t\t} else {\n\t\t\t\treturn binarySearch(arr, low, mid - 1, target);\n\t\t\t}\n\n\t\t}\n\n\t\treturn -1;\n\t}",
"private int quickSelect(int[] a, int low, int high,int k) {\n //using quick sort\n //put nums that are <= pivot to the left\n //put nums that are > pivot to the right\n int i = low, j = high, pivot = a[high];\n while(i < j) {\n if(a[i++] > pivot)\n swap(a, --i, --j);\n }\n swap(a, i, high);\n\n //count the nums that are <= pivot from low\n int m = i - low + 1;\n if(m == k)\n return i;\n //pivot is too big\n else if(m > k)\n return quickSelect(a, low, i-1, k);\n else\n return quickSelect(a, i+1, high, k - m);\n }",
"private static void merge(int[] array, int lowIndex, int middleIndex, int highIndex) {\n int n1 = middleIndex - lowIndex + 1;\n int n2 = highIndex - middleIndex;\n\n /*Create temp arrays*/\n int L[] = new int[n1];\n int R[] = new int[n2];\n\n /*Copy data to temp arrays*/\n for (int i = 0; i < L.length; i++) {\n L[i] = array[lowIndex + i];\n }\n for (int i = 0; i < R.length; i++) {\n R[i] = array[middleIndex + 1 + i];\n }\n\n /* Merge the temp arrays */\n\n // Initial indexes of first and second subarrays\n int i = 0, j = 0;\n\n // Initial index of merged subarray\n int k = lowIndex;\n\n while (i < n1 && j < n2) {\n if (L[i] <= R[j]) {\n array[k] = L[i];\n i++;\n } else {\n array[k] = R[j];\n j++;\n }\n k++;\n }\n\n /*Copy remaining elements of L[] if any */\n while (i < n1) {\n array[k] = L[i];\n i++;\n k++;\n }\n\n /*Copy remaining elements of R[] if any */\n while (j < n2) {\n array[k] = R[j];\n j++;\n k++;\n }\n }",
"protected int index(int slice, int row, int column) {\n\treturn _sliceOffset(_sliceRank(slice)) + _rowOffset(_rowRank(row)) + _columnOffset(_columnRank(column));\n}",
"public static int binarySearch(int[] array, int low, int high, int item){\n\t\n\t\tif(high < low)\n\t\t\treturn -1;\n\t\tint middle = (low + high) /2;\n\t\tif(item == array[middle])\n\t\t\treturn middle;\n\t\tif(item < array[middle])\n\t\t\treturn binarySearch(array,low,(middle-1),item);\n\t\telse\n\t\t\treturn binarySearch(array,(middle+1),high,item);\n\t}",
"int partition(int arr[], int low, int high) {\n\t\tint pivot = arr[high];\n\t\tint i = (low - 1); // index of smaller element\n\t\tfor (int j = low; j < high; j++) {\n\t\t\t// If current element is smaller than the pivot\n\t\t\tif (arr[j] < pivot) {\n\t\t\t\ti++;\n\n\t\t\t\t// swap arr[i] and arr[j]\n\t\t\t\tint temp = arr[i];\n\t\t\t\tarr[i] = arr[j];\n\t\t\t\tarr[j] = temp;\n\t\t\t}\n\t\t}\n\n\t\t// swap arr[i+1] and arr[high] (or pivot)\n\t\tint temp = arr[i + 1];\n\t\tarr[i + 1] = arr[high];\n\t\tarr[high] = temp;\n\n\t\treturn i + 1;\n\t}",
"public abstract Color getRegionColor(double[] offset, double[] size);",
"private static int QuickSelect(int[] arr, int lo, int hi, int k){\n if(hi <= lo) return arr[lo];\n\t\t\n\t\tint p = pickPivot(arr, lo, hi);\n\t\tint j = partition(arr, lo, hi, p);\n\t\t\n\t\tif(k <= j){\n\t\t\treturn QuickSelect(arr, lo, j-1, k);\n\t\t} else if (k == j+1){\n\t\t\treturn arr[j];\n\t\t} else {\n\t\t\treturn QuickSelect(arr, j+1, hi, k);\n\t\t}\n }",
"public abstract int[] getCoords();",
"public static int getIndex(int i,int j){\r\n\t\t return i+(Variables.N+2)*j;\r\n\t }",
"public static int[] searchForRange(int[] array, int target) {\n // Write your code here.\n\t\tint[] finalRange = {-1, -1};\n\t\talteredBinarySearch(array, target, 0, array.length-1, \nfinalRange, true);\n\t\talteredBinarySearch(array, target, 0,array.length-1, \nfinalRange, false);\n return finalRange;\n }",
"public static int findPivot(int[] arr) {\n\t int low=0;\n\t int high=arr.length-1;\n\t while(low<high)\n\t {\n\t int mid= (low+high)/2;\n\t if(arr[mid]<arr[high])\n\t {\n\t high=mid;\n\t }\n\t else\n\t {\n\t low=mid+1;\n\t }\n\t }\n\t return arr[low];\n\t }",
"public abstract double[] getUpperBound();",
"public int[] helper(int[] data) {\n if (data.length < 2) {\n return data;\n }\n int mid = data.length / 2;\n\n return merge(\n helper(Arrays.copyOfRange(data, 0, mid)),\n helper(Arrays.copyOfRange(data, mid , data.length)));\n }",
"@Override\n protected int quickSelect(Integer[] map, int right, int idx) {\n int left = 0;\n do {\n int i = left;\n int j = right;\n int x = map[i + ((j - i) >> 1)];\n do {\n while (i < map.length && this.compareKeys(x, map[i]) > 0)\n i++;\n\n while (j >= 0 && this.compareKeys(x, map[j]) < 0)\n j--;\n\n if (i > j)\n break;\n\n if (i < j) {\n int temp = map[i];\n map[i] = map[j];\n map[j] = temp;\n }\n\n i++;\n j--;\n } while (i <= j);\n\n if (i <= idx)\n left = i + 1;\n else\n right = j - 1;\n\n if (j - left <= right - i) {\n if (left < j)\n right = j;\n\n left = i;\n } else {\n if (i < right)\n left = i;\n\n right = j;\n }\n } while (left < right);\n\n return map[idx];\n }",
"Object getArrayElement(int index);",
"Object getArrayElement(int index);",
"@Override\r\n\t\r\n\t\r\n\t\r\n\tpublic int[] locate(int target) {\r\n\t\tint low = 0; \r\n\t\tint high = length()- 1;\r\n\t\t\r\n\t\twhile ( low <= high) {\r\n\t\t\tint mid = ((low + high)/2);\r\n\t\t\tint value = inspect(mid,0);\r\n\t\t\t\t\t\r\n\t\t\tif ( value == target) {\r\n\t\t\t\treturn new int[] {mid,0};\r\n\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}\r\n\t\t\telse if (value < target) {\r\n\t\t\t\tlow = mid +1;\r\n\t\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\thigh = mid -1;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\t\treturn binarySearch(high, target);\r\n\t}",
"public int[] searchRange(int[] nums, int target) {\r\n\r\n int[] res = {-1, -1};\r\n int left = lowerBound(nums, target);\r\n if (left != -1) {\r\n res[0] = left;\r\n res[1] = upperBound(nums, target);\r\n }\r\n return res;\r\n\r\n\r\n }",
"public double[] getRange();",
"public static int search(int[] nums, int target) {\n int low=0;\n int high=nums.length-1;\n int middle=(high+low)>>1;\n\n for(int i=0;i<nums.length;i++){\n int num = nums[middle];\n if(target>num){\n low=middle+1;\n middle=(high+low)>>1;\n }else if(target<num){\n high=middle-1;\n middle=(high+low)>>1;\n } else{\n return middle;\n }\n\n }\n\n return -1;\n }",
"private static void medianOfThree(int[] a, int low, int middle, int high) {\n\n if (a[middle] < a[low]) {\n swap(a, low, middle);\n }\n if (a[high] < a[low]) {\n swap(a, low, high);\n }\n\n if (a[high] < a[middle]) {\n swap(a, middle, high);\n }\n }",
"@Test\r\n\tpublic void testArrayPos(){\n\t\tfor(int y=0;y<5;y++){\r\n\t\t\tfor(int x=0;x<5;x++){\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private static int partition(Comparable[] elements, int low, int high) {\n Comparable pivot = elements[low];\n // left pointer\n int i = low + 1;\n // right pointer\n int j = high;\n while (true) {\n //Increment i till we find element greater than pivot\n while (Utils.isLess(elements[i++], pivot)) {\n if (i == high) break;\n }\n\n // decrement j till we find element smaller that pivot\n while (Utils.isLess(pivot, elements[j--])) {\n if (j == low) break;\n }\n\n if (i >= j) break;\n // Exchange the above 2 elements to maintain invariant of having smaller element to the left of the pivot\n // and greater elements to the right of the pivot\n Utils.swap(elements, i, j);\n }\n // finally put the pivot element in the right place\n Utils.swap(elements, low, j);\n // return the index of the pivot in the array\n return j;\n }",
"public abstract double[] getLowerBound();",
"public int x (int index) { return coords[index][0]; }",
"boolean selectAt(double x, double y);",
"public static void main(String[] args) {\n\t\t\r\n\t\tint value = 8;\r\n\t\tint lowIndex = 0;\r\n\t\tint highIndex = arr.length - 1;\r\n\t\t\r\n\t\twhile(lowIndex <= highIndex) {\r\n\t\t\tint middleIndex = lowIndex + (highIndex-lowIndex)/2;\r\n\t\t\t\r\n\t\t\tif(arr[middleIndex] > value) {\r\n\t\t\t\thighIndex = middleIndex - 1;\r\n\t\t\t} else if(arr[middleIndex] < value) {\r\n\t\t\t\tlowIndex = middleIndex + 1;\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(middleIndex);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"private static int partition(int[] arr, int lo, int hi, int p) {\n\t\tswap(arr, p, lo);\n\t\tint i = lo, j = hi + 1;\n\t\tint curr = arr[lo];\n\t\t\n\t\twhile(true) {\n\t\t\ti++;\n\t\t\t\n\t\t\twhile(arr[i] <= curr) {\n\t\t\t\tif(i == hi) break;\n\t\t\t\ti++;\n\t\t\t}\n\t \n\t\t\tj--;\n\t\t\t\n\t\t\twhile(arr[j] >= curr) {\n\t\t\t\tif(j == lo) break;\n\t\t\t\tj--;\n\t\t\t}\n\t \n\t\t\tif(i >= j) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tswap(arr, i, j);\n\t\t}\n\t\t\n\t\tswap(arr, lo, j); \n\t\treturn j; \n }",
"public static int[] searchForRange(int[] array, int target) {\n int first = firstOccuranceOfNo(array,target);\n int last = lastOccuranceOfNo(array,target);\n return new int[]{first,last};\n }",
"public int[] searchRange(int[] A, int target) {\n int left = 0 ;\n int right = A.length - 1;\n int mid;\n int[] lr = new int[2];\n while(left <= right){\n \tmid = (left + right) /2 ;\n \tif(A[mid] == target){\n \t\tlr[0] = searchLeft(A,left,mid,target);\n \t\tlr[1] = searchRight(A,mid,right,target);\n \t\treturn lr;\n \t}\n \telse if (A[mid] < target){\n \t\tleft = mid + 1;\n \t}\n \telse{\n \t\tright = mid - 1;\n \t}\n }\n lr[0] = -1;\n lr[1] = -1;\n return lr;\n }",
"private static final int[] getPoint(int point) {\n int[] ret = new int[2];\n if (point >= firstPoint && point <= endPoint) {\n ret = getPoint(ruteData[point + 2]);//ruteData[point + 2]);\n }\n return ret;\n }",
"int toIndex(Position pos);",
"static int findPivot(int[] arr){\n int start = 0;\n int end = arr.length-1;\n\n while(start<=end){\n int mid = start + (end - start) / 2;\n\n if(mid < end && arr[mid] > arr[mid+1]){\n return mid;\n }\n else if(mid > start && arr[mid] < arr[mid-1]){\n return mid - 1;\n }\n// Pivot lies on the left-hand side and mid is currently in section 2\n else if(arr[start] >= arr[mid]){\n end = mid - 1;\n }\n// Pivot lies on the right-hand side and mid is currently in section1\n// arr[start] < arr[mid]\n else {\n start = mid + 1;\n }\n }\n return -1;\n }",
"HRESULT SafeArrayGetElement(SAFEARRAY psa, LONG[] rgIndices, Pointer pv);",
"private static int binary_Search(int[] arr, int target) {\n\n\t\tint low = 0;\n\t\tint high = arr.length - 1;\n\n\t\twhile (low <= high) {\n\n\t\t\tint mid = low + (high - low) / 2;\n\t\t\tSystem.out.println(\"low = \" + low + \" mid = \" + mid + \" high =\" + high);\n\t\t\tif (arr[mid] == target) {\n\t\t\t\treturn mid;\n\t\t\t}\n\t\t\tif (arr[mid] < target) {\n\t\t\t\tlow = mid + 1;\n\n\t\t\t} else {\n\t\t\t\thigh = mid - 1;\n\t\t\t}\n\n\t\t\t// System.out.println(\"low = \" + low + \" high =\" + high);\n\t\t}\n\t\treturn -1;\n\t}",
"HRESULT SafeArrayGetLBound(SAFEARRAY psa, UINT nDim, WinDef.LONGByReference bound);",
"public abstract double[] roughOffsets();",
"static Integer BinarySearchRec(Integer[] tablica, int value, int low, int high) {\n if (high < low) {\n return -1;\n }\n\n int mid = (low + high) / 2;\n\n if (tablica[mid] > value) {\n return BinarySearchRec(tablica, value, low, mid - 1);\n } else if (tablica[mid] < value) {\n return BinarySearchRec(tablica, value, mid + 1, high);\n } else {\n return mid;\n }\n }",
"public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }",
"public double[] getRange() \n{\n\treturn range;\n}",
"int[] getGivenByOrder();",
"private static void mergeSortInternally(int[] a, int low, int high) {\n\n if (low >= high) {\n return;\n }\n int mid = low + (high - low) / 2;\n mergeSortInternally(a, low, mid);\n mergeSortInternally(a, mid + 1, high);\n System.out.println(\"low:\" + low + \", mid:\" + mid + \", high:\" + high);\n merge(a, low, mid, high);\n }",
"public void merge(int[] E, int low, int high){\r\n\r\n\t\tif(low >= high) return;\r\n\r\n\t\tint mid \t\t= (high + low)/2;\r\n\t\tint leftSize \t= mid - low + 1;\r\n\t\tint rightSize \t= high - mid;\r\n\r\n\t\tint lPtr\t\t= 0;\r\n\t\tint rPtr\t\t= 0;\r\n\t\tint ePtr\t\t= low;\r\n\r\n\t\tint[] left = new int [leftSize];\r\n\t\tint[] right = new int [rightSize];\r\n\r\n\t\t// copy main array to left and right sub array\r\n\t\tfor(int i=0; i<leftSize; i++)\r\n\t\t\tleft[i] = E[low+i];\r\n\t\tfor(int j=0; j<rightSize; j++)\r\n\t\t\tright[j] = E[mid+j+1];\r\n\r\n\t\t// move smaller of the left array and right array item to result array\r\n\t\twhile((lPtr < leftSize) && (rPtr < rightSize)){\r\n\t\t\tcomparisonCount++;\r\n\t\t\tif(left[lPtr]<=right[rPtr])\r\n\t\t\t\tE[ePtr++] = left[lPtr++];\r\n\t\t\telse\r\n\t\t\t\tE[ePtr++] = right[rPtr++];\r\n\t\t}\r\n\t\t\r\n\t\t// merge remaining right array if left array completely merged\r\n\t\tif(lPtr == leftSize)\r\n\t\t\twhile(rPtr < rightSize)\r\n\t\t\t\tE[ePtr++] = right[rPtr++];\r\n\t\t\r\n\t\t// merge remaining left array if right array completely merged\r\n\t\tif(rPtr == rightSize)\r\n\t\t\twhile(lPtr < leftSize)\r\n\t\t\t\tE[ePtr++] = left[lPtr++];\r\n\r\n\r\n\t}",
"private static int pickPivot(int[] A, int lo, int hi){\n\t\tint[] arr = new int[A.length-1];\n\t\tfor(int i = 0; i < arr.length; i++){\n\t\t\tarr[i] = A[i];\n\t\t}\n\t\t\n\t\tif((hi - lo) < 5){\n\t\t\treturn findMedian(arr, lo, hi);\n\t\t}\n\t\t\n\t\tint index = lo;\n\t\tfor(int i = lo; i < hi; i += 5){\n\t\t\tint rightEnd = i + 4;\n\t\t\t\n\t\t\tif(rightEnd > hi){\n\t\t\t\trightEnd = hi;\n\t\t\t}\n\t\t\t\n\t\t\tint median = findMedian(arr, i, rightEnd);\n\t\t\tswap(arr, median, index);\n\t\t\tindex++;\n\t\t}\n\t\t\n\t\treturn pickPivot(arr, lo, (lo + (int)Math.ceil((hi-lo)/5)));\n\t}",
"BlueSphere(int[] val) {\n value[0] = val[0];\n }",
"public int[] searchRange(int[] nums, int target) \n{\n return helper(nums, target, 0, nums.length - 1);\n}",
"abstract int binSearch(int[] array, int num, int left, int right);",
"public static void searchRange(int[] nums, int target){\n int index = binarySearch(nums, target);\n System.out.println(index);\n\n }",
"private void merge(Comparable[] array, Comparable[] aux, int low, int high) {\n if (low >= high) return;\n\n int mid = (low + high) / 2;\n // Copy to aux\n for (int i = low; i <= high; i++) {\n aux[i] = array[i];\n }\n\n int i = low;\n int j = mid + 1;\n\n for (int k = low; k <= high; k++) {\n if (i > mid) array[k] = aux[j++];\n else if (j > high) array[k] = aux[i++];\n else if (aux[i].compareTo(aux[j]) <= 0) array[k] = aux[i++]; // <= makes it stable!!\n else array[k] = aux[j++];\n }\n }",
"static int indexFor(int h, int length) {\n return h & (length-1);\r\n }",
"public static void reverseArray(int[] data, int low, int high) {\n if (low < high) { // if at least two elements in subarray\n int temp = data[low]; // swap data[low] and data[high]\n data[low] = data[high];\n data[high] = temp;\n reverseArray(data, low + 1, high - 1); // recur on the rest\n }\n }",
"public abstract int [] getPressPosition();",
"public static native void OpenMM_3D_DoubleArray_set(PointerByReference array, int index1, int index2, PointerByReference values);",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();",
"int getIndex();"
] | [
"0.6054442",
"0.596132",
"0.5943214",
"0.5894508",
"0.58818674",
"0.58099",
"0.58080333",
"0.57578844",
"0.5733277",
"0.5706539",
"0.5691846",
"0.558316",
"0.55678254",
"0.5531905",
"0.55246866",
"0.55077577",
"0.5456926",
"0.54338",
"0.5423674",
"0.5422031",
"0.5406708",
"0.5401503",
"0.5392206",
"0.5373739",
"0.5369093",
"0.5327042",
"0.5319593",
"0.53072906",
"0.53008276",
"0.5298835",
"0.52856153",
"0.52775997",
"0.52533597",
"0.5250205",
"0.5240094",
"0.52331173",
"0.5230925",
"0.5229269",
"0.5226636",
"0.52224195",
"0.52210724",
"0.52183497",
"0.5217224",
"0.521412",
"0.52139187",
"0.5209614",
"0.5209402",
"0.5204946",
"0.5204154",
"0.51890624",
"0.51878715",
"0.51859707",
"0.517971",
"0.51677984",
"0.5166038",
"0.51648176",
"0.51546335",
"0.51546335",
"0.51532906",
"0.5151456",
"0.51495713",
"0.5149473",
"0.5138268",
"0.5134908",
"0.51312315",
"0.5125278",
"0.512416",
"0.5105402",
"0.5103609",
"0.51030916",
"0.50976485",
"0.50911266",
"0.5084798",
"0.50847",
"0.50781643",
"0.50752926",
"0.5071228",
"0.5069796",
"0.5064915",
"0.5064816",
"0.50638914",
"0.5055423",
"0.50531095",
"0.50527734",
"0.50509936",
"0.504956",
"0.5044622",
"0.503547",
"0.5026437",
"0.50208956",
"0.5017649",
"0.5015965",
"0.50148964",
"0.50128627",
"0.50078154",
"0.5007199",
"0.5007199",
"0.5007199",
"0.5007199",
"0.5007199",
"0.5007199"
] | 0.0 | -1 |
Check for internet Connection | public void requestWishList() {
if (!hasInternetConnection()) {
PromeetsDialog.show(this, getString(R.string.no_internet));
} else {
UserPOJO userPOJO = (UserPOJO) PromeetsUtils.getUserData(PromeetsPreferenceUtil.USER_OBJECT_KEY, UserPOJO.class);
if (userPOJO == null) finish();
String[] key = {Constant.USERID, Constant.PAGENUMBER};
String[] value = {userPOJO.id + "", page + ""};
PromeetsDialog.showProgress(this);
HashMap<String, String> header = new HashMap<>();
header.put("ptimestamp", ServiceHeaderGeneratorUtil.getInstance().getPTimeStamp());
header.put("promeetsT", ServiceHeaderGeneratorUtil.getInstance().getPromeetsTHeader(Constant.FETCH_MY_WISH_LIST));
header.put("accessToken", ServiceHeaderGeneratorUtil.getInstance().getAccessToken());
header.put("API_VERSION", Utility.getVersionCode());
new GenericServiceHandler(Constant.ServiceType.WISH_LIST, this, PromeetsUtils.buildURL(Constant.FETCH_MY_WISH_LIST, key, value), null, header, IServiceResponseHandler.GET, false, "Please wait!", "Processing..").execute();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkInternetConnection() {\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return (networkInfo != null && networkInfo.isConnected());\n\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo != null && networkInfo.isConnectedOrConnecting();\n }",
"private boolean checkInternetConnection() {\n ConnectivityManager cm =\n (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"private Boolean checkInternetConnectivity(){\n // Code to check the network connectivity status\n ConnectivityManager connMgr = (ConnectivityManager)\n getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"public boolean checkInternetConnection()\n {\n ConnectivityManager cm =\n (ConnectivityManager)getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"private boolean isInternetAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Network[] networks = connectivityManager.getAllNetworks();\n NetworkInfo networkInfo;\n for (Network mNetwork : networks) {\n networkInfo = connectivityManager.getNetworkInfo(mNetwork);\n if (networkInfo.getState().equals(NetworkInfo.State.CONNECTED)) {\n return true;\n }\n }\n } else {\n if (connectivityManager != null) {\n NetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n if (info != null) {\n for (NetworkInfo networkInfo : info) {\n if (networkInfo.getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n }\n }\n }\n Toast.makeText(getContext(), getString(R.string.internet_connection_needed),Toast.LENGTH_SHORT).show();\n return false;\n }",
"private Boolean hasInternetConnection() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if ((networkInfo != null) && networkInfo.isConnected()) {\n return true;\n } else {\n makeToast(\"There is no internet connection\");\n return false;\n }\n }",
"protected boolean checkInternetConnection() {\n if (!Utils.hasInternetConnection(getApplicationContext())) {\n final AlertDialog.Builder adBuilder = createAlertDialog(R.string.dialog_title_no_internet, R.string.dialog_message_no_internet);\n adBuilder.setPositiveButton(R.string.dialog_btn_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n adBuilder.show();\n return false;\n }\n\n return true;\n }",
"private boolean isInternetConnected() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo ni = cm.getActiveNetworkInfo();\n if (ni!=null && ni.isAvailable() && ni.isConnected()) {\n return true;\n } else {\n return false;\n }\n }",
"public static boolean isConnectedToInternet() {\n String pingServerURL = pingBackUrl.substring(0, pingBackUrl.indexOf(\"/\", \"http://url\".length()));\n try {\n URL url = new URL(pingServerURL);\n HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();\n urlConn.connect();\n return (HttpURLConnection.HTTP_NOT_FOUND != urlConn.getResponseCode());\n } catch (MalformedURLException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n \n } catch (IOException e) {\n LOG.error(\"LeadCapture : Error creating HTTP connection to the server : \" + pingServerURL);\n }\n return false;\n }",
"private boolean isConnectedToInternet(){\n ConnectivityManager connectivityManager = (ConnectivityManager) main.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"boolean isInternetConnected(){\n\n ConnectivityManager connectivityManager = (ConnectivityManager)getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n return networkInfo!=null && networkInfo.isConnected(); // -> true if we have internet connected\n\n }",
"private boolean isConnectedToInternet() {\n ConnectivityManager conManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conManager.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"public final int isInternetOn() {\n ConnectivityManager connec =\r\n (ConnectivityManager)getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\r\n\r\n // Check for network connections\r\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\r\n\r\n // if connected with internet\r\n\r\n //Toast.makeText(this, \" Connected \", Toast.LENGTH_LONG).show();\r\n return 1;\r\n\r\n } else if (\r\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\r\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\r\n\r\n //Toast.makeText(this, \" Not Connected \", Toast.LENGTH_LONG).show();\r\n return 0;\r\n }\r\n return 0;\r\n }",
"public boolean isInternetReachable() {\n \t\ttry {\n \t\t\t// URL to a source\n \t\t\tURL url = new URL(\"http://www.betfair.com\");\n \t\t\t// Open a connection\n \t\t\tHttpURLConnection urlConnect = (HttpURLConnection) url\n \t\t\t\t\t.openConnection();\n \t\t\t// Retrieving data from the source - if there is no connection,\n \t\t\t// throws and exception\n \t\t\t@SuppressWarnings(\"unused\")\n \t\t\tObject objData = urlConnect.getContent();\n \t\t} catch (Exception e) {\n \t\t\treturn false;\n \t\t}\n \t\treturn true;\n \t}",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"public boolean isConnectingToInternet(){\n ConnectivityManager connectivity = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n \n }\n return false;\n }",
"boolean isNetworkAvailable();",
"private boolean isConnectedToInternet() {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n return cm.getActiveNetworkInfo() != null && cm.getActiveNetworkInfo().isConnected();\n }",
"public static boolean checkInternetConnection(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean checkInternetConnection(@NonNull Context context) {\n return ((ConnectivityManager) context.getSystemService(\n Context.CONNECTIVITY_SERVICE)).getActiveNetworkInfo() != null;\n }",
"public boolean internetErisimi() {\n\n ConnectivityManager conMgr = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (conMgr.getActiveNetworkInfo() != null\n\n && conMgr.getActiveNetworkInfo().isAvailable()\n\n && conMgr.getActiveNetworkInfo().isConnected()) {\n\n return true;\n\n } else {\n\n return false;\n\n }\n\n }",
"public boolean hasActiveInternetConnection()\n {\n Runtime runtime = Runtime.getRuntime();\n try {\n Process ipProcess = runtime.exec(\"/system/bin/ping -c 1 8.8.8.8\");\n int exitValue = ipProcess.waitFor();\n return (exitValue == 0);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return false;\n }",
"public boolean probarInternet() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private static boolean isConnectingToInternet() {\n ConnectivityManager connectivity = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n // return connectivity.getActiveNetworkInfo() != null\n // && connectivity.getActiveNetworkInfo()\n // .isConnectedOrConnecting();\n return true;\n }\n }\n return false;\n }",
"public boolean internetIsConnected() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n return networkInfo != null && networkInfo.isConnected();\n }",
"private boolean checkConnection() {\n return InternetConnectivityReceiver.isConnected();\n }",
"public static boolean isConnect() {\n try {\n if (!isConnectingToInternet()) {\n // Internet Connection is not present\n Toast.makeText(context, \"Please Check your connection\", Toast.LENGTH_LONG).show();\n return false;\n }\n } catch (Exception e) {\n\n }\n return true;\n }",
"public static boolean isInternetAvailable(Context c) {\n\n ConnectivityManager connectivity = (ConnectivityManager) c\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivity != null) {\n\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n\n return false;\n }",
"public boolean hasInternetConnection(final Context context) {\n\t\tConnectivityManager conMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (conMgr.getActiveNetworkInfo() != null\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isAvailable()\n\t\t\t\t&& conMgr.getActiveNetworkInfo().isConnected()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public static boolean isInternetAvailable(Context context) {\n Log.d(TAG, \"isInternetAvailable\");\n ConnectivityManager mConMgr = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n return mConMgr.getActiveNetworkInfo() != null\n && mConMgr.getActiveNetworkInfo().isAvailable()\n && mConMgr.getActiveNetworkInfo().isConnected();\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager) getSystemService(getBaseContext().CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n // if connected with internet\n\n\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n\n return false;\n }\n return false;\n }",
"private boolean checkNetworkState() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connectivityManager.getActiveNetworkInfo() == null || !connectivityManager.getActiveNetworkInfo().isConnected()) {\n showNetworkAlert();\n return false;\n }\n\n else return true;\n }",
"public final boolean isInternetOn() {\n ConnectivityManager connec =\n (ConnectivityManager)context.getSystemService(context.CONNECTIVITY_SERVICE);\n\n // Check for network connections\n if ( connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED ) {\n\n // if connected with internet\n\n Toast.makeText(context, \" Connected \", Toast.LENGTH_LONG).show();\n return true;\n\n } else if (\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED ) {\n\n Toast.makeText(context, \" Not Connected \", Toast.LENGTH_LONG).show();\n return false;\n }\n return false;\n }",
"private void checkInternetConnection() {\n\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t}",
"public boolean isNetworkAvailable() {\n initNetwork();\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n}",
"public boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n // In case it's not notify it through a toast\n if(netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()){\n Toast.makeText(MainActivity.this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n return true;\n }",
"private boolean isDeviceConnectedToInternet() {\n ConnectivityManager cm =\n (ConnectivityManager) getContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n return activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n }",
"public static boolean isConnectedToInternet(Context con){\n ConnectivityManager connectivity = (ConnectivityManager) con.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null)\n {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null)\n for (int i = 0; i < info.length; i++)\n if (info[i].getState() == NetworkInfo.State.CONNECTED)\n {\n return true;\n }\n\n }\n return false;\n }",
"public static boolean isInternetOn(Context context)\r\n {\r\n ConnectivityManager cm = (ConnectivityManager) context\r\n .getSystemService(Context.CONNECTIVITY_SERVICE);\r\n // test for connection\r\n if (cm.getActiveNetworkInfo() != null\r\n && cm.getActiveNetworkInfo().isAvailable()\r\n && cm.getActiveNetworkInfo().isConnected())\r\n {\r\n // No need to bother user when everything's ok :)\r\n Log.d(logVerifyNet, \"Internet is working\");\r\n return true;\r\n }\r\n else\r\n {\r\n Toast.makeText(context, \"No internet connection...\", Toast.LENGTH_LONG).show();\r\n Log.d(logVerifyNet, \"No internet connection...\");\r\n return false;\r\n }\r\n }",
"private boolean isOnline() {\n ConnectivityManager conMgr = (ConnectivityManager) getApplicationContext().getSystemService(CONNECTIVITY_SERVICE);\n if (conMgr != null) {\n NetworkInfo netInfo = conMgr.getActiveNetworkInfo();\n if (netInfo == null || !netInfo.isConnected() || !netInfo.isAvailable()) {\n Toast.makeText(this, \"No Internet connection!\", Toast.LENGTH_LONG).show();\n return false;\n }\n }\n return true;\n }",
"public boolean isInternetIsConnected(Context context) {\n try {\n ConnectivityManager cm = getConnectivityManager(context);\n assert cm != null;\n @SuppressLint(\"MissingPermission\") NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n if (activeNetwork != null) { // connected to the internet\n if (activeNetwork.getType() == ConnectivityManager.TYPE_WIFI) {\n // connected to wifi\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n\n } else if (activeNetwork.getType() == ConnectivityManager.TYPE_MOBILE) {\n // connected to the mobile provider's data plan\n // Toast.makeText(context, activeNetwork.getTypeName(), Toast.LENGTH_SHORT).show();\n return true;\n }\n } else {\n // not connected to the internet\n return false;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return false;\n }",
"public static boolean hasInternetConnection(final Context context) {\n final ConnectivityManager connectivityManager = (ConnectivityManager) context.\n getSystemService(Context.CONNECTIVITY_SERVICE);\n\n final Network network = connectivityManager.getActiveNetwork();\n final NetworkCapabilities capabilities = connectivityManager\n .getNetworkCapabilities(network);\n\n return capabilities != null\n && capabilities.hasCapability(NetworkCapabilities.NET_CAPABILITY_VALIDATED);\n }",
"public static boolean isInternetOn(Context context) {\n _context = context;\n ConnectivityManager connec = null;\n // get Connectivity Manager object to check connection\n //ConnectivityManager connec = \n //(ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // get Connectivity Manager object to check connection\n try {\n connec = (ConnectivityManager) _context.getSystemService(Context.CONNECTIVITY_SERVICE);\n // 0 is Mobile dataconnection\n // 1 for Wifi Connection\n NetworkInfo activeNetwork = connec.getActiveNetworkInfo();\n if (activeNetwork != null) {\n if (connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.CONNECTED) {\n //Common.IsLocalConnection = 2;\n return true;\n\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == NetworkInfo.State.CONNECTING) {\n //Common.IsLocalConnection = 1;\n return true;\n } else if (connec.getNetworkInfo(0).getState() == NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == NetworkInfo.State.DISCONNECTED) {\n //Common.IsLocalConnection = 0;\n return false;\n } // Check for network connections\n } else {\n // not connected to the internet\n }\n } catch (Exception ex) {\n CrashAnalytics.CrashReport(ex);\n }\n return false;\n }",
"public Boolean isOnlineNet() {\n\n try {\n Process p = java.lang.Runtime.getRuntime().exec(\"ping -c 1 www.google.es\");\n\n int val = p.waitFor();\n boolean reachable = (val == 0);\n return reachable;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return false;\n }",
"protected synchronized boolean checkConnectivity() {\n return this.connect();\n }",
"public boolean isNetworkReachable();",
"public void checkConnectivity(){\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n mIsOnline = cm.getNetworkInfo(ConnectivityManager.TYPE_MOBILE)\n .isConnectedOrConnecting() || cm.getNetworkInfo(ConnectivityManager.TYPE_WIFI)\n .isConnectedOrConnecting();\n }",
"private void checkConnection(){\n NetworkInfo activeNetwork = connectivityManager.getActiveNetworkInfo();\n\n // if activeNetwork is not null, and a network connection is detected,\n // isConnected is true\n boolean isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n\n // prepare output to indicate connection status\n String message = isConnected ? \"Connection Detected!\" : \"No Connection Detected!\";\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"private boolean isKonekInternet()\n\t{\n\t\tConnectivityManager connectivityManager = (ConnectivityManager) this\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tif (connectivityManager != null)\n\t\t{\n\t\t\tNetworkInfo[] info = connectivityManager.getAllNetworkInfo();\n\t\t\tif (info != null)\n\t\t\t{\n\t\t\t\tfor (int i = 0; i < info.length; i++)\n\t\t\t\t{\n\t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn false;\n\t}",
"public static boolean isInternetAvailable(Context currentContext) {\n ConnectivityManager conectivityManager = (ConnectivityManager) currentContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = conectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.getType() == ConnectivityManager.TYPE_WIFI) {\n if (networkInfo.isConnected()) {\n return true;\n }\n } else if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n if (networkInfo.isConnected()) {\n return true;\n }\n }\n }\n return false;\n }",
"private boolean isNetworkAvailable(){\n ConnectivityManager connectivityManager = (ConnectivityManager)\n getSystemService(CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n\n }",
"private boolean isNetworkAvailable() {\r\n ConnectivityManager connectivityManager \r\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\r\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\r\n return activeNetworkInfo != null;\r\n }",
"public static boolean hasActiveInternetConnection(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\n if (netInfo != null && netInfo.isConnected()) {\n return true;\n }\n return false;\n }",
"public static boolean hasInternetConnectivity(Context applicationContext) {\n\t\tConnectivityManager connManager = (ConnectivityManager)applicationContext.\n\t\t\t\t getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\tNetworkInfo info = connManager.getActiveNetworkInfo();\n\t\tif(info != null) return info.isConnected();\n\t\telse return false;\n\t}",
"public static boolean isConnectedToInternet(Context context) {\n\t\tConnectivityManager cm = (ConnectivityManager) context\n\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\treturn cm.getActiveNetworkInfo() != null ? cm.getActiveNetworkInfo()\n\t\t\t\t.isConnectedOrConnecting() : false;\n\t}",
"private boolean isNetworkAvailable() {\n ConnectivityManager cm = (ConnectivityManager)ctx.getSystemService(Context.CONNECTIVITY_SERVICE);\n if ( cm.getActiveNetworkInfo() != null ) {\n return true;\n }\n return false;\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable()\n\t{\n\t\tNetworkInfo info = mConnectivityManager.getActiveNetworkInfo();\n\n\t\treturn info != null && info.isConnected();\n\t}",
"protected boolean NetworkAviable() {\n\t\t\tConnectivityManager cm =(ConnectivityManager)contextyeild.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\t NetworkInfo netInfo = cm.getActiveNetworkInfo();\n\t\t if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n\t\t \t try{\n\t\t \t\t \n\t\t \t \t//new OnGetPondsdata().execute();\n\t\t \t }catch(Exception e){\n\t\t \t\t e.printStackTrace();\n\t\t \t }\n\t\t \t \t\n\t\t return true;\t\t \n\t\t }\n\t\t else{ \n\t\t \t\n\t\t \t// TODO Auto-generated method stub\n\t\t\t\tToast.makeText(contextyeild, \"No internet connection\", Toast.LENGTH_SHORT).show();\t\t\t\t\t\n\t\t }\n\t\t return false;\n\t\t\t}",
"public boolean ConnectionCheck(){\n ConnectivityManager cm =\n (ConnectivityManager)context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n isConnected = activeNetwork != null &&\n activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"boolean isNetworkAvailable() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean isConnected = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n return isConnected;\n }",
"private boolean networkIsAvailable() {\t\t\t\t\t\t\t\t\n\t\tConnectivityManager connectivityManager \t\t\t\t\t\t\t\t\n\t\t= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\t\t\t\t\t\t\t\t\n\t\tNetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\t\t\t\t\t\t\t\t\n\t\treturn activeNetworkInfo != null && activeNetworkInfo.isConnectedOrConnecting();\t\t\t\t\t\t\t\t\n\t}",
"public boolean isNetworkAvailable() {\n try {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n } catch (Exception e) {\n FirebaseCrash.report(new Exception(\"Error while trying to check network availability \" + e));\n return false;\n }\n }",
"@Override\n protected Boolean doInBackground(Void... params) {\n check_internet = hasActiveInternetConnection(getApplicationContext());\n return check_internet;\n }",
"private boolean ifNet() {\n \t\t\n \t\tConnectivityManager connectivity = (ConnectivityManager) this\n \t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n \t\tif (connectivity != null) {\n \t\t\tNetworkInfo[] info = connectivity.getAllNetworkInfo();\n \t\t\tif (info != null)\n \t\t\t\tfor (int i = 0; i < info.length; i++)\n \t\t\t\t\tif (info[i].getState() == NetworkInfo.State.CONNECTED) {\n \t\t\t\t\t\treturn true;\n \t\t\t\t\t}\n\n \t\t}\n \t\treturn false;\n \t}",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean checkNetWork(Activity aActivity){\n switch (NetworkUtil.getConnectivityStatus(aActivity)) {\n case OFFLINE:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n case WIFI_CONNECTED_WITHOUT_INTERNET:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n case MOBILE_DATA_CONNECTED:\n case WIFI_CONNECTED_WITH_INTERNET:\n return true;\n case UNKNOWN:\n MessageUtility.showToast(aActivity,\"No Internet Connection\");\n return false;\n default:\n return false;\n }\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) ApplicationContext.get().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNoThereInternetConnection() {\n boolean isConnected;\n\n ConnectivityManager connectivityManager = (ConnectivityManager) this.mContext.getSystemService(Context\n .CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n isConnected = (networkInfo != null && networkInfo.isConnectedOrConnecting());\n\n return !isConnected;\n }",
"protected boolean checkNetworkStatus() {\n\n ConnectivityManager manager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = manager.getActiveNetworkInfo();\n\n if ((activeNetworkInfo != null && activeNetworkInfo.isConnected())) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isOnline(){\n ConnectivityManager cm= (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnectedOrConnecting()){\n return true;\n } else{\n return false;\n }\n }",
"public boolean isNetworkAvailable() {\n ConnectivityManager connectivity = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity == null) {\n return false;\n } else {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null) {\n for (int i = 0; i < info.length; i++) {\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n return true;\n }\n }\n }\n }\n return false;\n }",
"public static boolean IsConnectedToInternet(Context c) {\n ConnectivityManager connectivityManager = (ConnectivityManager) c.getSystemService(c.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n if (networkInfo != null) {\n if (networkInfo.isConnected() == false) {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n } else {\n if (networkInfo.getType() == ConnectivityManager.TYPE_MOBILE) {\n //Toast.makeText(this, \"데이터 요금이 발생할 수 있습니다.\", 1).show();\n }\n return true;\n }\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n } else {\n //Toast.makeText(this, \"네트워크 연결을 확인하세요.\", 1).show();\n return false;\n //Toast.makeText(this, \"테스트.\", 1).show();\n //btest = true;\n }\n }",
"private boolean isWifiConnected() throws InterruptedException {\n int counter = 10;\n while (--counter > 0) {\n try {\n String mPingSite = String.format(\"http://%s\", DEFAULT_PING_SITE);\n URL url = new URL(mPingSite);\n HttpURLConnection conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n conn.setConnectTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n conn.setReadTimeout(mABvtHelper.LONG_TIMEOUT * 12);\n if (conn.getResponseCode() == HttpURLConnection.HTTP_OK) {\n return true;\n }\n Thread.sleep(mABvtHelper.SHORT_TIMEOUT);\n } catch (IOException ex) {\n // Wifi being flaky in the lab, test retries 10 times to connect to google.com\n // as IOException is throws connection isn't made and response stream is null\n // so for retrying purpose, exception hasn't been rethrown\n Log.i(mABvtHelper.TEST_TAG, ex.getMessage());\n }\n }\n return false;\n }",
"static boolean isNetworkConnected(Context activityContext) {\n ConnectivityManager cm = (ConnectivityManager) activityContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetwork = cm.getActiveNetworkInfo();\n boolean returnBool = activeNetwork != null && activeNetwork.isConnectedOrConnecting();\n\n if(!returnBool) {\n Toast.makeText(activityContext, activityContext.getString(R.string.check_internet), Toast.LENGTH_LONG).show();\n Log.i(\"NetworkUtils\", \"isNetworkConnected() - Network connection check Failed. No Internet Connection\");\n }\n return returnBool;\n }",
"private boolean isNetworkAvailable() {\n // Create a connectivity manager and\n // get the service type currently in use (Wi-fi, 3g etc)\n ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE);\n // Get network info from the service\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n\n // return true or false based on connection\n return (networkInfo != null)\n && networkInfo.isConnected()\n && networkInfo.isAvailable();\n }",
"public final void checkNetworkConnection() {\n if (InternetUtil.INSTANCE.isInternetOn()) {\n login();\n return;\n }\n String string = getResources().getString(C2723R.string.bdt_lbl_msg_prd_network_error);\n Intrinsics.checkExpressionValueIsNotNull(string, \"resources.getString(R.st…bl_msg_prd_network_error)\");\n Context_ExtensionKt.showToast(this, string);\n InternetUtil.INSTANCE.observe(this, new OldBDTLoginActivity$checkNetworkConnection$1(this));\n }",
"private boolean isOnline() {\n ConnectivityManager connect = (ConnectivityManager) this.getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = connect.getActiveNetworkInfo();\n if(netInfo != null && netInfo.isConnected()){\n return true;\n }\n return false;\n }",
"public static boolean isNetworkAvailable() {\n\n ConnectivityManager connectivityManager\n = (ConnectivityManager) DumbApplication.getAppContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnectedOrConnecting();\n }",
"public boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public static boolean checkNetworkAndShowDialog(Context context) {\r\n if (!checkNetConnection(context)) {\r\n //Logger.showShortMessage(context, context.getString(R.string.check_internet));\r\n return false;\r\n }\r\n return true;\r\n }",
"protected boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private Callable<Boolean> isReachable() {\n return () -> {\n try {\n if (!isOnline()) {\n return false;\n }\n\n URL url = new URL(\"https://api.vk.com\"); //url for ex.\n HttpURLConnection httpURLConnection = (HttpURLConnection) url.openConnection();\n httpURLConnection.setConnectTimeout(2000);\n httpURLConnection.connect();\n\n return true;\n } catch (Exception e) {\n return false;\n }\n };\n }",
"public boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n Log.i(\"Utilities\",\"isNetworkAvailable()\"+(activeNetworkInfo != null\n && activeNetworkInfo.isConnected()));\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) Objects.requireNonNull(this).getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = Objects.requireNonNull(connectivityManager).getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"private static boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null;\n }",
"private boolean isOnline() {\n Context context = getApplicationContext();\n ConnectivityManager cm = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo netInfo = cm.getActiveNetworkInfo();\n if (netInfo != null && netInfo.isConnectedOrConnecting()) {\n return true;\n }\n return false;\n }",
"private boolean checkConnection()\n {\n ConnectivityManager connectivityManager = (ConnectivityManager) Objects.requireNonNull(getActivity()).getApplicationContext().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = connectivityManager.getActiveNetworkInfo();\n\n if (null != networkInfo)\n {\n return true;\n }\n else\n {\n StyleableToast.makeText(getActivity().getApplicationContext(), \"عدم اتصال به اینترنت!\", Toast.LENGTH_LONG, R.style.toastTheme).show();\n return false;\n }\n }",
"public void checkConnection() {\n\t\tif (isOnline()) {\n\t\t\tgetFirsTopRatedMovies();\n\t\t} else {\n\t\t\tprogress.setVisibility(View.GONE);\n\t\t\tlayout_nothing_to_show.setVisibility(View.VISIBLE);\n\t\t\tToast.makeText(this, getString(R.string.no_netowrk), Toast.LENGTH_SHORT).show();\n\t\t}\n\t}",
"private boolean isNetworkAvailable() {\n ConnectivityManager connectivityManager\n = (ConnectivityManager) getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n return activeNetworkInfo != null && activeNetworkInfo.isConnected();\n }",
"public boolean networkCheck(String region) throws IOException {\r\n // Debug mode can be run offline.\r\n if(DEBUG) {\r\n return true;\r\n }\r\n \r\n try {\r\n getServerStatusData();\r\n networkOK = true;\r\n return true;\r\n }\r\n catch(UnknownHostException e) {\r\n System.out.println(e);\r\n networkOK = false;\r\n return false;\r\n }\r\n }",
"private boolean isNetworkAvailable(Context context) {\n ConnectivityManager connectivity = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n if (connectivity != null) {\n NetworkInfo[] info = connectivity.getAllNetworkInfo();\n if (info != null) {\n for (int i = 0; i < info.length; i++) {\n Log.v(LOGTAG, String.valueOf(i));\n if (info[i].getState() == NetworkInfo.State.CONNECTED) {\n Log.v(LOGTAG, \"connected!\");\n return true;\n }\n }\n }\n }\n return false;\n }",
"public boolean networkAvailable() {\n ConnectivityManager cm = (ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo networkInfo = cm.getActiveNetworkInfo();\n // if network is off, networkInfo will be null\n //otherwise check if we are connected\n if (networkInfo != null && networkInfo.isConnected()) {\n return true;\n }\n return false;\n }",
"public void checkNetworkConnectionIsAvailable() {\n ConnectivityManager connectivityManager = ( ConnectivityManager ) getSystemService ( Context.CONNECTIVITY_SERVICE );\n NetworkInfo activNetwork = connectivityManager.getActiveNetworkInfo ();\n boolean isConnected = activNetwork != null && activNetwork.isConnected ();\n\n if (isConnected) {\n // onStart ();\n } else {\n MaterialAlertDialogBuilder myDialog = new MaterialAlertDialogBuilder ( ForgotPasswordClass.this )\n .setTitle ( \"Connect to a Network\" )\n .setMessage ( \"To use Application,turn on mobile data or connect to Wi-fi.\" ).setPositiveButton ( \"Ok\" , null );\n AlertDialog alertDialog = myDialog.create ();\n alertDialog.setCancelable ( true );\n myDialog.show ();\n }\n\n }",
"public static boolean isInternetOn(Activity context) {\n boolean isActive = false;\n\n ConnectivityManager connec = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n if (connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTED ||\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTING ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.CONNECTED) {\n\n isActive = true;\n } else if (\n\n connec.getNetworkInfo(0).getState() == android.net.NetworkInfo.State.DISCONNECTED ||\n connec.getNetworkInfo(1).getState() == android.net.NetworkInfo.State.DISCONNECTED) {\n\n isActive = false;\n }\n\n\n return isActive;\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @SuppressLint(\"MissingPermission\")\n private boolean isConnected_Q() {\n //Get ConnectivityManager.\n ConnectivityManager connectivityManager = (ConnectivityManager) mContext.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n //Check current network has Internet access.\n if (connectivityManager != null) {\n Network activeNetwork = connectivityManager.getActiveNetwork();\n if (activeNetwork == null) { //No default network is currently active.\n return false;\n }\n\n NetworkCapabilities networkCapabilities = connectivityManager.getNetworkCapabilities(activeNetwork);\n if (networkCapabilities != null && isConnectionValidated(networkCapabilities)) {\n return true;\n }\n }\n\n return false;\n }"
] | [
"0.84628665",
"0.84476465",
"0.84306777",
"0.81418335",
"0.81308925",
"0.8106153",
"0.80978614",
"0.8035138",
"0.8012396",
"0.8009557",
"0.79658365",
"0.79598814",
"0.7922596",
"0.7906905",
"0.78431284",
"0.7831871",
"0.7831871",
"0.78183144",
"0.7804141",
"0.7793943",
"0.77873194",
"0.7773798",
"0.77560073",
"0.7726886",
"0.7716279",
"0.7698388",
"0.7675907",
"0.76399326",
"0.76220256",
"0.76103395",
"0.76099956",
"0.7607913",
"0.7607058",
"0.760528",
"0.75436795",
"0.75434244",
"0.7541041",
"0.75336504",
"0.75226617",
"0.7511224",
"0.7474029",
"0.7469362",
"0.74626046",
"0.7452084",
"0.744264",
"0.7439817",
"0.7427176",
"0.73970795",
"0.73887426",
"0.73793125",
"0.73535866",
"0.7337198",
"0.73288834",
"0.7309185",
"0.7293162",
"0.7292519",
"0.7292335",
"0.7289101",
"0.7286502",
"0.72781813",
"0.7264408",
"0.7257951",
"0.72565097",
"0.72461724",
"0.7233598",
"0.72270024",
"0.72144806",
"0.72144806",
"0.72144806",
"0.72144806",
"0.7207934",
"0.7202806",
"0.719901",
"0.71936566",
"0.7188808",
"0.71734816",
"0.7168609",
"0.71503496",
"0.7138177",
"0.7130253",
"0.7124347",
"0.7121607",
"0.7121478",
"0.71143734",
"0.71136534",
"0.7100508",
"0.70924026",
"0.70833695",
"0.70829225",
"0.7082341",
"0.7076263",
"0.7072017",
"0.7062161",
"0.705933",
"0.7050364",
"0.7049083",
"0.7034814",
"0.7029596",
"0.7023302",
"0.70117104",
"0.7009276"
] | 0.0 | -1 |
Convenience method to scale to the given dimensions then relocate the label with respect to the vertical and horizontal alignment. | public void transform( final Dimension dimension ) {
transform( dimension.width, dimension.height );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void rescaleLabels() {\n // TJJ Nov 2018 - make sure labels scale correct on any changes\n // to the ring display\n ViewManager vm = getViewManager();\n rangeRings.setLabelSize(vm.getMaster().getDisplayScale());\n }",
"@Override\n\tpublic void relocate()\n\t{\n\n\t\tint w = 380, h = 65;\n\t\tint x = (this.getWidth() - w) / 2, y = (this.getHeight() - h) / 2;\n\n\t\tfullRevisionLabel.setLocation(x, y);\n\t\tfullRevisionField.setLocation(x + 280, y);\n\n\t\tminimumCommonSequenceLabel.setLocation(x, y + 40);\n\t\tminimumCommonSequenceField.setLocation(x + 280, y + 40);\n\t}",
"public void setBounds(int x, int y, int width, int height) \n\t{\n\t\tsuper.setBounds(x, y, width, height);\n\t\tfm = getFontMetrics(getFont());\n\t\ttitleHeight = fm.getHeight();\n\t\tyLabelWidth = fm.stringWidth(yLabel);\n\t\txLabelHeight = fm.getHeight();\n\t\t\n\t\tlabelWidth = Math.max(fm.stringWidth(Integer.valueOf(min).toString()),\n\t\t\t\t\t\t\t\t\t\t\t\t\tfm.stringWidth(Integer.valueOf(max).toString())) + 2;\n\t\ttop = padding + titleHeight;\n\t\tbottom = getSize().height - padding - xLabelHeight - fm.getHeight();\n\t\tleft = padding + yLabelWidth;\n\t\tright = getSize().width - padding;\n\t}",
"public void setLabelPosition(int x, int y);",
"@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }",
"@Override\r\n protected void layout() {\n\r\n Check.setY(this.getHalfHeight() - Check.getHalfHeight());\r\n\r\n float asc = lblName.getFont().getDescent();\r\n\r\n lblName.setY(this.getHeight() - lblName.getHeight() + asc);\r\n lblName.setX(this.getLeftWidth());\r\n }",
"private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }",
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }",
"private void layoutSwingComponents( double scale ) {\n// Component[] components = component.getComponents();\n// for( int i = 0; i < components.length; i++ ) {\n// Component component = components[i];\n// Point origLocation = (Point)componentOrgLocationsMap.get( component );\n// if( origLocation != null ) {\n// Point newLocation = new Point( (int)( origLocation.getX() * scale ), (int)( origLocation.getY() * scale ) );\n// component.setLocation( newLocation );\n// }\n// }\n }",
"private void reDimensionar(JLabel label, ImageIcon grafico) {\n\t\tImage image = grafico.getImage();\n\t\tif (image != null) {\n\t\t\tImage newimg = image.getScaledInstance(label.getWidth(), label.getHeight(), java.awt.Image.SCALE_SMOOTH);\n\t\t\tgrafico.setImage(newimg);\n\t\t\tlabel.setIcon(grafico);\n\t\t\tlabel.repaint();\n\t\t}\n\t}",
"public void setTextPosition(Position position)\n {\n int pos = position.value;\n JLabel jl = getComponent();\n if ((pos&NORTH.value) != 0)\n jl.setVerticalTextPosition(SwingConstants.TOP);\n else if ((pos&SOUTH.value) != 0)\n jl.setVerticalTextPosition(SwingConstants.BOTTOM);\n else\n jl.setVerticalTextPosition(SwingConstants.CENTER);\n if ((pos&EAST.value) != 0)\n jl.setHorizontalTextPosition(SwingConstants.RIGHT);\n else if ((pos&WEST.value) != 0)\n jl.setHorizontalTextPosition(SwingConstants.LEFT);\n else\n jl.setHorizontalTextPosition(SwingConstants.CENTER);\n invalidateSize();\n }",
"public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }",
"@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}",
"private void componentPositionAdjustment() {\n // set the y position of each element\n AnchorPane.setTopAnchor(nameLabel, 30.0);\n AnchorPane.setTopAnchor(name, 30.0);\n AnchorPane.setTopAnchor(fiberLabel, 70.0);\n AnchorPane.setTopAnchor(proteinLabel, 110.0);\n AnchorPane.setTopAnchor(fatLabel, 150.0);\n AnchorPane.setTopAnchor(caloriesLabel, 190.0);\n AnchorPane.setTopAnchor(carbohydrateLabel, 230.0);\n AnchorPane.setTopAnchor(fiber, 70.0);\n AnchorPane.setTopAnchor(calories, 190.0);\n AnchorPane.setTopAnchor(fat, 150.0);\n AnchorPane.setTopAnchor(carbohydrate, 230.0);\n AnchorPane.setTopAnchor(protein, 110.0);\n AnchorPane.setTopAnchor(id, 270.0);\n AnchorPane.setTopAnchor(idLabel, 270.0);\n AnchorPane.setTopAnchor(confirm, 310.0);\n AnchorPane.setTopAnchor(cancel, 310.0);\n // set the x position of each element\n AnchorPane.setLeftAnchor(fiberLabel, 20.0);\n AnchorPane.setLeftAnchor(proteinLabel, 20.0);\n AnchorPane.setLeftAnchor(fatLabel, 20.0);\n AnchorPane.setLeftAnchor(caloriesLabel, 20.0);\n AnchorPane.setLeftAnchor(carbohydrateLabel, 20.0);\n AnchorPane.setLeftAnchor(nameLabel, 20.0);\n AnchorPane.setLeftAnchor(idLabel, 20.0);\n AnchorPane.setLeftAnchor(name, 120.0);\n AnchorPane.setLeftAnchor(fiber, 120.0);\n AnchorPane.setLeftAnchor(calories, 120.0);\n AnchorPane.setLeftAnchor(fat, 120.0);\n AnchorPane.setLeftAnchor(id, 120.0);\n AnchorPane.setLeftAnchor(carbohydrate, 120.0);\n AnchorPane.setLeftAnchor(protein, 120.0);\n AnchorPane.setLeftAnchor(confirm, 50.0);\n AnchorPane.setLeftAnchor(cancel, 200.0);\n }",
"@Override\n protected int computeHeight(Rectangle bounds, double scale, int offset)\n {\n return PrecisionUtilities.round((LABEL_HEIGHT + 2 /*+ (2 * offset) */) * scale);\n }",
"public abstract void setSize(Dimension d);",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"private void alignCenter(int newWidth) {\n for (Shape child : shape.getChildren()) {\n GraphicsAlgorithm ga = child.getGraphicsAlgorithm();\n int diff = (newWidth - ga.getWidth()) / 2;\n gaService.setLocation(ga, ga.getX() + diff, ga.getY());\n }\n }",
"private JPanel getPackSizeLabel() {\n\t\tif (packSizePanel == null) {\n packSizeLabel = new JLabel();\n\t\t\tpackSizeLabel.setText(\"Размер колоды \");\n FlowLayout flowLayout = new FlowLayout();\n\t\t\tflowLayout.setAlignment(FlowLayout.LEFT);\n\t\t\tpackSizePanel = new JPanel();\n\t\t\tpackSizePanel.setLayout(flowLayout);\n\t\t\tpackSizePanel.add(packSizeLabel, null);\n\t\t\tpackSizePanel.add(getColoda(), null);\n\t\t}\n\t\treturn packSizePanel;\n\t}",
"private void setupLabelUI(Label l, String ff, double f, double w, Pos p, double x, double y) {\n\t\tl.setFont(Font.font(ff, f));\n\t\tl.setMinWidth(w);\n\t\tl.setAlignment(p);\n\t\tl.setLayoutX(x);\n\t\tl.setLayoutY(y);\n\t}",
"@Override\n\tpublic JComponent createWithAlignment(String text,String font, int x, int y, int w, int h,int Alignment) {\n\t\tJLabel label = new JLabel(text);\n\t\tlabel.setHorizontalAlignment(Alignment);\n\t label.setBounds(x,y,w,h);\n\t return label;\n\t}",
"@Override\r\n public void setAlignmentY(float f) {\r\n super.setAlignmentY(JLabel.CENTER_ALIGNMENT);\r\n }",
"private JLabel makeJLabel(String title, int x, int y, int width, int height) {\r\n JLabel label = new JLabel(title);\r\n label.setBounds(x, y, width, height);\r\n return label;\r\n }",
"private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }",
"public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }",
"public abstract void adjustSize(long size);",
"public void paintHere(Component c, Graphics g, int x, int y, int width, int height) {\n if (height <= 0 || width <= 0) {\n return;\n }\n\n label.updateUI();\n\n // Paint the JLabel into an image buffer...\n BufferedImage buffer = new BufferedImage(height, width, BufferedImage.TYPE_INT_ARGB_PRE);\n Graphics2D g2 = buffer.createGraphics();\n label.setSize(new Dimension(height, width));\n label.paint(g2);\n\n // ...then apply a transform while painting the buffer into the component\n AffineTransform af = AffineTransform.getTranslateInstance(clockwise ? x + width : x, clockwise ? y : y + height);\n AffineTransform af2 = AffineTransform.getRotateInstance(clockwise ? RotatedLabel.NINETY_DEGREES : -RotatedLabel.NINETY_DEGREES);\n af.concatenate(af2);\n\n ((Graphics2D) g).drawImage(buffer, af, this);\n }",
"void setSize(Dimension size);",
"public void resize() {\n\t\tsp.doLayout();\n\t}",
"public void updateLayoutData() {\n\t\tint height;\n\t\tint width;\n\t\tif (isVisible() && !text.trim().equals(\"\")) {\n\t\t\tif (styleRanges == null) {\n\t\t\t\tPoint p = Util.getExtentInGC(getFont(), text);\n\t\t\t\twidth = p.x;\n\t\t\t\theight = p.y;\n\t\t\t} else {\n\t\t\t\tRectangle r = textLayout.getBounds();\n\t\t\t\twidth = r.width;\n\t\t\t\theight = r.height;\n\t\t\t}\n\t\t} else {\n\t\t\twidth = 0;\n\t\t\theight = 0;\n\t\t}\n\n\t\tif (isHorizontal()) {\n\t\t\tsetLayoutData(new ChartLayoutData(width, height));\n\t\t} else {\n\t\t\tsetLayoutData(new ChartLayoutData(height, width));\n\t\t}\n\t}",
"public @Override void setSize(float width, float height) {\n float targetMajorAxisSpan;\n float targetMinorAxisSpan;\n if (isXMajorAxis()) {\n targetMajorAxisSpan = width;\n targetMinorAxisSpan = height;\n } else { // Y is major axis\n targetMajorAxisSpan = height;\n targetMinorAxisSpan = width;\n }\n \n // Span along major axis is ignored by default\n setSpanOnMajorAxis(targetMajorAxisSpan);\n setSpanOnMinorAxis(targetMinorAxisSpan);\n }",
"@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\twidth = w;\n\t\theigth = h;\n\t\tajestPosition();\n\t\tthis.invalidate();\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}",
"@Override\n\tpublic void resize(int width, int height) {\n\t\tbutton.setPosition(\n (width-button.getWidth())/2, \n (height-button.getHeight())/2);\n\t}",
"public void setPreferredSize(Dimension d)\n {\n fileName.setPreferredSize(d);\n }",
"@Override\n\tpublic void resize(double width, double height) {\n\t\t// call the superclass method first\n\t\tsuper.resize(width, height);\n\n\t\t// figure out the width and height of a cell\n\t\tcell_width = width / 4.0;\n\t\tcell_height = height / 4.0;\n\n\t\t// resize the rectangle to take the full size of the widget\n\t\tback.setWidth(width);\n\t\tback.setHeight(height);\n\n\t\t// set a new y on the horizontal lines and translate them into place\n\t\tch_one.setY(cell_height);\n\t\tch_two.setY(2 * cell_height);\n\t\tch_three.setY(3 * cell_height);\n\t\th1.setEndX(width);\n\t\th2.setEndX(width);\n\t\th3.setEndX(width);\n\n\t\t// set a new x on the vertical lines and translate them into place\n\t\tcw_one.setX(cell_width);\n\t\tcw_two.setX(2 * cell_width);\n\t\tcw_three.setX(3 * cell_width);\n\t\tv1.setEndY(height);\n\t\tv2.setEndY(height);\n\t\tv3.setEndY(height);\n\t\t\n\t\t// we need to reset the sizes and positions of all XOPieces that were\n\t\t// placed\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tif (board[i][j] != 0) {\n\t\t\t\t\trenders[i][j].relocate(i * cell_width, j * cell_height);\n\t\t\t\t\trenders[i][j].resize(cell_width, cell_height);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"void performLayout(Graphics2D g, \n DrawableGraph graph, \n double scale,\n DrawableGraphContext ctx);",
"private void layout() {\n \n // Disable redrawing\n toolbar.setRedraw(false);\n\n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n labelAttribute.setText(labelAttribute.getText());\n labelTransformations.setText(labelTransformations.getText());\n labelApplied.setText(labelApplied.getText());\n labelSelected.setText(labelSelected.getText());\n labelAttribute.pack();\n labelTransformations.pack();\n labelApplied.pack();\n labelSelected.pack();\n \n // Adjust size of items and composite\n Rectangle bounds = toolbar.getBounds();\n int remaining = toolbar.getBounds().width;\n for (final ToolItem item : toolitems) {\n remaining -= item.getBounds().width;\n }\n remaining -= OFFSET;\n infoComposite.setSize(remaining, bounds.height);\n infoItem.setWidth(remaining);\n int locationY = (infoComposite.getBounds().height - labelSelected.getBounds().height)/2;\n\n // Layout label\n int locationX = remaining - labelApplied.getSize().x;\n labelApplied.setLocation(locationX, locationY);\n if (locationX < 0) labelApplied.setVisible(false);\n else labelApplied.setVisible(true);\n \n // Layout label\n locationX -= labelSelected.getSize().x + OFFSET;\n labelSelected.setLocation(locationX, locationY);\n if (locationX < 0) labelSelected.setVisible(false);\n else labelSelected.setVisible(true);\n\n // Layout label\n locationX -= labelTransformations.getSize().x + OFFSET;\n labelTransformations.setLocation(locationX, locationY);\n if (locationX < 0) labelTransformations.setVisible(false);\n else labelTransformations.setVisible(true);\n \n\n // Layout label\n locationX -= labelAttribute.getSize().x + OFFSET;\n labelAttribute.setLocation(locationX, locationY);\n if (locationX < 0) labelAttribute.setVisible(false);\n else labelAttribute.setVisible(true);\n \n // Redraw\n toolbar.setRedraw(true);\n toolbar.redraw();\n \n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n infoComposite.pack(true);\n }",
"private void drawScalesAndLabels(Canvas canvas) {\n Paint.FontMetrics fontMetrics = mTextPaint.getFontMetrics();\n float mTextWidth;\n float mTextHeight = fontMetrics.bottom;\n\n canvas.drawLine(paddingLeft, scaleLinePosition,\n paddingLeft + contentWidth, scaleLinePosition, scaleLinePaint);\n\n float scaleMarginWidth = contentWidth * 1.0f / 24;\n float x = 0;\n for (int i = 0; i <= 24; i++) {\n x = paddingLeft + scaleMarginWidth * i;\n\n if ((i % 2) == 1) {\n //draw scale line\n canvas.drawLine(x, scaleLinePosition, x, scaleLinePosition + mTimeScaleHeight, scaleLinePaint);\n //draw time label\n mTextWidth = mTextPaint.measureText(hourLabels[i]);\n canvas.drawText(hourLabels[i], x - mTextWidth / 2, paddingTop + contentHeight - mTextHeight, mTextPaint);\n } else {\n //draw scale line\n canvas.drawLine(x, scaleLinePosition, x, scaleLinePosition + mTimeScaleHeight * 2, scaleLinePaint);\n }\n }\n }",
"public void setAlignment(Position alignment)\n {\n int align = alignment.value;\n JLabel jl = getComponent();\n if ((align&NORTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.TOP);\n else if ((align&SOUTH.value) != 0)\n jl.setVerticalAlignment(SwingConstants.BOTTOM);\n else\n jl.setVerticalAlignment(SwingConstants.CENTER);\n if ((align&EAST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.RIGHT);\n else if ((align&WEST.value) != 0)\n jl.setHorizontalAlignment(SwingConstants.LEFT);\n else\n jl.setHorizontalAlignment(SwingConstants.CENTER);\n invalidateSize();\n }",
"void setShapeLabel(String Label);",
"private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}",
"public void setSize(double aWidth, double aHeight) { setWidth(aWidth); setHeight(aHeight); }",
"public void changeSize(Integer newLength, Integer newHeight) {\n control.erase();\n width = newLength;\n height = newHeight;\n control.draw();\n }",
"public void setLblWidth(int width) {\n lblWidth = width;\n }",
"protected abstract void resize();",
"public void setFrameSize(double aWidth, double aHeight)\n{\n // If shape not rotated, scaled or skewed, just set and return\n if(!isRSS()) {\n if(_width<0) { setX(_x + (aWidth+_width)); aWidth = -aWidth; }\n if(_height<0) { setY(_y + (aHeight+_height)); aHeight = -aHeight; }\n setSize(aWidth, aHeight); return;\n }\n \n // Convert X & Y axis to parent coords\n RMSize x_axis = convertVectorToShape(new RMSize(_width, 0), _parent);\n RMSize y_axis = convertVectorToShape(new RMSize(0, _height), _parent);\n\n // Scale widths of X & Y axes in parent coords by ratio of NewWidth/OldWidth\n double sizeByRatio1 = Math.abs(aWidth)/(Math.abs(x_axis.width) + Math.abs(y_axis.width));\n x_axis.width *= sizeByRatio1; y_axis.width *= sizeByRatio1;\n \n // Scale heights of X & Y axes in parent coords by ratio of NewHeight/OldHeight\n double sizeByRatio2 = Math.abs(aHeight)/(Math.abs(x_axis.height) + Math.abs(y_axis.height));\n x_axis.height *= sizeByRatio2; y_axis.height *= sizeByRatio2;\n\n // Cache current bounds origin (this shouldn't change)\n RMPoint origin = getFrameXY();\n \n // Reset current Skew and convert X & Y axis from parent coords\n setSkewXY(0, 0);\n convertVectorFromShape(x_axis, _parent);\n convertVectorFromShape(y_axis, _parent);\n\n // Set the size to compensate for the skew\n setSize(x_axis.width, y_axis.height);\n\n // Calculate new skew angles (or roll, if width or height is zero)\n if(width()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n else if(height()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n else {\n setSkewX(Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n setSkewY(Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n }\n\n // Reset original bounds origin (it may have been effected by skew changes)\n setFrameXY(origin);\n}",
"@Override\n public void layoutControls() {\n labelArea.setPrefHeight(100);\n labelArea.setMinHeight(70);\n labelArea.setVgrow(nameLabel, Priority.ALWAYS);\n labelArea.setVgrow(powerLabel, Priority.ALWAYS);\n labelArea.setVgrow(titleLabel, Priority.ALWAYS);\n labelArea.setVgrow(startOfOperationFirstLabel, Priority.ALWAYS);\n\n labelArea.getChildren().addAll(titleLabel, nameLabel, powerLabel, startOfOperationFirstLabel);\n HBox.setHgrow(spacer, Priority.ALWAYS);\n\n\n getChildren().addAll(labelArea, spacer, waterControl);\n\n }",
"public abstract BufferedImage scale(Dimension destinationSize);",
"protected \tvoid\t\tcalcPreferredSize(MiSize size)\n\t\t{\n\t\tsuper.calcPreferredSize(size);\n\n\t\tMiDistance labelWidths = 0;\n\t\tMiDistance tickWidth = numTicks * ticks.getWidth() + (numTicks - 1) * tickSpacing;\n\n\t\tif (label != null)\n\t\t\tlabelWidths = label.getWidth();\n\t\tif (valueDisplay != null)\n\t\t\tlabelWidths += valueDisplay.getWidth();\n\t\tif (tickWidth < labelWidths)\n\t\t\tsize.width += labelWidths;\n\t\telse\n\t\t\tsize.width += tickWidth;\n\n\t\tsize.height += ticks.getHeight();\n\t\t}",
"@Override\n\tpublic void handleScale(float scale, int moveYDistance) {\n\t\t scale = 0.6f + 0.4f * scale;\n//\t ViewCompat.setScaleX(mMoocRefreshView, scale);\n//\t ViewCompat.setScaleY(mMoocRefreshView, scale);\n\t}",
"public void setAlignmentY(AlignY anAlignX) { }",
"private void myResize(int newX, int newY, int newW, int newH) {\n int dimMin = conturExt * 2;\n if (newW > dimMin && newH > dimMin) {\n setSize(newW, newH);\n setLocation(newX, newY);\n }\n }",
"@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n w -= getPaddingRight() + getPaddingLeft();\n h -= getPaddingTop() + getPaddingBottom();\n\n int right = w;\n int bottom = h;\n int top = 0;\n int left = 0;\n\n if (mElement != null) {\n // Maintain aspect ratio. Certain kinds of animated drawables\n // get very confused otherwise.\n final int intrinsicWidth = mElement.getIntrinsicWidth();\n final int intrinsicHeight = mElement.getIntrinsicHeight();\n final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight;\n final float boundAspect = (float) w / h;\n if (intrinsicAspect != boundAspect) {\n if (boundAspect > intrinsicAspect) {\n // New width is larger. Make it smaller to match height.\n final int width = (int) (h * intrinsicAspect);\n left = (w - width) / 2;\n right = left + width;\n } else {\n // New height is larger. Make it smaller to match width.\n final int height = (int) (w * (1 / intrinsicAspect));\n top = (h - height) / 2;\n bottom = top + height;\n }\n }\n mElement.setBounds(left, top, right, bottom);\n }\n\n super.onSizeChanged(w, h, oldw, oldh);\n }",
"protected abstract void setSize();",
"@Override\n protected void layoutChildren() {\n super.layoutChildren();\n label.setVisible(label.prefWidth(-1) < getWidth() - getPadding().getLeft() - getPadding().getRight());\n }",
"public void setSize(RMSize aSize) { setSize(aSize.width, aSize.height); }",
"public void centerText() {\r\n int theHeight = window.getGraphPanelHeight() / 2;\r\n int theWidth = window.getGraphPanelWidth() / 2;\r\n int writingHeight = textShape.getHeight() / 2;\r\n int writingWidth = textShape.getWidth() / 2;\r\n textShape.setY(theHeight - writingHeight);\r\n textShape.setX(theWidth - writingWidth);\r\n }",
"protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }",
"void setDimension(double width, double height);",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}",
"public void updateMarker(RectF r, float scale, ImageView markerId) {\n curL = r.left; curT = r.top; curR = r.right; curB = r.bottom;\n Log.e(\"curB\", String.valueOf(r));\n marker = (ImageView) markerId;\n ViewGroup.MarginLayoutParams paramsS = (ViewGroup.MarginLayoutParams) marker.getLayoutParams();\n paramsS.leftMargin = (int) (scale * x*imgSizeX + curL);\n paramsS.topMargin = (int) (scale * y*imgSizeY + curT);\n marker.setLayoutParams(paramsS);\n TextView mCurrScaleTv = (TextView) view.findViewById(R.id.text_scale);\n mCurrScaleTv.setText(Math.round(scale * 1000) / 1000.0 + \", \" + Math.round((curR - curL) * 1000) / 1000.0 + \", \" + Math.round((curB - curT) * 1000) / 1000.0); //for test\n }",
"public void resize() {\r\n\t\tfor (int index = 0; index < buildingIcons.size(); index++) {\r\n\t\t\tGBuildingIcon building = buildingIcons.get(index);\r\n\t\t\tbuilding.setSize(64, 64);\r\n\t\t\tbuilding.setPos(getPositionXForIndex(index), getPositionYForIndex(index));\r\n\t\t}\r\n\t\tupdateHighlight();\r\n\t}",
"private ImageIcon ResizeImage(String imgPath,JLabel label){\n ImageIcon MyImage = new ImageIcon(imgPath);\n Image img = MyImage.getImage();\n Image newImage = img.getScaledInstance(label.getWidth(), label.getHeight(),Image.SCALE_SMOOTH);\n ImageIcon image = new ImageIcon(newImage);\n return image;\n }",
"private void setSize(JComponent target, Dimension d)\n {\n target.setMinimumSize(d);\n target.setMaximumSize(d);\n target.setPreferredSize(d);\n target.setSize(d);\n }",
"public void setReferenceSize( int width, int height ) {\n transformManager.setReferenceSize( width, height );\n scaledComponentLayout.saveSwingComponentCoordinates( 1.0 );\n }",
"void setBounds(double x, double y, double scale) {\n double drawAspect = (double)width / (double)height;\n\n double halfPlotWidth = scale / 2.0;\n double halfPlotHeight = scale / 2.0;\n if (drawAspect > 1.0) {\n halfPlotWidth *= drawAspect;\n } else {\n halfPlotHeight /= drawAspect;\n }\n\n setBounds(x - halfPlotWidth, y - halfPlotHeight, x + halfPlotWidth, y + halfPlotHeight);\n }",
"private void baselineLayout(int origin, int size) {\n int ascent;\n int descent;\n if (baselineAnchoredToTop) {\n ascent = prefAscent;\n descent = size - ascent;\n } else {\n ascent = size - prefDescent;\n descent = prefDescent;\n }\n for (Spring spring : springs) {\n Alignment alignment = spring.getAlignment();\n if (alignment == null || alignment == Alignment.BASELINE) {\n int baseline = spring.getBaseline();\n if (baseline >= 0) {\n int springMax = spring.getMaximumSize(VERTICAL);\n int springPref = spring.getPreferredSize(VERTICAL);\n int height = springPref;\n int y;\n switch(spring.getBaselineResizeBehavior()) {\n case CONSTANT_ASCENT:\n y = origin + ascent - baseline;\n height = Math.min(descent, springMax -\n baseline) + baseline;\n break;\n case CONSTANT_DESCENT:\n height = Math.min(ascent, springMax -\n springPref + baseline) +\n (springPref - baseline);\n y = origin + ascent +\n (springPref - baseline) - height;\n break;\n default: // CENTER_OFFSET & OTHER, not resizable\n y = origin + ascent - baseline;\n break;\n }\n spring.setSize(VERTICAL, y, height);\n } else {\n setChildSize(spring, VERTICAL, origin, size);\n }\n } else {\n setChildSize(spring, VERTICAL, origin, size);\n }\n }\n }",
"public void setPreferredSize( Point size ) {\n checkWidget();\n if ( size == null )\n error( SWT.ERROR_NULL_ARGUMENT );\n setPreferredSize( size.x, size.y );\n }",
"public void reshape(GLAutoDrawable drawable, int x, int y, int w, int h) {}",
"public void scale(int size) {\n chart.resetDimensions(size);\n repaint();\n }",
"public void setSize(float width, float height);",
"private void actionModifySize() {\n CSizePanel csizePanel = new CSizePanel(layoutPanel.getLayoutSize(),\n false);\n int result = JOptionPane.showConfirmDialog(this, csizePanel,\n \"Modify layout size\", JOptionPane.OK_CANCEL_OPTION);\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n try {\n int sizeX = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxX].getText());\n int sizeY = Integer\n .parseInt(csizePanel.tfields[CSizePanel.idxY].getText());\n if (sizeX >= LayoutPanel.minXCells\n && sizeX <= LayoutPanel.maxXCells\n && sizeY >= LayoutPanel.minYCells\n && sizeY <= LayoutPanel.maxYCells) {\n RepType rtype = RepType.CLEAR;\n if (csizePanel.newButton.isSelected()) {\n rtype = RepType.CLEAR;\n } else if (csizePanel.rptButton.isSelected()) {\n rtype = RepType.REPEAT;\n } else if (csizePanel.altButton.isSelected()) {\n rtype = RepType.ALT;\n }\n\n changeLayoutSize(new Dimension(sizeX, sizeY), rtype);\n } else {\n JOptionPane.showMessageDialog(null,\n \"Size x must be between \" + LayoutPanel.minXCells\n + \" and \" + LayoutPanel.maxXCells\n + \", or size y must be between \"\n + LayoutPanel.minYCells + \" and \"\n + LayoutPanel.maxYCells + \".\");\n }\n } catch (NumberFormatException ne) {\n JOptionPane.showMessageDialog(null, \"Invalid number.\");\n }\n }\n }",
"public void updateBounds() {\n this.setBounds(left, top, width, height);\n }",
"public void setAxes(int xPos, int yPos, int axisLength, String xLabel, String yLabel)\n {\n this.xPos= xPos;\n this.yPos= yPos;\n this.xLabel= xLabel;\n this.yLabel= yLabel;\n this.axisLength=axisLength;\n }",
"@Override\n public void componentResized(ComponentEvent e) {\n //throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n int width = this.getWidth();\n this.jButton1.setLocation(width / 4 - this.jButton1.getWidth() / 2, this.jButton1.getY());\n this.jButton2.setLocation(width * 3 / 4 - this.jButton2.getWidth() / 2, this.jButton2.getY());\n this.jButton3.setLocation(width / 2 - this.jButton3.getWidth() / 2, this.jButton3.getY());\n }",
"private LabelLayout labelBounds(Font drawFont, FontRenderContext frc, String txt)\r\n {\r\n String[] lines = txt.split(\"\\\\n\");\r\n double maxW = 0.0;\r\n double maxH = 0.0;\r\n for (String ln : lines)\r\n {\r\n Rectangle2D r = drawFont.createGlyphVector(frc, ln).getLogicalBounds();\r\n maxW = Math.max(maxW, r.getWidth());\r\n maxH = Math.max(maxH, r.getHeight());\r\n }\r\n LabelLayout lay = new LabelLayout();\r\n lay.lineH = maxH;\r\n lay.rect = new Rectangle2D.Double(0.0, 0.0, maxW, maxH * lines.length);\r\n return lay;\r\n }",
"@Override\r\n\tpublic void setBounds(int x, int y, int width, int height) {\r\n\t\tsuper.setBounds(x, y, width, height);\r\n\t\tpv.update();\r\n\t}",
"public void setMinSize(double aWidth, double aHeight) { setMinWidth(aWidth); setMinHeight(aHeight); }",
"void updatePointerPositionLabel(double X, double Y,\n BufferedImage myBufferedImage, ImageView myImage,\n Label pointerPositionLabel) {\n double coefViewReal;\n if (this.getDirection().equals(\"H\"))\n coefViewReal = myImage.getFitHeight() / myBufferedImage.getHeight();\n else // direction \"V\"\n coefViewReal = myImage.getFitWidth() / myBufferedImage.getWidth();\n pointerPositionLabel.setText(\"| x : \" + (int) (X / coefViewReal)\n + \" y : \" + (int) (Y / coefViewReal));\n }",
"private void rescale() {\n this.affineTransform = AffineTransform.getScaleInstance(this.zoom,\n this.zoom);\n int width = (int) ((this.board.getWidth() * 32) * this.zoom);\n int height = (int) ((this.board.getHeight() * 32) * this.zoom);\n this.setPreferredSize(new Dimension(width, height));\n this.repaint();\n }",
"public void setSize(Dimension d) {\n\n\t}",
"private void initSequenceLabels() {\n Font f = new Font(\"Monospaced\", Font.PLAIN, 14);\n FontMetrics fm = this.getFontMetrics(f);\n String html = this.generateHTMLForSequence();\n \n int w = fm.stringWidth(html)+5;\n //w = 80000;\n int h = fm.getHeight();\n \n \n \n original.setFont(f);\n complement.setFont(f);\n basePairs.setFont(f);\n labels.setFont(f);\n\n \n scrollPanePanel.setMaximumSize(new Dimension(w,scrollPanePanel.getHeight()));\n scrollPanePanel.setMinimumSize(new Dimension(w,scrollPanePanel.getHeight()));\n scrollPanePanel.setSize(w, scrollPanePanel.getHeight());\n scrollPanePanel.setPreferredSize(new Dimension(w, scrollPanePanel.getHeight()));\n \n \n original.setMaximumSize(new Dimension(w,h));\n original.setMinimumSize(new Dimension(w,h));\n original.setSize(new Dimension(w,h));\n original.setPreferredSize(new Dimension(w,h));\n original.setText(html);\n \n complement.setMaximumSize(new Dimension(w,h));\n complement.setMinimumSize(new Dimension(w,h));\n complement.setSize(new Dimension(w,h));\n complement.setPreferredSize(new Dimension(w,h));\n \n basePairs.setMaximumSize(new Dimension(w,h));\n basePairs.setMinimumSize(new Dimension(w,h));\n basePairs.setSize(new Dimension(w,h));\n basePairs.setPreferredSize(new Dimension(w,h));\n\n labels.setMaximumSize(new Dimension(w,h));\n labels.setMinimumSize(new Dimension(w,h));\n labels.setSize(new Dimension(w,h));\n labels.setPreferredSize(new Dimension(w,h));\n\n \n \n \n System.out.println(\"max size: \" + original.getMaximumSize());\n System.out.println(w);\n System.out.println(original.getSize());\n \n \n \n \n \n //compute bp\n //note, we are using monospaced\n String b = \"\";\n String l = \"\";\n for(int i = 1; i <= html.length(); i++) {\n\n if(i == 1) {\n b += \"1\";\n l += \"|\";\n }\n else if(i % 10 == 0) {\n b += i;\n l += \"|\";\n }\n else if(i % 10 == 1 && i > 10 && i < 100) {\n b += \"\";\n l += \"-\";\n }\n else if(i % 10 == 1 && i > 100 && i < 999) {\n b += \" \";\n l += \"----\";\n i+=3;\n }\n else if(i % 10 == 1 && i > 1000 && i < 9999) {\n b += \" \";\n l += \"-----\";\n i+=4;\n }\n else {\n b += \" \";\n l += \"-\";\n }\n }\n basePairs.setText(b);\n labels.setText(l);\n \n if(plasmid.isFindingComplementSequence()) {\n plasmid.setLabelWithComplementWhenDone(complement);\n complement.setText(\"Finding complement...\");\n }\n else {\n complement.setText(plasmid.getComplementSequence());\n }\n\n }",
"public void onResizeUniformUpperLeft(FPointType fptPos, float xOffsetScale, float yOffsetScale) {\n float xNewSizeOffset = fptPos.x - fptStart.x;\n float yNewSizeOffset = fptPos.y - fptStart.y;\n \n if (fRectBound.getWidth() != 0.0){\n xScale = 1.0f + xOffsetScale + (xNewSizeOffset / (float)fRectBound.getWidth());\n yScale = xScale;\n } else if (fRectBound.getHeight() != 0.0) {\n yScale = 1.0f + yOffsetScale + (yNewSizeOffset / (float)fRectBound.getHeight());\n xScale = yScale;\n }\n \n resize(xScale, yScale);\n }",
"@Override\n\tpublic void resize(int w, int h) {\n\t\tthis.leveys = w;\n\t\tthis.korkeus = h;\n\t\tthis.batch = new SpriteBatch();\n\t\tthis.ylaPalkinKorkeus = (int) (0.0931 * leveys);\n\n//\t\tskaala = Math.min((float) (w - 50) / 640,\n//\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tskaala = Math.min((float) (w - 50) / 590,\n\t\t\t\t(float) (h - 50 - ylaPalkinKorkeus) / 354f);\n\n\t\t//System.out.println(\"(w - 50) / 640 = \" + w + \" - 50) / 640 = \" + (float) (w - 50) / 640);\n\t\t//System.out.println(\"(h - 50 - ylaPalkinKorkeus) / 370f) = \" + h + \"- 50 - \" + ylaPalkinKorkeus + \") / 370f = \" + (float) (h - 50 - ylaPalkinKorkeus) / 370f);\n\t\tSystem.out.println(\"Fontin skaala: \" + skaala);\n\t\tfont2.setScale(skaala);\n\t\t//font2.setScale(skaala*0.2f);\n\t\t// leveysSkaala = w / 640;\n\t\t// korkeusSkaala = h / 480;\n\n\t}",
"@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\r\n\t\t// 图所占范围大小\r\n\t\tchart.setChartRange(w, h);\r\n\t}",
"@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\n\t\t// save device height width, we use it a lot of places\n\t\tmViewHeight = h;\n\t\tmViewWidth = w;\n\n\t\t// fix up the image\n\t\tsetInitialImageBounds();\n\t}",
"public void onLayout(boolean changed, int left, int top, int right, int bottom) {\n super.onLayout(changed, left, top, right, bottom);\n TiUILabel.this.adjustTextFontSize(this);\n if (proxy != null && proxy.hasListeners(TiC.EVENT_POST_LAYOUT)) {\n proxy.fireEvent(TiC.EVENT_POST_LAYOUT, null, false);\n }\n }",
"public void setLocationAndSize()\n {\n\t welcome.setBounds(150,50,200,30);\n\t amountLabel.setBounds(50,100,150,30);\n\t amountText.setBounds(200,100,150,30);\n\t depositButton.setBounds(150,150,100,30);\n \n \n }",
"public void changeSize(int width, int height) {\n this.width = width;\n this.height = height;\n updateBounds();\n updateChildren();\n }",
"@Override\n public void setBounds(Rectangle bounds) {\n final Rectangle repaintBounds = new Rectangle(getBounds());\n\n final Rectangle newBounds = new Rectangle(ajustOnGrid(bounds.x),\n ajustOnGrid(bounds.y), ajustOnGrid(bounds.width), bounds.height);\n\n newBounds.width = newBounds.width < MINIMUM_SIZE.x ? MINIMUM_SIZE.x\n : newBounds.width;\n\n this.bounds = newBounds;\n\n parent.getScene().repaint(repaintBounds);\n parent.getScene().repaint(newBounds);\n\n // Move graphics elements associated with this component\n leftMovableSquare.setBounds(computeLocationResizer(0));\n rightMovableSquare.setBounds(computeLocationResizer(bounds.width));\n\n setChanged();\n notifyObservers();\n }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void changePosition(int width, int height) {\n this.left = width;\n this.top = height;\n updateBounds();\n updateChildren();\n }",
"public void setComponentBounds(){\n spelerIDLabel.setBounds(40,10,100,40);\n typeLabel.setBounds(40,60,100,40);\n codeLabel.setBounds(40,110,200,40);\n heeftBetaaldLabel.setBounds(40, 160, 200, 40);\n\n spelerIDField.setBounds(250, 10, 100, 40);\n typeField.setBounds(250, 60, 100, 40);\n codeField.setBounds(250, 110, 100, 40);\n heeftBetaaldField.setBounds(250, 160, 100, 40);\n\n terugButton.setBounds(300,260,75,40);\n klaarButton.setBounds(200,260,100,40);\n\n\n\n\n }",
"public void resize(Dimension paramDimension) {\n/* 231 */ resize(paramDimension.width, paramDimension.height);\n/* */ }",
"public ControlSpacer(Dimension dimension)\n {\n myWidth = (int)dimension.getWidth();\n myHeight = (int)dimension.getHeight();\n }",
"@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}",
"public void setSize();",
"public void alignLocation();",
"private void makeSouth() {\r\n final JPanel panel = new JPanel();\r\n panel.setLayout(new BorderLayout());\r\n // JPanel (grid layout?) border.south\r\n\r\n final JLabel imageLabel = new JLabel();\r\n imageLabel.addPropertyChangeListener(\"selected\", null);\r\n final int size = myFrame.getWidth() / 3; \r\n imageLabel.setPreferredSize(new Dimension(size, size));\r\n Icon icon = new ImageIcon();\r\n imageLabel.setIcon(icon);\r\n\r\n // JLabel (left 1/3rd of panel)\r\n final JTextArea infoText = new JTextArea();\r\n infoText.setPreferredSize(new Dimension(size * 2, size));\r\n\r\n // JTextArea (remainder of panel)\r\n panel.add(imageLabel, BorderLayout.WEST);\r\n panel.add(infoText, BorderLayout.EAST);\r\n myFrame.add(panel, BorderLayout.SOUTH);\r\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }"
] | [
"0.63598627",
"0.6258514",
"0.62430376",
"0.6162367",
"0.60718983",
"0.5998164",
"0.5923843",
"0.58438593",
"0.5801641",
"0.5713673",
"0.555801",
"0.5467515",
"0.5460853",
"0.54255974",
"0.5385561",
"0.5377537",
"0.5372596",
"0.53633285",
"0.53508383",
"0.5344178",
"0.531387",
"0.53044635",
"0.53014433",
"0.5287916",
"0.5284374",
"0.5281501",
"0.5278776",
"0.5263893",
"0.52373755",
"0.52345455",
"0.52103406",
"0.5201747",
"0.5185917",
"0.5169489",
"0.51689386",
"0.5154035",
"0.51504946",
"0.5148946",
"0.513697",
"0.5133383",
"0.51264787",
"0.5126099",
"0.5106546",
"0.51024354",
"0.51020324",
"0.50945157",
"0.50929",
"0.5092561",
"0.5079692",
"0.50649875",
"0.50616807",
"0.50615877",
"0.5051555",
"0.50462186",
"0.504111",
"0.50392705",
"0.503775",
"0.5035649",
"0.5031766",
"0.5014",
"0.5010718",
"0.50049627",
"0.49983203",
"0.49971727",
"0.4977714",
"0.4974586",
"0.4972532",
"0.49722484",
"0.49680018",
"0.49651504",
"0.49642393",
"0.4949547",
"0.49475825",
"0.49468416",
"0.49468312",
"0.4944984",
"0.49418968",
"0.49344945",
"0.4933922",
"0.49250144",
"0.4924696",
"0.49198598",
"0.4918024",
"0.49170053",
"0.49161938",
"0.49160948",
"0.49125314",
"0.49122897",
"0.4908231",
"0.49071887",
"0.48995337",
"0.48965278",
"0.48951918",
"0.48906103",
"0.48902634",
"0.48895857",
"0.4888284",
"0.4887021",
"0.48828012",
"0.48683706",
"0.48673165"
] | 0.0 | -1 |
Scales the dimensions of the label to fit its parent's boundaries, then multiplying the value by the given factor. | public void transform( final float factor ) {
final var compDimen = new ScalableDimension( getParentBounds() );
transform( compDimen.scale( factor ) );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void scale(double factor);",
"public void scale(Point P, int scaleFactor) {\n\n\n }",
"public void rescale(double newFactor) {\n\t\tthis.branchScale = branchScale*newFactor;\n\t\t\n\t\tfor(Node n : root.getOffspring()) {\n\t\t\trescale( (DrawableNode)n);\n\t\t}\n\t}",
"public void scale(double factor) {\r\n for (int i = 0; i < components.length; i++) {\r\n components[i] *= factor;\r\n }\r\n }",
"public void scale(float val) {\r\n\t\tx *= val;\r\n\t\ty *= val;\r\n\t\tz *= val;\r\n\t}",
"public void scale(double s);",
"public void setScale(double value) {\n this.scale = value;\n }",
"void setMaxScale(int value);",
"private void rescaleLabels() {\n // TJJ Nov 2018 - make sure labels scale correct on any changes\n // to the ring display\n ViewManager vm = getViewManager();\n rangeRings.setLabelSize(vm.getMaster().getDisplayScale());\n }",
"@Override\n public Double scalingFactor() {\n return 1.55d;\n }",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public Vector scale(double factor) {\n\t\treturn new Vector(deltaX * factor, deltaY * factor);\n\t}",
"protected void scale(EntityInstance e, double wf, double hf, boolean doContainer, boolean doPos)\r\n\t{\n\r\n\t\tif (doContainer) {\r\n\t\t\tdouble x1, y1, w1, h1; \r\n\r\n\t\t\tx1 = e.xRelLocal();\t\t\r\n\t\t\ty1 = e.yRelLocal();\r\n\t\t\tw1 = e.widthRelLocal() * wf;\r\n\t\t\th1 = e.heightRelLocal() * hf;\r\n\r\n\t\t\tif (doPos) {\r\n\t\t\t\tx1 *= wf;\r\n\t\t\t\ty1 *= hf;\r\n\t\t\t}\r\n\t\t\tupdateRelLocal(e, x1, y1, w1, h1);\r\n\t\t} else {\r\n\t\t\tEnumeration\t\ten;\r\n\t\t\tEntityInstance\te1;\r\n\r\n\t\t\tfor (en = e.getChildren(); en.hasMoreElements(); ) {\r\n\t\t\t\te1 = (EntityInstance) en.nextElement();\r\n\t\t\t\tscale(e1, wf, hf, true, true);\r\n\t\t}\t}\r\n\t}",
"public int scale(int original);",
"public void scale(float x, float y);",
"public void setScaleFactor(float scaleFactor) {\n\t\ttrueCoreRadius *= scaleFactor;\n\t\ttruePetalRadius *= scaleFactor;\n\t\tcoreRadius = (int) trueCoreRadius;\n\t\tpetalRadius = (int) truePetalRadius;\n\t\tthis.scaleFactor *= scaleFactor;\n\t}",
"void scaleArea(float scaleFactor) {\n\t\t// for more advanced (more than 4 points), use this algorithm:\n\t\t// http://stackoverflow.com/questions/1109536/an-algorithm-for-inflating-deflating-offsetting-buffering-polygons\n\t\tfor (int i = 0; i < amount; i++) {\n\t\t\tPVector tmp = PVector.sub(point[i].position, anchor);\n\t\t\ttmp.mult(scaleFactor);\n\t\t\tpoint[i].position.set(PVector.add(anchor, tmp));\n\t\t}\n\t}",
"public void setLabelScaling(float fLabelScaling) {\n\t\tthis.fLabelScaling = fLabelScaling;\n\t}",
"public T scale( double val ) {\n T ret = createLike();\n ops.scale(mat, val, ret.getMatrix());\n return ret;\n }",
"@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }",
"public void setScale(float scale);",
"public void displayScaled(float scaleFactor) {\n pushMatrix();\n scale(scaleFactor);\n shape(fullCar);\n popMatrix();\n }",
"public void setScaleX(double aValue)\n{\n if(aValue==getScaleX()) return;\n repaint();\n firePropertyChange(\"ScaleX\", getRSS().scaleX, getRSS().scaleX = aValue, -1);\n}",
"void onScaleChange(float scaleFactor, float focusX, float focusY);",
"public void scale(float scalar) {\n\t\tthis.scale(scalar, scalar);\n\t}",
"public void zoom(final double factor) {\n\t\tdouble oldScale = scene.getScalingFactor();\n\t\tdouble newScale = oldScale * (1 + factor);\n\t\tscene.setScalingFactor(newScale);\n\t\tif (orientation == Orientation.VERTICAL) {\n\t\t\tdouble before = -offset.getY() / oldScale + getSize().getHeight() / 2 / oldScale;\n\t\t\tdouble after = -offset.getY() / newScale + getSize().getHeight() / 2 / newScale;\n\t\t\toffset.translate(0, (int) Math.round((after - before) * newScale));\n\t\t} else {\n\t\t\tdouble before = -offset.getX() / oldScale + getSize().getWidth() / 2 / oldScale;\n\t\t\tdouble after = -offset.getX() / newScale + getSize().getWidth() / 2 / newScale;\n\t\t\toffset.translate((int) Math.round((after - before) * newScale), 0);\n\t\t}\n\t\trepaint();\n\t}",
"protected void rescale(DrawableNode n) {\n\t\tfor(Node kid : n.getOffspring()) {\n\t\t\trescale((DrawableNode)kid);\n\t\t}\n\t\t\n\t\tdouble angle = angleFromParent(n);\n\t\t\n\t\tPoint newPos;\n\t\tif (hasBranchLengths && ! ignoreBranchLengths)\n\t\t\tnewPos = translatePoint( ((DrawableNode)n.getParent()).getPosition(), angle, n.getDistToParent()*branchScale);\n\t\telse\n\t\t\tnewPos = translatePoint( ((DrawableNode)n.getParent()).getPosition(), angle, branchScale );\n\t\t\n\t\tnewPos.x -= n.getX();\n\t\tnewPos.y -= n.getY();\n\t\tshiftClade(n, newPos);\n\t}",
"private void scaleBatteryMeterViews() {\n Resources res = getContext().getResources();\n TypedValue typedValue = new TypedValue();\n\n res.getValue(R.dimen.status_bar_icon_scale_factor, typedValue, true);\n float iconScaleFactor = typedValue.getFloat();\n\n int batteryHeight = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_height);\n int batteryWidth = res.getDimensionPixelSize(R.dimen.status_bar_battery_icon_width);\n int marginBottom = res.getDimensionPixelSize(R.dimen.battery_margin_bottom);\n\n LinearLayout.LayoutParams scaledLayoutParams = new LinearLayout.LayoutParams(\n (int) (batteryWidth * iconScaleFactor), (int) (batteryHeight * iconScaleFactor));\n scaledLayoutParams.setMargins(0, 0, 0, marginBottom);\n\n mBatteryIconView.setLayoutParams(scaledLayoutParams);\n FontSizeUtils.updateFontSize(mBatteryPercentView, R.dimen.qs_time_expanded_size);\n }",
"public Point scale(int factor) {\n\t\tint scaledX = x * factor;\n\t\tint scaledY = y * factor;\n\t\treturn new Point(scaledX, scaledY);\n\t}",
"private double scalex(double x) {\n return x/scalingFactor;\n }",
"public void setScaleFactor(float scale){\n scaleFactor = scale;\n }",
"public void setScaleY(double aValue)\n{\n if(aValue==getScaleY()) return;\n repaint();\n firePropertyChange(\"ScaleY\", getRSS().scaleY, getRSS().scaleY = aValue, -1);\n}",
"public void zoom(double factor) {\n //Check whether we zooming in or out for adjusting the zoomLvl field\n //Scale the graphic and pan accordingly\n if(factor>1 && zoomLevel!=20) {\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomIn();\n }else if(zoomLevel!=0 && factor<1){\n transform.preConcatenate(AffineTransform.getScaleInstance(factor, factor));\n pan(getWidth() * (1 - factor) / 2, getHeight() * (1 - factor) / 2);\n checkForZoomOut();\n }\n }",
"public float getScale();",
"public Coordinates scaleVector(Coordinates vector, double factor);",
"public static Vector scale(Vector v, double factor) {\r\n Vector w = new Vector(v);\r\n w.scale(factor);\r\n return w;\r\n }",
"double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n }\n if (index > 16) {\n index = 16;\n }\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n return dScale;\n }",
"public Vector scale(double factor){\n\t\treturn new Vector(x*factor, y*factor, z*factor);\n\t}",
"public void setWidth(double aValue)\n{\n if(_width==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n firePropertyChange(\"Width\", _width, _width = aValue, -1); // Set value and fire PropertyChange\n if(_parent!=null) _parent.setNeedsLayout(true); // Rather bogus\n}",
"public void scaleModel(float f){\n\t\tfor(int i = 0; i < point.length; i++)\n\t\t\tpoint[i].mul(f);\n\t\tmodSize.mul(f);\n\t}",
"int getScale();",
"public void scaleBy(float scale) {\n internalGroup.scaleBy(scale);\n dataTrait.scaleX = internalGroup.getScaleX();\n dataTrait.scaleY = internalGroup.getScaleY();\n resetSprite();\n\n }",
"public void setDrawScale(Vector2 value) {\n \tsetDrawScale(value.x,value.y); \n\t}",
"public void updateScale()\n {\n // get scale from world presenter\n s2 = (cam.getScale());\n //Convert to English Miles if appropriate\n if( !SettingsScreen.getUnits() ) s2 *= 0.60934;\n s1 = s2/2;\n repaint();\n }",
"void setQuantizerScale(int value)\n {\n quantizerScale = value;\n }",
"@Override\n protected int computeHeight(Rectangle bounds, double scale, int offset)\n {\n return PrecisionUtilities.round((LABEL_HEIGHT + 2 /*+ (2 * offset) */) * scale);\n }",
"@Override\n public void scale(double x, double y) {\n graphicsEnvironmentImpl.scale(canvas, x, y);\n }",
"public void scale(Vector center, float degree);",
"public void autoscale()\n\t\t{\n\t\tdouble maxFC=1;\n\t\tdouble minP=-1;\n\t\t\n\t\tfor(int i=0;i<de.getNumGenes();i++)\n\t\t\t{\n\t\t\tdouble f=Math.abs(de.fc[i]);\n\t\t\tdouble p=de.logP[i];\n\t\t\tif(f>maxFC)\n\t\t\t\tmaxFC=f;\n\t\t\tif(p<minP)\n\t\t\t\tminP=p;\n\t\t\t}\n\t\tmaxFC*=1.2;\n\t\tminP*=1.2;\n\t\tscaleFC=1/maxFC;\n\t\tscaleP=-1/minP;\n\t\t}",
"private void doModifyFontSize(Style style, float baseFactor, int baseFontSize)\n\t{\n\t\tInteger thisValue = (Integer)get1Attribute(style,StyleConstants.FontSize);\n\t\t// TODO use CSS.Attributes\n\n\t\tif (thisValue==null) {\n // empty, or inherited from parent\n }\n\t\telse\n {\n\t\t\tint thisSize = thisValue.intValue();\n\t\t\t/** is there already a multiplication factor defined ?\n\t\t\t * if so - use it !\n\t\t\t */\n\t\t\tfloat thisFactor = JoFontConstants.getFontScaleFactor(style);\n\t\t\tif (thisFactor <= 0) {\n\t\t\t\tthisFactor = (float)thisSize/baseFontSize;\n\t\t\t\tJoFontConstants.setFontScaleFactor(style,thisFactor);\n\t\t\t}\n\n\t\t\tint newValue = Math.round(thisFactor*baseFactor*baseFontSize);\n\t\t\tif (newValue < 1) newValue = 1;\n\t\t\tStyleConstants.setFontSize(style,newValue);\n\t\t}\n\n\t\t/** recurse to children */\n\t\tList children = getChildren(style);\n\t\tif (children!=null) {\n\t\t\tIterator i = children.iterator();\n\t\t\twhile (i.hasNext())\n\t\t\t\tdoModifyFontSize((Style)i.next(), baseFactor, baseFontSize);\n\t\t}\n\t}",
"@Override\n public void setContentScaleFactor(double v) {\n super.setContentScaleFactor(1);\n }",
"public void rescale()\r\n\t{\n\t}",
"public void handle(ActionEvent ae) {\n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n }",
"double scaleInput(double dVal) {\n double[] scaleArray = { 0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00 };\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n if (index < 0) {\n index = -index;\n } else if (index > 16) {\n index = 16;\n }\n\n double dScale = 0.0;\n if (dVal < 0) {\n dScale = -scaleArray[index];\n } else {\n dScale = scaleArray[index];\n }\n\n return dScale;\n }",
"public void scale(double rhs) {\n\n\t\tthis.r *= rhs;\n\t\tthis.g *= rhs;\n\t\tthis.b *= rhs;\n\t}",
"void setLabelString() {\n int pad = 5; // fudge to make up for variable width fonts\n float maxVal = Math.max(Math.abs(min), Math.abs(max));\n intDigits = Math.round((float) (Math.log(maxVal) / Math.log(10))) + pad;\n if (min < 0) {\n intDigits++; // add one for the '-'\n }\n // fractDigits is num digits of resolution for fraction. Use base 10 log\n // of scale, rounded up, + 2.\n fractDigits = (int) Math.ceil((Math.log(scale) / Math.log(10)));\n nf.setMinimumFractionDigits(fractDigits);\n nf.setMaximumFractionDigits(fractDigits);\n String value = nf.format(current);\n while (value.length() < (intDigits + fractDigits)) {\n value = value + \" \";\n }\n valueLabel.setText(value);\n }",
"void setFontScale(\n float s);",
"public abstract BufferedImage scale(Dimension destinationSize);",
"public void scaleBckgrd()\n {\n //Scaling Image for lbl_Bckgrd (Main Background)\n lbl_Bckgrd.setSize(this.getWidth(), this.getHeight());\n ImageIcon ic_Bckgrd = new ImageIcon(getClass().getResource(\"/resources/bckgrd_Student.jpg\"));\n Image img_Bckgrd = ic_Bckgrd.getImage();\n Image imgScaled_Bckgrd = img_Bckgrd.getScaledInstance(lbl_Bckgrd.getWidth(), lbl_Bckgrd.getHeight(), Image.SCALE_SMOOTH);\n ImageIcon scaled_Bckgrd = new ImageIcon(imgScaled_Bckgrd);\n lbl_Bckgrd.setIcon(scaled_Bckgrd);\n }",
"@Override\n protected void afterAttach(){\n\n float scaleE = (float) Math.pow(toValue, 1.0 / totalIterations);\n scaleTransform.updateValues(scaleE, scaleE, scaleE);\n }",
"void scalePointProportionally2() {\n\t\tmyParent.fill(255, 0, 0);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[2]].position.x, point[neighbor(selectedPoint)[2]].position.y, 30,\n\t\t\t\t30);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[1]].position.x, point[neighbor(selectedPoint)[1]].position.y, 20,\n\t\t\t\t20);\n\t\tmyParent.ellipse(point[neighbor(selectedPoint)[0]].position.x, point[neighbor(selectedPoint)[0]].position.y, 10,\n\t\t\t\t10);\n\t\t// offsetP = PVector.sub(P, beginP); // calculate the offset made by P\n\t\tdiagonal.detectX(P); // aka find X\n\t\t// diagonal.offsetX = PVector.sub(diagonal.X, diagonal.beginX); //\n\t\t// calculate the offset made by X\n\t\tdiagonal.end = PVector.add(diagonal.beginEnd, diagonal.offsetX);\n\t\tdiagonalScaleFactor = diagonal.start.dist(diagonal.X) / diagonal.start.dist(diagonal.beginX);\n\t\tpoint[selectedPoint].position.set(diagonal.end);\n\n\t\t// scale neighbors\n\t\tPVector leftNeighbor = new PVector();\n\t\tPVector rightNeighbor = new PVector();\n\t\tPVector opposite = new PVector();\n\t\tleftNeighbor.set(point[neighbor(selectedPoint)[0]].beginPosition);\n\t\trightNeighbor.set(point[neighbor(selectedPoint)[1]].beginPosition);\n\t\topposite.set(point[neighbor(selectedPoint)[2]].beginPosition);\n\n\t\tleftNeighbor.sub(opposite);\n\t\tleftNeighbor.mult(diagonalScaleFactor);\n\t\tleftNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[0]].position.set(leftNeighbor);\n\n\t\trightNeighbor.sub(opposite);\n\t\trightNeighbor.mult(diagonalScaleFactor);\n\t\trightNeighbor.add(opposite);\n\t\tpoint[neighbor(selectedPoint)[1]].position.set(rightNeighbor);\n\t}",
"public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }",
"private double scaleJoystick(double val, JoystickSens sens) {\n if(sens == JoystickSens.LINEAR) return val;\n else if(sens == JoystickSens.SQUARED) return Math.signum(val) * Math.pow(val, 2);\n else if(sens == JoystickSens.CUBED) return Math.pow(val, 3);\n else if(sens == JoystickSens.TESSERACTED) return Math.signum(val) * Math.pow(val, 4);\n else if(sens == JoystickSens.SINE) return Math.sin(val * (Math.PI / 2));\n else return val;\n }",
"public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}",
"public void setScale(double n) {\n\n\t}",
"public void scaleArrow(float scalar) {\n\t\tarrow.scale(scalar);\n\t}",
"@Override\n public float getScale() {\n return scale;\n }",
"public Coordinates scaleVector(Coordinates vector, double factor, Coordinates origin);",
"@Override\n protected float getDownScaleFactor() {\n return (float) 5.0;\n }",
"public void increaseSize(int delta){\n\t\tif(scale < scaleMax)\n\t\t\tscale += enlarge * delta;\n\t}",
"public float sizeMultiplier();",
"@Override\n\tpublic void handleScaledCFComponent(CFComponent component) {\n\n\t}",
"public double getScale(){\n\t\treturn scale;\n\t}",
"private Float scale(Float datapoint){\n\n float range = (float)(20 * (max / Math.log(max)));\n range-=min;\n float scalar = DisplayImage.IMAGE_SIZE_SCALAR / range;\n\n if(nightMode){\n datapoint = (float) (100 * (datapoint / Math.log(datapoint)));\n datapoint *= scalar*5;\n }else {\n datapoint = (float) (20* (datapoint / Math.log(datapoint)));\n datapoint *= scalar;\n }\n\n return datapoint;\n }",
"@Override public void update(float dt)\n\t{\n\t\tthis.setScale((this.getScale().getX() + 0.1f) * 0.99f, (this.getScale().getY() + 0.1f) * 0.99f);\n\n\n\t}",
"static double scaleInput(double dVal)\n {\n double[] scaleArray = {0.0, 0.05, 0.09, 0.10, 0.12, 0.15, 0.18, 0.24,\n 0.30, 0.36, 0.43, 0.50, 0.60, 0.72, 0.85, 1.00, 1.00};\n\n // get the corresponding index for the scaleInput array.\n int index = (int) (dVal * 16.0);\n\n // index should be positive.\n if (index < 0)\n {\n index = -index;\n }\n\n // index cannot exceed size of array minus 1.\n if (index > 16)\n {\n index = 16;\n }\n\n // get value from the array.\n double dScale;\n if (dVal < 0)\n {\n dScale = -scaleArray[index];\n }\n else\n {\n dScale = scaleArray[index];\n }\n\n // return scaled value.\n return dScale;\n }",
"public void setScale(double d) {\n\t\tdisp.setScale(d);\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}",
"public void transform() {\n final var bounds = getParentBounds();\n transform( bounds.width, bounds.height );\n }",
"public void beginScaling() {\n xScale = 1.0f;\n yScale = 1.0f;\n }",
"public void scale(float scalarX, float scalarY) {\n\t\ttile.scale(scalarX, scalarY);\n\t\tarrow.scale(scalarX, scalarY);\n\t}",
"void scalePartials(int iNode) {\n \tdouble [] fPartials = m_fPartials[m_iCurrentPartials[iNode]][iNode];\n \tint k = fPartials.length;\n \tfor (int v = 0; v < k; v++) {\n \t\tfPartials[v] *= SCALE;\n \t}\n }",
"void setScale(ScaleSelector sensor, int scaleNo);",
"public float spiderScaleAmount()\n {\nreturn 1F;\n }",
"private void setScale() {\n this.particleScale = (1 - ((float) slowTime / 50)) * (1.5f * (float) offset);\n }",
"private void scaleFrames(RMShape aShape, int aStartTime, float aFactor)\n{\n // If shape timeline available, have it scale records\n if(aShape.getTimeline()!=null) {\n \n // Scale timeline records\n aShape.getTimeline().scaleRecords(aStartTime, aFactor);\n \n // Reset time\n resetShapeTimeline(aShape);\n }\n \n // Forward scale frames on to shape children\n for(int i=0, iMax=aShape.getChildCount(); i<iMax; i++)\n scaleFrames(aShape.getChild(i), aStartTime, aFactor);\n}",
"public double getScale() {\n return scale;\n }",
"@Override\n public void scale(double x, double y, double z) {\n GL11.glScaled(x, y, z);\n }",
"@Override\n public void transformCanvas(Canvas canvas, float percentOpen) {\n float scale = (float) (percentOpen * 0.25 + 0.75);\n canvas.scale(scale, scale, 0, canvas.getHeight() / 2);\n }",
"public final Shape scale(Vector fromPoint, Vector toPoint, Vector anchorPoint) {\n\t\treturn transform(new Scalation(fromPoint, toPoint, anchorPoint));\n\t}",
"public void scaleRecipe(double newSize, String newUnits) {\n \t\tdouble currentSize = getPostBoilVol(getVolUnits());\n \t\tcurrentSize = Quantity.convertUnit(getVolUnits(), newUnits, currentSize);\n \t\tdouble conversionFactor = newSize / currentSize;\n \n \t\tif (conversionFactor != 1) {\n \t\t\tsetPostBoil(newSize);\n \t\t\tsetVolUnits(newUnits);\n \n \t\t\t// TODO: figure out a way to make sure old IBU = new IBU\n \t\t\tfor (int i = 0; i < getHopsListSize(); i++) {\n \t\t\t\tHop h = getHop(i);\n \t\t\t\th.setAmount(h.getAmountAs(h.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tfor (int i = 0; i < getMaltListSize(); i++) {\n \t\t\t\tFermentable f = getFermentable(i);\n \t\t\t\tf.setAmount(f.getAmountAs(f.getUnits()) * conversionFactor);\n \t\t\t}\n \t\t\tcalcHopsTotals();\n \t\t\tcalcMaltTotals();\n \n \t\t}\n \t}",
"public int getScale(){\n return scale;\n }",
"public Coordinate scale(double num) {\n return new Coordinate(uscale(_coord, num));\n }",
"public void handleIncreaseLengthPowerup(){\n myRectangle.setWidth(myRectangle.getWidth()*increaseLengthPowerupSizeFactor);\n myLength=(int)(myLength*increaseLengthPowerupSizeFactor);\n }",
"public double getScale() {\r\n return scale;\r\n }",
"public void scale(double sx, double sy)\r\n\t{\r\n\t\t// System.out.println(\"scale\");\r\n\t}",
"public double getScale() {\n return this.scale;\n }",
"public int getScaleValue() {\r\n return ScaleValue;\r\n }",
"public void scale( float x, float y )\n\t{\n\t\tMatrix4f opMat = new Matrix4f();\n\t\topMat.setScale( x );\n\t\tmat.mul( opMat );\n\t}",
"public void scaleAnimetion(SpriteBatch batch){\n }"
] | [
"0.65898544",
"0.6095427",
"0.6080471",
"0.6073372",
"0.58383626",
"0.5832363",
"0.57077014",
"0.5658275",
"0.5630474",
"0.56298435",
"0.5627958",
"0.5614429",
"0.54993916",
"0.54993176",
"0.5479493",
"0.5464382",
"0.5457549",
"0.541703",
"0.5410349",
"0.54092073",
"0.5341351",
"0.532281",
"0.5316653",
"0.5259066",
"0.5257862",
"0.525747",
"0.5255701",
"0.5246232",
"0.5230916",
"0.5230507",
"0.52228814",
"0.52216494",
"0.5205863",
"0.51978993",
"0.5185086",
"0.5177113",
"0.5175563",
"0.51607245",
"0.51583725",
"0.51576847",
"0.5154657",
"0.5153413",
"0.5152363",
"0.5150504",
"0.5149124",
"0.5141988",
"0.5128522",
"0.5123295",
"0.51195127",
"0.5117198",
"0.5115376",
"0.51121217",
"0.5105393",
"0.50954443",
"0.5090558",
"0.5077591",
"0.5074727",
"0.5066329",
"0.5062009",
"0.50553685",
"0.5055038",
"0.50493634",
"0.5041806",
"0.5036776",
"0.5034276",
"0.5022352",
"0.5020268",
"0.50200826",
"0.5016846",
"0.5015376",
"0.5014907",
"0.499292",
"0.49839514",
"0.4979404",
"0.49703375",
"0.49638638",
"0.49574897",
"0.49554795",
"0.49356267",
"0.4934419",
"0.49284735",
"0.4924057",
"0.49240068",
"0.4918315",
"0.4917538",
"0.4917429",
"0.49122977",
"0.4910768",
"0.4908807",
"0.49074635",
"0.4907436",
"0.49071193",
"0.4902775",
"0.48988876",
"0.4897174",
"0.4896304",
"0.48893788",
"0.48885402",
"0.4878209",
"0.48781374"
] | 0.7227268 | 0 |
Scales the dimensions of the label to fit its parent's boundaries, while maintaining the aspect ratio, then relocate the label with respect to the vertical and horizontal alignment. | public void transform() {
final var bounds = getParentBounds();
transform( bounds.width, bounds.height );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void rescaleLabels() {\n // TJJ Nov 2018 - make sure labels scale correct on any changes\n // to the ring display\n ViewManager vm = getViewManager();\n rangeRings.setLabelSize(vm.getMaster().getDisplayScale());\n }",
"@Override\r\n protected void layout() {\n\r\n Check.setY(this.getHalfHeight() - Check.getHalfHeight());\r\n\r\n float asc = lblName.getFont().getDescent();\r\n\r\n lblName.setY(this.getHeight() - lblName.getHeight() + asc);\r\n lblName.setX(this.getLeftWidth());\r\n }",
"@Override\n protected void layoutChildren() {\n super.layoutChildren();\n label.setVisible(label.prefWidth(-1) < getWidth() - getPadding().getLeft() - getPadding().getRight());\n }",
"@Override\n\tpublic void relocate()\n\t{\n\n\t\tint w = 380, h = 65;\n\t\tint x = (this.getWidth() - w) / 2, y = (this.getHeight() - h) / 2;\n\n\t\tfullRevisionLabel.setLocation(x, y);\n\t\tfullRevisionField.setLocation(x + 280, y);\n\n\t\tminimumCommonSequenceLabel.setLocation(x, y + 40);\n\t\tminimumCommonSequenceField.setLocation(x + 280, y + 40);\n\t}",
"@Override\n protected void positionChanged () {\n\n\n valueLabel.setPosition( this.getX() + ((this.getScaleX() * this.getWidth() - valueLabel.getScaleX() * valueLabel.getWidth()) / 2),\n this.getY() + ((this.getScaleY() * this.getHeight() - valueLabel.getScaleY() * valueLabel.getHeight()) / 2) );\n }",
"public void setLabelSize(int labelSize)\n {\n myLabelSize = labelSize;\n }",
"public void setBounds(int x, int y, int width, int height) \n\t{\n\t\tsuper.setBounds(x, y, width, height);\n\t\tfm = getFontMetrics(getFont());\n\t\ttitleHeight = fm.getHeight();\n\t\tyLabelWidth = fm.stringWidth(yLabel);\n\t\txLabelHeight = fm.getHeight();\n\t\t\n\t\tlabelWidth = Math.max(fm.stringWidth(Integer.valueOf(min).toString()),\n\t\t\t\t\t\t\t\t\t\t\t\t\tfm.stringWidth(Integer.valueOf(max).toString())) + 2;\n\t\ttop = padding + titleHeight;\n\t\tbottom = getSize().height - padding - xLabelHeight - fm.getHeight();\n\t\tleft = padding + yLabelWidth;\n\t\tright = getSize().width - padding;\n\t}",
"@Override\r\n public void setAlignmentY(float f) {\r\n super.setAlignmentY(JLabel.CENTER_ALIGNMENT);\r\n }",
"public WrappingLabelLayout( Element element ){\r\n super(element);\r\n }",
"public void updateBounds(){\r\n\t\tRectangle bounds = new Rectangle(super.getBounds());\r\n\t\tint preferredHeight = 0;\r\n\t\tfor(Object child : getChildren()){\r\n\t\t\tIFigure figure = (IFigure)child;\r\n\t\t\tpreferredHeight += figure.getPreferredSize().height;\r\n\t\t}\r\n\t\tif (preferredHeight == 0) preferredHeight = 200;\r\n\t\tbounds.setHeight(preferredHeight+20);\r\n\t\tsetBounds(bounds);\r\n\t}",
"public void setLabelPosition(int x, int y);",
"private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }",
"@Override\n public void componentResized(final ComponentEvent e) {\n buttonWidth = position.isHorizontal() ? 150 : (parent.getWidth() / cells);\n relayout();\n }",
"private void componentPositionAdjustment() {\n // set the y position of each element\n AnchorPane.setTopAnchor(nameLabel, 30.0);\n AnchorPane.setTopAnchor(name, 30.0);\n AnchorPane.setTopAnchor(fiberLabel, 70.0);\n AnchorPane.setTopAnchor(proteinLabel, 110.0);\n AnchorPane.setTopAnchor(fatLabel, 150.0);\n AnchorPane.setTopAnchor(caloriesLabel, 190.0);\n AnchorPane.setTopAnchor(carbohydrateLabel, 230.0);\n AnchorPane.setTopAnchor(fiber, 70.0);\n AnchorPane.setTopAnchor(calories, 190.0);\n AnchorPane.setTopAnchor(fat, 150.0);\n AnchorPane.setTopAnchor(carbohydrate, 230.0);\n AnchorPane.setTopAnchor(protein, 110.0);\n AnchorPane.setTopAnchor(id, 270.0);\n AnchorPane.setTopAnchor(idLabel, 270.0);\n AnchorPane.setTopAnchor(confirm, 310.0);\n AnchorPane.setTopAnchor(cancel, 310.0);\n // set the x position of each element\n AnchorPane.setLeftAnchor(fiberLabel, 20.0);\n AnchorPane.setLeftAnchor(proteinLabel, 20.0);\n AnchorPane.setLeftAnchor(fatLabel, 20.0);\n AnchorPane.setLeftAnchor(caloriesLabel, 20.0);\n AnchorPane.setLeftAnchor(carbohydrateLabel, 20.0);\n AnchorPane.setLeftAnchor(nameLabel, 20.0);\n AnchorPane.setLeftAnchor(idLabel, 20.0);\n AnchorPane.setLeftAnchor(name, 120.0);\n AnchorPane.setLeftAnchor(fiber, 120.0);\n AnchorPane.setLeftAnchor(calories, 120.0);\n AnchorPane.setLeftAnchor(fat, 120.0);\n AnchorPane.setLeftAnchor(id, 120.0);\n AnchorPane.setLeftAnchor(carbohydrate, 120.0);\n AnchorPane.setLeftAnchor(protein, 120.0);\n AnchorPane.setLeftAnchor(confirm, 50.0);\n AnchorPane.setLeftAnchor(cancel, 200.0);\n }",
"private void alignCenter(int newWidth) {\n for (Shape child : shape.getChildren()) {\n GraphicsAlgorithm ga = child.getGraphicsAlgorithm();\n int diff = (newWidth - ga.getWidth()) / 2;\n gaService.setLocation(ga, ga.getX() + diff, ga.getY());\n }\n }",
"public void onChildAlignChanged(GuiElementBase element, Direction direction)\n\t\t{ expandToFitChildren(direction); }",
"public ModernAutoSizeLabel(String text, int width) {\r\n super(text, width);\r\n }",
"@Override\n public void onSizeChanged(int w, int h, int oldW, int oldH) {\n // Set the movement bounds for the ballParent\n box.set(0, 0, w, h);\n }",
"private void setupLabelUI(Label l, String ff, double f, double w, Pos p, double x, double y) {\n\t\tl.setFont(Font.font(ff, f));\n\t\tl.setMinWidth(w);\n\t\tl.setAlignment(p);\n\t\tl.setLayoutX(x);\n\t\tl.setLayoutY(y);\n\t}",
"public ModernAutoSizeLabel(String text, Dimension size) {\r\n super(text, size);\r\n }",
"private JPanel getPackSizeLabel() {\n\t\tif (packSizePanel == null) {\n packSizeLabel = new JLabel();\n\t\t\tpackSizeLabel.setText(\"Размер колоды \");\n FlowLayout flowLayout = new FlowLayout();\n\t\t\tflowLayout.setAlignment(FlowLayout.LEFT);\n\t\t\tpackSizePanel = new JPanel();\n\t\t\tpackSizePanel.setLayout(flowLayout);\n\t\t\tpackSizePanel.add(packSizeLabel, null);\n\t\t\tpackSizePanel.add(getColoda(), null);\n\t\t}\n\t\treturn packSizePanel;\n\t}",
"private void reDimensionar(JLabel label, ImageIcon grafico) {\n\t\tImage image = grafico.getImage();\n\t\tif (image != null) {\n\t\t\tImage newimg = image.getScaledInstance(label.getWidth(), label.getHeight(), java.awt.Image.SCALE_SMOOTH);\n\t\t\tgrafico.setImage(newimg);\n\t\t\tlabel.setIcon(grafico);\n\t\t\tlabel.repaint();\n\t\t}\n\t}",
"private void layout() {\n \n // Disable redrawing\n toolbar.setRedraw(false);\n\n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n labelAttribute.setText(labelAttribute.getText());\n labelTransformations.setText(labelTransformations.getText());\n labelApplied.setText(labelApplied.getText());\n labelSelected.setText(labelSelected.getText());\n labelAttribute.pack();\n labelTransformations.pack();\n labelApplied.pack();\n labelSelected.pack();\n \n // Adjust size of items and composite\n Rectangle bounds = toolbar.getBounds();\n int remaining = toolbar.getBounds().width;\n for (final ToolItem item : toolitems) {\n remaining -= item.getBounds().width;\n }\n remaining -= OFFSET;\n infoComposite.setSize(remaining, bounds.height);\n infoItem.setWidth(remaining);\n int locationY = (infoComposite.getBounds().height - labelSelected.getBounds().height)/2;\n\n // Layout label\n int locationX = remaining - labelApplied.getSize().x;\n labelApplied.setLocation(locationX, locationY);\n if (locationX < 0) labelApplied.setVisible(false);\n else labelApplied.setVisible(true);\n \n // Layout label\n locationX -= labelSelected.getSize().x + OFFSET;\n labelSelected.setLocation(locationX, locationY);\n if (locationX < 0) labelSelected.setVisible(false);\n else labelSelected.setVisible(true);\n\n // Layout label\n locationX -= labelTransformations.getSize().x + OFFSET;\n labelTransformations.setLocation(locationX, locationY);\n if (locationX < 0) labelTransformations.setVisible(false);\n else labelTransformations.setVisible(true);\n \n\n // Layout label\n locationX -= labelAttribute.getSize().x + OFFSET;\n labelAttribute.setLocation(locationX, locationY);\n if (locationX < 0) labelAttribute.setVisible(false);\n else labelAttribute.setVisible(true);\n \n // Redraw\n toolbar.setRedraw(true);\n toolbar.redraw();\n \n // Fix rendering issues on MacOS Catalina\n // This seems to enforce an otherwise lost redraw\n infoComposite.pack(true);\n }",
"@Override\n public void layoutControls() {\n labelArea.setPrefHeight(100);\n labelArea.setMinHeight(70);\n labelArea.setVgrow(nameLabel, Priority.ALWAYS);\n labelArea.setVgrow(powerLabel, Priority.ALWAYS);\n labelArea.setVgrow(titleLabel, Priority.ALWAYS);\n labelArea.setVgrow(startOfOperationFirstLabel, Priority.ALWAYS);\n\n labelArea.getChildren().addAll(titleLabel, nameLabel, powerLabel, startOfOperationFirstLabel);\n HBox.setHgrow(spacer, Priority.ALWAYS);\n\n\n getChildren().addAll(labelArea, spacer, waterControl);\n\n }",
"public void paintHere(Component c, Graphics g, int x, int y, int width, int height) {\n if (height <= 0 || width <= 0) {\n return;\n }\n\n label.updateUI();\n\n // Paint the JLabel into an image buffer...\n BufferedImage buffer = new BufferedImage(height, width, BufferedImage.TYPE_INT_ARGB_PRE);\n Graphics2D g2 = buffer.createGraphics();\n label.setSize(new Dimension(height, width));\n label.paint(g2);\n\n // ...then apply a transform while painting the buffer into the component\n AffineTransform af = AffineTransform.getTranslateInstance(clockwise ? x + width : x, clockwise ? y : y + height);\n AffineTransform af2 = AffineTransform.getRotateInstance(clockwise ? RotatedLabel.NINETY_DEGREES : -RotatedLabel.NINETY_DEGREES);\n af.concatenate(af2);\n\n ((Graphics2D) g).drawImage(buffer, af, this);\n }",
"public void childResized(int w, int h) {\n Component c = ((Container)target).getComponent(0);\n c.setLocation(c.getX() - 2, c.getY() - 2);\n\n if(scrollbarDisplayPolicy == ScrollPane.SCROLLBARS_AS_NEEDED) {\n childResizedNative(w, h); // 6228838\n }\n\n // Removed the scrollbar workaround for gtk.\n }",
"void childResized(int w, int h);",
"@Override\r\n protected void layoutChildren () {\r\n /* Custom children positioning */\r\n super.layoutChildren();\r\n\r\n if (noDataIcon.isVisible()) {\r\n noDataIcon.relocate((getWidth() - noDataIcon.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - noDataIcon.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (innerContainer != null) {\r\n innerContainer.relocate((getWidth() - innerContainer.getLayoutBounds().getWidth()) / 2,\r\n (getHeight() - innerContainer.getLayoutBounds().getHeight()) / 2);\r\n }\r\n\r\n if (currentIcon != null) {\r\n currentIcon.relocate(\r\n suffixLabel.getBoundsInParent().getMinX() + innerContainer.getBoundsInParent().getMinX(),\r\n suffixLabel.getBoundsInParent().getMinY() + innerContainer.getBoundsInParent().getMinY()\r\n - currentIcon.getLayoutBounds().getHeight() + 2);\r\n }\r\n\r\n }",
"private void setCorrectSize() {\n double newHeight = this.getContentPane().getPreferredSize().getHeight() +\n this.getContentPane().getPreferredSize().getHeight()/10 * 7;\n int newHeightInt = (int)Math.round(newHeight);\n \n this.setSize(this.getWidth(),newHeightInt);\n }",
"public void updateBounds() {\n this.setBounds(left, top, width, height);\n }",
"@Override\n protected int computeHeight(Rectangle bounds, double scale, int offset)\n {\n return PrecisionUtilities.round((LABEL_HEIGHT + 2 /*+ (2 * offset) */) * scale);\n }",
"public static void main(String[] args)\n {\n JFrame frame = new JFrame();\n\n final MoveableShape shape\n = new CarShape(0, 50, CAR_WIDTH);\n\n final ShapeIcon icon = new ShapeIcon(shape,\n ICON_WIDTH, ICON_HEIGHT);\n\n final JLabel label = new JLabel(icon);\n\n //https://docs.oracle.com/javase/tutorial/uiswing/components/slider.html\n JSlider carSizer = new JSlider(JSlider.HORIZONTAL, 0, 400, 100);\n carSizer.setMajorTickSpacing(100);\n carSizer.setMinorTickSpacing(10);\n carSizer.setPaintTicks(true);\n carSizer.setPaintLabels(true);\n carSizer.addChangeListener(\n // Observable/Observer is deprecated. Instead of using update()\n e -> shape.setWidth(carSizer.getValue())\n );\n //carSize.addChangeListener();\n\n frame.setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.Y_AXIS));\n frame.add(label);\n frame.add(carSizer);\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n\n final int DELAY = 10; // NOTE: Changed from 100ms to 10ms\n // milliseconds between timer ticks\n Timer t = new Timer(DELAY, event -> {\n //Set car on ground (and keep tires from clipping)\n shape.setY(label.getHeight() - shape.getWidth() / 2 - 1);\n\n // If the left edge of the shape has gone past the right edge of the frame\n if (shape.getX() > frame.getWidth()){ //Should this be label width instead?\n //Move the shape left by frame width + shape width\n shape.translate(-1 * (frame.getWidth() + shape.getWidth()), 0);\n }\n else {\n //original code:\n shape.translate(1, 0);\n }\n\n label.repaint();\n });\n t.start();\n }",
"@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}",
"private void updateSize() {\n double width = pane.getWidth();\n double height = pane.getHeight();\n\n if(oldWidth == 0) {\n oldWidth = width;\n }\n if(oldHeight == 0) {\n oldHeight = height;\n }\n\n double oldHvalue = pane.getHvalue();\n double oldVvalue = pane.getVvalue();\n if(Double.isNaN(oldVvalue)) {\n oldVvalue = 0;\n }\n if(Double.isNaN(oldHvalue)) {\n oldHvalue = 0;\n }\n\n pane.setVmax(height);\n pane.setHmax(width);\n\n if(grow) {\n renderMapGrow(width, height, curZoom);\n } else {\n renderMap(width, height, curZoom);\n }\n\n pane.setVvalue((height/oldHeight)*oldVvalue);\n pane.setHvalue((width/oldWidth)*oldHvalue);\n\n oldWidth = width;\n oldHeight = height;\n }",
"public void centerText() {\r\n int theHeight = window.getGraphPanelHeight() / 2;\r\n int theWidth = window.getGraphPanelWidth() / 2;\r\n int writingHeight = textShape.getHeight() / 2;\r\n int writingWidth = textShape.getWidth() / 2;\r\n textShape.setY(theHeight - writingHeight);\r\n textShape.setX(theWidth - writingWidth);\r\n }",
"public void setSizeLabel(String value) {\n setAttributeInternal(SIZELABEL, value);\n }",
"@Override\n\tprotected void changeSize(int x, int y, int previousX, int previousY) {\n this.setWidth(this.getWidth()+(x-previousX));\n this.setHeight(this.getHeight()+(y-previousY));\n this.setX(this.getX()+(x-previousX));\n\t}",
"protected void drawLabel(Canvas canvas, String labelText, DefaultRenderer renderer,\r\n List<RectF> prevLabelsBounds, int centerX, int centerY, float shortRadius, float longRadius,\r\n float currentAngle, float angle, int left, int right, Paint paint) {\r\n if (renderer.isShowLabels()) {\r\n paint.setColor(renderer.getLabelsColor());\r\n double rAngle = Math.toRadians(90 - (currentAngle + angle / 2));\r\n double sinValue = Math.sin(rAngle);\r\n double cosValue = Math.cos(rAngle);\r\n int x1 = Math.round(centerX + (float) (shortRadius * sinValue));\r\n int y1 = Math.round(centerY + (float) (shortRadius * cosValue));\r\n int x2 = Math.round(centerX + (float) (longRadius * sinValue));\r\n int y2 = Math.round(centerY + (float) (longRadius * cosValue));\r\n\r\n float size = renderer.getLabelsTextSize();\r\n float extra = Math.max(size / 2, 10);\r\n paint.setTextAlign(Align.LEFT);\r\n if (x1 > x2) {\r\n extra = -extra;\r\n paint.setTextAlign(Align.RIGHT);\r\n }\r\n float xLabel = x2 + extra;\r\n float yLabel = y2;\r\n float width = right - xLabel;\r\n if (x1 > x2) {\r\n width = xLabel - left;\r\n }\r\n labelText = getFitText(labelText, width, paint);\r\n float widthLabel = paint.measureText(labelText);\r\n boolean okBounds = false;\r\n while (!okBounds) {\r\n boolean intersects = false;\r\n int length = prevLabelsBounds.size();\r\n for (int j = 0; j < length && !intersects; j++) {\r\n RectF prevLabelBounds = prevLabelsBounds.get(j);\r\n if (prevLabelBounds.intersects(xLabel, yLabel, xLabel + widthLabel, yLabel + size)) {\r\n intersects = true;\r\n yLabel = Math.max(yLabel, prevLabelBounds.bottom);\r\n }\r\n }\r\n okBounds = !intersects;\r\n }\r\n\r\n y2 = (int) (yLabel - size / 2);\r\n canvas.drawLine(x1, y1, x2, y2, paint);\r\n canvas.drawLine(x2, y2, x2 + extra, y2, paint);\r\n canvas.drawText(labelText, xLabel, yLabel, paint);\r\n prevLabelsBounds.add(new RectF(xLabel, yLabel, xLabel + widthLabel, yLabel + size));\r\n }\r\n }",
"@Override\r\n public Dimension getPreferredSize() {\n \r\n return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());\r\n }",
"public FramedPane( String message ) {\n\t\tthis();\n\t\tLabel label = new Label( message );\n\t\tlabel.layoutXProperty().bind( this.widthProperty().divide( 2 ).subtract( label.widthProperty().divide( 2 ) ) );\n\t\tlabel.layoutYProperty()\n\t\t\t\t.bind( this.heightProperty().divide( 2 ).subtract( label.heightProperty().divide( 2 ) ) );\n\t\tthis.getChildren().addAll( label );\n\t}",
"private LabelLayout labelBounds(Font drawFont, FontRenderContext frc, String txt)\r\n {\r\n String[] lines = txt.split(\"\\\\n\");\r\n double maxW = 0.0;\r\n double maxH = 0.0;\r\n for (String ln : lines)\r\n {\r\n Rectangle2D r = drawFont.createGlyphVector(frc, ln).getLogicalBounds();\r\n maxW = Math.max(maxW, r.getWidth());\r\n maxH = Math.max(maxH, r.getHeight());\r\n }\r\n LabelLayout lay = new LabelLayout();\r\n lay.lineH = maxH;\r\n lay.rect = new Rectangle2D.Double(0.0, 0.0, maxW, maxH * lines.length);\r\n return lay;\r\n }",
"protected int doLayout(int x_, int y, int w_, boolean ignoreContent) {\n \tint x = x_;\n \tint w = w_;\n \tint hAlign = getHAlign();\n\n \tif(hAlign == Graphics.HCENTER){\n \t\tint h = 0;\n \t\tif(image != null){\n \t\t\timgX = x + (w - image.getWidth()/imgCols) / 2;\n \t\t\timgY = y;\n \t\t\th += image.getHeight() / imgRows;\n \t\t}\n\n \t\tif(labelTextObj != null){\n \t\t\tif(h != 0) {\n \t\t\t\th += KDisplay.BORDER / 2;\n \t\t\t}\n\n \t\t\trectLabel.x = x;\n \t\t\trectLabel.y = y + h;\n \t\t\trectLabel.w = w;\n \t\t\tformattedLabel = new WordWrap(getLabelStyle(getState()), labelTextObj.toString(), w);\n \t\t\th += formattedLabel.getHeight();\n \t\t}\n\n \t\tif(!ignoreContent){\n \t\t\tcontentH = getPrefContentHeight(w);\n \t\t\tif(contentH != 0){\n \t\t\t\tcontentX = x;\n\n \t\t\t\tif(h != 0) {\n \t\t\t\t\th += KDisplay.BORDER;\n \t\t\t\t}\n\n \t\t\t\tcontentY = y+h;\n \t\t\t\th += contentH;\n \t\t\t\tcontentW = w;\n \t\t\t}\n \t\t}\n\n \t\treturn h;\n \t}\n\n\t\tint imgH = 0;\n\t\tint txtH = 0;\n\n\t\tint fullWidth = w;\n\t\tint cutAwayWidth = 0;\n\t\tint cutAwayHeight = 0;\n\n\t\tint imgDelta = 0;\n\n\t\tif( image != null ) {\n\t\t\timgX = x;\n\t\t\timgY = y;\n\n\t\t\t//\n\t\t\t// Check for special case in tag <a>. If the image is an arrow then\n\t\t\t// the label is full fullWidth, next line is image and then the text.\n\t\t\tif( image == KDisplay.SYMBOLS || itemType == KItem.TYPE_INDENT) {\n\t\t\t\timgY += 1;\n\t\t\t\tif( labelTextObj != null ) {\n\n \t\t\trectLabel.x = x;\n \t\t\trectLabel.y = y;\n \t\t\trectLabel.w = w;\n \t\t\tformattedLabel = new WordWrap(getLabelStyle(getState()), labelTextObj.toString(), w);\n \t\t\timgY += formattedLabel.getHeight() + KDisplay.BORDER;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//\n\t\t\t\t// Default is center the image horizontal\n \t\t\timgDelta = image.getWidth()/imgCols + KDisplay.BORDER;\n// \t\t\tx += delta;\n// \t\t\tw -= delta;\n \t\t\tcutAwayWidth = imgDelta;\n\t\t\t}\n\t\t\timgH = image.getHeight() / imgRows;\n\t\t\tcutAwayHeight = imgH;\n\t\t}\n\n\t\tif(labelTextObj != null){\n\t\t\trectLabel.x = x + imgDelta;\n\t\t\trectLabel.y = y;\n\t\t\trectLabel.w = w;\n\t\t\tformattedLabel = new WordWrap(getLabelStyle(getState()), labelTextObj.toString(), w - imgDelta);\n\t\t\ttxtH = formattedLabel.getHeight();\n\t\t}\n\n\t\tif(!ignoreContent){\n\n\t\t\t//\n\t\t\t// Check for special case in tag <a>. If the image is an arrow then\n\t\t\t// the label is full fullWidth, next line is image and then the text.\n\t\t\tif( image == KDisplay.SYMBOLS || itemType == KItem.TYPE_INDENT) {\n \t\t\tint delta = image.getWidth()/imgCols + KDisplay.BORDER;\n \t\t\tx += delta;\n \t\t\tw -= delta;\n \t\t\tfullWidth -= delta;\n\t\t\t}\n\n\t\t\tcontentH = getPrefContentHeight(fullWidth, cutAwayWidth, cutAwayHeight);\n\t\t\tif(contentH != 0){\n\t\t\t\tcontentX = x;\n\t\t\t\tif(txtH != 0){\n\t\t\t\t\ttxtH += KDisplay.BORDER;\n\t\t\t\t}\n\t\t\t\tcontentY = y + txtH;\n\t\t\t\ttxtH += contentH;\n\t\t\t\tcontentW = w;\n\t\t\t}\n\t\t}\n\n\t\tint h = Math.max(imgH, txtH);\n\n//\t\tif(getVAlign() == Graphics.VCENTER){\n//\n//\t\t\tif( img0 != KDisplay.ICON_ARROW_OFF ) {\n//\t\t\t\timgY += (h - imgH) / 2;\n//\t\t\t}\n//\t\t\tlabelY += (h - txtH) / 2;\n//\t\t\tcontentY += (h - txtH) / 2;\n//\t\t}\n\n\t\treturn h;\n }",
"protected void adjustSize() {\r\n fieldDim = mineField.getSquareLength() * mineField.getFieldLength();\r\n setSize( fieldDim + X_BORDER * 2, fieldDim + Y_BORDER * 3 );\r\n validate();\r\n }",
"public void layoutContainer(Container parent) {\n // Step 1: Prepare for layout.\n prepare(SPECIFIC_SIZE);\n Insets insets = parent.getInsets();\n int width = parent.getWidth() - insets.left - insets.right;\n int height = parent.getHeight() - insets.top - insets.bottom;\n boolean ltr = isLeftToRight();\n if (getAutoCreateGaps() || getAutoCreateContainerGaps() ||\n hasPreferredPaddingSprings) {\n // Step 2: Calculate autopadding springs\n calculateAutopadding(horizontalGroup, HORIZONTAL, SPECIFIC_SIZE, 0,\n width);\n calculateAutopadding(verticalGroup, VERTICAL, SPECIFIC_SIZE, 0,\n height);\n }\n // Step 3: set the size of the groups.\n horizontalGroup.setSize(HORIZONTAL, 0, width);\n verticalGroup.setSize(VERTICAL, 0, height);\n // Step 4: apply the size to the components.\n for (ComponentInfo info : componentInfos.values()) {\n info.setBounds(insets, width, ltr);\n }\n }",
"public void setLblWidth(int width) {\n lblWidth = width;\n }",
"public void adjustSize() {\r\n /*\r\n * Calculate target width: max of header, adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetWidth = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(headerBar.getOffsetWidth(),\r\n contentWidget.getOffsetWidth(), getWidth()\r\n - TOTAL_BORDER_THICKNESS);\r\n /*\r\n * Calculate target height: max of adjusted window, content\r\n * \r\n * TODO: restrict to available desktop space\r\n */\r\n int targetHeight = TOTAL_BORDER_THICKNESS\r\n + MathUtils.maxInt(contentWidget.getOffsetHeight(), getHeight()\r\n - TOTAL_BORDER_THICKNESS - headerBar.getOffsetHeight());\r\n\r\n setPixelSize(targetWidth, targetHeight);\r\n }",
"public void scaleBckgrd()\n {\n //Scaling Image for lbl_Bckgrd (Main Background)\n lbl_Bckgrd.setSize(this.getWidth(), this.getHeight());\n ImageIcon ic_Bckgrd = new ImageIcon(getClass().getResource(\"/resources/bckgrd_Student.jpg\"));\n Image img_Bckgrd = ic_Bckgrd.getImage();\n Image imgScaled_Bckgrd = img_Bckgrd.getScaledInstance(lbl_Bckgrd.getWidth(), lbl_Bckgrd.getHeight(), Image.SCALE_SMOOTH);\n ImageIcon scaled_Bckgrd = new ImageIcon(imgScaled_Bckgrd);\n lbl_Bckgrd.setIcon(scaled_Bckgrd);\n }",
"@Override\n\tpublic String extendCode(String initialSvgString, Label label) {\n\n\t\t//comment\n\t\tString commentString = createComment(label);\n\n\t\t//label image\n\t\tString imageSvgString = createImageSvgStringFromLabel(label);\n\n\t\t//text\n\t\tString text = label.getText();\n\n\t\t//background color\n\t\tString backgroundFill = determineBackgroundFill(label);\n\t\tboolean hasBackground = backgroundFill != null;\n\n\t\t//x & y\n\t\tList<Node> childNodes = label.getChildrenUnmodifiable();\n\t\tText textNode = null;\n\t\tfor (Node childNode : childNodes) {\n\t\t\tboolean isText = childNode instanceof Text;\n\t\t\tif (isText) {\n\t\t\t\ttextNode = (Text) childNode;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tObjects.requireNonNull(textNode, \"Could not retrive Text node from Label.\");\n\n\t\tBounds bounds = label.getBoundsInParent();\n\t\tDouble xl = bounds.getMinX();\n\t\tDouble yl = bounds.getMinY();\n\n\t\tBounds textBounds = textNode.getBoundsInParent();\n\t\tDouble xt = textBounds.getMinX();\n\t\tDouble yt = textBounds.getMinY();\n\n\t\tDouble x = xl + xt;\n\t\tDouble yField = yl + yt;\n\n\t\t//Bounds bounds = label.getBoundsInParent();\n\t\t//Double x = bounds.getMinX();\n\t\tboolean hasImage = !imageSvgString.isEmpty();\n\t\tif (hasImage) {\n\t\t\tNode image = label.getGraphic();\n\t\t\tDouble xOffset = image.getBoundsInParent().getMaxX();\n\t\t\tx = x + xOffset;\n\t\t}\n\t\tDouble baseLineOffset = label.getBaselineOffset();\n\t\tDouble y = yField + baseLineOffset;\n\n\t\t//font\n\t\tFont font = label.getFont();\n\t\tString fontFamily = font.getFamily();\n\t\tDouble fontSize = font.getSize();\n\n\t\t//font color\n\t\tPaint textFill = label.getTextFill();\n\t\tString fill = paintToColorString(textFill);\n\n\t\t//text anchor (horizontal alignment)\n\t\tSvgTextAnchor textAnchor = determineTextAnchor(label);\n\n\t\t//comment\n\t\tString svgString = commentString;\n\n\t\t//<rect> start\n\t\tboolean wrapInRect = hasImage || hasBackground;\n\t\tif (wrapInRect) {\n\t\t\tsvgString = includeRectStartTag(svgString, imageSvgString, backgroundFill, hasBackground, textBounds);\n\t\t}\n\n\t\t//<text> start\n\t\tsvgString = includeTextStartTag(svgString, x, y, fontFamily, fontSize, fill, textAnchor);\n\n\t\t//<text> content\n\t\tsvgString = svgString + text;\n\n\t\t//<text> end\n\t\tsvgString = svgString + \"</text>\\n\\n\";\n\n\t\t//<rect> end\n\t\tif (wrapInRect) {\n\t\t\tdecreaseIndentation();\n\t\t\tsvgString = includeRectEndTag(svgString);\n\t\t}\n\n\t\treturn svgString;\n\n\t}",
"private void fixLayoutSize(View view, ViewGroup parent) {\n trace();\n int widthSpec = View.MeasureSpec.makeMeasureSpec(parent.getWidth(),\n View.MeasureSpec.EXACTLY);\n int heightSpec = View.MeasureSpec.makeMeasureSpec(parent.getHeight(),\n View.MeasureSpec.UNSPECIFIED);\n\n int childWidth = ViewGroup.getChildMeasureSpec(widthSpec,\n parent.getPaddingLeft() + parent.getPaddingRight(),\n view.getLayoutParams().width);\n int childHeight = ViewGroup.getChildMeasureSpec(heightSpec,\n parent.getPaddingTop() + parent.getPaddingBottom(),\n view.getLayoutParams().height);\n\n view.measure(childWidth, childHeight);\n\n view.layout(0, 0, view.getMeasuredWidth(), view.getMeasuredHeight());\n }",
"private void layoutSwingComponents( double scale ) {\n// Component[] components = component.getComponents();\n// for( int i = 0; i < components.length; i++ ) {\n// Component component = components[i];\n// Point origLocation = (Point)componentOrgLocationsMap.get( component );\n// if( origLocation != null ) {\n// Point newLocation = new Point( (int)( origLocation.getX() * scale ), (int)( origLocation.getY() * scale ) );\n// component.setLocation( newLocation );\n// }\n// }\n }",
"private void makeSouth() {\r\n final JPanel panel = new JPanel();\r\n panel.setLayout(new BorderLayout());\r\n // JPanel (grid layout?) border.south\r\n\r\n final JLabel imageLabel = new JLabel();\r\n imageLabel.addPropertyChangeListener(\"selected\", null);\r\n final int size = myFrame.getWidth() / 3; \r\n imageLabel.setPreferredSize(new Dimension(size, size));\r\n Icon icon = new ImageIcon();\r\n imageLabel.setIcon(icon);\r\n\r\n // JLabel (left 1/3rd of panel)\r\n final JTextArea infoText = new JTextArea();\r\n infoText.setPreferredSize(new Dimension(size * 2, size));\r\n\r\n // JTextArea (remainder of panel)\r\n panel.add(imageLabel, BorderLayout.WEST);\r\n panel.add(infoText, BorderLayout.EAST);\r\n myFrame.add(panel, BorderLayout.SOUTH);\r\n }",
"private void updateContainerPositionOnControlBoxCollision(\n\t\t\tLabelContainer labelContainer, float fXCenter) {\n\n\t\tif (rectControlBox != null) {\n\t\t\tif (rectControlBox.getMinY() > labelContainer.getTop())\n\t\t\t\treturn;\n\t\t\tif (rectControlBox.getMaxY() < labelContainer.getBottom())\n\t\t\t\treturn;\n\t\t\tif (rectControlBox.getMinX() > labelContainer.getRight())\n\t\t\t\treturn;\n\t\t\tif (rectControlBox.getMaxX() < labelContainer.getLeft())\n\t\t\t\treturn;\n\t\t}\n\n\t\tif (labelContainer.getLeft() < fXCenter) {\n\t\t\tlabelContainer.setContainerPosition(rectControlBox.getMaxX()\n\t\t\t\t\t+ LEFT_CONTAINER_SPACING, labelContainer.getYContainerCenter());\n\t\t} else {\n\t\t\tlabelContainer.setContainerPosition(rectControlBox.getMinX()\n\t\t\t\t\t- RIGHT_CONTAINER_SPACING - labelContainer.getWidth(),\n\t\t\t\t\tlabelContainer.getYContainerCenter());\n\t\t}\n\t}",
"public void expand(){\n\t\tsetBounds(getX()-getWidth()/4, getY(), getWidth() * 1.5f, getHeight());\n\t\tcollisionBounds.setWidth(getWidth());\n\t}",
"private void baselineLayout(int origin, int size) {\n int ascent;\n int descent;\n if (baselineAnchoredToTop) {\n ascent = prefAscent;\n descent = size - ascent;\n } else {\n ascent = size - prefDescent;\n descent = prefDescent;\n }\n for (Spring spring : springs) {\n Alignment alignment = spring.getAlignment();\n if (alignment == null || alignment == Alignment.BASELINE) {\n int baseline = spring.getBaseline();\n if (baseline >= 0) {\n int springMax = spring.getMaximumSize(VERTICAL);\n int springPref = spring.getPreferredSize(VERTICAL);\n int height = springPref;\n int y;\n switch(spring.getBaselineResizeBehavior()) {\n case CONSTANT_ASCENT:\n y = origin + ascent - baseline;\n height = Math.min(descent, springMax -\n baseline) + baseline;\n break;\n case CONSTANT_DESCENT:\n height = Math.min(ascent, springMax -\n springPref + baseline) +\n (springPref - baseline);\n y = origin + ascent +\n (springPref - baseline) - height;\n break;\n default: // CENTER_OFFSET & OTHER, not resizable\n y = origin + ascent - baseline;\n break;\n }\n spring.setSize(VERTICAL, y, height);\n } else {\n setChildSize(spring, VERTICAL, origin, size);\n }\n } else {\n setChildSize(spring, VERTICAL, origin, size);\n }\n }\n }",
"@Override\n protected void onSizeChanged(int w, int h, int oldw, int oldh) {\n w -= getPaddingRight() + getPaddingLeft();\n h -= getPaddingTop() + getPaddingBottom();\n\n int right = w;\n int bottom = h;\n int top = 0;\n int left = 0;\n\n if (mElement != null) {\n // Maintain aspect ratio. Certain kinds of animated drawables\n // get very confused otherwise.\n final int intrinsicWidth = mElement.getIntrinsicWidth();\n final int intrinsicHeight = mElement.getIntrinsicHeight();\n final float intrinsicAspect = (float) intrinsicWidth / intrinsicHeight;\n final float boundAspect = (float) w / h;\n if (intrinsicAspect != boundAspect) {\n if (boundAspect > intrinsicAspect) {\n // New width is larger. Make it smaller to match height.\n final int width = (int) (h * intrinsicAspect);\n left = (w - width) / 2;\n right = left + width;\n } else {\n // New height is larger. Make it smaller to match width.\n final int height = (int) (w * (1 / intrinsicAspect));\n top = (h - height) / 2;\n bottom = top + height;\n }\n }\n mElement.setBounds(left, top, right, bottom);\n }\n\n super.onSizeChanged(w, h, oldw, oldh);\n }",
"protected void configureWest(LayoutOptions parent){\n LayoutOptions childOptions = new LayoutOptions(); \n parent.setChildOptions(childOptions); \n \n LayoutOptions north = createOptions(childOptions, CardinalPoint.NORTH); \n setAttribute(north, \"size\", \"150\");\n fixed(north);\n LayoutOptions center = createOptions(childOptions, CardinalPoint.CENTER); \n setAttribute(center, \"overflow\", \"scroll\");\n\t}",
"public void setFrameSize(double aWidth, double aHeight)\n{\n // If shape not rotated, scaled or skewed, just set and return\n if(!isRSS()) {\n if(_width<0) { setX(_x + (aWidth+_width)); aWidth = -aWidth; }\n if(_height<0) { setY(_y + (aHeight+_height)); aHeight = -aHeight; }\n setSize(aWidth, aHeight); return;\n }\n \n // Convert X & Y axis to parent coords\n RMSize x_axis = convertVectorToShape(new RMSize(_width, 0), _parent);\n RMSize y_axis = convertVectorToShape(new RMSize(0, _height), _parent);\n\n // Scale widths of X & Y axes in parent coords by ratio of NewWidth/OldWidth\n double sizeByRatio1 = Math.abs(aWidth)/(Math.abs(x_axis.width) + Math.abs(y_axis.width));\n x_axis.width *= sizeByRatio1; y_axis.width *= sizeByRatio1;\n \n // Scale heights of X & Y axes in parent coords by ratio of NewHeight/OldHeight\n double sizeByRatio2 = Math.abs(aHeight)/(Math.abs(x_axis.height) + Math.abs(y_axis.height));\n x_axis.height *= sizeByRatio2; y_axis.height *= sizeByRatio2;\n\n // Cache current bounds origin (this shouldn't change)\n RMPoint origin = getFrameXY();\n \n // Reset current Skew and convert X & Y axis from parent coords\n setSkewXY(0, 0);\n convertVectorFromShape(x_axis, _parent);\n convertVectorFromShape(y_axis, _parent);\n\n // Set the size to compensate for the skew\n setSize(x_axis.width, y_axis.height);\n\n // Calculate new skew angles (or roll, if width or height is zero)\n if(width()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n else if(height()==0)\n setRoll(getRoll() - Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n else {\n setSkewX(Math.toDegrees(Math.atan(x_axis.height/x_axis.width)));\n setSkewY(Math.toDegrees(Math.atan(y_axis.width/y_axis.height)));\n }\n\n // Reset original bounds origin (it may have been effected by skew changes)\n setFrameXY(origin);\n}",
"@Override\n protected void onLayout(boolean changed, int left, int top, int right, int bottom) {\n// int childLeft = getPaddingLeft();\n// int childRight = right - left - getPaddingRight();\n// int childTop = getPaddingTop();\n// int childBottom = bottom - top - getPaddingBottom();\n//\n// int tempLeftBottom = childTop + leftLabel.getMeasuredHeight();\n// leftLabel.item_personal_center_prefix(childLeft, childTop, childRight, tempLeftBottom);\n// childTop += leftLabel.getMeasuredHeight();\n//\n// int tempRightTop = childBottom - rightLebel.getMeasuredHeight();\n// rightLebel.item_personal_center_prefix(childLeft, tempRightTop, childRight, childBottom);\n// childBottom -= rightLebel.getMeasuredHeight();\n//\n//\n// inputEdit.item_personal_center_prefix(childLeft, childTop, childRight, childBottom);\n int childLeft = getPaddingLeft();\n int childTop = getPaddingTop();\n int childBottom = leftLabel.getMeasuredHeight();\n int w = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n int h = View.MeasureSpec.makeMeasureSpec(0, View.MeasureSpec.UNSPECIFIED);\n leftLabel.measure(w, h);\n inputEdit.measure(w, h);\n rightLebel.measure(w, h);\n divider.measure(w, h);\n\n int childRight = leftLabel.getMeasuredWidth();\n leftLabel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft += leftLabel.getMeasuredWidth();\n childRight = right - getPaddingRight() - rightLebel.getMeasuredWidth();\n childBottom = inputEdit.getMeasuredHeight();\n inputEdit.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = right - rightLebel.getMeasuredWidth() - getPaddingRight();\n childRight = right - getPaddingRight();\n childBottom = rightLebel.getMeasuredHeight();\n rightLebel.layout(childLeft, childTop, childRight, childBottom);\n\n childLeft = getPaddingLeft();\n childRight= right - getPaddingRight();\n childTop = getPaddingTop() + inputEdit.getMeasuredHeight();\n childBottom = childTop + 1;\n divider.layout(childLeft, childTop + dividerPadding, childRight, childBottom);\n }",
"void setShapeLabel(String Label);",
"public void resize() {\n\t\tsp.doLayout();\n\t}",
"public MyJLabel() {\n super(\" \");\n this.setOpaque(true);\n this.setPreferredSize(new Dimension(10,10));\n }",
"public void updateLayoutData() {\n\t\tint height;\n\t\tint width;\n\t\tif (isVisible() && !text.trim().equals(\"\")) {\n\t\t\tif (styleRanges == null) {\n\t\t\t\tPoint p = Util.getExtentInGC(getFont(), text);\n\t\t\t\twidth = p.x;\n\t\t\t\theight = p.y;\n\t\t\t} else {\n\t\t\t\tRectangle r = textLayout.getBounds();\n\t\t\t\twidth = r.width;\n\t\t\t\theight = r.height;\n\t\t\t}\n\t\t} else {\n\t\t\twidth = 0;\n\t\t\theight = 0;\n\t\t}\n\n\t\tif (isHorizontal()) {\n\t\t\tsetLayoutData(new ChartLayoutData(width, height));\n\t\t} else {\n\t\t\tsetLayoutData(new ChartLayoutData(height, width));\n\t\t}\n\t}",
"public void refresh() {\n\t\tpack();\n\t\tint titleWidth = (int)(getFontMetrics(getFont()).stringWidth(getTitle()) * 1.5);\n\t\tsetMinimumSize(new Dimension(titleWidth, 50));\n\t\tsetLocationRelativeTo(this.getOwner());\n\t}",
"@Override\n\tprotected void onLayout(boolean changed, int l, int t, int r, int b) {\n\t\tint childTop = 0;\n\t\tint childLeft = 0;\n\t\tint childWidth = 0;\n\t\tint childHeight = 0;\n\t\tint count = getChildCount();\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tView child = this.getChildAt(i);\n\t\t\tif (child.getVisibility() == View.GONE)\n\t\t\t\tcontinue;\n\t\t\tif (child instanceof RankImageView) {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = (int) (original_width * scale);\n\t\t\t\tchildHeight = (int) (original_height * scale);\n\t\t\t} else if (child instanceof TextView) {\n\t\t\t\tTextView tv = (TextView) child;\n\t\t\t\tchildTop = (int) (original_height * scale + name_spacing);\n\t\t\t\tchildLeft = (int) bp.getStrokeWidth();\n\t\t\t\tchildWidth = (int) (original_width * scale - 2 * bp.getStrokeWidth());\n\t\t\t\tchildHeight = (int) this.getFontHeight(tv.getPaint());\n\t\t\t} else {\n\t\t\t\tchildTop = 0;\n\t\t\t\tchildLeft = 0;\n\t\t\t\tchildWidth = 0;\n\t\t\t\tchildHeight = 0;\n\t\t\t}\n\t\t\tchild.measure(childWidth, childHeight);\n\t\t\tchild.layout(childLeft, childTop, childLeft + childWidth, childTop\n\t\t\t\t\t+ childHeight);\n\t\t}\n\t}",
"private ImageIcon ResizeImage(String imgPath,JLabel label){\n ImageIcon MyImage = new ImageIcon(imgPath);\n Image img = MyImage.getImage();\n Image newImage = img.getScaledInstance(label.getWidth(), label.getHeight(),Image.SCALE_SMOOTH);\n ImageIcon image = new ImageIcon(newImage);\n return image;\n }",
"private void positionAddNewMemberButton(Dimension parentSize,\n Component component) {\n int padding = 10;\n var bottomRightOfPanel = new Point(\n parentSize.width - padding,\n parentSize.height - padding\n );\n\n var componentSize = (Dimension) component.getSize();\n\n int w = componentSize.width;\n int h = componentSize.height;\n int x = bottomRightOfPanel.x - w;\n int y = bottomRightOfPanel.y - h * 2;\n\n var positionAndSize = new Rectangle(\n x, y, w, h\n );\n\n component.setBounds(positionAndSize);\n }",
"public void setPreferredSize( int width, int height ) {\n checkWidget();\n ideal = true;\n Point point = parent.fixPoint( width, height );\n preferredWidth = Math.max( point.x, MINIMUM_WIDTH );\n preferredHeight = point.y;\n }",
"@Override\n public void layoutContainer(Container parent) {\n for(int i = 0; i< getComponentCount(); i++) {\n getComponent(i).setBounds(0, 0, getWidth(), getHeight());\n }\n }",
"private JPanel label() {\r\n\t\tJPanel position = new JPanel();\r\n\t\tJPanel positionLabelLigue = new JPanel();\r\n\t\tJPanel positionLabelnomadmin = new JPanel();\r\n\t\tJPanel positionLabelprenomadmin = new JPanel();\r\n\t\tJPanel positionLabeladresse = new JPanel();\r\n\r\n\t\t// On définit le layout en lui indiquant qu'il travaillera en ligne\r\n\t\tpositionLabelLigue.setLayout(new BoxLayout(positionLabelLigue,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelLigue.add(nomLigue);\r\n\t\tpositionLabeladresse.setLayout(new BoxLayout(positionLabeladresse,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabeladresse.add(adresse);\r\n\t\tpositionLabelnomadmin.setLayout(new BoxLayout(positionLabelnomadmin,\r\n\t\t\t\tBoxLayout.X_AXIS));\r\n\t\tpositionLabelnomadmin.add(nomAdmin);\r\n\t\tpositionLabelprenomadmin.setLayout(new BoxLayout(\r\n\t\t\t\tpositionLabelprenomadmin, BoxLayout.X_AXIS));\r\n\t\tpositionLabelprenomadmin.add(prenomAdmin);\r\n\r\n\t\t/*\r\n\t\t * positionnement en colonne des lignes précédemment crées grace a\r\n\t\t * position.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS))\r\n\t\t */\r\n\t\tposition.setLayout(new BoxLayout(position, BoxLayout.Y_AXIS));\r\n\t\tposition.add(nomLigue);\r\n\t\t/*\r\n\t\t * la ligne suivante position.add(Box.createRigidArea(new\r\n\t\t * Dimension(10,5))) permet de créer un espace entre les composants du\r\n\t\t * panel adresse et nom administrateur et le nom de la ligue\r\n\t\t */\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(adresse);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(nomAdmin);\r\n\t\tposition.add(Box.createRigidArea(new Dimension(10, 5)));\r\n\t\tposition.add(prenomAdmin);\r\n\r\n\t\treturn position;\r\n\t}",
"protected \tvoid\t\tcalcPreferredSize(MiSize size)\n\t\t{\n\t\tsuper.calcPreferredSize(size);\n\n\t\tMiDistance labelWidths = 0;\n\t\tMiDistance tickWidth = numTicks * ticks.getWidth() + (numTicks - 1) * tickSpacing;\n\n\t\tif (label != null)\n\t\t\tlabelWidths = label.getWidth();\n\t\tif (valueDisplay != null)\n\t\t\tlabelWidths += valueDisplay.getWidth();\n\t\tif (tickWidth < labelWidths)\n\t\t\tsize.width += labelWidths;\n\t\telse\n\t\t\tsize.width += tickWidth;\n\n\t\tsize.height += ticks.getHeight();\n\t\t}",
"public void setAlignmentY(AlignY anAlignX) { }",
"private void updateScale() {\n target.setScaleX(scaleValue);\n target.setScaleY(scaleValue);\n }",
"public void update() {\r\n icon = new SimpleIcon(layout.tag, layout.color, DiagramElement.getGlobalFontRenderer());\r\n icon.setIsModule(component.getType() != TemplateComponent.TYPE_CHANNEL);\r\n icon.setFlagged(component.hasModel() && component.getModel().hasAnnotation(FLAG_MARK));\r\n int maxWidth = 3 * icon.getIconWidth();\r\n String[] words = layout.label.split(\" \");\r\n Vector<String> lines = new Vector<String>();\r\n int wordsConsumed = 0;\r\n while (wordsConsumed < words.length) {\r\n String line = \"\";\r\n int i;\r\n for (i = wordsConsumed; i < words.length; ++i) {\r\n line += words[i];\r\n if (getGlobalFontMetrics().stringWidth(line) > maxWidth) {\r\n break;\r\n }\r\n line += \" \";\r\n }\r\n if (i == words.length) // all left-over words fit\r\n {\r\n line = line.substring(0, line.length() - 1);\r\n lines.add(line);\r\n wordsConsumed = words.length;\r\n } else\r\n // some left-over words didn't fit\r\n {\r\n if (i == wordsConsumed) // the first left-over word was too long\r\n {\r\n lines.add(line);\r\n wordsConsumed++;\r\n } else\r\n // at least one left-over word fit\r\n {\r\n line = line.substring(0, line.lastIndexOf(\" \"));\r\n lines.add(line);\r\n wordsConsumed = i;\r\n }\r\n }\r\n }\r\n labelBox = new LabelBox(lines);\r\n int deltaX = -(labelBox.width / 2);\r\n int deltaY = icon.getIconHeight() / 2 + LABEL_SPACING;\r\n labelBox.x = layout.location.x + deltaX;\r\n labelBox.y = layout.location.y + deltaY;\r\n ports[0] = new Ellipse2D.Float(layout.location.x - icon.getIconWidth() / 2 - 2 * PORT_RADIUS - 1,\r\n layout.location.y - PORT_RADIUS, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[1] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS,\r\n layout.location.y - icon.getIconHeight() / 2 - 2 * PORT_RADIUS - 1, 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[2] = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 2 + 1, layout.location.y - PORT_RADIUS,\r\n 2 * PORT_RADIUS, 2 * PORT_RADIUS);\r\n ports[3] = new Ellipse2D.Float(layout.location.x - PORT_RADIUS, (int) labelBox.getMaxY() + 1, 2 * PORT_RADIUS,\r\n 2 * PORT_RADIUS);\r\n if (component.getType() == TemplateComponent.TYPE_CHANNEL) {\r\n supHalo = new Ellipse2D.Float(layout.location.x + icon.getIconWidth() / 4,\r\n layout.location.y - icon.getIconHeight() / 4 - 2 * HALO_RADIUS, 2 * HALO_RADIUS, 2 * HALO_RADIUS);\r\n haloDX = -getGlobalFontMetrics().stringWidth(HALO_LABEL) / 2 + 1;\r\n haloDY = getGlobalFontMetrics().getAscent() / 2;\r\n }\r\n computeBounds();\r\n }",
"private void generateLabelPanel() {\n speedLabel = new JLabel(\"\");\n loopbackLabel = new JLabel(\"\");\n playingLabel = new JLabel(\"\");\n\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new FlowLayout());\n labelPanel.add(playingLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(speedLabel);\n labelPanel.add(Box.createHorizontalStrut(50));\n labelPanel.add(loopbackLabel);\n mainPanel.add(labelPanel);\n }",
"@Override\n\tpublic JComponent createWithAlignment(String text,String font, int x, int y, int w, int h,int Alignment) {\n\t\tJLabel label = new JLabel(text);\n\t\tlabel.setHorizontalAlignment(Alignment);\n\t label.setBounds(x,y,w,h);\n\t return label;\n\t}",
"public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }",
"public void componentResized(ComponentEvent e) {\n myReshape(getSize().width, getSize().height);\n display();\n repaint();\n }",
"private void initLayout(){\r\n\t\t\r\n\t\tlabelSalvar.setLayoutX(((pane.getWidth() - labelSalvar.getWidth()) / 2) - 332);\r\n\t\tlabelSalvar.setLayoutY(60);\r\n\t\ttxSalvar.setLayoutX(((pane.getWidth() - txSalvar.getWidth()) / 2) - 100);\r\n\t\ttxSalvar.setPrefWidth(500);\r\n\t\ttxSalvar.setLayoutY(60);\r\n\t\t\r\n\t\tlabelArquivoRTF.setLayoutX(((pane.getWidth() - labelArquivoRTF.getWidth()) / 2) - 325);\r\n\t\tlabelArquivoRTF.setLayoutY(100);\r\n\t\ttxArquivoRTF.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 100);\r\n\t\ttxArquivoRTF.setPrefWidth(500);\r\n\t\ttxArquivoRTF.setLayoutY(100);\r\n\t\t\r\n\t\tlabelLinhaInicio.setLayoutX(((pane.getWidth() - labelLinhaInicio.getWidth()) / 2) - 145);\r\n\t\tlabelLinhaInicio.setLayoutY(140);\r\n\t\ttxLinhaInicio.setLayoutX(((pane.getWidth() - txArquivoRTF.getWidth()) / 2) - 10);\r\n\t\ttxLinhaInicio.setPrefWidth(50);\r\n\t\ttxLinhaInicio.setLayoutY(140);\r\n\t\t\r\n\t\tlabelLinhaFim.setLayoutX(((pane.getWidth() - labelLinhaFim.getWidth()) / 2) + 220);\r\n\t\tlabelLinhaFim.setLayoutY(140);\r\n\t\ttxLinhaFinal.setLayoutX(((pane.getWidth() - txLinhaFinal.getWidth()) / 2) + 350);\r\n\t\ttxLinhaFinal.setPrefWidth(50);\r\n\t\ttxLinhaFinal.setLayoutY(140);\r\n\t\t\r\n\t\tbtnExecutar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 80);\r\n\t\tbtnExecutar.setLayoutY(210);\r\n\t\t\r\n\t\tprogressBar.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) + 260);\r\n\t\tprogressBar.setLayoutY(280);\r\n\t\t\r\n\t\tlabelBy.setLayoutX(((pane.getWidth() - btnExecutar.getWidth()) / 2) - 350);\r\n\t\tlabelBy.setScaleY(0.5);\r\n\t\tlabelBy.setScaleX(0.5);\r\n\t\tlabelBy.setLayoutY(280);\r\n\t\t\r\n\t}",
"private void initSequenceLabels() {\n Font f = new Font(\"Monospaced\", Font.PLAIN, 14);\n FontMetrics fm = this.getFontMetrics(f);\n String html = this.generateHTMLForSequence();\n \n int w = fm.stringWidth(html)+5;\n //w = 80000;\n int h = fm.getHeight();\n \n \n \n original.setFont(f);\n complement.setFont(f);\n basePairs.setFont(f);\n labels.setFont(f);\n\n \n scrollPanePanel.setMaximumSize(new Dimension(w,scrollPanePanel.getHeight()));\n scrollPanePanel.setMinimumSize(new Dimension(w,scrollPanePanel.getHeight()));\n scrollPanePanel.setSize(w, scrollPanePanel.getHeight());\n scrollPanePanel.setPreferredSize(new Dimension(w, scrollPanePanel.getHeight()));\n \n \n original.setMaximumSize(new Dimension(w,h));\n original.setMinimumSize(new Dimension(w,h));\n original.setSize(new Dimension(w,h));\n original.setPreferredSize(new Dimension(w,h));\n original.setText(html);\n \n complement.setMaximumSize(new Dimension(w,h));\n complement.setMinimumSize(new Dimension(w,h));\n complement.setSize(new Dimension(w,h));\n complement.setPreferredSize(new Dimension(w,h));\n \n basePairs.setMaximumSize(new Dimension(w,h));\n basePairs.setMinimumSize(new Dimension(w,h));\n basePairs.setSize(new Dimension(w,h));\n basePairs.setPreferredSize(new Dimension(w,h));\n\n labels.setMaximumSize(new Dimension(w,h));\n labels.setMinimumSize(new Dimension(w,h));\n labels.setSize(new Dimension(w,h));\n labels.setPreferredSize(new Dimension(w,h));\n\n \n \n \n System.out.println(\"max size: \" + original.getMaximumSize());\n System.out.println(w);\n System.out.println(original.getSize());\n \n \n \n \n \n //compute bp\n //note, we are using monospaced\n String b = \"\";\n String l = \"\";\n for(int i = 1; i <= html.length(); i++) {\n\n if(i == 1) {\n b += \"1\";\n l += \"|\";\n }\n else if(i % 10 == 0) {\n b += i;\n l += \"|\";\n }\n else if(i % 10 == 1 && i > 10 && i < 100) {\n b += \"\";\n l += \"-\";\n }\n else if(i % 10 == 1 && i > 100 && i < 999) {\n b += \" \";\n l += \"----\";\n i+=3;\n }\n else if(i % 10 == 1 && i > 1000 && i < 9999) {\n b += \" \";\n l += \"-----\";\n i+=4;\n }\n else {\n b += \" \";\n l += \"-\";\n }\n }\n basePairs.setText(b);\n labels.setText(l);\n \n if(plasmid.isFindingComplementSequence()) {\n plasmid.setLabelWithComplementWhenDone(complement);\n complement.setText(\"Finding complement...\");\n }\n else {\n complement.setText(plasmid.getComplementSequence());\n }\n\n }",
"public void\nsetNewLabel()\nthrows Exception\n{\n\tdouble lineLength = this.getNucLabelLineLength();\n\tif (lineLength <= 0.0)\n\t\tlineLength = ComplexDefines.NUCLABEL_LINE_LENGTH;\n\tthis.setNewLabel(\n\t\tnew Font(\"Helvetica\", Font.PLAIN, 12),\n\t\tthis.getParentSSData2D().getNucLabelLineWidth(),\n\t\tlineLength, Color.black, this.getID());\n}",
"@Override\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\twidth = w;\n\t\theigth = h;\n\t\tajestPosition();\n\t\tthis.invalidate();\n\t\tsuper.onSizeChanged(w, h, oldw, oldh);\n\t}",
"public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}",
"public ModernAutoSizeLabel(String text) {\r\n super(text, TEXT_COLOR);\r\n }",
"public void update() {\n\t\tactSX=parent.actSX*scaleX;\n\t\tactSY=parent.actSY*scaleY;\n\t\tw=posW*actSX;\n\t\th=posH*actSY;\n\t\tswitch (align) {\n\t\tcase DEFAULT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase TOPRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMLEFT:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase BOTTOMRIGHT:\n\t\t\tx=parent.x+parent.w-(posX+posW)*actSX;\n\t\t\ty=parent.y+parent.h-(posY+posH)*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDX:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDY:\n\t\t\tx=parent.x+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\tcase CENTEREDXY:\n\t\t\tx=parent.x+parent.w/2-w/2+posX*actSX;\n\t\t\ty=parent.y+parent.h/2-h/2+posY*actSY;\n\t\t\tbreak;\n\t\t}\n\t}",
"private void setupLayout() {\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\tanimeLabel = new JLabel();\r\n\t\tanimeLabel.setSize(m.getWidth(), m.getHeight());\r\n\t\tanimeLabel.setBounds(0, 0, m.getWidth(), m.getHeight());\r\n\t\tthis.add(animeLabel, BorderLayout.CENTER);\r\n\t}",
"@Override\n\tpublic void resizeToChildren () {\n\t}",
"@Override\n\tpublic void layoutContainer(Container parent) {\n\t\tPoint origin = new Point(parent.getWidth() / 2, parent.getHeight() / 2);\n\t\tdouble angle = Math.toRadians(360./edge.size());\n\t\tint radius = parent.getHeight() / 2 - 100;\n\t\tint compEdge = 150;\n\t\tfor (int i = 0; i < edge.size(); i++) {\n\t\t\tComponent comp = edge.get(i);\n\t\t\tdouble theta = i * angle;\n\t\t\tint dx = (int) (radius * Math.sin(theta));\n\t\t\tint dy = (int) (-radius * Math.cos(theta));\n\t\t\tint x = origin.x + dx - compEdge/2;\n\t\t\tint y = origin.y + dy - compEdge/2;\n\t\t\tcomp.setBounds(x, y, compEdge, compEdge);\n\t\t}\n\t\tDimension centerSize = center.getPreferredSize();\n\t\tint dx = (int) centerSize.getWidth()/2;\n\t\tint dy = (int) centerSize.getHeight()/2;\n\t\tcenter.setBounds(origin.x - dx, origin.y - dy, 2 * dx, 2 * dy);\n\t}",
"protected void paintLabel(Graphics g, int vNum){\r\n\r\n\t// Label Centering Information\r\n\tint xOffSet, yOffSet;\r\n\tif(vNum > 9) {\r\n\t xOffSet = -6;\r\n\t}\r\n\telse {\r\n\t xOffSet = -3;\r\n\t}\r\n\tyOffSet = 5;\r\n\r\n\tint rise = YCENTER - getYCoor(vNum);\r\n int run = XCENTER - getXCoor(vNum);\r\n\tg.drawString(Integer.toString(vNum), getXCoor(vNum)-(run/4) + xOffSet,\r\n\t\t getYCoor(vNum)-(rise/4) + yOffSet);\r\n }",
"public LabelFigure() \r\n\t{\r\n\t\tthis(DEFAULT_CORNER_SIZE - 3);\r\n\t}",
"@Override\n\t\t\tpublic void controlResized(ControlEvent e) {\n\t\t\t\tGC gc = new GC(tw.getControl());\n\t\t\t\tPoint extent = gc.textExtent(\"X\");//$NON-NLS-1$\n//\t\t\t\tGridData gd = new GridData();\n//\t\t\t\tgd.widthHint = width * extent.x;\n//\t\t\t\tcontrol.setLayoutData(gd);\n\t\t\t\t\n\t\t\t\tint w = width * extent.x;\n\n\t\t\t\ttable.getColumn(collunmIndex).setWidth(w);\n\t\t\t}",
"public Point getPreferredSize() {\n checkWidget();\n return parent.fixPoint( preferredWidth, preferredHeight );\n }",
"protected void adjustBounds() {\n\t\t\tRectangle parentBounds = getParentShell().getBounds();\n\t\t\tPoint textSize = text.getSize();\n\t\t\tRectangle itemBounds = proposalTable.getItem(\n\t\t\t\t\tproposalTable.getSelectionIndex()).getBounds();\n\t\t\tint controlY = parentBounds.y + proposalTable.getBounds().y\n\t\t\t\t\t+ itemBounds.y + POPUP_VERTICALSPACING + 1;\n\t\t\tint controlWidht = textSize.x + 20;\n\t\t\tint controlHeight = itemBounds.height;\n\t\t\tRectangle proposedBounds = null;\n\n\t\t\t// Try placing the info popup to the right\n\t\t\tRectangle rightProposedBounds = new Rectangle(parentBounds.x\n\t\t\t\t\t+ parentBounds.width + PopupDialog.POPUP_HORIZONTALSPACING,\n\t\t\t\t\tcontrolY, controlWidht, controlHeight);\n\t\t\trightProposedBounds = getConstrainedShellBounds(rightProposedBounds);\n\n\t\t\t// If it won't fit on the right, try the left\n\t\t\tif (rightProposedBounds.intersects(parentBounds)) {\n\t\t\t\tRectangle leftProposedBounds = new Rectangle(parentBounds.x\n\t\t\t\t\t\t- controlWidht - POPUP_HORIZONTALSPACING - 1, controlY,\n\t\t\t\t\t\tcontrolWidht, controlHeight);\n\t\t\t\tleftProposedBounds = getConstrainedShellBounds(leftProposedBounds);\n\n\t\t\t\t// If it won't fit on the left, display on top of the item\n\t\t\t\tif (leftProposedBounds.intersects(parentBounds)) {\n\t\t\t\t\trightProposedBounds.x = parentBounds.x + itemBounds.x;\n\t\t\t\t\trightProposedBounds.y = controlY - itemBounds.height + 1;\n\t\t\t\t\tproposedBounds = rightProposedBounds;\n\t\t\t\t} else {\n\t\t\t\t\t// Use the proposed bounds on the left\n\t\t\t\t\tproposedBounds = leftProposedBounds;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\t// Use the proposed bounds on the right\n\t\t\t\tproposedBounds = rightProposedBounds;\n\t\t\t}\n\t\t\tgetShell().setBounds(proposedBounds);\n\t\t}",
"protected void rescale(DrawableNode n) {\n\t\tfor(Node kid : n.getOffspring()) {\n\t\t\trescale((DrawableNode)kid);\n\t\t}\n\t\t\n\t\tdouble angle = angleFromParent(n);\n\t\t\n\t\tPoint newPos;\n\t\tif (hasBranchLengths && ! ignoreBranchLengths)\n\t\t\tnewPos = translatePoint( ((DrawableNode)n.getParent()).getPosition(), angle, n.getDistToParent()*branchScale);\n\t\telse\n\t\t\tnewPos = translatePoint( ((DrawableNode)n.getParent()).getPosition(), angle, branchScale );\n\t\t\n\t\tnewPos.x -= n.getX();\n\t\tnewPos.y -= n.getY();\n\t\tshiftClade(n, newPos);\n\t}",
"protected void setupVolumeLabel() {\n\t\tlabelPanel.add(getItemCombo(), \"growx, span 4, wrap\");\n\t\t//labelPanel.add(new JXLabel(UIUtils.unitsVolume), \"wrap\");\n\t\t\n\t\tvolumeLabel = new JXLabel(\"V = \");\n\t\t\n\t\tlabelPanel.add(volumeLabel);\n\t\tlabelPanel.add(getVolumeValueLabel(), \"width 60::60\");\n\t\tlabelPanel.add(new JXLabel(UIUtils.unitsVolume), \"wrap\");\n\t}",
"public void onChildSizeChanged(GuiElementBase element, Direction direction)\n\t\t{ expandToFitChildren(direction); }",
"protected void masterLayout() {\r\n gbc.anchor = GridBagConstraints.CENTER;\r\n gbc.insets = new Insets(5, 5, 5, 5);\r\n gbc.fill = GridBagConstraints.NONE;\r\n gbc.weighty = 0.0;\r\n gbc.gridx = 0;\r\n gbc.gridy = 0;\r\n int jbHeight = applyButton.getPreferredSize().height;\r\n int jbWidth = applyButton.getPreferredSize().width;\r\n int mpHeight = mainPanel.getPanel().getPreferredSize().height;\r\n int mpWidth = mainPanel.getPanel().getPreferredSize().width;\r\n\r\n gbc.gridheight = (int) Math.ceil((double) mpHeight / jbHeight);\r\n gbc.gridwidth = (int) Math.ceil((double) mpWidth / jbWidth);\r\n\r\n this.add(mainPanel.getPanel(), gbc);\r\n\r\n gbc.gridy += gbc.gridheight;\r\n gbc.weighty = 1.0;\r\n gbc.fill = GridBagConstraints.VERTICAL;\r\n gbc.anchor = GridBagConstraints.CENTER;\r\n this.add(Box.createVerticalGlue(), gbc);\r\n\r\n gbc.gridx += gbc.gridwidth - 1;\r\n gbc.gridy += 1;\r\n gbc.weighty = 0.0;\r\n gbc.fill = GridBagConstraints.NONE;\r\n gbc.anchor = GridBagConstraints.EAST;\r\n gbc.insets = new Insets(10, 10, 10, 10);\r\n gbc.gridheight = 1;\r\n gbc.gridwidth = 1;\r\n\r\n applyButton.setVisible(true);\r\n\r\n this.add(applyButton, gbc);\r\n }",
"private static String doLayoutCompoundLabel(final FontMetrics fm, final String text, final Icon icon,\n final int verticalAlignment, final int horizontalAlignment,\n final int verticalTextPosition, final int horizontalTextPosition,\n final Rectangle viewR, final Rectangle iconR, final Rectangle textR,\n final int textIconGap) {\n\n final int gap = icon != null && !Utilities.isEmptyString(text) ? textIconGap : 0;\n\n if (icon != null) {\n iconR.setSize(icon.getIconWidth(), icon.getIconHeight());\n } else {\n iconR.setSize(0, 0);\n }\n\n String clippedText = \"\";\n if (!Utilities.isEmptyString(text)) {\n final int adjust = horizontalTextPosition != CENTER ? iconR.width + gap : 0;\n final int availableLength = viewR.width - adjust;\n clippedText = Utilities.clipString(fm, text, availableLength);\n textR.setSize(Utilities.getStringSize(clippedText, fm));\n } else {\n textR.setSize(0, 0);\n }\n\n layoutRects(verticalAlignment, horizontalAlignment,\n verticalTextPosition, horizontalTextPosition, viewR, iconR,\n textR, gap);\n\n return clippedText;\n }",
"public abstract void adjustSize(long size);",
"public void setLabelTextSize(float labelTextSizeSp) {\n chassisView.setLabelTextSize(labelTextSizeSp);\n }",
"private void setupView(JLabel view, int w, int h, int x, int y) {\n\n view.setSize(w,h);\n view.setLocation(x,y);\n\n add(view);\n\n }"
] | [
"0.63880956",
"0.63432246",
"0.6321429",
"0.61515296",
"0.603632",
"0.59089804",
"0.5744234",
"0.5711586",
"0.5683837",
"0.5586184",
"0.5568681",
"0.5565173",
"0.5523072",
"0.5522165",
"0.54808205",
"0.54596233",
"0.5458717",
"0.5457843",
"0.5435925",
"0.5431179",
"0.5423533",
"0.54158014",
"0.5363759",
"0.5352298",
"0.5326622",
"0.53194225",
"0.5299736",
"0.52829826",
"0.5269324",
"0.5240567",
"0.5230167",
"0.5207231",
"0.5167058",
"0.51483494",
"0.5127344",
"0.51213545",
"0.51205695",
"0.5116632",
"0.5094417",
"0.50908345",
"0.5086151",
"0.5080749",
"0.5080594",
"0.50657433",
"0.50597435",
"0.50305104",
"0.50180316",
"0.50151515",
"0.50138706",
"0.50106454",
"0.5007853",
"0.5007564",
"0.5006663",
"0.50001764",
"0.49942276",
"0.49918878",
"0.4986464",
"0.49806717",
"0.4974594",
"0.49742347",
"0.49707016",
"0.4962509",
"0.49566513",
"0.495614",
"0.49497202",
"0.49470556",
"0.49465293",
"0.49452478",
"0.49433282",
"0.4938997",
"0.49200997",
"0.49183965",
"0.49170417",
"0.49152786",
"0.49102804",
"0.4898012",
"0.4898012",
"0.48911703",
"0.48908338",
"0.48850688",
"0.48834443",
"0.48830014",
"0.48801172",
"0.48779786",
"0.48759127",
"0.48751113",
"0.4869838",
"0.48635936",
"0.48574287",
"0.4854039",
"0.4853606",
"0.48522055",
"0.48439807",
"0.48425606",
"0.48318592",
"0.482931",
"0.48282167",
"0.4826921",
"0.48239002",
"0.48236296"
] | 0.54843694 | 14 |
Helper method to determine the width and height of the text. | private Rectangle2D getTextExtents(
final String text, final Font font, final Graphics graphics ) {
return getFontMetrics( font ).getStringBounds( text, graphics );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public float getTextSizePx() {\n return mPaint.getTextSize();\n }",
"public float getTextSize() {\n return mTextContainer.getTextSize();\n }",
"public float getTextSize() {\n return mTextSize;\n }",
"public int getStringWidth(String text);",
"@Override\n public Dimension measureText(String text) {\n return graphicsEnvironmentImpl.measureText(canvas, text);\n }",
"int calcHeightForText(String str) {\n\t\tFontMetrics metrics = self.getGraphics().getFontMetrics(self.getFont());\n\t\tint hgt = metrics.getHeight();\n\t\tint adv = metrics.stringWidth(str);\n\t\tfinal int PIXEL_PADDING = 6;\n\t\tDimension size = new Dimension(adv, hgt + PIXEL_PADDING);\n\t\tfinal float PADDING_PERCENT = 1.1f;\n\t\t// calculate modifier to line wrapping so we can display the wrapped message\n\t\tint mult = (int) Math.floor(size.width / (textArea.getSize().width * PADDING_PERCENT));\n\t\t// System.out.println(mult);\n\t\tmult++;\n\t\treturn size.height * mult;\n\t}",
"private Bounds textWidth(double size, SensorValue sensorValue)\r\n\t{\n\t\t\r\n\t\tString showValue = sensorValue.getCurrentValue() + \" \" + sensorValue.getMeasurementUnit();\r\n\t\t\r\n\t\tif(fontBase == null)\r\n\t\t\tfontBase = new Font(\"Verdana\", 12);\r\n\t\tText text = new Text(showValue);\r\n\t\tFont font = Font.font(fontBase.getFamily(), size);\r\n text.setFont(font);\r\n return text.getBoundsInLocal();\r\n\t}",
"@Override\n public int height()\n {\n return textCent.height();\n }",
"private int getTextHeight() {\n return lineHeight * (textBuffer.getMaxLine() - 1);\n }",
"public int height()\n throws Exception\n {\n return this.text.height();\n }",
"public static float textHeight(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).height;\n }",
"private float getFontHeight(Paint paint) {\n Rect rect = new Rect();\n paint.getTextBounds(\"1\", 0, 1, rect);\n return rect.height();\n }",
"public Rectangle2D.Double getTextBounds() {\n\t\t\n\t\tdouble txtPinX = _parent.getTxtPinX();\n\t\tdouble txtPinY = _parent.getTxtPinY();\n\t\t\n\t\tdouble txtLocPinX = _parent.getTxtLocPinX();\n\t\tdouble txtLocPinY = _parent.getTxtLocPinY();\n\t\t\n\t\tdouble txtWidth = _parent.getTxtWidth();\n\t\tdouble txtHeight = _parent.getTxtHeight();\n\t\t\n\t\tdouble x = txtPinX - txtLocPinX;\n\t\tdouble y = txtPinY - txtLocPinY;\n\t\t\n\t\treturn new Rectangle2D.Double(x, y, txtWidth, txtHeight);\n\t}",
"String getWidth();",
"String getWidth();",
"double width () {\n Text text = new Text(this.getText());\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"public int getTextLength() {\r\n return text.length();\r\n }",
"public float getWidth() {\n\t\t\n\t\tfloat width= 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\twidth += font.getChar(text.charAt(i)).X_ADVANCE * size;\n\t\t}\n\t\t\n\t\treturn width;\n\t}",
"@Override\n\tpublic Rectangle getBounds(String text) {\n\t\tint height = 0;\n\t\tint width = 0;\n\t\t//Initialize y to the maximum int\n\t\tint y = Integer.MAX_VALUE;\n\t\t\n\t\tchar[] chars = text.toCharArray();\n\t\t//First, find the lowest yoffset\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) y = Math.min(g.getYOff(), y);\n\t\t}\n\t\tfor (char c : chars) {\n\t\t\tGlyph g = getGlyph(c);\n\t\t\tif (g != null) {\n\t\t\t\theight = Math.max(g.getHeight() + (g.getYOff() - y), height);\n\t\t\t\twidth += g.getXAdvance();\n\t\t\t}\n\t\t}\n\t\treturn new Rectangle(0, y, width, height);\n\t}",
"public float getHeight() {\n\t\t\n\t\tfloat height = 0;\n\t\tfor(int i = 0; i < text.length(); i++) {\n\t\t\tFontChar c = font.getChar(text.charAt(i));\n\t\t\tfloat h = (c.T_HEIGHT + c.Y_OFFSET) * size;\n\t\t\t\n\t\t\tif(h > height)\n\t\t\t\theight = h;\n\t\t}\n\t\t\n\t\treturn height;\n\t}",
"String getHeight();",
"String getHeight();",
"int getTextLength();",
"public int getTextLength();",
"public Float getHightlightedTextSize() {\n if (mHightlightedTextSize != null)\n return mHightlightedTextSize;\n return getTextSize();\n }",
"public static float textWidth(BitmapFont fntIn, String sIn){\n return new GlyphLayout(fntIn,sIn).width;\n }",
"private static void loadTextSizes(Context context)\n\t{\n\t\tDisplayMetrics metrics = context.getResources().getDisplayMetrics();\n\t\tTEXT_SIZE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 14, metrics);\n\t\tTEXT_SIZE_BIG = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 20, metrics);\n\t\tPADDING = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 10, metrics);\n\t\tTEXT_SPACE = (int)TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 150, metrics);\n\t}",
"private void setupTextSize()\n\t{\n\t\tContext context = getContext();\n\t\tResources res = context.getResources();\n\t\tthis.mTextSize = (int) res.getDimension(R.dimen.tsz_main);\n\t}",
"public short getFontHeight()\n {\n return font.getFontHeight();\n }",
"private void calculateCharSize() {\n int charMaxAscent;\n int charLeading;\n FontMetrics fm = getFontMetrics(getFont());\n charWidth = -1; // !!! Does not seem to work: fm.getMaxAdvance();\n charHeight = fm.getHeight() + lineSpaceDelta;\n charMaxAscent = fm.getMaxAscent();\n fm.getMaxDescent();\n charLeading = fm.getLeading();\n baselineIndex = charMaxAscent + charLeading - 1;\n\n if (charWidth == -1) {\n int widths[] = fm.getWidths();\n for (int i=32; i<127; i++) {\n if (widths[i] > charWidth) {\n charWidth = widths[i];\n }\n }\n }\n }",
"public int[] verifyFontCanvasSize(Graphics2D g2d, String text, int textWidth, int nodeWidth, int fontSize) {\n while (textWidth >= (nodeWidth - 2)) {\n fontSize = fontSize - 1;\n//\t\tcanvas:attrFont(fontFamily, fontSize, fontStyle);\n g2d.setFont(new Font(Font.SANS_SERIF, Font.PLAIN, fontSize));\n textWidth = (int) Math.round(g2d.getFontMetrics().getStringBounds(text, g2d).getCenterX());\n// labelWidth = canvas:measureText(label);\n }\n return new int[]{textWidth, fontSize};\n }",
"public float getExampleDimension() {\n return mTextSize;\n }",
"public int getLabelTextSize(){\n return labelTextSize;\n }",
"public Integer getClientWidth(final String title, final String text) {\n\t\tint[] clientSize = getClientSize(title, text);\n\t\treturn (clientSize == null) ? null : clientSize[0];\n\t}",
"public int getFontSize();",
"public CharSequence obtainTextToMeasure() {\n return this.textView.getText();\n }",
"private void getTextBounds(CharSequence text, Paint paint, float[] p) {\n if (p == null || p.length < 3) {\n return;\n }\n float textWidth = paint.measureText(text.toString());\n Paint.FontMetrics fontM = paint.getFontMetrics();\n //baseLine:一行文字的底线。\n //Ascent: 字符顶部到baseLine的距离。\n //Descent: 字符底部到baseLine的距离。\n //Leading: 字符行间距。\n float bottom = fontM.bottom;\n float top = fontM.top;\n p[0] = textWidth;// text width\n p[1] = bottom - top;// text height\n p[2] = top;\n Log.i(TAG, \"fontM.ascent=\"+fontM.ascent + \" fontM.bottom=\"+fontM.bottom+\" fontM.descent=\"+fontM.descent+\" fontM.top=\"+fontM.top);\n }",
"private int calculateTextWidth(String[] lines, FontMetrics fm)\r\n {\r\n int numChars = 0;\r\n String maxString = \"\";\r\n // calculate the number of characters in the line\r\n for (String lineNo : lines)\r\n {\r\n if (numChars < lineNo.length())\r\n {\r\n numChars = lineNo.length();\r\n maxString = lineNo;\r\n }\r\n }\r\n // width will be the numChars * text metrics for the font\r\n int maxWidth = fm.stringWidth(maxString);\r\n return maxWidth;\r\n }",
"private int measureWidth(int measureSpec) {\n\n int result = 0;\n int specMode = MeasureSpec.getMode(measureSpec);\n int specSize = MeasureSpec.getSize(measureSpec);\n\n if (specMode == MeasureSpec.EXACTLY) {\n // We were told how big to be\n result = specSize;\n } else {\n // Measure the text\n result = viewWidth;\n\n }\n\n return result;\n }",
"public static int getAreaButtonTextSize(Context context, Typeface typeface) {\n DisplayMetrics displayMetrics = context.getResources()\n .getDisplayMetrics();\n // int deviceWidth = displayMetrics.widthPixels;\n int deviceWidth = displayMetrics.widthPixels;\n\n return determineTextSize(typeface, (int) (0.23f * (.14f * deviceWidth)));\n\n }",
"public int getHeight() {\r\n if ( fontMetrics != null ) {\r\n return fontMetrics.getHeight() + 6;\r\n } else {\r\n return 6;\r\n }\r\n }",
"public float getFontSize();",
"public Integer getWidth(final String title, final String text) {\n\t\tInteger width = null;\n\t\tint[] size = getSize(title, text);\n\t\tif (size != null) {\n\t\t\twidth = size[0];\n\t\t}\n\t\treturn width;\n\t}",
"public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }",
"double width () {\n Text text = new Text(event.name);\n text.setStyle(this.getStyle());\n return text.getBoundsInLocal().getWidth() * 1.5;\n }",
"public Integer getClientHeight(final String title, final String text) {\n\t\tint[] clientSize = getClientSize(title, text);\n\t\treturn (clientSize == null) ? null : clientSize[1];\n\t}",
"public String getFontSizeText()\r\n\t{\r\n\t\treturn fontSizeTextField.getText(); // return the text in the Font Size text field\r\n\t}",
"private void fitTextToView() {\n int currentTextSize = (int) getTextSize();\n if (currentTextSize == mMinTextSize) {\n return;\n }\n\n final float width = getAvailableWidth();\n final String currentText = getText().toString();\n\n if (width <= 0 || TextUtils.isEmpty(currentText)) {\n return;\n }\n\n mTextPaint.set(getPaint());\n mTextPaint.setTextSize(currentTextSize);\n\n while (mTextPaint.measureText(currentText) > width && currentTextSize > mMinTextSize) {\n currentTextSize -= mTextSizeIncrement;\n mTextPaint.setTextSize(currentTextSize);\n }\n\n currentTextSize = Math.max(currentTextSize, mMinTextSize);\n setEllipsize(currentTextSize == mMinTextSize ? TextUtils.TruncateAt.END : null);\n\n setTextSize(TypedValue.COMPLEX_UNIT_PX, currentTextSize);\n }",
"public String getSizeTextField(){\n\t\treturn textField.getText();\n\t}",
"int getTextStrokeWidth();",
"public int getWidth() {\r\n if ( fontMetrics != null && lbl != null ) {\r\n return fontMetrics.stringWidth(lbl) + 12; \r\n } else {\r\n return 10;\r\n }\r\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 short getFontHeight() {\n\t\treturn this.fontHeight;\n\t}",
"public short getFontHeightInPoints()\n {\n return ( short ) (font.getFontHeight() / 20);\n }",
"public int getPreferredWidth() \n {\n Font font = Font.getDefault().derive( Font.BOLD, FONT_SIZE );\n return font.getAdvance( m_text ) + HMARGIN;\n }",
"public int getWidth(CharSequence text) {\r\n\t\tint width = 0, lineWidth = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < text.length(); i++) {\r\n\t\t\tchar character = text.charAt(i);\r\n\t\t\t\r\n\t\t\tif (character == '\\n') { // New line\r\n\t\t\t\twidth = Math.max(width, lineWidth);\r\n\t\t\t\tlineWidth = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Ignore carriage returns\r\n\t\t\tif (character == '\\r') continue;\r\n\t\t\t\r\n\t\t\tGlyph glyph = glyphs.get(character);\r\n\t\t\tif (glyph == null) continue;\r\n\t\t\t\r\n\t\t\tlineWidth += glyph.getWidth();\r\n\t\t}\r\n\t\t\r\n\t\twidth = Math.max(width, lineWidth);\r\n\t\treturn width;\r\n\t}",
"private int measureHeight(int measureSpecHeight, int measureSpecWidth) {\n\n int result = 0;\n int specMode = MeasureSpec.getMode(measureSpecHeight);\n int specSize = MeasureSpec.getSize(measureSpecHeight);\n\n if (specMode == MeasureSpec.EXACTLY) {\n // We were told how big to be\n result = specSize;\n } else {\n // Measure the text (beware: ascent is a negative number)\n result = viewHeight;\n }\n return result;\n }",
"public int getHeight(CharSequence text) {\r\n\t\tint height = 0, lineHeight = 0;\r\n\r\n\t\tfor (int i = 0; i < text.length(); i++) {\r\n\t\t\tchar character = text.charAt(i);\r\n\r\n\t\t\tif (character == '\\n') { // New line\r\n\t\t\t\theight += lineHeight;\r\n\t\t\t\tlineHeight = 0;\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\r\n\t\t\t// Ignore carriage returns\r\n\t\t\tif (character == '\\r') continue;\r\n\r\n\t\t\tGlyph glyph = glyphs.get(character);\r\n\t\t\tif (glyph == null) continue;\r\n\t\t\t\r\n\t\t\tlineHeight = Math.max(lineHeight, glyph.getHeight());\r\n\t\t}\r\n\r\n\t\theight += lineHeight;\r\n\t\treturn height;\r\n\t}",
"public short getTextLength()\n {\n return field_6_textLength;\n }",
"private static void setTextSizeForWidth(Paint paint, String text, float desiredWidth) {\n\n // Pick a reasonably large value for the test. Larger values produce\n // more accurate results, but may cause problems with hardware\n // acceleration. But there are workarounds for that, too; refer to\n // http://stackoverflow.com/questions/6253528/font-size-too-large-to-fit-in-cache\n final float defaultTextSize = 44f;\n paint.setTextSize(defaultTextSize);\n Rect textBounds = new Rect();\n paint.getTextBounds(text, 0, text.length(), textBounds);\n // Calculate the desired size as a proportion of our testTextSize.\n if (textBounds.width() > desiredWidth) {\n float desiredTextSize = defaultTextSize * (desiredWidth / textBounds.width());\n\n // Set the paint for that size.\n paint.setTextSize(desiredTextSize);\n }\n\n }",
"public static float getFontCharHeight(Paint paint, String text) {\r\n Rect bounds = new Rect();\r\n paint.getTextBounds(text, 0, text.length(), bounds);\r\n\r\n return 1.0f * bounds.height();\r\n }",
"private float drawText(Graphics2D g2d) {\n float yOffset = 0; // 1\" top margin\r\n for (TextLayout tl : textLayouts) {\r\n yOffset += tl.getAscent();\r\n tl.draw(g2d, 0, yOffset);\r\n yOffset += tl.getDescent();\r\n yOffset += tl.getLeading();\r\n }\r\n return yOffset;\r\n }",
"private int computeTextWidth_oneShot(String text) {\n text = BindingTextUtils.withoutNul(text);\n \n return backingTextWidth(text);\n }",
"private int calculateTextHeight(String[] lines, FontMetrics fm)\r\n {\r\n int totalLineHeight = fm.getHeight();\r\n int totalLines = 1; // account for one line of spacing between Welcome and explanation\r\n // in the introduction string\r\n for (String lineNo : lines)\r\n {\r\n if (!lineNo.equals(\"\") || !lineNo.equals(\"\\n\"))\r\n {\r\n totalLines++;\r\n }\r\n }\r\n\r\n // max height we want is the total lines * height metrics\r\n return totalLines * totalLineHeight;\r\n }",
"public int[] getSize(final String title, final String text) {\n\t\tint[] size = null;\n\t\tif (!minimized(title, text)) {\n\t\t\tRECT rect = new RECT();\n\t\t\tAutoItXImpl.autoItX.AU3_WinGetPos(AutoItUtils.stringToWString(AutoItUtils.defaultString(title)),\n\t\t\t\t\tAutoItUtils.stringToWString(text), rect);\n\t\t\tif (!LocalInstances.autoItX.hasError()) {\n\t\t\t\tsize = new int[] { rect.right - rect.left,\n\t\t\t\t\t\trect.bottom - rect.top };\n\t\t\t}\n\t\t}\n\t\treturn size;\n\t}",
"private Text initDescriptionText(){\n Text description = new Text(Values.DESCRIPTION);\n description.setStyle(\"-fx-font-size: 18;\");\n description.setTextAlignment(TextAlignment.CENTER);\n description.wrappingWidthProperty().bind(widthProperty());\n return description;\n }",
"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 }",
"public int getTextLabelFontSize() {\n\t\treturn mTextLabelFontSize;\n\t}",
"public short getFontHeightInPoints() {\n\t\treturn fontHeightInPoints;\n\t}",
"public int getLength() {\n\t\t\treturn this.text.length();\n\t}",
"private static float getMaximumWidth(final String text, final Paint paint) {\n float width = 0;\n for (String token : text.split(\"\\n\")) {\n final float textWidth = paint.measureText(token);\n if (textWidth > width) {\n width = textWidth;\n }\n }\n\n return width;\n }",
"public int getLength ()\r\n {\r\n return glyph.getBounds().width;\r\n }",
"private int getFontSize(LabelGeometry geom)\r\n {\r\n float fontSize = AWTUtilities.getFontSize(geom.getRenderProperties().getFont());\r\n\r\n // Scale based on the view\r\n Function<Kilometers, Float> scaleFunction = geom.getRenderProperties().getScaleFunction();\r\n if (scaleFunction != null)\r\n {\r\n float viewScale = scaleFunction.apply(myViewAltitudeSupplier.get()).floatValue();\r\n fontSize *= viewScale;\r\n }\r\n\r\n return Math.round(fontSize);\r\n }",
"public String toString()\n {\n return \"The tesseract's dimensions are \" + getLength() + \" X \" + getWidth() + \" X \" + getHeight() + \" X \" + getwDimension();\n }",
"long getWidth();",
"private void calc_screen_size(){\r\n \tscn_grid.setFont(scn_font);\r\n \tscn_context = scn_grid.getFontRenderContext();\r\n \t scn_layout = new TextLayout(\"X\",scn_font,scn_context);\r\n scn_char_rect = scn_layout.getBlackBoxBounds(0,1).getBounds();\r\n scn_char_height = (int) (scn_char_rect.getHeight()); // RPI 630 was Width in err, 6 to *1.5\r\n \tscn_char_base = scn_char_height/2+1;\r\n \tscn_char_height = scn_char_height + scn_char_base+2;\r\n scn_char_width = (int) (scn_char_rect.getWidth()); // RPI 630 was Height in err\r\n \tscn_height = scn_rows * scn_char_height; // RPI 408 + 5 \r\n \tscn_width = scn_cols * scn_char_width + 3; // RPI 408 + 5 \r\n \tscn_size = new Dimension(scn_width,scn_height);\r\n \tscn_image = new BufferedImage(scn_width,scn_height,BufferedImage.TYPE_INT_ARGB);\r\n \tscn_grid = scn_image.createGraphics();\r\n \tscn_grid.setFont(scn_font); \r\n scn_grid.setColor(scn_text_color);\r\n \t scn_context = scn_grid.getFontRenderContext();\r\n scn_grid.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\r\n RenderingHints.VALUE_ANTIALIAS_ON);\r\n }",
"private void setPrefSizeForText()\n {\n double prefW = getSuggestedPrefWidth();\n double prefH = _textArea.getPrefHeight();\n setPrefSize(prefW, prefH);\n }",
"private float drawText ( \r\n\t String text,\r\n\t Graphics2D g2\r\n\t )\r\n\t{\n\t\tif ( ( text == null ) || text.equals ( \"\" ) )\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tif ( horizontalLocationOfRelation <= 0 )\r\n\t\t{\r\n\t\t\treturn 0;\r\n\t\t}\r\n\r\n\t\tTextLayout tl = new TextLayout( text, SYMBOL_FONT, FONT_RENDER_CTXT );\r\n\t\tRectangle2D.Float bound = ( Rectangle2D.Float ) tl.getBounds ( );\r\n\r\n\t\t//Util.info(\"bound = \" + bound);\r\n\t\tfloat xAdjustment = bound.width / 2.0f;\r\n\r\n\t\t//int yAdjustment = ( int ) ( bound.height / 2.0f );\r\n\t\ttl.draw ( \r\n\t\t g2,\r\n\t\t horizontalLocationOfRelation + xAdjustment,\r\n\t\t vertLocationOfLine - WORM_LINE_THICKNESS - 1 - SYMBOL_LINE_LENGTH\r\n\t\t );\r\n\r\n\t\t//tl.draw(g2, 100.0f, 100.0f);\r\n\t\t//return bound.height;\r\n\t\ttl = new TextLayout( text, NUMBER_FONT, FONT_RENDER_CTXT );\r\n\t\tbound = ( Rectangle2D.Float ) tl.getBounds ( );\r\n\r\n\t\t//Util.info(\"bound = \" + bound);\r\n\t\treturn bound.width;\r\n\t}",
"@Override\n public String getTextAlign() {\n return graphicsEnvironmentImpl.getTextAlign(canvas);\n }",
"public static Dimension getBounds(final Graphics2D g, final Font font,\n final String text) {\n final int width = (int) font\n .getStringBounds(text, g.getFontRenderContext()).getWidth();\n final int height = (int) font\n .createGlyphVector(g.getFontRenderContext(), text)\n .getVisualBounds().getHeight();\n return new Dimension(width, height);\n }",
"public Integer getHeight(final String title, final String text) {\n\t\tInteger height = null;\n\t\tint[] size = getSize(title, text);\n\t\tif (size != null) {\n\t\t\theight = size[1];\n\t\t}\n\t\treturn height;\n\t}",
"public int size() {\n return text.size();\n }",
"public Dimension getPreferredSize() {\r\n\t\t\r\n\t\t// Calculate the preferred size based on a monospaced font.\r\n\t\t// Get the font metrics\r\n\t\tFontMetrics fm = getFontMetrics(font);\r\n\t\tint charHeight = fm.getMaxAscent() + fm.getMaxDescent();\r\n\t\tint charWidth = fm.charWidth('0');\r\n\r\n\t\tint minHeight = YPAD + (2 * BORDERWIDTH) + height + charHeight;\r\n\t\tint minWidth = 2 * ((2 * charWidth) + labelDist);\r\n\r\n\t\treturn new Dimension(minWidth, minHeight);\r\n\t}",
"public int getSwitchTextSize(){\n return switchTextSize;\n }",
"private void calculateLineHeight() {\n\tGC gc = getGC();\n\tlineEndSpaceWidth = gc.stringExtent(\" \").x;\t\n\t\n\t// don't assume that bold and normal fonts have the same height\n\t// fixes bug 41773\n\tFont originalFont = gc.getFont();\n\tFontMetrics metrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(getFont(SWT.BOLD | SWT.ITALIC));\n\tmetrics = gc.getFontMetrics();\n\tascent = Math.max(ascent, metrics.getAscent() + metrics.getLeading());\n\tdescent = Math.max(descent, metrics.getDescent());\n\taverageCharWidth = Math.max(averageCharWidth, metrics.getAverageCharWidth());\n\tgc.setFont(originalFont);\n\tdisposeGC(gc);\n\t\n\t// clear the font cache\n\tif (boldFont != null) boldFont.dispose();\n\tif (italicFont != null) italicFont.dispose();\n\tif (boldItalicFont != null) boldItalicFont.dispose();\n\tboldFont = italicFont = boldItalicFont = null;\n}",
"public void setTextSize(float textSize){\n Context context = getContext();\n Resources res;\n\n if(context == null){\n res = Resources.getSystem();\n }else{\n res = context.getResources();\n }\n\n setTextSizePx(TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_SP, textSize, res.getDisplayMetrics()));\n }",
"public void updateText()\r\n\t{\r\n\t\tdouble smallest = Math.min(menu.getController().getWidth(), menu.getController().getHeight());\r\n\t\tdouble equivalent12 = smallest/55;//Equivalent of 12 point font on base dimensions\r\n\t\t\r\n\t\ttextRenderer = new TextRenderer(new Font(fontName, Font.PLAIN, (int)(equivalent12*size)), true, true);\r\n\t}",
"public float getLineHeightMultiplier() {\n return mTextContainer.getLineHeightMultiplier();\n }",
"Length getWidth();",
"private int getQustionHeight(int width, int height){\n\t\tView view = (View) questionText.getClientProperty(javax.swing.plaf.basic.BasicHTML.propertyKey);\n \tview.setSize(width, height);\n \tfloat h = view.getPreferredSpan(View.Y_AXIS);\n \treturn (int)Math.ceil(h);\n\t}",
"@Override\n public String getTextBaseline() {\n return graphicsEnvironmentImpl.getTextBaseline(canvas);\n }",
"public void checkTextSize(){\n mShp = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n String textSize = mShp.getString(\n getString(R.string.pref_textSize_key),\n getString(R.string.pref_textSize_default)\n );\n float size = Float.parseFloat(textSize);\n mTaleText.setTextSize(TypedValue.COMPLEX_UNIT_SP,size);\n }",
"private void getWidthandHeight(char[] imagenaux) {\n for (iterator = 3; imagenaux[iterator] != '\\n'; ++iterator) {\n if (imagenaux[iterator] == ' ') anchura = false;\n else {\n if (anchura) {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n width *= 10;\n width += aux;\n } else {\n int aux = Character.getNumericValue(imagenaux[iterator]);\n height *= 10;\n height += aux;\n }\n }\n }\n ++iterator;\n while (imagenaux[iterator] != '\\n') { ++iterator; }\n ++iterator;\n }",
"public int getThickness ()\r\n {\r\n return glyph.getBounds().height;\r\n }",
"public int length() {\r\n\t\treturn text.length();\r\n\t}",
"public String getwidth()\n\t{\n\t\treturn width.getText();\n\t}",
"public static int getWorkspaceIconTextSizeInPx(Context context) {\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = PrefUtils.getIntPref(context, PrefConstants.KEY_ICON_TEXT_SIZE, -1);\n if (mWorkspaceIconTextSize < 0) {\n mWorkspaceIconTextSize = getDefaultWorkspaceIconTextSizeInPx(context);\n }\n }\n return mWorkspaceIconTextSize;\n }",
"public abstract int getDisplayHeight();",
"int getWidth();",
"int getWidth();"
] | [
"0.72839886",
"0.7101025",
"0.7072482",
"0.70218897",
"0.69029963",
"0.6803273",
"0.6758387",
"0.67521983",
"0.6723733",
"0.6679325",
"0.65860623",
"0.6555608",
"0.65500766",
"0.6498299",
"0.6498299",
"0.6463411",
"0.6434071",
"0.6431419",
"0.6406148",
"0.639242",
"0.636094",
"0.636094",
"0.6329246",
"0.6299599",
"0.62833536",
"0.6263751",
"0.624443",
"0.624079",
"0.6224756",
"0.6212709",
"0.6193853",
"0.6173971",
"0.61563766",
"0.6141349",
"0.61372864",
"0.6132231",
"0.61215377",
"0.61173546",
"0.6102897",
"0.60557324",
"0.60489756",
"0.60484296",
"0.60377645",
"0.6029739",
"0.60124475",
"0.6000686",
"0.5991463",
"0.5960545",
"0.59603363",
"0.5951619",
"0.59417963",
"0.5934186",
"0.5923504",
"0.5907675",
"0.59074956",
"0.5905854",
"0.5868543",
"0.5854155",
"0.5844972",
"0.5833471",
"0.5816013",
"0.58118063",
"0.5811651",
"0.58079994",
"0.58009166",
"0.5800367",
"0.579734",
"0.57914895",
"0.5782745",
"0.57723796",
"0.5758337",
"0.57565427",
"0.57526577",
"0.57497627",
"0.57463163",
"0.57403195",
"0.5729907",
"0.5711665",
"0.570526",
"0.5704537",
"0.5692446",
"0.5682538",
"0.5667909",
"0.5666064",
"0.5665145",
"0.5657588",
"0.56554854",
"0.564574",
"0.56357783",
"0.56308585",
"0.5627069",
"0.5618747",
"0.56134814",
"0.5585775",
"0.55774325",
"0.5574519",
"0.5553652",
"0.5545833",
"0.5541683",
"0.5541683"
] | 0.6449596 | 16 |
Returns the bounds of the parent component, accounting for insets. | private Rectangle getParentBounds() {
final var bounds = mParentBounds;
return bounds == null
? mParentBounds = calculateBounds( getParent() )
: bounds;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PBounds getBoundsReference() {\n\t\tPBounds bds = super.getBoundsReference();\n\t\tgetUnionOfChildrenBounds(bds);\n\n\t\tcachedChildBounds.setRect(bds);\n\t\tdouble scaledIndent = INDENT/renderCamera.getViewScale();\t\t\n\t\tbds.setRect(bds.getX()-scaledIndent,bds.getY()-scaledIndent,bds.getWidth()+2*scaledIndent,bds.getHeight()+2*scaledIndent);\n\t\t\n\t\treturn bds;\n\t}",
"public Rectangle getBounds() {\n\t\tif (bounds == null) {\n\t\t\tsuper.getBounds();\n\t\t\tfor (int i = 0; i < getChildren().size(); i++) {\n\t\t\t\tIFigure child = (IFigure) getChildren().get(i);\n\t\t\t\tbounds.union(child.getBounds());\n\t\t\t}\n\t\t}\n\t\treturn bounds;\n\t}",
"public Bounds getBounds() {\n\t\treturn boss.getBoundsInParent();\n\t}",
"public Rectangle getBounds() {\n return super.getBounds();\n }",
"public RMRect getBoundsInside() { return new RMRect(0, 0, getWidth(), getHeight()); }",
"Rectangle getBounds();",
"public Rectangle2D getBounds() {\n\t\tif (_child == null) {\n\t\t\treturn new Rectangle2D.Double();\n\t\t} else {\n\t\t\treturn _child.getBounds();\n\t\t}\n\t}",
"@NonNull\n public Rect getBounds() {\n return new Rect(mBounds);\n }",
"protected Rectangle determineBounds() {\n return getNetTransform().createTransformedShape( _bounds ).getBounds();\n }",
"public Bounds getLogicalBounds() {\n return getDragContext().getLogicalBounds();\n }",
"public Rectangle getClipBounds()\r\n\t{\r\n\t\treturn _g2.getClipBounds();\r\n\t}",
"private float[] getControlBounds() {\n\t\tRectangle r = control instanceof Scrollable ? ((Scrollable) control).getClientArea() : control.getBounds();\n\t\tfloat[] controlBounds = new float[]{r.x, r.y, r.x + r.width, r.y + r.height};\n\t\treturn controlBounds;\n\t}",
"public Rectangle getBounds();",
"public Rectangle getBounds();",
"public Rectangle getBounds() {\n return new Rectangle(getMinX(), getMinY(), getWidth(), getHeight());\n }",
"public java.awt.Rectangle getBounds(){\r\n return new java.awt.Rectangle((int)Math.round(x), (int)Math.round(y), (int)Math.round(getWidth()), (int)Math.round(getHeight()));\r\n }",
"Rectangle getBounds() {\n return new Rectangle(getLocation(), getSize());\n }",
"public Rectangle getBounds() {\n return new Rectangle((int) getX() - 20, (int) getY() - 20, 40, 40);\n }",
"@Override\n public Rectangle getBounds() {\n return new Rectangle(this.bounds);\n }",
"public final Rectangle getBounds() {\n return label.getBounds();\n }",
"public Rectangle getBounds() {\n\t\treturn new Rectangle((int) xPos, (int) yPos, (int) width, (int) height);\n\t}",
"public sRectangle getSRectangleBound()\n {\n return form.getSRectangleBound();\n }",
"public Rectangle getBounds() {\n\t\treturn new Rectangle(getX(),getY(),width, width);\n\t}",
"public Rectangle getBounds() {\n return new Rectangle(x, y, 32, 32);\n }",
"public Rectangle getBounds() {\r\n return new Rectangle(x, y, 55, 51);\r\n }",
"public Rectangle getBounds() {\n\t\t\treturn new Rectangle(x_pos, y_pos, getIconWidth(), getIconHeight());\n\t\t}",
"public Rectangle getBounds() {\r\n return bounds;\r\n }",
"public RMRect getBounds() { return new RMRect(getX(), getY(), getWidth(), getHeight()); }",
"public void getBoundsInParent(Rect outBounds) {\n/* 692 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public abstract Rectangle getBounds();",
"public Rectangle getBounds() {\n return null;\n }",
"public Rectangle getBounds(){\r\n return new Rectangle(x, y, w, w);\r\n }",
"public Rectangle getBounds()\r\n\t{\r\n\t\treturn new Rectangle(x, y, w, h);\r\n\t}",
"public RectF getBounds()\n {\n return bounds;\n }",
"public Rectangle getBounds() {\n return new Rectangle(x, y, DIAMETER, DIAMETER); // returns a rectangle with its dimensions\r\n }",
"@Override\n\tpublic GRectangle getBounds() {\n\t\tif (isEmpty()) {\n\t\t\treturn new GRectangle();\n\t\t} else {\n\t\t\tGPoint p0 = points.get(0);\n\t\t\tdouble minX = p0.getX();\n\t\t\tdouble maxX = minX;\n\t\t\tdouble minY = p0.getY();\n\t\t\tdouble maxY = minY;\n\t\t\tfor (int i = 1; i < size(); i++) {\n\t\t\t\tGPoint p1 = points.get(i);\n\t\t\t\tminX = Math.min(minX, p1.getX());\n\t\t\t\tmaxX = Math.max(maxX, p1.getX());\n\t\t\t\tminY = Math.min(minY, p1.getY());\n\t\t\t\tmaxY = Math.max(maxY, p1.getY());\n\t\t\t}\n\t\t\treturn new GRectangle(minX, maxX, minY, maxY);\n\t\t}\n\t}",
"public Rectangle getBounds () {\r\n\tcheckWidget();\r\n\tPhArea_t area = new PhArea_t ();\r\n\tOS.PtWidgetArea (handle, area);\r\n\treturn new Rectangle (area.pos_x, area.pos_y, area.size_w, area.size_h);\r\n}",
"public Rect getBound() {\n return new Rect((int) (x - radius), (int) (y - radius), (int) (x + radius), (int) (y + radius));\n }",
"@Override\n public Rectangle getBounds() {\n return new Rectangle(x,y,64,64);\n }",
"int getBoundsHeight();",
"public Rectangle getBounds() {\n\t\tRectangle Box = new Rectangle(x, y, 48, 48);\n\t\treturn Box;\n\t}",
"public Rectangle getPlotBounds();",
"public final native LatLngBounds getBounds() /*-{\n return this.getBounds();\n }-*/;",
"public String getRectangleBounds() {\n checkAvailable();\n return impl.getRectangle();\n }",
"@Override\n\tpublic Rectangle getBounds() {\n\t\treturn new Rectangle(screen_x, screen_y, pinWidth, pinWidth);\n\t}",
"public Rectangle getBounds() {\r\n\t\treturn new Rectangle((int) (x * scalingX), (int) (y * scalingY), (int) rocketWidth, (int) rocketHeight);\r\n\t}",
"@Override\r\n\tpublic Rectangle getBound() {\n\t\treturn new Rectangle((int)x, (int)y, (int)width, (int)height);\r\n\t}",
"public float[] getBounds() {\r\n\t\tfloat[] bounds = {x_ - width_/ 2, x_ + width_ / 2, y_ - height_ / 2, y_ + height_ / 2};\r\n\t\treturn bounds;\r\n\t}",
"public Rectangle getBounds() {\n\treturn new Rectangle((int)x,(int)y,32,32);\n\t}",
"public abstract Regionlike getGridBounds();",
"private Bounds getDrawBounds() {\n\t\tfinal float boundsWidth = 2 * OFFSET_X;\n\t\tfinal float boundsHeight = 2 * OFFSET_Y;\n\t\t\n\t\t//Get the center point of the player, then subtract by offset\n\t\tfinal float x = (activePlayer.getX() + activePlayer.getWidth() / 2f) \n\t\t\t\t/ activePlayer.getScaleX() - OFFSET_X;\n\n\t\tfinal float y = (activePlayer.getY() + activePlayer.getHeight() / 2f) \n\t\t\t\t/ activePlayer.getScaleY() - OFFSET_Y + 1;\n\t\t\n\t\treturn new Bounds(x, y, boundsWidth, boundsHeight);\n\t}",
"public RMRect getFrame() { return isRSS()? convertRectToShape(getBoundsInside(), _parent) : getBounds(); }",
"public Bounds getBounds () { return (bounds); }",
"@Override\r\n public Rectangle getBounds()\r\n {\r\n try\r\n {\r\n return new Rectangle(0,0,pageSwitcher.getWidth(),pageSwitcher.getHeight());\r\n }\r\n catch(NullPointerException e)\r\n {\r\n return super.getBounds();\r\n }\r\n }",
"public Rectangle get_bounds() {\n return new Rectangle(x,y, width-3, height-3);\n }",
"public Rectangle getBounds()\n {\n return new Rectangle ((int)x,(int)y,32,32);\n }",
"public CCAABoundingRectangle boundingRect(){\n\t\treturn _myBoundingRectangle;\n\t}",
"public Point getSize() {\n checkWidget();\n return parent.fixPoint( itemBounds.width, itemBounds.height );\n }",
"public Rectangle getBoundsBigger() {\n return new Rectangle(x-32,y-32,128,128);\n }",
"@Override public void layoutContainer(Container parent) {\n int nc = parent.getComponentCount();\n if (nc == 0) {\n return;\n }\n int width = parent.getWidth(); // - insets.left - insets.right;\n int height = parent.getHeight(); // - insets.left - insets.right;\n int x = 0; // insets.left; int y = insets.top;\n // for (int i = 0; i < nc; i++) {\n Component c = parent.getComponent(0); // = toolBox;\n c.setBounds(x, height - yy, width, c.getPreferredSize().height);\n // }\n }",
"public IRectangleBound getClipBound();",
"public BoundsObject getBounds() {\n\t\treturn null;\n\t}",
"@Override\n public GRectangle getBounds() {\n return null;\n }",
"public Rectangle getBoundingBox() {\n\t\treturn getBounds();\n\t}",
"public ERectangle getPrimitiveBounds() {\n ERectangle primitiveBounds = this.primitiveBounds;\n if (primitiveBounds != null) return primitiveBounds;\n return this.primitiveBounds = computePrimitiveBounds();\n }",
"public static final Rect getViewportBounds() {\n return new Rect(Window.getScrollLeft(), Window.getScrollTop(), Window.getClientWidth(), Window.getClientHeight());\n }",
"public abstract Rectangle getSnapshotBounds();",
"RectangleLatLng getBounds();",
"int getBoundsWidth();",
"@Override\r\n\tpublic Area getBoundsArea() {\n\t\treturn null;\r\n\t}",
"public Rectangle getOffsetBounds()\r\n\t{\r\n\t\treturn new Rectangle(mFrameX, mFrameY, mImageBuffer.getWidth(null), mImageBuffer.getHeight(null));\r\n\t}",
"public RMRect bounds() { return new RMRect(x(), y(), width(), height()); }",
"int getBoundsY();",
"@Override\n public List<Bound> getBounds() {\n return Collections.unmodifiableList(bounds);\n }",
"public Rectangle bounds()\n\t{\n\t\treturn (new Rectangle(x, y, 10, 10));\n\t}",
"public Rectangle getBounds() {\n\t\tif (img == null)\n\t\t\treturn new Rectangle();\n\t\treturn new Rectangle(new Dimension(img.getWidth(), img.getHeight()));\n\t}",
"int getBoundsX();",
"protected void computeBounds() {\r\n bounds = new Rectangle(layout.location.x - icon.getIconWidth() / 2,\r\n layout.location.y - icon.getIconHeight() / 2, icon.getIconWidth(), icon.getIconHeight()).union(labelBox)\r\n .union(ports[0].getBounds()).union(ports[1].getBounds()).union(ports[2].getBounds())\r\n .union(component.getType() == TemplateComponent.TYPE_CHANNEL\r\n ? ports[3].getBounds().union(supHalo.getBounds())\r\n : ports[3].getBounds());\r\n }",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public mxRectangle getContainerSize()\n\t\t\t\t\t{\n\t\t\t\t\t\treturn graphComponent.getLayoutAreaSize();\n\t\t\t\t\t}",
"public static int offset_parent() {\n return (40 / 8);\n }",
"public Dimension minimumLayoutSize(Container parent) {\n/* 138 */ synchronized (parent.getTreeLock()) {\n/* 139 */ Insets ins = parent.getInsets();\n/* 140 */ Component[] comps = parent.getComponents();\n/* 141 */ int height = 0;\n/* 142 */ int width = 0;\n/* 143 */ for (int i = 0; i < comps.length; i++) {\n/* 144 */ if (comps[i].isVisible() || !this.ignoreInvisible) {\n/* */ \n/* */ \n/* */ \n/* 148 */ Dimension pref = comps[i].getMinimumSize();\n/* 149 */ if (pref.height > height) {\n/* 150 */ height = pref.height;\n/* */ }\n/* 152 */ if (pref.width > width)\n/* 153 */ width = pref.width; \n/* */ } \n/* */ } \n/* 156 */ return new Dimension(width + ins.left + ins.right, height + ins.top + ins.bottom);\n/* */ } \n/* */ }",
"public VisibleRangeViewModel getVisibleRange() {\n return getParent().getVisibleRange();\n }",
"public Rectangle2D getBounds() {\n\t\t// FIXME: these bounds REALLY need to be cached. But it's\n\t\t// painful because of the public members.\n\t\tif (stroke == null) {\n\t\t\treturn shape.getBounds2D();\n\t\t} else if (stroke instanceof BasicStroke) {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// if all we want is the bounds, then we don't need to actually\n\t\t\t// stroke the shape. We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = shape.getBounds2D();\n\t\t\tint width = (int) ((BasicStroke) stroke).getLineWidth() + 2;\n\t\t\treturn new Rectangle2D.Double(rect.getX() - width, rect.getY()\n\t\t\t\t\t- width, rect.getWidth() + width + width, rect.getHeight()\n\t\t\t\t\t+ width + width);\n\t\t} else {\n\t\t\t// For some reason (antialiasing?) the bounds returned by\n\t\t\t// BasicStroke is off by one. This code works around it.\n\t\t\t// We've had reports that this is no longer\n\t\t\t// necessary with JDK1.3.\n\t\t\tRectangle2D rect = stroke.createStrokedShape(shape).getBounds2D();\n\t\t\treturn new Rectangle2D.Double(rect.getX() - 1, rect.getY() - 1,\n\t\t\t\t\trect.getWidth() + 2, rect.getHeight() + 2);\n\t\t}\n\t}",
"public Rectangle getBound(){\n \tint x = (int)location.getX();\n \tint y = (int)location.getY();\n \t\n \tif(isExploded == false)\n \t\treturn new Rectangle(x, y, image.getWidth(null), image.getHeight(null));\n \telse\n \t\treturn new Rectangle(x,y, 1,1);\n }",
"public final BoundingBox getBounds() {\n\t\tif (bounds==null) {\n\t\t\tint srsID =( (Geometry)this.get(0).getDefaultGeometry()).getSRID();\n\t\t\tBoundingBox re = new BoundingBoxImpl(\"\"+srsID);\n\t\t\tfor (SimpleFeature f : this) {\n\t\t\t\tre.include(f.getBounds());\n\t\t\t}\n\t\t\tbounds = re;\n\t\t}\n\t\treturn bounds;\n\t}",
"public Rect bounds(Window w) {\r\n\t\treturn new Rect(c.bounds(w).width,c.bounds(w).height);\r\n\t}",
"public Rectangle2D.Double getTextBounds() {\n\t\t\n\t\tdouble txtPinX = _parent.getTxtPinX();\n\t\tdouble txtPinY = _parent.getTxtPinY();\n\t\t\n\t\tdouble txtLocPinX = _parent.getTxtLocPinX();\n\t\tdouble txtLocPinY = _parent.getTxtLocPinY();\n\t\t\n\t\tdouble txtWidth = _parent.getTxtWidth();\n\t\tdouble txtHeight = _parent.getTxtHeight();\n\t\t\n\t\tdouble x = txtPinX - txtLocPinX;\n\t\tdouble y = txtPinY - txtLocPinY;\n\t\t\n\t\treturn new Rectangle2D.Double(x, y, txtWidth, txtHeight);\n\t}",
"public LatLongRectangle getBoundingRectangle() {\n return boundingRectangle;\n }",
"public MWC.GenericData.WorldArea getBounds()\r\n\t{\n\t\treturn null;\r\n\t}",
"public int getBound();",
"@Override\n\tpublic Rectangle getBound() {\n\t\trectBound.setX(posX+20);\n\t\trectBound.setY(Y_LAND - image.getHeight() +10);\n\t\trectBound.setWidth(image.getWidth()-10);\n\t\trectBound.setHeight(image.getHeight());\n\t\treturn rectBound;\n\t}",
"private Dimension getBoundingSize(Component source)\n\t{\n\t\tif (source instanceof Window)\n\t\t{\n\t\t\tGraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment();\n\t\t\tRectangle bounds = env.getMaximumWindowBounds();\n\t\t\treturn new Dimension(bounds.width, bounds.height);\n\t\t}\n\t\treturn source.getParent().getSize();\n\t}",
"public Point getLocationInParentWindow() {\n return this.mLocationInParentWindow;\n }",
"public float getHeight()\n {\n return getBounds().height();\n }",
"private Bounds getTextureBounds() {\n\t\tfinal float boundsWidth = 2 * OFFSET_X;\n\t\tfinal float boundsHeight = 2 * OFFSET_Y;\n\t\t\n\t\t//Get the center point of the player, then subtract by offset\n\t\tfinal float x = (activePlayer.getX() + activePlayer.getWidth() / 2f) \n\t\t\t\t/ activePlayer.getScaleX() - OFFSET_X;\n\t\tfinal float y = (activePlayer.getY() - activePlayer.getHeight() / 2f) \n\t\t\t\t/ activePlayer.getScaleY() + OFFSET_Y + 1;\n\t\t\n\t\treturn new Bounds(x, y, boundsWidth, boundsHeight);\n\t}"
] | [
"0.7311694",
"0.7284412",
"0.712919",
"0.709222",
"0.70690733",
"0.6882633",
"0.68151",
"0.67955464",
"0.6761089",
"0.6699749",
"0.66946626",
"0.6692886",
"0.6688945",
"0.6688945",
"0.66876036",
"0.66646856",
"0.66520613",
"0.6645735",
"0.6636",
"0.6611845",
"0.6573798",
"0.6567352",
"0.653092",
"0.65113",
"0.6508311",
"0.6503905",
"0.64987594",
"0.6487139",
"0.6439129",
"0.6400096",
"0.6400096",
"0.6400096",
"0.6396778",
"0.6393461",
"0.6368439",
"0.6368106",
"0.63462716",
"0.6341986",
"0.632845",
"0.6323106",
"0.6306715",
"0.6304211",
"0.6286251",
"0.62750745",
"0.6269327",
"0.62679976",
"0.6257481",
"0.62525713",
"0.6240052",
"0.6216954",
"0.6193367",
"0.61887926",
"0.6180126",
"0.6138225",
"0.61352885",
"0.6134744",
"0.6118179",
"0.61160463",
"0.61102676",
"0.61088544",
"0.6107652",
"0.61018646",
"0.6098617",
"0.6095214",
"0.6069286",
"0.6052955",
"0.6050912",
"0.6033061",
"0.59948987",
"0.59943545",
"0.59940577",
"0.5993671",
"0.59771866",
"0.59532934",
"0.5926849",
"0.59235704",
"0.59160507",
"0.5915343",
"0.5909896",
"0.58931404",
"0.58878386",
"0.58878386",
"0.58878386",
"0.58878386",
"0.5867229",
"0.5864938",
"0.5831657",
"0.581356",
"0.58054453",
"0.5796797",
"0.57892585",
"0.57754534",
"0.5774726",
"0.57479477",
"0.57406634",
"0.57394093",
"0.57234836",
"0.57101715",
"0.5692883",
"0.5684019"
] | 0.77123266 | 0 |
returns a Result object containing all criteria for the specified alarm in the requestBody | @Security.Authenticated(Authenticate.class)
public static Result getCriteria(Integer id){
Query q= new Query();
q.select(new ArrayList<String>()).from("criteria").where("AlarmID", "=", Integer.toString(id));
return HttpHelper.query(q.query, fields);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result postCriteria(Integer alarmId){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\tObjectNode obj = (ObjectNode) body.asJson();\n\t\t \n\t\tif(alarmId == null) \n\t\t\treturn badRequest(\"Invalid alarmId\");\n\t\t\n\t\tif(!instrumentCheck(alarmId, obj)) \n\t\t\treturn badRequest(\"Invalid instrument/field combination\");\n\t\t\n\t\t//RESTRICTIONS\n\t\t//\trefresh rate must be valid for the instrument/channel\n\t\t// triggers cannot conflict\t\t\t\n\t\t\n\t\tobj.put(\"refreshRate\", getRefresh(obj));\n \tobj.put(\"alarmID\", alarmId);\n \n \tq.insert(\"criteria\", fillable, (JsonNode) obj);\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"@GET\n @Path(\"{thingName}/{status}\")\n @Produces(MediaType.APPLICATION_JSON)\n public String recieveAlarm(@PathParam(\"thingName\") String thingName, \n @PathParam(\"status\") String status,@Context UriInfo info) {\n\n MultivaluedMap queryMap = info.getQueryParameters();\n Iterator itr = queryMap.keySet().iterator();\n HashMap<String, String> dataMap = new HashMap<>(); \n while(itr.hasNext()){\n Object key = itr.next();\n Object value = queryMap.getFirst(key);\n dataMap.put(key.toString(), value.toString());\n }\n ThingInfoMap thingInfoMap = new ThingInfoMap(thingName, new Timestamp(new Date().getTime()).toString(),status);\n thingInfoMap.setContent(dataMap);\n \n int alarmID = database.addAlarm(thingInfoMap);\n Dweet newDweet;\n if(alarmID != -1){\n thingInfoMap.setAlarmID(alarmID);\n newDweet = new Dweet(\"succeeded\", \"sending\", \"alarm\", thingInfoMap);\n newDweet.setTo(\"myMobileA\"); // it's not included in database\n String warningMsg = gson.toJson(newDweet);\n //send alarm to mobile use GCM\n sendToMobileByGCM(warningMsg);\n return warningMsg;\n } else {\n newDweet = new Dweet(\"failed\", \"alarm is failed to added\");\n return gson.toJson(newDweet);\n }\n\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<RAlarmLog> getAlarmAlert(String sdateF, String sdateT,\r\n\t\t\tString edateF, String edateT, String bscid, String cellid,\r\n\t\t\tString vendor, String district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView,\r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getAlarmAlert\", parms);\r\n\t}",
"List<SBCallAlarm> selectAll();",
"public List getCalendarios(Map criteria);",
"SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);",
"public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }",
"public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<RAlarmLog> getAlarmDetailAssess(String dateF, String dateT,\r\n\t\t\tString catruc, String users, String status, String network,\r\n\t\t\tString neType, String severity,String columnheader, String strWhere,\r\n\t\t\tInteger startRecord, Integer endRecord,String sortfield,String sortorder) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", dateF);\r\n \t\tparms.put(\"P_SDATE_TO\", dateT);\r\n \t\tparms.put(\"P_SHIFT\", catruc);\r\n \t\tparms.put(\"P_USERS\", users);\r\n \t\tparms.put(\"P_STATUS\", status);\r\n \t\tparms.put(\"P_NETWORK\", network);\r\n \t\tparms.put(\"P_NETYPE\", neType);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_COLUMNHEADER\", columnheader);\r\n \t\tparms.put(\"P_WHERE\", strWhere);\r\n \t\tparms.put(\"P_START_RECORD\", startRecord);\r\n \t\tparms.put(\"P_END_RECORD\", endRecord);\r\n \t\tparms.put(\"P_COLUMN\", sortfield);\r\n \t\tparms.put(\"P_ORDER\", sortorder);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getAlarmDetailAssess\", parms);\r\n\t}",
"Appliance[] find(Criteria[] criteria);",
"@org.junit.jupiter.api.Test\n void getAllAlarm() {\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", \"1\", null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", \"2\", null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", \"3\", null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", \"4\", null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", \"5\", null, null,\n// null, null).getSize());\n//\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, \"1\", null,\n// null, null).getSize());\n\n// System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, \"1\", null,\n// null, null).getSize());\n\n System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, null, null,\n \"2021-01-01 00:00:00\", null).getSize());\n\n System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, null, null,\n null, \"2021-04-01 09:00:00\").getSize());\n\n System.out.println(deviceAlarmService.getAllAlarm(0, 10000, \"11111111111111111111\", null, null, null,\n \"2021-02-01 01:00:00\", \"2021-04-01 04:00:00\").getSize());\n }",
"public Future<?> doGetAllAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getAllAlarmsNow);\n\t}",
"@GetMapping(\"/_search/alarm-definitions\")\n public ResponseEntity<List<AlarmDefinitionDTO>> searchAlarmDefinitions(@RequestParam String query, Pageable pageable) {\n log.debug(\"REST request to search for a page of AlarmDefinitions for query {}\", query);\n Page<AlarmDefinitionDTO> page = alarmDefinitionService.search(query, pageable);\n HttpHeaders headers = PaginationUtil.generateSearchPaginationHttpHeaders(query, page, \"/api/_search/alarm-definitions\");\n return ResponseEntity.ok().headers(headers).body(page.getContent());\n }",
"public List<NacAlarm> getAllAlarmsNow()\n\t{\n\t\tFuture<?> future = this.doGetAllAlarmsNow();\n\n\t\treturn NacRepository.getAlarmListFromFuture(future);\n\t}",
"List<PineAlarm> selectByExample(PineAlarmExample example);",
"private static Application ParseResponseToApplication(String properties) {\n\t\tInputStream in = new ByteArrayInputStream(properties.getBytes(StandardCharsets.UTF_8));\n ResultSet results = ResultSetFactory.fromJSON(in);\n \n Application app = new Application();\n\n while (results.hasNext()) {\n\n QuerySolution soln = results.nextSolution();\n\n Resource res= soln.getResource(\"predicate\");\n\n RDFNode Onode = soln.get(\"object\");\n String object=\"\";\n if (Onode.isResource()) {\n object = String.valueOf(soln.getResource(\"object\"));\n }\n else{\n object = String.valueOf(soln.getLiteral(\"object\")); \n }\n \n switch (res.getLocalName()) {\n\n case \"label\":\n String label = object; \n app.setLabel(label);\n break;\n\n case \"comment\":\n \tString comment = object; \n \tapp.setComment(comment);\n \tbreak;\n \t\n case \"appliedBy\":\n \tString personURI = object;\n \tif(personURI.contains(\"#\"))\n \t\tpersonURI = \":\" + personURI.substring(personURI.indexOf(\"#\") + 1);\n \tapp.setPersonURI(personURI);\n \tbreak;\n \t\n case \"appliedFor\":\n \tString jobURI = object;\n \tif(jobURI.contains(\"#\"))\n \t\tjobURI = \":\" + jobURI.substring(jobURI.indexOf(\"#\") + 1);\n \tapp.setJobURI(jobURI);\n \tbreak;\n \t\n case \"hasExpectedSalary\":\n \tString expSalary = object;\n \tapp.setExpectedSalary(expSalary);\n \tbreak;\n \t\n case \"isAvailableAt\":\n \tString availableAt = object;\n \tapp.setAvailability(availableAt);\n \tbreak;\n \t\n case \"expectedSalaryCurrency\":\n \tString expSalCur = object;\n \tapp.setSalaryCurrency(expSalCur);\n \tbreak;\n \t\n default:\n break;\n }\n\n } \n return app; \n\t}",
"public List<ScheduleRequestInfo> searchForScheduleRequests(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;",
"public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }",
"public StringBuffer returnAlarmDataFromApi() throws RemoteException;",
"public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }",
"PineAlarm selectOneByExample(PineAlarmExample example);",
"public static HashMap<Uri, AlarmDetails> retrieveAllAlarms(Context context) {\r\n\r\n AlarmDetails alarmDetails = null;\r\n //get shared preference file name ALARM_STORE_FILE_NAME\r\n // using the file name which should be unique\r\n SharedPreferences sharedPreferences =\r\n context.getSharedPreferences(StringConstants.ALARM_STORE_FILE_NAME,\r\n Context.MODE_PRIVATE);\r\n\r\n //Map for creating a set of values from shared preferences file\r\n Map<String, ?> alarms = sharedPreferences.getAll();\r\n //creating a HashMap of Uri and AlarmDetail for storing the set\r\n // which is created from the set by the shared preference file\r\n\r\n HashMap<Uri, AlarmDetails> outStoredAlarms = new HashMap<>();\r\n\r\n Set<String> keySet = alarms.keySet();\r\n\r\n for (String keyUri : keySet) {\r\n try {\r\n //parsing uri from Uri for Key generation\r\n Uri uri = Uri.parse(keyUri);\r\n //details in string for value\r\n String details = (String) alarms.get(keyUri);\r\n\r\n Logger.debug(\"ALARM\", \"ALARM: \" + uri + \",\" + details);\r\n\r\n alarmDetails = new Gson().fromJson(details, AlarmDetails.class);\r\n outStoredAlarms.put(uri, alarmDetails);\r\n } catch (ClassCastException | NullPointerException | JsonIOException exception) {\r\n exception.printStackTrace();\r\n continue;\r\n }\r\n }\r\n return outStoredAlarms;\r\n\r\n }",
"@Description(\"response has body '{body}'\")\n public static Criteria<HarEntry> recordedResponseBody(@DescriptionFragment(\"body\") String body) {\n checkArgument(isNotBlank(body), \"Response body should be defined\");\n\n return condition(entry -> {\n HarContent responseContent = entry.getResponse().getContent();\n\n return ofNullable(responseContent)\n .map(content -> Objects.equals(content.getText(), body))\n .orElse(false);\n });\n }",
"public static List<StringMeeting> calendarMatching(\n List<StringMeeting> calendar1,\n StringMeeting dailyBounds1,\n List<StringMeeting> calendar2,\n StringMeeting dailyBounds2,\n int meetingDuration) {\n\n\n List<Meeting> updatedCaleandr1 = updateCalendar(calendar1, dailyBounds1);\n System.out.println(updatedCaleandr1);\n List<Meeting> updatedCaleandr2 = updateCalendar(calendar2, dailyBounds2);\n\n\n\n List<Meeting> mergedCalendar = mergeCalendars(updatedCaleandr1, updatedCaleandr2);\n mergedCalendar.forEach(k-> System.out.println(k.toString()));\n List<Meeting> flattencalendr = flattenCalenedars(mergedCalendar);\n// flattencalendr.forEach(k-> System.out.println(k.toString()));\n System.out.println();\n\n return getMatchingAvailabilities(flattencalendr, meetingDuration);\n }",
"@SuppressWarnings(\"unchecked\")\r\n\t@Override\r\n\tpublic List<Integer> getIdAlarmAlert(String sdateF, String sdateT, String edateF,\r\n\t\t\tString edateT, String bscid, String cellid, String vendor,\r\n\t\t\tString district, String alarmName, String function,\r\n\t\t\tString severity, String netWork, String username, String province,\r\n\t\t\tString team, String alarmType, String alarmMappingName,\r\n\t\t\tString statusFinish, String statusView, \r\n\t\t\tString region, String unAlarmMappingName) {\r\n\t\tMap<String, Object> parms = new HashMap<String, Object>();\r\n \t\tparms.put(\"P_SDATE_FROM\", sdateF);\r\n \t\tparms.put(\"P_SDATE_TO\", sdateT);\r\n \t\tparms.put(\"P_EDATE_FROM\", edateF);\r\n \t\tparms.put(\"P_EDATE_TO\", edateT);\r\n \t\tparms.put(\"P_NE\", bscid);\r\n \t\tparms.put(\"P_CELLID\", cellid);\r\n \t\tparms.put(\"P_VENDOR\", vendor);\r\n \t\tparms.put(\"P_DISTRICT\", district);\r\n \t\tparms.put(\"P_ALARM_NAME\", alarmName);\r\n \t\tparms.put(\"P_NETWORK\", netWork);\r\n \t\tparms.put(\"P_SEVERITY\", severity);\r\n \t\tparms.put(\"P_TYPE\",function );\r\n \t\tparms.put(\"P_USERNAME\", username);\r\n \t\tparms.put(\"P_PROVINCE\", province);\r\n \t\tparms.put(\"P_TEAM\", team);\r\n \t\tparms.put(\"P_ALARM_TYPE\", alarmType);\r\n \t\tparms.put(\"P_ALARM_MAPPING_NAME\", alarmMappingName);\r\n \t\tparms.put(\"P_STATUS_FINISH\", statusFinish);\r\n \t\tparms.put(\"P_STATUS_VIEW\", statusView);\r\n \t\tparms.put(\"P_REGION\", region);\r\n \t\tparms.put(\"P_UN_ALARM_MAPPING\", unAlarmMappingName);\r\n \t\tparms.put(\"P_DATA\", null);\r\n \t\treturn getSqlMapClientTemplate().queryForList(\"R_ALARM_LOG.getIdAlarmAlert\", parms);\r\n\t}",
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result putCriteria(Integer alarmId, Integer id){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\t\n\t\tObjectNode obj = (ObjectNode) body.asJson();\n\n\t\tif(!instrumentCheck(alarmId, obj)) \n\t\t\treturn badRequest(\"Invalid instrument/field combination\");\n\t\t\n\t\t//RESTRICTIONS\n\t\t//\trefresh rate must be valid for the instrument/channel\n\t\t// triggers cannot conflict\n\t\tobj.put(\"refreshRate\", getRefresh(obj));\n\t\t\n\t\t// null alarmId will not be accepted by the database, and will return 400 even without this if statement\n\t\tif(obj.get(\"alarmID\") != null && alarmId != obj.get(\"alarmID\").asInt()) \n\t\t\treturn badRequest(\"This criteria does not belong to the specified alarm\");\n \t\n\t\tq.update(\"criteria\", fillable, (JsonNode) obj).where(primaryKey, \"=\", Integer.toString(id));\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"public List<NacAlarm> getActiveAlarmsNow()\n\t{\n\t\tFuture<?> future = this.doGetActiveAlarmsNow();\n\n\t\treturn NacRepository.getAlarmListFromFuture(future);\n\t}",
"List<BachAlarmRole> selectByExample(BachAlarmRoleExample example);",
"public static void main(String[] args) throws Exception {\n\t\t\n\t\tString fromDate = \"2017-11-07 00:00:00\";\n\t\tString toDate = \"2017-11-07 23:59:59\";\n\t\tString conditon1 = \"seq_no\";\n\t\tString conditon2 = \"alm_mas_id\";\n\n\t\t//예시 Site List\n List<String> siteList = new ArrayList<String>();\n siteList.add(\"ALZAH\");\n siteList.add(\"SKCC_Turk_TSC\");\n \n ///예시 Bld List\n List<String> sitebldList = new ArrayList<String>();\n sitebldList.add(\"Turk_TSCTSC_AR000\");\n \n //예시 Flr List\n List<String> sitebldflrList = new ArrayList<String>();\n sitebldflrList.add(\"ALZAHALZAH_AR01A01\");\n\t\t\n// List<Map<String, Object>> resultList = AlarmMasAggregation.getAggregation(fromDate, toDate, conditon1, conditon2, siteList, sitebldList, sitebldflrList);\n List<Map<String, Object>> resultList = AlarmTypeAggregation.getAggregation(fromDate, toDate, null, siteList, sitebldList, sitebldflrList);\n\n\t\tSystem.out.println(\"Result :: \" + resultList);\n\t\t\n\t}",
"public List<MetricAlarm> listAlarms(List<String> alarmNameList) {\n DescribeAlarmsResult describeALarmsResult =\n amazonCloudWatch.describeAlarms(new DescribeAlarmsRequest().withAlarmNames(alarmNameList));\n return describeALarmsResult.getMetricAlarms();\n }",
"@Override\n public List<BusyFlightsResponse> search(BusyFlightsRequest busyFlightRequest) {\n ToughJetRequest toughJetRequest = BusyFlightUtil.mapToToughJet(busyFlightRequest);\n\n // now call ToughJet provider API to find flights base on request parameters.\n return Arrays.asList(ToughJetResponse.builder()\n .carrier(\"ToughJet\")\n .basePrice(890d)\n .tax(7)\n .discount(5d)\n .departureAirportName(\"LHR\")\n .arrivalAirportName(\"LHR\")\n .outboundDateTime(\"2019-16-5T09:20:27.14Z\")\n .inboundDateTime(\"2019-16-9T10:00:00.142Z\")\n .build(),\n ToughJetResponse.builder()\n .carrier(\"ToughJet\")\n .basePrice(1580d)\n .tax(8)\n .discount(10d)\n .departureAirportName(\"LHR\")\n .arrivalAirportName(\"LHR\")\n .outboundDateTime(\"2019-16-5T09:20:27.14Z\")\n .inboundDateTime(\"2019-16-9T10:00:00.142Z\")\n .build()\n ).stream().map(BusyFlightUtil::map).collect(Collectors.toList());\n }",
"@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 org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment requestAppointment(\n\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment appointment2)\n \n\n throws java.rmi.RemoteException\n \n {\n org.apache.axis2.context.MessageContext _messageContext = null;\n try{\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[0].getName());\n _operationClient.getOptions().setAction(\"http://www.PAHospital.org/RadiologyService/RequestAppointment\");\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\n\n \n \n addPropertyToOperationClient(_operationClient,org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\"&\");\n \n\n // create a message context\n _messageContext = new org.apache.axis2.context.MessageContext();\n\n \n\n // create SOAP envelope with that payload\n org.apache.axiom.soap.SOAPEnvelope env = null;\n \n \n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\n appointment2,\n optimizeContent(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\")), new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\",\n \"requestAppointment\"));\n \n //adding SOAP soap_headers\n _serviceClient.addHeadersToEnvelope(env);\n // set the message context with that soap envelope\n _messageContext.setEnvelope(env);\n\n // add the message contxt to the operation client\n _operationClient.addMessageContext(_messageContext);\n\n //execute the operation client\n _operationClient.execute(true);\n\n \n org.apache.axis2.context.MessageContext _returnMessageContext = _operationClient.getMessageContext(\n org.apache.axis2.wsdl.WSDLConstants.MESSAGE_LABEL_IN_VALUE);\n org.apache.axiom.soap.SOAPEnvelope _returnEnv = _returnMessageContext.getEnvelope();\n \n \n java.lang.Object object = fromOM(\n _returnEnv.getBody().getFirstElement() ,\n org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment.class,\n getEnvelopeNamespaces(_returnEnv));\n\n \n return (org.pahospital.www.radiologyservice.RadiologyServiceStub.Appointment)object;\n \n }catch(org.apache.axis2.AxisFault f){\n\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\n if (faultElt!=null){\n if (faultExceptionNameMap.containsKey(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"))){\n //make the fault by reflection\n try{\n java.lang.String exceptionClassName = (java.lang.String)faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(String.class);\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\n //message class\n java.lang.String messageClassName = (java.lang.String)faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(faultElt.getQName(),\"RequestAppointment\"));\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\n java.lang.Object messageObject = fromOM(faultElt,messageClass,null);\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\n new java.lang.Class[]{messageClass});\n m.invoke(ex,new java.lang.Object[]{messageObject});\n \n\n throw new java.rmi.RemoteException(ex.getMessage(), ex);\n }catch(java.lang.ClassCastException e){\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.ClassNotFoundException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }catch (java.lang.NoSuchMethodException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.reflect.InvocationTargetException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.IllegalAccessException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n } catch (java.lang.InstantiationException e) {\n // we cannot intantiate the class - throw the original Axis fault\n throw f;\n }\n }else{\n throw f;\n }\n }else{\n throw f;\n }\n } finally {\n if (_messageContext.getTransportOut() != null) {\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\n }\n }\n }",
"public ArrayList<VacancyQueryDTO> findVacantRooms (VacancyQueryDTO query);",
"List<Schedule> selectByExample(ScheduleCriteria example);",
"public List<ScheduleInfo> searchForSchedules(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;",
"@GetMapping(\"findALlRMS\")\n public String findAllRms(){\n return JSONObject.toJSONString(recordmaService.queryAll(null));\n }",
"public Collection<TimeRange> query(Collection<Event> events, MeetingRequest request) {\n if(request.getAttendees().isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n // nobody has time to meet for more than a day\n if(request.getDuration() > TimeRange.WHOLE_DAY.duration()){\n return Arrays.asList();\n }\n // if there're no already existing events, whole day is available, \n if(events.isEmpty()){\n return Arrays.asList(TimeRange.WHOLE_DAY);\n }\n\n Collection<String> listOfAttendees = request.getAttendees();\n List<TimeRange> unavailableTimes = getUnavailableTimesForAttendees(events, listOfAttendees);\n\n return getAvailableTimes(unavailableTimes, request.getDuration());\n }",
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result deleteCriteria(Integer alarmId, Integer id){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\t\n\t\tq.delete()\n\t\t\t.from(\"criteria\")\n\t\t\t.where(primaryKey, \"=\", Integer.toString(id))\n\t\t\t.andWhere(\"alarmID\", \"=\", Integer.toString(alarmId));\t\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"public queryAlarmByIds_result(queryAlarmByIds_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"public List<Appointment> getAllDetailsRecp();",
"Alarm createAlarm();",
"public InternalResultsResponse<Eventos> fetchEventosByRequest(EventoInquiryRequest request);",
"@Headers({\n \"Content-Type:application/json; charset=utf-8\"\n })\n @GET(\"entity/applications\")\n Call<List<Application>> getApplications(\n @Query(\"startTimestamp\") Long startTimestamp, @Query(\"endTimestamp\") Long endTimestamp, @Query(\"relativeTime\") String relativeTime, @Query(\"tag\") List<String> tag, @Query(\"entity\") List<String> entity\n );",
"private void getCustomAlarmStrategies() {\n String jsonString = WapiUtil.getCustomAlarmStrategies();\n List<DBAlarmStrategyCustom> dbstrategylist = JSONStr2DBStrategyCusList(jsonString);\n if (dbstrategylist != null) {\n List<AlarmStrategy> strategyCusList = DBStratCusList2StrategyList(dbstrategylist);\n if (null != strategyCusList) {\n // StrategyDBHelper.getInstance().cleanCustomAlarmStrategies();\n StrategyDBHelper.getInstance().updateCustomAlarmStrategies(\n dbstrategylist);\n }\n }\n }",
"public List<Alarmv3Cur> listAlarms() {\n\t\treturn null;\n\t}",
"@Consumes(MediaType.APPLICATION_JSON)\r\n\t@POST\r\n\t@Path(\"flightsList\")\r\n\t//public List<Flight> getFlightsFromCriteria(@PathParam(\"plane\") String plane,@PathParam(\"price\") int price,@PathParam(\"destination\") String destination,@PathParam(\"seats\") int seats) {\r\n\tpublic List<Flight> getFlightsFromCriteria(SearchCriteria sc) {\r\n\t\tList<Flight> l = DaoFactory.getFlightDao().getFlightsFromCriteria(sc);\r\n\t\tSystem.out.print(l);\r\n\t\treturn l;\r\n\t}",
"List<Alert> selectByExample(AlertExample example);",
"List<TypePatientPropertyCondition> search(String query);",
"@Override\n public Criteria getCriteria() {\n\n //判断是否为精确到天的时间查询\n //情况一 点击分组查询查看该天的详情\n if (this.searchObject.getEndtime() == null && this.searchObject.getStarttime() != null){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n\n //情况二 在分组页面按时间搜索\n }else if (this.searchObject.getEndtime() != null && this.searchObject.getStarttime().equals(this.searchObject.getEndtime())){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n }\n\n Criteria criteria = Criteria.and(\n\n Criteria.add(ActivityPlayerApply.PROP_ID, Operator.EQ, this.searchObject.getId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_MESSAGE_ID, Operator.EQ, this.searchObject.getActivityMessageId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_ID, Operator.EQ, this.searchObject.getUserId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_NAME, Operator.EQ, this.searchObject.getUserName()),\n Criteria.add(ActivityPlayerApply.PROP_REGISTER_TIME, Operator.EQ, this.searchObject.getRegisterTime()),\n Criteria.add(ActivityPlayerApply.PROP_APPLY_TIME, Operator.EQ, this.searchObject.getApplyTime()),\n Criteria.add(ActivityPlayerApply.PROP_PLAYER_RECHARGE_ID, Operator.EQ, this.searchObject.getPlayerRechargeId()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.GE, this.searchObject.getStarttime()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.LE, this.searchObject.getEndtime()),\n Criteria.add(ActivityPlayerApply.PROP_PREFERENTIAL_VALUE, Operator.EQ, this.searchObject.getPreferentialValue()),\n Criteria.add(ActivityPlayerApply.PROP_ARTICLE, Operator.EQ, this.searchObject.getArticle()),\n Criteria.add(ActivityPlayerApply.PROP_IS_REALIZE, Operator.EQ, this.searchObject.getIsRealize()),\n Criteria.add(ActivityPlayerApply.PROP_RELATION_PLAYER_ID, Operator.EQ, this.searchObject.getRelationPlayerId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_CLASSIFY_KEY, Operator.EQ, this.searchObject.getActivityClassifyKey()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_TYPE_CODE, Operator.EQ, this.searchObject.getActivityTypeCode())\n );\n criteria.addAnd(ActivityPlayerApply.PROP_IS_DELETED, Operator.EQ, false);\n return criteria;\n }",
"@Description(\"response body contains substring/matches RegExp '{bodyExpression}'\")\n public static Criteria<HarEntry> recordedResponseBodyMatches(@DescriptionFragment(\"bodyExpression\") String bodyExpression) {\n checkArgument(isNotBlank(bodyExpression), \"Response body substring/RegExp should be defined\");\n\n return condition(entry -> {\n HarContent responseContent = entry.getResponse().getContent();\n\n return ofNullable(responseContent)\n .map(content -> checkByStringContainingOrRegExp(bodyExpression).test(content.getText()))\n .orElse(false);\n });\n }",
"public List getValidarSapExistencia(Map criteria);",
"public Future<?> doGetActiveAlarmsNow()\n\t{\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(dao::getActiveAlarmsNow);\n\t}",
"@Description(\"request body contains substring/matches RegExp '{bodyExpression}'\")\n public static Criteria<HarEntry> recordedRequestBodyMatches(@DescriptionFragment(\"bodyExpression\") String bodyExpression) {\n checkArgument(isNotBlank(bodyExpression), \"Request body substring/RegExp should be defined\");\n\n return condition(entry -> {\n HarPostData postData = entry.getRequest().getPostData();\n\n return ofNullable(postData)\n .map(data -> checkByStringContainingOrRegExp(bodyExpression).test(data.getText()))\n .orElse(false);\n });\n }",
"public Alarm(String alarmName, String street, String city, String state,\n String zipcode, double radius){\n this.alarmName = alarmName;\n this.street = street;\n this.city = city;\n this.state = state;\n this.zipcode = zipcode;\n this.radius = radius;\n //default coordinates close to state capitol\n isOn = false;\n this.id = 0;\n }",
"@Test\n public void testCorrectAllWithFilterDateAndFindBy()\n throws IOException {\n Client client = Client.create(new DefaultClientConfig());\n WebResource service = client.resource(getBaseURI()\n + \"PhotoAlbum04/\");\n String response = service.path(\"search\")\n .queryParam(\"type\", \"all\")\n .queryParam(\"findBy\", \"name\")\n .queryParam(\"keywords\", \"evento\")\n .queryParam(\"orderBy\", \"date\")\n .queryParam(\"dateFirst\", \"01/11/2012\")\n .queryParam(\"dateEnd\", \"02/11/2012\")\n .get(String.class);\n assertFalse(\"Assert error failed\",\n response.contains(\"Url syntax error\"));\n\n assertTrue(\"Assert file-dtos failed\",\n response.contains(\"File: Search with all parameters\"));\n assertTrue(\n \"Assert album-dtos failed\",\n response.contains(\"Album: Search with all parameters\"));\n }",
"@Override\n public Collection<CoreEventInfo> getEvents(final Collection<BwCalendar> calendars,\n final FilterBase filter,\n final BwDateTime startDate, final BwDateTime endDate,\n final List<String> retrieveList,\n RecurringRetrievalMode recurRetrieval,\n final boolean freeBusy) throws CalFacadeException {\n recurRetrieval = defaultRecurringRetrieval(recurRetrieval,\n startDate, endDate);\n\n if (debug) {\n trace(\"getEvents for start=\" + startDate + \" end=\" + endDate);\n }\n\n Collection<String> colPaths = null;\n\n if (calendars != null) {\n colPaths = new ArrayList<String>();\n for (BwCalendar c: calendars) {\n colPaths.add(c.getPath());\n\n if (debug) {\n trace(\" calendar:\" + c.getPath());\n }\n }\n }\n\n FieldnamesList retrieveListFields = null;\n\n if (retrieveList != null) {\n // Convert property names to field names\n retrieveListFields = new FieldnamesList(retrieveList.size() +\n FieldNamesMap.reqFlds.size());\n\n for (String pname: retrieveList) {\n FieldNamesEntry fent = FieldNamesMap.getEntry(pname);\n\n if ((fent == null) || (fent.getMulti())) {\n // At this stage it seems better to be inefficient\n retrieveListFields = null;\n break;\n }\n\n retrieveListFields.add(fent);\n }\n\n if (retrieveListFields != null) {\n retrieveListFields.addAll(FieldNamesMap.reqFlds);\n }\n }\n\n /* eventsQuery covers some of what is outlined here.\n *\n * 1. Get events and annotations in range and satisfying the filter.\n * If there is a date range exclude the recurring master events as they\n * turn up later attached to the instances.\n *\n * If there is no date range we will not expand recurrences so we need\n * to send master events and overrrides.\n *\n * We also exclude overrides to recurring instances.\n *\n * If no date range was supplied we now have all the master events.\n * Otherwise we have all the non-recurring events\n * (XXX or recurring reference by an annotation???)\n *\n * 2. If there is a date range supplied, get all instances in date range and\n * add their masters to the set.\n *\n * 3. If there is a date range supplied, get all overrides in date range and\n * add their masters to the set.\n *\n * 4. For each event\n * 4a. if not recurring add to result\n * 4b. if recurring {\n * if expanding\n * find all instances (in range) and add to result set\n * else {\n * find all overrides (in override range if supplied)\n * find all instances (IF instance range)\n * attach them to the master\n * add master to set.\n * }\n * }\n *\n * Some points to remind ourselves. We have to fetch overides and instances\n * because the master may be out of the range of a date limited query - usually\n * is, but we need the master to construct a proxy.\n *\n * We could probably just use the overrides and instances obtained in\n * steps 2 and 3 except for the CalDAV complications which allow a different\n * date range for overrides and instances.\n */\n\n int desiredAccess = privRead;\n if (freeBusy) {\n // DORECUR - freebusy events must have enough info for expansion\n desiredAccess = privReadFreeBusy;\n }\n\n EventsQueryResult eqr = new EventsQueryResult();\n eqr.flt = new Filters(filter);\n eqr.colPaths = colPaths;\n\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getEvents);\n\n Collection<CoreEventInfo> ceis = postGetEvents(eqr.es, desiredAccess,\n returnResultAlways,\n null);\n\n /* Now get the annotations - these are not overrides */\n eventsQuery(eqr, startDate, endDate,\n retrieveListFields,\n freeBusy,\n null, // master\n null, // masters\n null, // uids\n getAnnotations);\n\n if (!eqr.es.isEmpty()) {\n ceis.addAll(postGetEvents(eqr.es, desiredAccess, returnResultAlways,\n eqr.flt));\n }\n\n ceis = getRecurrences(eqr, ceis,\n startDate, endDate,\n retrieveListFields, recurRetrieval, desiredAccess,\n freeBusy);\n\n return buildVavail(ceis);\n }",
"private void getDataFromApi() throws IOException {\n DateTime now = new DateTime(System.currentTimeMillis());\n Events events = mService.events().list(\"primary\")\n .setTimeMin(now)\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n List<Event> items = events.getItems();\n ScheduledEvents scheduledEvents;\n EventsList.clear();\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n if (start == null) {\n start = event.getStart().getDate();\n }\n DateTime end = event.getEnd().getDateTime();\n if (end == null) {\n end = event.getStart().getDate();\n }\n scheduledEvents = new ScheduledEvents();\n scheduledEvents.setEventId(event.getId());\n scheduledEvents.setDescription(event.getDescription());\n scheduledEvents.setEventSummery(event.getSummary());\n scheduledEvents.setLocation(event.getLocation());\n scheduledEvents.setStartDate(dateTimeToString(start));\n scheduledEvents.setEndDate(dateTimeToString(end));\n StringBuffer stringBuffer = new StringBuffer();\n if(event.getAttendees()!=null) {\n for (EventAttendee eventAttendee : event.getAttendees()) {\n if(eventAttendee.getEmail()!=null)\n stringBuffer.append(eventAttendee.getEmail() + \" \");\n }\n scheduledEvents.setAttendees(stringBuffer.toString());\n }\n else{\n scheduledEvents.setAttendees(\"\");\n }\n EventsList.add(scheduledEvents);\n }\n }",
"public USAStaffingAppointmentResult getAppointmentData(String requestNumber){\r\n\r\n\t\tUSAStaffingAppointmentResult usasAppointment = new USAStaffingAppointmentResult();\r\n\r\n\t\tPrompt appointmentPrompt = new Prompt(properties.getReportPromptRequest(), requestNumber, requestNumber);\r\n\t\tCognosReport appointmentReport = new CognosReport(properties.getAppointmentReportName(), properties.getAppointmentReportPath(), properties.getReportFormatDataSet(), appointmentPrompt);\r\n\r\n\t\tif(properties.getProgramMode().equalsIgnoreCase(properties.getTestMode())){//test mode\r\n\t\t\tlog.info(\"**Application is running in TEST MODE: Pre-downloaded Appointment report will be used to generate the response.\");\r\n\t\t\tString reportPath = properties.getAppointmentFileLocation() + File.separator + requestNumber + \".xml\";\r\n\t\t\tlog.info(\"Using XML report for Appointment \"+ reportPath + \" for transformation.\");\r\n\t\t\tusasAppointment = appointmentService.parseReportFromFile(reportPath);\r\n\t\t}else{//normal or production mode\r\n\t\t\tlog.info(\"Connecting to USAS - Cognos Server to get \" + properties.getAppointmentReportName() + \" report for Request Number [\"+requestNumber+\"].\");\r\n\t\t\tusasAppointment = appointmentService.parseReportFromUSASResponse(this.client.processReportDataRequest(appointmentReport), requestNumber);\r\n\t\t}\r\n\t\t\r\n\t\tif(usasAppointment.getRequestNumber().length() == 0)//setting request number for response if not available\t\t\t\r\n\t\t\tusasAppointment.setRequestNumber(requestNumber);\r\n\t\tlog.info(usasAppointment.toString());\r\n\t\treturn usasAppointment;\r\n\t}",
"@Description(\"request has body '{body}'\")\n public static Criteria<HarEntry> recordedRequestBody(@DescriptionFragment(\"body\") String body) {\n checkArgument(isNotBlank(body), \"Request body should be defined\");\n\n return condition(entry -> {\n HarPostData postData = entry.getRequest().getPostData();\n\n return ofNullable(postData)\n .map(data -> Objects.equals(data.getText(), body))\n .orElse(false);\n });\n }",
"public queryAlarm_args(queryAlarm_args other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n if (other.isSetAlarmQueryForm()) {\n this.alarmQueryForm = new TAlarmQueryForm(other.alarmQueryForm);\n }\n this.page = other.page;\n this.pageSize = other.pageSize;\n if (other.isSetOrders()) {\n Map<String,String> __this__orders = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.orders.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__orders_copy_key = other_element_key;\n\n String __this__orders_copy_value = other_element_value;\n\n __this__orders.put(__this__orders_copy_key, __this__orders_copy_value);\n }\n this.orders = __this__orders;\n }\n }",
"public interface AlarmService {\n\n\n /**\n * 获取报警信息列表/搜索报警信息\n */\n @POST(ApiConstants.ALARM_GET)\n @FormUrlEncoded\n Flowable<HttpResult<List<AlarmListInfo>>> getAlarmList(@FieldMap Map<String, String> map);\n}",
"public ArrayList<Meeting> getMeetingsbyCalendarId(String calendarId) throws Exception;",
"private AppoinmentCompleteRequest appoinmentCompleteRequest() {\n\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy hh:mm aa\", Locale.getDefault());\n String currentDateandTime = sdf.format(new Date());\n\n AppoinmentCompleteRequest appoinmentCompleteRequest = new AppoinmentCompleteRequest();\n appoinmentCompleteRequest.set_id(appoinmentid);\n appoinmentCompleteRequest.setCompleted_at(currentDateandTime);\n appoinmentCompleteRequest.setAppoinment_status(\"Completed\");\n appoinmentCompleteRequest.setDiagnosis(DiagnosisType);\n appoinmentCompleteRequest.setSub_diagnosis(SubDiagnosisType);\n appoinmentCompleteRequest.setDoctor_comment(Doctor_Comments);\n Log.w(TAG,\"appoinmentCompleteRequest\"+ \"--->\" + new Gson().toJson(appoinmentCompleteRequest));\n return appoinmentCompleteRequest;\n }",
"@GET\n @Path(\"generate/metrics/{startTime}/{endTime}\")\n public Response generateAndSendAlertForMetrics(\n @PathParam(\"startTime\") Long startTime, @PathParam(\"endTime\") Long endTime,\n @QueryParam(\"metrics\") String metrics, @QueryParam(\"from\") String fromAddr,\n @QueryParam(\"to\") String toAddr,@QueryParam(\"subject\") String subject,\n @QueryParam(\"includeSentAnomaliesOnly\") boolean includeSentAnomaliesOnly,\n @QueryParam(\"isApplyFilter\") boolean isApplyFilter,\n @QueryParam(\"teHost\") String teHost, @QueryParam(\"smtpHost\") String smtpHost,\n @QueryParam(\"smtpPort\") int smtpPort,\n @QueryParam(\"phantomJsPath\") String phantomJsPath) {\n if (Strings.isNullOrEmpty(metrics)) {\n throw new WebApplicationException(\"metrics null or empty: \" + metrics);\n }\n String [] metricsArr = metrics.split(\",\");\n if (metricsArr.length == 0) {\n throw new WebApplicationException(\"metrics empty : \" + metricsArr);\n }\n if (Strings.isNullOrEmpty(toAddr)) {\n throw new WebApplicationException(\"Empty : list of recipients\" + toAddr);\n }\n if(Strings.isNullOrEmpty(teHost)) {\n throw new WebApplicationException(\"Invalid TE host\" + teHost);\n }\n if (Strings.isNullOrEmpty(smtpHost)) {\n throw new WebApplicationException(\"invalid smtp host\" + smtpHost);\n }\n AnomalyReportGenerator anomalyReportGenerator = AnomalyReportGenerator.getInstance();\n List<MergedAnomalyResultDTO> anomalies = anomalyReportGenerator\n .getAnomaliesForMetrics(Arrays.asList(metricsArr), startTime, endTime);\n if(isApplyFilter){\n anomalies = AlertFilterHelper.applyFiltrationRule(anomalies, alertFilterFactory);\n }\n ThirdEyeAnomalyConfiguration configuration = new ThirdEyeAnomalyConfiguration();\n SmtpConfiguration smtpConfiguration = new SmtpConfiguration();\n smtpConfiguration.setSmtpHost(smtpHost);\n smtpConfiguration.setSmtpPort(smtpPort);\n\n configuration.setSmtpConfiguration(smtpConfiguration);\n configuration.setDashboardHost(teHost);\n configuration.setPhantomJsPath(phantomJsPath);\n String emailSub = Strings.isNullOrEmpty(subject) ? \"Thirdeye Anomaly Report\" : subject;\n anomalyReportGenerator\n .buildReport(startTime, endTime, null, null, anomalies, emailSub, configuration,\n includeSentAnomaliesOnly, toAddr, fromAddr, \"Thirdeye Anomaly Report\", true);\n return Response.ok().build();\n }",
"public String getAlarmTypes() throws JsonProcessingException,\r\n\t\t\tHibernateException;",
"public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }",
"public List<String> searchForScheduleRequestIds(@WebParam(name = \"criteria\") QueryByCriteria criteria,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;",
"public static boolean instrumentCheck(Integer alarmId, ObjectNode obj){\n\t\tQuery q= new Query();\n//\t\tinstrument name must exist\n\t\tString instrumentName =obj.get(\"instrumentName\").toString();\n\t\tinstrumentName = instrumentName.substring(1,instrumentName.length()-1);\n\t\tq.select(count).from(\"instruments\")\n\t\t\t.where(\"name\", \"=\", instrumentName);\n\t\tif(!HttpHelper.usgsPresent(q.query))\n\t\t\treturn false;\n\t\tq.query = \"\";\n\n//\t\tfield name must exist\n\t\tString fieldName = obj.get(\"fieldName\").toString();\n\t\tfieldName = fieldName.substring(1,fieldName.length()-1);\n\t\tq.select(new ArrayList(Arrays.asList(\"column_name\")))\n\t\t\t.from(\"information_schema.columns\")\n\t\t\t.where(\"table_name\", \"LIKE\", instrumentName + \"$%\")\n\t\t\t.andWhereOr(\"column_type\", \"LIKE\", \"int%\", \"column_type\", \"=\", \"double\")\n\t\t\t.groupBy(\"column_name\");\n\t\tString innerSelect = q.query;\n\t\tq.query=\"\";\n\t\tq.select(count)\n\t\t\t.from(\"(\"+innerSelect+\") X\")\n\t\t\t.where(\"column_name\", \"=\", fieldName);\n\t\tif(!HttpHelper.usgsPresent(q.query))\n\t\t\treturn false;\n\t\tq.query = \"\";\n\t\treturn true;\n\t}",
"public void testQuery() throws Exception {\n DummyApprovalRequest req1 = new DummyApprovalRequest(reqadmin, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req2 = new DummyApprovalRequest(admin1, null, caid, SecConst.EMPTY_ENDENTITYPROFILE, false);\n DummyApprovalRequest req3 = new DummyApprovalRequest(admin2, null, 3, 2, false);\n\n approvalSessionRemote.addApprovalRequest(admin1, req1, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req2, gc);\n approvalSessionRemote.addApprovalRequest(admin1, req3, gc);\n\n // Make som queries\n Query q1 = new Query(Query.TYPE_APPROVALQUERY);\n q1.add(ApprovalMatch.MATCH_WITH_APPROVALTYPE, BasicMatch.MATCH_TYPE_EQUALS, \"\" + req1.getApprovalType());\n\n List result = approvalSessionRemote.query(admin1, q1, 0, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 2 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n result = approvalSessionRemote.query(admin1, q1, 0, 1, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() == 1);\n\n Query q2 = new Query(Query.TYPE_APPROVALQUERY);\n q2.add(ApprovalMatch.MATCH_WITH_STATUS, BasicMatch.MATCH_TYPE_EQUALS, \"\" + ApprovalDataVO.STATUS_WAITINGFORAPPROVAL, Query.CONNECTOR_AND);\n q2.add(ApprovalMatch.MATCH_WITH_REQUESTADMINCERTSERIALNUMBER, BasicMatch.MATCH_TYPE_EQUALS, reqadmincert.getSerialNumber().toString(16));\n\n result = approvalSessionRemote.query(admin1, q1, 1, 3, \"cAId=\" + caid, \"(endEntityProfileId=\" + SecConst.EMPTY_ENDENTITYPROFILE + \")\");\n assertTrue(\"Result size \" + result.size(), result.size() >= 1 && result.size() <= 3);\n\n // Remove the requests\n int id1 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req1.generateApprovalId()).iterator().next()).getId();\n int id2 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req2.generateApprovalId()).iterator().next()).getId();\n int id3 = ((ApprovalDataVO) approvalSessionRemote.findApprovalDataVO(admin1, req3.generateApprovalId()).iterator().next()).getId();\n approvalSessionRemote.removeApprovalRequest(admin1, id1);\n approvalSessionRemote.removeApprovalRequest(admin1, id2);\n approvalSessionRemote.removeApprovalRequest(admin1, id3);\n }",
"public LogEventRequestAndResponse[] retrieveRecordedRequestsAndResponses(RequestDefinition requestDefinition) {\n String recordedRequests = retrieveRecordedRequestsAndResponses(requestDefinition, Format.JSON);\n if (isNotBlank(recordedRequests) && !recordedRequests.equals(\"[]\")) {\n return httpRequestResponseSerializer.deserializeArray(recordedRequests);\n } else {\n return new LogEventRequestAndResponse[0];\n }\n }",
"Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}",
"public CNAlarmSoundCfgExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"long countByExample(BachAlarmRoleExample example);",
"private void populateAlarmDetails() {\n TimePicker timePicker = (TimePicker) findViewById(R.id.alarmDetailsTimePicker);\n alarmDetails.setTimeMinute(timePicker.getCurrentMinute());\n alarmDetails.setTimeHour(timePicker.getCurrentHour());\n\n EditText alarmNameEditText = (EditText) findViewById(R.id.alarmDetailsName);\n alarmDetails.setName(alarmNameEditText.getText().toString());\n\n CheckBox checkBoxWeekly = (CheckBox) findViewById(R.id.alarmDetailsRepeatWeekly);\n alarmDetails.setRepeatWeekly(checkBoxWeekly.isChecked());\n\n // Copy in all the boolean values for playing on various days\n CheckBox checkBoxSunday = (CheckBox) findViewById(R.id.alarmDetailsSunday);\n alarmDetails.setRepeatingDay(AlarmModel.SUNDAY, checkBoxSunday.isChecked());\n\n CheckBox checkBoxMonday = (CheckBox) findViewById(R.id.alarmDetailsMonday);\n alarmDetails.setRepeatingDay(AlarmModel.MONDAY, checkBoxMonday.isChecked());\n\n CheckBox checkBoxTuesday = (CheckBox) findViewById(R.id.alarmDetailsTuesday);\n alarmDetails.setRepeatingDay(AlarmModel.TUESDAY, checkBoxTuesday.isChecked());\n\n CheckBox checkBoxWednesday = (CheckBox) findViewById(R.id.alarmDetailsWednesday);\n alarmDetails.setRepeatingDay(AlarmModel.WEDNESDAY, checkBoxWednesday.isChecked());\n\n CheckBox checkBoxThursday = (CheckBox) findViewById(R.id.alarmDetailsThursday);\n alarmDetails.setRepeatingDay(AlarmModel.THURSDAY, checkBoxThursday.isChecked());\n\n CheckBox checkBoxFriday = (CheckBox) findViewById(R.id.alarmDetailsFriday);\n alarmDetails.setRepeatingDay(AlarmModel.FRIDAY, checkBoxFriday.isChecked());\n\n CheckBox checkBoxSaturday = (CheckBox) findViewById(R.id.alarmDetailsSaturday);\n alarmDetails.setRepeatingDay(AlarmModel.SATURDAY, checkBoxSaturday.isChecked());\n\n alarmDetails.setEnabled(true);\n }",
"private android.app.AlertDialog.Builder createAlarmDialog(final int from, final int to, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint fromHours = from / 60;\n\t\tint fromMinutes = from % 60;\n\n\t\tint toHours = to / 60;\n\t\tint toMinutes = to % 60;\n\n\t\tfinal AlertDialog.Builder dialog = new AlertDialog.Builder(getActivity());\n\n\t\tView view = getActivity().getLayoutInflater().inflate(R.layout.alarm_popup, null);\n\n\t\tdialog.setView(view);\n\n\t\t/*\n\t\tif (newAlarm) {\n\t\t\tdialog.setTitle(R.string.add);\n\t\t} else {\n\t\t\tdialog.setTitle(R.string.edit);\n\t\t}*/\n\t\tdialog.setCancelable(true);\n\n\t\tViewGroup v = (ViewGroup) view.findViewById(R.id.main_layout);\n\n\t\t// Loop through all views and set their typeface to Roboto Light\n\t\tfor (int i = 0; i < v.getChildCount(); ++i) {\n\t\t\tView nextChild = v.getChildAt(i);\n\t\t\tif (nextChild instanceof CheckBox) {\n\t\t\t\t((CheckBox) nextChild).setTypeface(typefaceRobotoLight);\n\t\t\t} else if (nextChild instanceof TextView) {\n\t\t\t\t((TextView) nextChild).setTypeface(typefaceRobotoLight);\n\t\t\t} else if (nextChild instanceof ViewGroup) {\n\t\t\t\tfor (int j = 0; j < ((ViewGroup) nextChild).getChildCount(); ++j) {\n\t\t\t\t\tView temp = ((ViewGroup) nextChild).getChildAt(j);\n\t\t\t\t\tif (temp instanceof CheckBox) {\n\t\t\t\t\t\t((CheckBox) temp).setTypeface(typefaceRobotoLight);\n\t\t\t\t\t} else if (temp instanceof TextView) {\n\t\t\t\t\t\t((TextView) temp).setTypeface(typefaceRobotoLight);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfinal Button fromButton = (Button) view.findViewById(R.id.from_button);\n\t\tfromButton.setTypeface(typefaceRobotoLight);\n\t\tfinal Button toButton = (Button) view.findViewById(R.id.to_button);\n\t\ttoButton.setTypeface(typefaceRobotoLight);\n\n\t\tfromButton.setText(Tools.fixTimeFormatting(fromHours, fromMinutes));\n\t\ttoButton.setText(Tools.fixTimeFormatting(toHours, toMinutes));\n\n\t\tOnClickListener listener = new OnClickListener() {\n\n\t\t\tpublic void onClick(final View parent) {\n\t\t\t\tfinal AlertDialog.Builder nDialog = new AlertDialog.Builder(getActivity());\n\n\t\t\t\tView main = getActivity().getLayoutInflater().inflate(R.layout.time_dialog, null);\n\n\t\t\t\tnDialog.setView(main);\n\t\t\t\t// nDialog.setTitle(R.string.pick_time);\n\t\t\t\tnDialog.setCancelable(true);\n\n\t\t\t\tfinal MyTimePicker picker = (MyTimePicker) main.findViewById(R.id.picker);\n\t\t\t\tTextView tv = (TextView) main.findViewById(R.id.picker_hint);\n\t\t\t\ttv.setTypeface(typefaceRobotoLight);\n\n\t\t\t\tString timeString = ((Button) parent).getText().toString();\n\n\t\t\t\tpicker.setHour(Integer.parseInt(timeString.substring(0, 2)));\n\t\t\t\tpicker.setMinute(Integer.parseInt(timeString.substring(3)));\n\n\t\t\t\tnDialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\t\t\t((Button) parent).setText(Tools.getPaddedString(picker.getHour()) + \":\" + Tools.getPaddedString(picker.getMinute()));\n\n\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tnDialog.show();\n\n\t\t\t}\n\t\t};\n\n\t\tfromButton.setOnClickListener(listener);\n\t\ttoButton.setOnClickListener(listener);\n\n\t\tfinal CheckBox vibrationCheck = (CheckBox) view.findViewById(R.id.enable_vibr_check);\n\t\tvibrationCheck.setChecked(enableVibration);\n\t\tvibrationCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox mediaCheck = (CheckBox) view.findViewById(R.id.disable_media_check);\n\t\tmediaCheck.setChecked(muteMedia);\n\t\tmediaCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox lockCheck = (CheckBox) view.findViewById(R.id.lock_check);\n\t\tlockCheck.setChecked(lockVolume);\n\t\tlockCheck.setTypeface(typefaceRobotoLight);\n if(Tools.isLollipopOrLater()){\n lockCheck.setVisibility(View.GONE);\n }\n\n\t\tfinal CheckBox unmuteCheck = (CheckBox) view.findViewById(R.id.call_unmute_check);\n\t\tunmuteCheck.setChecked(unmuteOnCall);\n\t\tunmuteCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox notiLightCheck = (CheckBox) view.findViewById(R.id.light_check);\n\t\tnotiLightCheck.setChecked(disableNotificationLight);\n\t\tnotiLightCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox brightnessCheck = (CheckBox) view.findViewById(R.id.brightness_check);\n\t\tbrightnessCheck.setChecked(brightness != -1);\n\n\t\tif (brightness == -1) {\n\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, -1);\n\t\t} else {\n\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, brightness);\n\t\t}\n\t\teditor.commit();\n\n\t\tbrightnessCheck.setTypeface(typefaceRobotoLight);\n\t\tbrightnessCheck.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\n\t\t\tpublic void onCheckedChanged(final CompoundButton buttonView, final boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n\t\t\t\t\tfinal View v = getActivity().getLayoutInflater().inflate(R.layout.brightness_dialog, null);\n\n\t\t\t\t\tfinal TextView title = (TextView) v.findViewById(R.id.brightness_text);\n\t\t\t\t\tfinal SeekBar bar = (SeekBar) v.findViewById(R.id.brightness_slider);\n\n\t\t\t\t\tbuilder.setCancelable(false);\n\n\t\t\t\t\tbar.setMax(100);\n\n\t\t\t\t\tbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\n\t\t\t\t\t\tpublic void onProgressChanged(final SeekBar seekBar, final int progress, final boolean fromUser) {\n\t\t\t\t\t\t\ttitle.setText(progress + \"%\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void onStopTrackingTouch(final SeekBar seekBar) {\n\t\t\t\t\t\t\t// Do nothing\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void onStartTrackingTouch(final SeekBar seekBar) {\n\t\t\t\t\t\t\t// Do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\ttitle.setTypeface(Tools.getTypefaceRobotoThin(getActivity()));\n\n\t\t\t\t\tbuilder.setView(v);\n\n\t\t\t\t\tbuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\t\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, (int) (bar.getProgress() * 2.55));\n\t\t\t\t\t\t\teditor.commit();\n\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tif (brightness > 0) {\n\t\t\t\t\t\tbar.setProgress((int) (brightness / 2.55));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbar.setProgress(50);\n\t\t\t\t\t}\n\n\t\t\t\t\tbuilder.show();\n\n\t\t\t\t} else {\n\t\t\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, -1);\n\t\t\t\t\teditor.commit();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\tfinal CheckBox[] weekdayChecks = { (CheckBox) view.findViewById(R.id.sunday_check), (CheckBox) view.findViewById(R.id.monday_check), (CheckBox) view.findViewById(R.id.tuesday_check),\n\t\t\t\t(CheckBox) view.findViewById(R.id.wednesday_check), (CheckBox) view.findViewById(R.id.thursday_check), (CheckBox) view.findViewById(R.id.friday_check),\n\t\t\t\t(CheckBox) view.findViewById(R.id.saturday_check) };\n\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tweekdayChecks[i].setChecked(wdays[i]);\n\t\t}\n\n\t\tdialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\tString fromString = fromButton.getText().toString();\n\t\t\t\tString untilString = toButton.getText().toString();\n\n\t\t\t\tint fromHours = Integer.parseInt(fromString.substring(0, 2));\n\t\t\t\tint fromMinutes = Integer.parseInt(fromString.substring(3));\n\n\t\t\t\tint toHours = Integer.parseInt(untilString.substring(0, 2));\n\t\t\t\tint toMinutes = Integer.parseInt(untilString.substring(3));\n\n\t\t\t\tboolean vibChecked = vibrationCheck.isChecked();\n\t\t\t\tboolean mediaChecked = mediaCheck.isChecked();\n\n\t\t\t\tboolean lockChecked = lockCheck.isChecked();\n\t\t\t\tboolean unmuteChecked = unmuteCheck.isChecked();\n\n\t\t\t\tboolean notiLightChecked = notiLightCheck.isChecked();\n\n\t\t\t\tboolean[] wdays = new boolean[7];\n\n\t\t\t\tfor (int i = 0; i < 7; i++) {\n\t\t\t\t\twdays[i] = weekdayChecks[i].isChecked();\n\t\t\t\t}\n\n\t\t\t\tif (!newAlarm) {\n\t\t\t\t\tfor (int i = 0; i < alarmIDs.size(); i++) {\n\n\t\t\t\t\t\tif (alarmIDs.get(i) == updateAlarmId) {\n\t\t\t\t\t\t\talarmIDs.remove(i);\n\t\t\t\t\t\t\talarm_data.remove(i);\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tint brightness = settings.getInt(Constants.SCHEDULER_BRIGHTNESS, 125);\n\n\t\t\t\t// Set the alarm.\n\t\t\t\tsetAlarm(fromHours, fromMinutes, toHours, toMinutes, vibChecked, mediaChecked, lockChecked, unmuteChecked, notiLightChecked, brightness, wdays, newAlarm, updateAlarmId);\n\n\t\t\t\t// Save the current state of this activity in shared\n\t\t\t\t// preferences\n\t\t\t\tserviceCheck.setChecked(true);\n\t\t\t\tserviceCheck.setText(R.string.service_running);\n\n\t\t\t\teditor.putBoolean(Constants.SCHEDULER_ENABLED, true);\n\n\t\t\t\teditor.commit();\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\n\t\treturn dialog;\n\t}",
"PineAlarm selectByPrimaryKey(Long pineAlarmId);",
"@Test\n public void testCreateFilter() throws Exception {\n System.out.println(\"createFilter\");\n \n String expResult = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<String,String>();\n List<String> values =new ArrayList<String>();\n key.put(\"Delivery\", \"***REMOVED***\");\n key.put(\"FunctionalEnvironment\", \"Production\");\n \n \n \n values.add(\"Company\");\n values.add(\"VirtualDC\");\n values.add(\"Manufacturer\");\n \n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = new ArrayList<CriteriaFilter>();\n resultList.add(instance);\n \n \n String result = \"\";\n for (CriteriaFilter criterio: resultList){\n System.out.println(\"result is \" + criterio);\n result = criterio.toString();\n }\n \n assertEquals(expResult, result);\n \n }",
"public Collection getAlertRecipientByAgency(String servProvCode,Collection alertList) throws AAException, RemoteException;",
"private List<String> getDataFromApi() throws IOException {\n // List the next 10 events from the primary calendar.\n DateTime now = new DateTime(System.currentTimeMillis());\n Date nowToday = new Date(System.currentTimeMillis());\n Date now2 = new Date();\n Log.d(\"TIME\", now2.toString()); // Fri Apr 14 11:45:53 GMT-04:00 2017\n String show = DateFormat.getTimeInstance().format(nowToday); // 오후 4:22:40\n String show2 = DateFormat.getDateInstance().format(nowToday); // 2017. 4. 7.\n String show3 = DateFormat.getDateTimeInstance().format(nowToday); // 2017. 4. 7. 오후 4:22:40\n // String show4 = DateFormat.getDateInstance().format(now); 이건 안됌 에러\n\n\n java.text.SimpleDateFormat toDateTime = new java.text.SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZ\");\n //Date todayDate = new Date();\n // String todayName = dayName.format(todayDate);\n\n java.util.Calendar calendar = java.util.Calendar.getInstance();\n\n calendar.setTime(nowToday);\n calendar.add(Calendar.HOUR, 2);\n Date twoFromNow = calendar.getTime();\n\n\n\n List<String> eventStrings = new ArrayList<String>();\n Events events = mService.events().list(\"primary\")\n .setMaxResults(10)\n .setTimeMin(now)\n .setTimeMax(new DateTime(twoFromNow, TimeZone.getDefault()))\n .setOrderBy(\"startTime\")\n .setSingleEvents(true)\n .execute();\n\n\n List<Event> items = events.getItems();\n // List<Map<String, String>> pairList = new ArrayList<Map<String, String>>();\n // String nowDay = now.toString().substring(0, now.toString().indexOf(\"T\"));\n\n\n for (Event event : items) {\n DateTime start = event.getStart().getDateTime();\n\n // Only get events with exact start time set, exclude all day\n if (start != null) {\n eventStrings.add(\n String.format(\"%s //// %s)\", event.getSummary(), start));\n }\n\n\n }\n\n return eventStrings;\n }",
"public void checkTimes(){\r\n\t\tcal = Calendar.getInstance();\r\n\t\t//if(alarmList.size() != 0){\r\n\t\tfor(int i = 0; i < alarmList.size(); i++){\r\n\t\t\tAlarmTime current = alarmList.get(i);\r\n\t\t\tif(current.getYear() == cal.get(Calendar.YEAR) && current.getMonth() == cal.get(Calendar.MONTH)\r\n\t\t\t\t\t&& current.getDay() == cal.get(Calendar.DAY_OF_MONTH) && current.getHour() == cal.get(Calendar.HOUR_OF_DAY)\r\n\t\t\t\t\t&& current.getMinute() <= cal.get(Calendar.MINUTE)){\r\n\t\t\t\t//display alarm / play sound\r\n\t\t\t\t\t//alarmList.get(i).setActive(true);\r\n\t\t\t\t\tcurrent.setActive(true);\r\n\t\t\t\t//if(!alarmList.get(i).isActive){\t\t\t\t\t//this can be removed if it needs to repeatedly go off\r\n\r\n//\t\t\t\t\tif(!(activeAlarms.contains(alarmList.get(i)))){\r\n//\t\t\t\t\t\tactiveAlarms.add(alarmList.get(i));\r\n//\t\t\t\t\t}\r\n\t\t\t\t\tif(!(activeAlarms.contains(current))){\r\n\t\t\t\t\t\tactiveAlarms.add(current);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t//System.out.println(alarmList.get(i).getMinute());\r\n\t\t\t\t\t//System.out.println(current.getMinute());\r\n\t\t\t\t\tring = new AlarmRingDesign(alarmList.get(i).getMessage(), this, alarmList.get(i));\r\n\t\t\t\t\tring.init();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t//do nothing\r\n\t\t\t}\r\n\t\t}\r\n\t//}\r\n\t}",
"List<Establishment> searchEstablishments(EstablishmentCriteria criteria, RangeCriteria rangeCriteria);",
"Set<AlertDto> getOpenAlerts(String msisdn);",
"private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }",
"@RequestMapping(method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_VALUE)\r\n public ResponseEntity<Void> createNotification(@RequestBody OrionAlert orionAlert, UriComponentsBuilder ucBuilder) {\r\n /* Se obtienen las entidades de la clave principal determinada por el campo DATA */\r\n List<Data> datos = orionAlert.getData();\r\n \r\n Map <String, String> eventsObserved = new HashMap <>();\r\n eventsObserved.put(\"precipitation\", \"Weather\");\r\n eventsObserved.put(\"relativeHumidity\", \"Weather\");\r\n eventsObserved.put(\"temperature\", \"Weather\");\r\n eventsObserved.put(\"windDirection\", \"Weather\");\r\n eventsObserved.put(\"windSpeed\", \"Weather\");\r\n eventsObserved.put(\"altitude\", \"Weather\");\r\n eventsObserved.put(\"barometricPressure\", \"Weather\");\r\n eventsObserved.put(\"luminosity\", \"Weather\");\r\n eventsObserved.put(\"CO\",\"Environment\");\r\n eventsObserved.put(\"NO2\",\"Environment\");\r\n eventsObserved.put(\"NOx\",\"Environment\");\r\n eventsObserved.put(\"SO2\",\"Environment\");\r\n eventsObserved.put(\"O3\",\"Environment\");\r\n eventsObserved.put(\"PM10\",\"Environment\");\r\n eventsObserved.put(\"TVOC\",\"Environment\");\r\n eventsObserved.put(\"CO2\",\"Environment\");\r\n \r\n for(Data data : datos){\r\n if(data.getType().equals(\"AirQualityObserved\")){\r\n for(Map.Entry<String, String> entry : eventsObserved.entrySet() ){\r\n Alert alert = new Alert(data, entry.getKey(), entry.getValue());\r\n if(alert.getFound())\r\n alertRepository.save(alert);\r\n }\r\n }else if(data.getType().equals(\"Alert\")){\r\n alertRepository.save(new Alert(data, \"\", \"\"));\r\n }\r\n }\r\n \r\n \r\n HttpHeaders headers = new HttpHeaders();\r\n return new ResponseEntity<Void>(headers, HttpStatus.CREATED);\r\n }",
"public queryAlarm_result(queryAlarm_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"@GET(\"/attractions\")\n Call<List<Attraction>> getAttractions(\n @Query(\"latitude\") double latitude,\n @Query(\"longitude\") double longitude,\n @Query(\"radius\") double radius\n );",
"@Test\n\tpublic void testShowAllAppointments() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/app2\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200, response.getStatusCodeValue());\n\t}",
"@Test\n void processListOfPlates() throws Exception {\n String request = \"[\" +\n \"{\\\"name\\\": \\\"Ensalada\\\", \\\"ingredients\\\": [\" +\n createIngredient(\"Calabaza\", 100) + \",\" +\n createIngredient(\"Cebolla\", 70) + \"]},\" +\n \"{\\\"name\\\": \\\"Hamburguesa\\\", \\\"ingredients\\\": [\" +\n createIngredient(\"Hamburguesa\", 100) + \",\" +\n createIngredient(\"Pan de trigo blanco\", 100) + \",\" +\n createIngredient(\"Cebolla\", 70) + \"]}\" +\n \"]\";\n this.mockMvc.perform(\n post(\"/calculateAll\")\n .contentType(MediaType.APPLICATION_JSON)\n .content(request))\n .andDo(print()).andExpect(status().isOk())\n .andExpect(jsonPath(\"$[0].calories\").value(\"56\"))\n .andExpect(jsonPath(\"$[1].calories\").value(\"517\"));\n }",
"List<AlertQueue> selectByExample(AlertQueueExample example);",
"public LiveData<List<NacAlarm>> getAllAlarms()\n\t{\n\t\treturn this.mAllAlarms;\n\t}",
"@GetMapping(value=\"/employee/{eId}\" , produces=\"application/json\")\n\n\tpublic List<Application> getEmpApplications(@PathVariable(\"eId\") int eId){\n\t\tEmployee emp = es.getEmployeeById(eId);\n\t\tList<Application> a = as.getAll();\n\t\tList<Application> empAppList = as.getBySpecies(emp.getSpecies());\n\t\t\n\n\t\t\n\t\t//Need to filter out second approval for the employee's own species\n\t\tfor (Application app : a){\n\t\t\t//if ((app.getStatus().equals(\"submitted\"))) {empAppList.add(app);}\n\t\t\t if ((app.getStatus().equals(\"secondApproval\"))&&(app.getPet().getBreed().getSpecies() != emp.getSpecies())) {\n\t\t\t\tempAppList.add(app);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\treturn empAppList;\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n @Description(\"Returns all alerts.\")\n public List<AlertDto> getAlerts(@Context HttpServletRequest req,\n @QueryParam(\"alertname\") String alertname,\n @QueryParam(OWNER_NAME) String ownerName) {\n List<Alert> result = null;\n PrincipalUser owner = validateAndGetOwner(req, ownerName);\n\n if (alertname != null && !alertname.isEmpty()) {\n Alert alert = alertService.findAlertByNameAndOwner(alertname, owner);\n\n result = new ArrayList<Alert>();\n if (alert != null) {\n result.add(alert);\n }\n } else {\n result = owner.isPrivileged() ? alertService.findAllAlerts() : alertService.findAlertsByOwner(owner);\n }\n return AlertDto.transformToDto(result);\n }",
"public abstract Intent constructResults();",
"public String GetContactSchedules(List<AppointmentModel> appointments, List<ContactModel> contacts,\n LocalizationService localizationService, Locale locale) throws Exception\n {\n String report = startEndReport + startEndReport;\n String ID = localizationService.GetLocalizedMessage(\"ID\", locale);\n String title = localizationService.GetLocalizedMessage(\"title\", locale);\n String type = localizationService.GetLocalizedMessage(\"type\", locale);\n String description = localizationService.GetLocalizedMessage(\"description\", locale);\n String startDateTime = localizationService.GetLocalizedMessage(\"startdate\", locale);\n String endDateTime = localizationService.GetLocalizedMessage(\"enddate\", locale);\n String customerID = localizationService.GetLocalizedMessage(\"customerID\", locale);\n\n String header = \"\\n\" + ID + \"\\t\\t\" + customerID + \"\\t\" + title + \"\\t\\t\\t\" + type + \"\\t\\t\" + startDateTime + \"\\t\\t\\t\\t\" +\n endDateTime + \"\\t\\t\\t\" + description + \"\\n\";\n\n for (ContactModel contact : contacts)\n {\n report += \"\\n\" + contact.getContactName() + \"\\n\";\n report += header;\n\n List<AppointmentModel> contactAppointments = appointments.stream().filter(x ->\n x.getContactID() == contact.getContactID()).\n collect(Collectors.toList());\n\n for (AppointmentModel appointment : contactAppointments)\n {\n report += \"\\n\" + appointment.getAppointmentID() + \"\\t\\t\" + appointment.getCustomerID() + \"\\t\\t\\t\" + appointment.getTitle() + \"\\t\\t\" +\n appointment.getAppointmentType().toString() + \"\\t\" +\n appointment.getFormattedLocalStartDate() + \"\\t\\t\" + appointment.getFormattedLocalEndDate() + \"\\t\\t\" + appointment.getDescription() + \"\\n\";\n }\n }\n report += startEndReport + startEndReport;\n return report;\n }",
"List<FailedTransmissionDetail> getFailedTransmissionsReport(Map<String, String> searchCriteria);",
"@SuppressWarnings(\"unused\")\n\tprivate Queue<KeyValuePair> checkArmStatusAndExecuteRules(Queue<KeyValuePair> queue, String generatedDeviceId, Device device, AlertType alertType) {\n\t\t\n\t\tAlertsFromImvgManager alertsmanager=new AlertsFromImvgManager();\n\t\tDeviceManager devicemanager=new DeviceManager();\n\t\tGatewayManager gatewaymanager=new GatewayManager();\n\t\tCustomerManager customermang=new CustomerManager();\n\t\tAlertMonitor alertmonitor=new AlertMonitor();\n\t\tDate date=new Date();\n\t\t\n\t\tRuleManager rulemanger=new RuleManager();\n\t\tString ruleId = IMonitorUtil.commandId(queue, Constants.RULE_ID);\n\t\tQueue<KeyValuePair> resultQueue = new LinkedList<KeyValuePair>();\n\t\tresultQueue.add(new KeyValuePair(Constants.CMD_ID,\n\t\t\t\tConstants.DEVICE_ALERT_ACK));\n\t\tresultQueue.add(new KeyValuePair(Constants.TRANSACTION_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.TRANSACTION_ID)));\n\t\tresultQueue.add(new KeyValuePair(Constants.IMVG_ID, IMonitorUtil\n\t\t\t\t.commandId(queue, Constants.IMVG_ID)));\n\t\tresultQueue\n\t\t\t\t.add(new KeyValuePair(Constants.DEVICE_ID, generatedDeviceId));\n\t\t\n\t\tSimpleDateFormat sdfDate = new SimpleDateFormat(\"HH:mm\");\n\t Date now = new Date();\n\t String strDate = sdfDate.format(now);\n\t \n\t String[] Temp=strDate.split(\":\");\n\t \n\t long NwStart=Integer.parseInt(Temp[0]);\n\t\tlong NwEnd=Integer.parseInt(Temp[1]);\n\t\t\n\t long TotalCurrentTime=(NwStart*60)+NwEnd;\n\t \n\t \n\t Set<DeviceAlert> deviceAlerts=new HashSet<DeviceAlert>();\n\t \n\t if(ruleId==null)\n\t {\n\t \t\n\t \tdeviceAlerts=rulemanger.GetRuleStartAndEndTimeByDeviceId(device,alertType);\n\t }\n\t else\n\t {\n\t \tdeviceAlerts=rulemanger.GetRuleStartAndEndTimeByDeviceId(device,alertType,Integer.parseInt(ruleId));\n\t \n\t }\n\t \n\t //vibhu Note that we have only one deviceAlert per rule.\n\t for(DeviceAlert Devicealert : deviceAlerts)\n\t {\n\t \tXStream stream = new XStream();\n\t \tlong StartTime=Devicealert.getStartTime();\n\t \tlong EndTime=Devicealert.getEndTime();\n\t \tRule rule=Devicealert.getRule();\n\t \t\n\t \t//LogUtil.info(\"rule list:\"+stream.toXML(rule));\n\t \t\n\t \tint alert=rule.getAlert();\n\t \tint security = rule.getSecurity();\n\t\t\t\n\t \tif(alert==1){\n\t \t\tDevice device1=devicemanager.getDevice(generatedDeviceId);\n\t \t\t\n\t \t\tGateWay gateway=gatewaymanager.getGateWayByDevice(device1);\n\t \t\tCustomer customer=customermang.getCustomerByGateWay(gateway);\n\t \t\t\n\t \t\tAreaCode arc=alertsmanager.getareacode();\n\t \t\tAlertStatus altstatus=alertsmanager.getalertstatus();\n\t \t\t\n\t \t\t//LogUtil.info(\" Date :\"+date);\n\t \t\t/*alertmonitor.setCustomer(customer);*/\n\t \t\talertmonitor.setRule(rule);\n\t \t\talertmonitor.setCustomer(customer);\n\t \t\talertmonitor.setAlertTime(date);\n\t \t//\talertmonitor.setAreaCode(arc);\n\t \t\talertmonitor.setAlertStatus(altstatus);\n\t \t\talertsmanager.savealertsformonitor(alertmonitor);\n\t \t}\n\t \t\n\t \t//vibhu start\n\t \tbyte mode=rule.getMode();\n\t \tif(mode != 8 && mode != 7)\n\t \t{\n\t \t\tRule ruleWithGW = rulemanger.retrieveRuleDetails(rule.getId());\n\t \t\tString curMode = ruleWithGW.getGateWay().getCurrentMode();\n\t \t\t\n\t \t\tif(\n\t\t \t\t\t(curMode.equals(\"2\") && mode!=2 && mode !=4 && mode != 6 && mode != 7 && mode != 8 )\n\t\t\t \t\t ||\t(curMode.equals(\"1\") && mode != 1 && mode != 4 && mode != 5 && mode != 7 && mode != 8)\n\t\t\t \t\t ||\t(curMode.equals(\"0\") && mode != 8 && mode != 7 && mode != 3 && mode != 1 &&mode != 2)\n\t\t \t\t ){\n\t \t\t\t\n\t\t \t\t\t \n\t\t \t\t \tif(StartTime>=EndTime)\n\t\t \t\t\t\t{\n\t\t \t\t\t \tif(TotalCurrentTime>=StartTime || TotalCurrentTime<=EndTime)\n\t\t \t\t\t \t{\n\t\t \t\t\t \t\t\n\t\t \t\t\t \t\t sendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\t\t \t\t if (security == 1) {\n\t\t \t\t\t \t\t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t \t\t\t \t\t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t \t\t\t \t\t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t \t\t\t \t\t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t \t\t\t \t\t\t\t\tThread t = new Thread(securityActionControl);\n\t\t \t\t\t \t\t\t\t\tt.start();\n\n\t\t \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\t \n\t\t \t\t\t\t\n\t\t \t\t \telse if(StartTime<=EndTime)\n\t\t \t\t \t{\n\t\t \t\t \t\t\n\t\t \t\t \t\tif(TotalCurrentTime<=EndTime && TotalCurrentTime >=StartTime)\n\t\t \t\t\t \t{\n\t\t \t\t \t\t\t\n\t\t \t\t \t\t\t\n\t\t \t\t\t\t \t\t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\t\t\t \t\t\tif (security == 1) {\n\t\t \t\t\t\t \t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t \t\t\t\t \t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t \t\t\t\t \t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t \t\t\t\t \t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t \t\t\t\t \t\t\t\tThread t = new Thread(securityActionControl);\n\t\t \t\t\t\t \t\t\t\tt.start();\n\n\t\t \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 \t}\n\t\t \t\t\t \n\t\t \t\t }else{\n\t\t \t\t\tcontinue;\n\t\t \t\t }\n\t \t\n\n\t\t \t\t\n\n\t \t}\n\t \t//vibhu end\n\t \tif(mode==7){\n\t \t \tif(StartTime>=EndTime)\n\t\t\t{\n\t \t\t\n\t\t \tif(TotalCurrentTime>=StartTime || TotalCurrentTime<=EndTime)\n\t\t \t{\n\t\t \t\t\n\t\t \t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t\t \t\tif (security == 1) {\n\t\t\t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t\t\t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t\t\t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t\t\t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t\t\t\t\t\tThread t = new Thread(securityActionControl);\n\t\t\t\t\t\tt.start();\n\n\t\t\t\t\t}\n\t\t \t}\n\t\t \n\t\t\t}\n\t \telse if(StartTime<=EndTime)\n\t \t{\n\t \t\t\n\t \t\tif(TotalCurrentTime<=EndTime && TotalCurrentTime >=StartTime)\n\t\t \t{\n\t \t\t\t\n\t \t\t\tsendNotifications(queue, generatedDeviceId, device, alertType,rule);\n\t \t\t\tif (security == 1) {\n\t \t\t\t\tDevice device1 = devicemanager.getDevice(generatedDeviceId);\n\t \t\t\t\tGateWay gateway = gatewaymanager.getGateWayByDevice(device1);\n\t \t\t\t\tCustomer customer = customermang.getCustomerByGateWay(gateway);\n\t \t\t\t\tSecurityActionControl securityActionControl = new SecurityActionControl(customer);\n\t \t\t\t\tThread t = new Thread(securityActionControl);\n\t \t\t\t\tt.start();\n\n\t \t\t\t}\n\t\t \t}\n\t \t}\n\t }\n\t }\n\t return resultQueue;\n\t \n\t}",
"@GetMapping(\"/band-pruebas\")\n @Timed\n public ResponseEntity<List<BandPrueba>> getAllBandPruebas(BandPruebaCriteria criteria) {\n log.debug(\"REST request to get BandPruebas by criteria: {}\", criteria);\n List<BandPrueba> entityList = bandPruebaQueryService.findByCriteria(criteria);\n return ResponseEntity.ok().body(entityList);\n }",
"public List<RecordDTO> selectAllRecord(Criteria criteria);",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public List<Dummy> getIt() {\n\n \tCriterion cr = Restrictions.conjunction().add(Restrictions.gt(\"a\", 9));\n \tList<Dummy> dummies = BaseModel.getInstance().findByCriteria(Dummy.class, cr);\n \treturn dummies;\n\n }"
] | [
"0.5949282",
"0.5491134",
"0.54311645",
"0.5247718",
"0.524358",
"0.5109285",
"0.49622893",
"0.4947013",
"0.48533717",
"0.4846987",
"0.48337337",
"0.48279074",
"0.47631505",
"0.47125158",
"0.46970418",
"0.46937764",
"0.4690706",
"0.46641514",
"0.46457762",
"0.46240085",
"0.46179485",
"0.45953745",
"0.45840532",
"0.45705894",
"0.45634907",
"0.4528903",
"0.45217326",
"0.4519056",
"0.45143765",
"0.4509521",
"0.44731057",
"0.44692895",
"0.44502053",
"0.4448898",
"0.44485408",
"0.44275147",
"0.44261453",
"0.44197813",
"0.4419352",
"0.44162822",
"0.44138098",
"0.4411493",
"0.4393562",
"0.4392424",
"0.43699208",
"0.43692333",
"0.43617162",
"0.43529922",
"0.43431917",
"0.43390864",
"0.43281776",
"0.43120706",
"0.43063632",
"0.4303003",
"0.4283691",
"0.42822975",
"0.42821538",
"0.42683917",
"0.4262375",
"0.42537376",
"0.42472538",
"0.4238663",
"0.42290676",
"0.42284733",
"0.42221978",
"0.42207894",
"0.42207754",
"0.4220285",
"0.4217669",
"0.4215379",
"0.42131975",
"0.42077368",
"0.42030305",
"0.41950515",
"0.41860962",
"0.41848782",
"0.41813865",
"0.41794005",
"0.41788712",
"0.41591886",
"0.41590682",
"0.41550642",
"0.41543442",
"0.41529226",
"0.41491905",
"0.41448647",
"0.41292125",
"0.41279882",
"0.41254544",
"0.41084585",
"0.4107721",
"0.410431",
"0.410248",
"0.4100808",
"0.40986907",
"0.40929157",
"0.40915188",
"0.40873143",
"0.40850848",
"0.40793034"
] | 0.5185223 | 5 |
adds a new Criteria for the specified Alarm, and returns a Result object | @Security.Authenticated(Authenticate.class)
public static Result postCriteria(Integer alarmId){
Query q= new Query();
RequestBody body= request().body();
ObjectNode obj = (ObjectNode) body.asJson();
if(alarmId == null)
return badRequest("Invalid alarmId");
if(!instrumentCheck(alarmId, obj))
return badRequest("Invalid instrument/field combination");
//RESTRICTIONS
// refresh rate must be valid for the instrument/channel
// triggers cannot conflict
obj.put("refreshRate", getRefresh(obj));
obj.put("alarmID", alarmId);
q.insert("criteria", fillable, (JsonNode) obj);
return HttpHelper.update(q.query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result putCriteria(Integer alarmId, Integer id){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\t\n\t\tObjectNode obj = (ObjectNode) body.asJson();\n\n\t\tif(!instrumentCheck(alarmId, obj)) \n\t\t\treturn badRequest(\"Invalid instrument/field combination\");\n\t\t\n\t\t//RESTRICTIONS\n\t\t//\trefresh rate must be valid for the instrument/channel\n\t\t// triggers cannot conflict\n\t\tobj.put(\"refreshRate\", getRefresh(obj));\n\t\t\n\t\t// null alarmId will not be accepted by the database, and will return 400 even without this if statement\n\t\tif(obj.get(\"alarmID\") != null && alarmId != obj.get(\"alarmID\").asInt()) \n\t\t\treturn badRequest(\"This criteria does not belong to the specified alarm\");\n \t\n\t\tq.update(\"criteria\", fillable, (JsonNode) obj).where(primaryKey, \"=\", Integer.toString(id));\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"public int addAlarm(Alarm alarm) {\n SQLiteDatabase database = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n\n values.put(KEY_NAME, alarm.getName());\n values.put(KEY_HOUR, alarm.getHour());\n values.put(KEY_MINUTE, alarm.getMinute());\n values.put(KEY_STATE, alarm.getState());\n\n int rowInserted = (int) database.insert(TABLE_NAME, null, values);\n database.close();\n\n return rowInserted;\n }",
"public queryAlarm_result(queryAlarm_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"default void add(Criteria... criteria) {\n legacyOperation();\n }",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"Criteria add(Criteria add);",
"public queryAlarmByIds_result(queryAlarmByIds_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result getCriteria(Integer id){\n\t\tQuery q= new Query();\n\t\t\n\t\tq.select(new ArrayList<String>()).from(\"criteria\").where(\"AlarmID\", \"=\", Integer.toString(id));\n\t\t\n\t\treturn HttpHelper.query(q.query, fields);\n\t}",
"void addHasAlcoholResult(Object newHasAlcoholResult);",
"private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}",
"public void setAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n // pass the alarm id as an extra to be extracted in the receivier\n intent.putExtra(\"alarmID\", alarm.getId());\n // check if the alarm is on\n if (alarm.isOn()) {\n // if so check if it is recurring\n if (alarm.isRecurring()) {\n // for each day stipulated in the alarm, schedule an new alarm, each alarm id will\n // be multiplied with 10 and then an integer representation of each day will be\n // added i.e. alarm id = 10 and days a Sun = 1, Mon = 2... Sat = 7 therefore\n // sun alarm id = 101, Mon alarm id = 102... Sat alarm id = 107.\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact() + day, intent, 0);\n // instantiate a calander object\n Calendar calendar = Calendar.getInstance();\n // set to the current system time\n calendar.setTimeInMillis(System.currentTimeMillis());\n // set the calender day to day i.e. sun = 1, mon = 2 etc...\n calendar.set(Calendar.DAY_OF_WEEK, day);\n // set the calendar hour to alarm hour\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n // as per hour, set to alarm minutes\n calendar.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n // set seconds to 0 alarm activates close to 0th second of minute\n calendar.set(Calendar.SECOND, 0);\n // as alarm is recurring schedule the alarm to repeat every 7 day from set time\n // specified by alarm set calendar object\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY * 7, alarmIntent);\n }\n } else {\n // if the alarm is not recurring\n // uniquely identify the intent for each day and ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact(), intent, 0);\n // get a calendar object\n Calendar calNow = Calendar.getInstance();\n // set the time to current system time\n calNow.setTimeInMillis(System.currentTimeMillis());\n // get a second instance of calendar\n Calendar calSet = (Calendar) calNow.clone();\n // set the time of the calendar object to the alarm specified time\n calSet.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calSet.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n calSet.set(Calendar.SECOND, 0);\n // check if the alarm specified time is set to before the current time\n if (calSet.compareTo(calNow) <= 0) {\n //Today Set time passed, count to tomorrow\n calSet.add(Calendar.DATE, 1);\n }\n // set the alarm to activate at once at the calendar specified time\n alarmMgr.setExact(AlarmManager.RTC_WAKEUP,\n calSet.getTimeInMillis(), alarmIntent);\n }\n }\n }",
"public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }",
"Alarm createAlarm();",
"public void addNotificationAlarm() {\n // get hour and minute from time preference\n SharedPreferences settingsPrefs = PreferenceManager.getDefaultSharedPreferences(this);\n String time = settingsPrefs.getString(SettingsActivity.KEY_NOTIFICATION_TIME, TimePreference.DEFAULT_TIME);\n final int notificationHour = TimePreference.getHourFromString(time);\n final int notificationMinute = TimePreference.getMinuteFromString(time);\n\n // build DateTime for next alarm\n ZonedDateTime notificationTime = ZonedDateTime.now()\n .truncatedTo(ChronoUnit.DAYS)\n .plusHours(notificationHour)\n .plusMinutes(notificationMinute);\n\n if (notificationTime.isBefore(ZonedDateTime.now())) {\n notificationTime = notificationTime.plusDays(1);\n }\n\n // create alarm\n AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\n am.setInexactRepeating(AlarmManager.RTC_WAKEUP,\n notificationTime.toInstant().toEpochMilli(),\n AlarmManager.INTERVAL_DAY,\n buildAlarmPendingIntent());\n\n // too ensure alarm is recreated if device is restarted\n setBootReceiverEnabled(true);\n }",
"public boolean add(Reminder reminder);",
"private void setAlarm(Calendar targetCal) {\n\n int key = (int)(Math.random() * 1000 + 1);\n\n Intent intent = new Intent(getBaseContext(), AlarmReceiver.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n getBaseContext(), RQS_1, intent, key);\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n alarmManager.set(AlarmManager.RTC_WAKEUP, targetCal.getTimeInMillis(),\n pendingIntent);\n\n dataSet.add(new Model(key, targetCal.getTime().toString()));\n adapter.notifyDataSetChanged();\n }",
"public void addAssoications(Criteria criteria) {\r\n\r\n\t\tif (item.getPrescription() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"prescription.id\", item\r\n\t\t\t\t\t.getPrescription().getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getDrug() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"drug.id\", item.getDrug()\r\n\t\t\t\t\t.getId()));\r\n\t\t}\r\n\r\n\t\tif (item.getFrequency() != null) {\r\n\t\t\tcriteria = criteria.add(Restrictions.eq(\"frequency.id\", item\r\n\t\t\t\t\t.getFrequency().getId()));\r\n\t\t}\r\n\r\n\t}",
"public static ResultSet prc_InsertAppointment\n (\n int checkINOUTID,\n Date startDateTime,\n Date endDateTime,\n Date currentDateTime,\n int reminder,\n int alert\n )\n {\n SPArgCollection spArgs = new SPArgCollection(\"Prc_Insert_Appointment\",\n \"Appointment\");\n spArgs.add(new StoredProcedureArg(\"@\".concat(CHECK_INOUT_ID), \n StoredProcedureArg.DataType.INTEGER, checkINOUTID));\n spArgs.add(new StoredProcedureArg(\"@\".concat(START_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, startDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(END_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, endDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(CURRENT_DT_TIME),\n StoredProcedureArg.DataType.DATETIME, currentDateTime));\n spArgs.add(new StoredProcedureArg(\"@\".concat(REMINDER), \n StoredProcedureArg.DataType.INTEGER, reminder));\n spArgs.add(new StoredProcedureArg(\"@\".concat(ALERT), \n StoredProcedureArg.DataType.INTEGER, alert));\n \n ResultSet rs = Utils.executeStoredProcedureToResultSet(spArgs);\n return rs;\n }",
"public abstract boolean propagateAlarm(Player player, int addToAlarm);",
"public DetailedAlarmModel(){\n alarmEntityArrayList = new ArrayList<AlarmEntity>();\n AlarmEntity alarm = new AlarmEntity(\"time\", \"data\");\n alarmEntityArrayList.add(alarm);\n }",
"SBCallAlarm selectByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);",
"int insert(SBCallAlarm record);",
"@Test\n public void addRecord_will_add_the_difference_between_calc_and_effective_duration_to_last_day() {\n DateTime start = new DateTime(today.getYear(), today.getMonthOfYear(), today.getDayOfMonth() - 1, 12, 0);\n DateTime end = new DateTime(today.getYear(), today.getMonthOfYear(), today.getDayOfMonth(), 11, 10);\n\n // when: providing a tracking conf that rounds up\n aggregatedDay.addRecord(aRecord(start, end, Rounding.Strategy.SIXTY_MINUTES_UP));\n\n // then: duration for the 2nd day will contain the *effective* duration\n assertEquals(12, aggregatedDay.getDuration().getStandardHours());\n }",
"public synchronized static Uri newAlarm(Context context) {\n return context.getContentResolver().insert(\n Uri.parse(CONTENT_URI_ALL_ALARMS), null);\n }",
"public queryAlarm_args(queryAlarm_args other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n if (other.isSetAlarmQueryForm()) {\n this.alarmQueryForm = new TAlarmQueryForm(other.alarmQueryForm);\n }\n this.page = other.page;\n this.pageSize = other.pageSize;\n if (other.isSetOrders()) {\n Map<String,String> __this__orders = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.orders.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__orders_copy_key = other_element_key;\n\n String __this__orders_copy_value = other_element_value;\n\n __this__orders.put(__this__orders_copy_key, __this__orders_copy_value);\n }\n this.orders = __this__orders;\n }\n }",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"public addAttendances_result(addAttendances_result other) {\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.ComplianceCheckResult addNewComplianceCheckResult();",
"public void addToReminders(Date reminders);",
"public static void newAlarmInsertion(Alarm alarm) {\n\n\t\t/*\n\t\t * Get the Scenario associated to the current thread\n\t\t */\n\t\tScenario theScenario = ScenarioThreadLocal.getScenario();\n\n\t\t/*\n\t\t * Get the logger used for the current scenario and check if enabled ie\n\t\t * defined in log4j.xml\n\t\t */\n\t\tif (theScenario.getLogger().isInfoEnabled()) {\n\t\t\t/* Display full textual description of the received alarm */\n\t\t\ttheScenario.getLogger().info(\n\t\t\t\t\t\"Alarm received: \\n\" + alarm.toFormattedString());\n\t\t\ttheScenario\n\t\t\t\t\t.getLogger()\n\t\t\t\t\t.info(\"Rule has fired correctly, and new alarm has been inserted in working memory\");\n\t\t}\n\t\t/*\n\t\t * Update the \"justInserted\" flag to avoid the rule\n\t\t * \"New Alarm Insertion\" to be fired at each scenario rules execution\n\t\t */\n\t\talarm.setJustInserted(false);\n\t}",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }",
"public void or(Criteria criteria) {\n oredCriteria.add(criteria);\n }"
] | [
"0.57075393",
"0.546117",
"0.52366054",
"0.5167696",
"0.5121394",
"0.5121394",
"0.5121394",
"0.5121394",
"0.5121394",
"0.5121394",
"0.5121394",
"0.5012916",
"0.5006374",
"0.49824142",
"0.48578677",
"0.48518375",
"0.4840476",
"0.48302042",
"0.48207173",
"0.47875857",
"0.4766458",
"0.47556952",
"0.47523615",
"0.47474158",
"0.47463772",
"0.47141156",
"0.46799737",
"0.4668508",
"0.46681327",
"0.4667094",
"0.46464002",
"0.46464002",
"0.46464002",
"0.46464002",
"0.46435845",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46434677",
"0.46307856",
"0.46289963",
"0.46109185",
"0.45943484",
"0.45724788",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573",
"0.45710573"
] | 0.6288214 | 0 |
modifies the specified Criteria for the specified Alarm, and returns a Result object | @Security.Authenticated(Authenticate.class)
public static Result putCriteria(Integer alarmId, Integer id){
Query q= new Query();
RequestBody body= request().body();
ObjectNode obj = (ObjectNode) body.asJson();
if(!instrumentCheck(alarmId, obj))
return badRequest("Invalid instrument/field combination");
//RESTRICTIONS
// refresh rate must be valid for the instrument/channel
// triggers cannot conflict
obj.put("refreshRate", getRefresh(obj));
// null alarmId will not be accepted by the database, and will return 400 even without this if statement
if(obj.get("alarmID") != null && alarmId != obj.get("alarmID").asInt())
return badRequest("This criteria does not belong to the specified alarm");
q.update("criteria", fillable, (JsonNode) obj).where(primaryKey, "=", Integer.toString(id));
return HttpHelper.update(q.query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result postCriteria(Integer alarmId){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\tObjectNode obj = (ObjectNode) body.asJson();\n\t\t \n\t\tif(alarmId == null) \n\t\t\treturn badRequest(\"Invalid alarmId\");\n\t\t\n\t\tif(!instrumentCheck(alarmId, obj)) \n\t\t\treturn badRequest(\"Invalid instrument/field combination\");\n\t\t\n\t\t//RESTRICTIONS\n\t\t//\trefresh rate must be valid for the instrument/channel\n\t\t// triggers cannot conflict\t\t\t\n\t\t\n\t\tobj.put(\"refreshRate\", getRefresh(obj));\n \tobj.put(\"alarmID\", alarmId);\n \n \tq.insert(\"criteria\", fillable, (JsonNode) obj);\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"int updateByPrimaryKey(SBCallAlarm record);",
"public queryAlarm_result(queryAlarm_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"int updateByPrimaryKeySelective(PineAlarm record);",
"public queryAlarmByIds_result(queryAlarmByIds_result other) {\n if (other.isSetSuccess()) {\n this.success = new TAlarmQueryResult(other.success);\n }\n }",
"int updateByPrimaryKeySelective(BachAlarmRole record);",
"private void editAlarm(Alarm affectedAlarm) {\n \t\t//TODO: Launch AddAlarmActivity with this alarm as base so the user can edit it.\n \t}",
"int updateByPrimaryKey(PineAlarm record);",
"@Test\n public void testRecuccrenceRuleChange() throws Exception {\n EventData deltaEvent = prepareDeltaEvent(createdEvent);\n int occurences = 10;\n String rrule = RRuleFactory.getFrequencyWithOccurenceLimit(RecurringFrequency.DAILY, occurences);\n deltaEvent.setRrule(rrule);\n\n /*\n * Update as organizer\n */\n long now = now().longValue();\n String fromStr = DateTimeUtil.getZuluDateTime(new Date(now - TimeUnit.DAYS.toMillis(1)).getTime()).getValue();\n String untilStr = DateTimeUtil.getZuluDateTime(new Date(now + TimeUnit.DAYS.toMillis(30)).getTime()).getValue();\n\n ChronosCalendarResultResponse calendarResultResponse = chronosApi.updateEvent(deltaEvent.getFolder(), deltaEvent.getId(), now(), getUpdateBody(deltaEvent), deltaEvent.getRecurrenceId(), null, null, null, null, null, null, fromStr, untilStr, Boolean.TRUE, null);\n assertNull(calendarResultResponse.getError());\n assertTrue(calendarResultResponse.getData().getUpdated().size() == 0);\n assertTrue(calendarResultResponse.getData().getCreated().size() == occurences);\n assertTrue(calendarResultResponse.getData().getDeleted().size() == 1);\n\n /*\n * Check that end date has been updated\n */\n AnalyzeResponse analyzeResponse = receiveUpdateAsAttendee(PartStat.NEEDS_ACTION, CustomConsumers.ALL);\n AnalysisChange change = assertSingleChange(analyzeResponse);\n assertThat(\"Recurrence ID is not correct.\", change.getNewEvent().getRrule(), is(rrule));\n }",
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result deleteCriteria(Integer alarmId, Integer id){\n\t\tQuery q= new Query();\n\t\tRequestBody body= request().body();\n\t\t\n\t\tq.delete()\n\t\t\t.from(\"criteria\")\n\t\t\t.where(primaryKey, \"=\", Integer.toString(id))\n\t\t\t.andWhere(\"alarmID\", \"=\", Integer.toString(alarmId));\t\n\t\t\n\t\treturn HttpHelper.update(q.query);\n\t}",
"public patchEmployeeCustomFieldValues_result(patchEmployeeCustomFieldValues_result other) {\n }",
"private void setAlarm(final int fromHours, final int fromMinutes, final int toHours, final int toMinutes, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint alarmId;\n\t\tAlarm alarm = new Alarm(fromHours * 60 + fromMinutes, toHours * 60 + toMinutes, enableVibration, muteMedia, lockVolume, unmuteOnCall, disableNotificationLight, brightness, wdays);\n\t\talarm_data.add(alarm);\n\n\t\tAlarm[] alarmArray = new Alarm[alarm_data.size()];\n\n\t\talarmList.setAdapter(new AlarmAdapter(getActivity(), R.layout.alarm_list_item, alarm_data.toArray(alarmArray)));\n\n\t\tif (newAlarm) {\n\t\t\talarmId = settings.getInt(Constants.SCHEDULER_MAX_ALARM_ID, 0) + 2;\n\t\t\tdbAdapter.createAlarm(alarmId, alarm);\n\n\t\t\teditor.putInt(Constants.SCHEDULER_MAX_ALARM_ID, alarmId);\n\t\t\teditor.commit();\n\n\t\t} else {\n\n\t\t\talarmId = updateAlarmId;\n\t\t\tdbAdapter.updateAlarm(alarmId, alarm);\n\t\t}\n\n\t\talarmIDs.add(alarmId);\n\n\t\tTools.setAlarm(getActivity(), dbAdapter, alarm, alarmId);\n\n\t}",
"public void setAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n // pass the alarm id as an extra to be extracted in the receivier\n intent.putExtra(\"alarmID\", alarm.getId());\n // check if the alarm is on\n if (alarm.isOn()) {\n // if so check if it is recurring\n if (alarm.isRecurring()) {\n // for each day stipulated in the alarm, schedule an new alarm, each alarm id will\n // be multiplied with 10 and then an integer representation of each day will be\n // added i.e. alarm id = 10 and days a Sun = 1, Mon = 2... Sat = 7 therefore\n // sun alarm id = 101, Mon alarm id = 102... Sat alarm id = 107.\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact() + day, intent, 0);\n // instantiate a calander object\n Calendar calendar = Calendar.getInstance();\n // set to the current system time\n calendar.setTimeInMillis(System.currentTimeMillis());\n // set the calender day to day i.e. sun = 1, mon = 2 etc...\n calendar.set(Calendar.DAY_OF_WEEK, day);\n // set the calendar hour to alarm hour\n calendar.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n // as per hour, set to alarm minutes\n calendar.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n // set seconds to 0 alarm activates close to 0th second of minute\n calendar.set(Calendar.SECOND, 0);\n // as alarm is recurring schedule the alarm to repeat every 7 day from set time\n // specified by alarm set calendar object\n alarmMgr.setRepeating(AlarmManager.RTC_WAKEUP, calendar.getTimeInMillis(),\n AlarmManager.INTERVAL_DAY * 7, alarmIntent);\n }\n } else {\n // if the alarm is not recurring\n // uniquely identify the intent for each day and ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId() * 10).intValueExact(), intent, 0);\n // get a calendar object\n Calendar calNow = Calendar.getInstance();\n // set the time to current system time\n calNow.setTimeInMillis(System.currentTimeMillis());\n // get a second instance of calendar\n Calendar calSet = (Calendar) calNow.clone();\n // set the time of the calendar object to the alarm specified time\n calSet.set(Calendar.HOUR_OF_DAY, alarm.getHour());\n calSet.set(Calendar.MINUTE, new Integer(alarm.getMin()));\n calSet.set(Calendar.SECOND, 0);\n // check if the alarm specified time is set to before the current time\n if (calSet.compareTo(calNow) <= 0) {\n //Today Set time passed, count to tomorrow\n calSet.add(Calendar.DATE, 1);\n }\n // set the alarm to activate at once at the calendar specified time\n alarmMgr.setExact(AlarmManager.RTC_WAKEUP,\n calSet.getTimeInMillis(), alarmIntent);\n }\n }\n }",
"int updateByPrimaryKey(BachAlarmRole record);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"void criteria(Criteria criteria);",
"int updateByPrimaryKeySelective(Alert record);",
"public void updateAssignmentForTurnOffAlarm(long assignmentId) throws Exception {\n\n\t\ttry{ \n\t\t\tContentValues dataToInsert = new ContentValues(); \n\n\t\t\tdataToInsert.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\n\t\t\tString where = MySQLiteHelper.ASSIGNMENT_ID + \"=\" + assignmentId;\n\n\t\t\tdatabase.update(MySQLiteHelper.TABLE_ASSIGNMENT, dataToInsert, where, null);\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}",
"public CalculationResult updateCalculationResult(Vehicle vehicle,\n CalculationResult calculationResult) {\n\n String registrationNumber = vehicle.getRegistrationNumber();\n if (fuelTypeService.isExemptFuelType(vehicle.getFuelType())\n || taxClassService.isExemptTaxClass(vehicle.getTaxClass())\n || typeApprovalService.isExemptTypeApproval(vehicle.getTypeApproval())\n || militaryVehicleService.isMilitaryVehicle(registrationNumber)\n || retrofitService.isRetrofitted(registrationNumber)) {\n calculationResult.setExempt(true);\n return calculationResult;\n }\n return calculationResult;\n }",
"int updateByExampleSelective(@Param(\"record\") PineAlarm record, @Param(\"example\") PineAlarmExample example);",
"public clearAlarm_result(clearAlarm_result other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n this.success = other.success;\n }",
"int updateByPrimaryKey(Alert record);",
"public abstract boolean propagateAlarm(Player player, int addToAlarm);",
"public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }",
"@Security.Authenticated(Authenticate.class)\n\tpublic static Result getCriteria(Integer id){\n\t\tQuery q= new Query();\n\t\t\n\t\tq.select(new ArrayList<String>()).from(\"criteria\").where(\"AlarmID\", \"=\", Integer.toString(id));\n\t\t\n\t\treturn HttpHelper.query(q.query, fields);\n\t}",
"int updateByExampleSelective(@Param(\"record\") Email record, @Param(\"example\") EmailCriteria example);",
"public clearAlarmByIds_result(clearAlarmByIds_result other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n this.success = other.success;\n }",
"public boolean updateAppointment(Appointment app);",
"int updateByExample(@Param(\"record\") Email record, @Param(\"example\") EmailCriteria example);",
"private void setAlarm(Calendar targetCal) {\n\n int key = (int)(Math.random() * 1000 + 1);\n\n Intent intent = new Intent(getBaseContext(), AlarmReceiver.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n getBaseContext(), RQS_1, intent, key);\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n alarmManager.set(AlarmManager.RTC_WAKEUP, targetCal.getTimeInMillis(),\n pendingIntent);\n\n dataSet.add(new Model(key, targetCal.getTime().toString()));\n adapter.notifyDataSetChanged();\n }",
"int updateByExample(@Param(\"record\") PineAlarm record, @Param(\"example\") PineAlarmExample example);",
"int updateByPrimaryKeySelective(DrpCommissionRule record);",
"public Future<?> doUpdate(NacAlarm alarm)\n\t{\n\t\tif (alarm == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(() -> dao.update(alarm));\n\t}",
"public abstract void updateWithNewCalendar(Calendar cal, long misfireThreshold);",
"int updateByPrimaryKeySelective(CalendarDate record);",
"@Override\n\tpublic Document patchIEResults(Document doc) {\n\t\tif (doc.getInitial_event() != null) {\n\t\t\tList<Paragraph> originalp = doc.getInitial_event();\n\t\t\toriginalp = patchDocLevel(originalp);\n\t\t\tdoc.setInitial_event(originalp);\n\t\t}\n\t\tif (doc.getInclusion_criteria() != null) {\n\t\t\tList<Paragraph> originalp = doc.getInclusion_criteria();\n\t\t\toriginalp = patchDocLevel(originalp);\n\t\t\tdoc.setInclusion_criteria(originalp);\n\t\t}\n\t\tif (doc.getExclusion_criteria() != null) {\n\t\t\tList<Paragraph> originalp = doc.getExclusion_criteria();\n\t\t\toriginalp = patchDocLevel(originalp);\n\t\t\tdoc.setExclusion_criteria(originalp);\n\t\t}\n\t\treturn doc;\n\t}",
"int updateByExample(ChronicCheck record, ChronicCheckExample example);",
"int updateByPrimaryKey(ExamineApproveResult record);",
"int updateByExample(@Param(\"record\") Schedule record, @Param(\"example\") ScheduleCriteria example);",
"int updateByExampleSelective(@Param(\"record\") Alert record, @Param(\"example\") AlertExample example);",
"int updateByExampleSelective(@Param(\"record\") Schedule record, @Param(\"example\") ScheduleCriteria example);",
"int updateByPrimaryKey(MedicalOrdersExecutePlan record);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent resultIntent)\n {\n super.onActivityResult(requestCode, resultCode, resultIntent);\n\n // Repeated clean sweeps can begin again now.\n cleanSweep();\n startRepeatingDeletionSearch();\n\n // This is the case when a new reminder is created.\n if (resultCode==0) {\n //Retrieve result bundle from result intent.\n Bundle resultBundle = resultIntent.getBundleExtra(\"Bundle\");\n assert resultBundle != null;\n\n //Retrieve all reminder item information. Including time, titles, description and codes.\n newReminderSet(resultBundle);\n\n // Inserting the new reminder item into the recycler.\n recyclerPosition = reminderItems.size();\n insertReminderItem(recyclerPosition);\n }\n\n // This is the case when an existing reminder is edited.\n else if (resultCode==1){\n //Retrieve result bundle from result intent.\n Bundle resultBundle = resultIntent.getBundleExtra(\"Bundle\");\n assert resultBundle != null;\n\n //Retrieve all reminder item information. Including time, titles, description and codes.\n newReminderSet(resultBundle);\n\n // Edits the reminderItem and updates the recycler.\n int pos = resultBundle.getInt(\"Position\");\n editReminderItem(pos);\n }\n\n // This is the case when an existing reminder is deleted.\n else if (resultCode==3){\n //Retrieve result bundle from result intent.\n Bundle resultBundle = resultIntent.getBundleExtra(\"Bundle\");\n assert resultBundle != null;\n\n // Deleted the reminderItem and updates the recycler.\n int position = resultBundle.getInt(\"Position\");\n deleteReminderItem(position);\n }\n }",
"int updateByPrimaryKeySelective(MedicalOrdersExecutePlan record);",
"@Test\r\n void testModify_reminderScheduleId_reminderId_0__statusCode4() throws IOException {\r\n //todo\r\n ArrayList actual = AMS.request(amsIp, mac, Operation.MODIFY, 1,\r\n reminderProgramStart, reminderChannelNumber, reminderProgramId, reminderOffset, 0, 0);\r\n assertEquals(HttpStatus.SC_OK, actual.get(0));\r\n assertEquals(\"4\", actual.get(1));\r\n }",
"int updateByExample(@Param(\"record\") Alert record, @Param(\"example\") AlertExample example);",
"public void updateActivarGestionStock(Map criteria);",
"int updateByPrimaryKeySelective(ExamineApproveResult record);",
"int updateByExampleSelective(@Param(\"record\") BachAlarmRole record, @Param(\"example\") BachAlarmRoleExample example);",
"int updateByPrimaryKey(DrpCommissionRule record);",
"private android.app.AlertDialog.Builder createAlarmDialog(final int from, final int to, final boolean enableVibration, final boolean muteMedia, final boolean lockVolume,\n\t\t\tfinal boolean unmuteOnCall, final boolean disableNotificationLight, final int brightness, final boolean[] wdays, final boolean newAlarm, final int updateAlarmId) {\n\n\t\tint fromHours = from / 60;\n\t\tint fromMinutes = from % 60;\n\n\t\tint toHours = to / 60;\n\t\tint toMinutes = to % 60;\n\n\t\tfinal AlertDialog.Builder dialog = new AlertDialog.Builder(getActivity());\n\n\t\tView view = getActivity().getLayoutInflater().inflate(R.layout.alarm_popup, null);\n\n\t\tdialog.setView(view);\n\n\t\t/*\n\t\tif (newAlarm) {\n\t\t\tdialog.setTitle(R.string.add);\n\t\t} else {\n\t\t\tdialog.setTitle(R.string.edit);\n\t\t}*/\n\t\tdialog.setCancelable(true);\n\n\t\tViewGroup v = (ViewGroup) view.findViewById(R.id.main_layout);\n\n\t\t// Loop through all views and set their typeface to Roboto Light\n\t\tfor (int i = 0; i < v.getChildCount(); ++i) {\n\t\t\tView nextChild = v.getChildAt(i);\n\t\t\tif (nextChild instanceof CheckBox) {\n\t\t\t\t((CheckBox) nextChild).setTypeface(typefaceRobotoLight);\n\t\t\t} else if (nextChild instanceof TextView) {\n\t\t\t\t((TextView) nextChild).setTypeface(typefaceRobotoLight);\n\t\t\t} else if (nextChild instanceof ViewGroup) {\n\t\t\t\tfor (int j = 0; j < ((ViewGroup) nextChild).getChildCount(); ++j) {\n\t\t\t\t\tView temp = ((ViewGroup) nextChild).getChildAt(j);\n\t\t\t\t\tif (temp instanceof CheckBox) {\n\t\t\t\t\t\t((CheckBox) temp).setTypeface(typefaceRobotoLight);\n\t\t\t\t\t} else if (temp instanceof TextView) {\n\t\t\t\t\t\t((TextView) temp).setTypeface(typefaceRobotoLight);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfinal Button fromButton = (Button) view.findViewById(R.id.from_button);\n\t\tfromButton.setTypeface(typefaceRobotoLight);\n\t\tfinal Button toButton = (Button) view.findViewById(R.id.to_button);\n\t\ttoButton.setTypeface(typefaceRobotoLight);\n\n\t\tfromButton.setText(Tools.fixTimeFormatting(fromHours, fromMinutes));\n\t\ttoButton.setText(Tools.fixTimeFormatting(toHours, toMinutes));\n\n\t\tOnClickListener listener = new OnClickListener() {\n\n\t\t\tpublic void onClick(final View parent) {\n\t\t\t\tfinal AlertDialog.Builder nDialog = new AlertDialog.Builder(getActivity());\n\n\t\t\t\tView main = getActivity().getLayoutInflater().inflate(R.layout.time_dialog, null);\n\n\t\t\t\tnDialog.setView(main);\n\t\t\t\t// nDialog.setTitle(R.string.pick_time);\n\t\t\t\tnDialog.setCancelable(true);\n\n\t\t\t\tfinal MyTimePicker picker = (MyTimePicker) main.findViewById(R.id.picker);\n\t\t\t\tTextView tv = (TextView) main.findViewById(R.id.picker_hint);\n\t\t\t\ttv.setTypeface(typefaceRobotoLight);\n\n\t\t\t\tString timeString = ((Button) parent).getText().toString();\n\n\t\t\t\tpicker.setHour(Integer.parseInt(timeString.substring(0, 2)));\n\t\t\t\tpicker.setMinute(Integer.parseInt(timeString.substring(3)));\n\n\t\t\t\tnDialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\t\t\t((Button) parent).setText(Tools.getPaddedString(picker.getHour()) + \":\" + Tools.getPaddedString(picker.getMinute()));\n\n\t\t\t\t\t\tdialog.dismiss();\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tnDialog.show();\n\n\t\t\t}\n\t\t};\n\n\t\tfromButton.setOnClickListener(listener);\n\t\ttoButton.setOnClickListener(listener);\n\n\t\tfinal CheckBox vibrationCheck = (CheckBox) view.findViewById(R.id.enable_vibr_check);\n\t\tvibrationCheck.setChecked(enableVibration);\n\t\tvibrationCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox mediaCheck = (CheckBox) view.findViewById(R.id.disable_media_check);\n\t\tmediaCheck.setChecked(muteMedia);\n\t\tmediaCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox lockCheck = (CheckBox) view.findViewById(R.id.lock_check);\n\t\tlockCheck.setChecked(lockVolume);\n\t\tlockCheck.setTypeface(typefaceRobotoLight);\n if(Tools.isLollipopOrLater()){\n lockCheck.setVisibility(View.GONE);\n }\n\n\t\tfinal CheckBox unmuteCheck = (CheckBox) view.findViewById(R.id.call_unmute_check);\n\t\tunmuteCheck.setChecked(unmuteOnCall);\n\t\tunmuteCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox notiLightCheck = (CheckBox) view.findViewById(R.id.light_check);\n\t\tnotiLightCheck.setChecked(disableNotificationLight);\n\t\tnotiLightCheck.setTypeface(typefaceRobotoLight);\n\n\t\tfinal CheckBox brightnessCheck = (CheckBox) view.findViewById(R.id.brightness_check);\n\t\tbrightnessCheck.setChecked(brightness != -1);\n\n\t\tif (brightness == -1) {\n\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, -1);\n\t\t} else {\n\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, brightness);\n\t\t}\n\t\teditor.commit();\n\n\t\tbrightnessCheck.setTypeface(typefaceRobotoLight);\n\t\tbrightnessCheck.setOnCheckedChangeListener(new OnCheckedChangeListener() {\n\n\t\t\tpublic void onCheckedChanged(final CompoundButton buttonView, final boolean isChecked) {\n\t\t\t\tif (isChecked) {\n\t\t\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n\t\t\t\t\tfinal View v = getActivity().getLayoutInflater().inflate(R.layout.brightness_dialog, null);\n\n\t\t\t\t\tfinal TextView title = (TextView) v.findViewById(R.id.brightness_text);\n\t\t\t\t\tfinal SeekBar bar = (SeekBar) v.findViewById(R.id.brightness_slider);\n\n\t\t\t\t\tbuilder.setCancelable(false);\n\n\t\t\t\t\tbar.setMax(100);\n\n\t\t\t\t\tbar.setOnSeekBarChangeListener(new OnSeekBarChangeListener() {\n\n\t\t\t\t\t\tpublic void onProgressChanged(final SeekBar seekBar, final int progress, final boolean fromUser) {\n\t\t\t\t\t\t\ttitle.setText(progress + \"%\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void onStopTrackingTouch(final SeekBar seekBar) {\n\t\t\t\t\t\t\t// Do nothing\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tpublic void onStartTrackingTouch(final SeekBar seekBar) {\n\t\t\t\t\t\t\t// Do nothing\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\ttitle.setTypeface(Tools.getTypefaceRobotoThin(getActivity()));\n\n\t\t\t\t\tbuilder.setView(v);\n\n\t\t\t\t\tbuilder.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\t\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, (int) (bar.getProgress() * 2.55));\n\t\t\t\t\t\t\teditor.commit();\n\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\t\t\tif (brightness > 0) {\n\t\t\t\t\t\tbar.setProgress((int) (brightness / 2.55));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbar.setProgress(50);\n\t\t\t\t\t}\n\n\t\t\t\t\tbuilder.show();\n\n\t\t\t\t} else {\n\t\t\t\t\teditor.putInt(Constants.SCHEDULER_BRIGHTNESS, -1);\n\t\t\t\t\teditor.commit();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\n\t\tfinal CheckBox[] weekdayChecks = { (CheckBox) view.findViewById(R.id.sunday_check), (CheckBox) view.findViewById(R.id.monday_check), (CheckBox) view.findViewById(R.id.tuesday_check),\n\t\t\t\t(CheckBox) view.findViewById(R.id.wednesday_check), (CheckBox) view.findViewById(R.id.thursday_check), (CheckBox) view.findViewById(R.id.friday_check),\n\t\t\t\t(CheckBox) view.findViewById(R.id.saturday_check) };\n\n\t\tfor (int i = 0; i < 7; i++) {\n\t\t\tweekdayChecks[i].setChecked(wdays[i]);\n\t\t}\n\n\t\tdialog.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n\n\t\t\tpublic void onClick(final DialogInterface dialog, final int which) {\n\t\t\t\tString fromString = fromButton.getText().toString();\n\t\t\t\tString untilString = toButton.getText().toString();\n\n\t\t\t\tint fromHours = Integer.parseInt(fromString.substring(0, 2));\n\t\t\t\tint fromMinutes = Integer.parseInt(fromString.substring(3));\n\n\t\t\t\tint toHours = Integer.parseInt(untilString.substring(0, 2));\n\t\t\t\tint toMinutes = Integer.parseInt(untilString.substring(3));\n\n\t\t\t\tboolean vibChecked = vibrationCheck.isChecked();\n\t\t\t\tboolean mediaChecked = mediaCheck.isChecked();\n\n\t\t\t\tboolean lockChecked = lockCheck.isChecked();\n\t\t\t\tboolean unmuteChecked = unmuteCheck.isChecked();\n\n\t\t\t\tboolean notiLightChecked = notiLightCheck.isChecked();\n\n\t\t\t\tboolean[] wdays = new boolean[7];\n\n\t\t\t\tfor (int i = 0; i < 7; i++) {\n\t\t\t\t\twdays[i] = weekdayChecks[i].isChecked();\n\t\t\t\t}\n\n\t\t\t\tif (!newAlarm) {\n\t\t\t\t\tfor (int i = 0; i < alarmIDs.size(); i++) {\n\n\t\t\t\t\t\tif (alarmIDs.get(i) == updateAlarmId) {\n\t\t\t\t\t\t\talarmIDs.remove(i);\n\t\t\t\t\t\t\talarm_data.remove(i);\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tint brightness = settings.getInt(Constants.SCHEDULER_BRIGHTNESS, 125);\n\n\t\t\t\t// Set the alarm.\n\t\t\t\tsetAlarm(fromHours, fromMinutes, toHours, toMinutes, vibChecked, mediaChecked, lockChecked, unmuteChecked, notiLightChecked, brightness, wdays, newAlarm, updateAlarmId);\n\n\t\t\t\t// Save the current state of this activity in shared\n\t\t\t\t// preferences\n\t\t\t\tserviceCheck.setChecked(true);\n\t\t\t\tserviceCheck.setText(R.string.service_running);\n\n\t\t\t\teditor.putBoolean(Constants.SCHEDULER_ENABLED, true);\n\n\t\t\t\teditor.commit();\n\t\t\t\tdialog.dismiss();\n\t\t\t}\n\t\t});\n\n\t\treturn dialog;\n\t}",
"abstract void handleAlarmUpdate(AlarmUpdateInfo info);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == 1) {\n if (resultCode == RESULT_CANCELED) { // if the user decided to disable notification, whereas it was enabled when opening settings\n AlarmManager alarm = (AlarmManager) getApplicationContext().getSystemService(ALARM_SERVICE);\n PendingIntent pending = PendingIntent.getBroadcast(getApplicationContext(), 0, new Intent(getApplicationContext(), AlarmReceiver.class), PendingIntent.FLAG_UPDATE_CURRENT);\n\n if (alarm != null) {\n alarm.cancel(pending);\n pending.cancel();\n }\n }\n } else {\n if (resultCode == RESULT_FIRST_USER) { // if the user has enabled notif, whereas it was disabled when opening settings\n configureAlarmManager();\n }\n }\n recreate_fragments();\n }",
"public void startAlarm(Context context){\n Intent intent = new Intent(this,MonthlyReminderService.class);\n int received = intent.getIntExtra(\"recieved\", 0);\n intent.putExtra(\"received\", received);\n //int type = intent.getIntExtra(\"type\", 0);\n //Log.e(\"SurveyType\", Integer.toString(type));\n //intent.putExtra(\"type\", type);\n //intent.putExtra(\"date\", surveyDate);\n //intent.putExtra(\"type\", \"Health Literacy\");\n //Calendar now = Calendar.getInstance();\n //intent.putExtra(\"dayofYear\",now.get(Calendar.DAY_OF_YEAR));\n startService(intent);\n }",
"public boolean UpdateAlarm(String id, Alarm alarm) {\n\ttry {\n\t // Comprobamos que ni el ID ni la alarma sean nulos.\n\t LOGGER.debug(\n\t\t I18n.getResource(LanguageKeys.LogsMessages.LOG_ALARM_UPDATE, true, new Object[] { id, alarm }));\n\t if (id == null || alarm == null) {\n\t\tLOGGER.debug(I18n.getResource(LanguageKeys.LogsMessages.LOG_ERROR_ALARM_ID_OR_ALARM_NULL, true,\n\t\t\tnew Object[] { id, alarm }));\n\t\treturn false;\n\t }\n\t // Recuperamos la alarma a reemplazar de la base de datos.\n\t Alarm a = findById(id);\n\t if (a == null) {\n\t\treturn false;\n\t }\n\t // Comparamos cada campo y actualizamos en caso de ser necesario.\n\t a.setAlarmName(!a.getAlarmName().equals(alarm.getAlarmName()) ? alarm.getAlarmName() : a.getAlarmName());\n\t a.setAlarmPeriod(\n\t\t a.getAlarmPeriod() != alarm.getAlarmPeriod() ? alarm.getAlarmPeriod() : a.getAlarmPeriod());\n\t a.setEmailNotification(a.isEmailNotification() != alarm.isEmailNotification() ? alarm.isEmailNotification()\n\t\t : a.isEmailNotification());\n\t a.setEnabled(a.isEnabled() != alarm.isEnabled() ? alarm.isEnabled() : a.isEnabled());\n\n\t // Guardamos la nueva alarma\n\t boolean saveSuccess = saveAlarm(a);\n\t if (saveSuccess) {\n\t\tLOGGER.debug(I18n.getResource(LanguageKeys.LogsMessages.LOG_ALARM_UPDATE_SUCESSFULLY, true,\n\t\t\tnew Object[] { a.getId() }));\n\t\treturn true;\n\t } else {\n\t\tLOGGER.error(I18n.getResource(LanguageKeys.LogsMessages.LOG_ERROR_ALARM_SAVE_FAILURE, true,\n\t\t\tnew Object[] { id }));\n\t\treturn false;\n\t }\n\t} catch (Exception e) {\n\t LOGGER.error(I18n.getResource(LanguageKeys.LogsMessages.UNEXPECTED_ERROR, true, new Object[] { e }));\n\t return false;\n\t}\n }",
"public void receiveResulteditEquipment(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.EditEquipmentResponse result) {\n }",
"private void setAlarm(int key, Calendar targetCal) {\n\n Intent intent = new Intent(getBaseContext(), AlarmReceiver.class);\n PendingIntent pendingIntent = PendingIntent.getBroadcast(\n getBaseContext(), RQS_1, intent, key);\n AlarmManager alarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n alarmManager.set(AlarmManager.RTC_WAKEUP, targetCal.getTimeInMillis(),\n pendingIntent);\n\n dataSet.add(new Model(key, targetCal.getTime().toString()));\n adapter.notifyDataSetChanged();\n }",
"private static Element sendCalendarMessageInternal(\n ZimbraSoapContext zsc,\n OperationContext octxt,\n int apptFolderId,\n Account acct,\n Mailbox mbox,\n CalSendData csd,\n Element response,\n boolean updateOwnAppointment)\n throws ServiceException {\n boolean onBehalfOf = isOnBehalfOfRequest(zsc);\n boolean notifyOwner = onBehalfOf && acct.getBooleanAttr(Provisioning.A_zimbraPrefCalendarNotifyDelegatedChanges, false);\n if (notifyOwner) {\n try {\n InternetAddress addr = AccountUtil.getFriendlyEmailAddress(acct);\n csd.mMm.addRecipient(javax.mail.Message.RecipientType.TO, addr);\n } catch (MessagingException e) {\n throw ServiceException.FAILURE(\"count not add calendar owner to recipient list\", e);\n }\n }\n\n // Never send a notification to the person making the SOAP request\n // in a non-delegated request.\n if (!onBehalfOf) {\n String[] aliases = acct.getMailAlias();\n String[] addrs;\n if (aliases != null && aliases.length > 0) {\n addrs = new String[aliases.length + 1];\n addrs[0] = acct.getAttr(Provisioning.A_mail);\n for (int i = 0; i < aliases.length; i++)\n addrs[i + 1] = aliases[i];\n } else {\n addrs = new String[1];\n addrs[0] = acct.getAttr(Provisioning.A_mail);\n }\n try {\n Mime.removeRecipients(csd.mMm, addrs);\n } catch (MessagingException e) {}\n }\n\n ParsedMessage pm = new ParsedMessage(csd.mMm, false);\n\n if (csd.mInvite.getFragment() == null || csd.mInvite.getFragment().equals(\"\")) {\n csd.mInvite.setFragment(pm.getFragment());\n }\n\n // Write out the MimeMessage to a temp file and create a new MimeMessage from the file.\n // If we don't do this, we get into trouble during modify appointment call. If the blob\n // is bigger than the streaming threshold (e.g. appointment has a big attachment), the\n // MimeMessage object is attached to the current blob file. But the Mailbox.addInvite()\n // call below updates the blob to a new mod_content (hence new path). The attached blob\n // thus having been deleted, the MainSender.sendMimeMessage() call that follows will attempt\n // to read from a non-existent file and fail. We can avoid this situation by writing the\n // to-be-emailed mime message to a temp file, thus detaching it from the appointment's\n // current blob file. This is inefficient, but safe.\n OutputStream os = null;\n InputStream is = null;\n File tempMmFile = null;\n try {\n \ttempMmFile = File.createTempFile(\"zcal\", \"tmp\");\n \ttempMmFile.deleteOnExit();\n\n os = new FileOutputStream(tempMmFile);\n csd.mMm.writeTo(os);\n ByteUtil.closeStream(os);\n os = null;\n\n is = new FileInputStream(tempMmFile);\n csd.mMm = new FixedMimeMessage(JMSession.getSession(), is);\n } catch (IOException e) {\n if (tempMmFile != null)\n tempMmFile.delete();\n throw ServiceException.FAILURE(\"error creating calendar message content\", e);\n } catch (MessagingException e) {\n if (tempMmFile != null)\n tempMmFile.delete();\n throw ServiceException.FAILURE(\"error creating calendar message content\", e);\n } finally {\n ByteUtil.closeStream(os);\n ByteUtil.closeStream(is);\n }\n\n AddInviteData aid = null;\n ItemId msgId = null;\n try {\n if (!csd.mInvite.isCancel()) {\n // For create/modify requests, we want to first update the local mailbox (organizer's)\n // and send invite emails only if local change succeeded. This order is also necessary\n // because of the side-effect relating to attachments. (see below comments)\n\n // First, update my own appointment. It is important that this happens BEFORE the call to sendMimeMessage,\n // because sendMimMessage will delete uploaded attachments as a side-effect.\n if (updateOwnAppointment)\n aid = mbox.addInvite(octxt, csd.mInvite, apptFolderId, pm);\n // Next, notify any attendees.\n if (!csd.mDontNotifyAttendees)\n // All calendar-related emails are sent in sendpartial mode.\n msgId = CalendarMailSender.sendPartial(octxt, mbox, csd.mMm, csd.newContacts, csd.uploads,\n csd.mOrigId, csd.mReplyType, csd.mIdentityId, false);\n } else {\n // But if we're sending a cancel request, send emails first THEN update the local mailbox.\n // This makes a difference if MTA is not running. We'll avoid canceling organizer's copy\n // if we couldn't notify the attendees.\n //\n // This order has a problem when there's an attachment, but cancel requests should not\n // have an attachment, so we're okay.\n // Before sending email, make sure the requester has permission to cancel.\n CalendarItem calItem = mbox.getCalendarItemByUid(octxt, csd.mInvite.getUid());\n if (calItem != null)\n calItem.checkCancelPermission(octxt.getAuthenticatedUser(), octxt.isUsingAdminPrivileges(), csd.mInvite);\n\n if (!csd.mDontNotifyAttendees)\n msgId = CalendarMailSender.sendPartial(octxt, mbox, csd.mMm, csd.newContacts, csd.uploads,\n csd.mOrigId, csd.mReplyType, csd.mIdentityId, false);\n if (updateOwnAppointment)\n aid = mbox.addInvite(octxt, csd.mInvite, apptFolderId, pm);\n }\n } finally {\n // Delete the temp file after we're done sending email.\n if (tempMmFile != null)\n tempMmFile.delete();\n }\n\n if (updateOwnAppointment && response != null && aid != null) {\n csd.mAddInvData = aid;\n ItemIdFormatter ifmt = new ItemIdFormatter(zsc);\n String id = ifmt.formatItemId(aid.calItemId);\n response.addAttribute(MailConstants.A_CAL_ID, id);\n if (csd.mInvite.isEvent())\n response.addAttribute(MailConstants.A_APPT_ID_DEPRECATE_ME, id); // for backward compat\n response.addAttribute(MailConstants.A_CAL_INV_ID, ifmt.formatItemId(aid.calItemId, aid.invId));\n if (Invite.isOrganizerMethod(csd.mInvite.getMethod())) {\n response.addAttribute(MailConstants.A_MODIFIED_SEQUENCE, aid.modSeq);\n response.addAttribute(MailConstants.A_REVISION, aid.rev);\n }\n if (msgId != null)\n response.addUniqueElement(MailConstants.E_MSG).addAttribute(MailConstants.A_ID, ifmt.formatItemId(msgId));\n }\n \n return response;\n }",
"public void setAlarm (int alarm) { this.alarm = alarm; }",
"void addHasAlcoholResult(Object newHasAlcoholResult);",
"ApplicantDetailsResponse applyJob(Integer applicantId, Integer jobId) throws ServiceException;",
"public void receiveResulteditWriteoff(\n org.apache.ws.axis2.MySQLServiceEquipmentStub.EditWriteoffResponse result) {\n }",
"int updateByPrimaryKeySelective(AfterServiceSheet record);",
"private static void saveAlarm(\n Context context, int id, boolean enabled, int hour, int minute,\n Alarm.DaysOfWeek daysOfWeek, boolean vibrate, String label,\n String alert, boolean popToast) {\n if (Log.LOGV) Log.v(\"** saveAlarm \" + id + \" \" + label + \" \" + enabled\n + \" \" + hour + \" \" + minute + \" vibe \" + vibrate);\n\n // Fix alert string first\n long time = Alarms.setAlarm(context, id, enabled, hour, minute, daysOfWeek, vibrate, label, alert);\n \n }",
"@Test\r\n void testModify_reminderScheduleId_0__statusCode4() throws IOException {\r\n //todo\r\n ArrayList actual = AMS.request(amsIp, mac, Operation.MODIFY, 1,\r\n reminderProgramStart, reminderChannelNumber, reminderProgramId, reminderOffset, 0, reminderId);\r\n assertEquals(HttpStatus.SC_OK, actual.get(0));\r\n assertEquals(\"4\", actual.get(1));\r\n }",
"@Override\n public void onClick(View view) {\n Intent intent = new Intent(getApplicationContext(), ReminderBroadcastReceiver.class);\n intent.putExtra(\"notificationText\", reminderData.getNotificationText());\n\n // Create pending intent with time given\n PendingIntent alarmIntent = PendingIntent.getBroadcast(getApplicationContext(), notificationId,\n intent, PendingIntent.FLAG_UPDATE_CURRENT);\n\n // Create AlarmManager which is sent with pending intent\n AlarmManager alarm = (AlarmManager) getSystemService(ALARM_SERVICE);\n // Create time when notification will fire\n Calendar startTime = Calendar.getInstance();\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK));\n startTime.set(Calendar.HOUR_OF_DAY, timePicker.getHour());\n startTime.set(Calendar.MINUTE, timePicker.getMinute());\n startTime.set(Calendar.SECOND, 0);\n\n long alarmStartTime = startTime.getTimeInMillis();\n\n\n /* If reminder time is smaller than current time, start notification on next day, still in progress */\n\n /*\n if (startTime.getTimeInMillis() < System.currentTimeMillis()) {\n startTime.set(Calendar.DAY_OF_WEEK, startTime.get(Calendar.DAY_OF_WEEK + 1));\n alarmStartTime = startTime.getTimeInMillis();\n }\n else\n {\n alarmStartTime = startTime.getTimeInMillis();\n }\n */\n\n\n // Set alarm with (type, milliseconds, intent)\n // With RTC_WAKEUP we wake the device up and deliver the pending intent\n alarm.set(AlarmManager.RTC_WAKEUP, alarmStartTime, alarmIntent);\n saveData();\n\n }",
"int updateByPrimaryKeySelective(CustomReport record);",
"int updateByPrimaryKeySelective(ChronicCheck record);",
"int updateByExample(@Param(\"record\") BachAlarmRole record, @Param(\"example\") BachAlarmRoleExample example);",
"int updateByPrimaryKeySelective(CompanyExtend record);",
"int updateByPrimaryKey(CalendarDate record);",
"public void modifyRealActivity(PublishMessageVO vo){\r\n\t\tRealActivity ra = baseDAO.get(new RealActivity(), vo.getRealactivityID());\r\n\t\tra.setTelephone(vo.getTelephone());\r\n\t\tra.setDiscription(vo.getDescription());\r\n\t\tbaseDAO.update(ra);\r\n\t}",
"int updateByPrimaryKeySelective(EbayLmsLog record);",
"@Override\n public Criteria getCriteria() {\n\n //判断是否为精确到天的时间查询\n //情况一 点击分组查询查看该天的详情\n if (this.searchObject.getEndtime() == null && this.searchObject.getStarttime() != null){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n\n //情况二 在分组页面按时间搜索\n }else if (this.searchObject.getEndtime() != null && this.searchObject.getStarttime().equals(this.searchObject.getEndtime())){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n }\n\n Criteria criteria = Criteria.and(\n\n Criteria.add(ActivityPlayerApply.PROP_ID, Operator.EQ, this.searchObject.getId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_MESSAGE_ID, Operator.EQ, this.searchObject.getActivityMessageId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_ID, Operator.EQ, this.searchObject.getUserId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_NAME, Operator.EQ, this.searchObject.getUserName()),\n Criteria.add(ActivityPlayerApply.PROP_REGISTER_TIME, Operator.EQ, this.searchObject.getRegisterTime()),\n Criteria.add(ActivityPlayerApply.PROP_APPLY_TIME, Operator.EQ, this.searchObject.getApplyTime()),\n Criteria.add(ActivityPlayerApply.PROP_PLAYER_RECHARGE_ID, Operator.EQ, this.searchObject.getPlayerRechargeId()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.GE, this.searchObject.getStarttime()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.LE, this.searchObject.getEndtime()),\n Criteria.add(ActivityPlayerApply.PROP_PREFERENTIAL_VALUE, Operator.EQ, this.searchObject.getPreferentialValue()),\n Criteria.add(ActivityPlayerApply.PROP_ARTICLE, Operator.EQ, this.searchObject.getArticle()),\n Criteria.add(ActivityPlayerApply.PROP_IS_REALIZE, Operator.EQ, this.searchObject.getIsRealize()),\n Criteria.add(ActivityPlayerApply.PROP_RELATION_PLAYER_ID, Operator.EQ, this.searchObject.getRelationPlayerId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_CLASSIFY_KEY, Operator.EQ, this.searchObject.getActivityClassifyKey()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_TYPE_CODE, Operator.EQ, this.searchObject.getActivityTypeCode())\n );\n criteria.addAnd(ActivityPlayerApply.PROP_IS_DELETED, Operator.EQ, false);\n return criteria;\n }",
"public releaseAlarmByIds_result(releaseAlarmByIds_result other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n this.success = other.success;\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"public void or(Criteria criteria) {\r\n oredCriteria.add(criteria);\r\n }",
"void setTestAlarm() \n {\n \t// start with now\n java.util.Calendar c = java.util.Calendar.getInstance();\n c.setTimeInMillis(System.currentTimeMillis());\n\n int nowHour = c.get(java.util.Calendar.HOUR_OF_DAY);\n int nowMinute = c.get(java.util.Calendar.MINUTE);\n\n int minutes = (nowMinute + 1) % 60;\n int hour = nowHour + (nowMinute == 0 ? 1 : 0);\n\n saveAlarm(this, mId, true, hour, minutes, mRepeatPref.getDaysOfWeek(),\n true, \"\", mAlarmPref.getAlertString(), true);\n }"
] | [
"0.5696294",
"0.5142282",
"0.5139911",
"0.5097339",
"0.50265616",
"0.4897881",
"0.48973885",
"0.4882501",
"0.48752916",
"0.48631662",
"0.48132402",
"0.4778541",
"0.47392482",
"0.46606117",
"0.46514174",
"0.46514174",
"0.46514174",
"0.46514174",
"0.46358615",
"0.46229142",
"0.4571835",
"0.45431992",
"0.45417163",
"0.45375478",
"0.45316726",
"0.45015445",
"0.44955084",
"0.44767818",
"0.44621065",
"0.445728",
"0.44501054",
"0.44498122",
"0.44484988",
"0.44410464",
"0.44351044",
"0.44348323",
"0.4432789",
"0.4428817",
"0.4413913",
"0.44091696",
"0.4404894",
"0.4403675",
"0.43980676",
"0.43903363",
"0.43748996",
"0.4366964",
"0.43617994",
"0.43387517",
"0.433783",
"0.43366164",
"0.4327345",
"0.43236583",
"0.43222564",
"0.43219844",
"0.43219697",
"0.43099204",
"0.430903",
"0.4298627",
"0.42947656",
"0.4284244",
"0.42829847",
"0.42748362",
"0.4272175",
"0.42616427",
"0.42591345",
"0.42512202",
"0.4246388",
"0.42286858",
"0.42244688",
"0.42239124",
"0.42153978",
"0.42107803",
"0.42094284",
"0.42091614",
"0.4208956",
"0.4207211",
"0.42066392",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.4206138",
"0.41998807"
] | 0.58704567 | 0 |
deletes the specified Criteria for the specified Alarm, and returns a Result object | @Security.Authenticated(Authenticate.class)
public static Result deleteCriteria(Integer alarmId, Integer id){
Query q= new Query();
RequestBody body= request().body();
q.delete()
.from("criteria")
.where(primaryKey, "=", Integer.toString(id))
.andWhere("alarmID", "=", Integer.toString(alarmId));
return HttpHelper.update(q.query);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int deleteByExample(ScheduleCriteria example);",
"int deleteByExample(TbaDeliveryinfoCriteria example);",
"int deleteByPrimaryKey(Long pineAlarmId);",
"int deleteByPrimaryKey(@Param(\"mainId\") Integer mainId, @Param(\"alarmId\") Integer alarmId);",
"int deleteByExample(BasicinfoCriteria example);",
"int deleteByExample(BachAlarmRoleExample example);",
"int deleteByExample(EmailCriteria example);",
"int deleteByExample(MVoucherDTOCriteria example);",
"int deleteByExample(PineAlarmExample example);",
"int deleteByExample(AlertExample example);",
"public boolean delete(Reminder reminder);",
"public void deleteAlert(Alert a){\n final Alert up=a;\n new AsyncTask<Void, Void, Void>() {\n\n @Override\n protected Void doInBackground(Void... params) {\n try {\n mAlertTable.update(up).get();\n } catch (Exception exception) {\n Log.i(\"delete alert error: \",exception.getMessage());\n }\n return null;\n }\n }.execute();\n }",
"public Future<?> doDelete(NacAlarm alarm)\n\t{\n\t\tif (alarm == null)\n\t\t{\n\t\t\treturn null;\n\t\t}\n\n\t\tNacAlarmDao dao = this.getAlarmDao();\n\t\treturn NacAlarmDatabase.getExecutor().submit(() -> dao.delete(alarm));\n\t}",
"public int delete(NacAlarm alarm)\n\t{\n\t\tif (alarm == null)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\n\t\tFuture<?> future = this.doDelete(alarm);\n\n\t\treturn NacRepository.getIntegerFromFuture(future);\n\t}",
"int deleteByExample(ItoProductCriteria example);",
"int deleteByExample(MEsShoppingCartDTOCriteria example);",
"int deleteByExample(MedicalOrdersExecutePlanExample example);",
"public void executeProcesarEliminarBuzonMensaje(Map criteria);",
"public void deleteResults(){\n }",
"private void deleteCancel(Alarm alarm) {\n // if user click delete or cancel alarm the pendingIntent also to be canceled by AlarmManager\n // this PendingIntent is canceled based on alarm's ID was set for it, the pendingIntent is\n // going to be canceled must be same with the one was made based on it'id and intent also\n // where the context is.\n AlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n // get alarm id\n int alarmId = (int) alarm.getId();\n // create intent\n Intent intent = new Intent(AlarmsetActivity.this, AlarmReceiver.class);\n // this retrieve the pendingIntent was set\n PendingIntent alarmIntent = PendingIntent.getBroadcast(AlarmsetActivity.this, alarmId, intent, 0);\n // cancel this pendingIntent\n alarmManager.cancel(alarmIntent);\n }",
"void onDELETEFinish(String result, int requestCode, boolean isSuccess);",
"public clearAlarmByIds_result(clearAlarmByIds_result other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n this.success = other.success;\n }",
"public void deleteAlarm(String content) {\n TodoItem item = mydb.getEntry(content);\r\n\r\n Intent intent = new Intent(toSend);\r\n intent.setClass(this, AlarmReciver.class);\r\n intent.putExtra(\"what\", content);\r\n PendingIntent sender = PendingIntent.getBroadcast(\r\n MyService.this, mydb.searchID(content)*998 + item.getToDoYear()*3 + item.getToDoHour()*6 + item.getToDoMonth()*2 + item.getToDoDay()*86, intent, 0);\r\n\r\n Log.i(\"---delete alarm\",content);\r\n // And cancel the alarm.\r\n AlarmManager am = (AlarmManager) getSystemService(ALARM_SERVICE);\r\n am.cancel(sender);\r\n }",
"int deleteByExample(FactRoomLogExample example);",
"int deleteByExample(ExamineApproveResultExample example);",
"@DeleteMapping(\"/alarm-definitions/{id}\")\n public ResponseEntity<Void> deleteAlarmDefinition(@PathVariable Long id) {\n log.debug(\"REST request to delete AlarmDefinition : {}\", id);\n alarmDefinitionService.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }",
"public void cancelAlarm(Context context, Alarm alarm) {\n // instantiate the system alarm service manager\n alarmMgr = (AlarmManager) context.getSystemService(Context.ALARM_SERVICE);\n // instantiate an intent for the AlarmReciever\n Intent intent = new Intent(context, AlarmReceiver.class);\n intent.putExtra(\"alarmId\", alarm.getId());\n // check if the alarm is recurring, if it is each days alarm is canceled by multiplying\n // the id by 10 and adding the integer representation of each day\n if (alarm.isRecurring()) {\n for (Integer day : alarm.getDays()) {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10 + day, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n // if it isn't recurring, just cancel the one alarm\n } else {\n //multiply by 10 to uniquely identify the intent for each day or ends with 0 if not recurring\n alarmIntent = PendingIntent.getBroadcast(context, new BigDecimal(alarm.getId()).intValueExact() * 10, intent, 0);\n // cancel the scheduled alarm for the intent\n alarmMgr.cancel(alarmIntent);\n }\n }",
"int deleteByExample(RepaymentPlanInfoUnExample example);",
"int deleteByExample(InspectionAgencyExample example);",
"public void clear() {\n oredCriteria.clear();\n }",
"int deleteByExample(StudentCriteria example);",
"int deleteByExample(SmsEmployeeTeamExample example);",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void deleteEliminarGestionStock(Map criteria);",
"public clearAlarm_result(clearAlarm_result other) {\n __isset_bit_vector.clear();\n __isset_bit_vector.or(other.__isset_bit_vector);\n this.success = other.success;\n }",
"int deleteByExample(CmsChannelCriteria example);",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void clear() {\r\n oredCriteria.clear();\r\n }",
"public void deleteCriteria(int idCriteria) throws SQLException {\n PreparedStatement prepared = connection.prepareStatement(\"DELETE FROM criteriaSearchDB WHERE id = ?;\");\n prepared.setInt(1,idCriteria);\n prepared.execute();\n }",
"public void deleteOldAlarms(){\r\n\t\tfor(int i = 0; i < alarmList.size(); i++){\r\n\t\t\tAlarmTime current = alarmList.get(i);\r\n\t\t\tif(current.getYear() == cal.get(Calendar.YEAR) && current.getMonth() == cal.get(Calendar.MONTH)\r\n\t\t\t\t\t&& current.getDay() == cal.get(Calendar.DAY_OF_MONTH) && current.getHour() < cal.get(Calendar.HOUR_OF_DAY)){\r\n\t\t\t\t//delete alarm from XML\r\n\t\t\t\txmanager.delete(current.toString());\r\n\t\t\t}\r\n\t\t\telse if(current.getYear() == cal.get(Calendar.YEAR) && current.getMonth() == cal.get(Calendar.MONTH)\r\n\t\t\t\t\t&& current.getDay() < cal.get(Calendar.DAY_OF_MONTH)){\r\n\t\t\t\t//delete alarm from XML\r\n\t\t\t\txmanager.delete(current.toString());\r\n\t\t\t}\r\n\t\t\telse if(current.getYear() == cal.get(Calendar.YEAR) && current.getMonth() < cal.get(Calendar.MONTH)){\r\n\t\t\t\t//delete alarm from XML\r\n\t\t\t\txmanager.delete(current.toString());\r\n\t\t\t}\r\n\t\t\telse if(current.getYear() < cal.get(Calendar.YEAR)){\r\n\t\t\t\t//delete alarm from XML\r\n\t\t\t\txmanager.delete(current.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"int deleteByExample(AdminUserCriteria example);",
"int deleteByExample(AdminUserCriteria example);",
"public int delCustomStrategy(final AlarmStrategy strategy,\n final MYCallBack cb) {\n\n // WapiUtilEx.delCustomAlarmStrategy(\"xx\", cb)\n WapiUtilEx.delCustomAlarmStrategy(strategy.getStrategy_id(),\n new MYCallBack() {\n @Override\n public void onError(int code, String message) {\n if (null != cb)\n cb.onError(code, message);\n }\n\n @Override\n public void onSuccess(String jsonString) {\n try {\n JSONObject obj = new JSONObject(jsonString);\n if (obj.getString(\"result\").equals(\"OK\")) {\n DBAlarmStrategyCustom dbstrategy = strategyCustom2DBStruct(strategy);\n StrategyDBHelper.getInstance()\n .delAlarmStrategyCustom(dbstrategy);\n\n\t\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t\t * for (int i = 0; i <\n\t\t\t\t\t\t\t\t * mStrategyCustomList.size(); i++) {\n\t\t\t\t\t\t\t\t * AlarmStrategy s = mStrategyCustomList.get(i);\n\t\t\t\t\t\t\t\t * if (s.getStrategy_id().equals(strategy.\n\t\t\t\t\t\t\t\t * getStrategy_id()))\n\t\t\t\t\t\t\t\t * mStrategyCustomList.remove(i); }\n\t\t\t\t\t\t\t\t */\n\n if (null != cb)\n cb.onSuccess(strategy.getStrategy_id());\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n });\n return 0;\n }",
"int deleteByExample(MWeixinCodeDTOCriteria example);",
"Future<Boolean> unlink(JsonObject criteria);",
"int deleteByExample(AutoAssessDetailExample example);",
"public static void cancelAlarmElapsed() {\n if (alarmManagerElapsed!= null) {\n alarmManagerElapsed.cancel(alarmIntentElapsed);\n }\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"public void clear() {\n oredCriteria.clear();\n }",
"int deleteByExample(AlertQueueExample example);",
"public void deleteGestionStock(Map criteria);",
"public String deleteAlarm(String alarmName) {\n\t\tDeleteAlarmsRequest request = new DeleteAlarmsRequest()\n\t\t\t\t.withAlarmNames(alarmName);\n\t\tDeleteAlarmsResult response = cloudWatchClient.deleteAlarms(request);\n\t\tString res = \"DeleteAlarm: \" + alarmName + \" \" + response;\n\t\tlog.info(res);\n\n\t\treturn res;\n\t}",
"public void receiveResultdelete(\n com.exacttarget.wsdl.partnerapi.DeleteResponseDocument result\n ) {\n }",
"private void deleteDataResult(final DataResult dataResult) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);\n alertDialogBuilder.setTitle(\"Are You Sure ?\");\n alertDialogBuilder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(final DialogInterface dialogInterface, int i) {\n\n if (dataResult.isIs_clouded()) {\n// DatabaseReference databaseReference = firebaseUserHelper.getDatabaseReference().child(\"user\").child(firebaseUserHelper.getFirebaseUser().getUid()).child(\"data_result\").child(String.valueOf(dataResult.getId()));\n// databaseReference.removeValue();\n// firebaseUserHelper.getStorageReference().child(String.valueOf(dataResult.getId())).delete();\n DeleteDataResult deleteDataResult = new DeleteDataResult();\n deleteDataResult.setUid(MoflusSharedPreferenceHelper.getUser(context).getUid());\n deleteDataResult.setData_result_id(dataResult.getId());\n MoFluSService.getService().deleteDataResult(\n deleteDataResult\n ).enqueue(new Callback<Status>() {\n @Override\n public void onResponse(Call<Status> call, Response<Status> response) {\n if (response.body()!= null &&response.body().isSuccess()) {\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n } else {\n Toast.makeText(context, \"Delete Failed\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<Status> call, Throwable t) {\n Toast.makeText(context, \"No Internet Access\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n });\n }else{\n try {\n CSVHelper.deleteFile(dataResult);\n } catch (IOException e) {\n e.printStackTrace();\n }\n moflusSQLiteHelper.deleteDataResult(dataResult);\n notifyItemRemoved(listDataResult.indexOf(dataResult));\n listDataResult.remove(dataResult);\n Toast.makeText(context, dataResult.getName() + \" Deleted\", Toast.LENGTH_SHORT).show();\n dialogInterface.dismiss();\n }\n }\n });\n alertDialogBuilder.show();\n }",
"public void deleteItem() {\n\t\tIntent intent = new Intent(this, AlarmActivity.class);\n\t\tint alarmId = itemsAdapter.getSelectedItem().getId();\n\t\tLog.d(TAG, \"Cancelling Alarm with ID \" + alarmId); \n\t\tPendingIntent sender = PendingIntent.getBroadcast(this, alarmId, intent, 0);\n\t\tAlarmManager alarmManager = (AlarmManager) getSystemService(ALARM_SERVICE);\n\t\talarmManager.cancel(sender);\n\t\t\n\t\titemsAdapter.remove(itemsAdapter.getSelectedPosition());\n\t\titemsAdapter.unsetSelectedPosition();\n\t\tgetActionBar().hide();\n\t}",
"int deleteByPrimaryKey(Integer actId);",
"public clearAlarm_args(clearAlarm_args other) {\n if (other.isSetAlarmQueryForm()) {\n this.alarmQueryForm = new TAlarmQueryForm(other.alarmQueryForm);\n }\n }",
"int deleteByExample(EventDetail eventDetail);",
"int deleteByExample(SpecValuePOExample example);",
"@Override\n public void onYesClicked() {\n // Find the appointment in Firestore and delete.\n final AppointmentModel deleteAppt = appointmentList.get(deletePos);\n final String deleteApptDate = deleteAppt.getDate();\n final String deleteApptTime = deleteAppt.getTime();\n final String deleteApptAddress = deleteAppt.getAddress();\n\n // Delete the patient's appointment\n apptListRef.addSnapshotListener(this, new EventListener<QuerySnapshot>() {\n @Override\n public void onEvent(QuerySnapshot queryApptSnapshots, FirebaseFirestoreException e) {\n if (e != null) {\n return;\n }\n\n for (QueryDocumentSnapshot deleteApptSnapshot : queryApptSnapshots) {\n AppointmentModel apptDelete = deleteApptSnapshot.toObject(AppointmentModel.class);\n String daDateCheck = apptDelete.getDate(); String daTimeCheck = apptDelete.getTime();\n DocumentReference deleteA = deleteApptSnapshot.getReference();\n if (deleteApptDate.equals(daDateCheck) && deleteApptTime.equals(daTimeCheck)) {\n deleteA.delete();\n Toast.makeText(AdminCalendar.this, \"Appointment Successfully Canceled!\", Toast.LENGTH_SHORT).show();\n\n // Send a cancellation email\n String tempAMorPM = deleteApptTime.substring(0, 2);\n String tempTime = deleteApptTime.substring(3);\n String emailSubject = \"Cancellation of appointment set for \" + deleteApptDate + \" at \" + deleteApptAddress;\n String emailMessage = \"Hello \" + name + \",\\n\\n\" +\n \"Your appointment scheduled for \" + deleteApptDate + \" at \" + tempTime + ' ' + tempAMorPM + \" at \"\n + deleteApptAddress + \" has been cancelled...\" + \"\\n\\nThank you,\\n\" + \"TT&T Scheduling\";\n JavaMailAPI sendEmail = new JavaMailAPI(AdminCalendar.this, deleteAppt.getEmail(), emailSubject, emailMessage);\n sendEmail.execute();\n\n break;\n }\n }\n }\n });\n\n appointmentList.remove(deletePos);\n adapter.notifyItemRemoved(deletePos);\n }",
"int deleteByExample(PayLogInfoPoExample example);",
"@DELETE\n @Path(\"/{requirementId}\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method deletes a specific requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the deleted requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response deleteRequirement(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n RequirementEx requirementToDelete = dalFacade.getRequirementById(requirementId, internalUserId);\n Project project = dalFacade.getProjectById(requirementToDelete.getProjectId());\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, Arrays.asList(String.valueOf(project.getId()), String.valueOf(requirementId)), dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.requirement.delete\"));\n }\n Gson gson = new Gson();\n RequirementEx deletedRequirement = dalFacade.deleteRequirementById(requirementId, internalUserId);\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, deletedRequirement.getLastupdated_time(), Activity.ActivityAction.DELETE, deletedRequirement.getId(),\n Activity.DataType.REQUIREMENT, deletedRequirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(deletedRequirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"int deleteByPrimaryKey(Short act_id);",
"public void removeAlertByRuleID(String serviceProviderCode, Long ruleID) throws AAException, RemoteException;",
"int deleteByExample(CommonQuestionStrategyTypeExample example);",
"int deleteByExample(TestActivityEntityExample example);",
"@Override\n public boolean delete(final Result newResult) throws DaoException {\n return executeUpdate(DELETE_RESULT, newResult.getSportsmanId(),\n newResult.getCompetitionId());\n }",
"default void remove(Criteria criteria) {\n legacyOperation();\n }",
"int deleteByExample(FinMonthlySnapModelExample example);",
"int deleteByExample(UserGiftCriteria example);",
"int deleteByExample(StatusRepliesExample example);",
"private void deleteAlarm(Alarm affectedAlarm, int rowIndex) {\n\t\tAlarmController.INSTANCE.deleteAlarm(this, affectedAlarm.getId());\n \t\tadapter.remove(affectedAlarm);\n\n \t\tToast.makeText(this, \"Removed \" + affectedAlarm.toPrettyString(), Toast.LENGTH_LONG).show();\n \t}",
"int deleteByExample(SrHotelRoomInfoExample example);",
"public Boolean deleteActivity(String client, String cisId, AActivity activity);",
"int deleteByPrimaryKey(String calendardate);",
"int deleteByPrimaryKey(Integer authenticationId);",
"int deleteByExample(AbumExample example);",
"public void cancelAlarm() {\n AlarmManager manager = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n try {\n manager.cancel(pendingIntent);\n } catch (Exception e){\n Log.d(TAG, e.getMessage());\n }\n// Toast.makeText(this, \"Alarm Canceled\", Toast.LENGTH_SHORT).show();\n }",
"Result deleteApp(String app);",
"int deleteByPrimaryKey(String activityId);",
"@DELETE\n @Path(\"/{requirementId}/leaddevelopers\")\n @Produces(MediaType.APPLICATION_JSON)\n @ApiOperation(value = \"This method removes the current user as lead developer for a given requirement.\")\n @ApiResponses(value = {\n @ApiResponse(code = HttpURLConnection.HTTP_OK, message = \"Returns the requirement\", response = RequirementEx.class),\n @ApiResponse(code = HttpURLConnection.HTTP_UNAUTHORIZED, message = \"Unauthorized\"),\n @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = \"Not found\"),\n @ApiResponse(code = HttpURLConnection.HTTP_INTERNAL_ERROR, message = \"Internal server problems\")\n })\n public Response removeUserAsLeadDeveloper(@PathParam(\"requirementId\") int requirementId) {\n DALFacade dalFacade = null;\n try {\n UserAgent agent = (UserAgent) Context.getCurrent().getMainAgent();\n long userId = agent.getId();\n String registratorErrors = service.bazaarService.notifyRegistrators(EnumSet.of(BazaarFunction.VALIDATION, BazaarFunction.USER_FIRST_LOGIN_HANDLING));\n if (registratorErrors != null) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, registratorErrors);\n }\n dalFacade = service.bazaarService.getDBConnection();\n Integer internalUserId = dalFacade.getUserIdByLAS2PeerId(userId);\n boolean authorized = new AuthorizationManager().isAuthorized(internalUserId, PrivilegeEnum.Modify_REQUIREMENT, dalFacade);\n if (!authorized) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, Localization.getInstance().getResourceBundle().getString(\"error.authorization.vote.delete\"));\n }\n RequirementEx requirement = dalFacade.getRequirementById(requirementId, internalUserId);\n if (requirement.getLeadDeveloper().getId() != internalUserId) {\n ExceptionHandler.getInstance().throwException(ExceptionLocation.BAZAARSERVICE, ErrorCode.AUTHORIZATION, \"You are not lead developer.\");\n }\n requirement = dalFacade.deleteUserAsLeadDeveloper(requirementId, internalUserId);\n Gson gson = new Gson();\n service.bazaarService.getNotificationDispatcher().dispatchNotification(service, new Date(), Activity.ActivityAction.UNLEADDEVELOP, requirement.getId(),\n Activity.DataType.REQUIREMENT, requirement.getComponents().get(0).getId(), Activity.DataType.COMPONENT, internalUserId);\n return Response.ok(gson.toJson(requirement)).build();\n } catch (BazaarException bex) {\n if (bex.getErrorCode() == ErrorCode.AUTHORIZATION) {\n return Response.status(Response.Status.UNAUTHORIZED).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else if (bex.getErrorCode() == ErrorCode.NOT_FOUND) {\n return Response.status(Response.Status.NOT_FOUND).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } else {\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n }\n } catch (Exception ex) {\n BazaarException bex = ExceptionHandler.getInstance().convert(ex, ExceptionLocation.BAZAARSERVICE, ErrorCode.UNKNOWN, \"\");\n return Response.status(Response.Status.INTERNAL_SERVER_ERROR).entity(ExceptionHandler.getInstance().toJSON(bex)).build();\n } finally {\n service.bazaarService.closeDBConnection(dalFacade);\n }\n }",
"int deleteByPrimaryKey(Long accountid);",
"int deleteByExample(CraftAdvReqExample example);",
"int deleteByPrimaryKey(Integer actPrizeId);",
"int deleteByExample(PcQualificationInfoExample example);",
"public void deleteReminder(Reminder reminder)\r\n\t{\r\n\t\tdataService.deleteReminder(reminder);\r\n\t}",
"int deleteByPrimaryKey(String refundorderid);",
"int deleteByExample(TSubjectInfoExample example);",
"public String deleteEmployee(EmployeeDetails employeeDetails);",
"public void deleteResult(int scanId, String technology, String address){\n if(technology.equals(\"Bluetooth\"))\n db.delete(DATABASE_TABLE_BTRESULTS,\"_id=\"+scanId+\" AND DeviceAddress='\"+address+\"'\" ,null);\n if(technology.equals(\"Wifi\"))\n db.delete(DATABASE_TABLE_WIFIRESULTS,\"_id=\"+scanId+\" AND BSSID='\"+address+\"'\" ,null);\n }",
"int deleteByPrimaryKey(String licFlow);",
"public void deleteResult(String hw) {\n IDatabase database = new MySqlDatabase();\n Connection connection = database.getConnection();\n db.deleteResult(hw);\n }"
] | [
"0.61625534",
"0.60213673",
"0.6000858",
"0.59058213",
"0.5787608",
"0.57773143",
"0.5769287",
"0.57270145",
"0.56634444",
"0.5610502",
"0.5499249",
"0.54830855",
"0.5466178",
"0.5379644",
"0.53675056",
"0.53259057",
"0.5324948",
"0.5317173",
"0.53049797",
"0.5301703",
"0.5277057",
"0.52638185",
"0.5263691",
"0.5250878",
"0.52426726",
"0.5242368",
"0.52423465",
"0.522888",
"0.5224106",
"0.5214939",
"0.52107805",
"0.5197598",
"0.51960033",
"0.51877475",
"0.51875377",
"0.51843774",
"0.515785",
"0.515785",
"0.515785",
"0.515785",
"0.515785",
"0.515785",
"0.5156465",
"0.5138481",
"0.51376176",
"0.51376176",
"0.5135999",
"0.51351994",
"0.5121222",
"0.51192546",
"0.5119002",
"0.5112034",
"0.5112034",
"0.5112034",
"0.5112034",
"0.5112034",
"0.5112034",
"0.511054",
"0.5097244",
"0.50968784",
"0.5096356",
"0.5067617",
"0.50576156",
"0.50519055",
"0.5051094",
"0.50474054",
"0.50370955",
"0.5030867",
"0.50248784",
"0.5021278",
"0.50172764",
"0.50109226",
"0.5009936",
"0.50092816",
"0.50001544",
"0.49958152",
"0.49871477",
"0.498439",
"0.49607",
"0.4954794",
"0.49502853",
"0.49497807",
"0.4949291",
"0.49482015",
"0.4935802",
"0.4934642",
"0.49344295",
"0.4931646",
"0.49311462",
"0.49280885",
"0.49214548",
"0.49068266",
"0.49040002",
"0.49015236",
"0.48937902",
"0.4892948",
"0.48925862",
"0.48874322",
"0.4883066",
"0.48757195"
] | 0.69887626 | 0 |
checks for the existence of the instrument and it's field, returns true if present | public static boolean instrumentCheck(Integer alarmId, ObjectNode obj){
Query q= new Query();
// instrument name must exist
String instrumentName =obj.get("instrumentName").toString();
instrumentName = instrumentName.substring(1,instrumentName.length()-1);
q.select(count).from("instruments")
.where("name", "=", instrumentName);
if(!HttpHelper.usgsPresent(q.query))
return false;
q.query = "";
// field name must exist
String fieldName = obj.get("fieldName").toString();
fieldName = fieldName.substring(1,fieldName.length()-1);
q.select(new ArrayList(Arrays.asList("column_name")))
.from("information_schema.columns")
.where("table_name", "LIKE", instrumentName + "$%")
.andWhereOr("column_type", "LIKE", "int%", "column_type", "=", "double")
.groupBy("column_name");
String innerSelect = q.query;
q.query="";
q.select(count)
.from("("+innerSelect+") X")
.where("column_name", "=", fieldName);
if(!HttpHelper.usgsPresent(q.query))
return false;
q.query = "";
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasField3();",
"boolean hasField1();",
"boolean hasField4();",
"boolean hasField0();",
"boolean hasField2();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case COMB_INSTRUMENT_ID:\n return isSetCombInstrumentID();\n case LEG_ID:\n return isSetLegID();\n case LEG_INSTRUMENT_ID:\n return isSetLegInstrumentID();\n }\n throw new IllegalStateException();\n }",
"boolean isComponentTempRecordExist(Record inputRecord);",
"public boolean isAccumulatorFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField.replace(\"vehicle_name\", \"accumulator\"), SHORTWAIT);\r\n\t}",
"public boolean hasField(String fname) {\n boolean result = false;\n\n try {\n cut.getField(fname);\n result = true;\n } catch (Exception e) {\n }\n\n return result;\n }",
"@Override\n\tprotected boolean isExist(AbnormalDevice record) {\n\t\treturn false;\n\t}",
"boolean hasFieldId();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDENTIFIER:\n return isSetIdentifier();\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case DATAS:\n return isSetDatas();\n }\n throw new IllegalStateException();\n }",
"boolean hasSecondField();",
"boolean containsField(\n java.lang.String key);",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case PATIENT_ID:\n return isSetPatient_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EXTRA_DATA_MAP:\n return isSetExtraDataMap();\n }\n throw new IllegalStateException();\n }",
"private static boolean hasData(Map<String, Object> record, String prefix, String fieldName) {\n boolean hasData = false;\n if (!StringUtils.isEmpty(prefix)) {\n fieldName = prefix + Constants.DOT + fieldName;\n }\n for (String key : record.keySet()) {\n if (null != record.get(key) &&\n (key.equals(fieldName) || key.startsWith(fieldName.concat(Constants.DOT)))) {\n hasData = true;\n break;\n }\n }\n\n return hasData;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case RECORD:\n return isSetRecord();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case EX:\n return isSetEx();\n }\n throw new IllegalStateException();\n }",
"boolean containsConfigurationField(String fieldName);",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case CIPHERTEXT:\n return isSetCiphertext();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case INSTITUTION_ID:\n return isSetInstitutionID();\n case PRODUCTIDS:\n return isSetProductids();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case EXAM_ID:\n return isSetExam_id();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case IDS:\n return isSetIds();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT:\n return isSetAccount();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case BLOCK_MASTER_INFO:\n return isSetBlockMasterInfo();\n }\n throw new IllegalStateException();\n }",
"public boolean isSetRecord() {\n return this.record != null;\n }",
"public boolean isSetRecord() {\n return this.record != null;\n }",
"boolean hasManufacturer();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCOUNT_IDS:\n return isSetAccountIds();\n case ACCOUNT_NAME:\n return isSetAccountName();\n case ACCOUNT_NAME_PARTICAL:\n return isSetAccountNamePartical();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new java.lang.IllegalArgumentException();\n }\n\n switch (field) {\n case KEY:\n return isSetKey();\n }\n throw new java.lang.IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ATTRS:\n return isSetAttrs();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ROWKEY:\n return isSetRowkey();\n case START_TIME:\n return isSetStartTime();\n case END_TIME:\n return isSetEndTime();\n case DEVICE_NAME:\n return isSetDeviceName();\n case MATERIAL_NAME:\n return isSetMaterialName();\n case GROUP:\n return isSetGroup();\n case SHFIT:\n return isSetShfit();\n case ITEMS:\n return isSetItems();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n }\r\n throw new IllegalStateException();\r\n }",
"boolean hasFirstField();",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\r\n if (field == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n switch (field) {\r\n case ID:\r\n return isSetId();\r\n case NAME:\r\n return isSetName();\r\n case ARTISTS:\r\n return isSetArtists();\r\n case RELEASE_DATE:\r\n return isSetRelease_date();\r\n case GENRES:\r\n return isSetGenres();\r\n case TRACK_NAMES:\r\n return isSetTrack_names();\r\n case TEXT:\r\n return isSetText();\r\n }\r\n throw new IllegalStateException();\r\n }",
"public boolean isSetCombInstrumentID() {\n return this.combInstrumentID != null;\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ACCESS_KEY:\n return isSetAccessKey();\n case DATA_MAP:\n return isSetDataMap();\n }\n throw new IllegalStateException();\n }",
"public boolean isSet(_Fields field) {\n if (field == null) {\n throw new IllegalArgumentException();\n }\n\n switch (field) {\n case ID:\n return isSetId();\n }\n throw new IllegalStateException();\n }"
] | [
"0.6447134",
"0.630724",
"0.6306607",
"0.6247436",
"0.61951363",
"0.6115473",
"0.60597456",
"0.6054545",
"0.6026493",
"0.593627",
"0.5901971",
"0.57990104",
"0.5759569",
"0.57564247",
"0.5756119",
"0.5751079",
"0.5749114",
"0.5722194",
"0.56756693",
"0.56756693",
"0.5669367",
"0.56641966",
"0.56260496",
"0.56069225",
"0.5606047",
"0.5596669",
"0.5596669",
"0.55837005",
"0.55837005",
"0.55837005",
"0.55837005",
"0.5570629",
"0.5553104",
"0.5537028",
"0.5537028",
"0.5522754",
"0.55099624",
"0.5497614",
"0.5497614",
"0.54962385",
"0.54817075",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.54801595",
"0.5458855",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.5456305",
"0.54557264",
"0.54526603",
"0.5444393",
"0.5441738",
"0.5441738",
"0.5441738",
"0.5441738",
"0.5441738",
"0.5441738",
"0.5441738",
"0.5441738",
"0.54396325"
] | 0.60556006 | 7 |
Constructeur de la class Seance_Salle | public Seance_Salle(int id_seance,int id_salle)
{
this.id_salle=id_salle;
this.id_seance=id_seance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Salle() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public ListSemental() {\n }",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public StructuraSemestru2() {\n startSemester= Constants.SEMESTER_START2;\n beginHoliday=Constants.HOLIDAY_START2;\n endHoliday=Constants.HOLIDAY_END2;\n endSemester=Constants.SEMESTER_END2;\n\n }",
"public AntrianPasien() {\r\n\r\n }",
"public CarteCaisseCommunaute() {\n super();\n }",
"StudenteImpl(String nome, String cognome, Cdl corso, int annoCorso, String matricola) {\n super(nome, cognome);\n initialize(corso, annoCorso, matricola);\n }",
"public MorteSubita() {\n }",
"public AsignaturaSemestre (Asignatura Asig, Profesor Profe, List<HorarioAsig> hrrio) {\n asignaturaAsig = Asig ;\n ProfesorAsig = Profe;\n Horario = hrrio;\n }",
"public Sistema(){\r\n\t\t\r\n\t}",
"public Caso_de_uso () {\n }",
"public SlanjePoruke() {\n }",
"public Silos(int id_usuario, int id_silo, String nome_silo, String produto_silo, Double tamanho_silo){\n //A variavel da classe Construtora vai receber a variavel que está vindo por parametro (This faz referencia a classe)\n this.id_usuario = id_usuario;\n this.id_silo = id_silo;\n this.nome_silo = nome_silo;\n this.produto_silo = produto_silo;\n this.tamanho_silo = tamanho_silo;\n }",
"public Pasien() {\r\n }",
"public Estudiante() {\r\n\t\tsuper();\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}",
"public EmptySea() {\r\n\t\tsuper(EmptySea.length);\r\n\t\t\r\n\t}",
"public Sesiones() {\n\t\tentradasVendidas = 0;\n\t}",
"public SIASES() {\n\t\tsuper();\n\n\t\tm_iChunkSize = 10;\n\t\tm_sLastUser = EMPTY_STR;\n\t\tm_sLastGroup = EMPTY_STR;\n\t\tm_bIsDriverLoaded = false;\n\t\tit = null;\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"Construtor: <valor m_iChunkSize: \" + m_iChunkSize\n\t\t\t\t\t+ \"> <valor m_sLastUser: \" + m_sLastUser\n\t\t\t\t\t+ \"> <m_sLastGroup: \" + m_sLastGroup);\n\t\t}\n\n\t}",
"public SiacTRecapitoSoggetto() {\n\t}",
"public CensoSeccionE() {\n this.columnName1=\"\";\n this.columnName2=\"\";\n this.Total_institu=0;\n this.Total_severo=0;\n }",
"public SisRol() {\n\t}",
"public VotacaoSegundoDia() {\n\n\t}",
"protected Asignatura()\r\n\t{}",
"public List<Seance> listeSeances(Groupe g, Enseignant e);",
"public FicheConnaissance() {\r\n }",
"public Seat() {\n }",
"public void validerSaisie();",
"Secuencia createSecuencia();",
"public Alojamiento() {\r\n\t}",
"public Simulador(){\n }",
"Vaisseau createVaisseau();",
"public CSSTidier() {\n\t}",
"public Lanceur() {\n\t}",
"public Test(){\n calcula = new Calculadora();\n estaBien = \"ERROR\";\n funciona = \"SI\";\n lista = new ArrayList<String>();\n }",
"public Studente(String nome, String cognome, String matricola, String email, \n\t\t\tDate nascita, int annoIscrizione, CorsoDiStudi corso) {\n\t\tthis.nome = nome;\n\t\tthis.cognome = cognome;\n\t\tthis.matricola = matricola;\n\t\tthis.email = email;\n\t\tthis.nascita = nascita;\n\t\tthis.annoIscrizione = annoIscrizione;\n\t\tthis.corso = corso;\n\t}",
"public Empleado(String n, int ed, float es, float s){\r\n super(n, ed, es);\r\n this.sueldo=s;\r\n System.out.println(\"Constructor Empleado\");\r\n \r\n }",
"public Socio() {\r\n\t\tsuper();\r\n\t\tthis.id = 0;\r\n\t\tthis.nombre = \"\";\r\n\t\tthis.apellido1 = \"\";\r\n\t\tthis.apellido2 = \"\";\r\n\t\tthis.email = \"\";\r\n\t\tthis.dni = \"\";\r\n\t\tthis.administrador = false;\r\n\t}",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }",
"public Student() {\r\n\t\timePrezime = \"Petar Petrovic\";\r\n\t\tfakultet = \"Matematicki\";\r\n\t\tgodina = 1;\r\n\t}",
"public Aso() {\n\t\tName = \"Aso\";\n\t\ttartossag = 3;\n\t}",
"public analisis_sintactico_re(java_cup.runtime.Scanner s, java_cup.runtime.SymbolFactory sf) {super(s,sf);}",
"public QLNhanVien(){\n \n }",
"@Generated\n public Secciones() {\n }",
"public Clade() {}",
"public Cohete() {\n\n\t}",
"public Spiel()\n {\n \tspieler = new Spieler();\n \t//landkarte = new Landkarte(5);\n //landkarte.raeumeAnlegen(spieler);\n\n \tlandkarte = levelGen.generate(spieler, 5, 6, 4, 10);\n\n parser = new Parser();\n }",
"public Corso() {\n\n }",
"Vaisseau_Vaisseau createVaisseau_Vaisseau();",
"Vaisseau_Vaisseau createVaisseau_Vaisseau();",
"Vaisseau_Vaisseau createVaisseau_Vaisseau();",
"Vaisseau_Vaisseau createVaisseau_Vaisseau();",
"public Equipas() {\r\n\t\t\r\n\t}",
"public Saida() {\n initComponents();\n defaults();\n preencherTabela();\n \n }",
"public Estado() {\r\n }",
"public TelaSobre() {\n initComponents();\n }",
"public Coche() {\n super();\n }",
"public Regla2(){ /*ESTE ES EL CONSTRUCTOR POR DEFECTO */\r\n\r\n /* TODAS LAS CLASES TIENE EL CONSTRUCTOR POR DEFECTO, A VECES SE CREAN AUTOMATICAMENTE, PERO\r\n PODEMOS CREARLOS NOSOTROS TAMBIEN SI NO SE HUBIERAN CREADO AUTOMATICAMENTE\r\n */\r\n \r\n }",
"public Estado() {\r\n //Constructor vacio\r\n }",
"public AfiliadoVista() {\r\n }",
"private ControleurAcceuil(){ }",
"public Esportistes (String nom, String cognom1, String cognom2, char sexe, LocalDate dataNaixement, String dni, String club, String codiFederat) {\n\t\tthis.setNom(nom);\n\t\tthis.setCognom1(cognom1);\n\t\tthis.setCognom2(cognom2);\n\t\tthis.setSexe(sexe);\n\t\tthis.setDataNaixement(dataNaixement);\n\t\tthis.setDni(dni);\n\t\tthis.setClub(club);\n\t\tthis.setCodiFederat(codiFederat);\n\t\t\n\t}",
"public Socio(String nombre, int id_socio)\r\n {\r\n this.nombre = nombre;\r\n this.id_socio = id_socio;\r\n motos = new ArrayList<Moto>();\r\n System.out.println(\"Socio creado \" + id_socio + \" \" + nombre + \"\\n\");\r\n }",
"private UsineJoueur() {}",
"public Endbildschirm(Spiel s) {\r\n\t\tdasSpiel = s;\r\n\r\n\t}",
"public Estado() {\n }",
"public Curso() {\n\t\tthis.alumnos = new ArrayList<Alumno>();\n\t\tcupo = 0;\n\t\tcreditos = 0;\n\t}",
"public Salg() {\n\t\tbetalingsform = null;\n\t\tsalgslinjer = new ArrayList<>();\n\t\tthis.setID();\n\t}",
"public Curso() {\r\n }",
"public GestoreAule() {\n this.aule = new HashSet<>();\n }",
"Vaisseau_estAbscisseCouverte createVaisseau_estAbscisseCouverte();",
"public Cgg_jur_anticipo(){}",
"public CalendarioSilvia()\n {\n // initialise instance variables\n dia = new DisplayDosDigitos(31);\n mes = new DisplayDosDigitos(13);\n año = new DisplayDosDigitos(100);\n }",
"public Classe() {\r\n }",
"public StStatutesub() {\n }",
"public AbstractGenerateurAbstractSeule() {\r\n\t\tsuper();\r\n\t}",
"public AgenteEstAleatorio() {\r\n }",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"public Visita() {\n initialize();\n }",
"public ControladorCatalogoEstado() {\r\n }",
"public LecturaPorEvento() \r\n {\r\n }",
"public JSFOla() {\n }",
"public Aritmetica(){ }",
"public Estudiante(String nom) // Constructor 1: Se le asigna un valor al atributo nombre cuando se cree el objeto.\r\n {\r\n this.nombre = nom;\r\n }",
"public Candidatura (){\n \n }",
"public Exercicio(){\n \n }",
"public Asiento() {\n\t\tthis(\"asiento\", null);\n\t}",
"@NonNull\r\n public final Sea getSea() {\r\n return f_mySea;\r\n }",
"public Fruitore()\r\n\t{\r\n\t\tthis.nomeUtente = Costanti.STRINGA_VUOTA;\r\n\t}",
"Schule createSchule();",
"Schueler createSchueler();",
"public SimulasiBean() {\n this.crane = \"L\";\n this.tipePelayaran = \"d\";\n indonesianNumberConverter = new IndonesianNumberConverter();\n }",
"public NhanVien()\n {\n }",
"public CyanSus() {\n\n }",
"public SistemaEstaciones() {\n initComponents();\n }",
"public Secante() {\n initComponents();\n this.setLocationRelativeTo(null);\n //Hacer el metodo\n int intentos;\n double a, b, c, d, raiz1, raiz2;\n Interfaza inter = new Interfaza();\n a=inter.a;\n b=inter.b;\n c=inter.c;\n d=inter.d;\n raiz1=inter.metd3a;\n raiz2=inter.metd3b;\n intentos=inter.intentos;\n //COdigo para hacer la tabla\n DefaultTableModel modelo1 = (DefaultTableModel) tblFormula1.getModel();\n hacertabla(intentos, raiz1, raiz2, a, b, c, d, modelo1, txtInformacion);\n }",
"public CTematicaBienestar() {\r\n\t}",
"public Espacio() {\n dib=new Dibujo(\"Simulacion de satelites\", 800,800);\n dib.dibujaImagen(limiteX-60,limiteY-60,\"tierra.png\");\n dib.pinta();\n }",
"public Supercar() {\r\n\t\t\r\n\t}",
"public Higiene(){\n\t\t\n\t}",
"public QwirkleSpiel()\n {\n beutel=new Beutel(3); //erzeuge Beutel mit 3 Steinfamilien\n spielfeld=new List<Stein>();\n\n rote=new ArrayList<Stein>(); //Unterlisten, die zum leichteren Durchsuchen des Spielfelds angelegt werden\n blaue=new ArrayList<Stein>();\n gruene=new ArrayList<Stein>();\n gelbe=new ArrayList<Stein>();\n violette=new ArrayList<Stein>();\n orangene=new ArrayList<Stein>();\n kreise=new ArrayList<Stein>();\n kleeblaetter=new ArrayList<Stein>();\n quadrate=new ArrayList<Stein>();\n karos=new ArrayList<Stein>();\n kreuze=new ArrayList<Stein>();\n sterne=new ArrayList<Stein>();\n\n erstelleListenMap();\n }"
] | [
"0.8270011",
"0.6949898",
"0.6876602",
"0.6803934",
"0.6714339",
"0.66638947",
"0.666006",
"0.66205543",
"0.6615814",
"0.65909535",
"0.6569345",
"0.65610915",
"0.6540517",
"0.6526037",
"0.64809966",
"0.6467021",
"0.64640075",
"0.64616245",
"0.64397246",
"0.6430057",
"0.64041436",
"0.6391465",
"0.63893175",
"0.6386487",
"0.63283914",
"0.62946683",
"0.62802947",
"0.62603307",
"0.62578106",
"0.62433195",
"0.6233075",
"0.621697",
"0.62166345",
"0.6205193",
"0.61901534",
"0.61803246",
"0.6177355",
"0.61763674",
"0.6170456",
"0.6152586",
"0.61402315",
"0.6127632",
"0.6107234",
"0.6104395",
"0.60995936",
"0.6098912",
"0.6094559",
"0.609363",
"0.609363",
"0.609363",
"0.609363",
"0.60846543",
"0.60774875",
"0.6076214",
"0.6072479",
"0.6071648",
"0.6069837",
"0.6051047",
"0.6050602",
"0.6039691",
"0.6039592",
"0.6033562",
"0.60314536",
"0.60306907",
"0.60235006",
"0.60230297",
"0.60199326",
"0.600933",
"0.60015243",
"0.6000239",
"0.5997043",
"0.5989905",
"0.59879214",
"0.5980989",
"0.5978617",
"0.59779334",
"0.59735745",
"0.5972031",
"0.5965138",
"0.5944491",
"0.5939761",
"0.5934962",
"0.5931188",
"0.59246755",
"0.59244597",
"0.59167546",
"0.5911693",
"0.5903627",
"0.59033",
"0.5902225",
"0.58972234",
"0.5892977",
"0.589149",
"0.588609",
"0.58818406",
"0.5879944",
"0.58793414",
"0.5876856",
"0.58755106",
"0.5874073"
] | 0.8310662 | 0 |
head of the list / This function prints contents of linked list starting from the given node | public void printList() {
Node tnode = head;
while (tnode != null) {
System.out.print(tnode.data + "->");
tnode = tnode.next;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void printList(Node head)\n {\n while(head!=null){\n System.out.print(head.data+\" \");\n head = head.next;\n }\n }",
"public void printList(Node head) \n { \n Node n = head; \n \n while (n != null) \n { \n System.out.print(n.data+\" \"); \n n = n.next; \n } \n }",
"static void printList(Node head) {\n while (head != null) {\n System.out.print(head.data + \" \");\n head = head.next;\n }\n }",
"static\nvoid\nprintList(Node head) \n\n{ \n\nwhile\n(head != \nnull\n) \n\n{ \n\nSystem.out.print(head.data + \n\" \"\n); \n\nhead = head.next; \n\n} \n\n\n}",
"public void printList() \r\n\t { \r\n\t Node tnode = head; \r\n\t while (tnode != null) \r\n\t { \r\n\t System.out.print(tnode.data+\" \"); \r\n\t tnode = tnode.next; \r\n\t } \r\n\t }",
"void print(Node head) {\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tSystem.out.print(curr.data + \"->\");\n\t\t\tcurr = curr.next;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"void printList(){\n Node temp=head;\n while (temp!=null){\n System.out.println(temp.data+\" \");\n temp=temp.next;\n }\n }",
"void printList(Node head)\n {\n Node temp = head;\n while (temp != null)\n {\n System.out.print(temp.data+\" \");\n temp = temp.next;\n } \n System.out.println();\n }",
"public static void printList(Node head)\n {\n Node ptr = head;\n while (ptr != null)\n {\n System.out.print(ptr.data + \" -> \");\n ptr = ptr.next;\n }\n \n System.out.println(\"null\");\n }",
"public void print(){\r\n ListNode temp = head;\r\n while(temp != null){\r\n System.out.println(temp.data.toString());//TODO check this\r\n temp = temp.link;\r\n }\r\n }",
"void printList(){\n Node iter = this.head;\n\n while(iter != null)\n {\n System.out.print(iter.data+\"->\");\n iter = iter.next;\n }\n System.out.print(\"null\\n\");\n }",
"public void print() {\n\r\n Node aux = head;\r\n while (aux != null) {\r\n\r\n System.out.println(\" \" + aux.data);\r\n aux = aux.Next;\r\n\r\n }\r\n System.out.println();\r\n\r\n }",
"public void show() {\n Node<T> node = head;\n while (node.next != null) {\n System.out.println(node.data);\n node = node.next;\n }\n System.out.println(node.data);\n }",
"public void print(){\n\t\t\tNode current = head;\n\t\t\tSystem.out.println(\"--------------------------\");\n\t\t\twhile(current != null) \n\t\t\t{\n\t\t\t\tSystem.out.println(current.data);\n\t\t\t\tcurrent = current.next;\n\t\t\t}\n\t}",
"public void print(){\n NodeD tmp = this.head;\n\n while(tmp!=null){\n System.out.println(tmp.getObject().asString());\n tmp = tmp.getNext();\n }\n }",
"public static void display(Node head) {\n\t\tif ( head == null ) {\n\t\t\tSystem.out.println(\"List is empty\");\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode currentNode = head;\n\t\t\twhile(currentNode != null) {\n\t\t\t\tSystem.out.print(currentNode.data + \" \");\n\t\t\t\tcurrentNode = currentNode.next;\n\t\t\t}\n\t\t}\n\t}",
"public static void display(Node head) {\n\t\tif (head ==null) {\n\t\t\treturn;\n\t\t}\n\t\tNode current = head; // create temporary current node to point to head node\n\t\t\n\t\twhile (current !=null) {\n\t\t\tSystem.out.print(current.val + \" -> \"); //print current node with data\n\t\t\tcurrent = current.next; // move to next node\n\t\t}\n\t\tSystem.out.println(current); //last node is null \n\t}",
"public void printList()\n {\n Node temp;\n temp = head;\n while (temp != null)\n {\n System.out.print(temp.data + \" \");\n temp = temp.next;\n }\n }",
"public static void display(Node head) {\r\n for (Node node = head; node != null; node = node.next) {\r\n System.out.print(node.data + \" \");\r\n }\r\n }",
"public static void print()\r\n\t {\r\n\t\t Node n = head; \r\n\t\t\t\r\n\t\t\twhile(n!=null)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(n.data+\" \");\r\n\t\t\t\r\n\t\t\t\tn=n.next;\r\n\t\t\t\t\r\n\t\t\t}\r\n\t }",
"public static void printList(String msg, Node head)\n {\n System.out.print(msg);\n \n Node ptr = head;\n while (ptr != null) {\n System.out.print(ptr.data + \" -> \");\n ptr = ptr.next;\n }\n System.out.println(\"null\");\n }",
"public void print() {\n\t\tNode temp = head;\n\n\t\tif(temp == null) {\n\t\t\treturn;\n\t\t} \n\n\t\twhile(temp.next != null) {\n\t\t\tSystem.out.print(temp.data + \"->\");\n\t\t\ttemp = temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data);\n\t}",
"public void display(ListNode head) {\n\t\tif(head == null) {\n\t\t\treturn;\n\t\t}\n\t\tListNode current = head;\n\t\twhile (current != null) {\n\t\t\tSystem.out.print(current.data + \" --> \");\n\t\t\tcurrent = current.next;\n\t\t}\n\t\tSystem.out.println(current);\n\t\t\n\t}",
"public void show()\n\t{\n\t\tNode temp= head;\n\t\t\n\t\twhile(temp.next!=null)\n\t\t{\n\t\t\tSystem.out.println(temp.data);\n\t\t\ttemp=temp.next;\n\t\t}\n\t\tSystem.out.println(temp.data); //to print last node\n\t}",
"void printList(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \" \");\n\t\t\tnode = node.next;\n\t\t}\n\t}",
"public void print(){\r\n\t\t\tNode temp = this.head;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.print(\"| prev=\"+temp.prev+\", val=\"+temp.val+\", next=\"+temp.next+\" |\");\r\n\t\t\t\ttemp = temp.next;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}",
"public void printLinkedList(){\n System.out.println(\"--------Head node: \" + this.data);\n\n if (this.next == null){\n return;\n }\n\n int count = 1;\n Node<T> currentNode = this.next;\n while (currentNode.next != null){\n System.out.println(\"Node \" + count++ + \" with value: \" + currentNode.data);\n currentNode = currentNode.next;\n }\n System.out.println(\"---------Tail node: \" + currentNode.data);\n }",
"static void display(ListNode head) {\n\n if (head == null) {\n return;\n }\n ListNode current = head;\n\n while (current != null) {\n\n System.out.print(current.data + \" ==> \"); //print current element's data\n current = current.next;\n }\n System.out.println(current); //then current is null\n\n }",
"private static void printlist(Node node) {\n\t\twhile (node != null) {\n\t\t\tSystem.out.print(node.data + \"->\");\n\t\t\tnode = node.next;\n\t\t}\n\t}",
"public void printList()\n {\n String str = \"head > \";\n \n if(head == null)\n {\n str += \"null\";\n }\n else if(head.next == head)\n {\n str += head.data + \" (singly-linked, circular)\";\n }\n else\n {\n Node current = head;\n \n //While loop to create the string of all nodes besides the last one\n while(current.next != head)\n {\n str += current.data + \" > \";\n \n current = current.next;\n }\n \n str += current.data + \" (singly-linked, circular)\";\n }\n \n System.out.println(str);\n }",
"public static void printDigitListContents(ListNode head){\n while(head != null){\n System.out.print(head.val + \" -> \");\n head = head.next;\n }\n System.out.println();\n }",
"public void show() {\n\n\t\tNode n = head;\n\t\twhile (n.next != null) {\n\t\t\t//logger.info(n.data);\n\t\t\tn = n.next;\n\t\t}\n\t\t//logger.info(n.data);\n\n\t}",
"public void printList() {\r\n //traversing the linked list and will print each node.\r\n // assigning head to temp\r\n System.out.println(\"Printing list\");\r\n Node temp = head;\r\n while (temp != null) {\r\n System.out.print(temp.getData());\r\n // updating temp\r\n temp = temp.getNext();\r\n if (temp != null) {\r\n System.out.print(\"---->\");\r\n }\r\n\r\n\r\n }\r\n System.out.println();\r\n }",
"public void print(){\n\t\tif(isEmpty()){\n\t\t\tSystem.out.printf(\"Empty %s\\n\", name);\n\t\t\treturn;\n\t\t}//end if\n\n\t\tSystem.out.printf(\"The %s is: \", name);\n\t\tListNode current = firstNode;\n\n\t\t//while not at end of list, output current node's data\n\t\twhile(current != null){\n\t\t\tSystem.out.printf(\"%s \", current.data);\n\t\t\tcurrent = current.nextNode;\n\t\t}//end while\n\n\t\tSystem.out.println(\"\\n\");\n\t}",
"public void print() {\r\n\t\tif (this.isEmpty()) {\r\n\t\t\tSystem.out.println(\"The linked list is empty!\");\r\n\t\t}else if (this.size() == 1) {\r\n\t\t\tSystem.out.println(head.getValue());\r\n\t\t}else {\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointer != null) {\r\n\t\t\t\tif (pointer != tail) System.out.print(pointer.getValue()+\"-->\");\r\n\t\t\t\telse System.out.println(pointer.getValue());\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void printList(Node head) {\r\n Node current = head;\r\n\r\n while (current != null) {\r\n System.out.print(Integer.toString(current.value) + \" \");\r\n current = current.right;\r\n if (current == head)\r\n break;\r\n }\r\n\r\n System.out.println();\r\n }",
"private static void printNodeList(ListNode head) {\n StringBuilder sb = new StringBuilder();\n\n while (head != null) {\n sb.append(head.val);\n sb.append(\"->\");\n head = head.next;\n }\n sb.append(\"null\");\n\n System.out.println(sb.toString());\n }",
"public void print() {\r\n\t\tfor (ListNode temp = head; temp != null; temp = temp.link) {\r\n\t\t\tSystem.out.println(temp.data);\r\n\t\t}\r\n\t}",
"public void print_list() {\n \t \n \t//define current node as\n \t node<Type> current_node = new node<>();\n \t \n \t //now keep for loop and print the answer\n \t current_node = head;\n \t \n \t //print first element\n \t System.out.println(current_node.show_element());\n \t \n \t //now run for loop\n \t for (int i = 1 ; i <= len - 1 ; i ++) {\n \t\t \n \t\t //change current node\n \t\t current_node = current_node.show_next();\n \t\t \n \t\t //just print the answer\n \t\t System.out.println(current_node.show_element());\n \t }\n }",
"public void printList()\n {\n ListNode currNode = this.head;\n while(true)\n {\n System.out.println(currNode.getValue());\n currNode = currNode.getNextNode();\n if(currNode == null)\n {\n break;\n }\n }\n }",
"public void printList(){\n MovieNode temp = head;\t\t//Iterator\n System.out.print(\"Data: \");\n while(temp.next != null){\t\t//While theres data\n System.out.print(temp.next.data + \"->\");\t//Print the data\n temp = temp.next;\t\t\t\t\t\t\t//Point to the next MovieNode\n }\n System.out.println();\t\t\t\t\t\t//Go to the next line\n }",
"public void display() {\r\n\t\tNode curr = new Node();\r\n\t\tcurr = head;\r\n\t\tString Output = \"Here is the linked list from the head node till the end\";\r\n\t\twhile (curr != null) {\r\n\t\t\tOutput += \"\\n\" + curr.num + \", \" + curr.str;\r\n\t\t\tcurr = curr.next;\r\n\t\t}\r\n\t\tSystem.out.print(Output);\r\n\t}",
"void display(){\r\n\t\t if(start==null){\r\n\t\t\t System.out.println(\"linklist is empty\");\r\n\t\t\t }\r\n\t\telse{\r\n\t\t\tnode temp=start;\r\n\t\t\twhile(temp!=null){\r\n\t\t\t\tSystem.out.println(temp.data);\r\n\t\t\t\ttemp=temp.next;\r\n\t\t\t\t}//end of while\r\n\t\t\t}//end of else statement\r\n\r\n\t\t }",
"void display(Nodetype list)\n{\n\tNodetype temp;\n\tif(list==null)\n\t\tSystem.out.println(\"\\nEmpty linked list\");\n\telse\n\t{\n\t\ttemp=list;\n\t\twhile(temp!=null)\n\t\t{\n\t\t\tSystem.out.print(\"->\"+temp.info);\n\t\t\ttemp=temp.next;\n\t\t}\n\t}\n\tSystem.out.println();\n}",
"public void printList() {\n ListNode currentNode = head;\n\n while (currentNode != null) {\n // Print the data at current node\n System.out.print(currentNode.data + \" \");\n // Go to next node\n currentNode = currentNode.next;\n }\n System.out.println();\n\n }",
"public void print() {\r\n\t\tif(isEmpty()) {\r\n\t\t\tSystem.out.printf(\"%s is Empty%n\", name);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: %n\", name);\r\n\t\tNode<E> current = first;//node to traverse the list\r\n\t\t\r\n\t\twhile(current != null) {\r\n\t\t\tSystem.out.printf(\"%d \", current.data);\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public void print() {\r\n\r\n Node currentNode = this.head;\r\n while (currentNode != null) {\r\n System.out.print(currentNode.data + \" \");\r\n currentNode = currentNode.next;\r\n }\r\n\r\n }",
"public void printList(Node node) {\n\t\tif (node == null) {\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.print(node.data + \" \");\n\t\tprintList(node.next);\n\t}",
"public void printList(){\n MyNode p;\n System.out.print(\"The list contains [\");\n for(p=head.next;p!=null;p=p.next)\n System.out.print(p.word +\" \");\n System.out.print(\"]\\n\");\n }",
"public void printAscend() {\r\n\t\tMovieListNode<m> cur = head;\r\n\t\twhile (cur != null) {\r\n\t\t\tSystem.out.println(cur);\t//prints current node\r\n\t\t\tcur = cur.next;\t\t//moves on to next node\r\n\t\t}\r\n\t}",
"public void displayNodes() {\n Node node = this.head;\n StringBuilder sb = new StringBuilder();\n while (node != null) {\n sb.append(node.data).append(\" \");\n node = node.next;\n };\n\n System.out.println(sb.toString());\n }",
"public void printList() {\n System.out.println(\"Linked list contents:\");\n for (Node p = head; p != null; p = p.next)\n System.out.println(p.data);\n }",
"void printList() {\n Entry<T> node = header;\n while(node!=null){\n System.out.print(node.element+\" \");\n node = node.next;\n }\n }",
"public void print() \n //POST:\tThe contents of the linked list are printed\n\t{\n\t\tNode<T> tmp = start;\n\t\tint count = 0; //counter to keep track of how many loops occur\n\t\tif(length == 0) //if empty list \n\t\t{\n\t\t\tSystem.out.println(\"0: []\");\n\t\t\treturn;\n\t\t}\n\t\tSystem.out.println(\"start: \" + tmp.value);\n\t\tSystem.out.print(length + \": [\");\n\n\t\t//while the end of the list is not reached and it has not already looped once\n\t\twhile((tmp.next != start && count == 0) || count < 1) \n\t\t{\n\t\t\tSystem.out.print(tmp.value.toString() + \", \");\n\t\t\tif(tmp.next == start) //if we have reached the end of the list\n\t\t\t{\n\t\t\t\tcount++;\t\t//increment loop counter\n\t\t\t}\n\t\t\ttmp = tmp.next;\t\t//traverse list\n\t\t}\n\t\tSystem.out.print(\"]\\n\");\n\t}",
"public void printList(){\n \t\t\tListNode temp = this;\n\t \t\tdo{\n\t \t\t\tSystem.out.print(temp.val + \"->\");\n\t \t\t\ttemp = temp.next;\n\t \t\t}while(temp != null);\n\t \t\tSystem.out.print(\"null\");\n\t \t\tSystem.out.println();\n\t \t}",
"private void printList() {\n if (head == null)\n return;\n ListNode current = head;\n int count = 0;\n while (current != null) {\n count++;\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n System.out.println(\"Number of nodes in the list are:: \" + count);\n }",
"public void display(){\n if (this.listSize == 0){\n System.out.println(\"This is an empty list!\");\n return;\n }else if(this.head.getNextNode() == null){\n System.out.print(this.head.getData()); //single-node list\n return;\n }\n System.out.print(this.head.getData() + \" -> \"); //print out head node\n singlyListNode ptr = this.head.getNextNode();\n while(ptr.getNextNode() != null){\n System.out.print(ptr.getData() + \" -> \");\n ptr = ptr.getNextNode();\n }\n //when ptr reaches second last node\n System.out.println(ptr.getData());\n }",
"public static void print(ListNode node) {\n while (node != null) {\n System.out.print(node.val + \" \");\n node = node.next;\n }\n System.out.println(\"\");\n }",
"public void display() {\n MyMapNode current = head;\n if (head == null) {\n System.out.println(\"List is empty\");\n return;\n }\n while (current != null) {\n //Prints each node by incrementing pointer\n System.out.print(current.data + \" \");\n current = current.next;\n }\n System.out.println();\n }",
"public void printNodes() { \n //Node current will point to head \n Node current = head; \n if(head == null) { \n System.out.println(\"Doubly linked list is empty\"); \n return; \n } \n System.out.println(\"Nodes of doubly linked list: \"); \n while(current != null) { \n //Print each node and then go to next. \n System.out.print(current.item + \" \"); \n current = current.next; \n } \n }",
"public static void printList(ListNode node) {\n StringBuilder sb = new StringBuilder();\n sb.append(node.val);\n node = node.next;\n while (true) {\n if (node == null) { break; }\n sb.append(\" -> \").append(node.val);\n node = node.next;\n }\n System.out.println(sb.toString());\n }",
"public void printList()\n {\n System.out.print(\"SinglyLinkedList:\\n\");\n ListNode cur = first;\n while(cur != null)\n {\n System.out.println(cur.getValue());\n cur = cur.getNext();\n }\n }",
"public void printForward(){\n\t\t\n\t\tif(isEmpty())\n\t\t\treturn;\n\t\t\n\t\tNode theNode = head;\n\n\t\twhile(theNode != null){\n\t\t\tSystem.out.print(theNode.data + \" \");\n\t\t\ttheNode = theNode.next;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"public void display()\n\n {\n\n System.out.print(\"\\nDoubly Linked List = \");\n\n if (size == 0) \n\n {\n\n System.out.print(\"empty\\n\");\n\n return;\n\n }\n\n if (start.getLinkNext() == null) \n\n {\n\n System.out.println(start.getData() );\n\n return;\n\n }\n\n Node ptr = start;\n\n System.out.print(start.getData()+ \" <-> \");\n\n ptr = start.getLinkNext();\n\n while (ptr.getLinkNext() != null)\n\n {\n\n System.out.print(ptr.getData()+ \" <-> \");\n\n ptr = ptr.getLinkNext();\n\n }\n\n System.out.print(ptr.getData()+ \"\\n\");\n\n }",
"public void print()\n {\n for (Node curr = first; curr != null; curr = curr.next)\n System.out.print(curr.val + \" \");\n System.out.println();\n }",
"public void printList(TernaryTreeNode head) {\n// System.out.println(\" head :: \" + head.right.right.data);\n TernaryTreeNode current = head;\n \n while (true) \n {\n System.out.print(current.data + \" \");\n \n current = current.right;\n \n if(current==head)\n {\n break;\n }\n }\n \n System.out.println();\n }",
"public void printNodes() {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode==null) {\n\t\t\tSystem.out.println(\" The Node is Null\");\n\t\t\treturn;\n\t\t} else {\n\t\t\tSystem.out.print(\" \"+ currentNode.getData());\n\t\t\twhile(currentNode.getNextNode()!=null) {\n\t\t\t\tcurrentNode = currentNode.getNextNode();\n\t\t\t\tSystem.out.print(\"=> \"+ currentNode.getData());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public void printAllNodes() {\n\t\tNode current = head;\n\n\t\twhile( current != null ) {\n\t\t\tSystem.out.println(current.data);\n\t\t\tcurrent = current.next;\n\t\t}\n\t}",
"public void printList(LinkedList list) {\n Node currNode = list.head;\n\n System.out.println(\"LinkedList: \");\n\n // Traverse through the LinkedList\n while (currNode != null) {\n // Print the data at current node\n System.out.print(currNode.data + \" \");\n\n // Go to next node\n currNode = currNode.next;\n }\n }",
"public void display()\n {\n System.out.print(\"\\nDoubly Linked List = \");\n if (size == 0)\n {\n System.out.print(\"empty\\n\");\n return;\n }\n if (start.getListNext()== null)\n {\n System.out.println(start.getData() );\n return;\n }\n List ptr = start;\n System.out.print(start.getData()+ \" <-> \");\n ptr = start.getListNext();\n while (ptr.getListNext()!= null)\n {\n System.out.print(ptr.getData()+ \" <-> \");\n ptr = ptr.getListNext();\n }\n System.out.print(ptr.getData()+ \"\\n\");\n }",
"private static void printListHelper(LinkedListNode front) {\n\t\tLinkedListNode current = front;\n\t\twhile (current != null) {\n\t\t\tSystem.out.print(current.data + \" \");\n\t\t\tcurrent = current.next;\n\t\t}\n\t}",
"public void traverseList(Node head)\r\n\t{\r\n\t\tint count =0;\r\n\t\tSystem.out.print(\"Linked List - \");\r\n\t\twhile(head!= null)\r\n\t\t{\r\n\t\t\tSystem.out.print(head.data + \" \");\r\n\t\t\thead = head.next;\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"\\nTotal no of nodes in Linked List - \"+ count);\r\n\t}",
"public void printlist(Node node) {\n Node last = null;\n \n System.out.println(\"Traversal in forward Direction\");\n while (node != null) {\n System.out.print(node.data + \" ==> \");\n last = node;\n node = node.next;\n }\n System.out.println();\n System.out.println(\"Traversal in reverse direction\");\n while (last != null) {\n System.out.print(last.data + \" ==> \");\n last = last.prev;\n }\n \n }",
"@Override\n public String toString() {\n return \"LinkedList{\"\n + \"head=\" + head\n + \", numElement=\" + numElement\n + '}';\n }",
"@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }",
"public void printAll() {\n Node node = head;\n\n while (node != null) {\n System.out.println(node.getStudent());\n node = node.getLink();\n }\n System.out.println();\n }",
"@Override\n public String toString(){\n String str = \"\";\n DLNode<T> current = first;//a reference to the first node\n while (current != null) {//loop as long as we reach the end of the list\n str += current + \"\\n\";//store current element in a String at every iteration\n current = current.next;\n }\n return str;\n }",
"public static void printList(LinkedListNode front) {\n\t\tprintListHelper(front);\n\t\tSystem.out.println();\n\t}",
"@Override\n public String toString(){\n Node curr=this.head;\n String str=\"\";\n while(curr!=null){\n str+=(curr.data + \" -> \");\n curr=curr.next;\n }\n return str;\n }",
"void ReversePrint(Node head) {\n if(head == null){\n ;\n }\n else{\n ReversePrint(head.next);\n System.out.println(head.data);\n }\n\n}",
"public void displayList(){\n ArtistNode node = head;\n \n //while the next node isnt null, we print out the node\n while(node.next!=null){\n \n System.out.println(node);\n \n //once we've printed out the current node, we set our node equal to the next node.\n node=node.next;\n \n }\n \n //We need this because it stops printing when node.next has a null value which the end node will always have a null value so we must print the last node\n //after the while loop ends\n System.out.println(node);\n \n \n }",
"public void printValues(){\n Node runner = head;\n while(runner != null){ //iterate through end of list\n System.out.println(runner.value);\n runner = runner.next;\n }\n }",
"@Override\n public String toString() {\n if (head == null) {\n // Empty list\n return \"\";\n } else {\n return head.toString();\n }\n }",
"private void printNode() {\n System.out.println(\"value:\" + value + \" next:\" + nextNode);\n }",
"private void iter() {\n Node curr = new Node();\n curr = head;\n while (curr != null) {\n System.out.print(curr.card + \" \");\n curr = curr.next;\n }\n }",
"public void printList(){\n Date212Node p = first.next;\n while(p != null){\n System.out.println(p.data.toString());\n p = p.next;\n }\n }",
"public static void printlist( LinkedList list)\r\n\t\t{\r\n\t\t Node current = list.head;\t\r\n\t\t System.out.println(\"LinkedList: \"); \r\n\t\t \r\n\t\t while (current != null)\r\n\t\t {\r\n\t\t\t \r\n\t\t\t \r\n\t\t\t //even check\r\n\t\t\t if (current.data %2 ==0)\r\n\t\t\t {\r\n\t\t\t\t System.out.println(\"Even\" + current.data + \" \"); \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t System.out.println(\"all\" + current.data + \" \");\r\n\t\t\t current = current.next;\r\n\t\t\t \r\n\t\t\t //\r\n\t\t }\r\n\t\t System.out.println(\"\"); \r\n\t\t}",
"public static void printTree(Node head) {\r\n System.out.println(\"Binary Tree:\");\r\n printInOrder(head, 0, \"H\", 17);\r\n System.out.println();\r\n }",
"public String printList() {\n String str = \"\";\n Node<T> currentNode = head;\n\n if(head == null)\n return \"Empty List\";\n else {\n while (currentNode.next != null) {\n str += currentNode.data + \",\";\n currentNode = currentNode.next;\n }\n str += currentNode.data;\n //System.out.println(str);\n }\n return str;\n }",
"static void display(Node head) {\n Node Rp; \n \n // pointer to move down \n Node Dp = head; \n \n // loop till node->down is not NULL \n while (Dp != null) { \n Rp = Dp; \n \n \n while (Rp != null) { \n System.out.print(Rp.data + \" \"); \n Rp = Rp.right; \n } \n System.out.println(); \n Dp = Dp.down; \n \n } \n }",
"public void Print() {\n\t\tcurr = head;\n\t\twhile (curr != null) {\n\t\t\tcurr.Print();\n\t\t\tcurr = curr.next;\n\t\t}\n\t}",
"public void display()\r\n {\r\n recursiveDisplay(head);\r\n }",
"public Node getHeadNode();",
"public void display() {\n\t\tSystem.out.println(\"[\" + recDisplay(head) + \"]\");\n\t}",
"public String toString()\n\t{\n\n if ( !isEmpty() )\n\t\t{ \n Node tNode = head;\n String str = tNode.item;\n\t\t\twhile (tNode.next != null)\n\t\t\t{\n\t\t\t\ttNode = tNode.next;\n str = str + \" -> \" + tNode.item;\n\t\t\t}\n\t\t\treturn str;\n\t\t}\n\t\treturn null;\n\t\t//return \"\";\n }",
"public ListNode getHead()\n {\n return head;\n }",
"private void printList2(Node curr)\n {\n if(curr.next == null)\n {\n System.out.println(curr.item);\n }\n else\n {\n System.out.print(curr.item + \" \");\n printList2(curr.next);\n }\n }",
"private void traverse(Node<T> node) {\r\n\t\tif (null == node.next) {\r\n\t\t\tSystem.out.println(String.valueOf(node.data) + \"--->END\");\r\n\t\t\treturn;\r\n\t\t} else {\r\n\t\t\tSystem.out.print(String.valueOf(node.data) + \"--->\");\r\n\t\t\ttraverse(node.next);\r\n\t\t}\r\n\t}",
"public void printReverse(MovieNode head){\n if(head.next == null){\t\t\t\t\t\t//Base case\n System.out.print(head.data + \"<-\");\n return;\n }\n printReverse(head.next);\t\t\t\t\t//Recursive program\n System.out.print(head.data + \"<-\");\n }",
"public void printQueue() {\r\n\t\tNode current = head; //Instantiated node which will cycle through\r\n\t\tfor(int i = 0; i < size; i++) { //While the current instantiated node isn't null (meaning thats it's in the list), increment through the list and print the data\r\n\t\t\tSystem.out.print(current.data + \"[\" +current.index+ \"] \");\r\n\t\t\tcurrent = current.next;\r\n\t\t}\r\n\t\tif(head == null) System.out.println(\"THE QUEUE IS EMPTY!\");\r\n\t\tSystem.out.println(\"\\n\");\r\n\t}"
] | [
"0.8218361",
"0.80711174",
"0.80438733",
"0.7932564",
"0.7910297",
"0.78943896",
"0.7890818",
"0.7849013",
"0.7839126",
"0.7830152",
"0.77936447",
"0.77008927",
"0.7666364",
"0.76586163",
"0.76199335",
"0.7617765",
"0.76063526",
"0.76028085",
"0.7592019",
"0.7536944",
"0.75265014",
"0.75008243",
"0.7500586",
"0.74748385",
"0.74572086",
"0.74505293",
"0.74480236",
"0.74472547",
"0.7428675",
"0.7408695",
"0.7378587",
"0.7372119",
"0.73328125",
"0.7289036",
"0.72805417",
"0.72804284",
"0.7276302",
"0.72648436",
"0.72537637",
"0.7250877",
"0.7246804",
"0.7245081",
"0.7242254",
"0.72284347",
"0.7224434",
"0.7222432",
"0.72110146",
"0.71590704",
"0.71509194",
"0.7147289",
"0.70919335",
"0.70402306",
"0.70296437",
"0.702566",
"0.7023887",
"0.6988602",
"0.6961402",
"0.6959683",
"0.69517934",
"0.69413936",
"0.69344515",
"0.6905469",
"0.69038117",
"0.689896",
"0.6887478",
"0.6866853",
"0.68648267",
"0.6849122",
"0.6846192",
"0.6827769",
"0.6804545",
"0.68012905",
"0.6798586",
"0.6788326",
"0.67703074",
"0.67505336",
"0.67346025",
"0.6728503",
"0.67041945",
"0.6700378",
"0.66793114",
"0.6648293",
"0.6643755",
"0.66350615",
"0.6607295",
"0.6598202",
"0.6586854",
"0.6572652",
"0.65718246",
"0.65700686",
"0.6536864",
"0.6515001",
"0.6509099",
"0.648826",
"0.6487484",
"0.64616704",
"0.64553887",
"0.64528984",
"0.6450186",
"0.6447213"
] | 0.7446373 | 28 |
/ Inserts a new Node at front of the list. | public void push(int new_data) {
/*
* 1 & 2: Allocate the Node & Put in the data
*/
Node new_node = new Node(new_data);
/* 3. Make next of new Node as head */
new_node.next = head;
/* 4. Move the head to point to new Node */
head = new_node;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Node insertBefore(Node node);",
"public void insertAtFront(T insertItem) {\n\t\tNode<T> node = new Node<T>(insertItem);\n\t\t\n\t\tif (isEmpty()) // firstNode and lastNode refer to same object\n\t\t\tfirstNode = lastNode = node;\n\t\telse { // firstNode refers to new node\n\t\t\tnode.nextNode = firstNode;\n\t\t\tfirstNode = node;\n\t\t\t// you can replace the two previous lines with this line: firstNode\n\t\t\t// = new ListNode( insertItem, firstNode );\n\t\t}\n\t\tsize++;\n\t}",
"private void addToFront(ListNode node) {\n\t // new node inserted into the linked list\n\t node.prev = head;\n\t node.next = head.next;\n\n\t \n\t head.next.prev = node;\n\t head.next = node;\n\t }",
"void insertBefore(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (length == 0) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on empty List\");\n\t\t}\n\t\tif (cursor == null) \n\t\t{\n\t\t\tthrow new RuntimeException(\"List Error: cannot call insertBefore() on cursor that is off the list\");\n\t\t}\n\t\tif (cursor == front) \n\t\t{\n\t\t\tprepend(data); //if the cursor is at the front of the list, you can just call prepend since you will be inserting the element before the front element \n\t\t}\n\t\telse\n\t\t{\n\t\t\t\n\t\t\ttemp.prev = cursor.prev; //the new node temp's previous becomes the cursors previous\t\n temp.next = cursor; //the new node temp's next becomes the cursor\n cursor.prev.next = temp; //cursor's previous next element becomes temp\n cursor.prev = temp; //cursor's previous becomes temp\n length++;\n index++;\n\t\t}\n\t}",
"public void insertAtFront(T data) {\n \t\n \t//create a new node\n Node<T> aNode = new Node<>(data);\n \n //if list is empty we assign a new node as First and Last node;\n if (isEmpty()) { \t\n firstNode = lastNode = aNode;\n } \n //if list is not empty we use setNext method of Node class to link this new node with first\n //other words: firtNode is not first anymore, first node is just new made\n //and AFTER this we say that first node is new node we just made\n else { \n aNode.setNext(firstNode);\n firstNode = aNode;\n }\n }",
"public Node<T> addBefore(Node<T> listNode, T t) \r\n {\r\n Node<T> beforeNewNode = listNode.prev;\r\n Node<T> newNode = new Node<T>(t, beforeNewNode, listNode);\r\n beforeNewNode.next = newNode;\r\n listNode.prev = newNode;\r\n size++;\r\n return newNode;\r\n }",
"public void insertFront(Node newNode) {\n\t\tif(size == 0) {\n\t\t\thead = newNode;\n\t\t\ttail = newNode;\n\t\t} else {\n\t\t\thead.prev = newNode;\n\t\t\tnewNode.prev = null;\n\t\t\tnewNode.next = head;\n\t\t\thead = newNode;\n\t\t}\n\n\t\tsize++;\n\t}",
"@Test\n\tpublic void addNodeAtFront() {\n\t\tSystem.out.println(\"Adding a node at the front of the list\");\n\t\tdll.push(3);\n\t\tdll.push(2);\n\t\tdll.push(1);\n\t\tdll.print();\n\t}",
"void prepend(Object data)\n\t{\n\t\tNode temp = new Node(data);\n\t\tif (front == null) \n\t\t{\n\t\t\tfront = back = temp; // if the list is empty the node will be the first node in the list making it the front and back node\n\t\t\tlength++;\n index = 0; //added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfront.prev=temp; //the temp node is inserted before the front\n\t\t\ttemp.next=front; //the node after temp will be the front because temp was inserted before the front\n\t\t\tfront = temp; //the front is now the temp node\n\t\t\tlength++;\n index++;//added because i failed the test scripts because i wasn't managing the indicies\n\t\t}\n\t}",
"public void insertFirst(int data) { // insert at front of list\n\t\tNode newNode = new Node(data); // creation of new node.\n\t\tif (first == null) // means LinkedList is empty.\n\t\t\tlast = newNode; // newNode <--- last\n\t\telse\n\t\t\tfirst.previous = newNode; // newNode <-- old first\n\t\tnewNode.next = first; // newNode --> old first\n\t\tfirst = newNode; // first --> newNode\n\t}",
"@Override\n public void prepend(T elem) {\n if(isEmpty()) { //if list is empty\n first = new DLNode(elem, null, null);//new element created, there's nothing before and after it yet\n last = first;\n }\n else{ //list in not empty\n \n first = new DLNode(elem, null, first); //new element goes to the front, there nothing before it, the old first element is after it\n \n first.next.prev = first; //ensure that reference to our first element is pointing to the new first element\n }\n \n }",
"private void prependNode(Node prependNode) {\n\t\tNode currentNode = head;\n\t\tif(currentNode==null) {\n\t\t\thead = prependNode;\n\t\t} else {\n\t\t\tprependNode.next = currentNode;\n\t\t\thead = prependNode;\n\t\t}\n\t}",
"public void addToFront(T elem) {\n\t\tNode newNode = new Node();\n\t\tnewNode.value = elem;\n\t\tnewNode.next = first;\n\t\tfirst = newNode;\t\n\t}",
"public void addFrontNode(T a) {\r\n head = new ListNode(a, head);\r\n }",
"public void insertAtFrontOfList(T item){\n //if (contains(item) == false){\n MyDoubleNode<T> temp = new MyDoubleNode();\n if (isEmpty()){\n temp.data = item;\n head.next = temp;\n temp.prev = head;\n tail.prev = temp;\n temp.next = tail;\n }\n else {\n temp.data = item;\n temp.next = head.next;\n temp.prev = head;\n head.next = temp;\n }\n //}\n }",
"public void addToFront(T value) {\n\t\tstart = new Node<T>(value, start);\n\t}",
"public void addFront(E item) {\r\n\t\tNode<E> node = new Node<E>(item, first);\r\n\t\tif(isEmpty())\r\n\t\t\tfirst = last = node;//it would be the first node so it would be first and last\r\n\t\telse {\r\n\t\t\tfirst = node;//creates a new node and puts it in the 1st position\r\n\t\t}\r\n\t}",
"private void addToFront(Node node) {\n \n if(head == null) {\n head = node;\n tail = node;\n } \n else {\n node.next = head;\n head.prev = node;\n head = node;\n }\n }",
"public void addBefore(Node node){\n node.next = head;\n head = node;\n count.incrementAndGet();\n }",
"@Override\n public void insertFirst(E e) {\n if (listHead == null) {\n listHead = new Node(e);\n listTail = listHead;\n }\n\n // In the general case, we simply add a new node at the start\n // of the list via the head pointer.\n else {\n listHead = new Node(e, listHead);\n }\n }",
"void pushFront(T value) throws ListException;",
"@Override\n\tpublic void insertAtFirst(T item) {\n\t\tNode<T> newNode = new Node<>(item);\n\t\tif (this.head == null) {\n\t\t\tthis.head = newNode;\n\t\t} else {\n\t\t\tnewNode.setNext(head);\n\t\t\tthis.head = newNode;\n\t\t}\n\t\tlistSize++;\n\t}",
"@Override\n public void addToFront(T data){\n Node<T> temp = new Node<>();\n\n temp.setData(data);\n temp.setNext(head.getNext());\n\n head.setNext(temp);\n }",
"public void addFront(E d) {\n\t\t// make new node to contain d\n\t\tListNode<E> node = new ListNode<E>(d);\n\t\tif (this.head == null) {\n\t\t\t// the list is empty so make the head point at the node\n\t\t\tthis.head = node;\n\t\t\tthis.last = node;\n\t\t} else {\n\t\t\t// the list it not empty, so the old head's next points at the node\n\t\t\t// the head points at the node\n\t\t\tnode.next = this.head;\n\t\t\tthis.head = node;\n\t\t}\n\t\tthis.size++;\n\t}",
"@Test\n\tpublic void addNodeBeforeGiveNode() {\n\t\tSystem.out.println(\"Given a node as prev_node, insert a new node Before the given node \");\n\t\tdll.push(4);\n\t\tdll.push(3);\n\t\tdll.push(1);\n\t\tdll.InsertBefore(dll.head.next, 2);\n\t\tdll.print();\n\t}",
"@Override\n public void addBefore(E element) {\n Node<E> newNodeList = new Node<>(element, cursor);\n\n if (prev == null) {\n head = newNodeList;\n cursor = newNodeList;\n } else {\n prev.setNext(newNodeList);\n cursor = newNodeList;\n }\n\n size++;\n }",
"public void insertAtBeginning(int data) {\r\n if(head==null) {\r\n head = new ListNode(data);\r\n return;\r\n }\r\n ListNode new_node = new ListNode(data);\r\n new_node.next=head;\r\n head=new_node;\r\n }",
"private void addNodeAtTheBeginning(int data) {\n ListNode newNode = new ListNode(data);\n if (head == null) {\n head = newNode;\n return;\n }\n newNode.next = head;\n head = newNode;\n }",
"void prepend(int element) {\n Node newHead = new Node(element,head);\n head = newHead;\n }",
"private void prepend(T t) {\n Node<T> n = new Node<T>();\n n.data = t;\n n.next = head;\n head = n;\n }",
"private void addNodeBefore(SinglyLinkedList.Node<E> node, int idx) throws IndexOutOfBoundsException {\n if (idx == 0) {\n node.next = head;\n head = node;\n\n len += 1;\n return;\n }\n\n addNodeAfter(node, idx - 1);\n }",
"public void bringToFront(int index) {\n\t\tif (index<this.size()){\n\t\t\tNode front = this.head;\n\t\t\tNode oneBack = new Node(\"\");\n\t\t\tfor (int counter=0; counter < index; counter++){\n\t\t\t\toneBack = front;\n\t\t\t\tfront = front.next;\n\t\t\t}\n\t\t\toneBack.next=front.next;\n\t\t\tfront.next = head;\n\t\t\thead = front;\n\t\t}\n\t}",
"public void addToFront(T element){\n LinearNode<T> node = new LinearNode<T>(element);\n node.setNext(front);\n front = node;\n // modify rear when adding to an empty list\n if (isEmpty()){\n rear = node;\n }\n count++;\n }",
"private void addToFront(ListNode node) {\n node.prev = head;\n node.next = head.next;\n \n //wire the head next prev to node and the connect head to node\n head.next.prev = node;\n head.next = node;\n }",
"static ListNode insertAtBeginning(ListNode head, int data) {\n\n ListNode newNode = new ListNode(data);\n\n if (head == null) {\n return newNode;\n }\n\n newNode.next = head;\n head = newNode;\n\n return head;\n }",
"public void insertAtBeginning(int data) {\r\n //creating node\r\n Node node = new Node(data);\r\n //setting the next reference of node to refer to head or start of list\r\n node.setNext(head);\r\n // setting the head to refer node\r\n head = node;\r\n }",
"public void addFront (E val) {\n\t\tNode <E> n = new Node(val, head);\n\t\thead = n;\n\t\tcount ++;\n\t}",
"@Override\n public void prepend(T element){\n if(isEmpty()){\n add(element);\n } else{\n this.first = new DLLNode<T>(element, null, this.first);\n this.first.successor.previous = this.first;\n }\n }",
"private Node insertBefore(E element, Node node) {\n \treturn new Node(node.pred, element);\n }",
"@Override\n public void insertAtBeginning(T value) {\n Node<T> new_node = new Node<>(value);\n new_node.next = start;\n start = new_node;\n }",
"public void addFront(int data) //O(1)\n\t{\n\t\tSinglyLinkedListNode node = new SinglyLinkedListNode();\n\t\tnode.setData(data);\n\t\tif(head == null)\n\t\t{\n\t\t\t head = node;\n\t\t\t node.setNext(null);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnode.setNext(head);\n\t\t\thead = node;\n\t\t}\n\t}",
"@Override\n\tpublic void prepend(Object data) {\n\t\tNode newNode = new Node(data);\n\t\tnewNode.setNext(this.head);\n\t\thead = newNode;\n\t\tsize++;\n\n\t}",
"private void addBefore(Node n, E x) {\n\n\t\tNode newNode = new Node(x, n);\n\n\t\tNode q = mHead;\n\n\t\tNode p = mHead.next;\n\n\t\twhile (p != n) {\n\t\t\tq = p;\n\t\t\tp = p.next;\n\t\t}\n\n\t\tq.next = newNode;\n\n\t}",
"public void addFirst(E e) { // adds element e to the front of the list\n // TODO\n if (size == 0) {\n tail = new Node<>(e, null);\n tail.setNext(tail);\n } else {\n Node<E> newest = new Node<>(e, tail.getNext());\n tail.setNext(newest);\n }\n size++;\n }",
"public void prepend(final T data) {\n Node<T> newNode = new Node<>(data);\n if (head != null) {\n newNode.setNext(head);\n }\n head = newNode;\n numElement++;\n }",
"public void prepend(Item item) {\n Node newNode = new Node();\n newNode.item = item;\n newNode.next = head.next;\n head.next = newNode;\n size++;\n }",
"private void addFront(String x)\n {\n head = new Node(x, head);\n if (tail == null)\n tail = head;\n\n size++;\n }",
"public void addFront(int data) {\n\t\t\tNode newNode = new Node(data); \r\n\t\t\t\t\t\t\t\t\r\n\t\t\t//check if head...\r\n\t\t\tif(head == null) {\r\n\t\t\t\thead = newNode;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Move the next pointer of new node to head\r\n\t\t\tnewNode.next = head;\r\n\t\t\t\r\n\t\t\t// assign head to new node \r\n\t\t\thead = newNode;\r\n\t\t}",
"private Node prepend(E element) {\n \treturn new Node(sentinel, element);\n }",
"public void pushFront(String value)\n {\n\tStringListNode node = new StringListNode(value);\n\tnode.next = head;\n\tif (null == head) {\t// the list was empty\n\t tail = node;\n\t}\n\telse {\n\t head.prev = node;\n\t}\n\thead = node;\n }",
"protected void insertBeginning(T value) {\r\n\t\tthis.getHead().setPrev(new SNode<T>(value, this.getHead().getPrev()));\r\n\t\tthis.size++;\r\n\t}",
"public void prependNode(int data) {\n\t\tNode currentNode = headNode;\n\t\tif(currentNode == null) {\n\t\t\tNode newNode = new Node(data);\n\t\t\theadNode = newNode;\n\t\t} else {\n\t\t\tif(currentNode!=null) {\n\t\t\t\tNode newNode = new Node(data);\n\t\t\t\theadNode = newNode;\n\t\t\t\tnewNode.setNextNode(currentNode);\n\t\t\t}\n\t\t}\n\t}",
"public void insertAtStart(int data) {\n Node node = new Node();\n node.data =data;\n node.next=null;\n node.next=head;\n head=node;\n }",
"private static void insertAtHead(int data) {\n\tNode newnode=new Node(data);\n\tnewnode.next=head;\n\tnewnode.prev=null;\n\tif(head!=null)\n\t\thead.prev=newnode;\n\thead=newnode;\n\t\n}",
"public void addAtStart(T value) {\n Node<T> newNode = new Node<>();\n newNode.data = value;\n newNode.next = head;\n head = newNode;\n }",
"Node insertBefore(Node newChild, Node refChild);",
"public void insertAtBeginning(int element) {\n\t\thead = new Node(element, head);\n\t}",
"public void insertFirst( T data )\n\t{\n\t\t//make a new node to insert it\n\t\tLinkedListNode<T> newNode = new LinkedListNode<T>();\n\t\t//add data to the node\n\t\tnewNode.setData(data);\n\t\t//link up the new node by\n\t\t//have the new node point to the old current node\n\t\tnewNode.setNext(head);\n\t\t//set the new node as the head\n\t\thead = newNode;\t\n\t\t//increment the size of the list\n\t\tlistSize++;\n\t}",
"public Node<E> addToBeginning(Node<E> node){\n node.setNext(head.getNext());\n head.getNext().setPrevious(node);\n node.setPrevious(head);\n head.setNext(node);\n size++;\n return node;\n }",
"private void addFirst (E item)\n {\n Node<E> temp = new Node<E>(item); // create a new node\n // and link to the first node\n head = temp;\n size++;\n }",
"public void addToFront(T data) {\n if (data == null) {\n throw new IllegalArgumentException(\"You can't insert null \"\n + \"data in the structure.\");\n }\n if (size == 0) {\n head = new DoublyLinkedListNode<T>(data);\n tail = head;\n size += 1;\n } else {\n DoublyLinkedListNode<T> newnode =\n new DoublyLinkedListNode<T>(data);\n newnode.setNext(head);\n head.setPrevious(newnode);\n head = newnode;\n size += 1;\n }\n }",
"public void insertAtBegin(int data){\n Node newNode = new Node(data);\n if (head == null){\n head = newNode;\n }else {\n Node node = head;\n head = newNode;\n newNode.next = node;\n node.prev = newNode;\n }\n\n }",
"private void moveToHead(ListNode node) { \n\t removeFromList(node);\n\t addToFront(node);\n\t }",
"public void prepend(Integer data) {\n\t\tListNode tmp = new ListNode(data, head);\n\n\t\tif (null != this.head) {\n\t\t\t// asign new head:make tmp the new head:Step2\n\t\t\tthis.head = tmp;\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element and is new\n\t\t\t// tail as wells as head[see next statement executed]\n\t\t\tthis.tail = tmp;// tmp is new tail\n\t\t}\n\t\tthis.head = tmp;\n\t\tlength++;\n\t}",
"public void insertBefore(int value, int newVal) {\n try {\n ListNode nodeValue = new ListNode(value);\n ListNode newValue = new ListNode(newVal);\n ListNode current = this.root;\n\n while (current.data != value) {\n current = current.next;\n }\n newValue.next = current.next;\n current.next = newValue;\n } catch (NullPointerException e) {\n System.out.println(\"You have reached the end of the list.\");\n }\n }",
"public boolean insertFront(int value) {\n if (cnt == size)\n return false;\n Node node = new Node(value);\n if (head == null) {\n head = node;\n tail = node;\n node.pre = node;\n node.next = node;\n } else {\n node.next = head;\n node.pre = head.pre;\n head.pre.next = node;\n head.pre = node;\n head = node;\n }\n cnt++;\n return true;\n }",
"public void addFirst(Object e) {\n if(head == null) {\n tail = head = new Node(e, null, null);\n return;\n }\n\n Node n = new Node(e, null, head);\n head.setPrevious(n);\n head = n;\n }",
"public void insertAtFirst(int data)\r\n\t{\r\n\t\tSystem.out.println(\"iam inserting at front :\");\r\n\t\tNode new_front = new Node(data);\r\n\t\tnew_front.right = root;\r\n\t\troot = new_front;\r\n\t}",
"public void addAtFront(String str) {\n newNode = new Node(str);\n next = newNode.getNext();\n head = newNode;\n }",
"public void addFirst(Item item) {\n Node oldFirst = first;\n first = new Node(null, item, oldFirst);\n if (oldFirst == null)\n last = first;\n else\n oldFirst.prev = first;\n size++;\n }",
"private void InsertAt(IntRepList.OpNode node, IntRepList.OpNode current) {\n current.prev.next = node;\n node.prev = current.prev;\n node.next = current;\n }",
"void addFirst(Key k) {\n\t\tfirstNode = new Node(k, getFirstNode()); // creates new node, pointing to the previous first node and sets it to firstNode\n\t\tif(size++==0) lastNode = firstNode;\n\t}",
"public void insertFirst(T data ) {\n\n\t\tNode<T> newNode = new Node<T>(data);\n\t\tnewNode.next = head;\n\t\thead = newNode;\n\t}",
"public void addAtStart(Node node) {\n if(this.head == null) {\n add(node);\n return;\n };\n\n node.next = this.head;\n this.head = node;\n this.length++;\n }",
"public synchronized void insertAtBegin(ListNode tmp) {\n\t\ttmp.setNext(head);\n\t\tif (null != this.head) {\n\t\t\t// asign new head:make tmp the new head:Step2\n\t\t\tthis.head = tmp;\n\t\t} else {\n\t\t\t// but if list is empty then the temp is the only element and is new\n\t\t\t// tail as wells as head[see next statement executed]\n\t\t\tthis.tail = tmp;// tmp is new tail\n\t\t}\n\t\tthis.head = tmp;\n\t\tlength++;\n\t}",
"private void insertFirst(T data){\n Node<T> node = new Node<T>(data);\n this.begin = node;\n this.end = node;\n }",
"public Node<T> addFirst(T t) { \r\n Node<T> currFirst = sentinel.next;\r\n Node<T> newNode = new Node<T>(t, sentinel, currFirst);\r\n sentinel.next = newNode;\r\n currFirst.prev = newNode;\r\n size++;\r\n return newNode; \r\n }",
"private void moveToHead(ListNode node) {\n removeFromList(node);\n addToFront(node);\n }",
"public void insertAtFront(int data){\n CircNode newLink = new CircNode(data);\n if(size==0){\n head = newLink;\n tail = newLink;\n newLink.next = head;\n }\n else{\n CircNode temp = head;\n newLink.next = temp;\n head = newLink;\n tail.next = head;\n }\n size++;\n }",
"public void addAtStart(T v) {\n if (this.head == null) {\n add(v);\n return;\n };\n\n Node node = new Node(v, this.head);\n this.head = node;\n this.length++;\n }",
"public void addBefore(E val, int idx) throws IndexOutOfBoundsException {\n addNodeBefore(new SinglyLinkedList.Node<>(val), idx);\n }",
"public /*@ non_null @*/ JMLListEqualsNode<E> prepend(E item) {\n // cons() handles any necessary cloning\n return cons(item, this);\n }",
"public void addFirst(T item) {\n\t\tNode nn = new Node();\n\t\tnn.data = item;\n\t\tnn.next = null;\n\n\t\t// linking\n\t\tnn.next = head;\n\t\thead = nn;\n\n\t}",
"@Override\r\n public void addFront(T b) {\r\n head = head.addFront(b);\r\n }",
"public void addAtStart(T data) {\n Node<T> newNode = new Node<T>();\n newNode.data = data;\n\n newNode.next = head;\n head = newNode;\n size++;\n }",
"public void addtoFront(int tx, int ty, Node current) {\n\tif(board[tx][ty] == '#' || board[tx][ty] == '$') {\n\t tmp = new Node(tx, ty);\n\t tmp.setPrev(current); // For tracing back Nodes\n\t Frontier.enqueue(tmp);\n\t}\n }",
"public void insertAtStart(int data) {\n\t\tNode node = new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\tnode.next = head;\n\t\thead = node;\n\t}",
"public void insertFirst( T data )\n {\n //create a new linkedListNode\n LinkedListNode<T> newNode = new LinkedListNode<T>();\n //assign that node some data\n newNode.setData(data);\n //point new node where current pointer is\n newNode.setNext(head);\n //set head pointer to this new node\n this.head = newNode;\n \n }",
"@Override\n\tpublic void preVisit(ASTNode node) {\n\t\tnodeList.add(node);\n\t}",
"public void prepend(int val) {\n int i = -34;\n if(head != null) {\n Node node = head;\n head = new Node();\n\n node.prev = head;\n head.next = node;\n head.val = val;\n }\n else if(head == null) {\n\n head = new Node();\n head.val = val;\n tail = head;\n }\n\n size++;\n }",
"public void addFirst(E item) {\n Node<E> n = new Node<>(item, head);\n size++;\n if(head == null) {\n // The list was empty\n head = tail = n;\n } else {\n head = n;\n }\n }",
"void prepend(int value) {\n\t\tNode n = new Node(value);\n\t\tn.next = head;\n\t\thead = n;\n\t\tlength++;\n\t\t//print();\n\t}",
"public native VertexList insertBefore(VertexNode target, VertexNode vertex);",
"@Override\n public void addFirst(E element) {\n Node<E> newNodeList = new Node<>(element, head);\n\n head = newNodeList;\n cursor = newNodeList;\n size++;\n }",
"public void addAtStart(Item item) { \t\n \tif(head.item == null) {\n \t\thead.item = item;\n\t \t\tif(isEmpty()) {\n\t \t\thead.next = tail;\n\t \t\ttail.next = head;\n\t \t\t} \t\t\n \t} else {\n \t\tNode oldHead;\n \t\toldHead = head;\n \t\thead = new Node();\n \t\thead.item = item;\n \t\thead.next = oldHead;\n \t\ttail.next = head;\n \t}\n \tsize++;\n }",
"public void insertAtBeginning(String data)\n\t{ \n\t\t\n\t\tNode node=new Node();\n\t\tnode.data = data;\n\t\tnode.next = null;\n\t\t\n\t\tnode.next = head;\n\t\t\n\t\thead =node;\n\t}",
"public void addNodeToTheStart(int data){\n Node newNode = new Node(data);\n if(head == null){\n head = newNode;\n }else{\n Node tmp = head;\n head = newNode;\n head.next = tmp;\n }\n }",
"public void add(int index, int data){\r\n if (index == 0){\r\n front = ned node(data, front){\r\n } else {\r\n node curr = front;\r\n for (int i = 0; i < index - 1; i++){\r\n curr = curr.next;\r\n }\r\n curr.next = new node(data, curr.next);\r\n }\r\n }\r\n \r\n}",
"public void addFirst(T item) {\n\tif ( _size == 0 ) {\n\t _front = _end = new DLLNode<T>(item, null, null);\n\n\t}\n\telse{\n\t DLLNode<T> temp = new DLLNode<T>(item, _front, null);\n\t _front.setNext(temp);\n\t _front = temp;\n\t}\n\t_size++;\n }",
"public void addfirst(Item item)\r\n {\r\n Node first = pre.next;\r\n Node x = new Node();\r\n x.item = item;\r\n x.prev = pre;\r\n x.next = first;\r\n pre.next = x;\r\n first.prev = x;\r\n n++;\r\n }",
"public void push_front(T element);"
] | [
"0.7586085",
"0.7575391",
"0.7555718",
"0.7529886",
"0.74939305",
"0.7480744",
"0.7462563",
"0.74121946",
"0.74019086",
"0.73777163",
"0.7375027",
"0.73719895",
"0.73556674",
"0.73262125",
"0.73254985",
"0.72882205",
"0.7258221",
"0.7238087",
"0.72095525",
"0.7188574",
"0.7171779",
"0.71538645",
"0.7146043",
"0.7116889",
"0.70947623",
"0.7091795",
"0.7080794",
"0.7069812",
"0.7033914",
"0.70328474",
"0.7030151",
"0.7024749",
"0.70086974",
"0.69992167",
"0.69785273",
"0.69697183",
"0.6932203",
"0.68958074",
"0.687243",
"0.68674135",
"0.6865785",
"0.68627423",
"0.6836171",
"0.6804599",
"0.679957",
"0.6788912",
"0.6783524",
"0.6783284",
"0.67788094",
"0.67769",
"0.6770068",
"0.6769838",
"0.6765517",
"0.67494136",
"0.6737256",
"0.6736049",
"0.67344743",
"0.6726077",
"0.67212",
"0.6717545",
"0.67107314",
"0.67092896",
"0.66951084",
"0.6674309",
"0.6665988",
"0.6656309",
"0.6642818",
"0.6636355",
"0.6626606",
"0.66257465",
"0.6616447",
"0.6616082",
"0.66106135",
"0.66086996",
"0.66036576",
"0.6599327",
"0.65852207",
"0.65790087",
"0.65655226",
"0.65535593",
"0.6551111",
"0.6540955",
"0.653414",
"0.65326697",
"0.6530445",
"0.6530155",
"0.6527499",
"0.6527066",
"0.6526302",
"0.6525393",
"0.65172035",
"0.6514175",
"0.6508364",
"0.64949876",
"0.6491227",
"0.64880955",
"0.64839363",
"0.647383",
"0.64701694",
"0.64696765",
"0.6453746"
] | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.