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 |
|---|---|---|---|---|---|---|
getter d'un item a partir de la description/nom de l'item | public Item getItem(final String pItem){return this.aItemsList.getItem(pItem);} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getItemDesc() {\n return itemDesc;\n }",
"public String getItemDescription() {\n return itemDescription;\n }",
"public String getItemInformation()\n {\n return this.aDescription + \" qui a un poids de \" + this.aWeight;\n\n }",
"public String getItemDescription() {\r\n\t\treturn itemDescription;\r\n\t}",
"public String getFirstItemDescription() {\r\n return firstItemDescription;\r\n }",
"XBCXDesc getItemDesc(XBCItem item, XBCXLanguage language);",
"public String getItemString() \r\n \t{\r\n \t\tString itemString = \"Regarde s'il y a des objets ici: \";\r\n \t\t\r\n \t\tif (!items.getHashMap().isEmpty())\r\n \t\t{\r\n \t\t\tSet<String> cles = items.getKeys();\r\n \t\t\tfor (String nom : cles) \r\n \t\t\t{\r\n \t\t\t\tif(nom != \"beamer\")\r\n \t\t\t\t{\r\n \t\t\t\t\tItem valeurs = items.getValue(nom);\r\n \t\t\t\t\titemString += \"\\n\" + valeurs.getDescriptionItem() + \" qui pèse \" + valeurs.toString() + \" kg\";\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\titemString = \"Il n'y a pas d'objet ici\";\r\n \t\t}\r\n \t\t\r\n \r\n \t\r\n \t\t/********** L'ArrayList des potions **********/\r\n \t\titemString += \"\\n\";\r\n \t\tfor (int i = 0; i < potion.size(); i++) {\r\n \t\t\titemString += \"\\n\" + potion.get(i).getNomPotion();\r\n \t\t}\r\n \t\t/****************************************************************/\r\n \r\n \t\treturn itemString;\r\n \r\n \t}",
"java.lang.String getDesc();",
"CodeableConcept getItem();",
"public synchronized String getDescription(){\n \treturn item_description;\n }",
"public String getItemName()\n {\n return itemName;\n }",
"@Override\n\tpublic ItemDescription getItemDescription() {\n\t\tItemDescription item = new ItemDescription();\n\t\titem.title = \"电池充电测试\";\n\t\titem.board = \"通用\";\n\t\titem.desc = \"电池充电\";\n\t\treturn item;\n\t}",
"public String obtenirNomItem() {\n\t\treturn this.nomItem;\n\t}",
"public String getName() {\n return item.getName();\n }",
"public Object get(String itemName);",
"String getDesc();",
"public String getItemDescription(String itemName) {\n return driver.findElement(By.xpath(\"//div[text()='\" + itemName + \"']/../../div\")).getText();\n }",
"public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}",
"public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }",
"@Override\n public Object getItem(int arg0) {\n return title[arg0];\n }",
"public String getItem() {\r\n return item;\r\n }",
"public String getDescription() {return \"Use an item in your inventory\"; }",
"ICpItem getCpItem();",
"@ApiModelProperty(required = true, value = \"A description of item.\")\n public String getItemName() {\n return itemName;\n }",
"public String getItem() {\r\n\t\treturn item;\r\n\t}",
"public String getItemTitle() {\n\t return this.itemTitle;\n\t}",
"public String getNomeItem() {\r\n\t\treturn this.emprestimoid.getNomeItem();\r\n\t}",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getItemName() {\r\n return itemName;\r\n }",
"public String getItemDetailName() {\n return itemDetailName;\n }",
"@Override\n\tpublic void descriere() {\n\t\tSystem.out.println(\"Item: \"+this.numeSectiune);\n\t}",
"@Override\n\tpublic TbItemDesc getItemDescByItemId(long itemId) {\n\t\tString httpClientResult = HttpClientUtil.doGet(HTTPCLIENTURL + HTTPCLIENTITEMDESC + itemId);\n\t\tTbItemDesc formatToPojo = JsonUtils.jsonToPojo(httpClientResult, TbItemDesc.class);\n\t\treturn formatToPojo;\n\t}",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getItemName() {\n return itemName;\n }",
"public String getInfo()\r\n\t{\r\n\t\treturn theItem.getNote();\r\n\t}",
"public interface ItemDescriptor {\n\n /**\n * Get the ID of the item\n *\n * @return item id\n */\n public int getID();\n\n /**\n * Get the name of the item\n *\n * @return item name\n */\n public String getName();\n\n /**\n * Get the type descriptor\n *\n * @return item type\n */\n public ItemType getType();\n\n}",
"public String getItemName() {\n\t\treturn _itemName;\n\t}",
"@Override\r\n\tpublic String getdesc() {\n\t\treturn b1.getdesc() + \", Milk\";\r\n\t}",
"public Item getItem() { \n return myItem;\n }",
"public String getItemName() {\n\t\treturn ((name != null) ? name : (name = MiscUtils.getName(this)));\n\t}",
"@Test\n\tvoid descriptionTest() {\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tString expected = \"Name: \" + item.toString() + \"\\nHeal Amount: \" + item.getHealAmount() +\n\t\t\t\t\t\"\\nCures Plague: \" + item.getCure() +\"\\nOutpost Cost: $\" + item.getPrice();\n\t\t\tassertEquals(item.itemDescription(), expected);\n\t\t}\n\t}",
"public int getITEM() {\r\n return item;\r\n }",
"public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }",
"public String getItemText() {\n\t\treturn this.itemText;\n\t}",
"protected abstract void onBindDescription(ViewHolder vh, Object item);",
"ItemStack getItem();",
"public String getDesc(){\r\n\t\treturn this.desc;\r\n\t}",
"public String getItemName() {\r\n\t\treturn itemName;\r\n\t}",
"public String getDesc()\r\n {\r\n return description;\r\n }",
"private String getAgendaItemDescription(AgendaItem item) {\n StringBuilder description = new StringBuilder();\n description.append(Parser.parseToHTML(item.getDescription(), true));\n description.append(\"<br/>\");\n description.append(\"<br/><b>Wie</b>: \" + item.getWho());\n description.append(\"<br/><b>Wat</b>: \" + item.getWhat());\n description.append(\"<br/><b>Waar</b>: \" + item.getLocation());\n description.append(\"<br/><b>Wanneer</b>: \" + item.getWhen());\n description.append(\"<br/><b>Kosten</b>: \" + item.getCosts());\n\n return description.toString();\n }",
"InventoryItem getInventoryItem();",
"public interface MeleteItemDetail\n{\n\t/**\n\t * @return The item's status.\n\t */\n\tItemAccessStatus getAccessStatus();\n\n\t/**\n\t * @return The close date.\n\t */\n\tDate getCloseDate();\n\n\t/**\n\t * @return A display title for the section's module.\n\t */\n\tString getModuleTitle();\n\n\t/**\n\t * @return The number of \"Student\" participants who have viewed this section. TODO: drop\n\t */\n\tInteger getNumViewed();\n\n\t/**\n\t * @return The open date.\n\t */\n\tDate getOpenDate();\n\n\t/**\n\t * @return The percent (0..100) of \"Student\" participants who have viewed this section.\n\t */\n\tInteger getPctViewed();\n\n\t/**\n\t * @return A display title for the section.\n\t */\n\tString getTitle();\n\n\t/**\n\t * @return The total number of \"Student\" participants who have access to this section. TODO: drop\n\t */\n\tInteger getTotal();\n}",
"@Override\n\tpublic Object getItem(int arg0) {\n\t\treturn mDiagnosisItemName[arg0];\n\t}",
"public interface Item {\n \n /**\n * Returns the name of the item\n * @return \n */\n public String getName();\n \n /**\n * Returns the price of the item\n * @return \n */\n public double getPrice();\n \n /**\n * Returns the # of the items\n * @return \n */\n public int getQuantity();\n /**\n * Returns the item type\n * @return ItemCategory\n */\n public ItemCategory getCategory();\n}",
"public void setItemDescription(String description){\r\n\t\tthis.itemDescription = description;\r\n\t}",
"@Override\n public String toString()\n {\n \treturn getName() + \" (\" + numItem + \")\";\n }",
"public java.lang.String getPO_ITEM() {\r\n return PO_ITEM;\r\n }",
"public String getName() {\n\t\treturn itemName;\n\t}",
"public interface Item {\n\n String getName();\n\n String getDescription();\n\n int getSkill(SkillType skillType);\n\n String getSkillDescr();\n}",
"public String getDescription(){\n\t\treturn getiIngredient().getDescription() + \", \" + super.getDescription();\n\t}",
"@Override\n\t\tpublic Object getItem(int p1)\n\t\t\t{\n\t\t\t\treturn is.get(p1);\n\t\t\t}",
"public BoxItem.Info getItem() {\n return this.item;\n }",
"public String getText(T anItem) { return anItem.toString(); }",
"public Item(String description) {\n this.description = description;\n }",
"@Override\n\tpublic String getdescription() {\n\t\treturn this.description.getDesc();\n\t}",
"public Item getItem ()\n\t{\n\t\treturn item;\n\t}",
"public String getDescrizione() {\r\n\t\treturn descrizione;\r\n\t}",
"public synchronized String getName(){\n \treturn item_name;\n }",
"public String getCOD_ITEM() {\n return COD_ITEM;\n }",
"public CPRIMITIVEALTERNATIVES getItem()\n {\n return item;\n }",
"public String getUnlocalizedDescription() {\n return \"qa.journal.item.\" + key + \".desc\";\n }",
"public String getAsString(String itemName, String defaultValue);",
"@Override\n\tpublic LegouResult getDesc(long id) {\n\t\tTbItemDesc tbItemDesc = tbItemDescMapper.selectByPrimaryKey(id);\n\t\t\n\t\treturn LegouResult.ok(tbItemDesc);\n\t}",
"protected ResourceReference getItem()\n\t{\n\t\treturn ITEM;\n\t}",
"public String getDescripcion()\r\n/* 163: */ {\r\n/* 164:299 */ return this.descripcion;\r\n/* 165: */ }",
"public String getNomeDonoItem() {\r\n\t\treturn this.emprestimoid.getNomeDonoItem();\r\n\t}",
"String getTitre();",
"public vrealm_350275.Buyer.Ariba.ERPOrder_PurchOrdSplitDetailsLineItemsItemDescription getDescription() {\n return description;\n }",
"public String getItemsString()\n {\n String vReturnString = \"you got : \"+this.aItemsList.getItemString();\n return vReturnString;\n }",
"public abstract String getListItem (Object obj, int i, String itemProp) \n throws SAFSException;",
"public String getNomeRequerenteItem() {\r\n\t\treturn this.emprestimoid.getNomeRequerenteItem();\r\n\t}",
"public String getDescr() {\r\n return descr;\r\n }",
"public java.lang.String getDescrizione() {\r\n return descrizione;\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"Item [UID=\" + UID + \", TITLE=\" + TITLE + \", NOOFCOPIES=\" + NOOFCOPIES + \"]\";\r\n\t}",
"public String getDescricao();",
"public String getDescrizione() {\n\t\treturn descrizione;\n\t}",
"@Override\n public String getName() {\n return this.desc;\n }",
"public abstract String getDescription(Object value);",
"@Override\n\tpublic String getDisplayName() {\n\t\treturn item.getItemStackDisplayName(stack);\n\t\t//#endif\n\t}",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public Item getItem() {\n\t\treturn this.item;\n\t}",
"public String getItems(String name){\n return \"\";\n }",
"public String getDescription()\r\n {\r\n return this.aDescription ;\r\n }",
"public interface LifeItem{\n List getTitle();\n List getContent();\n}",
"public Item getItem() {\r\n\t\treturn this.item;\r\n\t}",
"@Override\n public String storeItem() {\n return \"N/\" + description;\n }"
] | [
"0.7625851",
"0.72812104",
"0.72352976",
"0.71578705",
"0.7076287",
"0.70065653",
"0.7000547",
"0.6896606",
"0.68605417",
"0.6850386",
"0.6849256",
"0.68165714",
"0.6803543",
"0.6782722",
"0.6765078",
"0.67639554",
"0.6759413",
"0.67516947",
"0.6743416",
"0.67037225",
"0.66769946",
"0.6672127",
"0.6654315",
"0.6635582",
"0.6631519",
"0.66014194",
"0.6582212",
"0.65764445",
"0.65764445",
"0.65764445",
"0.6568588",
"0.6525118",
"0.6505476",
"0.65052354",
"0.65052354",
"0.65052354",
"0.65052354",
"0.65052354",
"0.64557487",
"0.6409102",
"0.6400571",
"0.63954395",
"0.6383152",
"0.63573986",
"0.63531864",
"0.63056254",
"0.63047355",
"0.629514",
"0.62829834",
"0.62827146",
"0.62728685",
"0.6272523",
"0.6265826",
"0.62645274",
"0.62499785",
"0.6247625",
"0.62428993",
"0.62313616",
"0.6229199",
"0.6221968",
"0.6220683",
"0.62118083",
"0.62102765",
"0.6210178",
"0.6189853",
"0.6187758",
"0.61845654",
"0.61823976",
"0.61821425",
"0.61486006",
"0.61328197",
"0.61315346",
"0.6126869",
"0.61258894",
"0.61255366",
"0.6124038",
"0.61150044",
"0.6109017",
"0.6108147",
"0.61073333",
"0.61004794",
"0.6099985",
"0.6093133",
"0.60924524",
"0.6090161",
"0.6088744",
"0.60844976",
"0.6079679",
"0.6069804",
"0.60655683",
"0.60638237",
"0.6049205",
"0.60302854",
"0.60268384",
"0.60268384",
"0.60244983",
"0.6021414",
"0.60069823",
"0.60025984",
"0.5981015"
] | 0.6568062 | 31 |
Methode permmattant de savoir si le player peut prendre un item d'un certaint poid | public boolean canITake(final double pWeight){
return (pWeight+this.aWeight <= this.aStrong) ;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean updatePlayerItem(PlayerItem playerItem);",
"public boolean addPlayerItem(PlayerItem playerItem);",
"public boolean saveNBTToDroppedItem() {\n return true;\n }",
"public abstract boolean depleteItem();",
"private void doItemVerification() {\n\t\tif (actor != null && !actor.attributes.getInventory().contains(Items.FISHING_ROD)) {\r\n\t\t\tactor.say(\"fishing.norod\", getAssigningPlayer());\r\n\t\t\treset();\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tactor.setHeldItem(actor.attributes.getInventory()\r\n\t\t\t\t.getStackInSlot(actor.attributes.getInventory().getFirstSlotContainingItem(Items.FISHING_ROD))\r\n\t\t\t\t.getItem());\r\n\t}",
"public void saveItem(Items item) {\n\t\tItems item1 = itemDao.getItemByName(item.getItems1());\r\n\t\tif (item1 == null) {\r\n\t\t\titemDao.saveItem(item);\r\n\t\t} else if (item1.getItems1().equalsIgnoreCase(item.getItems1())) {\r\n\t\t\tSystem.out.println(\"Item already exists\");\r\n\t\t}\r\n\t}",
"boolean removAble(InputItem item);",
"public void save(Item item) {\r\n \t\tpersistenceManager.save(item);\r\n \t}",
"@Override\n\tpublic boolean doItemOnNpc(Player player, int itemId, Npc npc) {\n\t\treturn false;\n\t}",
"public boolean alterarIDItemCardapio(){\n\t\tif(\tid_item_pedido \t\t> 0 && //Verifica se o item do pedido informado é maior que zero, se existe, se não está fechado, verifica se o item do cardapio informado existe e se está disponível\r\n\t\t\tconsultar().size() \t> 0 && \r\n\t\t\tconsultar().get(5)\t.equals(\"Aberto\")/* &&\r\n\t\t\titem_cardapio.consultar().size()>0 &&\r\n\t\t\titem_cardapio.consultar().get(4).equals(\"Disponível\")*/\r\n\t\t\t){\r\n\t\t\t\r\n\t\t\treturn new Item_Pedido_DAO().alterarIDItemCardapio(id_item_pedido, id_item_cardapio);\t\t\t\r\n\r\n\t\t}else{\r\n\t\t\t\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"@Override\n\tItem save(Item item);",
"public void save() {\r\n\t\tGame.getInstance().getInventory().add(id);\r\n\t}",
"public abstract boolean canAddItem(Player player, Item item, int slot);",
"public void checkItem() {\n Entity t = BombermanGame.checkCollisionItem(this.rectangle);\n if (t instanceof SpeedItem) {\n speed ++;\n ((SpeedItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof FlameItem) {\n flame = true;\n ((FlameItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof BombItem) {\n max_bomb ++;\n ((BombItem) t).afterCollision();\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n\n if (t instanceof Portal) {\n SoundEffect.sound(SoundEffect.mediaPlayerEatItem);\n }\n }",
"public boolean takeItem(Items item)\n { \n boolean itemTaken = false;\n if(!haveItem(item) && currentRoom.haveItem(item)){ //if item in room not inventory\n if(!item.canBeHeld()){ // if item can't be held\n System.out.println (\"This item can not be picked up\");\n }else if(itemsHeld >= itemLimit) { //item can be held but not enough space\n System.out.println(\"Inventory is full. Drop something first\");\n }else{ //item can be held and there is space in inventory\n Inventory.put(item.getName(), item);\n //currentRoom.removeItem(item); //responsibility for this is in cmd_take\n itemsHeld ++; //inventory tracker +1\n itemTaken = true;\n }\n }\n return itemTaken;\n }",
"public boolean isAllowed(Player owner, Item item) {\r\n if (item.getValue() > 50000) {\r\n owner.getActionSender().sendMessage(\"This item is too valuable to trust to this familiar.\");\r\n return false;\r\n }\r\n if (!item.getDefinition().isTradeable()) {\r\n owner.getActionSender().sendMessage(\"You can't trade this item, not even to your familiar.\");\r\n return false;\r\n }\r\n if (!owner.getFamiliarManager().getFamiliar().getDefinition().getName().toLowerCase().contains(\"abyssal\")) {\r\n if (item.getId() == 1436 || item.getId() == 7936 || !item.getDefinition().getConfiguration(ItemConfiguration.BANKABLE, true)) {\r\n owner.getActionSender().sendMessage(\"You can't store \" + item.getName().toLowerCase() + \" in this familiar.\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic void posSave() {\n\t\tfor(ItemRequisicionEta tmpItm : itemsAgregados) {\n\t\t\ttmpItm.setReqEtapa(instance);\n\t\t\tgetEntityManager().persist(tmpItm);\n\t\t}\n\t\tgetEntityManager().refresh(etapaRepCliHome.getInstance());\n\t}",
"public boolean deletePlayerItem(PlayerItem playerItem);",
"public boolean buyItem(int id) {\n Items item = shop.getItem(id);\n if (player.withdrawMoney(item.getCost())) {\n player.changeItem(item);\n return true;\n }\n return false;\n }",
"abstract void applyItem(JuggernautPlayer player, int level);",
"private void createUpdateSound(Item item) throws Exception {\r\n\t //cria o som\r\n new Sound().saveSound(item.getNome());\r\n}",
"private void drink()\n { \n if(i.item3 == true && i.used == false)\n {\n p.energy += 70;\n i.item3 = false;\n i.used = true;\n System.out.println(\"Energy: \" + p.energy);\n }\n else if(i.used == true && i.item3 == false) \n {\n System.out.println(\"You already drank a redbull!\"); \n }\n else if(i.item3 == false && i.used == false)\n {\n System.out.println(\"no more drinks left!\");\n }\n }",
"public void SaveVsPersist() {\n\t\tSession session = HibernateUtil.getSession();\n\t\tTransaction tx = null;\n\t\t\n\t\ttry{\n\t\t\ttx = session.beginTransaction();\n//\t\t\tItem item = new Item(\"Premium Water\", 900);\n//\t\t\titem.setShops(((Item)session.get(Item.class, 1)).getShops());\n//\t\t\t\n//\t\t\t\n//\t\t\tSystem.out.println( \"BEFORE SAVE: \" + item.getId());\n//\t\t\tSystem.out.println(\"-----SAVE-----\");\n//\t\t\tSystem.out.println(\"ID IS:\" + session.save(item));\n//\t\t\t//When saving we are returned the id.\n//\t\t\tSystem.out.println(\"AFTER SAVE:\" + item.getId());\n\t\t\t\n\n\t\t\t\n\t\t\tItem item2 = new Item(\"Deluxe Premium Super Awesome Bargain Water\", 12);\n\t\t\tSystem.out.println(\"-----persist-----\");\n\t\t\tSystem.out.println( \"BEFORE Persist: \" + item2.getId());\n\t\t\tsession.persist(item2);\n\t\t\tSystem.out.println(\"AFTER PERSIST:\" + item2.getId());\n\n\t\t\t//We are not guaranteed an ID right away, so we have to return nothing.\n\t\t\t\n\t\t\ttx.commit();\n\t\t\t\n\t\t}catch(HibernateException e){\n\t\t\tif(tx!=null){\n\t\t\t\ttx.rollback();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}finally{\n\t\t\tsession.close(); \n\t\t}\n\t}",
"private void buyItem(ShopItem item) {\n int gold = world.getCharacter().getGold().get();\n if (world.isSurvivalMode() && item.getName().equals(\"Potion\")){\n this.potionNum = 0;\n System.out.println(\"This shop has 0 Potion left.\");\n }\n if (world.isBerserkerMode() && \n (item.getName().equals(\"Helmet\")\n || item.getName().equals(\"Shield\")\n || item.getName().equals(\"Armour\"))){\n this.defenseNum = 0;\n System.out.println(\"This shop has 0 defensive item left.\");\n }\n if (item.getPrice() > gold) {\n System.out.println(\"You don't have enough money.\");\n }\n loadItem(item.getName());\n world.getCharacter().setGold(gold - item.getPrice());\n System.out.println(\"You have bought Item : \" + item.getName() + \".\");\n }",
"@Override\n \tpublic void onPlayerRespawn(EntityPlayer player) {\n \t\t\n \t\tNBTTagCompound compound = player.getEntityData();\n \t\tif (!compound.hasKey(EntityPlayer.PERSISTED_NBT_TAG)) return;\n \t\tNBTTagCompound persistent = compound.getCompoundTag(EntityPlayer.PERSISTED_NBT_TAG);\n \t\tif (!persistent.hasKey(\"Backpack\")) return;\n \t\tNBTTagCompound backpack = persistent.getCompoundTag(\"Backpack\");\n \t\t\n \t\tint size = backpack.getInteger(\"count\");\n \t\tItemStack[] contents = new ItemStack[size];\n \t\tNbtUtils.readItems(contents, backpack.getTagList(\"Items\"));\n \t\t\n \t\tItemBackpack.getBackpackData(player).contents = contents;\n \t\t\n \t\tpersistent.removeTag(\"Backpack\");\n \t\tif (persistent.hasNoTags())\n \t\t\tcompound.removeTag(EntityPlayer.PERSISTED_NBT_TAG);\n \t\t\n \t}",
"@Override\n public void execute(final Player pPlayer)\n {\n if( ! hasSecondWord())\n {\n GameEngine.aGui.println(\"What Item do tou want to drop ?\");\n }\n else\n {\n String vC = getSecondWord();\n Item vItemInv = pPlayer.getInventaire().get(vC);\n\n if( vItemInv == null)\n {\n GameEngine.aGui.println(\"You don't have this Item in you're possession\");\n }\n else\n {\n pPlayer.removeInventaire(vC);\n pPlayer.getCurrentRoom().getItems().put(vItemInv);\n GameEngine.aGui.println(\"You droped this \" + vItemInv.getName());\n }\n }\n }",
"public boolean checkItem () {\r\n\t\tfor (Entity e : getLocation().getWorld().getEntities())\r\n\t\t{\r\n\t\t\tdouble x = e.getLocation().getX();\r\n\t\t\tdouble z = e.getLocation().getZ();\r\n\t\t\tdouble yDiff = getSpawnLocation().getY() - e.getLocation().getY();\r\n \r\n\t\t\tif (yDiff < 0)\r\n\t\t\t\tyDiff *= -1;\r\n\r\n\t\t\tif (x == getSpawnLocation().getX() && yDiff <= 1.5 && z == getSpawnLocation().getZ()) {\r\n \r\n ShowCaseStandalone.slog(Level.FINEST, \"Potential hit on checkItem()\");\r\n\t\t\t\ttry {\r\n\t\t\t\t\tItem itemE = (Item)e;\r\n\t\t\t\t\tif (ItemStackHandler.itemsEqual(itemE.getItemStack(), getItemStack(), true)) {\r\n ShowCaseStandalone.slog(Level.FINEST, \"Existing stack: \" + itemE.getItemStack().toString());\r\n itemE.getItemStack().setAmount(1); //Removes duped items, which can occur.\r\n\t\t\t\t\t\tthis.item = itemE;\r\n\t\t\t\t\t\tscs.log(Level.FINER, \"Attaching to existing item.\");\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception ex) {}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void dropItem(Item seekItem)\n {\n //get each item from the items's array list.\n for (Item item : items){\n if(item.getName().equals(seekItem.getName())){\n currentRoom.getInventory().getItems().add(item);\n removePlayerItem(item);\n System.out.println(\"You have placed the \"+ item.getName() +\" in the \" + currentRoom.getName() + \".\");\n }\n }\n }",
"private void givePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \tentityplayer.inventory.setItemStack(item);\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n itemstack3.stackSize += k1;\n }\n }\n }",
"@Override\n\tpublic void posSave() {\n\t\t\n\t}",
"@Override\n\tpublic void posSave() {\n\t\t\n\t}",
"public void isBought(Player p){\n\t\towner = p;\n\t\tisOwned=true;\n\t}",
"@Test\n\tpublic void testPickUpItem() {\n\t\tSquare square = new Square();\n\t\tItem item = new LightGrenade();\n\t\t\n\t\tsquare.addItem(item);\n\t\t\n\t\tPlayer player = new Player(square, 0);\n\t\tassertEquals(0, player.getAllItems().size());\n\t\tassertFalse(player.hasItem(item));\n\t\t\n\t\tplayer.pickUp(item);\n\t\tassertTrue(player.hasItem(item));\n\t}",
"private void saveGame(){\n\t\t\n\t}",
"public Boolean add(Item item) {\n \tif (itemCollection.containsKey(item.getItemName())) {\r\n \tif (checkAvailability(item, 1)) {\r\n \t\titem.setQuatity(item.getQuatity() + 1);\r\n \t\titemCollection.put(item.getItemName(), item);\r\n \t\treturn true;\r\n \t} else return false;\r\n } else {\r\n \titemCollection.put(item.getItemName(), item);\r\n \treturn true;\r\n }\r\n \t\r\n }",
"private void savePlayers() {\r\n this.passive_players.stream()\r\n .filter(E -> E.isChanged())\r\n .forEach(e -> {\r\n e.save();\r\n });\r\n }",
"@Override\n public void setEquippedItem(IEquipableItem item) {}",
"@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}",
"private void sellItem(ShopItem item) {\n if (!world.ifHasItem(item.getName())) {\n System.out.println(\"You don't have Item : \" + item.getName());\n return;\n }\n world.removeItem(item.getName());\n int gold = world.getCharacter().getGold().get();\n world.getCharacter().setGold(gold + item.getPrice());\n System.out.println(\"You have sold Item : \" + item.getName());\n }",
"public boolean dropItem(Items item)\n {\n boolean itemDropped = false;\n if(haveItem(item) && !currentRoom.haveItem(item)){ //if item in inventory not room\n \n Inventory.remove(item.getName(), item);\n //currentRoom.removeItem(item); //responsibility for this is in cmd_take\n itemsHeld --; //inventory tracker -1\n itemDropped = true;\n \n }\n return itemDropped;\n //if(haveItem(item))\n //Inventory.remove(item);\n //itemsHeld --; //inventory tracker -1\n \n }",
"public boolean checkOutItem(Item item)\n {\n \t return memberItems.add(item);\n }",
"public void onAdicionarItemTroca()\n\t{\n\t\t\n\t}",
"@Override\n public void collideEffect(GameItem gameItem) {\n Score score = new Score(getGame());\n if(gameItem.getItemType() == \"voleur\"){\n this.getGame().remove(this);\n this.generateurButin.enlever();\n if(this.generateurButin.getNbArgent() <=0 ){\n this.getGame().die();\n }\n }\n }",
"public void isPurchased(Player player) {\n\t}",
"@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }",
"public void pickUp(String itemName, World world) {\n\t\tItem item = world.dbItems().get(itemName);\n\t\tRoom room = super.getRoom();\n\t\tList<Item> roomItems = room.getItems();\n\n\t\tif (roomItems.contains(item)) {\n\t\t\tif (checkCapacity(item)) {\n\t\t\t\tsuper.addItem(item);\n\t\t\t\troom.removeItem(item);\n\t\t\t\tSystem.out.println(\"Picked up \" + item);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Not enough capacity.\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"No item '\" + itemName + \"' in the room.\");\n\t\t}\n\t}",
"public void save() throws IOException {\n/* 481 */ Connection dbcon = null;\n/* 482 */ PreparedStatement ps = null;\n/* */ \n/* */ try {\n/* 485 */ CreaturePos pos = CreaturePos.getPosition(this.wurmid);\n/* 486 */ if (pos != null) {\n/* */ \n/* 488 */ pos.setPosX(this.posx);\n/* 489 */ pos.setPosY(this.posy);\n/* 490 */ pos.setPosZ(this.posz, false);\n/* 491 */ pos.setRotation(this.rotation);\n/* 492 */ pos.setZoneId(this.zoneid);\n/* 493 */ pos.setLayer(0);\n/* */ } else {\n/* */ \n/* 496 */ new CreaturePos(this.wurmid, this.posx, this.posy, this.posz, this.rotation, this.zoneid, 0, -10L, true);\n/* 497 */ } dbcon = DbConnector.getPlayerDbCon();\n/* 498 */ if (exists(dbcon)) {\n/* */ \n/* 500 */ ps = dbcon.prepareStatement(\"DELETE FROM PLAYERS WHERE WURMID=?\");\n/* 501 */ ps.setLong(1, this.wurmid);\n/* 502 */ ps.executeUpdate();\n/* 503 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* 505 */ ps = dbcon.prepareStatement(\"insert into PLAYERS (MAYUSESHOP,PASSWORD,WURMID,LASTLOGOUT,PLAYINGTIME,TEMPLATENAME,SEX,CENTIMETERSHIGH,CENTIMETERSLONG,CENTIMETERSWIDE,INVENTORYID,BODYID,MONEYSALES,BUILDINGID,STAMINA,HUNGER,THIRST,IPADDRESS,REIMBURSED,PLANTEDSIGN,BANNED,PAYMENTEXPIRE,POWER,RANK,DEVTALK,WARNINGS,LASTWARNED,FAITH,DEITY,ALIGNMENT,GOD,FAVOR,LASTCHANGEDDEITY,REALDEATH,CHEATED,LASTFATIGUE,FATIGUE,DEAD,KINGDOM,SESSIONKEY,SESSIONEXPIRE,VERSION,MUTED,LASTFAITH,NUMFAITH,MONEY,CLIMBING,NUMSCHANGEDKINGDOM,AGE,LASTPOLLEDAGE,FAT,BANEXPIRY,BANREASON,FACE,REPUTATION,LASTPOLLEDREP,TITLE,PET,NICOTINE,NICOTINETIME,ALCOHOL,ALCOHOLTIME,LOGGING,MAYMUTE,MUTEEXPIRY,MUTEREASON,LASTSERVER,CURRENTSERVER,REFERRER,EMAIL,PWQUESTION,PWANSWER,PRIEST,BED,SLEEP,CREATIONDATE,THEFTWARNED,NOREIMB,DEATHPROT,FATIGUETODAY,FATIGUEYDAY,FIGHTMODE,NEXTAFFINITY,DETECTIONSECS,TUTORIALLEVEL,AUTOFIGHT,APPOINTMENTS,PA,APPOINTPA,PAWINDOW,NUTRITION,DISEASE,PRIESTTYPE,LASTCHANGEDPRIEST,LASTCHANGEDKINGDOM,LASTLOSTCHAMPION,CHAMPIONPOINTS,CHAMPCHANNELING,MUTETIMES,VOTEDKING,EPICKINGDOM,EPICSERVER,CHAOSKINGDOM,FREETRANSFER,HOTA_WINS,LASTMODIFIEDRANK,MAXRANK,KARMA,MAXKARMA,TOTALKARMA,BLOOD,FLAGS,FLAGS2,ABILITIES,ABILITYTITLE,SCENARIOKARMA,UNDEADTYPE,UNDEADKILLS,UNDEADPKILLS,UNDEADPSECS,NAME,CALORIES,CARBS,FATS,PROTEINS,SECONDTITLE) VALUES(?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?, ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\");\n/* 506 */ ps.setBoolean(1, this.overrideshop);\n/* 507 */ ps.setString(2, this.password);\n/* 508 */ ps.setLong(3, this.wurmid);\n/* 509 */ ps.setLong(4, System.currentTimeMillis());\n/* 510 */ ps.setLong(5, this.playingTime);\n/* 511 */ ps.setString(6, this.templateName);\n/* 512 */ ps.setByte(7, this.sex);\n/* 513 */ ps.setShort(8, this.centhigh);\n/* 514 */ ps.setShort(9, this.centlong);\n/* 515 */ ps.setShort(10, this.centwide);\n/* 516 */ ps.setLong(11, this.inventoryId);\n/* 517 */ ps.setLong(12, this.bodyId);\n/* 518 */ ps.setLong(13, this.moneySalesEver);\n/* 519 */ ps.setLong(14, this.buildingId);\n/* 520 */ ps.setShort(15, (short)this.stamina);\n/* 521 */ ps.setShort(16, (short)this.hunger);\n/* 522 */ ps.setShort(17, (short)this.thirst);\n/* 523 */ ps.setString(18, this.lastip);\n/* 524 */ ps.setBoolean(19, this.reimbursed);\n/* 525 */ ps.setLong(20, this.plantedSign);\n/* 526 */ ps.setBoolean(21, this.banned);\n/* 527 */ ps.setLong(22, this.paymentExpire);\n/* 528 */ ps.setByte(23, this.power);\n/* 529 */ ps.setInt(24, this.rank);\n/* 530 */ ps.setBoolean(25, this.mayHearDevtalk);\n/* 531 */ ps.setShort(26, (short)this.warnings);\n/* 532 */ ps.setLong(27, this.lastwarned);\n/* 533 */ ps.setFloat(28, this.faith);\n/* 534 */ ps.setByte(29, this.deity);\n/* 535 */ ps.setFloat(30, this.align);\n/* 536 */ ps.setByte(31, this.god);\n/* 537 */ ps.setFloat(32, this.favor);\n/* 538 */ ps.setLong(33, this.lastChangedDeity);\n/* 539 */ ps.setByte(34, this.realdeathcounter);\n/* 540 */ ps.setLong(35, this.lastcheated);\n/* 541 */ ps.setLong(36, this.lastfatigue);\n/* 542 */ ps.setInt(37, this.fatiguesecsleft);\n/* 543 */ ps.setBoolean(38, this.dead);\n/* 544 */ ps.setByte(39, this.kingdom);\n/* 545 */ ps.setString(40, this.session);\n/* 546 */ ps.setLong(41, this.sessionExpiration);\n/* 547 */ ps.setLong(42, this.ver);\n/* 548 */ ps.setBoolean(43, this.mute);\n/* 549 */ ps.setLong(44, this.lastfaith);\n/* 550 */ ps.setByte(45, this.numfaith);\n/* 551 */ ps.setLong(46, this.money);\n/* 552 */ ps.setBoolean(47, this.climbing);\n/* 553 */ ps.setByte(48, this.changedKingdom);\n/* 554 */ ps.setInt(49, this.age);\n/* 555 */ ps.setLong(50, this.lastPolledAge);\n/* 556 */ ps.setByte(51, this.fat);\n/* 557 */ ps.setLong(52, this.banexpiry);\n/* 558 */ ps.setString(53, this.banreason);\n/* 559 */ ps.setLong(54, this.face);\n/* 560 */ ps.setInt(55, this.reputation);\n/* 561 */ ps.setLong(56, this.lastPolledReputation);\n/* 562 */ ps.setInt(57, this.title);\n/* 563 */ ps.setLong(58, this.pet);\n/* 564 */ ps.setFloat(59, this.nicotine);\n/* 565 */ ps.setLong(60, this.nicotineTime);\n/* 566 */ ps.setFloat(61, this.alcohol);\n/* 567 */ ps.setLong(62, this.alcoholTime);\n/* 568 */ ps.setBoolean(63, this.logging);\n/* 569 */ ps.setBoolean(64, this.mayMute);\n/* 570 */ ps.setLong(65, this.muteexpiry);\n/* 571 */ ps.setString(66, this.mutereason);\n/* 572 */ ps.setInt(67, this.lastServer);\n/* 573 */ ps.setInt(68, this.currentServer);\n/* 574 */ ps.setLong(69, this.referrer);\n/* 575 */ ps.setString(70, this.emailAdress);\n/* 576 */ ps.setString(71, this.pwQuestion);\n/* 577 */ ps.setString(72, this.pwAnswer);\n/* 578 */ ps.setBoolean(73, this.isPriest);\n/* 579 */ ps.setLong(74, this.bed);\n/* 580 */ ps.setInt(75, this.sleep);\n/* 581 */ ps.setLong(76, this.creationDate);\n/* 582 */ ps.setBoolean(77, this.istheftwarned);\n/* 583 */ ps.setBoolean(78, this.noReimbLeft);\n/* 584 */ ps.setBoolean(79, this.deathProt);\n/* 585 */ ps.setInt(80, this.fatigueSecsToday);\n/* 586 */ ps.setInt(81, this.fatigueSecsYday);\n/* 587 */ ps.setByte(82, this.fightmode);\n/* 588 */ ps.setLong(83, this.nextAffinity);\n/* 589 */ ps.setShort(84, this.detectionSecs);\n/* 590 */ ps.setInt(85, this.tutLevel);\n/* 591 */ ps.setBoolean(86, this.autofight);\n/* 592 */ ps.setLong(87, this.appointments);\n/* 593 */ ps.setBoolean(88, this.isPA);\n/* 594 */ ps.setBoolean(89, this.mayAppointPA);\n/* 595 */ ps.setBoolean(90, this.seesPAWin);\n/* 596 */ ps.setFloat(91, this.nutrition);\n/* 597 */ ps.setByte(92, this.disease);\n/* 598 */ ps.setByte(93, this.priestType);\n/* 599 */ ps.setLong(94, this.lastChangedPriestType);\n/* 600 */ ps.setLong(95, this.lastChangedKingdom);\n/* 601 */ ps.setLong(96, this.lastLostChampion);\n/* 602 */ ps.setShort(97, this.championPoints);\n/* 603 */ ps.setFloat(98, this.champChanneling);\n/* 604 */ ps.setShort(99, this.muteTimes);\n/* 605 */ ps.setBoolean(100, this.voteKing);\n/* 606 */ ps.setByte(101, this.epicKingdom);\n/* 607 */ ps.setInt(102, this.epicServerId);\n/* 608 */ ps.setInt(103, this.chaosKingdom);\n/* 609 */ ps.setBoolean(104, this.hasFreeTransfer);\n/* 610 */ ps.setShort(105, this.hotaWins);\n/* */ \n/* 612 */ ps.setLong(106, this.lastModifiedRank);\n/* 613 */ ps.setInt(107, this.maxRank);\n/* 614 */ ps.setInt(108, this.karma);\n/* 615 */ ps.setInt(109, this.maxKarma);\n/* 616 */ ps.setInt(110, this.totalKarma);\n/* 617 */ ps.setByte(111, this.blood);\n/* 618 */ ps.setLong(112, this.flags);\n/* 619 */ ps.setLong(113, this.flags2);\n/* 620 */ ps.setLong(114, this.abilities);\n/* 621 */ ps.setInt(115, this.abilityTitle);\n/* 622 */ ps.setInt(116, this.scenarioKarma);\n/* */ \n/* 624 */ ps.setByte(117, this.undeadType);\n/* 625 */ ps.setInt(118, this.undeadKills);\n/* 626 */ ps.setInt(119, this.undeadPKills);\n/* 627 */ ps.setInt(120, this.undeadPSecs);\n/* */ \n/* 629 */ ps.setString(121, this.name);\n/* 630 */ ps.setFloat(122, this.calories);\n/* 631 */ ps.setFloat(123, this.carbs);\n/* 632 */ ps.setFloat(124, this.fats);\n/* 633 */ ps.setFloat(125, this.proteins);\n/* */ \n/* 635 */ ps.setInt(126, this.secondTitle);\n/* */ \n/* 637 */ ps.executeUpdate();\n/* 638 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ \n/* 640 */ Players.getInstance().registerNewKingdom(this.wurmid, this.kingdom);\n/* */ \n/* 642 */ ps = dbcon.prepareStatement(\"DELETE FROM FRIENDS WHERE WURMID=?\");\n/* 643 */ ps.setLong(1, this.wurmid);\n/* 644 */ ps.executeUpdate();\n/* 645 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ \n/* 647 */ if (this.friends != null)\n/* */ {\n/* 649 */ for (int x = 0; x < this.friends.length; x++) {\n/* */ \n/* 651 */ ps = dbcon.prepareStatement(INSERT_FRIEND);\n/* 652 */ ps.setLong(1, this.wurmid);\n/* 653 */ ps.setLong(2, this.friends[x]);\n/* 654 */ ps.setByte(3, this.friendcats[x]);\n/* 655 */ ps.executeUpdate();\n/* 656 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* */ }\n/* */ \n/* 660 */ ps = dbcon.prepareStatement(\"DELETE FROM IGNORED WHERE WURMID=?\");\n/* 661 */ ps.setLong(1, this.wurmid);\n/* 662 */ ps.executeUpdate();\n/* 663 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ \n/* 665 */ if (this.ignored != null)\n/* */ {\n/* 667 */ for (int x = 0; x < this.ignored.length; x++) {\n/* */ \n/* 669 */ ps = dbcon.prepareStatement(INSERT_IGNORED);\n/* 670 */ ps.setLong(1, this.wurmid);\n/* 671 */ ps.setLong(2, this.ignored[x]);\n/* 672 */ ps.executeUpdate();\n/* 673 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* */ }\n/* */ \n/* 677 */ if (this.enemies != null)\n/* */ {\n/* 679 */ for (int x = 0; x < this.enemies.length; x++) {\n/* */ \n/* 681 */ ps = dbcon.prepareStatement(INSERT_ENEMY);\n/* 682 */ ps.setLong(1, this.wurmid);\n/* 683 */ ps.setLong(2, this.enemies[x]);\n/* 684 */ ps.executeUpdate();\n/* 685 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* */ }\n/* */ \n/* 689 */ if (this.titleArr.length > 0)\n/* */ {\n/* 691 */ for (int x = 0; x < this.titleArr.length; x++) {\n/* */ \n/* 693 */ Titles.Title t = Titles.Title.getTitle(this.titleArr[x]);\n/* 694 */ if (t != null) {\n/* */ \n/* 696 */ ps = dbcon.prepareStatement(\"INSERT INTO TITLES (WURMID,TITLEID,TITLENAME) VALUES(?,?,?)\");\n/* 697 */ ps.setLong(1, this.wurmid);\n/* 698 */ ps.setInt(2, this.titleArr[x]);\n/* 699 */ ps.setString(3, t.getName(true));\n/* 700 */ ps.executeUpdate();\n/* 701 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* */ } \n/* */ }\n/* */ \n/* 706 */ if (this.hasAwards) {\n/* */ \n/* 708 */ ps = dbcon.prepareStatement(\"DELETE FROM AWARDS WHERE WURMID=?\");\n/* 709 */ ps.setLong(1, this.wurmid);\n/* 710 */ ps.executeUpdate();\n/* 711 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ \n/* 713 */ ps = dbcon.prepareStatement(\"INSERT INTO AWARDS(WURMID, DAYSPREM, MONTHSPREM, MONTHSEVER, CONSECMONTHS, SILVERSPURCHASED, LASTTICKEDPREM, CURRENTLOYALTY, TOTALLOYALTY) VALUES(?,?,?,?,?,?,?,?,?)\");\n/* 714 */ ps.setLong(1, this.wurmid);\n/* 715 */ ps.setInt(2, this.daysPrem);\n/* 716 */ ps.setInt(3, this.monthsPaidSinceReset);\n/* 717 */ ps.setInt(4, this.monthsPaidEver);\n/* 718 */ ps.setInt(5, this.monthsPaidInARow);\n/* 719 */ ps.setInt(6, this.silverPaidEver);\n/* 720 */ ps.setLong(7, this.lastTicked);\n/* 721 */ ps.setInt(8, this.currentLoyaltyPoints);\n/* 722 */ ps.setInt(9, this.totalLoyaltyPoints);\n/* 723 */ ps.executeUpdate();\n/* 724 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* */ } \n/* 726 */ if (this.cooldowns.size() > 0)\n/* */ {\n/* 728 */ Cooldowns cd = Cooldowns.getCooldownsFor(this.wurmid, true);\n/* 729 */ for (Map.Entry<Integer, Long> ent : this.cooldowns.entrySet())\n/* */ {\n/* 731 */ cd.addCooldown(((Integer)ent.getKey()).intValue(), ((Long)ent.getValue()).longValue(), false);\n/* */ }\n/* */ }\n/* */ \n/* 735 */ } catch (SQLException sqex) {\n/* */ \n/* 737 */ logger.log(Level.WARNING, this.name + \" \" + sqex.getMessage(), sqex);\n/* 738 */ throw new IOException(sqex);\n/* */ }\n/* */ finally {\n/* */ \n/* 742 */ DbUtilities.closeDatabaseObjects(ps, null);\n/* 743 */ DbConnector.returnConnection(dbcon);\n/* */ } \n/* */ }",
"@Override\n @Test\n public void equipAnimaTest() {\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.equipItem(anima);\n assertFalse(sorcererAnima.getItems().contains(anima));\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.addItem(anima);\n sorcererAnima.equipItem(anima);\n assertEquals(anima,sorcererAnima.getEquippedItem());\n }",
"public void saveExisting() {\r\n Part modifiedPart = null;\r\n for (Part part : Inventory.getAllParts()) {\r\n if (Integer.parseInt(iDfield.getText()) == part.getId()) {\r\n modifiedPart = part;\r\n }\r\n }\r\n if (modifiedPart instanceof Outsourced && inHouseSelected) {\r\n replacePart(modifiedPart);\r\n\r\n } else if (modifiedPart instanceof InHouse && !inHouseSelected) {\r\n replacePart(modifiedPart);\r\n } else {\r\n modifiedPart.setName(nameField.getText());\r\n modifiedPart.setStock(Integer.parseInt(invField.getText()));\r\n modifiedPart.setPrice(Double.parseDouble(priceField.getText()));\r\n modifiedPart.setMax(Integer.parseInt(maxField.getText()));\r\n modifiedPart.setMin(Integer.parseInt(minField.getText()));\r\n if (inHouseSelected) {\r\n ((InHouse) modifiedPart).setMachineId(Integer.parseInt(machineOrCompanyField.getText()));\r\n } else {\r\n ((Outsourced) modifiedPart).setCompanyName(machineOrCompanyField.getText());\r\n }\r\n\r\n Inventory.updatePart(Inventory.getAllParts().indexOf(modifiedPart), modifiedPart);\r\n }\r\n\r\n }",
"@Override\n\tpublic boolean updateItem(DetallePedido detallePedido) throws Exception {\n\t\treturn false;\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 }",
"private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }",
"public static void handleRestorePotionShare(Player player, Item item) {\n\t\t\n\t}",
"public void save()\n\t{\t\n\t\tfor (Preis p : items) {\n\t\t\titmDAO.create(p.getItem());\n\t\t\tprcDAO.create(p);\n\t\t}\n\t\tstrDAO.create(this);\n\t}",
"public boolean savePlayer(P player){\n String uuid = player.getUniqueId().toString();\n\n if(playerMap.containsKey(player)){\n //Player is safe to save\n List<String> playerAttributes = new ArrayList<String>(getPlayer(player).getPlayerAttributes());\n\n System.out.println(player.getName() + \" has \" + playerAttributes.size() + \" attributes to save.\");\n\n for(int i = 0; playerAttributes.size() > i; i++){\n data.getConfig().set(uuid + \".\" + playerAttributes.get(i), playerMap.get(player).getPlayerAttribute(playerAttributes.get(i)));\n }\n\n data.saveData();\n\n for(int i = 0; playerAttributes.size() > i; i++){\n System.out.println(\"Saved \" + uuid + \".\" + playerAttributes.get(i) + \" as \" + playerMap.get(player).getPlayerAttribute(playerAttributes.get(i)));\n }\n\n return true;\n } else {\n //Player isn't safe to save\n System.out.println(\"Tried to save player \" + player.getName() + \"'s data, but it's not available\");\n return false;\n }\n }",
"@Test\n public void notSell() {\n Game game = Game.getInstance();\n Player player = new Player(\"ED\", 4, 4, 4,\n 4, SolarSystems.GHAVI);\n game.setPlayer(player);\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(2, Goods.Water));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(1, Goods.Food));\n game.getPlayer().getShip().getShipCargo().add(new CargoItem(0, Goods.Furs));\n CargoItem good = game.getPlayer().getShip().getShipCargo().get(2);\n \n int oldCredits = game.getPlayer().getCredits();\n good.getGood().sell(good.getGood(), 1);\n \n CargoItem water = game.getPlayer().getShip().getShipCargo().get(0);\n CargoItem food = game.getPlayer().getShip().getShipCargo().get(1);\n water.setQuantity(2);\n food.setQuantity(1);\n good.setQuantity(0);\n //int P = good.getGood().getPrice(1);\n int curr = game.getPlayer().getCredits();\n //boolean qn = water.getQuantity() == 2 && food.getQuantity() == 1 && good.getQuantity() == 0;\n boolean check = water.getQuantity() == 2;\n System.out.print(curr);\n assertEquals(curr, oldCredits);\n }",
"@Test\n public void testUpdatePositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n\n item.setType(ItemTypes.NON_ALCOHOLIC_BEVERAGE);\n itemDao.update(item);\n\n Item itemDB = itemDao.read(item.getName());\n Assert.assertEquals(itemDB, item);\n }",
"@Override\n public Item vendItem(Item item) {\n allItems.put(item.getItemId(), item);\n return item;\n }",
"void onItemStored(EntityId storedItem);",
"@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }",
"private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }",
"public void save()\n\t{\n\t\tif(entity != null)\n\t\t\t((SaveHandler)DimensionManager.getWorld(0).getSaveHandler()).writePlayerData(entity);\n\t}",
"public abstract boolean attack(KillableItem i);",
"public boolean loot(GItem i, GameWorld world) {\n\t\tif(add(i)){\r\n\t\t\tworld.deSpawn(i);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t\t\t\r\n\t}",
"@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }",
"public void saveData() {\n if (dataComplete()) {\n if(validLengths())\n {\n Item old_item = items.get(item_index);\n int item_purchase_status = 0;\n if (!item_purchased.isChecked()) {\n item_purchase_status = 1;\n }\n\n ds.open();\n Item new_item = new Item(old_item.id, item_name.getText().toString(), item_category.getText().toString(),\n item_description.getText().toString(), Double.parseDouble(item_price.getText().toString()), item_purchase_status);\n boolean success = ds.editEntry(new_item);\n ds.close();\n\n if (success) {\n exit();\n } else {\n empty_error.setVisibility(empty_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.VISIBLE);\n }\n }\n else\n {\n empty_error.setVisibility(empty_error.INVISIBLE);\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.VISIBLE);\n }\n } else {\n unexpected_error.setVisibility(unexpected_error.INVISIBLE);\n overflow_error.setVisibility(overflow_error.INVISIBLE);\n empty_error.setVisibility(empty_error.VISIBLE);\n }\n }",
"private static synchronized boolean save(TrackingItem i, Context context) {\n SharedPreferences p = context.getSharedPreferences(TRACKING_EVENTS_STORAGE, Context.MODE_PRIVATE); // MODE_PRIVATE -> check for api level 11 > multi!\n SharedPreferences.Editor e = p.edit();\n e.putString(Long.toString(i.getTime()), i.getTrack());\n\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.GINGERBREAD) {\n return e.commit();\n } else {\n e.apply();\n return true;\n }\n }",
"private boolean canGivePlayer(ItemStack item,EntityPlayer entityplayer){\n ItemStack itemstack3 = entityplayer.inventory.getItemStack();\n if(itemstack3 == null){\n \treturn true;\n }\n else if(NoppesUtilPlayer.compareItems(itemstack3, item, false, false)){\n int k1 = item.stackSize;\n if(k1 > 0 && k1 + itemstack3.stackSize <= itemstack3.getMaxStackSize())\n {\n return true;\n }\n }\n return false;\n }",
"protected void save(T item) {\n\t\tSession session = null;\n\t\ttry {\n\t\t\tsession = mDbHelper.beginTransaction();\n\t\t\tsession.save(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 save\");\n\t\t}\n\t}",
"public abstract boolean canRemoveItem(Player player, Item item, int slot);",
"public void pickUp(Item item) {\n this.curItem = item;\n this.curItem.setNonDamagablePlayer(this);\n if (item instanceof PickupableWeaponHolder) {\n this.weapon = ((PickupableWeaponHolder)(item)).getWeapon();\n }\n }",
"public boolean pickedup(Player player) {\n\t\treturn false;\n\t}",
"boolean canBuy( final Item item )\n {\n return !ship.contains( item ) && item.getPrice() <= credits;\n }",
"private void insertOrUpdateItem(){\n Toaster toaster = new Toaster(getContext());\n DBManager dbManager = new DBManager(getContext());\n if((Afegir.getText() == getText(R.string.actualitza) && updateItem(dbManager)) ||\n (Afegir.getText() == getText(R.string.afegir) && insertItem(dbManager))){\n\n ((MainActivity) getActivity()).swapFrameLayoutVisibility(true);\n ((MainActivity) getActivity()).refreshListView();\n toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.commit_insert).toString(), null);\n reset(true);\n }\n\n else toaster.customizedToast(getLayoutInflater(), getView(), getText(R.string.reboke_action).toString(), getContext().getDrawable(R.drawable.ic_error_vector));\n }",
"public void updatePile(Item pile) {\n/* 2385 */ checkIfRenamePileItem(pile);\n/* */ }",
"public boolean use(Inventory i, Player p);",
"public PerishableItem(){\n super();\n //perishable = false;\n }",
"public boolean canAttackWithItem() {\n/* 215 */ return false;\n/* */ }",
"public abstract void commitMiembrosDeEquipo();",
"public void itemOkay() \r\n\t{\n\t\t\r\n\t}",
"private boolean GO() {\r\n if (save >= saves.length) {\r\n saves = Arrays.copyOf(saves, saves.length * 2);\r\n }\r\n saves[save++] = in;\r\n return true;\r\n }",
"private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }",
"void onInsertHeldContainer(EntityPlayerMP player);",
"public void update(){\n\t\tif(saveTimer < 300) saveTimer ++;\n\t\ttimer ++;\n\t\t\n\t\tif(JudokaComponent.input.up) selectedItem --;\n\t\tif(JudokaComponent.input.down) selectedItem ++;\n\t\tif(JudokaComponent.input.right) selectedItem = 8;\n\t\tif(JudokaComponent.input.left) selectedItem = 0;\n\t\tif(JudokaComponent.input.escape) JudokaComponent.changeMenu(JudokaComponent.MAIN);\n\t\t\n\t\tif(selectedItem < -1) selectedItem = -1;\n\t\tif(selectedItem > 8) selectedItem = 8;\n\t\t\n\t\tif(selectedItem == -1) {\n\t\t\tname += JudokaComponent.input.getTypedKey();\n\t\t\tif(JudokaComponent.input.backSpace && name.length() > 0) name = name.substring(0, name.length() - 1);\n\t\t\tif(name.length() > 16) name = name.substring(0, name.length() - 1);\n\t\t}\n\t\t\n\t\tif(JudokaComponent.input.enter) {\n\t\t\tif(selectedItem > 1 && selectedItem < 5)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{0, selectedItem});\n\t\t\telse if(selectedItem > 4 && selectedItem != 8)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{1, selectedItem});\n\t\t\telse if(selectedItem == 0)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{3, selectedItem});\n\t\t\telse if(selectedItem == 1)JudokaComponent.changeMenu(JudokaComponent.TECHNIQUE_PICKER, new Object[]{4, selectedItem});\n\t\t\telse if(selectedItem == 8){\n\t\t\t\tboolean notReadyToSave = false;\n\t\t\t\tfor(Technique t: techniques) {\n\t\t\t\t\tif(t == null ) notReadyToSave = true;\n\t\t\t\t}\n\t\t\t\tif (!notReadyToSave){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tJudokaComponent.propertyFileHandler.saveJudoka(techniques, name);\n\t\t\t\t\t\tsaveTimer = 0;\n\t\t\t\t\t} catch (FileNotFoundException e) { e.printStackTrace();\n\t\t\t\t\t} catch (ParserConfigurationException e) { e.printStackTrace();\n\t\t\t\t\t} catch (IOException e) { e.printStackTrace(); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t//Overflow handler\n\t\tif(timer == Integer.MAX_VALUE) timer = 0;\n\t}",
"private void valivate(Item item) {\n if(item == null)\n throw new IllegalArgumentException(\"the item is null\");\n }",
"@Override\n public void onSmelting(EntityPlayer player, ItemStack item) {\n }",
"private void tryEquipItem() {\n if (fakePlayer.get().getHeldItem(EnumHand.MAIN_HAND).isEmpty()) {\n ItemStack unbreakingPickaxe = new ItemStack(Items.DIAMOND_PICKAXE, 1);\n unbreakingPickaxe.addEnchantment(Enchantments.EFFICIENCY, 3);\n unbreakingPickaxe.setTagCompound(new NBTTagCompound());\n unbreakingPickaxe.getTagCompound().setBoolean(\"Unbreakable\", true);\n fakePlayer.get().setItemStackToSlot(EntityEquipmentSlot.MAINHAND, unbreakingPickaxe);\n }\n }",
"public void playerUseItem(Player player, Item item) {\n\t\tif (item instanceof FloatingDevice) {\n\t\t\tplayer.setHasFloatingDevice(!player.getHasFloatingDevice());\n\t\t} else if (item instanceof Teleporter) {\n\t\t\tplayer.getTile().setGameObject(null);\n\t\t\tplayer.setLocation(0);\n\t\t\tTile t;\n\t\t\tif (!(player.getLocation().getTileAtPosition(new Position(5, 5)).getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 5))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 5)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(4, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(4, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t} else if (!(player.getLocation().getTileAtPosition(new Position(5, 4))\n\t\t\t\t\t.getGameObject() instanceof Player)) {\n\t\t\t\tplayer.setTile(player.getLocation().getTileAtPosition(new Position(5, 4)));\n\t\t\t\tplayer.getTile().setGameObject(player);\n\t\t\t}\n\t\t\tplayer.getInventory().remove(item);\n\n\t\t} else if (item instanceof FishingRod) {\n\t\t\tif (player.getLocation().getTileInDirection(player.getTile().getPos(),\n\t\t\t\t\tplayer.getFacing()) instanceof WaterTile) {\n\t\t\t\tif (player.inventoryIsFull()) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\"You can't fish now, you have no room for the spoils\",\n\t\t\t\t\t\t\tplayer);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tint randy = (int) (Math.random() * 5);\n\t\t\t\tif (randy == 0) {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"You caught a fish against all odds, sadly your rod was lost in the process\", player);\n\t\t\t\t\tplayer.getInventory().remove(item);\n\t\t\t\t\tplayer.pickUpItem(new Fish(\"Fish\"));\n\t\t\t\t} else {\n\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\"A nibble felt, however sometimes we just aren't that lucky\", player);\n\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"Harambe is disgusted with you incompetence, you can't fish on land fool!\", player);\n\t\t\t}\n\t\t}\n\t}",
"public Purchase buyItem(Item item) {\n\t\tKeybladeWielder player = (KeybladeWielder) this.actorService.findByPrincipal();\n\t\t// Solo lo podremos comprar si disponemos del Munny que cuesta el item\n\t\tAssert.isTrue(item.getMunnyCost() <= player.getMaterials().getMunny());\n\t\tAssert.isTrue(item.getOnSell() == true);\n\t\tPurchase p = this.purchaseService.create();\n\t\tDate currentDate = new Date(System.currentTimeMillis() - 100);\n\n\t\tp.setPlayer(player);\n\t\tp.setPurchaseDate(currentDate);\n\t\tp.setItem(item);\n\t\tplayer.getMaterials().setMunny(player.getMaterials().getMunny() - item.getMunnyCost());\n\n\t\t// Hacemos set de la que sera la fecha en la que el objeto expirara\n\t\tDate expirationDate = new Date(currentDate.getTime() + p.getItem().getExpiration() * 24 * 60 * 60 * 1000);\n\t\tp.setExpirationDate(expirationDate);\n\n\t\tthis.purchaseService.save(p);\n\n\t\tthis.keybladeWielderService.save(player);\n\n\t\treturn p;\n\n\t}",
"public void addItem(Item item, boolean moving, long creatureId, boolean starting) {\n/* 2186 */ if (this.inactive) {\n/* */ \n/* 2188 */ logger.log(Level.WARNING, \"adding \" + item.getName() + \" to inactive tile \" + this.tilex + \",\" + this.tiley + \" surf=\" + this.surfaced + \" itemsurf=\" + item\n/* 2189 */ .isOnSurface(), new Exception());\n/* 2190 */ logger.log(Level.WARNING, \"The zone \" + this.zone.id + \" covers \" + this.zone.startX + \", \" + this.zone.startY + \" to \" + this.zone.endX + \",\" + this.zone.endY);\n/* */ } \n/* */ \n/* */ \n/* 2194 */ if (item.hidden) {\n/* */ return;\n/* */ }\n/* 2197 */ if (this.isTransition && this.surfaced && !item.isVehicle()) {\n/* */ \n/* 2199 */ if (logger.isLoggable(Level.FINEST))\n/* */ {\n/* 2201 */ logger.finest(\"Adding \" + item.getName() + \" to cave level instead.\");\n/* */ }\n/* 2203 */ boolean stayOnSurface = false;\n/* 2204 */ if (Zones.getTextureForTile(this.tilex, this.tiley, 0) != Tiles.Tile.TILE_HOLE.id)\n/* 2205 */ stayOnSurface = true; \n/* 2206 */ if (!stayOnSurface) {\n/* */ \n/* 2208 */ getCaveTile().addItem(item, moving, starting);\n/* */ \n/* */ return;\n/* */ } \n/* */ } \n/* 2213 */ if (item.isTileAligned()) {\n/* */ \n/* 2215 */ item.setPosXY(((this.tilex << 2) + 2), ((this.tiley << 2) + 2));\n/* 2216 */ item.setOwnerId(-10L);\n/* 2217 */ if (item.isFence())\n/* */ {\n/* 2219 */ if (isOnSurface()) {\n/* */ \n/* 2221 */ int offz = 0;\n/* */ \n/* */ try {\n/* 2224 */ offz = (int)((item.getPosZ() - Zones.calculateHeight(item.getPosX(), item.getPosY(), this.surfaced)) / 10.0F);\n/* */ }\n/* 2226 */ catch (NoSuchZoneException nsz) {\n/* */ \n/* 2228 */ logger.log(Level.WARNING, \"Dropping fence item outside zones.\");\n/* */ } \n/* 2230 */ float rot = Creature.normalizeAngle(item.getRotation());\n/* 2231 */ if (rot >= 45.0F && rot < 135.0F)\n/* */ {\n/* 2233 */ VolaTile next = Zones.getOrCreateTile(this.tilex + 1, this.tiley, this.surfaced);\n/* 2234 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex + 1, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, next\n/* 2235 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2237 */ else if (rot >= 135.0F && rot < 225.0F)\n/* */ {\n/* 2239 */ VolaTile next = Zones.getOrCreateTile(this.tilex, this.tiley + 1, this.surfaced);\n/* 2240 */ next.addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley + 1, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, next\n/* 2241 */ .getZone().getId(), getLayer()));\n/* */ }\n/* 2243 */ else if (rot >= 225.0F && rot < 315.0F)\n/* */ {\n/* 2245 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_DOWN, \n/* 2246 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ else\n/* */ {\n/* 2250 */ addFence((Fence)new TempFence(StructureConstantsEnum.FENCE_SIEGEWALL, this.tilex, this.tiley, offz, item, Tiles.TileBorderDirection.DIR_HORIZ, \n/* 2251 */ getZone().getId(), getLayer()));\n/* */ }\n/* */ \n/* */ } \n/* */ }\n/* 2256 */ } else if (item.getTileX() != this.tilex || item.getTileY() != this.tiley) {\n/* */ \n/* 2258 */ putRandomOnTile(item);\n/* 2259 */ item.setOwnerId(-10L);\n/* */ } \n/* 2261 */ if (!this.surfaced)\n/* */ {\n/* 2263 */ if (Tiles.isSolidCave(Tiles.decodeType(Server.caveMesh.getTile(this.tilex, this.tiley)))) {\n/* */ \n/* 2265 */ if (!(getSurfaceTile()).isTransition) {\n/* */ \n/* 2267 */ getSurfaceTile().addItem(item, moving, creatureId, starting);\n/* 2268 */ logger.log(Level.INFO, \"adding \" + item.getName() + \" in rock at \" + this.tilex + \", \" + this.tiley + \" \");\n/* */ } \n/* */ \n/* */ return;\n/* */ } \n/* */ }\n/* 2274 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2275 */ if (!starting && !item.getTemplate().hovers()) {\n/* 2276 */ item.updatePosZ(this);\n/* */ }\n/* 2278 */ if (this.vitems == null)\n/* 2279 */ this.vitems = new VolaTileItems(); \n/* 2280 */ if (this.vitems.addItem(item, starting)) {\n/* */ \n/* 2282 */ if (item.getTemplateId() == 726) {\n/* 2283 */ Zones.addDuelRing(item);\n/* */ }\n/* 2285 */ if (!item.isDecoration()) {\n/* */ \n/* 2287 */ Item pile = this.vitems.getPileItem(item.getFloorLevel());\n/* 2288 */ if (this.vitems.checkIfCreatePileItem(item.getFloorLevel()) || pile != null) {\n/* */ \n/* 2290 */ if (pile == null) {\n/* */ \n/* 2292 */ pile = createPileItem(item, starting);\n/* 2293 */ this.vitems.addPileItem(pile);\n/* */ } \n/* 2295 */ pile.insertItem(item, true);\n/* 2296 */ int data = pile.getData1();\n/* 2297 */ if (data != -1 && item.getTemplateId() != data) {\n/* */ \n/* 2299 */ pile.setData1(-1);\n/* 2300 */ pile.setName(pile.getTemplate().getName());\n/* 2301 */ String modelname = pile.getTemplate().getModelName().replaceAll(\" \", \"\") + \"unknown.\";\n/* */ \n/* 2303 */ if (this.watchers != null)\n/* */ {\n/* 2305 */ for (Iterator<VirtualZone> it = this.watchers.iterator(); it.hasNext();) {\n/* 2306 */ ((VirtualZone)it.next()).renameItem(pile, pile.getName(), modelname);\n/* */ }\n/* */ }\n/* */ } \n/* 2310 */ } else if (this.watchers != null) {\n/* */ \n/* 2312 */ boolean onGroundLevel = true;\n/* 2313 */ if (item.getFloorLevel() > 0) {\n/* 2314 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2317 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2318 */ onGroundLevel = false;\n/* */ } \n/* 2320 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2324 */ if (vz.isVisible(item, this)) {\n/* 2325 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2327 */ } catch (Exception e) {\n/* */ \n/* 2329 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ }\n/* */ \n/* */ } \n/* */ } \n/* 2334 */ } else if (this.watchers != null) {\n/* */ \n/* 2336 */ boolean onGroundLevel = true;\n/* 2337 */ if (item.getFloorLevel() > 0) {\n/* 2338 */ onGroundLevel = false;\n/* */ \n/* */ }\n/* 2341 */ else if ((getFloors(0, 0)).length > 0) {\n/* 2342 */ onGroundLevel = false;\n/* */ } \n/* 2344 */ for (VirtualZone vz : getWatchers()) {\n/* */ \n/* */ \n/* */ try {\n/* 2348 */ if (vz.isVisible(item, this)) {\n/* 2349 */ vz.addItem(item, this, creatureId, onGroundLevel);\n/* */ }\n/* 2351 */ } catch (Exception e) {\n/* */ \n/* 2353 */ logger.log(Level.WARNING, e.getMessage(), e);\n/* */ } \n/* */ } \n/* */ } \n/* 2357 */ if (item.isDomainItem()) {\n/* 2358 */ Zones.addAltar(item, moving);\n/* */ }\n/* 2360 */ if ((item.getTemplateId() == 1175 || item.getTemplateId() == 1239) && item\n/* 2361 */ .getAuxData() > 0)\n/* 2362 */ Zones.addHive(item, moving); \n/* 2363 */ if (item.getTemplateId() == 939 || item.isEnchantedTurret())\n/* 2364 */ Zones.addTurret(item, moving); \n/* 2365 */ if (item.isEpicTargetItem()) {\n/* 2366 */ EpicTargetItems.addRitualTargetItem(item);\n/* */ }\n/* 2368 */ if (this.village != null && item.getTemplateId() == 757)\n/* */ {\n/* 2370 */ this.village.addBarrel(item);\n/* */ }\n/* */ }\n/* */ else {\n/* */ \n/* 2375 */ item.setZoneId(this.zone.getId(), this.surfaced);\n/* 2376 */ if (!item.deleted) {\n/* 2377 */ logger.log(Level.WARNING, \"tile already contained item \" + item.getName() + \" (ID: \" + item.getWurmId() + \") at \" + this.tilex + \", \" + this.tiley, new Exception());\n/* */ }\n/* */ } \n/* */ }",
"public boolean canAttackWithItem() {\n/* 253 */ return false;\n/* */ }",
"public void Sauvegarder(Partie p) {\n if (SaveNum > 0 && SaveNum < 10) {\n //System.out.println(\"index ok\");\n try {\n if (erase) {\n slot[SaveNum - 1].delete();\n }\n //System.out.println(\"Try start\");\n //File f = new File(i + \".\" + p.getJoueur1().getNom() + \"-vs-\" + p.getJoueur2().getNom() + \".ser\");\n SaveName = (SaveNum - 1 + \"-\" + SaveName + \".ser\");\n File fichier = new File(SavePath + SaveName);\n FileOutputStream fos = new FileOutputStream(fichier);\n ObjectOutputStream oos = new ObjectOutputStream(fos);\n //System.out.println(\"ok\");\n oos.writeObject(p);\n //System.out.println(\"ok\");\n oos.close();\n //slot[i] = fichier;\n SaveName = \"Sauvegarde\";\n //System.out.println(\"Save Done\" + SaveNum);\n SaveNum = 20;\n } catch (IOException | NullPointerException e) {\n System.out.println(\"Erreur lors de la sauvegarde du fichier\");\n }\n }\n }",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"@Override\n\tpublic void itemSave(User savedBy, final HomeItem item)\n\t{\n\t\tif (item.getPublished() && !item.isValid())\n\t\t{\n\t\t\titem.setPublished(Boolean.FALSE);\n\t\t}\n\n\t\tif (((HomeItemImpl) item).isChanged() || item.getId() == null)\n\t\t{\n\t\t\tif (((HomeItemImpl) item).isChanged())\n\t\t\t{\n\t\t\t\t// set modified by/on\n\t\t\t\t((HomeItemImpl) item).initModifiedBy(savedBy);\n\t\t\t\t((HomeItemImpl) item).initModifiedOn(new Date());\n\n\t\t\t\t// deal with the content\n\t\t\t\t((HomeItemImpl) item).saveContent(savedBy);\n\t\t\t}\n\n\t\t\t// insert or update\n\t\t\tif (item.getId() == null)\n\t\t\t{\n\t\t\t\tsqlService().transact(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tinsertItemTx((HomeItemImpl) item);\n\n\t\t\t\t\t}\n\t\t\t\t}, \"save(insert)\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tsqlService().transact(new Runnable()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run()\n\t\t\t\t\t{\n\t\t\t\t\t\tupdateItemTx((HomeItemImpl) item);\n\n\t\t\t\t\t}\n\t\t\t\t}, \"save(update)\");\n\t\t\t}\n\n\t\t\t((HomeItemImpl) item).clearChanged();\n\t\t}\n\t}",
"@Override\n public void updateItem(P_CK t) {\n \n }",
"@Override\n public void saveGame() {\n\n }",
"public MainItemOrdered save(MainItemOrdered mainItemOrdered);",
"private void takeItem(Command command) \n { \n if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What are you trying to take?\"); \n return; \n } \n \n String itemName = command.getSecondWord();\n String secondName = itemName + \"2\";\n \n Item thisItem = currentRoom.getItem(itemName);\n Item secondItem = currentRoom.getItem(secondName);\n \n if (thisItem == null) {\n Logger.Log(\"There isn't a \" + itemName + \"in here!\");\n }\n else if (player.inventory.containsKey(itemName)){\n Logger.Log(\"You take another \" + itemName + \" and put it in your backpack.\");\n player.addItem(secondName, secondItem); \n }\n else if (player.inventory.containsKey(itemName)&&(player.inventory.containsKey(secondName))){\n Logger.Log(\"You don't need any more \" + itemName + \"s!\");\n }\n else { \n Logger.Log(\"You take the \" + itemName + \" and put it in your backpack.\");\n player.addItem(itemName, thisItem);\n } \n \n }",
"public boolean inputdata(itemTodo item){\n ContentValues z = new ContentValues();\n //menyamakan kolom dan nilai\n z.put(kolom1, item.getTodo());\n z.put(kolom2, item.getDeskripsi());\n z.put(kolom3, item.getPrioritas());\n long hasil = data.insert(nama_table,null, z);\n if (hasil==-1){\n return false;\n } else {\n return true;\n }\n }",
"@Override\n public void onPause() {\n super.onPause();\n player.setPlayWhenReady(false);\n player.release();\n\n // We need an Editor object to make preference changes.\n // All objects are from android.context.Context\n SharedPreferences settings = getSharedPreferences(getResources().getString(R.string.sharedPreferences), 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putInt(\"id\", idPelicula);\n editor.putLong(\"position\", player.getContentPosition());\n\n // Commit the edits!\n editor.commit();\n }",
"public boolean unloadPlayer(P player){\n if(playerMap.containsKey(player)){\n //Player is safe to unload\n playerMap.remove(player);\n return true;\n } else {\n //Player isn't safe to save\n System.out.println(\"Tried to unload player \" + player.getName() + \"'s data, but it's not available\");\n return false;\n }\n }"
] | [
"0.6663407",
"0.6435539",
"0.6300921",
"0.62046325",
"0.6142053",
"0.6100241",
"0.60980034",
"0.6053236",
"0.5999568",
"0.5984184",
"0.59719527",
"0.59650385",
"0.5929284",
"0.5903242",
"0.5890951",
"0.58835614",
"0.5851275",
"0.5838432",
"0.58165973",
"0.5816339",
"0.58041096",
"0.58000237",
"0.57837254",
"0.5765683",
"0.57374763",
"0.5736449",
"0.5718105",
"0.571039",
"0.56805867",
"0.56711745",
"0.56711745",
"0.56669235",
"0.56561047",
"0.5654528",
"0.5652075",
"0.5648774",
"0.56454265",
"0.56393546",
"0.56379133",
"0.5635598",
"0.5632433",
"0.5631918",
"0.5631366",
"0.56257945",
"0.5619235",
"0.5618889",
"0.5613298",
"0.5610781",
"0.5606366",
"0.559098",
"0.5585049",
"0.55837744",
"0.5582304",
"0.55646724",
"0.55631435",
"0.55614996",
"0.55530417",
"0.55460316",
"0.55424255",
"0.5538579",
"0.5535328",
"0.5532396",
"0.5516526",
"0.5512928",
"0.55109113",
"0.55106926",
"0.5510567",
"0.5507447",
"0.5503175",
"0.55024016",
"0.5497199",
"0.5494027",
"0.549088",
"0.54881144",
"0.54878986",
"0.548638",
"0.5482656",
"0.5474763",
"0.5473946",
"0.5470077",
"0.54698974",
"0.5465929",
"0.5454645",
"0.5450148",
"0.54491264",
"0.5444382",
"0.54421186",
"0.54365003",
"0.5435496",
"0.54336584",
"0.5430129",
"0.5426413",
"0.5420692",
"0.5418598",
"0.5416395",
"0.5414224",
"0.54139405",
"0.54105824",
"0.5406813",
"0.5406113",
"0.5403521"
] | 0.0 | -1 |
Methode affichant tout les item contenu dans l'inventaire du player | public String getItemsString()
{
String vReturnString = "you got : "+this.aItemsList.getItemString();
return vReturnString;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SuppressWarnings(\"deprecation\")\r\n\t@EventHandler\r\n\tpublic void inventoryClickEvent(InventoryClickEvent e) {\r\n\t\tEntity applier = e.getWhoClicked();\r\n\t\tif (!e.isCancelled()) {\r\n\t\t\tif (applier instanceof Player) {\r\n\t\t\t\tPlayer papplier = (Player) applier;\r\n\t\t\t\t// PlayerInventory pinventory = papplier.getInventory();\r\n\t\t\t\t// inven.put(papplier, pinventory);\r\n\t\t\t\tItemStack item = e.getCurrentItem();\r\n\t\t\t\tItemStack transmog = e.getCursor();\r\n\t\t\t\tString tname = \"\";\r\n\t\t\t\tif (item != null) {\r\n\t\t\t\t\tItemMeta itemMeta = item.getItemMeta();\r\n\t\t\t\t\tArrayList<String> lore1 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore2 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore3 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore4 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore5 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore6 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> lore7 = new ArrayList<String>();\r\n\t\t\t\t\tArrayList<String> totallore = new ArrayList<String>();\r\n\t\t\t\t\tif (item.getType() != Material.AIR) {\r\n\t\t\t\t\t\t// papplier.sendMessage(\"1\");\r\n\t\t\t\t\t\tif (transmog != null) {\r\n\t\t\t\t\t\t\t// papplier.sendMessage(\"2\");\r\n\t\t\t\t\t\t\tif (item.getType().name().endsWith(\"SWORD\") || item.getType().name().endsWith(\"AXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HELMET\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"SHOVEL\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"CHESTPLATE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"LEGGINGS\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"BOOTS\") || item.getType().name().endsWith(\"BOW\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"PICKAXE\")\r\n\t\t\t\t\t\t\t\t\t|| item.getType().name().endsWith(\"HOE\")) {\r\n\t\t\t\t\t\t\t\t// papplier.sendMessage(\"3\");\r\n\t\t\t\t\t\t\t\tif (item.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"4\");\r\n\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"5\");\r\n\t\t\t\t\t\t\t\t\t\tif (item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"6\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"7\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(Api.transint(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t// + \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tdname.put(item, item.getItemMeta().getDisplayName());\r\n\t\t\t\t\t\t\t\t\t\t\t\tI.put(papplier, Methods.transint(item));\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, true);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (Methods.transmogged(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"8\");\r\n\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (!item.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"9\");\r\n\t\t\t\t\t\t\t\t\t\t\ttransmogged.put(item, false);\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"10\");\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"11\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"12\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"13\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"14\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"15\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"16\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"17\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanted.put(titem, false);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (!itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = \"&a\" + item.getType().name()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanted.get(titem) == false) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) == true) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"21\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tString dname1 = dname.get(item).replace(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(\"&d&l[&b&l&n\" + I.get(papplier) + \"&d&l]\"), \"\");\r\n\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.hasItemMeta()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"22\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"23\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmog.getItemMeta().getDisplayName()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.color(\"&e&lTransmog\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"24\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String tlore : transmog.getItemMeta().getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"25\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tlore.contains(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&e&oPlace scroll on item to apply.\"))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"26\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (e.getClickedInventory() instanceof PlayerInventory) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"27\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (CE.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size() > 0) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"28\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMaterial material = item.getType();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemStack titem = new ItemStack(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tmaterial, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tItemMeta titemMeta = titem\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemMeta();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() == null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.addGlow(titem);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (item.getEnchantments() != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = item.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<CEnchantments> enchantes = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tArrayList<String> enchanters = new ArrayList<String>();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments encs : enchantes) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchanters.add(Methods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tencs.getCustomName()));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (String ench : item.getItemMeta()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getLore()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"29\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (enchanters\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(Methods.removePower(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.removeColor(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tench)))) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"31\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (CEnchantments enchant : CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantments()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// papplier.sendMessage(\"19\");\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (ench.contains(enchant\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getCustomName())) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tString tier = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getEnchantmentCategory(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchant);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (tier.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T1\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore1.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T2\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore2.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T3\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore3.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T4\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore4.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T5\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore5.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else if (tier\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.contains(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"T6\")) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore6.add(0, Methods\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.color(ench));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlore7.add(ench);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore7);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore6);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore5);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore4);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore3);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore2);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttotallore.addAll(lore1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tint enchNumber = CE\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getItemEnchantments(item)\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.size();\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (itemMeta.hasDisplayName()) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttname = dname1 + \" &d&l[&b&l&n\"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+ enchNumber + \"&d&l]\";\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCancelled(true);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setLore(totallore);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitemMeta.setDisplayName(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tMethods.color(tname));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.setItemMeta(titemMeta);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttitem.addUnsafeEnchantments(enchants);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.setCursor(null);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory()\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.removeItem(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getInventory().addItem(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tnew ItemStack[] { titem });\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tfor (int i2 = 1; i2 <= 10; ++i2) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playEffect(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getEyeLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tEffect.SPELL, 1);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getWorld().playSound(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpapplier.getLocation(),\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tSound.LEVEL_UP, 1.0f, 1.0f);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tenchants = null;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (transmogged.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttransmogged.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (dname.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tdname.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tif (I.get(item) != null) {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tI.remove(item);\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\te.getWhoClicked().sendMessage(Methods.color(\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\"&6Swarm&eEnchants&f >> &cYou may only use Transmog scrolls in your own inventory!\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"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 }",
"public void fireOnItemAddedToInventoryCommands();",
"private void inventoryHandler(){\n final Button TAB = getOwnerArea().getKeyboard().get(Keyboard.TAB);\n final Button SPACE = getOwnerArea().getKeyboard().get(Keyboard.SPACE);\n final Button R = getOwnerArea().getKeyboard().get(Keyboard.R);\n final Button T = getOwnerArea().getKeyboard().get(Keyboard.T);\n final Button Y = getOwnerArea().getKeyboard().get(Keyboard.Y);\n final Button U = getOwnerArea().getKeyboard().get(Keyboard.U);\n final Button I = getOwnerArea().getKeyboard().get(Keyboard.I);\n final Button O = getOwnerArea().getKeyboard().get(Keyboard.O);\n final Button P = getOwnerArea().getKeyboard().get(Keyboard.P);\n final Button K = getOwnerArea().getKeyboard().get(Keyboard.K);\n\n //Used for tests, as asked in the instructions\n if (R.isPressed()) {\n inventory.add(ARPGItem.ARROW, 1);\n } else if (T.isPressed()) {\n inventory.add(ARPGItem.SWORD, 1);\n } else if (Y.isPressed()) {\n inventory.add(ARPGItem.STAFF, 1);\n } else if (U.isPressed()) {\n inventory.add(ARPGItem.BOW, 1);\n } else if (I.isPressed()) {\n inventory.add(ARPGItem.BOMB, 1);\n } else if (O.isPressed()) {\n inventory.add(ARPGItem.CASTLEKEY, 1);\n } else if (P.isPressed()) {\n inventory.add(ARPGItem.WINGS, 1);\n } else if (K.isPressed()) {\n inventory.add(ARPGItem.CHESTKEY, 1);\n }\n\n /*If the player does not have any currentItem anymore we switch it (f. ex. if a player\n uses his last bomb or if the constructor assigns as the player's current item an item\n he does not possess by mistake)\n */\n if(!possess(currentItem)) {\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n\n //Switches item.\n if(TAB.isPressed()){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n if(currentItem == ARPGItem.ARROW){\n currentItem = (ARPGItem) inventory.switchItem(currentItem);\n }\n }\n\n //Uses the item and adapts the animations\n if(SPACE.isPressed() && !isDisplacementOccurs()){\n if(currentItem.use(getOwnerArea(), getOrientation(), getCurrentMainCellCoordinates())){\n switch(currentItem){\n case BOMB:\n inventory.remove(currentItem, 1);\n break;\n case BOW:\n if(actionTimer >= COOLDOWN) {\n animateAction = true;\n currentAnimation = bowAnimations[getOrientation().ordinal()];\n shootArrow = true;\n actionTimer = 0.f;\n }\n break;\n case SWORD:\n animateAction = true;\n currentAnimation = swordAnimations[getOrientation().ordinal()];\n break;\n case STAFF:\n animateAction = true;\n currentAnimation = staffAnimations[getOrientation().ordinal()];\n break;\n }\n\n }\n }\n\n //Wings have a special treatment because SPACE needs to be down and not pressed\n if (currentItem == ARPGItem.WINGS && SPACE.isDown()) {\n //Sets the animation for the current orientation. Make sure it doesn't fly yet\n // so that the animation is not stuck.\n if (!canFly) {\n currentAnimation = flyAnimations[getOrientation().ordinal()];\n }\n canFly = true;\n } else {\n //Resets to idleAnimations\n if (canFly) {\n currentAnimation = idleAnimations[getOrientation().ordinal()];\n }\n canFly = false;\n }\n }",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"public void onInventoryChanged();",
"private void updateShop(List<ItemType> items, int level) {\n\t\tfor (ItemType item : items) {\n\t\t\tString text = item.getTextureString();\n\t\t\ttext = item instanceof SpecialType ? text\n\t\t\t\t\t: text.substring(0, text.length() - 1)\n\t\t\t\t\t\t\t+ Integer.toString(level);\n\t\t\tTexture texture = textureManager.getTexture(text);\n\t\t\tImageButton button = generateItemButton(texture);\n\n\t\t\tbutton.addListener(new ClickListener() {\n\t\t\t\tpublic void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\tstatus.setText(item.getName());\n\t\t\t\t\tif (selectedHero == null) {\n\t\t\t\t\t\tstatus.setText(\"Unsuccessful shopping, No hero exist.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tif (selectedHero.getHealth() <= 0) {\n\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\"Your Commander is dead. Can't buy anything.\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tboolean enoughResources = checkCost(selectedHero.getOwner(),\n\t\t\t\t\t\t\titem);\n\t\t\t\t\tif (enoughResources) {\n\t\t\t\t\t\tif (item instanceof WeaponType) {\n\t\t\t\t\t\t\tWeapon weapon = new Weapon((WeaponType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(weapon);\n\t\t\t\t\t\t\tstatus.setText(boughtString + weapon.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Weapon) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else if (item instanceof ArmourType) {\n\t\t\t\t\t\t\tArmour armour = new Armour((ArmourType) item,\n\t\t\t\t\t\t\t\t\tlevel);\n\t\t\t\t\t\t\tselectedHero.addItemToInventory(armour);\n\t\t\t\t\t\t\tstatus.setText(boughtString + armour.getName()\n\t\t\t\t\t\t\t\t\t+ \"(Armour) for \"\n\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tboolean transactSuccess;\n\t\t\t\t\t\t\tSpecial special = new Special((SpecialType) item);\n\t\t\t\t\t\t\ttransactSuccess = selectedHero\n\t\t\t\t\t\t\t\t\t.addItemToInventory(special);\n\t\t\t\t\t\t\tif (transactSuccess) {\n\t\t\t\t\t\t\t\tstatus.setText(boughtString + special.getName()\n\t\t\t\t\t\t\t\t\t\t+ \"(Special) for \"\n\t\t\t\t\t\t\t\t\t\t+ selectedHero.toString());\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tstatus.setText(\n\t\t\t\t\t\t\t\t\t\t\"Unsuccessful Shopping, can only hold 4 specials\");\n\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tselectedHero.setStatsChange(true);\n\t\t\t\t\t\ttransact(selectedHero.getOwner(), item);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tString mes = \"Not enough resources.\";\n\t\t\t\t\t\tstatus.setText(mes);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprivate boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t\tscrollTable.add(button).width(iconSize).height(iconSize).top();\n\t\t\tString stats = getItemStats(item, level);\n\t\t\tString cost = getItemCost(item, level);\n\t\t\tscrollTable.add(new Label(stats, skin)).width(iconSize).top()\n\t\t\t\t\t.left();\n\t\t\tscrollTable.add(new Label(cost, skin)).width(iconSize).top().left();\n\t\t\tscrollTable.row();\n\t\t}\n\t}",
"@SideOnly(Side.CLIENT)\n/* */ public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List<String> par3List, boolean par4) {\n/* 59 */ if (GuiScreen.isShiftKeyDown()) {\n/* 60 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome1.lore\"));\n/* 61 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome2.lore\"));\n/* 62 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome3.lore\"));\n/* 63 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 64 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome4.lore\"));\n/* 65 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome5.lore\"));\n/* 66 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 67 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome6.lore\"));\n/* 68 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome7.lore\"));\n/* 69 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome8.lore\"));\n/* 70 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* 71 */ par3List.add(StatCollector.translateToLocal(\"item.ItemSoulTome9.lore\"));\n/* 72 */ } else if (GuiScreen.isCtrlKeyDown()) {\n/* 73 */ par3List.add(StatCollector.translateToLocal(\"item.FRVisPerSecond.lore\"));\n/* 74 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRAerCost.lore\") + (AerCost / 100.0D * 10.0D));\n/* 75 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRTerraCost.lore\") + (TerraCost / 100.0D * 10.0D));\n/* 76 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRIgnisCost.lore\") + (IgnisCost / 100.0D * 10.0D));\n/* 77 */ this; par3List.add(\" \" + StatCollector.translateToLocal(\"item.FRPerditioCost.lore\") + (PerditioCost / 100.0D * 10.0D));\n/* */ } else {\n/* */ \n/* 80 */ par3List.add(StatCollector.translateToLocal(\"item.FRShiftTooltip.lore\"));\n/* 81 */ par3List.add(StatCollector.translateToLocal(\"item.FRViscostTooltip.lore\"));\n/* */ } \n/* */ \n/* 84 */ par3List.add(StatCollector.translateToLocal(\"item.FREmpty.lore\"));\n/* */ }",
"@Override\n public void onSmelting(EntityPlayer player, ItemStack item) \n {\n \n }",
"@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id)\n {\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n }",
"abstract void applyItem(JuggernautPlayer player, int level);",
"@Override\n public void onItemClick(AdapterView<?> av, View v, int pos,\n long id) {\n\n Toast.makeText(getActivity(), data.get(pos).get(\"Player\"), Toast.LENGTH_SHORT).show();\n\n }",
"@Override\n public void execute(final Player pPlayer)\n {\n if( ! hasSecondWord())\n {\n GameEngine.aGui.println(\"What Item do tou want to drop ?\");\n }\n else\n {\n String vC = getSecondWord();\n Item vItemInv = pPlayer.getInventaire().get(vC);\n\n if( vItemInv == null)\n {\n GameEngine.aGui.println(\"You don't have this Item in you're possession\");\n }\n else\n {\n pPlayer.removeInventaire(vC);\n pPlayer.getCurrentRoom().getItems().put(vItemInv);\n GameEngine.aGui.println(\"You droped this \" + vItemInv.getName());\n }\n }\n }",
"@SideOnly(Side.CLIENT)\n/* 34: */ public void getSubItems(Item itemId, CreativeTabs table, List list)\n/* 35: */ {\n/* 36:35 */ for (int i = 0; i < 13; i++)\n/* 37: */ {\n/* 38:36 */ ItemStack is = new ItemStack(itemId);\n/* 39:37 */ is.stackTagCompound = new NBTTagCompound();\n/* 40:38 */ is.stackTagCompound.setShort(\"Shield\", (short)i);\n/* 41:39 */ list.add(is);\n/* 42: */ }\n/* 43: */ }",
"private static void customItems(ItemDefinition itemDef) {\n\n\t\tswitch (itemDef.id) {\n\n\t\tcase 11864:\n\t\tcase 11865:\n\t\tcase 19639:\n\t\tcase 19641:\n\t\tcase 19643:\n\t\tcase 19645:\n\t\tcase 19647:\n\t\tcase 19649:\n\t\tcase 23073:\n\t\tcase 23075:\n\t\t\titemDef.equipActions[2] = \"Log\";\n\t\t\titemDef.equipActions[1] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 13136:\n\t\t\titemDef.equipActions[2] = \"Elidinis\";\n\t\t\titemDef.equipActions[1] = \"Kalphite Hive\";\n\t\t\tbreak;\n\t\tcase 2550:\n\t\t\titemDef.equipActions[2] = \"Check\";\n\t\t\tbreak;\n\n\t\tcase 1712:\n\t\tcase 1710:\n\t\tcase 1708:\n\t\tcase 1706:\n\t\t\titemDef.equipActions[1] = \"Edgeville\";\n\t\t\titemDef.equipActions[2] = \"Karamja\";\n\t\t\titemDef.equipActions[3] = \"Draynor\";\n\t\t\titemDef.equipActions[4] = \"Al-Kharid\";\n\t\t\tbreak;\n\n\t\tcase 22000:\n\t\t\titemDef.name = \"Lava partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 22001:\n\t\t\titemDef.name = \"Infernal partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 2552:\n\t\tcase 2554:\n\t\tcase 2556:\n\t\tcase 2558:\n\t\tcase 2560:\n\t\tcase 2562:\n\t\tcase 2564:\n\t\tcase 2566: // Ring of duelling\n\t\t\titemDef.equipActions[2] = \"Shantay Pass\";\n\t\t\titemDef.equipActions[1] = \"Clan wars\";\n\t\t\tbreak;\n\n\t\tcase 21307:\n\t\t\titemDef.name = \"Pursuit crate\";\n\t\t\tbreak;\n\n\t\tcase 12792:\n\t\t\titemDef.name = \"Graceful recolor kit\";\n\t\t\tbreak;\n\n\t\tcase 12022:\n\t\t\titemDef.name = \"Bandos Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Bandos gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12024:\n\t\t\titemDef.name = \"Armadyl Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Armadyl gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12026:\n\t\t\titemDef.name = \"Saradomin Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Saradomin gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 12028:\n\t\t\titemDef.name = \"Zamorak Casket\";\n\t\t\titemDef.description = \"100% chance for an item off the Zamorak gwds rare drop table.\";\n\t\t\tbreak;\n\n\t\tcase 964:\n\t\t\titemDef.name = \"Pet Petie\";\n\t\t\tbreak;\n\n\t\tcase 20853:\n\t\t\titemDef.name = \"Deep Sea Bait\";\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\t/*\n\t\t * case 17014: itemDef.name = \"Dragon flail\"; itemDef.modelId = 50083;\n\t\t * itemDef.modelZoom = 1440; itemDef.modelRotation2 = 272;\n\t\t * itemDef.modelRotation1 = 352; itemDef.modelOffset1 = 32;\n\t\t * //itemDef.modelOffset2 = 0; itemDef.maleModel = 50083; itemDef.femaleModel =\n\t\t * 50083; itemDef.anInt164 = -1; itemDef.anInt188 = -1; itemDef.aByte205 = -8;\n\t\t * itemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t * itemDef.inventoryOptions = new String[] { \"Wear\", null, null, null, \"Drop\" };\n\t\t * itemDef.description = \"An Ancient Dragon Flail.\"; break;\n\t\t */\n\n\t\tcase 33272:\n\t\t\titemDef.name = \"Justiciar's Longsword\";\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modelId = 65472;\n\t\t\titemDef.modelZoom = 1726;\n\t\t\titemDef.modelRotation1 = 1576;\n\t\t\titemDef.modelRotation2 = 242;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\t// itemDef.anInt204 = 0;\n\t\t\t// itemDef.aByte205 = -12;\n\t\t\t// itemDef.aByte154 = 0;\n\t\t\titemDef.maleModel = 65465;\n\t\t\titemDef.femaleModel = 65465;\n\t\t\titemDef.description = \"An ancient longsword received from the Trial of Flames.\";\n\t\t\tbreak;\n\n\t\tcase 33168:\n\t\t\titemDef.name = \"Justiciar kiteshield\";\n\t\t\titemDef.modelId = 65471;\n\t\t\titemDef.modelZoom = 1600;\n\t\t\titemDef.modelRotation2 = 250;\n\t\t\titemDef.modelRotation1 = 300;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.maleModel = 65473;\n\t\t\titemDef.femaleModel = 65474;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An ancient kiteshield. Part of the Justiciar set.\";\n\t\t\tbreak;\n\n\t\tcase 2996:\n\t\t\titemDef.name = \"PKP Ticket\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"Exchange this for a PK Point.\";\n\t\t\tbreak;\n\t\tcase 13226:\n\t\t\titemDef.name = \"Herb Sack\";\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.description = \"A sack for storing grimy herbs.\";\n\t\t\tbreak;\n\t\tcase 13346:\n\t\t\titemDef.name = \"Raid Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Open for chances to receive Raid items & other awesome rewards.\";\n\t\t\tbreak;\n\t\tcase 8800:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 31624;\n\t\t\t// itemDef.stackAmounts = new int[] { 2, 3, 50, 100, 500000, 1000000, 2500000,\n\t\t\t// 10000000, 100000000, 0 };//amount the model will change at\n\t\t\t// itemDef.stackIDs = new int[] { 8801, 8802, 8803, 8804, 8805, 8806, 8807,\n\t\t\t// 8808, 8809, 0 };//new item id to grab the model from\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 853;\n\t\t\titemDef.modelRotation2 = 1885;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8801:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15344;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8802:\n\t\t\titemDef.name = \"Donator Tokens\";\n\t\t\titemDef.modelId = 15345;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8803:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15346;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8804:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15347;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8805:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15348;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8806:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15349;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8807:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15350;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8808:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15351;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 8809:\n\t\t\titemDef.name = \"Donator Coins\";\n\t\t\titemDef.modelId = 15352;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modifiedModelColors = new int[] { 5813, 9139 };\n\t\t\titemDef.originalModelColors = new int[] { 22450, 22450 };\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation2 = 1764;\n\t\t\titemDef.modelRotation1 = 202;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Tokens for the Donator Store.\";\n\t\t\tbreak;\n\t\tcase 15098:\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.description = \"A 100-sided dice.\";\n\t\t\titemDef.modelId = 31223;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation2 = 215;\n\t\t\titemDef.modelRotation1 = 94;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modelOffset1 = -18;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Public-roll\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.name = \"Dice (up to 100)\";\n\t\t\titemDef.anInt196 = 15;\n\t\t\titemDef.anInt184 = 25;\n\t\t\tbreak;\n\n\t\tcase 32991:\n\t\t\titemDef.name = \"Divine spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with an divine sigil attached to it.\";\n\t\t\titemDef.modelId = 50001;\n\t\t\titemDef.maleModel = 50002;\n\t\t\titemDef.femaleModel = 50002;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32992:\n\t\t\titemDef.name = \"Rainbow spirit shield\";\n\t\t\titemDef.description = \"An ethereal shield with all 4 sigils attached to it.\";\n\t\t\titemDef.modelId = 50004;\n\t\t\titemDef.maleModel = 50005;\n\t\t\titemDef.femaleModel = 50005;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32993:\n\t\t\titemDef.name = \"Divine sigil\";\n\t\t\titemDef.description = \"A sigil in the shape of a divine symbol.\";\n\t\t\titemDef.modelId = 50003;\n\t\t\titemDef.modelZoom = 848;\n\t\t\titemDef.modelRotation1 = 267;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33060:\n\t\t\titemDef.name = \"Barrows Sword\";\n\t\t\titemDef.description = \"A sword glowing with otherworldy energy.\";\n\t\t\titemDef.modelId = 22325;\n\t\t\titemDef.maleModel = 50010;\n\t\t\titemDef.femaleModel = 50010;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation2 = 1050;\n\t\t\titemDef.modelRotation1 = 396;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\tbreak;\n\t\tcase 32994:\n\t\t\titemDef.name = \"Statius's platebody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42602;\n\t\t\titemDef.maleModel = 35951;\n\t\t\titemDef.femaleModel = 35964;\n\t\t\titemDef.modelZoom = 1312;\n\t\t\titemDef.modelRotation1 = 272;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 39;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32995:\n\t\t\titemDef.name = \"Statius's platelegs\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42590;\n\t\t\titemDef.maleModel = 35947;\n\t\t\titemDef.femaleModel = 35961;\n\t\t\titemDef.modelZoom = 1625;\n\t\t\titemDef.modelRotation1 = 355;\n\t\t\titemDef.modelRotation2 = 2046;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32996:\n\t\t\titemDef.name = \"Statius's full helm\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42596;\n\t\t\titemDef.maleModel = 35943;\n\t\t\titemDef.femaleModel = 35958;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 2039;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32997:\n\t\t\titemDef.name = \"Statius's warhammer\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42577;\n\t\t\titemDef.maleModel = 35968;\n\t\t\titemDef.femaleModel = 35968;\n\t\t\titemDef.modelZoom = 1360;\n\t\t\titemDef.modelRotation1 = 507;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32998:\n\t\t\titemDef.name = \"Vesta's chainbody\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42593;\n\t\t\titemDef.maleModel = 35953;\n\t\t\titemDef.femaleModel = 35965;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 32999:\n\t\t\titemDef.name = \"Vesta's plateskirt\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42581;\n\t\t\titemDef.maleModel = 35950;\n\t\t\titemDef.femaleModel = 35960;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33000:\n\t\t\titemDef.name = \"Vesta's longsword\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42597;\n\t\t\titemDef.maleModel = 35969;\n\t\t\titemDef.femaleModel = 35969;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 738;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33001:\n\t\t\titemDef.name = \"Vesta's spear\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42599;\n\t\t\titemDef.maleModel = 35973;\n\t\t\titemDef.femaleModel = 35973;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 480;\n\t\t\titemDef.modelRotation2 = 15;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33002:\n\t\t\titemDef.name = \"Morrigan's leather body\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42578;\n\t\t\titemDef.maleModel = 35954;\n\t\t\titemDef.femaleModel = 35963;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 545;\n\t\t\titemDef.modelRotation2 = 2;\n\t\t\titemDef.modelOffset1 = -2;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33003:\n\t\t\titemDef.name = \"Morrigan's leather chaps\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42603;\n\t\t\titemDef.maleModel = 35948;\n\t\t\titemDef.femaleModel = 35959;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 482;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33004:\n\t\t\titemDef.name = \"Morrigan's coif\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42583;\n\t\t\titemDef.maleModel = 35945;\n\t\t\titemDef.femaleModel = 35956;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 537;\n\t\t\titemDef.modelRotation2 = 5;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33005:\n\t\t\titemDef.name = \"Morrigan's javelin\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42592;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42613;\n\t\t\titemDef.femaleModel = 42613;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 282;\n\t\t\titemDef.modelRotation2 = 2009;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33006:\n\t\t\titemDef.name = \"Morrigan's throwing axe\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42582;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.maleModel = 42611;\n\t\t\titemDef.femaleModel = 42611;\n\t\t\titemDef.modelZoom = 976;\n\t\t\titemDef.modelRotation1 = 672;\n\t\t\titemDef.modelRotation2 = 2024;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33007:\n\t\t\titemDef.name = \"Zuriels robe top\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42591;\n\t\t\titemDef.maleModel = 35952;\n\t\t\titemDef.femaleModel = 35966;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 373;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33008:\n\t\t\titemDef.name = \"Zuriels robe bottom\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42588;\n\t\t\titemDef.maleModel = 35949;\n\t\t\titemDef.femaleModel = 35962;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33009:\n\t\t\titemDef.name = \"Zuriels hood\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42604;\n\t\t\titemDef.maleModel = 35944;\n\t\t\titemDef.femaleModel = 35957;\n\t\t\titemDef.modelZoom = 720;\n\t\t\titemDef.modelRotation1 = 28;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33010:\n\t\t\titemDef.name = \"Zuriels staff\";\n\t\t\titemDef.description = \"This item degrades in combat, and will turn to dust.\";\n\t\t\titemDef.modelId = 42595;\n\t\t\titemDef.maleModel = 35971;\n\t\t\titemDef.femaleModel = 35971;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 366;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33011:\n\t\t\titemDef.name = \"Craw's bow (u)\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35768;\n\t\t\titemDef.femaleModel = 35768;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33012:\n\t\t\titemDef.name = \"Craw's bow\";\n\t\t\titemDef.description = \"This bow once belonged to a formidable follower of Armadyl.\";\n\t\t\titemDef.modelId = 35777;\n\t\t\titemDef.maleModel = 35769;\n\t\t\titemDef.femaleModel = 35769;\n\t\t\titemDef.modelZoom = 1979;\n\t\t\titemDef.modelRotation1 = 1463;\n\t\t\titemDef.modelRotation2 = 510;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33013:\n\t\t\titemDef.name = \"Thammaron's sceptre (u)\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35772;\n\t\t\titemDef.femaleModel = 35772;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33014:\n\t\t\titemDef.name = \"Thammaron's sceptre\";\n\t\t\titemDef.description = \"A mighty sceptre used in long forgotten battles.\";\n\t\t\titemDef.modelId = 35776;\n\t\t\titemDef.maleModel = 35773;\n\t\t\titemDef.femaleModel = 35773;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33015:\n\t\t\titemDef.name = \"Viggora's chainmace (u)\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35770;\n\t\t\titemDef.femaleModel = 35770;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33016:\n\t\t\titemDef.name = \"Viggora's chainmace\";\n\t\t\titemDef.description = \"An ancient chainmace with a peculiar mechanism that allows for varying attack styles.\";\n\t\t\titemDef.modelId = 35778;\n\t\t\titemDef.maleModel = 35771;\n\t\t\titemDef.femaleModel = 35771;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 944;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33018:\n\t\t\titemDef.name = \"Amulet of avarice\";\n\t\t\titemDef.description = \"A hauntingly beautiful amulet bearing the shape of a skull.\";\n\t\t\titemDef.modelId = 35779;\n\t\t\titemDef.maleModel = 35766;\n\t\t\titemDef.femaleModel = 35766;\n\t\t\titemDef.modelZoom = 420;\n\t\t\titemDef.modelRotation1 = 191;\n\t\t\titemDef.modelRotation2 = 86;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33019:\n\t\t\titemDef.name = \"Completionist cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65270;\n\t\t\titemDef.maleModel = 65297;\n\t\t\titemDef.femaleModel = 65316;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33020:\n\t\t\titemDef.name = \"Completionist cape (t)\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modelId = 65258;\n\t\t\titemDef.maleModel = 65295;\n\t\t\titemDef.femaleModel = 65328;\n\t\t\titemDef.modelZoom = 1316;\n\t\t\titemDef.modelRotation1 = 252;\n\t\t\titemDef.modelRotation2 = 1020;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 24;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33021:\n\t\t\titemDef.name = \"Torva full helm\";\n\t\t\titemDef.description = \"An ancient warrior's full helm.\";\n\t\t\titemDef.modelId = 62714;\n\t\t\titemDef.maleModel = 62738;\n\t\t\titemDef.femaleModel = 62738;\n\t\t\titemDef.modelZoom = 672;\n\t\t\titemDef.modelRotation1 = 85;\n\t\t\titemDef.modelRotation2 = 1867;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33022:\n\t\t\titemDef.name = \"Torva platebody\";\n\t\t\titemDef.description = \"An ancient warrior's platebody.\";\n\t\t\titemDef.modelId = 62699;\n\t\t\titemDef.maleModel = 62746;\n\t\t\titemDef.femaleModel = 62746;\n\t\t\titemDef.modelZoom = 1506;\n\t\t\titemDef.modelRotation1 = 473;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33023:\n\t\t\titemDef.name = \"Torva platelegs\";\n\t\t\titemDef.description = \"An ancient warrior's platelegs.\";\n\t\t\titemDef.modelId = 62701;\n\t\t\titemDef.maleModel = 62740;\n\t\t\titemDef.femaleModel = 62740;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 474;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33024:\n\t\t\titemDef.name = \"Pernix cowl\";\n\t\t\titemDef.description = \"An ancient warrior's cowl.\";\n\t\t\titemDef.modelId = 62693;\n\t\t\titemDef.maleModel = 62739;\n\t\t\titemDef.femaleModel = 62739;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 532;\n\t\t\titemDef.modelRotation2 = 14;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33025:\n\t\t\titemDef.name = \"Pernix body\";\n\t\t\titemDef.description = \"An ancient warrior's leather body.\";\n\t\t\titemDef.modelId = 62709;\n\t\t\titemDef.maleModel = 62744;\n\t\t\titemDef.femaleModel = 62744;\n\t\t\titemDef.modelZoom = 1378;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 2042;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33026:\n\t\t\titemDef.name = \"Pernix chaps\";\n\t\t\titemDef.description = \"An ancient warrior's chaps.\";\n\t\t\titemDef.modelId = 62695;\n\t\t\titemDef.maleModel = 62741;\n\t\t\titemDef.femaleModel = 62741;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 504;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33027:\n\t\t\titemDef.name = \"Virtus mask\";\n\t\t\titemDef.description = \"An ancient warrior's mask.\";\n\t\t\titemDef.modelId = 62710;\n\t\t\titemDef.maleModel = 62736;\n\t\t\titemDef.femaleModel = 62736;\n\t\t\titemDef.modelZoom = 928;\n\t\t\titemDef.modelRotation1 = 406;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33028:\n\t\t\titemDef.name = \"Virtus robe top\";\n\t\t\titemDef.description = \"An ancient warrior's robe top.\";\n\t\t\titemDef.modelId = 62704;\n\t\t\titemDef.maleModel = 62748;\n\t\t\titemDef.femaleModel = 62748;\n\t\t\titemDef.modelZoom = 1122;\n\t\t\titemDef.modelRotation1 = 488;\n\t\t\titemDef.modelRotation2 = 3;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33029:\n\t\t\titemDef.name = \"Virtus robe legs\";\n\t\t\titemDef.description = \"An ancient warrior's robe legs.\";\n\t\t\titemDef.modelId = 62700;\n\t\t\titemDef.maleModel = 62742;\n\t\t\titemDef.femaleModel = 62742;\n\t\t\titemDef.modelZoom = 1740;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 2045;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33030:\n\t\t\titemDef.name = \"Zaryte bow\";\n\t\t\titemDef.description = \"An ancient warrior's bow.\";\n\t\t\titemDef.modelId = 62692;\n\t\t\titemDef.maleModel = 62750;\n\t\t\titemDef.femaleModel = 62750;\n\t\t\titemDef.modelZoom = 1703;\n\t\t\titemDef.modelRotation1 = 221;\n\t\t\titemDef.modelRotation2 = 404;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33083:\n\t\t\titemDef.name = \"Tokhaar-kal\";\n\t\t\titemDef.description = \"\tA cape made of ancient, enchanted obsidian.\";\n\t\t\titemDef.modelId = 52073;\n\t\t\titemDef.maleModel = 52072;\n\t\t\titemDef.femaleModel = 52071;\n\t\t\titemDef.modelZoom = 1615;\n\t\t\titemDef.modelRotation1 = 339;\n\t\t\titemDef.modelRotation2 = 192;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33089:\n\t\t\titemDef.name = \"Chaotic maul\";\n\t\t\titemDef.description = \"A maul used to claim life from those who don't deserve it.\";\n\t\t\titemDef.modelId = 54286;\n\t\t\titemDef.maleModel = 56294;\n\t\t\titemDef.femaleModel = 56294;\n\t\t\titemDef.modelZoom = 1447;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33094:\n\t\t\titemDef.name = \"Chaotic crossbow\";\n\t\t\titemDef.description = \"A small crossbow, only effective at short distance.\";\n\t\t\titemDef.modelId = 54331;\n\t\t\titemDef.maleModel = 56307;\n\t\t\titemDef.femaleModel = 56307;\n\t\t\titemDef.modelZoom = 1028;\n\t\t\titemDef.modelRotation1 = 249;\n\t\t\titemDef.modelRotation2 = 2021;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -54;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33095:\n\t\t\titemDef.name = \"Chaotic staff\";\n\t\t\titemDef.description = \"This staff makes destructive spells more powerful.\";\n\t\t\titemDef.modelId = 54367;\n\t\t\titemDef.maleModel = 56286;\n\t\t\titemDef.femaleModel = 56286;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33096:\n\t\t\titemDef.name = \"Chaotic kiteshield\";\n\t\t\titemDef.description = \"A large metal shield.\";\n\t\t\titemDef.modelId = 54358;\n\t\t\titemDef.maleModel = 56038;\n\t\t\titemDef.femaleModel = 56038;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 276;\n\t\t\titemDef.modelRotation2 = 1101;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33031:\n\t\t\titemDef.name = \"Chaotic rapier\";\n\t\t\titemDef.description = \"A razor-sharp rapier.\";\n\t\t\titemDef.modelId = 54197;\n\t\t\titemDef.maleModel = 56252;\n\t\t\titemDef.femaleModel = 56252;\n\t\t\titemDef.modelZoom = 1425;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 1370;\n\t\t\titemDef.modelOffset1 = 9;\n\t\t\titemDef.modelOffset2 = 13;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33032:\n\t\t\titemDef.name = \"Chaotic longsword\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 54204;\n\t\t\titemDef.maleModel = 56237;\n\t\t\titemDef.femaleModel = 56237;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -7;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\tbreak;\n\t\tcase 33097:\n\t\t\titemDef.name = \"Sword of Onyxia\";\n\t\t\titemDef.description = \"A razor-sharp longsword.\";\n\t\t\titemDef.modelId = 53091;\n\t\t\titemDef.maleModel = 53092;\n\t\t\titemDef.femaleModel = 53092;\n\t\t\titemDef.modelZoom = 2007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33098:\n\t\t\titemDef.name = \"Onyxia longsword\";\n\t\t\titemDef.description = \"A razor-sharp 2h sword.\";\n\t\t\titemDef.modelId = 53093;\n\t\t\titemDef.maleModel = 53094;\n\t\t\titemDef.femaleModel = 53094;\n\t\t\titemDef.modelZoom = 4007;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.maleOffset = -8;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33099:\n\t\t\titemDef.name = \"White scimitar\";\n\t\t\titemDef.description = \"A razor-sharp scimitar.\";\n\t\t\titemDef.modelId = 53097;\n\t\t\titemDef.maleModel = 53098;\n\t\t\titemDef.femaleModel = 53098;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 312;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33100:\n\t\t\titemDef.name = \"White kiteshield\";\n\t\t\titemDef.description = \"a heavy kiteshield.\";\n\t\t\titemDef.modelId = 53095;\n\t\t\titemDef.maleModel = 53096;\n\t\t\titemDef.femaleModel = 53096;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelRotation1 = 303;\n\t\t\titemDef.modelRotation2 = 180;\n\t\t\t// itemDef.aByte154 = -14;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33033:\n\t\t\titemDef.name = \"Agility master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 677, 801, 43540, 43543, 43546, 43549, 43550, 43552, 43554, 43558,\n\t\t\t\t\t43560, 43575 };\n\t\t\titemDef.modelId = 50030;\n\t\t\titemDef.maleModel = 50031;\n\t\t\titemDef.femaleModel = 50031;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33034:\n\t\t\titemDef.name = \"Attack master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 7104, 9151, 911, 914, 917, 920, 921, 923, 925, 929, 931, 946 };\n\t\t\titemDef.modelId = 50032;\n\t\t\titemDef.maleModel = 50033;\n\t\t\titemDef.femaleModel = 50033;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33035:\n\t\t\titemDef.name = \"Construction master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6061, 5945, 6327, 6330, 6333, 6336, 6337, 6339, 6341, 6345, 6347,\n\t\t\t\t\t6362 };\n\t\t\titemDef.modelId = 50034;\n\t\t\titemDef.maleModel = 50035;\n\t\t\titemDef.femaleModel = 50035;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33036:\n\t\t\titemDef.name = \"Cooking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 920, 920, 51856, 51859, 51862, 51865, 51866, 51868, 51870, 51874,\n\t\t\t\t\t51876, 51891 };\n\t\t\titemDef.modelId = 50036;\n\t\t\titemDef.maleModel = 50037;\n\t\t\titemDef.femaleModel = 50037;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33037:\n\t\t\titemDef.name = \"Crafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9142, 9152, 4511, 4514, 4517, 4520, 4521, 4523, 4525, 4529, 4531,\n\t\t\t\t\t4546 };\n\t\t\titemDef.modelId = 50038;\n\t\t\titemDef.maleModel = 50039;\n\t\t\titemDef.femaleModel = 50039;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33038:\n\t\t\titemDef.name = \"Defence master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 10460, 10473, 41410, 41413, 41416, 41419, 41420, 41422, 41424,\n\t\t\t\t\t41428, 41430, 41445 };\n\t\t\titemDef.modelId = 50040;\n\t\t\titemDef.maleModel = 50041;\n\t\t\titemDef.femaleModel = 50041;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33039:\n\t\t\titemDef.name = \"Farming master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 14775, 14792, 22026, 22029, 22032, 22035, 22036, 22038, 22040,\n\t\t\t\t\t22044, 22046, 22061 };\n\t\t\titemDef.modelId = 50042;\n\t\t\titemDef.maleModel = 50043;\n\t\t\titemDef.femaleModel = 50043;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33040:\n\t\t\titemDef.name = \"Firemaking master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8125, 9152, 4015, 4018, 4021, 4024, 4025, 4027, 4029, 4033, 4035,\n\t\t\t\t\t4050 };\n\t\t\titemDef.modelId = 50044;\n\t\t\titemDef.maleModel = 50045;\n\t\t\titemDef.femaleModel = 50045;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33041:\n\t\t\titemDef.name = \"Fishing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9144, 9152, 38202, 38205, 38208, 38211, 38212, 38214, 38216,\n\t\t\t\t\t38220, 38222, 38237 };\n\t\t\titemDef.modelId = 50046;\n\t\t\titemDef.maleModel = 50047;\n\t\t\titemDef.femaleModel = 50047;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33042:\n\t\t\titemDef.name = \"Fletching master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 6067, 9152, 33670, 33673, 33676, 33679, 33680, 33682, 33684,\n\t\t\t\t\t33688, 33690, 33705 };\n\t\t\titemDef.modelId = 50048;\n\t\t\titemDef.maleModel = 50049;\n\t\t\titemDef.femaleModel = 50049;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33043:\n\t\t\titemDef.name = \"Herblore master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9145, 9156, 22414, 22417, 22420, 22423, 22424, 22426, 22428,\n\t\t\t\t\t22432, 22434, 22449 };\n\t\t\titemDef.modelId = 50050;\n\t\t\titemDef.maleModel = 50051;\n\t\t\titemDef.femaleModel = 50051;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33044:\n\t\t\titemDef.name = \"Hitpoints master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 818, 951, 8291, 8294, 8297, 8300, 8301, 8303, 8305, 8309, 8311,\n\t\t\t\t\t8319 };\n\t\t\titemDef.modelId = 50052;\n\t\t\titemDef.maleModel = 50053;\n\t\t\titemDef.femaleModel = 50053;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\titemDef.femaleOffset = 4;\n\t\t\tbreak;\n\t\tcase 33045:\n\t\t\titemDef.name = \"Hunter master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 5262, 6020, 8472, 8475, 8478, 8481, 8482, 8484, 8486, 8490, 8492,\n\t\t\t\t\t8507 };\n\t\t\titemDef.modelId = 50054;\n\t\t\titemDef.maleModel = 50055;\n\t\t\titemDef.femaleModel = 50055;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33046:\n\t\t\titemDef.name = \"Magic master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 43569, 43685, 6336, 6339, 6342, 6345, 6346, 6348, 6350, 6354,\n\t\t\t\t\t6356, 6371 };\n\t\t\titemDef.modelId = 50056;\n\t\t\titemDef.maleModel = 50057;\n\t\t\titemDef.femaleModel = 50057;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33047:\n\t\t\titemDef.name = \"Mining master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 36296, 36279, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50058;\n\t\t\titemDef.maleModel = 50059;\n\t\t\titemDef.femaleModel = 50059;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33048:\n\t\t\titemDef.name = \"Prayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9163, 9168, 117, 120, 123, 126, 127, 127, 127, 127, 127, 127 };\n\t\t\titemDef.modelId = 50060;\n\t\t\titemDef.maleModel = 50061;\n\t\t\titemDef.femaleModel = 50061;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33049:\n\t\t\titemDef.name = \"Range master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 3755, 3998, 15122, 15125, 15128, 15131, 15132, 15134, 15136,\n\t\t\t\t\t15140, 15142, 15157 };\n\t\t\titemDef.modelId = 50062;\n\t\t\titemDef.maleModel = 50063;\n\t\t\titemDef.femaleModel = 50063;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33050:\n\t\t\titemDef.name = \"Runecrafting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\t// 4 //7 //10 //13 //14//16//18//22 //24//39\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 9152, 8128, 10318, 10321, 10324, 10327, 10328, 10330, 10332,\n\t\t\t\t\t10336, 10338, 10353 };\n\t\t\titemDef.modelId = 50064;\n\t\t\titemDef.maleModel = 50065;\n\t\t\titemDef.femaleModel = 50065;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33051:\n\t\t\titemDef.name = \"Slayer master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811 };\n\t\t\titemDef.originalModelColors = new int[] { 912, 920 };\n\t\t\titemDef.modelId = 50066;\n\t\t\titemDef.maleModel = 50067;\n\t\t\titemDef.femaleModel = 50067;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33052:\n\t\t\titemDef.name = \"Smithing master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 8115, 9148, 10386, 10389, 10392, 10395, 10396, 10398, 10400,\n\t\t\t\t\t10404, 10406, 10421 };\n\t\t\titemDef.modelId = 50068;\n\t\t\titemDef.maleModel = 50069;\n\t\t\titemDef.femaleModel = 50069;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33053:\n\t\t\titemDef.name = \"Strength master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 931, 27538, 27541, 27544, 27547, 27548, 27550, 27552, 27556,\n\t\t\t\t\t27558, 27573 };\n\t\t\titemDef.modelId = 50070;\n\t\t\titemDef.maleModel = 50071;\n\t\t\titemDef.femaleModel = 50071;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33054:\n\t\t\titemDef.name = \"Thieving master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 11, 0, 58779, 58782, 58785, 58788, 58789, 57891, 58793, 58797,\n\t\t\t\t\t58799, 58814 };\n\t\t\titemDef.modelId = 50072;\n\t\t\titemDef.maleModel = 50073;\n\t\t\titemDef.femaleModel = 50073;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33055:\n\t\t\titemDef.name = \"Woodcutting master cape\";\n\t\t\titemDef.description = \"\tA cape worn by those who've overachieved.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 57022, 48811, 2, 1029, 1032, 11, 12, 14, 16, 20, 22, 2 };\n\t\t\titemDef.originalModelColors = new int[] { 25109, 24088, 6693, 6696, 6699, 6702, 6703, 6705, 6707, 6711,\n\t\t\t\t\t6713, 6728 };\n\t\t\titemDef.modelId = 50074;\n\t\t\titemDef.maleModel = 50075;\n\t\t\titemDef.femaleModel = 50075;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 5;\n\t\t\tbreak;\n\t\tcase 33057:\n\t\t\titemDef.name = \"Abyssal Scythe\";\n\t\t\titemDef.description = \"\tA Scythe recieved from the Trials of Xeric CUSTOM RAID.\";\n\t\t\titemDef.modelId = 50081;\n\t\t\titemDef.maleModel = 50080;\n\t\t\titemDef.femaleModel = 50080;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.maleOffset = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33090:\n\t\t\titemDef.name = \"Goliath gloves (Black)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50100;\n\t\t\titemDef.femaleModel = 50101;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33091:\n\t\t\titemDef.name = \"Goliath gloves (Red)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50102;\n\t\t\titemDef.femaleModel = 50103;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33092:\n\t\t\titemDef.name = \"Goliath gloves (White)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50104;\n\t\t\titemDef.femaleModel = 50105;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33093:\n\t\t\titemDef.name = \"Goliath gloves (Yellow)\";\n\t\t\titemDef.description = \"\tA pair of gloves earned with blood.\";\n\t\t\titemDef.modelId = 50108;\n\t\t\titemDef.maleModel = 50106;\n\t\t\titemDef.femaleModel = 50107;\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 40;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 12639:\n\t\tcase 12637:\n\t\tcase 12638:\n\t\t\titemDef.description = \"Provides players with infinite run energy!\";\n\t\t\tbreak;\n\t\tcase 33056:\n\t\t\titemDef.name = \"Events cape (slayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 0, 0, 0, 0 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33081:\n\t\t\titemDef.name = \"Events cape (agility)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 669, 43430, 43430, 43430, 43430 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33080:\n\t\t\titemDef.name = \"Events cape (attack)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9926, 1815, 1815, 1815, 1815 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33059:\n\t\t\titemDef.name = \"Events cape (construction)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6967, 6343, 6343, 6343, 6343 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33061:\n\t\t\titemDef.name = \"Events cape (cooking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 49685, 49685, 49685, 49685 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33062:\n\t\t\titemDef.name = \"Events cape (crafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 7994, 4516, 4516, 4516, 4516 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33063:\n\t\t\titemDef.name = \"Events cape (defence)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 39367, 10472, 10472, 10472, 10472 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33064:\n\t\t\titemDef.name = \"Events cape (farming)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10698, 19734, 19734, 19734, 19734 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33065:\n\t\t\titemDef.name = \"Events cape (firemaking)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10059, 4922, 4922, 4922, 4922 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33066:\n\t\t\titemDef.name = \"Events cape (fishing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 36165, 36165, 36165, 36165 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33067:\n\t\t\titemDef.name = \"Events cape (fletching)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 31500, 31500, 31500, 31500 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33068:\n\t\t\titemDef.name = \"Events cape (herblore)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10051, 20889, 20889, 20889, 20889 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33069:\n\t\t\titemDef.name = \"Events cape (hitpoints)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1836, 8296, 8296, 8296, 8296 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33070:\n\t\t\titemDef.name = \"Events cape (hunter)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 6916, 8477, 8477, 8477, 8477 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33071:\n\t\t\titemDef.name = \"Events cape (magic)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 43556, 6339, 6339, 6339, 6339 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33072:\n\t\t\titemDef.name = \"Events cape (mining)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 34111, 10391, 10391, 10391, 10391 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33073:\n\t\t\titemDef.name = \"Events cape (prayer)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 9927, 2169, 2169, 2169, 2169 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33074:\n\t\t\titemDef.name = \"Events cape (range)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 3626, 20913, 20913, 20913, 20913 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33075:\n\t\t\titemDef.name = \"Events cape (runecrafting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10047, 10323, 10323, 10323, 10323 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33076:\n\t\t\titemDef.name = \"Events cape (smithing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 10044, 5412, 5412, 5412, 5412 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33077:\n\t\t\titemDef.name = \"Events cape (strength)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 1819, 30487, 30487, 30487, 30487 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33078:\n\t\t\titemDef.name = \"Events cape (thieveing)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 8, 57636, 57636, 57636, 57636 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33079:\n\t\t\titemDef.name = \"Events cape (woodcutting)\";\n\t\t\titemDef.description = \"events cape.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 38333, 127, 107, 115, 90 };\n\t\t\titemDef.originalModelColors = new int[] { 26007, 6570, 6570, 6570, 6570 };\n\t\t\titemDef.modelId = 34418;\n\t\t\titemDef.maleModel = 34271;\n\t\t\titemDef.femaleModel = 34288;\n\t\t\titemDef.modelZoom = 1960;\n\t\t\titemDef.modelRotation1 = 528;\n\t\t\titemDef.modelRotation2 = 1583;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33101:\n\t\t\titemDef.name = \"Vorkath platebody\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53100;\n\t\t\titemDef.maleModel = 53099;\n\t\t\titemDef.femaleModel = 53099;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33102:\n\t\t\titemDef.name = \"Vorkath platelegs\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53102;\n\t\t\titemDef.maleModel = 53101;\n\t\t\titemDef.femaleModel = 53101;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33103:\n\t\t\titemDef.name = \"Vorkath boots\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33104:\n\t\t\titemDef.name = \"Vorkath gloves\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33105:\n\t\t\titemDef.name = \"Vorkath helmet\";\n\t\t\titemDef.description = \"Vorkath armour.\";\n\t\t\titemDef.modelId = 53108;\n\t\t\titemDef.maleModel = 53107;\n\t\t\titemDef.femaleModel = 53107;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33106:\n\t\t\titemDef.name = \"Tekton helmet\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53118;\n\t\t\titemDef.maleModel = 53117;\n\t\t\titemDef.femaleModel = 53117;\n\t\t\titemDef.modelZoom = 724;\n\t\t\titemDef.modelRotation1 = 81;\n\t\t\titemDef.modelRotation2 = 1670;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33107:\n\t\t\titemDef.name = \"Tekton platebody\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53110;\n\t\t\titemDef.maleModel = 53109;\n\t\t\titemDef.femaleModel = 53109;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33108:\n\t\t\titemDef.name = \"Tekton platelegs\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53112;\n\t\t\titemDef.maleModel = 53111;\n\t\t\titemDef.femaleModel = 53111;\n\t\t\titemDef.modelZoom = 1550;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 186;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 11;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33109:\n\t\t\titemDef.name = \"Tekton gloves\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53116;\n\t\t\titemDef.maleModel = 53115;\n\t\t\titemDef.femaleModel = 53115;\n\t\t\titemDef.modelZoom = 830;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33110:\n\t\t\titemDef.name = \"Tekton boots\";\n\t\t\titemDef.description = \"Tekton armour.\";\n\t\t\titemDef.modelId = 53114;\n\t\t\titemDef.maleModel = 53113;\n\t\t\titemDef.femaleModel = 53113;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33111:\n\t\t\titemDef.name = \"Anti-santa scythe\";\n\t\t\titemDef.description = \"Legend says this is the biggest arse scratcher around.\";\n\t\t\titemDef.modelId = 57002;\n\t\t\titemDef.maleModel = 57001;\n\t\t\titemDef.femaleModel = 57001;\n\t\t\titemDef.modelZoom = 3224;\n\t\t\titemDef.modelRotation1 = 539;\n\t\t\titemDef.modelRotation2 = 714;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33112:\n\t\t\titemDef.name = \"Dominion staff\";\n\t\t\titemDef.description = \"Dominion staff.\";\n\t\t\titemDef.modelId = 59029;\n\t\t\titemDef.maleModel = 59305;\n\t\t\titemDef.femaleModel = 59305;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33113:\n\t\t\titemDef.name = \"Dominion sword\";\n\t\t\titemDef.description = \"Dominion sword.\";\n\t\t\titemDef.modelId = 59832;\n\t\t\titemDef.maleModel = 59306;\n\t\t\titemDef.femaleModel = 59306;\n\t\t\titemDef.modelZoom = 1829;\n\t\t\titemDef.modelRotation1 = 513;\n\t\t\titemDef.modelRotation2 = 546;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33114:\n\t\t\titemDef.name = \"Dominion crossbow\";\n\t\t\titemDef.description = \"Dominion crossbow.\";\n\t\t\titemDef.modelId = 59839;\n\t\t\titemDef.maleModel = 59304;\n\t\t\titemDef.femaleModel = 59304;\n\t\t\titemDef.modelZoom = 1490;\n\t\t\titemDef.modelRotation1 = 362;\n\t\t\titemDef.modelRotation2 = 791;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33115:\n\t\t\titemDef.name = \"Dragonfire Shield (e)\";\n\t\t\titemDef.description = \"unamed shield.\";\n\t\t\titemDef.modelId = 53120;\n\t\t\titemDef.maleModel = 53119;\n\t\t\titemDef.femaleModel = 53119;\n\t\t\titemDef.modelZoom = 2022;\n\t\t\titemDef.modelRotation1 = 540;\n\t\t\titemDef.modelRotation2 = 123;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[] { null, \"Wear\", \"Inspect\", \"Empty\", \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33116:\n\t\t\titemDef.name = \"Zilyana's longbow\";\n\t\t\titemDef.description = \"A bow belonged to Zilyana.\";\n\t\t\titemDef.modelId = 53122;\n\t\t\titemDef.maleModel = 53121;\n\t\t\titemDef.femaleModel = 53121;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33117:\n\t\t\titemDef.name = \"Black dragon hunter crossbow\";\n\t\t\titemDef.description = \"Black dragon hunter crossbow.\";\n\t\t\titemDef.modelId = 53124;\n\t\t\titemDef.maleModel = 53123;\n\t\t\titemDef.femaleModel = 53123;\n\t\t\titemDef.modelZoom = 1554;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 1010;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33118:\n\t\t\titemDef.name = \"Vorkath blowpipe\";\n\t\t\titemDef.description = \"Vorkath blowpipe.\";\n\t\t\titemDef.modelId = 53126;\n\t\t\titemDef.maleModel = 53125;\n\t\t\titemDef.femaleModel = 53125;\n\t\t\titemDef.modelZoom = 1158;\n\t\t\titemDef.modelRotation1 = 768;\n\t\t\titemDef.modelRotation2 = 189;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33119:\n\t\t\titemDef.name = \"Superior twisted bow\";\n\t\t\titemDef.description = \"An upgraded twisted bow.\";\n\t\t\titemDef.modelId = 53128;\n\t\t\titemDef.maleModel = 53127;\n\t\t\titemDef.femaleModel = 53127;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\t\tcase 33123:\n\t\t\titemDef.name = \"Staff of sliske\";\n\t\t\titemDef.description = \"Staff of sliske.\";\n\t\t\titemDef.modelId = 59234;\n\t\t\titemDef.maleModel = 59233;\n\t\t\titemDef.femaleModel = 59233;\n\t\t\titemDef.modelZoom = 1872;\n\t\t\titemDef.modelRotation1 = 288;\n\t\t\titemDef.modelRotation2 = 1685;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33124:\n\t\t\titemDef.name = \"Twisted crossbow\";\n\t\t\titemDef.description = \"Twisted crossbow.\";\n\t\t\titemDef.modelId = 62777;\n\t\t\titemDef.maleModel = 62776;\n\t\t\titemDef.femaleModel = 62776;\n\t\t\titemDef.modelZoom = 926;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33125:\n\t\t\titemDef.name = \"Present\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 933, 24410 };\n\t\t\titemDef.description = \"Santa's stolen present\";\n\t\t\tbreak;\n\t\tcase 33126:\n\t\t\titemDef.name = \"Christmas tree branch\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 2412;\n\t\t\titemDef.modelZoom = 940;\n\t\t\titemDef.modelRotation1 = 268;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -21;\n\t\t\titemDef.modifiedModelColors = new int[] { 11144 };\n\t\t\titemDef.originalModelColors = new int[] { 6047 };\n\t\t\titemDef.description = \"Enter examine here.\";\n\t\t\tbreak;\n\t\tcase 33127:\n\t\t\titemDef.name = \"Kbd gloves\";\n\t\t\titemDef.description = \"Kbd gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33085 };\n\t\t\titemDef.originalModelColors = new int[] { 1060 };\n\t\t\titemDef.modelId = 53106;\n\t\t\titemDef.maleModel = 53105;\n\t\t\titemDef.femaleModel = 53105;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33128:\n\t\t\titemDef.name = \"Kbd boots\";\n\t\t\titemDef.description = \"Kbd boots.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 33198, 33202, 33206, 33215, 33210 };\n\t\t\titemDef.originalModelColors = new int[] { 1060, 1061, 1063, 1064, 1065 };\n\t\t\titemDef.modelId = 53104;\n\t\t\titemDef.maleModel = 53103;\n\t\t\titemDef.femaleModel = 53103;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33129:\n\t\t\titemDef.name = \"Kbd platelegs\";\n\t\t\titemDef.description = \"Kbd platelegs.\";\n\t\t\titemDef.modelId = 59994;\n\t\t\titemDef.maleModel = 59995;\n\t\t\titemDef.femaleModel = 59995;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33130:\n\t\t\titemDef.name = \"Kbd platebody\";\n\t\t\titemDef.description = \"Kbd platebody.\";\n\t\t\titemDef.modelId = 59998;\n\t\t\titemDef.maleModel = 59999;\n\t\t\titemDef.femaleModel = 59999;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33131:\n\t\t\titemDef.name = \"Kbd helmet\";\n\t\t\titemDef.description = \"Kbd helmet.\";\n\t\t\titemDef.modelId = 59996;\n\t\t\titemDef.maleModel = 59997;\n\t\t\titemDef.femaleModel = 59997;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33132:\n\t\t\titemDef.name = \"Kbd cape\";\n\t\t\titemDef.description = \"Kbd cape.\";\n\t\t\titemDef.modelId = 59992;\n\t\t\titemDef.maleModel = 59993;\n\t\t\titemDef.femaleModel = 59993;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33133:\n\t\t\titemDef.name = \"Anti-imp pet\";\n\t\t\titemDef.description = \"Anti-imp pet.\";\n\t\t\titemDef.modelId = 45294;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33134:\n\t\t\titemDef.name = \"Anti-santa pet\";\n\t\t\titemDef.description = \"Anti-santa pet.\";\n\t\t\titemDef.modelId = 29030;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 1966;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33135:\n\t\t\titemDef.name = \"Bandos mask\";\n\t\t\titemDef.description = \"Bandos helmet.\";\n\t\t\titemDef.modelId = 59987;\n\t\t\titemDef.maleModel = 59991;\n\t\t\titemDef.femaleModel = 59991;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33136:\n\t\t\titemDef.name = \"Armadyl mask\";\n\t\t\titemDef.description = \"Armadyl mask.\";\n\t\t\titemDef.modelId = 59986;\n\t\t\titemDef.maleModel = 59990;\n\t\t\titemDef.femaleModel = 59990;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33137:\n\t\t\titemDef.name = \"Zamorak mask\";\n\t\t\titemDef.description = \"Zamorak mask.\";\n\t\t\titemDef.modelId = 59985;\n\t\t\titemDef.maleModel = 59989;\n\t\t\titemDef.femaleModel = 59989;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33138:\n\t\t\titemDef.name = \"Saradomin mask\";\n\t\t\titemDef.description = \"Saradomin mask.\";\n\t\t\titemDef.modelId = 59984;\n\t\t\titemDef.maleModel = 59988;\n\t\t\titemDef.femaleModel = 59988;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33139:\n\t\t\titemDef.name = \"Zamarok godbow\";\n\t\t\titemDef.description = \"Zamarok godbow.\";\n\t\t\titemDef.modelId = 60560;//60553\n\t\t\titemDef.maleModel = 60560;\n\t\t\titemDef.femaleModel = 60560;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33140:\n\t\t\titemDef.name = \"Saradomin godbow\";\n\t\t\titemDef.description = \"Saradomin godbow.\";\n\t\t\titemDef.modelId = 60555;\n\t\t\titemDef.maleModel = 60554;\n\t\t\titemDef.femaleModel = 60554;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33141:\n\t\t\titemDef.name = \"Bandos godbow\";\n\t\t\titemDef.description = \"Bandos godbow.\";\n\t\t\titemDef.modelId = 60559;\n\t\t\titemDef.maleModel = 60558;\n\t\t\titemDef.femaleModel = 60558;\n\t\t\titemDef.modelZoom = 2100;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33142:\n\t\t\titemDef.name = \"Fire cape (purple)\";\n\t\t\titemDef.description = \"Fire cape (purple).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33148:\n\t\t\titemDef.name = \"Fire cape (cyan)\";\n\t\t\titemDef.description = \"Fire cape (cyan).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33144:\n\t\t\titemDef.name = \"Fire cape (green)\";\n\t\t\titemDef.description = \"Fire cape (green).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33145:\n\t\t\titemDef.name = \"Fire cape (red)\";\n\t\t\titemDef.description = \"Fire cape (red).\";\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33143:\n\t\t\titemDef.name = \"Infernal cape (blue)\";\n\t\t\titemDef.description = \"Infernal cape (blue).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 39851, 39851, 39851, 39851 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33146:\n\t\t\titemDef.name = \"Infernal cape (green)\";\n\t\t\titemDef.description = \"Infernal cape (green).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 21167, 21167, 21167, 21167 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33147:\n\t\t\titemDef.name = \"Infernal cape (purple)\";\n\t\t\titemDef.description = \"Infernal cape (purple).\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5056, 5066, 924, 3005 };\n\t\t\titemDef.originalModelColors = new int[] { 53160, 53160, 53160, 53160 };\n\t\t\titemDef.modelId = 33144;\n\t\t\titemDef.maleModel = 33103;\n\t\t\titemDef.femaleModel = 33111;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33150:\n\t\t\titemDef.name = \"Infernal key piece 1\";\n\t\t\titemDef.description = \"Infernal key piece 1.\";\n\t\t\titemDef.modelId = 61001;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33151:\n\t\t\titemDef.name = \"Infernal key piece 2\";\n\t\t\titemDef.description = \"Infernal key piece 2.\";\n\t\t\titemDef.modelId = 61002;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33152:\n\t\t\titemDef.name = \"Infernal key piece 3\";\n\t\t\titemDef.description = \"Infernal key piece 3.\";\n\t\t\titemDef.modelId = 61003;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Combine\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33153:\n\t\t\titemDef.name = \"Infernal key\";\n\t\t\titemDef.description = \"Infernal key.\";\n\t\t\titemDef.modelId = 61111;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 534;\n\t\t\titemDef.modelRotation2 = 222;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\t\t//DOPES ITEMS NIGGAHAHAHAHAHAHAH\n\t\tcase 2749:\n\t\t\titemDef.name = \"Bloody Axe\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65495;\n\t\t\titemDef.femaleModel = 65495;\n\t\t\titemDef.maleModel = 65495;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 2750:\n\t\t\titemDef.name = \"Bloody Axe Offhand\";\n\t\t\titemDef.description = \"Look at all that blood!\";\n\t\t\titemDef.modelId = 65496;\n\t\t\titemDef.femaleModel = 65496;\n\t\t\titemDef.maleModel = 65496;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33154:\n\t\t\titemDef.name = \"Infernal mystery box\";\n\t\t\titemDef.description = \"Infernal mystery box.\";\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33155:\n\t\t\titemDef.name = \"Ethereal sword (red)\";\n\t\t\titemDef.description = \"Ethereal sword (red).\";\n\t\t\titemDef.modelId = 61005;\n\t\t\titemDef.maleModel = 61004;\n\t\t\titemDef.femaleModel = 61004;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33156:\n\t\t\titemDef.name = \"Ethereal sword (blue)\";\n\t\t\titemDef.description = \"Ethereal sword (blue).\";\n\t\t\titemDef.modelId = 61006;\n\t\t\titemDef.maleModel = 61007;\n\t\t\titemDef.femaleModel = 61007;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33157:\n\t\t\titemDef.name = \"Ethereal sword (green)\";\n\t\t\titemDef.description = \"Ethereal sword (green).\";\n\t\t\titemDef.modelId = 61008;\n\t\t\titemDef.maleModel = 61009;\n\t\t\titemDef.femaleModel = 61009;\n\t\t\titemDef.modelZoom = 1645;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33158:\n\t\t\titemDef.name = \"Dagon' hai top\";\n\t\t\titemDef.description = \"An elite dark mages robes.\";\n\t\t\titemDef.modelId = 60317;\n\t\t\titemDef.maleModel = 43614;\n\t\t\titemDef.femaleModel = 43689;\n\t\t\titemDef.anInt188 = 44594;\n\t\t\titemDef.anInt164 = 43681;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 536;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33159:\n\t\t\titemDef.name = \"Dagon' hai hat\";\n\t\t\titemDef.description = \"An elite dark mages hat.\";\n\t\t\titemDef.modelId = 60319;\n\t\t\titemDef.maleModel = 60318;\n\t\t\titemDef.femaleModel = 60318;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 1373;\n\t\t\titemDef.modelRotation1 = 98;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33160:\n\t\t\titemDef.name = \"Dagon' hai robe\";\n\t\t\titemDef.description = \"An elite dark mages robe.\";\n\t\t\titemDef.modelId = 60321;\n\t\t\titemDef.maleModel = 60320;\n\t\t\titemDef.femaleModel = 60320;\n\t\t\titemDef.anInt188 = -1;\n\t\t\titemDef.anInt164 = -1;\n\t\t\titemDef.modelZoom = 2216;\n\t\t\titemDef.modelRotation1 = 572;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 14;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33161:\n\t\t\titemDef.name = \"Blue infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Blue.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33162:\n\t\t\titemDef.name = \"Green infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33163:\n\t\t\titemDef.name = \"Purple infernal cape mix\";\n\t\t\titemDef.description = \"Changes the color of the Infernal Cape to Purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33164:\n\t\t\titemDef.name = \"Purple firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to purple.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33165:\n\t\t\titemDef.name = \"Cyan firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to cyan.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33166:\n\t\t\titemDef.name = \"Green firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to green.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33167:\n\t\t\titemDef.name = \"Red firecape mix\";\n\t\t\titemDef.description = \"Changes the color of the firecape to red.\";\n\t\t\titemDef.modelId = 8956;\n\t\t\titemDef.modelZoom = 842;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Use\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33169:\n\t\t\titemDef.name = \"K'ril robe top\";\n\t\t\titemDef.description = \"A top worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62558;\n\t\t\titemDef.maleModel = 62559;\n\t\t\titemDef.femaleModel = 62559;\n\t\t\titemDef.modelZoom = 1358;\n\t\t\titemDef.modelRotation1 = 514;\n\t\t\titemDef.modelRotation2 = 2041;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33170:\n\t\t\titemDef.name = \"K'ril robe bottom\";\n\t\t\titemDef.description = \"A robe worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62553;\n\t\t\titemDef.maleModel = 62554;\n\t\t\titemDef.femaleModel = 62554;\n\t\t\titemDef.modelZoom = 1690;\n\t\t\titemDef.modelRotation1 = 435;\n\t\t\titemDef.modelRotation2 = 9;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 7;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33171:\n\t\t\titemDef.name = \"K'ril hat\";\n\t\t\titemDef.description = \"A hat worn by magic-using followers of Zamorak.\";\n\t\t\titemDef.modelId = 62551;\n\t\t\titemDef.maleModel = 62552;\n\t\t\titemDef.femaleModel = 62552;\n\t\t\titemDef.modelZoom = 1236;\n\t\t\titemDef.modelRotation1 = 118;\n\t\t\titemDef.modelRotation2 = 10;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -12;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33172:\n\t\t\titemDef.name = \"K'ril swords\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62557;\n\t\t\titemDef.femaleModel = 62557;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33173:\n\t\t\titemDef.name = \"K'ril swords (sheathed)\";\n\t\t\titemDef.description = \"Sheath & Unsheath this sword in the Equipment tab. Hits an enemy twice.\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 62556;\n\t\t\titemDef.maleModel = 62556;\n\t\t\titemDef.femaleModel = 62556;\n\t\t\titemDef.modelZoom = 1650;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 1300;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33174:\n\t\t\titemDef.name = \"Pet demonic gorilla\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31241;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33175:\n\t\t\titemDef.name = \"Pet crawling hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5071;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33176:\n\t\t\titemDef.name = \"Pet cave bug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 23854;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33177:\n\t\t\titemDef.name = \"Pet cave crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5066;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33178:\n\t\t\titemDef.name = \"Pet banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5063;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33179:\n\t\t\titemDef.name = \"Pet cave slime\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5786;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33180:\n\t\t\titemDef.name = \"Pet rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5084;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33181:\n\t\t\titemDef.name = \"Pet cockatrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5070;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33182:\n\t\t\titemDef.name = \"Pet pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5083;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33183:\n\t\t\titemDef.name = \"Pet basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5064;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33184:\n\t\t\titemDef.name = \"Pet infernal mage\";\n\t\t\titemDef.modifiedModelColors = new int[] { -26527, -24618, -25152, -25491, 119 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 148, 0, 924, 924 };\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5047;\n\t\t\titemDef.modelZoom = 3940;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 84;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33185:\n\t\t\titemDef.name = \"Pet bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5065;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33186:\n\t\t\titemDef.name = \"Pet jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5081;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33187:\n\t\t\titemDef.name = \"Pet turoth\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5086;\n\t\t\titemDef.modelZoom = 2600;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33188:\n\t\t\titemDef.name = \"Pet aberrant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5085;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 450;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33189:\n\t\t\titemDef.name = \"Pet dust devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5076;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33190:\n\t\t\titemDef.name = \"Pet kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5082;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33191:\n\t\t\titemDef.name = \"Pet skeletal wyvern\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10350;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 27;\n\t\t\titemDef.modelRotation2 = 1634;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33192:\n\t\t\titemDef.name = \"Pet garygoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5078;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33193:\n\t\t\titemDef.name = \"Pet nechryael\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5074;\n\t\t\titemDef.modelZoom = 4000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33194:\n\t\t\titemDef.name = \"Pet abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 5062;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33195:\n\t\t\titemDef.name = \"Pet dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26395;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33196:\n\t\t\titemDef.name = \"Pet night beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32933;\n\t\t\titemDef.modelZoom = 7000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33197:\n\t\t\titemDef.name = \"Pet greater abyssal demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33198:\n\t\t\titemDef.name = \"Pet crushing hand\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32922;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33199:\n\t\t\titemDef.name = \"Pet chasm crawler\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32918;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33200:\n\t\t\titemDef.name = \"Pet screaming banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32823;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33201:\n\t\t\titemDef.name = \"Pet twisted banshee\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32847;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33202:\n\t\t\titemDef.name = \"Pet giant rockslug\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32919;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33203:\n\t\t\titemDef.name = \"Pet cockathrice\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32920;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33204:\n\t\t\titemDef.name = \"Pet flaming pyrelord\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32923;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33205:\n\t\t\titemDef.name = \"Pet monstrous basilisk\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32924;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33206:\n\t\t\titemDef.name = \"Pet malevolent mage\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32929;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33207:\n\t\t\titemDef.name = \"Pet insatiable bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33208:\n\t\t\titemDef.name = \"Pet insatiable mutated bloodveld\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32925;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33209:\n\t\t\titemDef.name = \"Pet vitreous jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32852;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33210:\n\t\t\titemDef.name = \"Pet vitreous warped jelly\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32917;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33211:\n\t\t\titemDef.name = \"Pet cave abomination\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32935;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33212:\n\t\t\titemDef.name = \"Pet abhorrent spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32930;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33213:\n\t\t\titemDef.name = \"pet repugnant spectre\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32926;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33214:\n\t\t\titemDef.name = \"Pet choke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32927;\n\t\t\titemDef.modelZoom = 6000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33215:\n\t\t\titemDef.name = \"Pet king kurask\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32934;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33217:\n\t\t\titemDef.name = \"Pet nuclear smoke devil\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32928;\n\t\t\titemDef.modelZoom = 5500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33218:\n\t\t\titemDef.name = \"Pet marble gargoyle\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34251;\n\t\t\titemDef.modelZoom = 8000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33219:\n\t\t\titemDef.name = \"Pet nechryarch\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32932;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33220:\n\t\t\titemDef.name = \"Pet Patrity\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32035;\n\t\t\titemDef.modelZoom = 653;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33221:\n\t\t\titemDef.name = \"Pet xarpus\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35383;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33222:\n\t\t\titemDef.name = \"Pet nyclocas vasilias\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35182;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33223:\n\t\t\titemDef.name = \"Pet pestilent bloat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35404;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33224:\n\t\t\titemDef.name = \"Pet maiden of sugadinti\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35385;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33225:\n\t\t\titemDef.name = \"Pet lizardman shaman\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4039;\n\t\t\titemDef.modelZoom = 8500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33226:\n\t\t\titemDef.name = \"Pet abyssal sire\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 29477;\n\t\t\titemDef.modelZoom = 9000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33227:\n\t\t\titemDef.name = \"Pet black demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31984;\n\t\t\titemDef.modelZoom = 1104;\n\t\t\titemDef.modelRotation1 = 144;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = 7;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11802:\n\t\tcase 11804:\n\t\tcase 11806:\n\t\tcase 11808:\n\t\t\titemDef.equipActions[2] = \"Sheath\";\n\t\t\tbreak;// godsword sheathing operating\n\n\t\tcase 33228:\n\t\t\titemDef.name = \"Pet greater demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33229:\n\t\t\titemDef.name = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.description = \"Armadyl godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28075;\n\t\t\titemDef.maleModel = 62683;\n\t\t\titemDef.femaleModel = 62683;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33230:\n\t\t\titemDef.name = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.description = \"Bandos godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28059;\n\t\t\titemDef.maleModel = 62684;\n\t\t\titemDef.femaleModel = 62684;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33231:\n\t\t\titemDef.name = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.description = \"Saradomin godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28070;\n\t\t\titemDef.maleModel = 62685;\n\t\t\titemDef.femaleModel = 62685;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33232:\n\t\t\titemDef.name = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.description = \"Zamorak godsword (sheathed)\";\n\t\t\titemDef.equipActions[2] = \"Unsheath\";\n\t\t\titemDef.modelId = 28060;\n\t\t\titemDef.maleModel = 62686;\n\t\t\titemDef.femaleModel = 62686;\n\t\t\titemDef.modelZoom = 1957;\n\t\t\titemDef.modelRotation1 = 498;\n\t\t\titemDef.modelRotation2 = 494;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33233:\n\t\t\titemDef.name = \"Pet revenant imp\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34156;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33234:\n\t\t\titemDef.name = \"Pet revenant goblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34262;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33235:\n\t\t\titemDef.name = \"Pet revenant pyrefiend\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34142;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33236:\n\t\t\titemDef.name = \"Pet revenant hobgoblin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34157;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33237:\n\t\t\titemDef.name = \"Pet revenant cyclops\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34155;\n\t\t\titemDef.modelZoom = 4500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33238:\n\t\t\titemDef.name = \"Pet revenant hellhound\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34143;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33239:\n\t\t\titemDef.name = \"Pet revenant demon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32015;\n\t\t\titemDef.modifiedModelColors = new int[] { 1690, 910, 912, 1814, 1938 };\n\t\t\titemDef.originalModelColors = new int[] { 43078, 43078, 43078, 43078, 43078, 43078 };\n\t\t\titemDef.modelZoom = 902;\n\t\t\titemDef.modelRotation1 = 216;\n\t\t\titemDef.modelRotation2 = 138;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = -16;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33240:\n\t\t\titemDef.name = \"Pet revenant ork\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34154;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33242:\n\t\t\titemDef.name = \"Pet revenant dark beast\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34158;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33243:\n\t\t\titemDef.name = \"Pet revenant knight\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34145;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33244:\n\t\t\titemDef.name = \"Pet revenant dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34163;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33245:\n\t\t\titemDef.name = \"Pet glob\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26074;\n\t\t\titemDef.modelZoom = 10000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33246:\n\t\t\titemDef.name = \"Pet ice queen\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 104;\n\t\t\titemDef.modifiedModelColors = new int[] { 41, 61, 4550, 12224, 25238, 6798 };\n\t\t\titemDef.originalModelColors = new int[] { -22052, -26150, -24343, -22052, -22052, -23327 };\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33247:\n\t\t\titemDef.name = \"Pet enraged tarn\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60322;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33248:\n\t\t\titemDef.name = \"Pet jaltok-jad\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 33012;\n\t\t\titemDef.modelZoom = 12000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33249:\n\t\t\titemDef.name = \"Pet rune dragon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 34668;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33271:\n\t\t\titemDef.name = \"Moo\";\n\t\t\titemDef.description = \"cow goes moo.\";\n\t\t\titemDef.modelId = 23889;\n\t\t\titemDef.modelZoom = 2541;\n\t\t\titemDef.modelRotation1 = 83;\n\t\t\titemDef.modelRotation2 = 1826;\n\t\t\titemDef.modelOffset1 = -97;\n\t\t\titemDef.modelOffset2 = 9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33250:\n\t\t\titemDef.name = \"Swift gloves (Black)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62657;\n\t\t\titemDef.femaleModel = 62658;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33251:\n\t\t\titemDef.name = \"Swift gloves (Red)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62659;\n\t\t\titemDef.femaleModel = 62660;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33252:\n\t\t\titemDef.name = \"Swift gloves (White)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62661;\n\t\t\titemDef.femaleModel = 62662;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33253:\n\t\t\titemDef.name = \"Swift gloves (Yellow)\";\n\t\t\titemDef.description = \"Watch my speedy hands!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62655;\n\t\t\titemDef.maleModel = 62663;\n\t\t\titemDef.femaleModel = 62664;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33254:\n\t\t\titemDef.name = \"Spellcaster gloves (Black)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62665;\n\t\t\titemDef.femaleModel = 62666;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33255:\n\t\t\titemDef.name = \"Spellcaster gloves (Red)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 65046, 65051, 65056 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62667;\n\t\t\titemDef.femaleModel = 62668;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33256:\n\t\t\titemDef.name = \"Spellcaster gloves (White)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 64585, 64590, 64595 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62669;\n\t\t\titemDef.femaleModel = 62670;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33257:\n\t\t\titemDef.name = \"Spellcaster gloves (Yellow)\";\n\t\t\titemDef.description = \"\tSome pretty fantastical gloves.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 10, 15, 20 };\n\t\t\titemDef.originalModelColors = new int[] { 9767, 9772, 9777 };\n\t\t\titemDef.modelId = 62656;\n\t\t\titemDef.maleModel = 62671;\n\t\t\titemDef.femaleModel = 62672;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33258:\n\t\t\titemDef.name = \"Tekton longsword\";\n\t\t\titemDef.description = \"Tekton longsword.\";\n\t\t\titemDef.modelId = 62682;\n\t\t\titemDef.maleModel = 62681;\n\t\t\titemDef.femaleModel = 62681;\n\t\t\titemDef.modelZoom = 1445;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33259:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33260:\n\t\t\titemDef.name = \"Pet drake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36160;\n\t\t\titemDef.modelZoom = 6500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33261:\n\t\t\titemDef.name = \"Pet wyrm\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 36922;\n\t\t\titemDef.modelZoom = 2547;\n\t\t\titemDef.modelRotation1 = 97;\n\t\t\titemDef.modelRotation2 = 1820;\n\t\t\titemDef.modelOffset1 = -7;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33262:\n\t\t\titemDef.name = \"Valentines Balloon\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62766;\n\t\t\titemDef.maleModel = 62767;\n\t\t\titemDef.femaleModel = 62767;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 270;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33263:\n\t\t\titemDef.name = \"Cupid bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62768;\n\t\t\titemDef.maleModel = 62769;\n\t\t\titemDef.femaleModel = 62769;\n\t\t\titemDef.modelZoom = 1072;\n\t\t\titemDef.modelRotation1 = 127;\n\t\t\titemDef.modelRotation2 = 103;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = 2;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33264:\n\t\t\titemDef.name = \"Halo and horns\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62771;\n\t\t\titemDef.maleModel = 62770;\n\t\t\titemDef.femaleModel = 62770;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 228;\n\t\t\titemDef.modelRotation2 = 141;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33265:\n\t\t\titemDef.name = \"Heart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62782;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33266:\n\t\t\titemDef.name = \"Valentines mystery box\";\n\t\t\titemDef.description = \"You make me hard.\";\n\t\t\titemDef.modelId = 62773;\n\t\t\titemDef.modelZoom = 464;\n\t\t\titemDef.modelRotation1 = 423;\n\t\t\titemDef.modelRotation2 = 1928;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Open\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33267:\n\t\t\titemDef.name = \"Staff of adoration\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62774;\n\t\t\titemDef.maleModel = 62775;\n\t\t\titemDef.femaleModel = 62775;\n\t\t\titemDef.modelZoom = 1579;\n\t\t\titemDef.modelRotation1 = 660;\n\t\t\titemDef.modelRotation2 = 48;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33268:\n\t\t\titemDef.name = \"Valentines crossbow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 62778;\n\t\t\titemDef.maleModel = 62779;\n\t\t\titemDef.femaleModel = 62779;\n\t\t\titemDef.modelZoom = 1200;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 258;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33269:\n\t\t\titemDef.name = \"Onyxia Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 2130, 38693 };\n\t\t\titemDef.description = \"Chances at several unqiue items found only in this box! (ex: Tekton Armor)\";\n\t\t\tbreak;\n\t\tcase 33270:\n\t\t\titemDef.name = \"Dragon Hunter Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2426;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\titemDef.modifiedModelColors = new int[] { 22410, 2999 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 1050 };\n\t\t\titemDef.description = \"Chances for items that give bonuses toward dragons. (ex: Dragonhunter Lance)\";\n\t\t\tbreak;\n\t\tcase 33273:\n\t\t\titemDef.name = \"Ancient sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60201;\n\t\t\titemDef.maleModel = 60200;\n\t\t\titemDef.femaleModel = 60200;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33274:\n\t\t\titemDef.name = \"Armadyl staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60203;\n\t\t\titemDef.maleModel = 60202;\n\t\t\titemDef.femaleModel = 60202;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33275:\n\t\t\titemDef.name = \"Bork axe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60205;\n\t\t\titemDef.maleModel = 60204;\n\t\t\titemDef.femaleModel = 60204;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33276:\n\t\t\titemDef.name = \"Bree bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60207;\n\t\t\titemDef.maleModel = 60206;\n\t\t\titemDef.femaleModel = 60206;\n\t\t\titemDef.modelZoom = 1700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33277:\n\t\t\titemDef.name = \"Infernal staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60209;\n\t\t\titemDef.maleModel = 60208;\n\t\t\titemDef.femaleModel = 60208;\n\t\t\titemDef.modelZoom = 2200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33278:\n\t\t\titemDef.name = \"Infernal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60211;\n\t\t\titemDef.maleModel = 60210;\n\t\t\titemDef.femaleModel = 60210;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33279:\n\t\t\titemDef.name = \"Necrolord staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60213;\n\t\t\titemDef.maleModel = 60212;\n\t\t\titemDef.femaleModel = 60212;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33280:\n\t\t\titemDef.name = \"Insert name here\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60215;\n\t\t\titemDef.maleModel = 60214;\n\t\t\titemDef.femaleModel = 60214;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33281:\n\t\t\titemDef.name = \"Infernal bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60219;\n\t\t\titemDef.maleModel = 60218;\n\t\t\titemDef.femaleModel = 60218;\n\t\t\titemDef.modelZoom = 3334;\n\t\t\titemDef.modelRotation1 = 533;\n\t\t\titemDef.modelRotation2 = 1294;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33282:\n\t\t\titemDef.name = \"Infernal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60221;\n\t\t\titemDef.maleModel = 60220;\n\t\t\titemDef.femaleModel = 60220;\n\t\t\titemDef.modelZoom = 2512;\n\t\t\titemDef.modelRotation1 = 317;\n\t\t\titemDef.modelRotation2 = 1988;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = 45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33283:\n\t\t\titemDef.name = \"Imbued Porazdir's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 13263, 13014, 13243, 13000, 13275 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your strength for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33284:\n\t\t\titemDef.name = \"Imbued Justiciar's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 31661, 31418, 31661, 31167, 31445 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Defence for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32285:\n\t\t\titemDef.name = \"Imbued Derwen's heart\";\n\t\t\titemDef.modelId = 32298;\n\t\t\titemDef.modelZoom = 1168;\n\t\t\titemDef.modelRotation1 = 96;\n\t\t\titemDef.modelRotation2 = 1690;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 60826, 59796, 54544, 58904, 54561 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 930, 936, 940, 950 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Invigorate\", null, null, null, \"Drop\" };\n\t\t\titemDef.description = \"Boosts your Attack for a period of time.\";\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32286:\n\t\t\titemDef.name = \"Bronze fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 5652, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32287:\n\t\t\titemDef.name = \"Iron fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 33, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32288:\n\t\t\titemDef.name = \"Steel fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 61, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32289:\n\t\t\titemDef.name = \"Black fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32290:\n\t\t\titemDef.name = \"Mithril fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 43297, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32291:\n\t\t\titemDef.name = \"Adamant fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 21662, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32292:\n\t\t\titemDef.name = \"Rune fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 36133, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32293:\n\t\t\titemDef.name = \"Dragon fishing rod\";\n\t\t\titemDef.description = \"Used for Bait and Fly fishing. Can also be used for Deep sea fishing.\";\n\t\t\titemDef.modelId = 36128;\n\t\t\titemDef.maleModel = 36317;\n\t\t\titemDef.femaleModel = 36312;\n\t\t\titemDef.modelZoom = 1853;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 27;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.modifiedModelColors = new int[] { 59499, 24 };\n\t\t\titemDef.originalModelColors = new int[] { 924, 9152 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32294:\n\t\t\titemDef.name = \"Raw eel\";\n\t\t\titemDef.description = \"Slimy\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32295:\n\t\t\titemDef.name = \"Burnt eel\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8724, 3226, 9754 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32296:\n\t\t\titemDef.name = \"Eel\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 6856;\n\t\t\titemDef.modelZoom = 1440;\n\t\t\titemDef.modelRotation1 = 296;\n\t\t\titemDef.modelRotation2 = 352;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = 42;\n\t\t\titemDef.modifiedModelColors = new int[] { 8485, 14622, 8386, 12589 };\n\t\t\titemDef.originalModelColors = new int[] { 8088, 6032, 57, 2960 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32297:\n\t\t\titemDef.name = \"Raw baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 103, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 7756, 5349 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32298:\n\t\t\titemDef.name = \"Burnt baron shark\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 28, 41 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32299:\n\t\t\titemDef.name = \"Baron shark\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 2594;\n\t\t\titemDef.modelZoom = 1860;\n\t\t\titemDef.modelRotation1 = 344;\n\t\t\titemDef.modelRotation2 = 12;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 12;\n\t\t\titemDef.modifiedModelColors = new int[] { 61, 103 };\n\t\t\titemDef.originalModelColors = new int[] { 8109, 4795 };\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32300:\n\t\t\titemDef.name = \"Raw cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60223;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32301:\n\t\t\titemDef.name = \"Burnt cavefish\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60227;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 32302:\n\t\t\titemDef.name = \"Cavefish\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Eat\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 60228;\n\t\t\titemDef.modelZoom = 1284;\n\t\t\titemDef.modelRotation1 = 499;\n\t\t\titemDef.modelRotation2 = 1907;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.description = \"None\";\n\t\t\tbreak;\n\n\t\tcase 32303:\n\t\t\titemDef.name = \"Dragonfire visage (e)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 26456;\n\t\t\titemDef.modelZoom = 1697;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 152;\n\t\t\titemDef.modelOffset1 = -5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.modifiedModelColors = new int[] { 45, 41, 33, 24, 20, 57, 22, 37 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 1, 2, 3, 4, 5, 6, 7 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33285:\n\t\t\titemDef.name = \"Easter Mystery Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"Chances for all sorts of Easter Items!\";\n\t\t\tbreak;\n\n\t\tcase 33286:\n\t\t\titemDef.name = \"Easter Cape\";\n\t\t\titemDef.inventoryOptions = new String[] { null, \"wear\", null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 9631;\n\t\t\titemDef.maleModel = 9638;\n\t\t\titemDef.femaleModel = 9640;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"An Easter Cape.\";\n\t\t\tbreak;\n\n\t\tcase 33287:\n\t\t\titemDef.name = \"Pet Easter Bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"You've captured the Easter bunny!\";\n\t\t\tbreak;\n\n\t\tcase 33288:\n\t\t\titemDef.name = \"Pet Choco\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 7079 };\n\t\t\tbreak;\n\n\t\tcase 33289:\n\t\t\titemDef.name = \"Pet Milkie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"mmm... a chocolate bunny\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 6040 };\n\t\t\tbreak;\n\n\t\tcase 33290:\n\t\t\titemDef.name = \"Pet Goldie\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"oh wow... a rare golden bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 9152 };\n\t\t\tbreak;\n\n\t\tcase 33291:\n\t\t\titemDef.name = \"Pet Blue\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 37239;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"A blue bunny... kinda looks like the easter bunny!\";\n\t\t\titemDef.modifiedModelColors = new int[] { 2378 };\n\t\t\titemDef.originalModelColors = new int[] { 35321 };\n\t\t\tbreak;\n\n\t\tcase 33292:\n\t\t\titemDef.name = \"Crazed bunny\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 23901;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"What a bloody mess...\";\n\t\t\titemDef.modifiedModelColors = new int[] { 5413, 5417, 5421 };\n\t\t\titemDef.originalModelColors = new int[] { 935, 111, 127 };\n\t\t\tbreak;\n\n\t\tcase 33293:\n\t\t\titemDef.name = \"Peter Rabbit\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 28602;\n\t\t\titemDef.modelZoom = 500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1931;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"Hi Peter!\";\n\t\t\tbreak;\n\n\t\tcase 33294:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947 };\n\t\t\titemDef.originalModelColors = new int[] { 8128 };\n\t\t\tbreak;\n\n\t\tcase 33295:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 25511 };\n\t\t\tbreak;\n\n\t\tcase 33296:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 38835 };\n\t\t\tbreak;\n\n\t\tcase 33297:\n\t\t\titemDef.name = \"Chocolate Chicken\";\n\t\t\titemDef.inventoryOptions = new String[] { null, null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 35150;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 1731;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.description = \"a chocolate chicken\";\n\t\t\titemDef.modifiedModelColors = new int[] { 947, 8301 };\n\t\t\titemDef.originalModelColors = new int[] { 8128, 947 };\n\t\t\tbreak;\n\n\t\tcase 33305:\n\t\t\titemDef.name = \"$10 bond\";\n\t\t\titemDef.description = \"$10 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 84, 84, 84, 84, 84, 84, 84 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33306:\n\t\t\titemDef.name = \"$25 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 87, 87, 87, 87, 87, 87, 87 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33307:\n\t\t\titemDef.name = \"$50 bond\";\n\t\t\titemDef.description = \"$50 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 65, 65, 65, 65, 65, 65, 65 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33308:\n\t\t\titemDef.name = \"$100 bond\";\n\t\t\titemDef.description = \"$25 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 75, 75, 75, 75, 75, 75, 75 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33309:\n\t\t\titemDef.name = \"$200 bond\";\n\t\t\titemDef.description = \"$200 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 88, 88, 88, 88, 88, 88, 88 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33310:\n\t\t\titemDef.name = \"$500 bond\";\n\t\t\titemDef.description = \"$500 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 85, 85, 85, 85, 85, 85, 85 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33311:\n\t\t\titemDef.name = \"$1000 bond\";\n\t\t\titemDef.description = \"$1000 bond.\";\n\t\t\titemDef.modelId = 29210;\n\t\t\titemDef.modelZoom = 2300;\n\t\t\titemDef.modelRotation1 = 512;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.modifiedTextureColors = new int[] { 86, 86, 86, 86, 86, 86, 86 };\n\t\t\titemDef.originalTextureColors = new int[] { 22451, 20416, 22181, 22449, 22305, 21435, 22464 };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[0] = \"Redeem\";\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33312:\n\t\t\titemDef.name = \"Armadyl battlestaff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60332;\n\t\t\titemDef.maleModel = 60333;\n\t\t\titemDef.femaleModel = 60333;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 225;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33313:\n\t\t\titemDef.name = \"Colossal platebody\";\n\t\t\titemDef.description = \"Colossal platebody.\";\n\t\t\titemDef.modelId = 60323;\n\t\t\titemDef.maleModel = 60324;\n\t\t\titemDef.femaleModel = 60324;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33314:\n\t\t\titemDef.name = \"Colossal platelegs\";\n\t\t\titemDef.description = \"Colossal platelegs.\";\n\t\t\titemDef.modelId = 60325;\n\t\t\titemDef.maleModel = 60326;\n\t\t\titemDef.femaleModel = 60326;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33315:\n\t\t\titemDef.name = \"Colossal boots\";\n\t\t\titemDef.description = \"Colossal boots.\";\n\t\t\titemDef.modelId = 60329;\n\t\t\titemDef.maleModel = 60329;\n\t\t\titemDef.femaleModel = 60329;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33316:\n\t\t\titemDef.name = \"Colossal gloves\";\n\t\t\titemDef.description = \"Colossal gloves.\";\n\t\t\titemDef.modelId = 60330;\n\t\t\titemDef.maleModel = 60331;\n\t\t\titemDef.femaleModel = 60331;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33317:\n\t\t\titemDef.name = \"Colossal helmet\";\n\t\t\titemDef.description = \"Colossal helmet.\";\n\t\t\titemDef.modelId = 60327;\n\t\t\titemDef.maleModel = 60328;\n\t\t\titemDef.femaleModel = 60328;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33318:\n\t\t\titemDef.name = \"Polypore staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60334;\n\t\t\titemDef.maleModel = 60335;\n\t\t\titemDef.femaleModel = 60335;\n\t\t\titemDef.modelZoom = 3750;\n\t\t\titemDef.modelRotation1 = 1454;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33319:\n\t\t\titemDef.name = \"Ganodermic platebody\";\n\t\t\titemDef.description = \"Ganodermic platebody.\";\n\t\t\titemDef.modelId = 60338;\n\t\t\titemDef.maleModel = 60339;\n\t\t\titemDef.femaleModel = 60339;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33320:\n\t\t\titemDef.name = \"Ganodermic platelegs\";\n\t\t\titemDef.description = \"Ganodermic platelegs.\";\n\t\t\titemDef.modelId = 60340;\n\t\t\titemDef.maleModel = 60341;\n\t\t\titemDef.femaleModel = 60341;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33321:\n\t\t\titemDef.name = \"Ganodermic helmet\";\n\t\t\titemDef.description = \"Ganodermic helmet.\";\n\t\t\titemDef.modelId = 60336;\n\t\t\titemDef.maleModel = 60337;\n\t\t\titemDef.femaleModel = 60337;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33322:\n\t\t\titemDef.name = \"Grotesque platebody\";\n\t\t\titemDef.description = \"Grosteq platebody.\";\n\t\t\titemDef.modelId = 60347;\n\t\t\titemDef.maleModel = 60348;\n\t\t\titemDef.femaleModel = 60348;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33323:\n\t\t\titemDef.name = \"Grotesque platelegs\";\n\t\t\titemDef.description = \"Grosteq platelegs.\";\n\t\t\titemDef.modelId = 60349;\n\t\t\titemDef.maleModel = 60350;\n\t\t\titemDef.femaleModel = 60350;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33324:\n\t\t\titemDef.name = \"Grotesque helmet\";\n\t\t\titemDef.description = \"Grosteqc helmet.\";\n\t\t\titemDef.modelId = 60345;\n\t\t\titemDef.maleModel = 60346;\n\t\t\titemDef.femaleModel = 60346;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33325:\n\t\t\titemDef.name = \"Grotesque cape\";\n\t\t\titemDef.description = \"Grosteq cape.\";\n\t\t\titemDef.modelId = 60351;\n\t\t\titemDef.maleModel = 60352;\n\t\t\titemDef.femaleModel = 60352;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33326:\n\t\t\titemDef.name = \"Stunning Hammer\";\n\t\t\titemDef.description = \"Has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60353;\n\t\t\titemDef.maleModel = 60354;\n\t\t\titemDef.femaleModel = 60354;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1985;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\n\t\tcase 33327:\n\t\t\titemDef.name = \"Stunning Katagon platebody\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60356;\n\t\t\titemDef.maleModel = 60357;\n\t\t\titemDef.femaleModel = 60357;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33328:\n\t\t\titemDef.name = \"Stunning Katagon platelegs\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60358;\n\t\t\titemDef.maleModel = 60359;\n\t\t\titemDef.femaleModel = 60359;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33329:\n\t\t\titemDef.name = \"Stunning Katagon helmet\";\n\t\t\titemDef.description = \"has a chance to stun an enemy.\";\n\t\t\titemDef.modelId = 60360;\n\t\t\titemDef.maleModel = 60361;\n\t\t\titemDef.femaleModel = 60361;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33331:\n\t\t\titemDef.name = \"Ancient platebody\";\n\t\t\titemDef.description = \"Ancient platebody.\";\n\t\t\titemDef.modelId = 60366;\n\t\t\titemDef.maleModel = 60367;\n\t\t\titemDef.femaleModel = 60367;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33332:\n\t\t\titemDef.name = \"Ancient platelegs\";\n\t\t\titemDef.description = \"Ancient platelegs.\";\n\t\t\titemDef.modelId = 60368;\n\t\t\titemDef.maleModel = 60369;\n\t\t\titemDef.femaleModel = 60369;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33334:\n\t\t\titemDef.name = \"Ancient boots\";\n\t\t\titemDef.description = \"Ancient boots.\";\n\t\t\titemDef.modelId = 60372;\n\t\t\titemDef.maleModel = 60372;\n\t\t\titemDef.femaleModel = 60372;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33335:\n\t\t\titemDef.name = \"Ancient gloves\";\n\t\t\titemDef.description = \"Ancient gloves.\";\n\t\t\titemDef.modelId = 60370;\n\t\t\titemDef.maleModel = 60371;\n\t\t\titemDef.femaleModel = 60371;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\tbreak;\n\t\tcase 33336:\n\t\t\titemDef.name = \"Ancient helmet\";\n\t\t\titemDef.description = \"Ancient helmet.\";\n\t\t\titemDef.modelId = 60364;\n\t\t\titemDef.maleModel = 60365;\n\t\t\titemDef.femaleModel = 60365;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33341:\n\t\t\titemDef.name = \"Vanguard helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60391;\n\t\t\titemDef.maleModel = 60392;\n\t\t\titemDef.femaleModel = 60392;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\n\t\tcase 33342:\n\t\t\titemDef.name = \"Vanguard platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60393;\n\t\t\titemDef.maleModel = 60394;\n\t\t\titemDef.femaleModel = 60394;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = 3;\n\t\t\tbreak;\n\t\tcase 33343:\n\t\t\titemDef.name = \"Vanguard platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60395;\n\t\t\titemDef.maleModel = 60396;\n\t\t\titemDef.femaleModel = 60396;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33344:\n\t\t\titemDef.name = \"Vanguard boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60398;\n\t\t\titemDef.maleModel = 60398;\n\t\t\titemDef.femaleModel = 60398;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33345:\n\t\t\titemDef.name = \"Vanguard gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60373;\n\t\t\titemDef.maleModel = 60397;\n\t\t\titemDef.femaleModel = 60397;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33346:\n\t\t\titemDef.name = \"Celestial staff of light\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60401;\n\t\t\titemDef.maleModel = 60402;\n\t\t\titemDef.femaleModel = 60402;\n\t\t\titemDef.modelZoom = 3200;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 101 };\n\t\t\titemDef.originalModelColors = new int[] { 12 };\n\t\t\titemDef.maleOffset = -6;\n\t\t\titemDef.femaleOffset = -6;\n\t\t\tbreak;\n\n\t\tcase 33347:\n\t\t\titemDef.name = \"Hood of sorrow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60438;\n\t\t\titemDef.maleModel = 60403;\n\t\t\titemDef.femaleModel = 60403;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33348:\n\t\t\titemDef.name = \"Celestial robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60404;\n\t\t\titemDef.maleModel = 60405;\n\t\t\titemDef.femaleModel = 60405;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33349:\n\t\t\titemDef.name = \"Celestial robe legs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60406;\n\t\t\titemDef.maleModel = 60407;\n\t\t\titemDef.femaleModel = 60407;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33350:\n\t\t\titemDef.name = \"Primal 2h sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60408;\n\t\t\titemDef.maleModel = 60409;\n\t\t\titemDef.femaleModel = 60409;\n\t\t\titemDef.modelZoom = 1701;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.modelRotation2 = 1529;\n\t\t\titemDef.modelRotation1 = 1713;\n\t\t\titemDef.modelRotationY = 898;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33353:\n\t\t\titemDef.name = \"Primal longsword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60417;\n\t\t\titemDef.maleModel = 60418;\n\t\t\titemDef.femaleModel = 60418;\n\t\t\titemDef.modelZoom = 1616;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.modelRotation2 = 1793;\n\t\t\titemDef.modelRotation1 = 1473;\n\t\t\titemDef.modelRotationY = 1121;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33354:\n\t\t\titemDef.name = \"Primal maul\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60419;\n\t\t\titemDef.maleModel = 60420;\n\t\t\titemDef.femaleModel = 60420;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 350;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33359:\n\t\t\titemDef.name = \"Primal rapier\";\n\t\t\titemDef.description = \"Good for fighting the ...\";\n\t\t\titemDef.modelId = 60433;\n\t\t\titemDef.maleModel = 60433;\n\t\t\titemDef.femaleModel = 60433;\n\t\t\titemDef.modelZoom = 1300;\n\t\t\titemDef.modelRotation1 = 1401;\n\t\t\titemDef.modelRotation2 = 1724;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 15;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33360:\n\t\t\titemDef.name = \"Primal spear\";\n\t\t\titemDef.description = \"Good for fighting the Corperal Beast.\";\n\t\t\titemDef.modelId = 60434;\n\t\t\titemDef.maleModel = 60435;\n\t\t\titemDef.femaleModel = 60435;\n\t\t\titemDef.modelZoom = 1711;\n\t\t\titemDef.modelRotation1 = 485;\n\t\t\titemDef.modelRotation2 = 391;\n\t\t\titemDef.modelOffset1 = 5;\n\t\t\titemDef.modelOffset2 = -5;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -10;\n\t\t\titemDef.maleOffset = -10;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33361:\n\t\t\titemDef.name = \"Primal warhammer\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60436;\n\t\t\titemDef.maleModel = 60437;\n\t\t\titemDef.femaleModel = 60437;\n\t\t\titemDef.modelZoom = 1330;\n\t\t\titemDef.modelRotation1 = 552;\n\t\t\titemDef.modelRotation2 = 148;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.femaleOffset = -7;\n\t\t\titemDef.maleOffset = -7;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33362:\n\t\t\titemDef.name = \"Chitin helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60445;\n\t\t\titemDef.maleModel = 60446;\n\t\t\titemDef.femaleModel = 60446;\n\t\t\titemDef.modelZoom = 1010;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33364:\n\t\t\titemDef.name = \"Chitin platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60447;\n\t\t\titemDef.maleModel = 60448;\n\t\t\titemDef.femaleModel = 60448;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33365:\n\t\t\titemDef.name = \"Chitin platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60449;\n\t\t\titemDef.maleModel = 60450;\n\t\t\titemDef.femaleModel = 60450;\n\t\t\titemDef.modelZoom = 1753;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33366:\n\t\t\titemDef.name = \"Chitin cape\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60443;\n\t\t\titemDef.maleModel = 60444;\n\t\t\titemDef.femaleModel = 60444;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 567;\n\t\t\titemDef.modelRotation2 = 2031;\n\t\t\titemDef.modelOffset1 = -4;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33367:\n\t\t\titemDef.name = \"Supreme void helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60467;\n\t\t\titemDef.maleModel = 60464;\n\t\t\titemDef.femaleModel = 60464;\n\t\t\titemDef.modelZoom = 900;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33368:\n\t\t\titemDef.name = \"Supreme void robe top\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60468;\n\t\t\titemDef.maleModel = 60465;\n\t\t\titemDef.femaleModel = 60465;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33369:\n\t\t\titemDef.name = \"Supreme void robe\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60469;\n\t\t\titemDef.maleModel = 60466;\n\t\t\titemDef.femaleModel = 60466;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33370:\n\t\t\titemDef.name = \"Korasi's sword\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60471;\n\t\t\titemDef.maleModel = 60470;\n\t\t\titemDef.femaleModel = 60470;\n\t\t\titemDef.modelZoom = 1744;\n\t\t\titemDef.modelRotation1 = 330;\n\t\t\titemDef.modelRotation2 = 1505;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.maleOffset = -4;\n\t\t\titemDef.femaleOffset = -4;\n\t\t\tbreak;\n\n\t\tcase 33371:\n\t\t\titemDef.name = \"Spiked slayer helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60475;\n\t\t\titemDef.maleModel = 60476;\n\t\t\titemDef.femaleModel = 60476;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33372:\n\t\t\titemDef.name = \"Slayer platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60478;\n\t\t\titemDef.maleModel = 60479;\n\t\t\titemDef.femaleModel = 60479;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33373:\n\t\t\titemDef.name = \"Slayer platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60474;\n\t\t\titemDef.maleModel = 60477;\n\t\t\titemDef.femaleModel = 60477;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33374:\n\t\t\titemDef.name = \"Slayer boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60472;\n\t\t\titemDef.maleModel = 60473;\n\t\t\titemDef.femaleModel = 60473;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33375:\n\t\t\titemDef.name = \"Blood Justiciar helmet\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60482;\n\t\t\titemDef.maleModel = 60483;\n\t\t\titemDef.femaleModel = 60483;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 16;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 2;\n\t\t\titemDef.modelOffset2 = -4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33376:\n\t\t\titemDef.name = \"Blood Justiciar platebody\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60484;\n\t\t\titemDef.maleModel = 60485;\n\t\t\titemDef.femaleModel = 60485;\n\t\t\titemDef.modelZoom = 1513;\n\t\t\titemDef.modelRotation1 = 566;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33377:\n\t\t\titemDef.name = \"Blood justiciar platelegs\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60486;\n\t\t\titemDef.maleModel = 60487;\n\t\t\titemDef.femaleModel = 60487;\n\t\t\titemDef.modelZoom = 1900;\n\t\t\titemDef.modelRotation1 = 562;\n\t\t\titemDef.modelRotation2 = 1;\n\t\t\titemDef.modelOffset1 = 11;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33378:\n\t\t\titemDef.name = \"Blood justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60488;\n\t\t\titemDef.maleModel = 60488;\n\t\t\titemDef.femaleModel = 60488;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33379:\n\t\t\titemDef.name = \"Blood justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60489;\n\t\t\titemDef.maleModel = 60490;\n\t\t\titemDef.femaleModel = 60490;\n\t\t\titemDef.modelZoom = 855;\n\t\t\titemDef.modelRotation1 = 215;\n\t\t\titemDef.modelRotation2 = 94;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = -32;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33380:\n\t\t\titemDef.name = \"Blood scythe of vitur\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60480;\n\t\t\titemDef.maleModel = 60481;\n\t\t\titemDef.femaleModel = 60481;\n\t\t\titemDef.modelZoom = 3850;\n\t\t\titemDef.modelRotation1 = 727;\n\t\t\titemDef.modelRotation2 = 997;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33381:\n\t\t\titemDef.name = \"Skiller cape\";\n\t\t\titemDef.description = \"Skiller cape.\";\n\t\t\titemDef.modelId = 60494;\n\t\t\titemDef.maleModel = 60493;\n\t\t\titemDef.femaleModel = 60492;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 400;\n\t\t\titemDef.modelRotation2 = 948;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 6;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33382:\n\t\t\titemDef.name = \"Justiciar faceguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33383:\n\t\t\titemDef.name = \"Justiciar faceguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33384:\n\t\t\titemDef.name = \"Justiciar faceguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33385:\n\t\t\titemDef.name = \"Justiciar faceguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33387:\n\t\t\titemDef.name = \"Justiciar faceguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33389:\n\t\t\titemDef.name = \"Justiciar faceguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 4550 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33390:\n\t\t\titemDef.name = \"Justiciar chestguard (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33391:\n\t\t\titemDef.name = \"Justiciar chestguard (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33392:\n\t\t\titemDef.name = \"Justiciar chestguard (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33393:\n\t\t\titemDef.name = \"Justiciar chestguard (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33394:\n\t\t\titemDef.name = \"Justiciar chestguard (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33395:\n\t\t\titemDef.name = \"Justiciar chestguard (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35750;\n\t\t\titemDef.maleModel = 35359;\n\t\t\titemDef.femaleModel = 35368;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 432;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 4;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33396:\n\t\t\titemDef.name = \"Justiciar legguards (zamorak)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33397:\n\t\t\titemDef.name = \"Justiciar legguards (guthix)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33398:\n\t\t\titemDef.name = \"Justiciar legguards (saradomin)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33399:\n\t\t\titemDef.name = \"Justiciar legguards (ancient)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33400:\n\t\t\titemDef.name = \"Justiciar legguards (bandos)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33401:\n\t\t\titemDef.name = \"Justiciar legguards (armadyl)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35752;\n\t\t\titemDef.maleModel = 35356;\n\t\t\titemDef.femaleModel = 35357;\n\t\t\titemDef.modelZoom = 1720;\n\t\t\titemDef.modelRotation1 = 468;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 6709, 6736, 6602, 6699 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33402:\n\t\t\titemDef.name = \"Pet andy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 50169;\n\t\t\titemDef.modelZoom = 1500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33403:\n\t\t\titemDef.name = \"Pet mod divine\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 14283;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33404:\n\t\t\titemDef.name = \"Celestial fairy\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60491;\n\t\t\titemDef.modelZoom = 3500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 947 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 937, 11200 };\n\t\t\titemDef.originalModelColors = new int[] { 42663, 41883 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33405:\n\t\t\titemDef.name = \"Lava partyhat (red)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33406:\n\t\t\titemDef.name = \"Lava partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33407:\n\t\t\titemDef.name = \"Lava partyhat (cyan)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33408:\n\t\t\titemDef.name = \"Lava partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"A lava partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33409:\n\t\t\titemDef.name = \"Infernal partyhat (blue)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33410:\n\t\t\titemDef.name = \"Infernal partyhat (green)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33411:\n\t\t\titemDef.name = \"Infernal partyhat (purple)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33412:\n\t\t\titemDef.name = \"Infernal partyhat (rainbow)\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"An Infernal partyhat.\";\n\t\t\tbreak;\n\n\t\tcase 33413:\n\t\t\titemDef.name = \"Celestial partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33414:\n\t\t\titemDef.name = \"Blood partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33415:\n\t\t\titemDef.name = \"Shadow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33416:\n\t\t\titemDef.name = \"Light blue partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33417:\n\t\t\titemDef.name = \"Easter partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33418:\n\t\t\titemDef.name = \"Dark sparkle partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33419:\n\t\t\titemDef.name = \"Rainbow partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33420:\n\t\t\titemDef.name = \"Fire partyhat\";\n\t\t\titemDef.modelId = 2635;\n\t\t\titemDef.modelZoom = 440;\n\t\t\titemDef.modelRotation2 = 1852;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.maleModel = 187;\n\t\t\titemDef.femaleModel = 363;\n\t\t\t// itemDef.anInt164 = -1;\n\t\t\t// itemDef.anInt188 = -1;\n\t\t\t// itemDef.aByte205 = -8;\n\t\t\titemDef.groundOptions = new String[] { null, null, \"Take\", null, null };\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.description = \"none.\";\n\t\t\tbreak;\n\n\t\tcase 33421:\n\t\t\titemDef.name = \"Pet star sprite\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60506;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\t\tcase 33422:\n\t\t\titemDef.name = \"Stargaze Box\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = false;\n\t\t\titemDef.modelId = 61110;\n\t\t\titemDef.modelZoom = 1180;\n\t\t\titemDef.modelRotation1 = 160;\n\t\t\titemDef.modelRotation2 = 172;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -14;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33423:\n\t\t\titemDef.name = \"Star Dust\";\n\t\t\titemDef.inventoryOptions = new String[] { \"Exchange\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.modelId = 60496;\n\t\t\titemDef.modelZoom = 2086;\n\t\t\titemDef.modelRotation1 = 279;\n\t\t\titemDef.modelRotation2 = 1994;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 47;\n\t\t\t// itemDef.modifiedModelColors = new int[] {22410, 2999};\n\t\t\t// itemDef.originalModelColors = new int[] {35321, 350};\n\t\t\titemDef.description = \"none\";\n\t\t\tbreak;\n\n\t\tcase 33424:\n\t\t\titemDef.name = \"Blood twisted bow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 32799;\n\t\t\titemDef.maleModel = 32674;\n\t\t\titemDef.femaleModel = 32674;\n\t\t\titemDef.modelZoom = 2000;\n\t\t\titemDef.modelRotation1 = 720;\n\t\t\titemDef.modelRotation2 = 1500;\n\t\t\titemDef.modelOffset1 = -3;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10318, 10334 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66 };\n\t\t\titemDef.modifiedModelColors = new int[] { 14236, 13223 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33425:\n\t\t\titemDef.name = \"Celestial crow\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60507;\n\t\t\titemDef.modelZoom = 1000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10382 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10378, 10502 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33426:\n\t\t\titemDef.name = \"Celestial penguin\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60508;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10343 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 16, 12, 20, 24, 8, 10332, 10337 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33427:\n\t\t\titemDef.name = \"Celestial snake\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60509;\n\t\t\titemDef.modelZoom = 1800;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 10644, 10512 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78, 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 10413, 10405, 10524 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33428:\n\t\t\titemDef.name = \"Celestial scorpion\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60510;\n\t\t\titemDef.modelZoom = 2500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 142 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.modifiedModelColors = new int[] { 4884, 4636, 3974, 4525, 4645 };\n\t\t\titemDef.originalModelColors = new int[] { 0, 0, 0, 0, 0 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33429:\n\t\t\titemDef.name = \"Armadyl dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 10467, 10474, 10482, 10484 };\n\t\t\tbreak;\n\n\t\tcase 33430:\n\t\t\titemDef.name = \"Guthix dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 21939, 21945, 21952, 21954 };\n\t\t\tbreak;\n\n\t\tcase 33431:\n\t\t\titemDef.name = \"Zamorak dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 926, 926, 926, 926 };\n\t\t\tbreak;\n\n\t\tcase 33432:\n\t\t\titemDef.name = \"Ancient dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { -10854, -10860, -10872, -10874 };\n\t\t\tbreak;\n\n\t\tcase 33433:\n\t\t\titemDef.name = \"Bandos dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 7062, 7062, 7062, 7062 };\n\t\t\tbreak;\n\n\t\tcase 33434:\n\t\t\titemDef.name = \"Saradomin dye\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60513;\n\t\t\titemDef.modelZoom = 809;\n\t\t\titemDef.modelRotation1 = 90;\n\t\t\titemDef.modelRotation2 = 2047;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -9;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 30814, 30809, 30799, 30804 };\n\t\t\titemDef.originalModelColors = new int[] { 43929, 43929, 43929, 43929 };\n\t\t\tbreak;\n\n\t\tcase 33435:\n\t\t\titemDef.name = \"Celestial egg\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 7171;\n\t\t\titemDef.modelZoom = 550;\n\t\t\titemDef.modelRotation1 = 76;\n\t\t\titemDef.modelRotation2 = 16;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.originalTextureColors = new int[] { 476 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 78 };\n\t\t\titemDef.inventoryOptions = new String[] { \"Hatch\", null, null, null, \"Drop\" };\n\t\t\titemDef.stackable = true;\n\t\t\tbreak;\n\n\t\tcase 33436:\n\t\t\titemDef.name = \"Elite void top (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 10586;\n\t\t\titemDef.maleModel = 10687;\n\t\t\titemDef.anInt188 = 10681;\n\t\t\titemDef.femaleModel = 10694;\n\t\t\titemDef.anInt164 = 10688;\n\t\t\titemDef.modelZoom = 1221;\n\t\t\titemDef.modelRotation1 = 459;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33437:\n\t\t\titemDef.name = \"Elite void robe (placeholder)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60528;\n\t\t\titemDef.maleModel = 60526;\n\t\t\titemDef.femaleModel = 60527;\n\t\t\titemDef.modelZoom = 2105;\n\t\t\titemDef.modelRotation1 = 525;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 1;\n\t\t\t// itemDef.originalTextureColors = new int [] { 695};\n\t\t\t// itemDef.modifiedTextureColors = new int [] { 66};\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33438:\n\t\t\titemDef.name = \"Blood chest\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60516;\n\t\t\titemDef.modelZoom = 2640;\n\t\t\titemDef.modelRotation1 = 114;\n\t\t\titemDef.modelRotation2 = 1883;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33439:\n\t\t\titemDef.name = \"Blood bird\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60517;\n\t\t\titemDef.modelZoom = 2768;\n\t\t\titemDef.modelRotation1 = 141;\n\t\t\titemDef.modelRotation2 = 1790;\n\t\t\titemDef.modelOffset1 = -8;\n\t\t\titemDef.modelOffset2 = -13;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\titemDef.originalTextureColors = new int[] { 1946, 2983, 6084, 2735, 5053, 6082, 4013, 2733, 4011, 2880,\n\t\t\t\t\t8150 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 66, 66, 66, 66, 66, 66, 66, 66, 66, 66, 66 };\n\t\t\tbreak;\n\n\t\tcase 33440:\n\t\t\titemDef.name = \"Blood Death\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60441;\n\t\t\titemDef.modelZoom = 16000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33442:\n\t\t\titemDef.name = \"10 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33446:\n\t\t\titemDef.name = \"10 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33450:\n\t\t\titemDef.name = \"10 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Claim\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33454:\n\t\t\titemDef.name = \"10 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33458:\n\t\t\titemDef.name = \"10 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33462:\n\t\t\titemDef.name = \"10 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33443:\n\t\t\titemDef.name = \"30 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33447:\n\t\t\titemDef.name = \"30 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33451:\n\t\t\titemDef.name = \"30 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33455:\n\t\t\titemDef.name = \"30 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33459:\n\t\t\titemDef.name = \"30 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33463:\n\t\t\titemDef.name = \"30 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33444:\n\t\t\titemDef.name = \"60 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33448:\n\t\t\titemDef.name = \"60 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33452:\n\t\t\titemDef.name = \"60 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33456:\n\t\t\titemDef.name = \"60 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33460:\n\t\t\titemDef.name = \"60 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33464:\n\t\t\titemDef.name = \"60 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33445:\n\t\t\titemDef.name = \"120 Min XP boost (25%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33449:\n\t\t\titemDef.name = \"120 Min XP boost (50%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33453:\n\t\t\titemDef.name = \"120 Min XP boost (75%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33457:\n\t\t\titemDef.name = \"120 Min XP boost (100%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33461:\n\t\t\titemDef.name = \"120 Min XP boost (150%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33465:\n\t\t\titemDef.name = \"120 Min XP boost (200%)\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60531;\n\t\t\titemDef.modelZoom = 1488;\n\t\t\titemDef.modelRotation1 = 246;\n\t\t\titemDef.modelRotation2 = 1721;\n\t\t\titemDef.modelOffset1 = -11;\n\t\t\titemDef.modelOffset2 = -45;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\titemDef.originalTextureColors = new int[] { 54302, 54312, 54307, 54297, 54315, 54310, 54305, 54287, 55292,\n\t\t\t\t\t54300, 10281, 10274 };\n\t\t\titemDef.modifiedTextureColors = new int[] { 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67, 67 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33466:\n\t\t\titemDef.name = \"Deathtouched dart\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60534;\n\t\t\titemDef.maleModel = 60533;\n\t\t\titemDef.femaleModel = 60533;\n\t\t\titemDef.modelZoom = 1053;\n\t\t\titemDef.modelRotation1 = 471;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.stackable = true;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33467:\n\t\t\titemDef.name = \"Justiciar boots\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60535;\n\t\t\titemDef.maleModel = 60535;\n\t\t\titemDef.femaleModel = 60535;\n\t\t\titemDef.modelZoom = 789;\n\t\t\titemDef.modelRotation1 = 164;\n\t\t\titemDef.modelRotation2 = 156;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = -8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33468:\n\t\t\titemDef.name = \"Justiciar gloves\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 31022;\n\t\t\titemDef.maleModel = 31006;\n\t\t\titemDef.femaleModel = 31013;\n\t\t\titemDef.modelZoom = 592;\n\t\t\titemDef.modelRotation1 = 636;\n\t\t\titemDef.modelRotation2 = 2015;\n\t\t\titemDef.modelOffset1 = 3;\n\t\t\titemDef.modelOffset2 = 3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { 123, 70 };\n\t\t\titemDef.originalModelColors = new int[] { 6736, 59441 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33469:\n\t\t\titemDef.name = \"Magic mushroom\";\n\t\t\titemDef.description = \"offers a 10% droprate increase while this pet follows you.\";\n\t\t\titemDef.modelId = 60532;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33470:\n\t\t\titemDef.name = \"Twisted staff\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60538;\n\t\t\titemDef.maleModel = 60539;\n\t\t\titemDef.femaleModel = 60539;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 1549;\n\t\t\titemDef.modelRotation2 = 1791;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = -3;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33471:\n\t\t\titemDef.name = \"Cowboy hat\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60540;\n\t\t\titemDef.maleModel = 60541;\n\t\t\titemDef.femaleModel = 60541;\n\t\t\titemDef.modelZoom = 800;\n\t\t\titemDef.modelRotation1 = 108;\n\t\t\titemDef.modelRotation2 = 1535;\n\t\t\titemDef.modelOffset1 = -1;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33472:\n\t\t\titemDef.name = \"Stick\";\n\t\t\titemDef.description = \"Careful of that chub.\";\n\t\t\titemDef.modelId = 60545;\n\t\t\titemDef.maleModel = 60545;\n\t\t\titemDef.femaleModel = 60545;\n\t\t\titemDef.modelZoom = 3000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33473:\n\t\t\titemDef.name = \"#1 Tob cape\";\n\t\t\titemDef.description = \"Reward to the first to complete tob solo and in a team.\";\n\t\t\titemDef.modelId = 60551;\n\t\t\titemDef.maleModel = 60550;\n\t\t\titemDef.femaleModel = 60550;\n\t\t\titemDef.modelZoom = 2295;\n\t\t\titemDef.modelRotation1 = 367;\n\t\t\titemDef.modelRotation2 = 1212;\n\t\t\titemDef.modelOffset1 = 4;\n\t\t\titemDef.modelOffset2 = 8;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33474:\n\t\t\titemDef.name = \"Supreme void upgrade kit\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 4847;\n\t\t\titemDef.modelZoom = 1310;\n\t\t\titemDef.modelRotation1 = 163;\n\t\t\titemDef.modelRotation2 = 73;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\titemDef.modifiedModelColors = new int[] { -32709, 10295, 10304, 10287, 10275, 10283 };\n\t\t\titemDef.originalModelColors = new int[] { 10, 10, 10, 10, 10, 10 };\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33475:\n\t\t\titemDef.name = \"Hunter's penguin\";\n\t\t\titemDef.description = \"the one and only's pet.\";\n\t\t\titemDef.modelId = 60548;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33476:\n\t\t\titemDef.name = \"Chef Harambe\";\n\t\t\titemDef.description = \"I like to dip my balls in a deep fryer.\";\n\t\t\titemDef.modelId = 60921;\n\t\t\titemDef.modelZoom = 5000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33477:\n\t\t\titemDef.name = \"Void knight champion jr\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60463;\n\t\t\titemDef.modelZoom = 14000;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 6;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33478:\n\t\t\titemDef.name = \"Custom pet token\";\n\t\t\titemDef.description = \"Trade this to corey after filling out a form on the forums post custom pets\";\n\t\t\titemDef.modelId = 13838;\n\t\t\titemDef.modelZoom = 530;\n\t\t\titemDef.modelRotation1 = 415;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33479:\n\t\t\titemDef.name = \"Mr jaycorr\";\n\t\t\titemDef.description = \"The autistic one.\";\n\t\t\titemDef.modelId = 60592;\n\t\t\titemDef.modelZoom = 7500;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 270;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = null;\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33480:\n\t\t\titemDef.name = \"Broom broom\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 60593;\n\t\t\titemDef.maleModel = 60593;\n\t\t\titemDef.femaleModel = 60593;\n\t\t\titemDef.modelZoom = 2700;\n\t\t\titemDef.modelRotation1 = 0;\n\t\t\titemDef.modelRotation2 = 0;\n\t\t\titemDef.modelOffset1 = 0;\n\t\t\titemDef.modelOffset2 = 0;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 33481:\n\t\t\titemDef.name = \"Test\";\n\t\t\titemDef.description = \"none.\";\n\t\t\titemDef.modelId = 35751;\n\t\t\titemDef.maleModel = 35349;\n\t\t\titemDef.femaleModel = 35361;\n\t\t\titemDef.modelZoom = 777;\n\t\t\titemDef.modelRotation1 = 22;\n\t\t\titemDef.modelRotation2 = 1972;\n\t\t\titemDef.modelOffset1 = 1;\n\t\t\titemDef.modelOffset2 = -1;\n\t\t\titemDef.inventoryOptions = new String[5];\n\t\t\titemDef.inventoryOptions[1] = \"Wear\";\n\t\t\titemDef.inventoryOptions[2] = null;\n\t\t\t// itemDef.aByte205 = 3;\n\t\t\tbreak;\n\n\t\tcase 11773:\n\t\tcase 11771:\n\t\tcase 11770:\n\t\tcase 11772:\n\t\t\titemDef.anInt196 += 45;\n\t\t\tbreak;\n\t\tcase 22610:\n\t\t\titemDef.name = \"Vesta's spear (deg)\";\n\t\t\tbreak;\n\t\tcase 22614:\n\t\t\titemDef.name = \"Vesta's longsword (deg)\";\n\t\t\tbreak;\n\t\tcase 22616:\n\t\t\titemDef.name = \"Vesta's chainbody (deg)\";\n\t\t\tbreak;\n\t\tcase 22619:\n\t\t\titemDef.name = \"Vesta's plateskirt (deg)\";\n\t\t\tbreak;\n\t\tcase 22622:\n\t\t\titemDef.name = \"Statius's warhammer (deg)\";\n\t\t\tbreak;\n\t\tcase 22625:\n\t\t\titemDef.name = \"Statius's full helm (deg)\";\n\t\t\tbreak;\n\t\tcase 22628:\n\t\t\titemDef.name = \"Statius's platebody (deg)\";\n\t\t\tbreak;\n\t\tcase 22631:\n\t\t\titemDef.name = \"Statius's platelegs (deg)\";\n\t\t\tbreak;\n\t\tcase 22638:\n\t\t\titemDef.name = \"Morrigan's coif (deg)\";\n\t\t\tbreak;\n\t\tcase 22641:\n\t\t\titemDef.name = \"Morrigan's leather body (deg)\";\n\t\t\tbreak;\n\t\tcase 22644:\n\t\t\titemDef.name = \"Morrigan's leather chaps (deg)\";\n\t\t\tbreak;\n\t\tcase 22647:\n\t\t\titemDef.name = \"Zuriel's staff (deg)\";\n\t\t\tbreak;\n\t\tcase 22650:\n\t\t\titemDef.name = \"Zuriel's hood (deg)\";\n\t\t\tbreak;\n\t\tcase 22653:\n\t\t\titemDef.name = \"Zuriel's robe top (deg)\";\n\t\t\tbreak;\n\t\tcase 22656:\n\t\t\titemDef.name = \"Zuriel's robe bottom (deg)\";\n\t\t\tbreak;\n\n\t\tcase 13303:\n\t\t\titemDef.name = \"Event Key (Tarn)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13302:\n\t\t\titemDef.name = \"Event Key (Graardor)\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 13305:\n\t\t\titemDef.name = \"Tastey-Looking Key\";\n\t\t\titemDef.description = \"Use this to open the Event Boss chest.\";\n\t\t\titemDef.modifiedModelColors = new int[] { 8128 };\n\t\t\titemDef.originalModelColors = new int[] { 933 };\n\t\t\tbreak;\n\t\tcase 2697:\n\t\t\titemDef.name = \"$10 Scroll\";\n\t\t\titemDef.description = \"Get donor status at a cheaper cost!\";\n\t\t\tbreak;\n\t\tcase 2698:\n\t\t\titemDef.name = \"$50 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Super Donator status.\";\n\t\t\tbreak;\n\t\tcase 2699:\n\t\t\titemDef.name = \"$100 Donator\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Extreme Donator status.\";\n\t\t\tbreak;\n\t\tcase 2700:\n\t\t\titemDef.name = \"$5 Scroll\";\n\t\t\titemDef.description = \"Read this scroll to be rewarded with the Legendary Donator status.\";\n\t\t\tbreak;\n\t\tcase 1464:\n\t\t\titemDef.name = \"Vote ticket\";\n\t\t\titemDef.description = \"This ticket can be exchanged for a voting point.\";\n\t\t\tbreak;\n\n\t\tcase 11739:\n\t\t\titemDef.name = \"Daily reward box\";\n\t\t\titemDef.description = \"Open this box for a daily reward.\";\n\t\t\tbreak;\n\n\t\tcase 13066:// super set\n\t\tcase 12873:// barrows\n\t\tcase 12875:\n\t\tcase 12877:\n\t\tcase 12879:\n\t\tcase 12881:\n\t\tcase 12883:\n\t\tcase 12789:// clue box\n\t\t\titemDef.inventoryOptions = new String[] { \"Open\", null, null, null, \"Drop\" };\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}",
"public void onClickNom(Personne item, int position);",
"public void handleItem(String item) {\r\n switch (item) {\r\n // Restore all health points\r\n case \"potionvie\":\r\n setHealthPoints(5);\r\n System.out.println(\"Vous trouvez une potion de vie!\");\r\n break;\r\n // Restore health points by 1\r\n case \"coeur\":\r\n if (getHealthPoints() < 5) {\r\n setHealthPoints(getHealthPoints() + 1);\r\n }\r\n System.out.println(\"Vous trouvez un coeur!\");\r\n break;\r\n // Increase hexaforce count by 1\r\n case \"hexaforce\":\r\n setHexaforces(getHexaforces() + 1);\r\n System.out.println(\"Vous trouvez un morceau d'Hexaforce!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }",
"private void refreshPlayerList() {\n List<MarketItem> items = new ArrayList<>();\n EntityRef player = localPlayer.getCharacterEntity();\n for (int i = 0; i < inventoryManager.getNumSlots(player); i++) {\n EntityRef entity = inventoryManager.getItemInSlot(player, i);\n\n if (entity.getParentPrefab() != null) {\n MarketItem item;\n\n if (entity.hasComponent(BlockItemComponent.class)) {\n String itemName = entity.getComponent(BlockItemComponent.class).blockFamily.getURI().toString();\n item = marketItemRegistry.get(itemName, 1);\n } else {\n item = marketItemRegistry.get(entity.getParentPrefab().getName(), 1);\n }\n\n items.add(item);\n }\n }\n\n tradingScreen.setPlayerItems(items);\n }",
"public String getDescription() {return \"Use an item in your inventory\"; }",
"@Override\r\n\tpublic void setInventoryItems() {\n\t\t\r\n\t}",
"Items(){\r\n\t\tname=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//Parts to the vaccine[1-3]\r\n\t\t\t\t\"Mysterious Vial\", \"Piece of alien meteorite\",\"Alien X\",\r\n\t\t\t\t//Keys[4-6]\r\n\t\t\t\t\"Mysterious Key\",\"Office Key\",\"Captian's Key\",\r\n\t\t\t\t//suit[7,8]\r\n\t\t\t\t\"Hazmat Suit\",\"Gas Mask\",\r\n\t\t\t\t//vials[9-11]\r\n\t\t\t\t\"Blue Vial\",\"Pink Vial\", \"Gold Vial\",\r\n\t\t\t\t//other[12,13]\r\n\t\t\t\t\"X Files\", \"Demon's Bane Flower\",\"Reinforced Armor\"\r\n\t\t};\r\n\t\tdescription=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//vaccine parts[2-4]\r\n\t\t\t\t\"A special vial coated with a mysterious substance\",\r\n\t\t\t\t\"Part of an alien meteorite that the crew excavated\",\r\n\t\t\t\t\"A powerful allergen that instantly kills one’s immune system and their whole well-being, mutating them into something inhuman\",\r\n\t\t\t\t//keys\r\n\t\t\t\t\"A metal key that must open a door\",\r\n\t\t\t\t\"Looks like a normal key\",\r\n\t\t\t\t\"A metal key used to unlock something\",\r\n\t\t\t\t//Suit\r\n\t\t\t\t\"A full-body suit designed to keep harmful toxins away from the wearer. The face mask is missing, however\",\r\n\t\t\t\t\"A mask that goes over the wearer’s head and filters out all harmful substances in the air\",\r\n\t\t\t\t//Vials\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows light blue\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows bright pink\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows golden yellow\",\r\n\t\t\t\t//other\r\n\t\t\t\t\"Recorded documentation of all experiments and research done while in space. Most importantly it contains reports on events leading up to the virus spreading throughout the ship\",\r\n\t\t\t\t\"A beautiful flower that seems to survive unattached to the ground, the veins running through its petals give a faint glow as a heavenly scent fills the room\",\r\n\t\t\t\t\"A set of fine leather armor with metal plates reinforcing vulnerable areas\"\r\n\t\t};\r\n\t}",
"@Override\n\tpublic boolean inventory(Player player, Item item, int opcode) {\n\t\treturn false;\n// Clan channel = ClanRepository.get(player.clan);\n// if (channel == null) {\n// player.send(new SendMessage(\"You need to be in a clan to do this!\"));\n// return true;\n// }\n// player.inventory.remove(item);\n// Item showcaseReward = new Item(Utility.randomElement(ClanUtility.getRewardItems(channel)));\n// channel.showcaseItems.add(showcaseReward.getId());\n// player.send(new SendMessage(\"Inside the box you found \" + showcaseReward.getName() + \"! Showcase size: \" + channel.showcaseItems.size() + \"/28\", SendMessage.MessageColor.DARK_PURPLE));\n// return true;\n\t}",
"public List<PlayerItem> getAll();",
"@Override\r\n\tpublic void subItemPlayed(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"private void itemIntersectsPlayer(Entity item){\n WeaponComponent weaponComponent = player.weaponComponent;\n HealthComponent healthComponent = (HealthComponent) player.getComponent(ComponentType.HEALTH);\n\n EntityType type = item.getEntityType();\n\n\n switch (type){\n\n case ASSAULT_RIFLE:\n AssaultRifle rifle = (AssaultRifle) item;\n rifle.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(rifle);\n break;\n\n case SHOTGUN:\n Shotgun shotgun = (Shotgun) item;\n shotgun.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(shotgun);\n break;\n\n case SWORD:\n Sword sword = (Sword) item;\n sword.setInInventory(true);\n weaponComponent.addWeapon(item);\n room.getEntityManager().removeEntity(sword);\n break;\n\n\n case SHIELD:\n Shield shield = (Shield) item;\n shield.setInInventory(true);\n healthComponent.setHasShield(true);\n room.getEntityManager().removeEntity(shield);\n break;\n\n case SPEEDBOOST:\n SpeedBoost speedBoost = (SpeedBoost) item;\n speedBoost.setInInventory(true);\n player.startBoost(10000);\n room.getEntityManager().removeEntity(speedBoost);\n break;\n\n case HEART:\n Heart heart = (Heart) item;\n heart.setInInventory(true);\n healthComponent.incrementCurrentHealth();\n //do player logic here\n room.getEntityManager().removeEntity(heart);\n break;\n\n\n }\n\n\n }",
"@Override\n\tpublic void onInventoryChanged() {\n\t}",
"private void getItemList(){\n sendPacket(Item_stocksTableAccess.getConnection().getItemList());\n \n }",
"public void addItemInventory(Item item){\r\n playerItem.add(item);\r\n System.out.println(item.getDescription() + \" was taken \");\r\n }",
"@Override\n public void onSmelting(EntityPlayer player, ItemStack item) {\n }",
"public static void LoadItems() {\r\n\t\t\r\n\t\t/*\r\n\t\t * Basic Minecraft Hammers (Ex. Vannila Ores)\r\n\t\t */\r\n\t\r\n\t\tItemWoodHammer = new ItemWoodHammer(HammerModMain.MODID + \":ItemWoodHammer\", \"HammerMod-DZ_res/items/ItemWoodHammer.png\");\r\n\t\tItemStoneHammer = new ItemStoneHammer(HammerModMain.MODID + \":ItemStoneHammer\", \"HammerMod-DZ_res/items/ItemStoneHammer.png\");\r\n\t\t//ItemIronHammer = new ItemIronHammer(HammerModMain.MODID + \":ItemIronHammer\", \"HammerMod-DZ_res/items/ItemIronHammer.png\");\r\n\t\t//ItemGoldHammer = new ItemGoldHammer(HammerModMain.MODID + \":ItemGoldHammer\", \"HammerMod-DZ_res/items/ItemGoldHammer.png\");\r\n\t\tItemDiamondHammer = new ItemDiamondHammer(HammerModMain.MODID + \":ItemDiamondHammer\", \"HammerMod-DZ_res/items/ItemDiamondHammer.png\");\r\n\t\tItemDirtHammer = new ItemDirtHammer(HammerModMain.MODID + \":ItemDirtHammer\", \"HammerMod-DZ_res/items/ItemDirtHammer.png\");\r\n\t\tItemGlassHammer = new ItemGlassHammer(HammerModMain.MODID + \":ItemGlassHammer\", \"HammerMod-DZ_res/items/ItemGlassHammer.png\");\r\n\t\tItemSandHammer = new ItemSandHammer(HammerModMain.MODID + \":ItemSandHammer\", \"HammerMod-DZ_res/items/ItemSandHammer.png\");\r\n\t\t//ItemCactusHammer = new ItemCactusHammer(HammerModMain.MODID + \":ItemCactusHammer\", \"HammerMod-DZ_res/items/ItemCactusHammer.png\");\r\n\t\t//ItemGravelHammer = new ItemGravelHammer(HammerModMain.MODID + \":ItemGravelHammer\", \"HammerMod-DZ_res/items/ItemGravelHammer.png\");\r\n\t\t//ItemWoolHammer_white = new ItemWoolHammer_white(HammerModMain.MODID + \":ItemWoolHammer_white\", \"HammerMod-DZ_res/items/ItemWoolHammer_white.png\");\r\n\t\tItemEmeraldHammer = new ItemEmeraldHammer(HammerModMain.MODID + \":ItemEmeraldHammer\", \"HammerMod-DZ_res/items/ItemEmeraldHammer.png\");\r\n\t\tItemGrassHammer = new ItemGrassHammer(HammerModMain.MODID + \":ItemGrassHammer\", \"HammerMod-DZ_res/items/ItemGrassHammer.png\");\r\n\t\t//ItemObsidianHammer = new ItemObsidianHammer(HammerModMain.MODID + \":ItemObsidianHammer\", \"HammerMod-DZ_res/items/ItemObsidianHammer.png\");\r\n\t\t//ItemGlowstoneHammer = new ItemGlowstoneHammer(HammerModMain.MODID + \":ItemGlowstoneHammer\", \"HammerMod-DZ_res/items/ItemGlowstoneHammer.png\");\r\n\t\t//ItemRedstoneHammer = new ItemRedstoneHammer(HammerModMain.MODID + \":ItemRedstoneHammer\", \"HammerMod-DZ_res/items/ItemRedstoneHammer.png\");\r\n\t\t//ItemLapizHammer = new ItemLapizHammer(HammerModMain.MODID + \":ItemLapizHammer\", \"HammerMod-DZ_res/items/ItemLapizHammer.png\");\r\n\t\t//ItemNetherackHammer = new ItemNetherackHammer(HammerModMain.MODID + \":ItemNetherackHammer\", \"HammerMod-DZ_res/items/ItemNetherackHammer.png\");\r\n\t\t//ItemSoulSandHammer = new ItemSoulSandHammer(HammerModMain.MODID + \":ItemSoulSandHammer\", \"HammerMod-DZ_res/items/ItemSoulSandHammer.png\");\r\n\t\tItemCoalHammer = new ItemCoalHammer(HammerModMain.MODID + \":ItemCoalHammer\", \"HammerMod-DZ_res/items/ItemCoalHammer.png\");\r\n\t\tItemCharcoalHammer = new ItemCharcoalHammer(HammerModMain.MODID + \":ItemCharcoalHammer\", \"HammerMod-DZ_res/items/ItemCharcoalHammer.png\");\r\n\t\t//ItemEndstoneHammer = new ItemEndstoneHammer(HammerModMain.MODID + \":ItemEndstoneHammer\", \"HammerMod-DZ_res/items/ItemEndstoneHammer.png\");\r\n\t\tItemBoneHammer = new ItemBoneHammer(HammerModMain.MODID + \":ItemBoneHammer\", \"HammerMod-DZ_res/items/ItemBoneHammer.png\");\r\n\t\t//ItemSpongeHammer = new ItemSpongeHammer(HammerModMain.MODID + \":ItemSpongeHammer\", \"HammerMod-DZ_res/items/ItemSpongeHammer.png\");\r\n\t\t//ItemBrickHammer = new ItemBrickHammer(HammerModMain.MODID + \":ItemBrickHammer\", \"HammerMod-DZ_res/items/ItemBrickHammer.png\");\r\n\t\t//ItemSugarHammer = new ItemSugarHammer(HammerModMain.MODID + \":ItemSugarHammer\", \"HammerMod-DZ_res/items/ItemSugarHammer.png\");\r\n\t\t//ItemSlimeHammer = new ItemSlimeHammer(HammerModMain.MODID + \":ItemSlimeHammer\", \"HammerMod-DZ_res/items/ItemSlimeHammer.png\");\r\n\t\t//ItemMelonHammer = new ItemMelonHammer(HammerModMain.MODID + \":ItemMelonHammer\", \"HammerMod-DZ_res/items/ItemMelonHammer.png\");\r\n\t\t//ItemPumpkinHammer = new ItemPumpkinHammer(HammerModMain.MODID + \":ItemPumpkinHammer\", \"HammerMod-DZ_res/items/ItemPumpkinHammer.png\");\r\n\t\t//ItemPotatoHammer = new ItemPotatoHammer(HammerModMain.MODID + \":ItemPotatoHammer\", \"HammerMod-DZ_res/items/ItemPotatoHammer.png\");\r\n\t\t//ItemCarrotHammer = new ItemCarrotHammer(HammerModMain.MODID + \":ItemCarrotHammer\", \"HammerMod-DZ_res/items/ItemCarrotHammer.png\");\r\n\t\tItemAppleHammer = new ItemAppleHammer(HammerModMain.MODID + \":ItemAppleHammer\", \"HammerMod-DZ_res/items/ItemAppleHammer.png\");\r\n\t\t//ItemIceHammer = new ItemIceHammer(HammerModMain.MODID + \":ItemIceHammer\", \"HammerMod-DZ_res/items/ItemIceHammer.png\");\r\n\t\t//ItemPackedIceHammer = new ItemPackedIceHammer(HammerModMain.MODID + \":ItemPackedIceHammer\", \"HammerMod-DZ_res/items/ItemPackedIceHammer.png\");\r\n\t\t//ItemSnowHammer = new ItemSnowHammer(HammerModMain.MODID + \":ItemSnowHammer\", \"HammerMod-DZ_res/items/ItemSnowHammer.png\");\r\n\t\t//ItemCakeHammer = new ItemCakeHammer(HammerModMain.MODID + \":ItemCakeHammer\", \"HammerMod-DZ_res/items/ItemCakeHammer.png\");\r\n\t\t//ItemDragonEggHammer = new ItemDragonEggHammer(HammerModMain.MODID + \":ItemDragonEggHammer\", \"HammerMod-DZ_res/items/ItemDragonEggHammer.png\");\r\n\t\t//ItemTntHammer = new ItemTntHammer(HammerModMain.MODID + \":ItemTntHammer\", \"HammerMod-DZ_res/items/ItemTntHammer.png\");\r\n\t\t//ItemBedrockHammer = new ItemBedrockHammer(HammerModMain.MODID + \":ItemBedrockHammer\", \"HammerMod-DZ_res/items/ItemBedrockHammer.png\");\r\n\r\n\t\t/*\r\n\t\t * Mob Hammers\r\n\t\t */\r\n\t\t//ItemCreeperHammer = new ItemCreeperHammer(CREEPER).setUnlocalizedName(\"ItemCreeperHammer\").setTextureName(\"hammermod:ItemCreeperHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemPigHammer = new ItemPigHammer(PIG).setUnlocalizedName(\"ItemPigHammer\").setTextureName(\"hammermod:ItemPigHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t//ItemCowHammer = new ItemCowHammer(COW).setUnlocalizedName(\"ItemCowHammer\").setTextureName(\"hammermod:ItemCowHammer\").setCreativeTab(HammerMod.HammerMod);\r\n\t\t\r\n\r\n\t\t/*\r\n\t\t * Hammers Using Ores from other mods\r\n\t\t * **NOTE: REQUIRES Other mods to craft these hammers**\r\n\t\t */\r\n\t\tItemCopperHammer = new ItemCopperHammer(HammerModMain.MODID + \":ItemCopperHammer\", \"HammerMod-DZ_res/items/ItemCopperHammer.png\");\r\n\t\tItemBronzeHammer = new ItemBronzeHammer(HammerModMain.MODID + \":ItemBronzeHammer\", \"HammerMod-DZ_res/items/ItemBronzeHammer.png\");\r\n\t\tItemSilverHammer = new ItemSilverHammer(HammerModMain.MODID + \":ItemSilverHammer\", \"HammerMod-DZ_res/items/ItemSilverHammer.png\");\r\n\t\tItemTungstenHammer = new ItemTungstenHammer(HammerModMain.MODID + \":ItemTungstenHammer\", \"HammerMod-DZ_res/items/ItemTungstenHammer.png\");\r\n\t\tItemRubyHammer = new ItemRubyHammer(HammerModMain.MODID + \":ItemRubyHammer\", \"HammerMod-DZ_res/items/ItemRubyHammer.png\");\r\n\t\tItemTinHammer = new ItemTinHammer(HammerModMain.MODID + \":ItemTinHammer\", \"HammerMod-DZ_res/items/ItemTinHammer.png\");\r\n\t\tItemJadeHammer = new ItemJadeHammer(HammerModMain.MODID + \":ItemJadeHammer\", \"HammerMod-DZ_res/items/ItemJadeHammer.png\");\r\n\t\tItemAmethystHammer = new ItemAmethystHammer(HammerModMain.MODID + \":ItemAmethystHammer\", \"HammerMod-DZ_res/items/ItemAmethystHammer.png\");\r\n\t\tItemGraphiteHammer = new ItemGraphiteHammer(HammerModMain.MODID + \":ItemGraphiteHammer\", \"HammerMod-DZ_res/items/ItemGraphiteHammer.png\");\r\n\t\tItemCitrineHammer = new ItemCitrineHammer(HammerModMain.MODID + \":ItemCitrineHammer\", \"HammerMod-DZ_res/items/ItemCitrineHammer.png\");\r\n\t\tItemPierreHammer = new ItemPierreHammer(HammerModMain.MODID + \":ItemPierreHammer\", \"HammerMod-DZ_res/items/ItemPierreHammer.png\");\r\n\t\tItemSapphireHammer = new ItemSapphireHammer(HammerModMain.MODID + \":ItemSapphireHammer\", \"HammerMod-DZ_res/items/ItemSapphireHammer.png\");\r\n\t\tItemOnyxHammer = new ItemOnyxHammer(HammerModMain.MODID + \":ItemOnyxHammer\", \"HammerMod-DZ_res/items/ItemOnyxHammer.png\");\r\n\t\tItemNikoliteHammer = new ItemNikoliteHammer(HammerModMain.MODID + \":ItemNikoliteHammer\", \"HammerMod-DZ_res/items/ItemNikoliteHammer.png\");\r\n\t\tItemSilicaHammer = new ItemSilicaHammer(HammerModMain.MODID + \":ItemSilicaHammer\", \"HammerMod-DZ_res/items/ItemSilicaHammer.png\");\r\n\t\tItemCinnabarHammer = new ItemCinnabarHammer(HammerModMain.MODID + \":ItemCinnabarHammer\", \"HammerMod-DZ_res/items/ItemCinnabarHammer.png\");\r\n\t\tItemAmberBearingStoneHammer = new ItemAmberBearingStoneHammer(HammerModMain.MODID + \":ItemAmberBearingStoneHammer\", \"HammerMod-DZ_res/items/ItemAmberBearingStoneHammer.png\");\r\n\t\tItemFerrousHammer = new ItemFerrousHammer(HammerModMain.MODID + \":ItemFerrousHammer\", \"HammerMod-DZ_res/items/ItemFerrousHammer.png\");\r\n\t\tItemAdaminiteHammer = new ItemAdaminiteHammer(HammerModMain.MODID + \":ItemAdaminiteHammer\", \"HammerMod-DZ_res/items/ItemAdaminiteHammer.png\");\r\n\t\tItemShinyHammer = new ItemShinyHammer(HammerModMain.MODID + \":ItemShinyHammer\", \"HammerMod-DZ_res/items/ItemShinyHammer.png\");\r\n\t\tItemXychoriumHammer = new ItemXychoriumHammer(HammerModMain.MODID + \":ItemXychoriumHammer\", \"HammerMod-DZ_res/items/ItemXychoriumHammer.png\");\r\n\t\tItemUraniumHammer = new ItemUraniumHammer(HammerModMain.MODID + \":ItemUraniumHammer\", \"HammerMod-DZ_res/items/ItemUraniumHammer.png\");\r\n\t\tItemTitaniumHammer = new ItemTitaniumHammer(HammerModMain.MODID + \":ItemTitaniumHammer\", \"HammerMod-DZ_res/items/ItemTitaniumHammer.png\");\r\n\t\tItemBloodStoneHammer = new ItemBloodStoneHammer(HammerModMain.MODID + \":ItemBloodStoneHammer\", \"HammerMod-DZ_res/items/ItemBloodStoneHammer.png\");\r\n\t\tItemRustedHammer = new ItemRustedHammer(HammerModMain.MODID + \":ItemRustedHammer\", \"HammerMod-DZ_res/items/ItemRustedHammer.png\");\r\n\t\tItemRositeHammer = new ItemRositeHammer(HammerModMain.MODID + \":ItemRositeHammer\", \"HammerMod-DZ_res/items/ItemRositeHammer.png\");\r\n\t\tItemLimoniteHammer = new ItemLimoniteHammer(HammerModMain.MODID + \":ItemLimoniteHammer\", \"HammerMod-DZ_res/items/ItemLimoniteHammer.png\");\r\n\t\tItemMithrilHammer = new ItemMithrilHammer(HammerModMain.MODID + \":ItemMithrilHammer\", \"HammerMod-DZ_res/items/ItemMithrilHammer.png\");\r\n\t\tItemPrometheumHammer = new ItemPrometheumHammer(HammerModMain.MODID + \":ItemPrometheumHammer\", \"HammerMod-DZ_res/items/ItemPrometheumHammer.png\");\r\n\t\tItemHepatizonHammer = new ItemHepatizonHammer(HammerModMain.MODID + \":ItemHepatizonHammer\", \"HammerMod-DZ_res/items/ItemHepatizonHammer.png\");\r\n\t\tItemPoopHammer = new ItemPoopHammer(HammerModMain.MODID + \":ItemPoopHammer\", \"HammerMod-DZ_res/items/ItemPoopHammer.png\");\r\n\t\tItemAngmallenHammer = new ItemAngmallenHammer(HammerModMain.MODID + \":ItemAngmallenHammer\", \"HammerMod-DZ_res/items/ItemAngmallenHammer.png\");\r\n\t\tItemManganeseHammer = new ItemManganeseHammer(HammerModMain.MODID + \":ItemManganeseHammer\", \"HammerMod-DZ_res/items/ItemManganeseHammer.png\");\r\n\t\tItemSearedBrickHammer = new ItemSearedBrickHammer(HammerModMain.MODID + \":ItemSearedBrickHammer\", \"HammerMod-DZ_res/items/ItemSearedBrickHammer.png\");\r\n\t\tItemElectrumHammer = new ItemElectrumHammer(HammerModMain.MODID + \":ItemElectrumHammer\", \"HammerMod-DZ_res/items/ItemElectrumHammer.png\");\r\n\t\tItemPigIronHammer = new ItemPigIronHammer(HammerModMain.MODID + \":ItemPigIronHammer\", \"HammerMod-DZ_res/items/ItemPigIronHammer.png\");\r\n\t\tItemArditeHammer = new ItemArditeHammer(HammerModMain.MODID + \":ItemArditeHammer\", \"HammerMod-DZ_res/items/ItemArditeHammer.png\");\r\n\t\tItemAlumiteHammer = new ItemAlumiteHammer(HammerModMain.MODID + \":ItemAlumiteHammer\", \"HammerMod-DZ_res/items/ItemAlumiteHammer.png\");\r\n\t\tItemCobaltHammer = new ItemCobaltHammer(HammerModMain.MODID + \":ItemCobaltHammer\", \"HammerMod-DZ_res/items/ItemCobaltHammer.png\");\r\n\t\tItemManyullynHammer = new ItemManyullynHammer(HammerModMain.MODID + \":ItemManyullynHammer\", \"HammerMod-DZ_res/items/ItemManyullynHammer.png\");\r\n\t\tItemOureclaseHammer = new ItemOureclaseHammer(HammerModMain.MODID + \":ItemOureclaseHammer\", \"HammerMod-DZ_res/items/ItemOureclaseHammer.png\");\r\n\t\tItemHaderothHammer = new ItemHaderothHammer(HammerModMain.MODID + \":ItemHaderothHammer\", \"HammerMod-DZ_res/items/ItemHaderothHammer.png\");\r\n\t\tItemInfuscoliumHammer = new ItemInfuscoliumHammer(HammerModMain.MODID + \":ItemInfuscoliumHammer\", \"HammerMod-DZ_res/items/ItemInfuscoliumHammer.png\");\r\n\t\tItemRubberHammer = new ItemRubberHammer(HammerModMain.MODID + \":ItemRubberHammer\", \"HammerMod-DZ_res/items/ItemRubberHammer.png\");\r\n\t\tItemDesichalkosHammer = new ItemDesichalkosHammer(HammerModMain.MODID + \":ItemDesichalkosHammer\", \"HammerMod-DZ_res/items/ItemDesichalkosHammer.png\");\r\n\t\tItemMeutoiteHammer = new ItemMeutoiteHammer(HammerModMain.MODID + \":ItemMeutoiteHammer\", \"HammerMod-DZ_res/items/ItemMeutoiteHammer.png\");\r\n\t\tItemEximiteHammer = new ItemEximiteHammer(HammerModMain.MODID + \":ItemEximiteHammer\", \"HammerMod-DZ_res/items/ItemEximiteHammer.png\");\r\n\t\tItemMidasiumHammer = new ItemMidasiumHammer(HammerModMain.MODID + \":ItemMidasiumHammer\", \"HammerMod-DZ_res/items/ItemMidasiumHammer.png\");\r\n\t\tItemSanguiniteHammer = new ItemSanguiniteHammer(HammerModMain.MODID + \":ItemSanguiniteHammer\", \"HammerMod-DZ_res/items/ItemSanguiniteHammer.png\");\r\n\t\tItemInolashiteHammer = new ItemInolashiteHammer(HammerModMain.MODID + \":ItemInolashiteHammer\", \"HammerMod-DZ_res/items/ItemInolashiteHammer.png\");\r\n\t\tItemVulcaniteHammer = new ItemVulcaniteHammer(HammerModMain.MODID + \":ItemVulcaniteHammer\", \"HammerMod-DZ_res/items/ItemVulcaniteHammer.png\");\r\n\t\tItemLemuriteHammer = new ItemLemuriteHammer(HammerModMain.MODID + \":ItemLemuriteHammer\", \"HammerMod-DZ_res/items/ItemLemuriteHammer.png\");\r\n\t\tItemAmordrineHammer = new ItemAmordrineHammer(HammerModMain.MODID + \":ItemAmordrineHammer\", \"HammerMod-DZ_res/items/ItemAmordrineHammer.png\");\r\n\t\tItemCeruclaseHammer = new ItemCeruclaseHammer(HammerModMain.MODID + \":ItemCeruclaseHammer\", \"HammerMod-DZ_res/items/ItemCeruclaseHammer.png\");\r\n\t\tItemKalendriteHammer = new ItemKalendriteHammer(HammerModMain.MODID + \":ItemKalendriteHammer\", \"HammerMod-DZ_res/items/ItemKalendriteHammer.png\");\r\n\t\tItemVyroxeresHammer = new ItemVyroxeresHammer(HammerModMain.MODID + \":ItemVyroxeresHammer\", \"HammerMod-DZ_res/items/ItemVyroxeresHammer.png\");\r\n\t\tItemCarmotHammer = new ItemCarmotHammer(HammerModMain.MODID + \":ItemCarmotHammer\", \"HammerMod-DZ_res/items/ItemCarmotHammer.png\");\r\n\t\tItemTartariteHammer = new ItemTartariteHammer(HammerModMain.MODID + \":ItemTartariteHammer\", \"HammerMod-DZ_res/items/ItemTartariteHammer.png\");\r\n\t\tItemAtlarusHammer = new ItemAtlarusHammer(HammerModMain.MODID + \":ItemAtlarusHammer\", \"HammerMod-DZ_res/items/ItemAtlarusHammer.png\");\r\n\t\tItemAstralHammer = new ItemAstralHammer(HammerModMain.MODID + \":ItemAstralHammer\", \"HammerMod-DZ_res/items/ItemAstralHammer.png\");\r\n\t\tItemCelenegilHammer = new ItemCelenegilHammer(HammerModMain.MODID + \":ItemCelenegilHammer\", \"HammerMod-DZ_res/items/ItemCelenegilHammer.png\");\r\n\t\tItemAredriteHammer = new ItemAredriteHammer(HammerModMain.MODID + \":ItemAredriteHammer\", \"HammerMod-DZ_res/items/ItemAredriteHammer.png\");\r\n\t\tItemOrichalcumHammer = new ItemOrichalcumHammer(HammerModMain.MODID + \":ItemOrichalcumHammer\", \"HammerMod-DZ_res/items/ItemOrichalcumHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For YouTubers\r\n\t\t */\r\n\t\tItemPatHammer = new ItemPatHammer(HammerModMain.MODID + \":ItemPatHammer\", \"HammerMod-DZ_res/items/ItemPatHammer.png\");\r\n\t\tItemJenHammer = new ItemJenHammer(HammerModMain.MODID + \":ItemJenHammer\", \"HammerMod-DZ_res/items/ItemJenHammer.png\");\r\n\t\tItemDanTDMHammer = new ItemDanTDMHammer(HammerModMain.MODID + \":ItemDanTDMHammer\", \"HammerMod-DZ_res/items/ItemDanTDMHammer.png\");\r\n\t\tItemxJSQHammer = new ItemxJSQHammer(HammerModMain.MODID + \":ItemxJSQHammer\", \"HammerMod-DZ_res/items/ItemxJSQHammer.png\");\r\n\t\tItemSkyTheKidRSHammer = new ItemSkyTheKidRSHammer(HammerModMain.MODID + \":ItemSkyTheKidRSHammer\", \"HammerMod-DZ_res/items/ItemSkyTheKidRSHammer.png\");\r\n\t\tItemThackAttack_MCHammer = new ItemThackAttack_MCHammer(HammerModMain.MODID + \":ItemThackAttack_MCHammer\", \"HammerMod-DZ_res/items/ItemThackAttack_MCHammer.png\");\r\n\t\tItem_MrGregor_Hammer = new Item_MrGregor_Hammer(HammerModMain.MODID + \":Item_MrGregor_Hammer\", \"HammerMod-DZ_res/items/Item_MrGregor_Hammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Hammers For Twitch Streamers\r\n\t\t */\r\n\t\tItemDeeAxelJayHammer = new ItemDeeAxelJayHammer(HammerModMain.MODID + \":ItemDeeAxelJayHammer\", \"HammerMod-DZ_res/items/ItemDeeAxelJayHammer.png\");\r\n\t\tItemincapablegamerHammer = new ItemincapablegamerHammer(HammerModMain.MODID + \":ItemincapablegamerHammer\", \"HammerMod-DZ_res/items/ItemincapablegamerHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Community Hammers\r\n\t\t */\r\n\t\tItemCryingObsidainHammer = new ItemCryingObsidainHammer(HammerModMain.MODID + \":ItemCryingObsidainHammer\", \"HammerMod-DZ_res/items/ItemCryingObsidainHammer.png\");\r\n\t\tItemMythicalHammer = new ItemMythicalHammer(HammerModMain.MODID + \":ItemMythicalHammer\", \"HammerMod-DZ_res/items/ItemMythicalHammer.png\");\r\n\t\tItemToasterHammer = new ItemToasterHammer(HammerModMain.MODID + \":ItemToasterHammer\", \"HammerMod-DZ_res/items/ItemToasterHammer.png\");\r\n\t\t\r\n\t\t/*\r\n\t\t * Special Hammers\r\n\t\t */\r\n\t\tItemRainbowHammer = new ItemRainbowHammer(HammerModMain.MODID + \":ItemRainbowHammer\", \"HammerMod-DZ_res/items/ItemRainbowHammer.png\");\r\n\t\tItemMissingTextureHammer = new ItemMissingTextureHammer(HammerModMain.MODID + \":ItemMissingTextureHammer\", \"HammerMod-DZ_res/items/ItemMissingTextureHammer.png\");\r\n\r\n\t\tregisterItems();\r\n\t}",
"void onChamaItemClicked(int position);",
"@Override\r\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"buscar Objects\");\r\n\t\t\t\tidPack = (int) event.getItem().getItemProperty(\"IdPack\").getValue();\r\n\t\t\t\tbuscaObjectsByPacks((int) event.getItem().getItemProperty(\"IdPack\").getValue());\r\n\t\t\t\t\r\n\t\t\t}",
"public void useItem(Item i)\n\t{\n\t\tString name = i.getName();\n\t\tPlayer player = GameController.getPlayer();\n\t\t\n\t\tswitch(name)\n\t\t{\n\t\tcase \"Polar Pop\":\n\t\t\tplayer.addHealth(30);\n\t\t\tTextHandler.displayText(\"Mmm, tastes like root beer. You restored 30 HP.\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Klondike Bar\":\n\t\t\tplayer.addHealth(50);\n\t\t\tTextHandler.displayText(\"What would you dooOOOoooo, for a klondike bar? Ha. You restored 50 HP.\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"Big tiddy goth GF\":\n\t\t\tplayer.setHealth(player.getMaxHealth());\n\t\t\tplayer.setMana(player.getMaxMana());\n\t\t\tplayer.setXp(player.getMaxXp());\n\t\t\tTextHandler.displayText(\"Very scrumptious. You have regained all life and mana, and have even gained a new level\");\n\t\t\tbreak;\n\t\t\t\n\t\t\tdefault:\n\t\t\t\tTextHandler.displayText(\"There is no use for \" + name + \".\");\n\t\t}\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 }",
"@Override\n @Test\n public void equipAnimaTest() {\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.equipItem(anima);\n assertFalse(sorcererAnima.getItems().contains(anima));\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.addItem(anima);\n sorcererAnima.equipItem(anima);\n assertEquals(anima,sorcererAnima.getEquippedItem());\n }",
"SimpleInventory getOpenedInventory(Player player);",
"@Override\n public void mostrarListadoEquipos(List<Equipo> equipos) {\n\n }",
"@Override // see item.java\n\tpublic void useItem() {\n\n\t}",
"public String getItemString() \r\n \t{\r\n \t\tString itemString = \"Regarde s'il y a des objets ici: \";\r\n \t\t\r\n \t\tif (!items.getHashMap().isEmpty())\r\n \t\t{\r\n \t\t\tSet<String> cles = items.getKeys();\r\n \t\t\tfor (String nom : cles) \r\n \t\t\t{\r\n \t\t\t\tif(nom != \"beamer\")\r\n \t\t\t\t{\r\n \t\t\t\t\tItem valeurs = items.getValue(nom);\r\n \t\t\t\t\titemString += \"\\n\" + valeurs.getDescriptionItem() + \" qui pèse \" + valeurs.toString() + \" kg\";\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\titemString = \"Il n'y a pas d'objet ici\";\r\n \t\t}\r\n \t\t\r\n \r\n \t\r\n \t\t/********** L'ArrayList des potions **********/\r\n \t\titemString += \"\\n\";\r\n \t\tfor (int i = 0; i < potion.size(); i++) {\r\n \t\t\titemString += \"\\n\" + potion.get(i).getNomPotion();\r\n \t\t}\r\n \t\t/****************************************************************/\r\n \r\n \t\treturn itemString;\r\n \r\n \t}",
"@Override\n public void onEpgItemVisible(int position) {\n }",
"@Override\r\n\tpublic void clicked(ItemMenuIcon icon, Player p) {\n\t\t\r\n\t}",
"public void pilihanAksi() {\n\n int urutPil = 0; //item, pintu\n int subPil = 0; //aksinya\n\n //Aksi dengan Polymorphism\n System.out.println(\"========== Pilihan Aksi pada Ruangan =============\");\n System.out.println(\"| Item di ruangan |\");\n System.out.println(\"==================================================\");\n System.out.println();\n\n //Menampilkan item dalam Array Item (Polymorphism)\n for (Item listItem : arrItem){\n urutPil++;\n subPil = 0; // Sistem penomoran 11, 12, 13, dan seterusnya\n\n System.out.println(listItem.getNama()); //Menampilkan nama pada arrItem\n\n //Menampilkan aksi pada turunan method dengan polymorphism\n ArrayList<String> arrPil = listItem.getAksi();\n for (String stringPilihan : arrPil){\n subPil++;\n //Print pilihan menu\n System.out.printf(\"%d%d. %s %n\", urutPil, subPil, stringPilihan);\n }\n }\n\n System.out.print(\"Pilihan anda : \");\n String strPil = sc.next();\n System.out.println(\"---------------\");\n\n //split pilihan dan subpilihan\n\n int pil = Integer.parseInt(strPil.substring(0,1)); //ambil digit pertama, asumsikan jumlah tidak lebih dari 10\n subPil = Integer.parseInt(strPil.substring(1,2)); //ambil digit kedua, asumsikan jumlah tidak lebih dari 10\n\n //Inheritance dari Proses Aksi dengan Polymorphism\n Item pilih = arrItem.get(pil-1);\n pilih.prosesAksi(subPil); //aksi item\n }",
"@Override\n\tpublic void onClick(View v) {\n\t\tfinal int position = (Integer) v.getTag();\n\t\tfinal MyItem mItem = rows.get(position);\n\t\tfinal MyItemManager mngr = new MyItemManager(MyItemAdapter.mContext);\n\t\tVibrator vibe = (Vibrator) mContext\n\t\t\t\t.getSystemService(Context.VIBRATOR_SERVICE);\n\t\tMediaPlayer mp = MediaPlayer.create(this.mContext, R.raw.explosion_2);\n\t\tLog.d(\"MyItemAdapter.onClick\", \"Item id: \" + mItem.getId()\n\t\t\t\t+ \"\\n Item Name :\" + mItem.getName() + \"mItem charges: \"\n\t\t\t\t+ mItem.getItemCharges());\n\t\tLog.i(\"onclick:\", \"position is: \" + v.getTag());\n\t\tswitch (v.getId()) {\n\t\tcase R.id.bFire:\n\t\t\tif (mItem.getItemCharges() > 0) {\n\t\t\t\tLog.d(\"MyItemAdapter.onClick\", \"bFire Clicked\");\n\t\t\t\tmp.start();\n\t\t\t\tvibe.vibrate(100);\n\t\t\t\tmngr.fireCharge(mItem);\n\t\t\t\trows.get(position).setItemCharges(mItem.getItemCharges() - 1);\n\t\t\t\tmngr.close();\n\t\t\t\trefresh(rows);\n\t\t\t} else if (mItem.getItemCharges() <= 0) {\n\t\t\t\tLog.d(\"MyItemAdapter\", \"Item Charges <=0\");\n\t\t\t\tQustomDialogBuilder alert = new QustomDialogBuilder(mContext);\n\t\t\t\talert.setTitle(\"No More Charges!!\");\n\t\t\t\talert.setMessage(\"Do you want to reload the item?\");\n\t\t\t\talert.setTitleColor(\"#ff0101\");\n\t\t\t\talert.setDividerColor(\"#ff0101\");\n\t\t\t\talert.setPositiveButton(\"Yes\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t// Add charges\n\t\t\t\t\t\t\t\tenterCharges(mContext, mItem);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\talert.setNegativeButton(\"No\",\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t\t// Canceled.\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\tfinal AlertDialog dialog = alert.create();\n\t\t\t\tdialog.show();\n\n\t\t\t}\n\n\t\t\tbreak;\n\n\t\tcase R.id.bDelete:\n\t\t\tLog.d(\"MyItemAdapter.onClick\", \"bDelete Clicked\");\n\t\t\tQustomDialogBuilder alert = new QustomDialogBuilder(\n\t\t\t\t\tMyItemAdapter.mContext);\n\t\t\talert.setTitle(\"Confirm Item Deletion\");\n\t\t\talert.setMessage(\"Are you sure you want to delete item ?\");\n\t\t\talert.setTitleColor(\"#ff0101\");\n\t\t\talert.setDividerColor(\"#ff0101\");\n\t\t\talert.setPositiveButton(\"Yes\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t// Add charges\n\t\t\t\t\t\t\tmngr.deleteItem(mItem.getId());\n\t\t\t\t\t\t\trows.remove(position);\n\t\t\t\t\t\t\trefresh(rows);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\n\t\t\talert.setNegativeButton(\"No\",\n\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\n\t\t\t\t\t\t\t\tint whichButton) {\n\t\t\t\t\t\t\t// Canceled.\n\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\tfinal AlertDialog dialog = alert.create();\n\t\t\tdialog.show();\n\n\t\t\tbreak;\n\n\t\t}\n\n\t}",
"@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n Toast.makeText(getApplicationContext(), znamkyItemList.get(position).popis, Toast.LENGTH_LONG).show();\n\n }",
"private void pulsarItemMayus(){\n if (mayus) {\n mayus = false;\n texto_frases = texto_frases.toLowerCase();\n }\n else {\n mayus = true;\n texto_frases = texto_frases.toUpperCase();\n }\n fillList(false);\n }",
"public void usarItem(Item item) {\n\t\t\n\t\tpokemons[0].usarItem(item);\n\t\t\n\t}",
"public void lookForLiveItems(){\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/live_video_title\"); //Texto\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/overthumb_channelLogo\"); //Logo\r\n\t\ttools.findWithScroll(\"com.fic.foxsports:id/HomeViewPager\", \"com.fic.foxsports:id/clipItemImage\"); //Background\r\n\t}",
"public void onInteract(Item item, Character character) {\n }",
"void action(Locale locale, Player player, InventoryGUI gui);",
"@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n System.out.println(\"JE SUIS VRAIMENT A L'ECOLE JUSQU'A PRESENT, MOI MEME JE NE COMPRENDS PAS\");\n //for (Risque r: mRisqueArrayList)\n //{\n if (position == 0)\n {\n Toast.makeText(SignalActivity.this, mRisqueArrayList.get(position).getCaracterisation(), Toast.LENGTH_SHORT).show();\n }\n //}\n }",
"private void actualizarEnemigosItems() {\n if(estadoMapa== EstadoMapa.RURAL || estadoMapa== EstadoMapa.RURALURBANO ){\n moverCamionetas();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.URBANO || estadoMapa == EstadoMapa.URBANOUNIVERSIDAD){\n moverCarroLujo();\n moverAves();\n }\n if(estadoMapa== EstadoMapa.UNIVERSIDAD){\n moverCarritoGolf();\n moverAves();\n }\n if (estadoMapa == EstadoMapa.SALONES){\n moverLamparas();\n moverSillas();\n }\n actualizaPuntuacion();\n moverTareas();\n moverItemCorazon();\n verificarColisiones();\n verificarMuerte();\n moverItemRayo();\n /*\n IMPLEMENTAR\n\n //moverPajaro();\n //etc\n */\n }",
"public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }",
"@Override\n public void onCrafting(EntityPlayer player, ItemStack item, IInventory craftMatrix) \n {\n if (item.itemID == mod_TFmaterials.RubyPickaxe.itemID)\n {\n \t//player.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n \tplayer.addStat(mod_TFmaterials.RubyPickAchieve, 1);\n }\n }",
"public boolean addPlayerItem(PlayerItem playerItem);",
"@EventHandler()\n\tpublic void onPlayerItemConsume(PlayerItemConsumeEvent event){\n\t\tList<String> item_desc = event.getItem().getLore();\n\t\tif (item_desc != null){\n\t\t\tPlayer target = event.getPlayer();\n\n\t\t\tfor (String line : item_desc )\n\t\t\t{\n\t\t\t\tif (line.contains(\"Hunger\"))\n\t\t\t\t{\n\t\t\t\t\tint value = Integer.parseInt(line.substring(line.lastIndexOf(\" \") + 1));\n\t\t\t\t\ttarget.setFoodLevel(target.getFoodLevel() + value );\n\t\t\t\t}\n\t\t\t\telse if (line.contains(\"Saturation\"))\n\t\t\t\t{\n\t\t\t\t\tint value = Integer.parseInt(line.substring(line.lastIndexOf(\" \") + 1));\n\t\t\t\t\ttarget.setSaturation(target.getSaturation() + value );\n\t\t\t\t}\n\t\t\t\telse if (line.contains(\"Effect\"))\n\t\t\t\t{\n\n\t\t\t\t\tString effect_full = line.substring(line.lastIndexOf(\": \") + 2, line.lastIndexOf(\"- \"));\n\t\t\t\t\t// Get the first number in the desc, which will be the strength of the effect by splitting the string at the number.\n\t\t\t\t\tString[] strength_effect = effect_full.split(\"(?<=\\\\D)(?=\\\\d)\");\n\t\t\t\t\tString effect = strength_effect[0];\n\t\t\t\t\tString strength = strength_effect[1];\n\n\t\t\t\t\tString duration_mins = line.substring(line.lastIndexOf(\"- \") + 2, line.lastIndexOf(\":\"));\n\t\t\t\t\tString duration_secs = line.substring(line.lastIndexOf(\":\") + 1, line.lastIndexOf(\" min\"));\n\n\t\t\t\t\tint amplifier = Integer.parseInt(strength.trim()) - 1;\n\t\t\t\t\t// Here we have to convert mins to seconds and also multiply the entire duration by the tick rate, which is default 20.\n\t\t\t\t\tint duration = (Integer.parseInt(duration_mins.trim()) * 60 + Integer.parseInt(duration_secs.trim())) * 20;\n\n\t\t\t\t\tPotionEffectType pot_effect = PotionEffectType.getByName(effect.trim());\n\n\t\t\t\t\tPotionEffect food_effect = new PotionEffect(pot_effect, duration , amplifier);\n\n\t\t\t\t\ttarget.addPotionEffect(food_effect);\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void useItem(int num) {\r\n\t\tif (num < currentPlayer.getConsumables().size()) {\r\n\t\t\tString item = currentPlayer.getConsumables().get(num);\r\n\t\t\t// Find corresponding name\r\n\t\t\tif (item.contentEquals(\"LargeHealing\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Large Health Potion** :gift_heart:\",true);\r\n\t\t\t\tupdateHealth(currentPlayer,2);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t} else if (item.contentEquals(\"SmallHealing\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Small Health Potion** :heartpulse:\",true);\r\n\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t} else if (item.contentEquals(\"Swift\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Potion of Swiftness** :ice_skate:\",true);\r\n\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t} else if (item.contentEquals(\"Strength\")) {\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` used a **Potion of Strength** :muscle:\",true);\r\n\t\t\t\tcurrentPlayer.updateSwords(2);\r\n\t\t\t\tcurrentPlayer.getConsumables().remove(num);\r\n\t\t\t}\r\n\t\t}\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t}",
"public boolean updatePlayerItem(PlayerItem playerItem);",
"private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n\t\t}\n\n\t\t\n\t}",
"public String printAllInventory(){\r\n\r\n String returnString = \"Items:\";\r\n for(Item item : playerItem){\r\n returnString += \" \" + item.getName(); \r\n }\r\n return returnString;\r\n }",
"@Override\n @Test\n public void equipTest() {\n Axe axes;\n Sword sword;\n Staff staff;\n Spear spear;\n Luz luz;\n Oscuridad oscuridad;\n Anima anima;\n Bow bow;\n axes = new Axe(\"Axe\", 20, 1, 2);\n sword = new Sword(\"Sword\", 20, 1, 2);\n spear = new Spear(\"Spear\", 20, 1, 2);\n staff = new Staff(\"Staff\", 20, 1, 2);\n bow = new Bow(\"Bow\", 20, 2, 3);\n anima = new Anima(\"Anima\", 20, 1, 2);\n luz = new Luz(\"Luz\", 20, 1, 2);\n oscuridad = new Oscuridad(\"Oscuridad\", 20, 1, 2);\n sorcererAnima.addItem(axes);\n sorcererAnima.equipItem(axes);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(axes);\n sorcererAnima.addItem(sword);\n sorcererAnima.equipItem(sword);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(sword);\n sorcererAnima.addItem(spear);\n sorcererAnima.equipItem(spear);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(spear);\n sorcererAnima.addItem(staff);\n sorcererAnima.equipItem(staff);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(staff);\n sorcererAnima.addItem(bow);\n sorcererAnima.equipItem(bow);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(bow);}",
"@FXML\n\tpublic void useItem(ActionEvent event){\n\t\t\tString itemName=\"\";\n\t\t\titemName = itemselect.getText();\n\t\t\n\t\t\tif(itemName.equals(\"\")) {\t// Checks if selected item is blank\n\t\t\t\n\t\t\t\tevents.appendText(\"Select an item from the Inventory box before clicking this button!\\n\");\t\n\t\t\t\treturn;\n\t\t\t\n\t\t\t} else {\t// Begins getting item information\n\t\t\t\tItem i;\n\t\t\t\tint x;\n\t\t\t\ti=Item.getItem(ItemList, itemName);\t// Get item from the item list\n\t\t\t\t\n\t\t\t\tif(i == null) {\t// Check if the item isnt found in the item list\n\t\t\t\t\t\n\t\t\t\t\tevents.appendText(\"Item not Found!\\n\");\n\t\t\t\t\titemselect.setText(\"\");\n\t\t\t\t\titemStats.setText(\"\");\n\t\t\t\t} else {\t// Check what type of item was used\n\t\t\t\t\tif(i.getStat().equals(\"HP\")) {\n\t\t\t\t\t\tint y=p.getHP()+i.getChange();\n\t\t\t\t\t\tif(y>p.getMaxHP()) {\n\t\t\t\t\t\t\tp.setHP(p.getMaxHP());\n\t\t\t\t\t\t\tevents.appendText(\"Health Restored to Full!\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tp.setHP(y);\n\t\t\t\t\t\tevents.appendText(\"Health Restored by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\tcurrentHp.setText(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t\t}else if(i.getStat().equals(\"DMG\")) {\n\t\t\t\t\tp.setDMG(p.getDMG()+i.getChange());\n\t\t\t\t\tgdmg.setText(\"\"+p.getDMG());\n\t\t\t\t\tevents.appendText(\"Damage Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t}else {\n\t\t\t\t\tif(p.getEV()+i.getChange()>100) {\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + (100-p.getEV())+\", Max Evasion is 100\\n\");\n\t\t\t\t\t\tp.setEV(100);\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t}else {\n\t\t\t\t\t\tp.setEV(p.getEV()+i.getChange());\n\t\t\t\t\t\tgev.setText(\"\"+p.getEV());\n\t\t\t\t\t\tevents.appendText(\"EV Increased by \" + i.getChange()+\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Remove the item from the inventory\n\t\t\t\tx=Inventory.indexOf(i);\n\t\t\t\tInventory.remove(x);\n\t\t\t\tinventoryList.getItems().remove(x);\n\t\t\t\titemselect.setText(\"\");\n\t\t\t\titemStats.setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}",
"@Override\r\n\tpublic void subItemFinished(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}",
"@Override\n\tpublic void openInventory(EntityPlayer player) {\n\t\t\n\t}",
"@Override\n\tpublic void openInventory(EntityPlayer player) {\n\t\t\n\t}",
"@EventHandler\n public void onInventoryClick(InventoryClickEvent event) {\n //if clicked outside of area, return\n if(event.getCurrentItem() == null){\n return;\n }\n\n //test if this is one of our menus\n Menu menu = null;\n Boolean ourMenu = false;\n for (Menu m : plugin.menuList) {\n if (m.getMenuName().equalsIgnoreCase(event.getClickedInventory().getName())){\n menu = m;\n ourMenu = true;\n break;\n }\n }\n\n if (!ourMenu) {\n //not our menu\n return;\n }\n\n //it is our GUI\n //stop moving item straight away\n event.setCancelled(true);\n\n Player player = (Player) event.getWhoClicked();\n\n //get item through slot that was clicked\n int clickedSlot = event.getSlot();\n Item item = menu.getItems().stream().filter((i) -> i.getSlot() == clickedSlot).findFirst().orElse(null);\n\n\n //if item clicked is null, just do nothing\n if (item == null) {\n return;\n }\n //get stored arrays\n CommandMemory savedCmds = plugin.cmdMemoryList.stream()\n .filter((cm) -> cm.uuid.equalsIgnoreCase(player.getUniqueId().toString()))\n .findFirst()\n .orElse(null);\n\n //check that we actually have the command saved\n if (savedCmds == null) {\n //command has not been saved\n plugin.console.log(\"Unable to find saved ARgs\");\n return;\n }\n\n String CommandToRun;//this string will hold every command\n\n\n //execute console commands\n for (String consoleCMD : item.getCommands()) {\n CommandToRun = consoleCMD.replace(\"{player}\", player.getName());//puts this player in the command\n //add in args\n for (Argument a : savedCmds.args) {\n CommandToRun = CommandToRun.replace(\"$arg\" + a.getArgNum(), a.getName());\n }\n\n //run command\n if (CommandToRun.contains(\"[console]\")) {\n //run as console\n plugin.getServer()\n .dispatchCommand(\n plugin.getServer().getConsoleSender(),\n CommandToRun.replace(\"[console]\", \"\").trim());\n } else if (CommandToRun.contains(\"[player]\")) {\n //run as player\n player.performCommand(CommandToRun.replace(\"[player]\", \"\").trim());\n } else if (CommandToRun.contains(\"[message]\")) {\n //message caller\n player.sendMessage(menu.getPrefix()\n + ChatColor.RESET\n + CommandToRun.replace(\"[message]\", \"\").trim());\n } else if (CommandToRun.contains(\"[close]\")) {\n //close menu\n player.closeInventory();//close invent for player\n plugin.cmdMemoryList.remove(savedCmds);\n } else if (CommandToRun.contains(\"[refresh]\")) {\n //refresh item that was clicked\n menu.refreshMenu(event);\n } else {\n //don't know how to handle.... let console know\n plugin.console.log(\"Unknown command: \" + CommandToRun);\n //let player know\n player.sendMessage(menu.getPrefix() + ChatColor.RED + \"There was a problem with running your command. Please report this.\");\n }\n }\n }",
"public boolean use(Inventory i, Player p);",
"public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}",
"public void addItemToInventory(Item ... items){\n this.inventory.addItems(items);\n }",
"public void getSubItems(Item itemIn, CreativeTabs tab, List<ItemStack> subItems) {\n/* 62 */ subItems.add(new ItemStack(itemIn, 1, 0));\n/* 63 */ subItems.add(new ItemStack(itemIn, 1, 1));\n/* */ }",
"InventoryItem getInventoryItem();",
"public void onAdicionarItemTroca()\n\t{\n\t\t\n\t}",
"public void eatItem(Command command) {\n if (!command.hasSecondWord()) { // check if there's a second word\n System.out.println(\"Eat what?\");\n return;\n }\n String itemToBeEaten = command.getSecondWord();\n List<Item> playerInventory = player.getPlayerInventory(); // load the inventory of the player\n\n boolean somethingToUse = false;\n int notThisItem = 0;\n int loop;\n\n for (loop = 0; loop < playerInventory.size(); loop++) { // loop through the player inventory\n Item currentItem = playerInventory.get(loop); // set currentitem on the item that is currently in the loop\n if (itemToBeEaten.equals(currentItem.getItemName()) ){ // get the item name, then check if that matches the secondWord\n if (currentItem.getItemCategory().equals(\"food\")){ // check if the item used is an item in the \"food\" category\n if((player.getHealth())<(20)) { // check if the player's health is full\n player.addHealth(currentItem.getHealAmount()); // heal the player\n player.removeItemFromInventory(currentItem); // remove item from inventory\n System.out.println(\"You eat the \" + itemToBeEaten + \". It heals for \" + currentItem.getHealAmount()+\".\");\n } else { // the player's health is full\n System.out.println(\"Your are at full health!\");\n }\n } else { // item is not a food item\n System.out.println(\"You can't eat that item!\");\n }\n } else { // the item did not match the player provided name\n notThisItem++;\n }\n somethingToUse = true;\n }\n\n //errors afvangen\n if (!somethingToUse) { // the item is not found in the player inventory\n System.out.println(\"You can't eat that!\");\n }\n\n if (loop == notThisItem) { // the player has nothing to burn secondWord with\n //ThisItem is the same amount as loop. Then the player put something in that is not in the room\n System.out.println(\"You cannot eat \" + itemToBeEaten + \" because you don't have it in your inventory!\");\n }\n }",
"public void ParcoursInfixe(ArrayList<Item> items) {\r\n// Item[] listeItem= new Item[this.taille()];\r\n if (getGauche() != null) {\r\n getGauche().ParcoursInfixe(items);\r\n }\r\n items.add((Item) getElement());\r\n if (getDroite() != null) {\r\n getDroite().ParcoursInfixe(items);\r\n }\r\n// return listeItem;\r\n }",
"private void useItem(Command command) \n { \n if(!command.hasSecondWord()) { \n // if there is no second word, we don't know where to go... \n Logger.Log(\"What are you trying to use?\"); \n return; \n } \n \n String itemUsed = command.getSecondWord();\n String secondUsed = itemUsed + \"2\";\n \n Item thisItem = player.getItem(itemUsed);\n Item secondItem = player.getItem(secondUsed);\n \n Creature thisFriend = player.getCompanion(itemUsed);\n \n //Tries to retrieve which item or creature to use. If not, an error message is returned \n if (thisItem == null&&secondItem == null&&thisFriend == null) {\n Logger.Log(\"You don't have a \" + itemUsed);\n }\n else if (player.inventory.containsKey(itemUsed)) { \n player.removeItem(itemUsed); //The item is removed from inventory\n thisItem.UseItem(this);\n }\n else if (player.inventory.containsKey(secondUsed)) {\n player.removeItem(secondUsed); //The item is removed from inventory\n secondItem.UseItem(this);\n }\n else if (player.friends.containsKey(itemUsed)){ \n thisFriend.UseCompanion(this);\n if (thisFriend.flees){\n player.removeCompanion(itemUsed); //Companions do not get removed from inventory unless the flees boolean has been set to true.\n }\n } \n }",
"public static void putCraftableItemInArrayList() {\n\n craftableItem.addItemToCraftableList(campfire);\n craftableItem.addItemToCraftableList(raft);\n craftableItem.addItemToCraftableList(axe);\n craftableItem.addItemToCraftableList(spear);\n }",
"static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }",
"public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }",
"@Override\n\tpublic void openInventory() {\n\t\t\n\t}",
"protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }",
"public static void item(){\n int opcionItem; //variables locales a utilizar\n Scanner scannerDos=new Scanner(System.in);\n //imprimiendo posibles Items y su cantidad\n System.out.println(\"\\nArticulos Disponibles:\");\n\tSystem.out.println(\"\\n1.Potion, Cura 25HP:\\t\"+articulo1);\n\tSystem.out.println(\"2.Hi-Potion,Cura 75HP:\\t\"+articulo2);\n\tSystem.out.println(\"3.M-Potion, Recupera 10MP:\\t\"+articulo3);\n\t\n do{//validacion de la opcion\n System.out.println(\"\\nNumero de opcion:\");\n opcionItem= scannerDos.nextInt();\n \n }while(opcionItem<1||opcionItem>4);\n //comparador para ver si es posibles utilizar un Item\n switch(opcionItem){\n case 1:{\n if(articulo1>0){//condicion de Item 1 y sus acciones\n puntosDeVida=puntosDeVida+25;\n articulo1=articulo1-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n case 2:{\n if(articulo2>0){//condicion de Item 2 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo2=articulo2-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n }\n default:{\n if(articulo3>0){ //condicion de Item 3 y sus acciones\n puntosDeVida=puntosDeVida+75;\n articulo3=articulo3-1;\n }\n else{\n System.out.println(\"no hay Disponible\");\n }\n break;\n } \n } \n }",
"public interface IPickupItem extends WrapperItem {\n\n void onPlayerPickupItem(Kit kit, PlayerPickupItemEvent event);\n\n}",
"@Override\n\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\n\n\t\t\n\t}",
"@Override\n public void OnItemClick(int position) {\n }",
"public List<PlayerItem> getSpecific(int playerItemId);",
"public interface itemListener{\n void onClickItem(int position);\n }",
"public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }",
"public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }",
"public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }",
"@Override\n public void itemClick(int pos) {\n }",
"void openInventory(Player player, SimpleInventory inventory);",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"@Override\n\tpublic void itemStateChanged(ItemEvent arg0) {\n\n\t}",
"private void generateItemEntities(){\n final int NUM_POTIONS = 6;\n final int NUM_IRON_ARMOUR = 1;\n final int NUM_CHESTS = 2;\n final String ITEM_BOX_STYLE = \"volcano\";\n\n\n for (int i = 0; i < NUM_POTIONS; i++) {\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n HealthPotion potion = new HealthPotion(tile,false,\n (PlayerPeon) getPlayerEntity(), ITEM_BOX_STYLE);\n entities.add(potion);\n this.allVolcanoDialogues.add(potion.getDisplay());\n } else {\n i--;\n }\n }\n for (int i =0; i < NUM_IRON_ARMOUR; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n IronArmour ironArmour = new IronArmour(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE,200);\n entities.add(ironArmour);\n this.allVolcanoDialogues.add(ironArmour.getDisplay());\n } else {\n i--;\n }\n }\n for (int i = 0; i <NUM_CHESTS; i++){\n Tile tile = getTile(Item.randomItemPositionGenerator(DEFAULT_WIDTH),\n Item.randomItemPositionGenerator(DEFAULT_HEIGHT));\n if (Integer.parseInt(tile.getTextureName().split(\"_\")[1]) < 5\n && !tile.hasParent()) {\n Treasure chest = new Treasure(tile, false,\n (PlayerPeon) getPlayerEntity(),ITEM_BOX_STYLE);\n entities.add(chest);\n this.allVolcanoDialogues.add(chest.getDisplay());\n } else {\n i--;\n }\n }\n\n Tile cooldownring = getTile(20,-7);\n CooldownRing cdring = new CooldownRing(cooldownring, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,0.5f);\n entities.add(cdring);\n this.allVolcanoDialogues.add(cdring.getDisplay());\n\n Tile attackAmuletTile = getTile(2,14);\n Amulet attackAmulet = new Amulet(attackAmuletTile, false,\n (PlayerPeon) this.getPlayerEntity(), ITEM_BOX_STYLE,10);\n entities.add(attackAmulet);\n this.allVolcanoDialogues.add(attackAmulet.getDisplay());\n\n }",
"private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}",
"public interface ItemClickListener {\n// void onShareClick(T item);\n// void onDownloadClick(T item);\n void onChannelTitleClick(Item item);\n void onPlayClick(Item item);\n}",
"public void onClickPlayer() {\n carIcon.setOpacity(1);\n playerIcon.setOpacity(1);\n playerList.getSelectionModel().selectedItemProperty().addListener((observable, oldValue, newValue) -> {\n displayUserInfo(newValue);\n });\n MAIN_MENU_AUDIO.play(Double.parseDouble(getInitData().get(\"SFXVol\")));\n }",
"@Override\n\tpublic void addInformation(ItemStack is, EntityPlayer player, List l, boolean b){\n\t\tl.add(\"This staff is magical!\");\n\t}",
"@Override\n\tpublic void onHit(WorldObj obj, Items item) {\n\t\t\n\t\tcounter++;\n\t}",
"public void OnPlayer(Joueur joueur);",
"public void AddItemsToRecyclerView()\n {\n source = new Vector();\n source.add(\"排班\");\n source.add(\"加班\");\n source.add(\"打卡\");\n source.add(\"請假\");\n source.add(\"文件\");\n source.add(\"訂餐\");\n }",
"@Override\r\n\t@SuppressWarnings(\"deprecation\")\r\n\tpublic void raiseEvent(Event e) {\r\n\t\tPlayer p = ((PlayerInteractEvent) e).getPlayer();\r\n\t\tPlayerStats stats = plugin.getStats(p);\r\n\t\tif (stats.subtractmoney(cost)) {\r\n\t\t\tif (!items.isEmpty()) {\r\n\t\t\t\tLinkedList<ItemStack> givenItems = new LinkedList<ItemStack>();\r\n\t\t\t\tfor (ItemStack item : items.getItemStacks()) {\r\n\t\t\t\t\tgivenItems.add(item);\r\n\t\t\t\t\tHashMap<Integer, ItemStack> failed = p.getInventory().addItem(item);\r\n\r\n\t\t\t\t\tif (failed != null && failed.size() > 0) {\r\n\t\t\t\t\t\t// the inventory may be full\r\n\t\t\t\t\t\tTribu.messagePlayer(p, (plugin.getLocale(\"Message.UnableToGiveYouThatItem\")),ChatColor.RED);\r\n\t\t\t\t\t\tstats.addMoney(cost);\r\n\t\t\t\t\t\tfor (ItemStack i : givenItems)\r\n\t\t\t\t\t\t\tp.getInventory().remove(i);\r\n\t\t\t\t\t\tgivenItems = null;\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\tp.updateInventory();\r\n\t\t\t\t// Alright\r\n\t\t\t\tTribu.messagePlayer(p,String.format(plugin.getLocale(\"Message.PurchaseSuccessfulMoney\"), String.valueOf(stats.getMoney())),ChatColor.GREEN);\r\n\t\t\t} else {\r\n\t\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.UnknownItem\"),ChatColor.RED);\r\n\t\t\t\tstats.addMoney(cost);\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\tTribu.messagePlayer(p,plugin.getLocale(\"Message.YouDontHaveEnoughMoney\"),ChatColor.RED);\r\n\t\t}\r\n\r\n\t}"
] | [
"0.6555848",
"0.63781136",
"0.63334924",
"0.62939274",
"0.62552524",
"0.6251893",
"0.62455195",
"0.61943275",
"0.6172041",
"0.6156793",
"0.6153574",
"0.61478865",
"0.61436313",
"0.61309475",
"0.6121933",
"0.61109364",
"0.6084538",
"0.6080808",
"0.60770845",
"0.6070515",
"0.6065313",
"0.605619",
"0.6041806",
"0.6027905",
"0.6017177",
"0.6004536",
"0.5997919",
"0.59889793",
"0.5958993",
"0.59576255",
"0.59570056",
"0.5951694",
"0.5951604",
"0.59482616",
"0.5945473",
"0.59362966",
"0.5923046",
"0.5912846",
"0.591271",
"0.5910592",
"0.59043777",
"0.58979064",
"0.58882487",
"0.5882876",
"0.5863247",
"0.58606964",
"0.58604413",
"0.58591646",
"0.58520037",
"0.5847472",
"0.58395165",
"0.58273673",
"0.58172464",
"0.5811628",
"0.5802285",
"0.57984465",
"0.5798041",
"0.57884353",
"0.5784114",
"0.5767761",
"0.5761098",
"0.57604176",
"0.5759865",
"0.5759865",
"0.57596815",
"0.575965",
"0.5754788",
"0.5747573",
"0.5742189",
"0.57285035",
"0.5724132",
"0.5722077",
"0.5721266",
"0.571999",
"0.5718999",
"0.57185835",
"0.5718159",
"0.5712858",
"0.57126456",
"0.5709776",
"0.5705813",
"0.57035697",
"0.56908894",
"0.5688631",
"0.5686244",
"0.56830174",
"0.56806225",
"0.56802166",
"0.5678928",
"0.56768894",
"0.56732446",
"0.56732446",
"0.56710976",
"0.5670112",
"0.56685805",
"0.56678355",
"0.56652164",
"0.56565493",
"0.5651356",
"0.56464213",
"0.5646345"
] | 0.0 | -1 |
reads all users and applies the filter | private void readUsers(String filter) {
Filter userFilter = Filter.createORFilter(
Filter.createSubAnyFilter("cn", filter),
Filter.createSubAnyFilter("sn", filter),
Filter.createSubAnyFilter("givenname", filter)
);
SearchResult searchResult = OpenLDAP.searchUser(userFilter);
for (int i = 0; i < searchResult.getEntryCount(); i++) {
SearchResultEntry entry = searchResult.getSearchEntries().get(i);
User user = new User();
user.setDistinguishedName(entry.getDN());
user.setUsername(entry.getAttributeValue("cn"));
user.setFirstname(entry.getAttributeValue("givenname"));
user.setLastname(entry.getAttributeValue("sn"));
user.setEmail(entry.getAttributeValue("mail"));
user.setMobile(entry.getAttributeValue("mobile"));
getUsers().put(user.getUsername(), user);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void filterUsers(FilterParameters f) {\n // query users to find appropriate matches and send them a chat request\n Database.getInstance()\n .sendRequestsToMatches(f.getKind(), f.getGender(), f.getReligion(), f.getLanguages()\n , f.getLower_bound(), f.getUpper_bound() /*, possibles_list, adapter*/);\n\n //sent messages to all - now we wait for response\n new Timer().schedule(new StaffSearch(), 30000); //send the staff a request in 30 seconds\n new Timer().schedule(new AbortSearch(), 60000); //abort the search in 60 seconds\n }",
"public void getAllUsers() {\n\t\t\n\t}",
"@Override\n\tpublic Collection<Users> read() {\n\t\treturn userDAO.readAll();\n\t}",
"@Override\n\tpublic ArrayList<User> searchUsers() {\n\t\treturn userDao.searchUsers();\n\t}",
"public List getAllUsers();",
"private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}",
"private void queryUsers(final String searchTerm) {\n allUsers.clear();\n ParseQuery<ParseUser> query = ParseUser.getQuery();\n query.findInBackground(new FindCallback<ParseUser>() {\n public void done(List<ParseUser> users, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"issue loading users from parse\" + e.getMessage());\n return;\n }\n\n allUsers.addAll(filterUsers(users, searchTerm));\n adapter.notifyDataSetChanged();\n }\n });\n }",
"@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}",
"public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;",
"Iterable<User> getAllUsers();",
"@Override\r\n\tpublic List<AccountDTO> getUserByFilter(UserFilter userFilter) {\n\t\treturn accountDao.getUserByFilter(userFilter);\r\n\t}",
"@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }",
"@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}",
"public List<User> getAllUsers();",
"List<User> fetchAllUSers();",
"@Override\n\tpublic List<User> getAllUsers() {\n\t\tlog.info(\"get all users!\");\n\t\treturn userRepository.findAll();\n\t}",
"@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}",
"List<User> getAllUsers();",
"List<User> getAllUsers();",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}",
"@GET(\"users\")\n Call<PageResourceUserBaseResource> getUsers(\n @retrofit2.http.Query(\"filter_displayname\") String filterDisplayname, @retrofit2.http.Query(\"filter_email\") String filterEmail, @retrofit2.http.Query(\"filter_firstname\") String filterFirstname, @retrofit2.http.Query(\"filter_fullname\") String filterFullname, @retrofit2.http.Query(\"filter_lastname\") String filterLastname, @retrofit2.http.Query(\"filter_username\") String filterUsername, @retrofit2.http.Query(\"filter_tag\") String filterTag, @retrofit2.http.Query(\"filter_group\") String filterGroup, @retrofit2.http.Query(\"filter_role\") String filterRole, @retrofit2.http.Query(\"filter_last_activity\") String filterLastActivity, @retrofit2.http.Query(\"filter_id_list\") String filterIdList, @retrofit2.http.Query(\"filter_search\") String filterSearch, @retrofit2.http.Query(\"size\") Integer size, @retrofit2.http.Query(\"page\") Integer page, @retrofit2.http.Query(\"order\") String order\n );",
"List<User> loadAll();",
"Collection<GetUserDto> getAllUsers();",
"UserFilterResult find(UserFilterRequest request);",
"public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;",
"protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}",
"public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}",
"@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}",
"@Override\n protected Collection<User> doInBackground(Void... params) {\n if(name.equals(\"\"))\n return new ArrayList<User>();\n return client.searchUsers(name, isPro, -1);\n }",
"public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }",
"@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}",
"public org.eclipse.stardust.engine.api.query.Users\n getAllUsers(org.eclipse.stardust.engine.api.query.UserQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}",
"public List<User> getAllUsers() throws ReadException {\n LOGGER.log(Level.INFO, \"Metodo getAllUsers de la clase AbstractUserFacade\");\n try {\n return getEntityManager().createNamedQuery(\"findAllUsers\").getResultList();\n } catch (Exception e) {\n throw new ReadException(\"Error when trying to get all Users\");\n }\n }",
"public void ShowAllUsers()\r\n {\r\n userList.forEach((s) -> { System.out.println(s); });\r\n }",
"protected void refreshAllUsers() {}",
"abstract ArrayList<User> getAllUsers();",
"@RequestMapping(value = \"/users\", method = RequestMethod.GET)\n @PreAuthorize(\"hasPermission(0, 'user', 'READ')\")\n public ResponseEntity<?> listAll(Pageable pagination, UserFilter filter, BindingResult result) {\n return super.listAll(pagination, filter, result);\n }",
"@Override\n public ObservableList<User> getAllUsers() {\n return controller.getAllUsers();\n }",
"public List<User> getSpecificUsers(String searchQuery) {\n logger.info(\"Currently in method 'getSpecificUsers()'.\");\n Database database = Database.getInstance();\n Connection connection = null;\n List<User> specificUsers = new ArrayList<User>();\n String sql = \"SELECT * FROM users WHERE id LIKE '%\" + searchQuery +\n \"%' OR first_name LIKE '%\" + searchQuery +\n \"%' or last_name LIKE '%\" + searchQuery +\n \"%' or date_of_birth LIKE '%\" + searchQuery + \"%'\";\n\n try {\n database.connect();\n connection = database.getConnection();\n Statement selectStatement = connection.createStatement();\n ResultSet results = selectStatement.executeQuery(sql);\n while (results.next()) {\n User employee = createUserFromResults(results);\n specificUsers.add(employee);\n }\n database.disconnect();\n } catch (SQLException e) {\n logger.error(\"Encountered an SQLException: \", e);\n } catch (Exception e) {\n logger.error(\"Encountered an Exception: \", e);\n }\n return specificUsers;\n }",
"public List<User> getAllUsers(){\n myUsers = loginDAO.getAllUsers();\n return myUsers;\n }",
"@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}",
"@GetMapping(path=\"/all\")\n\tpublic @ResponseBody Iterable<User> getAllUsers() {\n\t\t// This returns a JSON or XML with the users\n\t\treturn userRepository.findAll();\n\t}",
"@Override\n\tpublic ArrayList<User> findAll() {\n\t\t\n\t\treturn userDao.querydAll();\n\t}",
"@GetMapping(path=\"/users\")\r\n\tpublic MappingJacksonValue getAllUsers() {\r\n\t\t\r\n\t\tList<AppUser> appUserList = appUserDaoService.getAllUsers();\r\n\t\t\r\n \t\tMappingJacksonValue mapping = new MappingJacksonValue(appUserList);\r\n \t\tmapping.setFilters(this.filters);\r\n\t\t\r\n\t\treturn mapping;\r\n\t}",
"public List<User> allUserRecords() {\n\t\tSystem.out.println(\"Calling getAllUserRecords() Method To Fetch Users Record\");\t\n\t\tList<User> userList = userDAO.listUser();\n\t\treturn userList;\n\t}",
"@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}",
"public List getUsers(User user);",
"@Override\n\tpublic List<User> findUserByCondition(UserQuery query) throws Exception {\n\t\treturn userDao.findUserByCondition(query);\n\t}",
"@Override\n @ScanConsistency(query = QueryScanConsistency.REQUEST_PLUS)\n List<User> findAll();",
"List<UserDTO> getAllUsers();",
"private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }",
"public List<User> searchUser() {\n String idUserQuery = (id == null) ? \"'%'\" : Integer.toString(id);\n String firstNameQuery = (\"\".equals(firstName) || \" \".equals(firstName)) ? \"'%'\" : \"'%\" + firstName + \"%'\";\n String lastNameQuery = (\"\".equals(lastName) || \" \".equals(lastName)) ? \"'%'\" : \"'%\" + lastName + \"%'\";\n String emailQuery = (\"\".equals(email) || \" \".equals(email)) ? \"'%'\" : \"'%\" + email + \"%'\";\n String idCityQuery = Integer.toString(idCity);\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"select * from users where id_user like \" + idUserQuery;\n query += \" and first_name like \" + firstNameQuery;\n query += \" and last_name like \" + lastNameQuery;\n query += \" and email like \" + emailQuery;\n query += \" and id_city=\" + idCityQuery;\n ResultSet rs = stmt.executeQuery(query);\n allUsers = new ArrayList<User>();\n while (rs.next()) {\n User user = new User();\n user.setId(rs.getInt(\"id_user\"));\n user.setFirstName(rs.getString(\"first_name\"));\n user.setLastName(rs.getString(\"last_name\"));\n user.setPhoneNumber(rs.getString(\"phone_number\"));\n user.setEmail(rs.getString(\"email\"));\n user.setAddress(rs.getString(\"address\"));\n user.setIdCity(rs.getInt(\"id_city\"));\n allUsers.add(user);\n renderUserTable = true;\n }\n if (allUsers.size() == 0) {\n FacesContext context = FacesContext.getCurrentInstance();\n context.getExternalContext().getFlash().setKeepMessages(true);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"User not found\", null);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n return null;\n }",
"public List<User> getAllUsers(){\n return userRepository.findAll();\n }",
"List<UserDisplayDto> getAllUsers();",
"@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"@GetMapping(\"/allusers\")\n\t@Secured({CommonConstants.ROLE_EMPLOYEE,CommonConstants.ROLE_ADMIN})\n\tpublic ResponseEntity<List<UserEntity>> fetchUsers(){\n\t\treturn new ResponseEntity<List<UserEntity>>(this.service.findAll(), HttpStatus.OK);\n\t}",
"private static void addUserFilters() {\n List<FiltersByLocation> filtersByLocations=new ArrayList<>();\n List<String> listOfFilterNamesAlreadyAddedUnModified=HealthDataFilter.returnAllFilterNames();\n List<String> listOfFilterNamesAlreadyAdded=new ArrayList<>(listOfFilterNamesAlreadyAddedUnModified);\n\n Set <String> set1=new HashSet<>();\n set1.add(\"\");\n\n String whereForZipFilter1 = createWhereForZipFilter((HashSet<String>) set1);\n\n if (!listOfFilterNamesAlreadyAdded.contains(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME)){\n filtersByLocations.add(new FiltersByLocation(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME ,whereForZipFilter1));\n listOfFilterNamesAlreadyAdded.add(AppConstant.CURRENT_ZIP_CODE_FILTER_NAME);\n }\n\n Map<String, ?> userZipCodeFilters = PreferenceUtility.getUserZipCodeFilters();\n\n for (Map.Entry<String, ?> entry : userZipCodeFilters.entrySet()) {\n //Upper case\n String filterName=entry.getKey().substring(AppConstant.USER_PREF_ZIP_FILTER_PREFIX.length()).toUpperCase();\n String whereForZipFilter = createWhereForZipFilter((HashSet<String>) entry.getValue());\n if (!listOfFilterNamesAlreadyAdded.contains(filterName)){\n filtersByLocations.add(new FiltersByLocation(filterName,whereForZipFilter));\n }\n }\n }",
"@Override\n\tpublic List<User> findAll() {\n\t\treturn this.userMapper.findAll();\n\t}",
"@Override\n\tpublic int findAllUser()throws Exception {\n\t\treturn userMapper.findAllUser();\n\t}",
"List<User> loadActiveUsers(User user);",
"@Override\n public List<UsersDto> findAll() {\n\n log.info(\"!!!message by DefaultUserService, method findAll!!!\");\n\n //Блок заменяющий в ответе клиенту каждое значение поля Email на строку \"Information is not available\".\n //Если попытаться написать этот блок через Stream API, то выйдет не сильно короче, но читаемость кода для меня при этом становится как \"квадратное колесо\".\n //Stream API нормально пишется и читается, когда работает с информацией 1-го уровня вложенности, а не 2-го/3/4 и т.д. (переменными классов, которые в свою очередь находятся в коллекциях).\n //А именно с информацией 2-го и т.д. уровнями в 90% случаев прийдется работать (с полями сущностей).\n List<UsersDto> usersDtoList = new ArrayList<>();\n List<Users> usersList = usersRepository.findAll();\n for (Users user : usersList) {\n UsersDto usersDto = usersConverter.fromUsersToUsersDto(user);\n usersDto.setEmail(\"Information is not available\");\n usersDtoList.add(usersDto);\n }\n return usersDtoList;\n\n //Блок отправляющий клиенту всю информацию без изменений\n// return usersRepository.findAll()\n// .stream()\n// .map(x -> usersConverter.fromUsersToUsersDto(x))\n// .collect(Collectors.toList());\n }",
"@Override\r\n\tpublic List<User> findAllUsers() {\n\t\treturn userDAO.findAllUsers();\r\n\t}",
"public List<EOSUser> listUsers(List<EOSState> states, int limit, int offset);",
"List<KingdomUser> getAllUsers();",
"private void requestUsers(){\n if(mIsLoading)\n return;\n\n mIsLoading = true;\n UserManager.getsInstance().requestUsers(StackExchangeSite.STACK_OVERFLOW,100);\n }",
"@Override\n\tpublic List<UserEntity> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}",
"public List<User> listAll() throws Exception;",
"private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }",
"@Override\n public Users getUsers() throws UserException {\n Users users = new Users();\n log.debug(\"getUsers\");\n User user = null;\n ResultSet result;\n Connection conn = null;\n PreparedStatement stm = null;\n try {\n conn = provider.getConnection();\n\n stm = conn.prepareStatement(GET_ALL_USERS);\n result = stm.executeQuery();\n\n while (result.next()) {\n user = buildUserFromResult(result);\n log.debug(\"User found {}\", user);\n users.add((DataUser) user);\n }\n\n } catch (SQLException e) {\n e.printStackTrace();\n throw new UserException(e.getMessage());\n\n } finally {\n try {\n stm.close();\n conn.close();\n } catch (Exception e) {\n\n e.printStackTrace();\n }\n }\n return users;\n }",
"private static void readUserListFromFile() {\n\t\tJSONParser parser = new JSONParser();\n\n\t\ttry (Reader reader = new FileReader(\"users.json\")) {\n\n\t\t\tJSONArray userListJSON = (JSONArray) parser.parse(reader);\n\n\t\t\tfor (int i = 0 ; i < userListJSON.size(); i++) {\n\t\t\t\tJSONObject user = (JSONObject) userListJSON.get(i);\n\t\t\t\tString name = (String) user.get(\"name\");\n\t\t\t\tString surname = (String) user.get(\"surname\");\n\t\t\t\tString username = (String) user.get(\"username\");\n\t\t\t\tString password = (String) user.get(\"password\");\n\t\t\t\tString account = (String) user.get(\"account\");\n\n\t\t\t\tif(account.equals(\"employee\")) {\n\t\t\t\t\tMain.userList.add(new Employee(username, name, surname, password));\n\t\t\t\t} else {\n\t\t\t\t\tMain.userList.add(new Customer(username, name, surname, password));\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"com.heroiclabs.nakama.api.User getUsers(int index);",
"@GetMapping(path=\"/all\",produces = MediaType.APPLICATION_JSON_VALUE)\r\n public @ResponseBody\r\n Iterable<UserEntity> getAllUsers() {\n return userService.getAllUsers();\r\n }",
"public List<TbUser> getAllUsers() {\n return userRepository.findAll();\n }",
"public List<UserModel> getAllUsers()\n {\n List<UserModel> userModels =new ArrayList<>();\n //user.findAll().forEach(topics::add);\n for(UserModel userModel : userRepository.findAll())\n {\n userModels.add(userModel);\n }\n return userModels;\n }",
"List<User> getUsers();",
"List<User> getUsers();",
"private static void initUsers() {\n\t\tusers = new ArrayList<User>();\n\n\t\tusers.add(new User(\"Majo\", \"abc\", true));\n\t\tusers.add(new User(\"Alvaro\", \"def\", false));\n\t\tusers.add(new User(\"Luis\", \"ghi\", true));\n\t\tusers.add(new User(\"David\", \"jkl\", false));\n\t\tusers.add(new User(\"Juan\", \"mno\", true));\n\t\tusers.add(new User(\"Javi\", \"pqr\", false));\n\t}",
"@Override\n\tpublic List<User> getAll() {\n\t\treturn userDao.getAll();\n\t}",
"private List<ParseUser> filterUsers(List<ParseUser> pUsers, String searchTerm) {\n List<ParseUser> filteredUsers = new ArrayList<>();\n for (ParseUser pU : pUsers) {\n User u = new User(pU);\n if (u.getName().toLowerCase().contains(searchTerm.toLowerCase())) {\n filteredUsers.add(pU);\n }\n }\n return filteredUsers;\n }",
"@Override\n\tpublic List<User> selectall() {\n\t\treturn userMapper.selectall();\n\t}",
"@Override\n public List<User> selectAllUsers() {\n\n List<User> userList = new ArrayList<>();\n\n try (Connection connection = DriverManager.getConnection(URL, USERNAME, PASSWORD)) {\n\n String sql = \"SELECT * FROM ers_users\";\n\n PreparedStatement ps = connection.prepareStatement(sql);\n\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n\n userList.add(\n new User(\n rs.getInt(1)\n , rs.getString(2)\n , rs.getString(3)\n , rs.getString(4)\n , rs.getString(5)\n , rs.getString(6)\n , rs.getInt(7)\n )\n );\n }\n }\n\n catch (SQLException e) {\n\n e.printStackTrace();\n }\n\n return userList;\n }",
"public void loadUsers(String username, String mainUsername) {\n\n UserBasicService userBasicService =\n GitHubServiceGenerator.createService(UserBasicService.class);\n Call<List<UserBasic>> callUsers = userBasicService.getUsers(this.authHead,\n this.mainUsername, \"following\");\n try {\n Response<List<UserBasic>> listResponse = callUsers.execute();\n if (listResponse.isSuccessful()) {\n this.mainUserFollowing = listResponse.body();\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n callUsers = userBasicService.getUsers(this.authHead, username, this.pageType);\n try {\n Response<List<UserBasic>> listResponse = callUsers.execute();\n if (listResponse.isSuccessful()) {\n this.users = listResponse.body();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public List<Users> getAllUsers() {\r\n\t\t// return usDao.findAll();\r\n\t\treturn usDao.getAllUsers();\r\n\t}",
"@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}",
"public void loadUsers() {\n CustomUser userOne = new CustomUser();\n userOne.setUsername(SpringJPABootstrap.MWESTON);\n userOne.setPassword(SpringJPABootstrap.PASSWORD);\n\n CustomUser userTwo = new CustomUser();\n userTwo.setUsername(SpringJPABootstrap.TEST_ACCOUNT_USER_NAME);\n userTwo.setPassword(SpringJPABootstrap.TEST_ACCOUNT_PASSWORD);\n\n String firstUserName = userOne.getUsername();\n\n /*\n * for now I am not checking for a second user because there is no delete method being\n * used so if the first user is created the second user is expected to be created. this\n * could cause a bug later on but I will add in more logic if that is the case in a\n * future build.\n */\n if(userService.isUserNameTaken(firstUserName)) {\n log.debug(firstUserName + \" is already taken\");\n return ;\n }\n userService.save(userOne);\n userService.save(userTwo);\n\n log.debug(\"Test user accounts have been loaded!\");\n }",
"@RequestMapping(value = \"/user\", method = RequestMethod.GET)\n @PreAuthorize(\"hasRole('ADMIN')\")\n public ResponseEntity<List<UserAccount>> listAllUsers() {\n List<UserAccount> users = userAccountDetailsService.findAllUsers();\n if (users.isEmpty()) {\n return new ResponseEntity<List<UserAccount>>(HttpStatus.NO_CONTENT);//You many decide to return HttpStatus.NOT_FOUND\n }\n return new ResponseEntity<List<UserAccount>>(users, HttpStatus.OK);\n }",
"public List<UserModel> getAllUsers() {\n List<UserModel> totalUsers = userRepository.findAll();\n URole role = uRoleRepository.findByName(\"ROLE_ADMIN\");\n return totalUsers\n .stream()\n .filter(userModel -> !userModel.getRoles().contains(role))\n .collect(Collectors.toList());\n }",
"@Override\r\n\tpublic User getAllUser() {\n\t\tList<User> list=null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT * FROM USER\";\r\n\t\t\treturn qr.query(sql, new BeanHandler<User>(User.class));\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic ArrayList<UserClass> readUsers(String address) {\n\t\treturn null;\r\n\t}",
"@Test\n\tvoid findAllAllFiltersAllRights() {\n\n\t\tfinal TableItem<UserOrgVo> tableItem = resource.findAll(\"ing\", \"dig rha\", \"iRsT\", newUriInfoAsc(\"id\"));\n\t\tAssertions.assertEquals(2, tableItem.getRecordsTotal());\n\t\tAssertions.assertEquals(2, tableItem.getRecordsFiltered());\n\n\t\t// Check the users\n\t\tfinal UserOrgVo user = tableItem.getData().get(0);\n\t\tAssertions.assertEquals(\"fdoe2\", user.getId());\n\t\tAssertions.assertEquals(\"jdoe5\", tableItem.getData().get(1).getId());\n\n\t\t// Check the other attributes\n\t\tAssertions.assertEquals(\"ing\", user.getCompany());\n\t\tAssertions.assertEquals(\"First2\", user.getFirstName());\n\t\tAssertions.assertEquals(\"Doe2\", user.getLastName());\n\t\tAssertions.assertEquals(\"first2.doe2@ing.fr\", user.getMails().get(0));\n\t\tAssertions.assertTrue(user.isCanWrite());\n\t\tfinal List<GroupVo> groups = new ArrayList<>(user.getGroups());\n\t\tAssertions.assertEquals(2, groups.size());\n\t\tAssertions.assertEquals(\"Biz Agency\", groups.get(0).getName());\n\t\tAssertions.assertEquals(\"DIG RHA\", groups.get(1).getName());\n\t}",
"@Override\r\n\tpublic void viewAllAccountsAllUsers() {\n\t\tas.getAllAccountsAllUsers();\r\n\t}",
"@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}",
"@Override\n\tpublic List<User> selectAllUser() {\n\t\tList<User> users = null;\n\t\ttry {\n\t\t\tusers = client.queryForList(\"selectAllUser\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn users;\n\n\t}",
"@Override\r\n\tpublic List<User> getAll() {\n\t\treturn users;\r\n\t}",
"public List<User> selectAllUser() {\n\t\treturn userMapper.selectAllUser();\n\t}",
"public List<User> getUsersStartingWith(String startsWith, Boolean enabled, int offset, int length) throws UserManagementException;",
"public ArrayList<User> getAllUsers() {\n return profile.getAllUsers();\n }"
] | [
"0.68382746",
"0.67677927",
"0.6647386",
"0.659719",
"0.65643346",
"0.65424067",
"0.6473598",
"0.6437898",
"0.6423328",
"0.6410908",
"0.639261",
"0.6377247",
"0.63568336",
"0.627686",
"0.62737536",
"0.6252497",
"0.62452286",
"0.6236599",
"0.6235531",
"0.6235531",
"0.62154025",
"0.6210014",
"0.62099004",
"0.6208893",
"0.61966604",
"0.6192447",
"0.6190443",
"0.6190013",
"0.6178872",
"0.61742884",
"0.61686677",
"0.6146159",
"0.61348504",
"0.61185056",
"0.6092834",
"0.6083216",
"0.6074173",
"0.6072758",
"0.60705245",
"0.606619",
"0.60626787",
"0.6060504",
"0.6043708",
"0.60391265",
"0.6037003",
"0.603459",
"0.60334283",
"0.6032379",
"0.603067",
"0.60299194",
"0.6027221",
"0.6025206",
"0.6022951",
"0.6017417",
"0.60117835",
"0.6011312",
"0.60087687",
"0.6007803",
"0.6006076",
"0.6005987",
"0.6004776",
"0.60002023",
"0.59877706",
"0.59869325",
"0.59814185",
"0.59758055",
"0.59721017",
"0.59719783",
"0.59616864",
"0.5958616",
"0.5954361",
"0.5950328",
"0.59497356",
"0.5947985",
"0.5945192",
"0.59436417",
"0.5942208",
"0.59384555",
"0.59384555",
"0.59384465",
"0.5937042",
"0.5936928",
"0.5932906",
"0.5930386",
"0.5923952",
"0.5923512",
"0.5923043",
"0.59211916",
"0.59203655",
"0.5913917",
"0.59093523",
"0.5899915",
"0.58979285",
"0.58887047",
"0.5888174",
"0.5886443",
"0.58862704",
"0.5880215",
"0.5874249",
"0.5867817"
] | 0.7846338 | 0 |
Extracts file name from HTTP header contentdisposition | private String extractFileName(final Part part) {
final String contentDisp = part.getHeader("content-disposition");
final String[] items = contentDisp.split(";");
for (final String s : items) {
if (s.trim().startsWith("filename")) {
return s.substring(s.indexOf("=") + 2, s.length()-1);
}
}
return "";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length()-1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length()-1);\n }\n }\n return \"\";\n }",
"private String extractFileName(Part part) {\n String contentDisp = part.getHeader(\"content-disposition\");\n String[] items = contentDisp.split(\";\");\n for (String s : items) {\n if (s.trim().startsWith(\"filename\")) {\n return s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n }\n }\n return \"\";\n }",
"private String extractFileName(Part part) {\n\nString contentDisp = part.getHeader(\"content-disposition\");\n\nString[] items = contentDisp.split(\";\");\n\nfor (String s : items) {\n\nif (s.trim().startsWith(\"filename\")) {\n\nreturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\n}\n\n}\n\nreturn \"\";\n\n}",
"private String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public String extractFileName(Part part) {\r\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\r\n\t\tString[] items = contentDisp.split(\";\");\r\n\t\tfor (String s : items) {\r\n\t\t\tif (s.trim().startsWith(\"filename\")) {\r\n\t\t\t\treturn s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn \"\";\r\n\t}",
"private String extractFileName(Part part) {\n\t String contentDisp = part.getHeader(\"content-disposition\");\r\n\t String[] items = contentDisp.split(\";\");\r\n\t for (String s : items) {\r\n\t if (s.trim().startsWith(\"filename\")) {\r\n\t // C:\\file1.zip\r\n\t // C:\\Note\\file2.zip\r\n\t String clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\r\n\t clientFileName = clientFileName.replace(\"\\\\\", \"/\");\r\n\t int i = clientFileName.lastIndexOf('/');\r\n\t // file1.zip\r\n\t // file2.zip\r\n\t return clientFileName.substring(i + 1);\r\n\t }\r\n\t }\r\n\t return null;\r\n\t }",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private String extractFileName(Part part) {\n\t\tString contentDisp = part.getHeader(\"content-disposition\");\n\t\tString[] items = contentDisp.split(\";\");\n\t\tfor (String s : items) {\n\t\t\tif (s.trim().startsWith(\"filename\")) {\n\t\t\t\t// C:\\file1.zip\n\t\t\t\t// C:\\Note\\file2.zip\n\t\t\t\tString clientFileName = s.substring(s.indexOf(\"=\") + 2, s.length() - 1);\n\t\t\t\tclientFileName = clientFileName.replace(\"\\\\\", \"/\");\n\t\t\t\tint i = clientFileName.lastIndexOf('/');\n\t\t\t\t// file1.zip\n\t\t\t\t// file2.zip\n\t\t\t\treturn clientFileName.substring(i + 1);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public static String getFileName(Part part) {\n final String partHeader = part.getHeader(\"content-disposition\");\n for (String content : part.getHeader(\"content-disposition\").split(\";\")) {\n if (content.trim().startsWith(\"filename\")) {\n return content.substring(content.indexOf('=') + 1).trim()\n .replace(\"\\\"\", \"\");\n }\n }\n return \"\";\n }",
"private void getFileName() {\n\t\tHeader contentHeader = response.getFirstHeader(\"Content-Disposition\");\n\t\tthis.filename = null;\n\t\tif (contentHeader != null) {\n\t\t\tHeaderElement[] values = contentHeader.getElements();\n\t\t\tif (values.length == 1) {\n\t\t\t\tNameValuePair param = values[0].getParameterByName(\"filename\");\n\t\t\t\tif (param != null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfilename = param.getValue();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (this.filename == null) {\n\t\t\tthis.filename = url.substring(url.lastIndexOf(\"/\") + 1);\n\t\t}\n\t}",
"String getContentDisposition();",
"public static String getFilename(String pathfilename){\r\n\t\tString nameOfTheFile=pathfilename;\r\n\t\tboolean contentDisposition = false;\r\n\t\tString fileName;\r\n\t\tString parts[];\r\n\t\ttry {\r\n\t\t\tURL urlObj = new URL(pathfilename);\r\n\t\t\tURLConnection con = urlObj.openConnection();\r\n\t\t\tif(con.getHeaderField(\"Content-Disposition\")!=null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tparts = con.getHeaderField(\"Content-Disposition\").split(\"filename=\");\r\n\t\t\t\t\tnameOfTheFile = parts[1].replace(\"\\\"\", \"\");\r\n\t\t\t\t\tcontentDisposition=true;\r\n\t\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t\t}\r\n\t\t\tif (contentDisposition==false){\r\n\t\t\t\t\tString urlPath = urlObj.getPath();\r\n\t\t\t\t\tif (!urlPath.endsWith(\"/\") && !urlPath.isEmpty()) {\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')+1).split(\":\")[0].trim();\r\n\t\t\t\t\t} else if (urlPath.endsWith(\"/\") && urlPath.length()>21){\r\n\t\t\t\t\t\tfileName = urlPath.substring(urlPath.lastIndexOf('/')-20).split(\"/\")[0].split(\":\")[0].trim();\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tfileName = \"index\" + urlObj.getHost();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString ext = con.getContentType();\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\text = ext.substring(ext.lastIndexOf('/')+1).split(\";\")[0];\r\n\t\t\t\t\t} catch (Exception e) {ext = null;}\r\n\t\t\t\t\tif(ext!=null && !ext.equals(\"unknown\")) {\r\n\t\t\t\t\t\tif (!fileName.matches(\"[a-zA-Z0-9]*[.][a-zA-Z]+\")) {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName+\".\"+ext;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnameOfTheFile = fileName;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e) {e.printStackTrace();}\r\n\t\treturn nameOfTheFile;\r\n\t}",
"public String getFileName(String request) {\n\t\tString fileName = request.substring(request.indexOf('/') + 1, request.indexOf(\" HTTP\", (request.indexOf('/'))));\n\t\tSystem.out.println(\"Filename is: \" + fileName);\n\n\t\treturn fileName;\n\t}",
"private String createHeadersAsDisposition()\r\n {\r\n StringBuffer buff = new StringBuffer();\r\n boolean first = true;\r\n for (Iterator iterator = getHeaders().entrySet().iterator(); iterator.hasNext();)\r\n {\r\n Map.Entry header = (Map.Entry)iterator.next();\r\n String hName = (String)header.getKey();\r\n if ( !hName.equalsIgnoreCase(AeMimeUtil.CONTENT_TYPE_ATTRIBUTE) )\r\n {\r\n if ( first )\r\n first = false;\r\n else\r\n buff.append(CRLF);\r\n buff.append(hName).append(\": \").append((String)header.getValue()); //$NON-NLS-1$/\r\n }\r\n }\r\n return buff.toString();\r\n }",
"public javax.sip.header.ContentDispositionHeader\n getContentDisposition() {\n return (ContentDispositionHeader)\n this.getHeader(ContentDispositionHeader.NAME);\n }",
"@Override\r\n public String getCustomContentDisposition() {\r\n return FilenameUtils.getName(this.imagePath);\r\n }",
"public String getContentDisposition() {\n return contentdisposition;\n }",
"public String getContentDisposition() {\n return this.contentDisposition;\n }",
"private final String getFileHeader(int index, String bound,\n @SuppressWarnings(\"unused\")\n int chunkPart) throws JUploadException {\n String filenameEncoding = this.uploadPolicy.getFilenameEncoding();\n String mimetype = this.filesToUpload[index].getMimeType();\n String uploadFilename = this.filesToUpload[index]\n .getUploadFilename(index);\n StringBuffer sb = new StringBuffer();\n \n String form = this.uploadPolicy.getFormdata();\n if (null != form)\n sb.append(addFormVariables(bound, form));\n sb.append(addPostVariable(bound, \"mimetype[]\", mimetype));\n sb.append(addPostVariable(bound, \"pathinfo[]\",\n this.filesToUpload[index].getDirectory()));\n sb.append(addPostVariable(bound, \"relpathinfo[]\",\n this.filesToUpload[index].getRelativeDir()));\n \n // boundary.\n sb.append(bound).append(\"\\r\\n\");\n \n // Content-Disposition.\n sb.append(\"Content-Disposition: form-data; name=\\\"\").append(\n this.filesToUpload[index].getUploadName(index)).append(\n \"\\\"; filename=\\\"\");\n if (filenameEncoding == null) {\n sb.append(uploadFilename);\n } else {\n try {\n this.uploadPolicy.displayDebug(\"Encoded filename: \"\n + URLEncoder.encode(uploadFilename, filenameEncoding),\n 99);\n sb.append(URLEncoder.encode(uploadFilename, filenameEncoding));\n } catch (UnsupportedEncodingException e) {\n this.uploadPolicy\n .displayWarn(e.getClass().getName() + \": \"\n + e.getMessage()\n + \" (in UploadFileData.getFileHeader)\");\n sb.append(uploadFilename);\n }\n }\n sb.append(\"\\\"\\r\\n\");\n \n // Line 3: Content-Type.\n sb.append(\"Content-Type: \").append(mimetype).append(\"\\r\\n\");\n \n // An empty line to finish the header.\n sb.append(\"\\r\\n\");\n return sb.toString();\n }",
"public static ContentDisposition parse(final String text) {\n return ContentDispositionHeaderParser.parseContentDisposition(text);\n }",
"java.lang.String getFilename();",
"java.lang.String getFilename();",
"public String getContentDisposition() throws Exception {\r\n if (externalUrl != null) {\r\n AmazonS3URI s3Uri = DirectUtils.getS3Uri(externalUrl);\r\n if (s3Uri != null) {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getS3FileKey(externalUrl) + \"\\\"\";\r\n }\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + DirectUtils.getFileNameFromUrl(externalUrl) + \"\\\"\";\r\n }\r\n\r\n if (contest.getProjectHeader().getProjectCategory().getId() == ContestType.COPILOT_POSTING.getId()) {\r\n // it's copilot posting, append user handle to each file in the copilot posting submission\r\n Resource[] resources = contest.getResources();\r\n long userId = 0;\r\n for (Resource r : resources) {\r\n if (r.getId() == submission.getUpload().getOwner()) {\r\n userId = Long.parseLong(r.getProperty(\"External Reference ID\"));\r\n break;\r\n }\r\n }\r\n return \"attachment; filename=\\\"submission-\" + getUserService().getUserHandle(userId) + \"-\" +\r\n uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n } else {\r\n return \"attachment; filename=\\\"submission-\" + submission.getId() + \"-\" + uploadedFile.getRemoteFileName()\r\n + \"\\\"\";\r\n }\r\n }",
"private String getFileName(String url) {\n // get the begin and end index of name which will be between the\n //last \"/\" and \".\"\n int beginIndex = url.lastIndexOf(\"/\")+1;\n int endIndex = url.lastIndexOf(\".\");\n return url.substring(beginIndex, endIndex);\n \n }",
"String getFileMimeType();",
"public static String findFileExtNameFromHeaders(Header[] headers) {\n\t\tString ext = null;\n\t\ttry {\n\t\t\tfor (Header header : headers) {\n\t\t\t\tString value = header.getValue();\n\t\t\t\tint idx = value.indexOf(\"filename\");\n\t\t\t\tif (idx != -1) {\n\t\t\t\t\tidx = value.indexOf(\"\\\"\", idx);\n\t\t\t\t\tint idx2 = value.indexOf(\"\\\"\", idx + 1);\n\t\t\t\t\tString name = value.substring(idx + 1, idx2);\n\t\t\t\t\tidx = name.lastIndexOf(\".\");\n\t\t\t\t\tif (idx != -1) {\n\t\t\t\t\t\text = name.substring(idx + 1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn ext;\n\t}",
"static String getFileNameFromFileUrl( final String url ) {\n\n\t\tString name = url.substring( url.lastIndexOf('/') + 1 );\n\t\tint index = name.lastIndexOf( '?' );\n\t\tif( index > 0 )\n\t\t\tname = name.substring( 0, index );\n\t\telse if( index == 0 )\n\t\t\tname = name.substring( 1 );\n\n\t\treturn name.replaceAll( \"[^\\\\w.-]\", \"_\" );\n\t}",
"public abstract String[] getMimeHeader(String name);",
"public String getFileNoPath() {\n if (fileType == HTTP) {\n return fileName.substring(fileName.lastIndexOf(\"/\") + 1);\n } else {\n return fileName.substring(fileName.lastIndexOf(File.separator) + 1);\n }\n }",
"public void setContentDisposition\n (ContentDispositionHeader contentDispositionHeader) {\n this.setHeader( contentDispositionHeader);\n \n }",
"public ContentDisposition getContentDisposition() {\n return contentDisposition;\n }",
"@Test\r\n\tpublic void getFileName() {\n\t\tString test = \"form-data; name=\\\"uploadFile\\\"; filename=\\\"james.png\\\"\";\r\n\r\n\t\t/***When***/\r\n\t\tString result = futil.getFileName(test);\r\n\t\t/***Then***/\r\n\t\t//assertEquals(\"sally.png\", result);\r\n\t\tassertEquals(\"james.png\", result);\r\n\r\n\t}",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getFileName();",
"java.lang.String getHeader();",
"String getFilename();",
"String getContentType(String fileExtension);",
"public ShareFileHttpHeaders setContentDisposition(String contentDisposition) {\n this.contentDisposition = contentDisposition;\n return this;\n }",
"private String grabNameFile(String absPath)\n {\n \t\n \t// parse filename from absolute path\n \tString[] delimSlashes = absPath.split(\"/\");\n \tString fn = delimSlashes[delimSlashes.length - 1];\n \tif (fn.substring(0, 5).equals(\"files\"))\n \t{\n \t\tfn = fn.substring(5); // removes \"files\" from the beginning which is prepended by the Android Beam API\n \t}\n \t\n \t// split string based on underscores\n \tString[] result = fn.split(\"_\");\n \t\n \tif (result.length < 3)\n \t{\n \t\t//error, this means first/last name wasn't appended\n \t\treturn null;\n \t}\n \t\n \t// the order of the names is (last,first) when sent by the sender:\n \tmFirstName = result[1];\n \tmLastName = result[0];\n \t\n \treturn fn;\n }",
"private String getPDFFileName(){\r\n String[] split = inputFilePath.split(\"\\\\\\\\\");\r\n\r\n return split[split.length-1].split(\"\\\\.\")[0];\r\n }",
"public String getFileNamingDetails();",
"public String getFileName(Uri uri) {\n String result = null;\n int cut;\n\n String scheme = uri.getScheme();\n if (scheme != null && scheme.equals(\"content\")) {\n //\n // query the URI provider for the file name\n //\n try (Cursor cursor = getContentResolver().query(uri, new String[]{OpenableColumns.DISPLAY_NAME}, null, null, null)) {\n if (cursor != null && cursor.moveToFirst()) {\n result = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));\n }\n }\n }\n if (result != null)\n return result;\n\n result = uri.getPath();\n try {\n assert result != null;\n cut = result.lastIndexOf('/');\n } catch (NullPointerException e) {\n cut = -1;\n }\n if (cut != -1)\n result = result.substring(cut + 1);\n\n return result;\n }",
"public static String createContentDisposition(String value, String filename) {\n try {\n return String.format(\"%s;filename=\\\"%2$s\\\"; filename*=UTF-8''%2$s\", value, encodeURI(filename));\n }\n catch (UnsupportedEncodingException e) {\n throw new FacesException(e);\n }\n }",
"private String getFilename(String path) {\r\n\t\tint slashHere = path.lastIndexOf('/');\r\n\t\tif (slashHere == -1) {\r\n\t\t\treturn path;\r\n\t\t} else {\r\n\t\t\treturn path.substring(slashHere + 1);\r\n\t\t}\r\n\t}",
"public String getFileName() {\n if (url.endsWith(\"/\")) {\n url = url.substring(0, url.length() - 1);\n }\n\n //Replace illegal characters\n String urlFileName = url.replace(\"http://\", \"\");\n urlFileName = urlFileName.replace(\"https://\", \"\");\n urlFileName = urlFileName.replace(\"/\", \"\");\n urlFileName += \".txt\";\n\n return urlFileName;\n }",
"static public String getFileNameFromURL(String url) {\n\n int lastIndexOfSlash = url.lastIndexOf(\"/\");\n\n String fileName = null;\n\n if (lastIndexOfSlash > -1) {\n fileName = url.substring(lastIndexOfSlash, url.length());\n } else {\n fileName = url;\n }\n\n return fileName;\n }",
"java.lang.String getMimeType();",
"java.lang.String getMimeType();",
"private String getFilename() {\r\n\t\treturn (String) txtFlnm.getValue();\r\n\t}",
"private String fileName(ModuleReference mref) {\n URI uri = mref.location().orElse(null);\n if (uri != null) {\n if (uri.getScheme().equalsIgnoreCase(\"file\")) {\n Path file = Path.of(uri);\n return file.getFileName().toString();\n } else {\n return uri.toString();\n }\n } else {\n return \"<unknown>\";\n }\n }",
"public String getFilename();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"String getFileName();",
"private String getFileName(String path)\n\t{\n\t\tFile file = new File(path);\n\t\tString name = file.getName();\n\t\treturn name.replace(\".\", \"_\");\n\t}",
"public ContentDispositionType type() {\n return this.value();\n }",
"public String getContentType() {\n\t\tString ct = header.getContentType();\n\t\treturn Strings.substringBefore(ct, ';');\n\t}",
"String generalFileName(String url);",
"public static String filenamePart(String path) {\n char sep = System.getProperty(\"file.separator\", \"/\").charAt(0);\n int i = path.lastIndexOf(sep);\n return (i < 0)? path : path.substring(i+1);\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n }\n }",
"protected void sendDispositionHeader(OutputStream out) throws IOException\r\n {\r\n String dispositionHeader = createHeadersAsDisposition();\r\n if ( AeUtil.notNullOrEmpty(dispositionHeader) )\r\n out.write(EncodingUtil.getAsciiBytes(dispositionHeader));\r\n }",
"public String getFinalFileName()\r\n\t{\r\n\t\treturn this.getFileName() + this.getFileFormat();\r\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getFileName()\n {\n return getString(\"FileName\");\n }",
"public String GetFileName() {\r\n\treturn fileName;\r\n }",
"private String getFileEx(Uri uri){\n ContentResolver cr=getContentResolver();\n MimeTypeMap mime=MimeTypeMap.getSingleton();\n return mime.getExtensionFromMimeType(cr.getType(uri));\n }",
"public String getFilename() {\n\treturn file.getFilename();\n }",
"private String getArchiveFilename(Publication publication) {\n\t\treturn publication.getName() + \"_\" +\n\t\t\t\tpublication.getType().getDisplayId().charAt( 0 ) +\n\t\t\t\t\"0_Publication.zip\";\n\t}",
"private static String getResultFilename(String pathToFile) {\n\t\tString result = null;\n\t\tPath originalFilename = Paths.get(pathToFile).getFileName();\n\t\tif(originalFilename != null) {\n\t\t\tlogger.debug(\"A file name exists: {}\", originalFilename.toString());\n\t\t\tString[] nameParts = originalFilename.toString().split(\"[.]\");\n\t\t\tlogger.debug(\"The {} detected part(s) of the file name are:\", nameParts.length);\n\t\t\tresult = \"\";\n\t\t\tfor(int i=0; i<nameParts.length-1; i++) {\n\t\t\t\tlogger.debug(\"Part {}: {}\", i+1, nameParts[i]);\n\t\t\t\tresult += nameParts[i];\n\t\t\t}\n\t\t\tlogger.debug(\"Part {}: {}\", nameParts.length, nameParts[nameParts.length-1]);\n\t\t\tresult += \".csv\";\n\t\t}\n\t\treturn result;\n\t}",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFilename() {\n java.lang.Object ref = filename_;\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 filename_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String getFilenameForKey(String key) {\n\t\tint firstHalfLength = key.length() / 2;\n\t\tString localFilename = String.valueOf(key.substring(0, firstHalfLength)\n\t\t\t\t.hashCode());\n\t\tlocalFilename += String.valueOf(key.substring(firstHalfLength)\n\t\t\t\t.hashCode());\n\t\treturn localFilename;\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"private String getFileName(String eingabe) {\n\t\tString[] words = eingabe.split(\" \");\n\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\tif (words[i].equals(\"public\") && i <= words.length) {\n\t\t\t\tif (words[i+1].equals(\"class\") && i+1 <= words.length) {\n\t\t\t\t\treturn words[i+2];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"private HTTPHeaderEntry extractHeader(String headerStr) {\n \n \t\tHTTPHeaderEntry headerEntry = null;\n \t\tString[] each = headerStr.split( \": \" );\n \t\tif ( each[0].equals( HeaderEntry.CONTENT_TYPE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.CONTENT_TYPE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( HeaderEntry.DATE.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( HeaderEntry.DATE, each[1] );\n \t\t}\n \t\telse if ( each[0].equals( ResponseHeaderEntry.CONTENT_LENGTH.toString() ) ) {\n \t\t\theaderEntry = new HTTPHeaderEntry( ResponseHeaderEntry.CONTENT_LENGTH, Integer.parseInt( each[1] ) );\n \t\t}\n \n \t\theader.add( headerEntry );\n \t\treturn headerEntry;\n \t}",
"public final String getFileName() {\n\t\treturn m_info.getFileName();\n\t}",
"@Override\n\tpublic String getContentType(String filename) {\n\t\treturn null;\n\t}",
"public String getFileNameByUrl(String url,String contentType)\n\t{\n\t\t//remove \"http://\"\n\t\turl=url.substring(7);\n\t\t//for type of html||text\n\t\tif(contentType.indexOf(\"html\")!=-1)\n\t\t{\n\t\t\turl=url.replaceAll(\"[\\\\?/:*|<>\\\"]\", \"_\")+\".html\";\n\t\t\treturn url;\n\t\t}\n\t\t//for other type\n\t\telse\n\t\t{\n\t\t\treturn url.replaceAll(\"[\\\\?/:*|<>\\\"]\", \"_\")+\".\"+contentType.substring(contentType.lastIndexOf(\"/\")+1);\n\t\t}\n\t}",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }",
"public java.lang.String getFileName() {\n java.lang.Object ref = fileName_;\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 fileName_ = s;\n return s;\n }\n }"
] | [
"0.83676296",
"0.8355545",
"0.8352466",
"0.8284576",
"0.8276926",
"0.8245582",
"0.80691254",
"0.80658203",
"0.80658203",
"0.7712576",
"0.75882035",
"0.7345139",
"0.6814014",
"0.67860997",
"0.6650416",
"0.64872783",
"0.63520384",
"0.631277",
"0.6156704",
"0.6039019",
"0.5986897",
"0.5886674",
"0.5886674",
"0.5849378",
"0.57903874",
"0.5767104",
"0.5708307",
"0.56776905",
"0.5663763",
"0.5659251",
"0.5652278",
"0.56422544",
"0.5641065",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5619732",
"0.5612517",
"0.5595106",
"0.55717254",
"0.55177057",
"0.55154306",
"0.55126613",
"0.550113",
"0.5469089",
"0.54554427",
"0.5450198",
"0.5429587",
"0.5372443",
"0.53658587",
"0.53658587",
"0.53651285",
"0.5318208",
"0.5310887",
"0.5307272",
"0.5307272",
"0.5307272",
"0.5307272",
"0.5307272",
"0.5305694",
"0.52904546",
"0.5283371",
"0.5272348",
"0.5255083",
"0.523387",
"0.523387",
"0.5226947",
"0.5226916",
"0.52146065",
"0.52146065",
"0.5210406",
"0.5201338",
"0.51809126",
"0.5174672",
"0.51563543",
"0.51536137",
"0.5145551",
"0.5145551",
"0.51390433",
"0.51232064",
"0.51232064",
"0.51232064",
"0.51232064",
"0.51232064",
"0.51232064",
"0.512056",
"0.51204807",
"0.51160705",
"0.5107439",
"0.5104842",
"0.5104748",
"0.5104748",
"0.5104748",
"0.5104748",
"0.5104748"
] | 0.8194779 | 6 |
let subclasses update this directly | public WebStream(String ip, int port, int totalNumPages)
{
this.machineName = ip;
this.port = port;
this.numPagesRequested = totalNumPages;
this.totalNumPagesRetrieved = 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}",
"@Override\n\tpublic void update() {}",
"@Override\n\tpublic void update() {}",
"public void update()\n\t{\n\t\tsuper.update();\n\t}",
"@Override\n public void update() {\n \n }",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() { }",
"@Override\r\n\tpublic void update() {\r\n\t}",
"@Override\r\n\tpublic void update() {\r\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\n public void update() {\n }",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n\tpublic void update() {\n\n\t}",
"@Override\n public void update() {\n }",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\r\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n\tpublic void update() {\n\t}",
"@Override\n public void update()\n {\n\n }",
"@Override\n public void update() {\n\n }",
"protected abstract void update();",
"protected abstract void update();",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\r\n\tpublic void update() {\n\r\n\t}",
"@Override\n\tpublic void update(Instance ins) {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\n\tpublic void update() {\n\t\t\n\t}",
"@Override\r\n public void onUpdate() {\n super.onUpdate();\r\n }",
"@Override\n\tpublic void update() {\n\t\tobj.update();\n\t}",
"protected abstract void update();",
"public void willbeUpdated() {\n\t\t\n\t}",
"@Override\n protected void setServerAccessCreditsSubClass ()\n {\n getEncapsulatedQueue ().setServerAccessCredits (getLastUpdateTime (), getServerAccessCredits ());\n }",
"@Override\r\n\tpublic void updateData() {\n\t\t\r\n\t}",
"public abstract void refreshing();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"public abstract void update();",
"@Override\n protected void updateProperties() {\n }",
"@Override\n public void refresh() {\n }",
"@Override\r\n\tpublic void MemberUpdate() {\n\r\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"@Override\n\tpublic void update(Object o) {\n\n\t}",
"abstract public void update();",
"@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}",
"public void update(){}",
"public void update(){}",
"public void update() {\n \t\tthrow new UnsupportedOperationException(\"Not implemented at this level\");\n \t}",
"@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }",
"public abstract void update ();",
"@Override\r\n\tpublic void update(Object object) {\n\t\t\r\n\t}",
"protected abstract void updateImpl(M newValue);",
"@Override\n\tpublic void refresh() {\n\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\n\tpublic void refresh() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }",
"@Override\n public void rootRPClassUpdate(RPObject entity) {\n }",
"@Override\n\t\tpublic void onChange(boolean selfChange) {\n\t\t\tsuper.onChange(selfChange);\n\t\t}",
"@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void Update() {\n\t\t\r\n\t}",
"abstract void refresh();",
"@Override\r\n\tpublic void uniqueUpdate() {\n\r\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void updateByObject()\r\n\t{\n\t}",
"public void singleUpdate() {\n\t\ttry {\n\t\t\tthis.updateBy = CacheUtils.getUser().username;\n\t\t} catch (Exception e) {\n\t\t\tif (! getClass().equals(GlobalCurrencyRate.class)) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tthis.updateBy = \"super\";\n\t\t}\n\t\tthis.workspace = CacheUtils.getWorkspaceId();\n\t\tthis.updateAt = new Date();\n\n\t\tif (insertBy == null) insertBy = updateBy;\n\t\tif (insertAt == null) insertAt = updateAt;\n\n\t\tsuper.update();\n\t\tCacheUtils.cleanAll(this.getClass(), getAuditRight());\n\t}",
"@Override\n public void updateProperties() {\n // unneeded\n }"
] | [
"0.66950315",
"0.66950315",
"0.66950315",
"0.65865237",
"0.65865237",
"0.6546491",
"0.65384376",
"0.65384376",
"0.6450742",
"0.638396",
"0.63807416",
"0.6379335",
"0.6366761",
"0.6357711",
"0.6342104",
"0.6342104",
"0.6342104",
"0.6342104",
"0.6342104",
"0.63412046",
"0.6298866",
"0.6298866",
"0.6298866",
"0.6298866",
"0.6298866",
"0.6298866",
"0.62959707",
"0.6280287",
"0.6280287",
"0.6243861",
"0.6243861",
"0.6243861",
"0.6216391",
"0.6194516",
"0.61872715",
"0.61872715",
"0.6171825",
"0.6171825",
"0.6168526",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.61042994",
"0.6043932",
"0.60363215",
"0.6031323",
"0.6022576",
"0.5953807",
"0.59152913",
"0.5896203",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.5852058",
"0.58514994",
"0.5845477",
"0.5843593",
"0.5832687",
"0.5832687",
"0.581538",
"0.58115906",
"0.58080107",
"0.58080107",
"0.57936704",
"0.57791305",
"0.57657945",
"0.57226473",
"0.56965077",
"0.5689935",
"0.5674704",
"0.5674704",
"0.5673573",
"0.5673573",
"0.5655778",
"0.5632367",
"0.5611735",
"0.5605426",
"0.5605426",
"0.5593572",
"0.5591669",
"0.5581969",
"0.5581969",
"0.5581969",
"0.5581969",
"0.5576583",
"0.55754495",
"0.5572654"
] | 0.0 | -1 |
Not a realistic method for large crawls! | public Vector<WbRecord> getAllPages() {
Vector<WbRecord> content = getNPages(130000000);
System.out.println("Number of pages expected: " + this.numPagesRequested);
System.out.println("Actual number of pages wbRecordReader crawl: " + this.totalNumPagesRetrieved);
return content;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<String> webCrawling(){\n\t\t\tfor(i=780100; i<790000; i++){\r\n\t\t\t\ttry{\r\n\t\t\t\tdoc = insertPage(i);\r\n\t\t\t\t//Thread.sleep(1000);\r\n\t\t\t\t}catch (Exception e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t\tif(doc != null){\r\n\t\t\t\t\tElement ele = doc.select(\"div.more_comment a\").first();\r\n\t\t\t\t\t//System.out.println(ele.attr(\"href\"));\r\n\t\t\t\t\tcommentCrawling(ele.attr(\"href\"));//��۸�� ���� ��ũ\r\n\t\t\t\t\tcommentCrawlingList(commentURList);\r\n\t\t\t\t\tcommentURList = new ArrayList<String>();//��ũ ����� �ߺ��ǰ� ���̴� �� �����ϱ� ���� �ʱ�ȭ �۾�\r\n\t\t\t\t\tSystem.out.println(i+\"��° ������\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn replyComment;\r\n\t\t//return urlList.get(0);\r\n\t}",
"public Indexer crawl() \n\t{\n\t\t// This redirection may effect performance, but its OK !!\n\t\tSystem.out.println(\"Crawling: \"+u.toString());\n\t\treturn crawl(crawlLimitDefault);\n\t}",
"@Override\n public void crawl() {\n Document doc;\n try {\n\n\n doc = Jsoup.connect(rootURL).userAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/7046A194A\").get();\n\n Elements articles = doc.select(\"section.list article\");\n\n System.out.println(\"Number of articles found:\"+articles.size());\n //list of links found\n for(Element article: articles){\n\n Element titleLink = article.select(\"a\").first();\n System.out.println(titleLink.attr(\"abs:href\"));\n\n //if the url found is in the cache, do not retrieve the url.\n if(urlCache.contains(titleLink.attr(\"abs:href\"))) {\n System.out.println(\"Doucment found in cache, ignoring document\");\n continue;\n }\n\n storeDocument(Jsoup.connect(titleLink.attr(\"abs:href\")).get());\n\n //add the URL to the cache so that we don't retrieve it again.\n urlCache.add(titleLink.attr(\"abs:href\"));\n }\n\n\n } catch (Exception e){\n logger.log(Level.SEVERE, \"Error Retrieving from URL\", e);\n e.printStackTrace();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic Indexer crawl (int limit) \n\t{\n\t\n\t\t////////////////////////////////////////////////////////////////////\n\t // Write your Code here as part of Priority Based Spider assignment\n\t // \n\t ///////////////////////////////////////////////////////////////////\n\t\tPQueue q=new PQueue();\n \t\n\t\ttry\n \t{\n\t\t\t final String authUser = \"iiit-63\";\n\t\t\t\tfinal String authPassword = \"MSIT123\";\n\n\t\t\t\tSystem.setProperty(\"http.proxyHost\", \"proxy.iiit.ac.in\");\n\t\t\t\tSystem.setProperty(\"http.proxyPort\", \"8080\");\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n\n\t\t\t\tAuthenticator.setDefault(\n\t\t\t\t new Authenticator() \n\t\t\t\t {\n\t\t\t\t public PasswordAuthentication getPasswordAuthentication()\n\t\t\t\t {\n\t\t\t\t return new PasswordAuthentication(authUser, authPassword.toCharArray());\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t);\n\n\t\t\t\tSystem.setProperty(\"http.proxyUser\", authUser);\n\t\t\t\tSystem.setProperty(\"http.proxyPassword\", authPassword);\n \t\tURLTextReader in = new URLTextReader(u);\n \t\t// Parse the page into its elements\n \t\tPageLexer elts = new PageLexer(in, u);\t\t\n \t\tint count1=0;\n \t\t// Print out the tokens\n \t\tint count = 0;\n \t\t\n \t\twhile (elts.hasNext()) \n \t\t{\n \t\t\tcount++;\n \t\t\tPageElementInterface elt = (PageElementInterface)elts.next();\t\t\t \n \t\t\tif (elt instanceof PageHref)\n \t\t\tif(count1<limit)\n \t\t\t{\n \t\t\t\tif(q.isempty())\n \t\t\t\t{\n \t\t\t\t\tq.enqueue(elt.toString(),count);\n\t\t\t\t\t}\n \t\t\t\telse\n \t\t\t\t{\n \t\t\t\t\tif(q.search(elt.toString(),count))\n \t\t\t\t\t{\n \t\t\t\t\t\tq.enqueue(elt.toString(),count);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcount1++;\n \t\t\t\tSystem.out.println(\"link: \"+elt);\n \t\t\t\t\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"links retrieved: \"+count1);\n \t\tq.display();\n \t\twhile(limit !=0)\n \t\t{\n \t\t\tObject elt=q.dequeue();\n \t\t\tURL u1=new URL(elt.toString());\n \t\t\tURLTextReader in1= new URLTextReader(u1);\n \t\t\t// Parse the page into its elements\n \t\t\tPageLexer elt1 = new PageLexer(in1, u1);\n \t\t\twhile (elt1.hasNext()) \n \t\t\t{\n \t\t\t\tPageElementInterface elts2= (PageElementInterface)elt1.next();\n \t\t\t\tif (elts2 instanceof PageWord)\n \t\t\t\t{\n \t\t\t\t\tv.add(elts2);\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"words:\"+elts2);\n \t\t\t} \t\t\t\n\t\t\t\tObjectIterator OI=new ObjectIterator(v);\n\t\t\t\ti.addPage(u1,OI);\n\t\t\t\tfor(int j=0;j<v.size();j++);\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"hello\"+v.get(count));\n\t\t\t\t}\n\t\t\t\tlimit--;\n \t\t}\n \t\t\n \t}\n \tcatch (Exception e)\n \t{\n \t\tSystem.out.println(\"Bad file or URL specification\");\n \t}\n return i;\n\t}",
"private void searchNext(CrawlingSession executor, Link link) {\n HTMLLinkExtractor htmlLinkExtractor = HTMLLinkExtractor.getInstance();\n// htmlLinkExtractor.setWorking(link);\n \n Source source = CrawlingSources.getInstance().getSource(link.getSourceFullName());\n if(source == null) return;\n \n SessionStore store = SessionStores.getStore(source.getCodeName());\n if(store == null) return;\n\n List<Link> collection = htmlLinkExtractor.getLinks(link, /*link.getSource(),*/ pagePaths);\n// List<Link> collection = htmlLinkExtractor.getLinks(srResource);\n List<Link> nextLinks = createNextLink(link, collection);\n if(nextLinks.size() < 1) return;\n if(userPaths == null && contentPaths == null) {\n executor.addElement(nextLinks, link.getSourceFullName());\n return;\n }\n \n \n if(nextLinks.size() < 2) {\n executor.addElement(nextLinks, link.getSourceFullName());\n }\n \n// long start = System.currentTimeMillis();\n \n int [] posts = new int[nextLinks.size()];\n for(int i = 0; i < nextLinks.size(); i++) {\n try {\n posts[i] = PageDownloadedTracker.searchCode(nextLinks.get(i), true);\n } catch (Throwable e) {\n posts[i] = -1;\n LogService.getInstance().setThrowable(link.getSourceFullName(), e);\n// executor.abortSession();\n// return;\n }\n }\n \n int max = 1;\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] > max) max = posts[i];\n }\n \n// System.out.println(\" thay max post la \"+ max);\n \n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < posts.length; i++) {\n if(posts[i] >= max) continue;\n updateLinks.add(nextLinks.get(i));\n }\n \n// long end = System.currentTimeMillis();\n// System.out.println(\"step. 4 \"+ link.getUrl()+ \" xu ly cai ni mat \" + (end - start));\n \n executor.addElement(updateLinks, link.getSourceFullName());\n \n /*int minPost = -1;\n Link minLink = null;\n List<Link> updateLinks = new ArrayList<Link>();\n for(int i = 0; i < nextLinks.size(); i++) {\n Link ele = nextLinks.get(i);\n int post = 0;\n try {\n post = PostForumTrackerService2.getInstance().read(ele.getAddressCode());\n } catch (Exception e) {\n LogService.getInstance().setThrowable(link.getSource(), e);\n }\n if(post < 1) {\n updateLinks.add(ele);\n continue;\n } \n\n if(minPost < 0 || post < minPost){\n minLink = ele;\n minPost = post; \n } \n }\n\n if(minLink != null) updateLinks.add(minLink);\n executor.addElement(updateLinks, link.getSource());*/\n }",
"public String crawl() throws IOException {\n // FILL THIS IN!\n if(queue.isEmpty()){\n \treturn null;\n }\n String url = queue.remove();\n \tSystem.out.println(\"crawling \"+url);\n Elements paragraphs;\n \tif(index.isIndexed(url))\n \t{\n \t\tSystem.out.println(url+\" is already indexed\");\n \t\treturn null;\n \t}\n \tparagraphs = wf.fetchWikipedia(url);\n index.indexPage(url,paragraphs);\n queueInternalLinks(paragraphs);\t \n\t\treturn url;\n\t}",
"public void incPagesCrawled() {\n pagesCrawled++;\n }",
"public static void main(String[] args) throws Exception {\n\t\tString crawlStorageFolder = \"/data/crawl\";\r\n\t\tint numberOfCrawlers = 1;\r\n\t\t\r\n\t\tCrawlConfig config = new CrawlConfig();\r\n\t\tconfig.setCrawlStorageFolder(crawlStorageFolder);\r\n\t\tconfig.setMaxPagesToFetch(5000);\r\n\t\tconfig.setMaxDepthOfCrawling(5);\r\n\t\tconfig.setPolitenessDelay(500);\r\n\t\t\r\n\t\tconfig.setIncludeBinaryContentInCrawling(true);\r\n\t\t//config.setUserAgentString(userAgentString);\r\n\t\t\r\n\t\tPageFetcher pageFetcher = new PageFetcher(config);\r\n\t\tRobotstxtConfig robotstxtConfig = new RobotstxtConfig();\r\n\t\tRobotstxtServer robotstxtServer = new RobotstxtServer(robotstxtConfig,pageFetcher );\r\n\t\tCrawlController controller = new CrawlController(config,pageFetcher,robotstxtServer);\r\n\t\t\r\n\t\tcontroller.addSeed(\"http://www.marshall.usc.edu/\");\r\n\t\tcontroller.start(MyCrawler.class, numberOfCrawlers);\r\n\t\tSystem.out.println(\"All urls processed:\"+MyCrawler.URL_Count);\r\n\t\tSystem.out.println(\"All unique urls processed:\"+MyCrawler.hs.size());\r\n\t\tSystem.out.println(\"unique School urls processed:\"+MyCrawler.hs_uniqueSchool.size());\r\n\t\tSystem.out.println(\"unique USC urls processed:\"+MyCrawler.hs_uniqueUSC.size());\r\n\t\tSystem.out.println(\"other unique urls processed:\"+MyCrawler.hs_unique.size());\r\n\t\tSet set = MyCrawler.HM_Status.entrySet();\r\n\t Iterator i = set.iterator();\r\n\t while(i.hasNext()) {\r\n\t Map.Entry me = (Map.Entry)i.next();\r\n\t System.out.print(me.getKey() + \": \");\r\n\t System.out.println(me.getValue());\r\n\t }\r\n\t set=MyCrawler.HM_CT.entrySet();\r\n\t i = set.iterator();\r\n\t while(i.hasNext()) {\r\n\t Map.Entry me = (Map.Entry)i.next();\r\n\t System.out.print(me.getKey() + \": \");\r\n\t System.out.println(me.getValue());\r\n\t }\r\n\t System.out.println(\"F1:\"+MyCrawler.F1);\r\n\t System.out.println(\"F2:\"+MyCrawler.F2);\r\n\t System.out.println(\"F3:\"+MyCrawler.F3);\r\n\t System.out.println(\"F4:\"+MyCrawler.F4);\r\n\t \r\n\t System.out.println(\"Size < 1kb:\"+MyCrawler.size1);\r\n\t System.out.println(\"Size 1kb~10kb:\"+MyCrawler.size2);\r\n\t System.out.println(\"Size 10kb~100kb:\"+MyCrawler.size3);\r\n\t System.out.println(\"Size 100kb~1mb:\"+MyCrawler.size4);\r\n\t System.out.println(\"Size > 1mb:\"+MyCrawler.size5);\r\n\t \r\n\t}",
"public void crawl(String url);",
"public void crawl() {\n\t\tOOSpider.create(Site.me().setSleepTime(3000).setRetryTimes(3).setDomain(\"movie.douban.com\")//.setHttpProxy(httpProxy)\n .setUserAgent(\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.67 Safari/537.36\"),\n filmInfoDaoPipeline, DoubanFilm.class)\n .addUrl(\"https://movie.douban.com/top250\")//entry url\n .thread(1)\n .run();\n }",
"public Crawler crawl() throws ParseException, IOException {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tCrawler c = new Crawler(\"https://cs.purdue.edu\", 250);\n\t\tc.crawl();\n\n \tlong end = System.currentTimeMillis();\n \tSystem.out.println(\"Stats: \");\n \tSystem.out.println(\"Number of parsed pages: \" + c.getParsed().size());\n \tSystem.out.println(\"Number of words: \" + c.getWords().size());\n \t\n \tSystem.out.println(\"Total time: \" + (end - start) + \"ms.\");\n\n \treturn c;\n\t}",
"public interface Crawler {\n\t/**\n\t * Gets the location where crawled content is saved.\n\t * \n\t * @return location string of crawled content\n\t */\n\tpublic String getDumpLocation();\n\n\t/**\n\t * Starts the crawling from the root source of target.\n\t * \n\t * @throws IOException\n\t */\n\tpublic void disperse() throws IOException;\n\n\t/**\n\t * Crawls every <code>url</code> within the <code>target</code> url\n\t * \n\t * @param url\n\t * url which is either <code>target</code> or the one nested\n\t * inside\n\t * @param target\n\t * the target url declared to crawl\n\t * @throws IOException\n\t */\n\tpublic void crawl(final String url, final String target) throws IOException;\n\n\t/**\n\t * Picks up data from webpage.\n\t * \n\t * @param doc\n\t * <code>Document</code> retrieved from <code>url</code>\n\t * @param url\n\t * @return list of <code>Nugget</code> objects consisting of relevant data\n\t */\n\tpublic List<Nugget> scavenge(final Document doc, final String url);\n\n}",
"public URLSpout() {\n \tURLSpout.activeThreads = new AtomicInteger();\n \tlog.debug(\"Starting URL spout\");\n \t\n \ttry { \t\t\n\t\t\treader = new BufferedReader(new FileReader(\"URLDisk.txt\"));\n\t\t\tint num_lines = XPathCrawler.getInstance().getFileCount().get();\n\t\t\tfor (int i = 0; i < num_lines; i++) {\n\t\t\t\treader.readLine(); //set reader to latest line\n\t\t\t}\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n }",
"public void indexing(String seedPage) {\n webCrawler wbc = new webCrawler();\n webPage wbp = new webPage();\n urlList = wbc.crawl(seedPage);\n for(int i = 0; i < urlList.size(); i++) {\n String url = urlList.get(i);\n try {\n Document doc = wbp.getContent(url);\n finalWords = wbp.getAllWords(url);\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n }",
"public void crawlAndIndex(String url) throws Exception {\r\n\t\t// TODO : Add code here\r\n\t\tQueue<String> queue=new LinkedList<>();\r\n\t\tqueue.add(url);\r\n\t\twhile (!queue.isEmpty()){\r\n\t\t\tString currentUrl=queue.poll();\r\n\t\t\tif(internet.getVisited(currentUrl)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tArrayList<String> urls = parser.getLinks(currentUrl);\r\n\t\t\tArrayList<String> contents = parser.getContent(currentUrl);\r\n\t\t\tupdateWordIndex(contents,currentUrl);\r\n\t\t\tinternet.addVertex(currentUrl);\r\n\t\t\tinternet.setVisited(currentUrl,true);\r\n\t\t\tfor(String u:urls){\r\n\t\t\t\tinternet.addVertex(u);\r\n\t\t\t\tinternet.addEdge(currentUrl,u);\r\n\t\t\t\tqueue.add(u);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}",
"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}",
"@Async\n\tpublic void start() {\n\t\tUrl url = null;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\turl = urlRepository.findFirstByDateScannedOrderByIdAsc(null);\n\t\t\t\tif (url == null) {\n\t\t\t\t\twhile (url == null) {\n\t\t\t\t\t\turl = WebSiteLoader.getRandomUrl();\n\n\t\t\t\t\t\tif (urlExists(url)) {\n\t\t\t\t\t\t\turl = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\turl = urlRepository.saveAndFlush(url);\n\t\t\t\t}\n\t\t\t\tlog.info(\"Crawling URL : \" + url);\n\n\t\t\t\tWebPage webPage = WebSiteLoader.readPage(url);\n\t\t\t\tif (webPage != null) {\n\t\t\t\t\tReport report = textAnalyzer.analyze(webPage.getText());\n\t\t\t\t\t\n\t\t\t\t\tfor(SentenceReport sentenceReport : report.getSentenceReports()){\n\t\t\t\t\t\tSentence sentence = sentenceReport.getSentence();\n\t\t\t\t\t\tsentence = sentenceRepository.saveAndFlush(sentence);\n\t\t\t\t\t\tsentenceReport.setSentence(sentence);\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Occurrence occurrence : sentenceReport.getOccurences()){\n\t\t\t\t\t\t\toccurrence = occurrenceRepository.saveAndFlush(occurrence);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSentenceOccurrence so = new SentenceOccurrence();\n\t\t\t\t\t\t\tSentenceOccurrenceId soId = new SentenceOccurrenceId();\n\t\t\t\t\t\t\tso.setSentenceOccurrenceId(soId);\n\t\t\t\t\t\t\tsoId.setOccurenceId(occurrence.getId());\n\t\t\t\t\t\t\tsoId.setSentenceId(sentence.getId());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tsentenceOccurrenceRepository.saveAndFlush(so);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taddUrls(webPage.getUrls());\n\t\t\t\t}\n\n\t\t\t\tlog.info(\"Done crawling URL : \" + url);\n\t\t\t} catch (PageNotInRightLanguageException ex) {\n\t\t\t\tlog.info(\"Page not in the right language : \" + ex.getText());\n\t\t\t} catch (Exception ex) {\n\t\t\t\tlog.error(\"Error while crawling : \" + url, ex);\n\t\t\t}\n\t\t\t\n\t\t\turl.setDateScanned(new Date());\n\t\t\turlRepository.saveAndFlush(url);\n\t\t\t\n\t\t\tif(stop){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\t/*MultiThreadedCrawler crawler = new MultiThreadedCrawler(\"https://cs.uic.edu\", \"uic.edu\", \"main\");\n\t\tcrawler.start();\n\t\tList<Map> p = new ArrayList<>();\n\t\tp.add(crawler.getResults());\n\t\t\n\t\ttry {\n\t\t\tGlobals.urlSet.add(new URL(\"https://disabilityresources.uic.edu\"));\n\t\t\tGlobals.urlSet.add(new URL(\"http://disabilityresources.uic.edu\"));\n\t\t\tGlobals.urlSet.add(new URL(\"http://cmhsrp.uic.edu/nrtc\")); \n\n\t\t} catch (MalformedURLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tMultiThreadedCrawler c1 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c1\");\n\t\tMultiThreadedCrawler c2 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c2\");\n\t\tMultiThreadedCrawler c3 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c3\");\n\t\tMultiThreadedCrawler c4 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c4\");\n\t\tMultiThreadedCrawler c5 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c5\");\n\t\tMultiThreadedCrawler c6 = new MultiThreadedCrawler(\"\", \"uic.edu\", \"c6\");\n\t\t//MultiThreadedCrawler c7 = new MultiThreadedCrawler(\"https://housing.uic.edu\", \"uic.edu\", \"housing\");\n\t\t//MultiThreadedCrawler c8 = new MultiThreadedCrawler(\"https://grad.uic.edu\", \"uic.edu\", \"grad\");\n\t\t//MultiThreadedCrawler c9 = new MultiThreadedCrawler(\"https://today.uic.edu\", \"uic.edu\", \"today\");\n\t\t\n\t\t\n\t\t\n\t\tList<Thread> crawlers = new ArrayList<>();\n\t\tcrawlers.add(new Thread(c1, \"c1\"));\n\t\tcrawlers.add(new Thread(c2, \"c2\"));\n\t\tcrawlers.add(new Thread(c3, \"c3\"));\n\t\tcrawlers.add(new Thread(c4, \"c4\"));\n\t\tcrawlers.add(new Thread(c5, \"c5\"));\n\t\tcrawlers.add(new Thread(c6, \"c6\"));\n\t\tcrawlers.add(new Thread(c7, \"housing\"));\n\t\tcrawlers.add(new Thread(c8, \"grad\"));\n\t\tcrawlers.add(new Thread(c9, \"today\"));\n\t\t\n\t\t\n\t\tfor(Thread t: crawlers) {\n\t\t\tt.start();\n\t\t}\n\t\t\n\t\tfor(Thread t: crawlers) {\n\t\t\ttry {\n\t\t\t\tt.join();\n\t\t\t}catch(InterruptedException e) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tp.add(c1.getResults());\n\t\tp.add(c2.getResults());\n\t\tp.add(c3.getResults());\n\t\tp.add(c4.getResults());\n\t\tp.add(c5.getResults());\n\t\tp.add(c6.getResults());\n\t\t//p.add(c7.getResults());\n\t\t//p.add(c8.getResults());\n\t\t//p.add(c9.getResults());\n\t\t\n\t\t\n\t\twhile(true) {\n\t\t\tfor(Map m: p) {\n\t\t\t\tif(m == null)\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"All done\");\n\t\tmergeResults(p);\n\t\tUtil.updateDocVectLenMap();\n\t\tSystem.out.println(\"Total in collection: \" + Globals.pageDataMap.size());\n\t\tUtil.writeInvertedIndexTfMapAndMaxFreqMapToFile();*/\n\t\t\n\t\t\n\t\tUtil.loadDataFromFile();\n\t\tUtil.updateDocVectLenMap();\n\t\tSpringApplication.run(SearchApplication.class, args);\n\t}",
"public CrawlerResult crawl(URL url){\n //Creating the crawler result\n CrawlerResult rslt = new CrawlerResult(url);\n logger.info(url +\" started crawling....\");\n try{\n //Get the Document from the URL\n Document doc = Jsoup.connect(url.toString()).get();\n\n rslt.setTitle(doc.title());\n\n //links on the page\n Elements links = doc.select(\"a\");\n\n //Links on the page\n for(Element link : links){\n rslt.addLinksOnPage(new URL(link.attr(\"abs:href\")));\n }\n }catch(Exception e){\n //TODO\n }\n logger.info(url +\" finished crawled.\");\n return rslt;\n }",
"public WebCrawler(String urlSeed) {\n\t\t\n\n\t\t\n\t\tconnection = db.openConnection();\n\n\t\t\ttry {\n\t\t\t\tthis.urlSeed = new URL(urlSeed);\n\t\t\t} catch(MalformedURLException ex) {\n\t\t\t\tlog.error(\"please input the right url with protocol part!\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tworkers = new WorkQueue(10);\n\t\t\tthis.count = 0;\n\t\t\tthis.pending = 0;\n\t\t\turlList = new ArrayList<String>();\n\t\t\t//index = new InvertedIndex();\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tthis.HTMLFetcher();\n\t\t\tlong end = System.currentTimeMillis();\n\t\t\tlog.info(\"Running time for htmlFetcher: \" + (end - start));\n\t\t\tList<String> suggestedQuery = index.getSuggestedQuery();\n\t\t\tdb.updateSuggestedQuery(connection, suggestedQuery);\n\t\t\tdb.closeConnection(connection);\n\t}",
"public static void main(String[] args) throws IOException {\n\t\t\n ArrayList<String> visited = new ArrayList<String>();\n\n\t\tString start = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\n String finish = \"https://en.wikipedia.org/wiki/Philosophy\";\n String url = start;\n\n for (int i = 0; i < 15; i++) {\n\n if (visited.contains(url)) {\n return;\n }\n else {\n visited.add(url); \n }\n\n Elements paragraphs = fetcher.fetchWikipedia(url);\n Element link = searchPage(paragraphs);\n\n if (link == null) {\n System.err.println(\"No links on this page...\");\n return;\n }\n\n url = link.attr(\"abs:href\");\n System.out.println(\"currently on: \" + url);\n \n if (url.equals(finish)) {\n System.out.println(\"found it!\");\n break;\n }\n }\n\t}",
"@Override\n public void crawl() throws IOException {\n final String seedURL = url;\n Queue<String> currentDepthQueue = new LinkedList<>();\n currentDepthQueue.add(seedURL);\n crawl(visitedURL, 1, currentDepthQueue);\n customObjectWriter.flush();\n }",
"public void Crawl(String startUrl) {\n HashSet crawledList = new HashSet();\n LinkedHashSet toCrawlList = new LinkedHashSet();\n // Add start URL to the To Crawl list.\n toCrawlList.add(startUrl);\n\n // Get URL at bottom of the list.\n String url = (String) toCrawlList.iterator().next();\n // Remove URL from the To Crawl list.\n toCrawlList.remove(url);\n // Convert string url to URL object.\n URL verifiedUrl = verifyUrl(url);\n\n // Add page to the crawled list.\n crawledList.add(url);\n // Download the page at the given URL.\n String pageContents = downloadPage(verifiedUrl);\n\n if (pageContents != null && pageContents.length() > 0) {\n // Retrieve list of valid links from page.\n ArrayList links = retrieveLinks(verifiedUrl, pageContents, crawledList);\n // Add links to the To Crawl list.\n toCrawlList.addAll(links);\n\n }\n\n System.out.println(pageContents);\n\n }",
"private List<Woacrawledurl> readCrawledUrls()\n\t{\n\t\tString hql = \"from Woacrawledurl where instanceId=\"\n\t\t\t\t+ this.param.instance.getTaskinstanceId() + \"order by id\";\n\t\tSessionFactory sessionFactory = TaskFactory.getSessionFactory(this.param.dbid);\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tTransaction t = session.beginTransaction();\n\t\tQuery q = session.createQuery(hql);\n\t\tList<Woacrawledurl> list = q.list();\n\t\tt.commit();\n\t\treturn list;\n\t}",
"@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}",
"Map<String, Integer> getSearchResults(String searchTerm) {\n\n Map<String, Integer> libCount = new ConcurrentHashMap<>();\n\n try {\n Document document = Jsoup.connect(google + URLEncoder.encode(searchTerm, charset))\n .userAgent(userAgent)\n .referrer(\"http://www.google.com\")\n .get();\n\n Elements links = document.select(\"a[href]\");\n Set<String> urls = new HashSet<>();\n for (Element link: links) {\n if (link.attr(\"href\") != null && link.attr(\"href\").contains(\"=\")) {\n String url = link.attr(\"href\").split(\"=\")[1];\n if (url.contains(\"http\")) {\n urls.add(getDomainName(url));\n }\n }\n }\n\n CountDownLatch latch = new CountDownLatch(urls.size());\n\n for (String url: urls) {\n AnalysePage analysePage = new AnalysePage(url);\n completionService.submit(analysePage);\n }\n\n int completed = 0;\n\n while(completed < urls.size()) {\n try {\n Future<Set<String>> resultFuture = completionService.take();\n Set<String> strings = resultFuture.get();\n for (String lib : strings) {\n Integer count = libCount.get(lib);\n if (count == null) {\n libCount.put(lib, 1);\n } else {\n libCount.put(lib, ++count);\n }\n }\n completed++;\n latch.countDown();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n }\n try {\n latch.await();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (MalformedURLException e) {\n System.out.println(\"The URL is Malformed\");\n } catch (UnsupportedEncodingException e) {\n System.out.println(\"Incorrect URL encoding\");\n } catch (IOException e) {\n System.out.println(\"Unable to read from google\");\n e.printStackTrace();\n }\n executor.shutdown();\n return libCount;\n }",
"private void fetchNextBlock() {\n try {\n \tSearchClient _client = new SearchClient(\"cubansea-instance\");\n \tWebSearchResults _results = _client.webSearch(createNextRequest());\n \t\tfor(WebSearchResult _result: _results.listResults()) {\n \t\t\tresults.add(new YahooSearchResult(_result, cacheStatus+1));\n \t\t\tcacheStatus++;\n \t\t}\n \t\tif(resultCount == -1) resultCount = _results.getTotalResultsAvailable().intValue();\n } catch (IOException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t} catch (SearchException e) {\n\t\t\tthrow new TechnicalError(e);\n\t\t}\n\t}",
"public static void leechCNN(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.cnn.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on CNN\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n for(int o = 0; o < 4; o++) // goes back 4 days\r\n {\r\n String urlname = \"\";\r\n if(month >= 10)\r\n urlname = \"https://www.cnn.com/\" + year + \"/\" + month;\r\n else\r\n urlname = \"https://www.cnn.com/\" + year + \"/0\" + month;\r\n \r\n if(day >= 10)\r\n urlname += \"/\" + (day - o) + \"/\";\r\n else\r\n urlname += \"/0\" + (day - o) + \"/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * CNN_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }",
"public void startCrawl() throws IOException {\n\t\tElements paragraphs = wf.fetchWikipedia(source);\n\t\tqueueInternalLinks(paragraphs);\n\n\t\t// loop until we index a new page\n\t\tString res;\n\t\tdo {\n\t\t\tres = crawl();\n\n\t\t} while (res == null);\n\t}",
"public void start(){\n\t\tboolean readFromFile = readFromIndex();\r\n\t\tif (!readFromFile){\t\r\n\t\t\tfor (int i = 0;i<1000;++i){\r\n\t\t\t\tString file = \"../crawler/pages/page\"+i+\".html\";\r\n\t\t\t\taddFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<Question> extractionQuestion(String directory) throws IOException, ClassNotFoundException{\n\t\tArrayList<Question> allQuestions = new ArrayList<>();\n\t\tFile[] files = new File(directory).listFiles();\n\t\tfor (File curFile : files) {\n\t\t\tString filePath = curFile.getAbsolutePath();\n\t\t\tList<CrawledPage> lcp;\n\t\t\tFileInputStream fis = new FileInputStream(filePath);\n\t\t\tGZIPInputStream gzipin = new GZIPInputStream(fis);\n\t\t\tObjectInputStream objectIn = new ObjectInputStream(gzipin);\n\t\t\tlcp = (List<CrawledPage>) objectIn.readObject();\n\t\t\tobjectIn.close();\n\t\t\tfor (int i = 0; i < lcp.size(); i++) {\n\t\t\t\tString link = lcp.get(i).url;\n\n\t\t\t\tif (!link.contains(\"wikihow.com/Main-Page\")\n\t\t\t\t\t\t&& link.lastIndexOf(\":\") < 6 && !link.contains(\"?\")\n\t\t\t\t\t\t&& link.lastIndexOf(\"/\") < 24\n\t\t\t\t\t\t&& !link.contains(\"Powered-and-Inspired-by-Mediawiki\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/About-wikiHow\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Terms-of-Use\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Writer%27s-Guide\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Picture-Patrol\")\n\t\t\t\t\t\t&& !link.equals(\"http://www.wikihow.com/Categories\")\n\t\t\t\t\t\t) {\n\t\t\t\t\tSystem.out.println(link);\n\t\t\t\t\t// String content = lcp.get(i).content;\n\t\t\t\t\t// System.out.println(content);\n\t\t\t\t\t// Do something with the content\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tString content = lcp.get(i).content;\n\t\t\t\t\t\n\t\t\t\t\tif (!content.equals(\"\")){\n\t\t\t\t\t\t\n\t\t\t\t\t\tExtraction extraction = new Extraction();\n\t\t\t\t\t\t//Extraction title\n\t\t\t\t\t\tString title = extraction.extractTitle(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract ques_explanation: Not really clean\n\t\t\t\t\t\tString expl = extraction.extractExplanation(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract tips\n\t\t\t\t\t\tString tips = extraction.extractTips(content);\t\n\t\t\t\t\t\n\t\t\t\t\t\t//Extract warnings\n\t\t\t\t\t\tString warnings = extraction.extractWarnings(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract videos\n\t\t\t\t\t\tString video = extraction.extractVideo(content);\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract things\n\t\t\t\t\t\tArrayList<Things> things = extraction.extractThings(content);\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Extract ingredients\n\t\t\t\t\t\tArrayList<Ingredients> ingredients = extraction.extractIngredients(content);\n\t\t\t\n\t\t\t\t\t\t//Extract category\n\t\t\t\t\t\tArrayList<Category> categories = extraction.extractCategory(content);\n\n\t\t\t\t\t\t//Extract answer\n\t\t\t\t\t\tArrayList<Method> answer = extraction.extractAnswer(content);\n\n\t\t\t\t\t\tQuestion newQuestion = new Question(title, expl, answer,\n\t\t\t\t\t\t\t\tcategories, link, tips, warnings, video, things, ingredients);\n\t\t\t\t\t\t\n\t\t\t\t\t\tallQuestions.add(newQuestion);\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allQuestions;\n\t}",
"private int getHitsAndArticlesByURL(Category node, String url)\r\n\t{\r\n\t\tDocumentBuilderFactory domfac = DocumentBuilderFactory.newInstance();\r\n\t\tint NumRes = 0;\r\n\t\tString totalHits;\r\n\t\ttry{\r\n\t\t\tURL queryurl = new URL(url);\r\n\t\t\tURLConnection connection = queryurl.openConnection();\r\n\t\t\tconnection.setDoInput(true);\r\n\t\t\tInputStream inStream = connection.getInputStream();\r\n\t\t\tDocumentBuilder dombuilder = domfac.newDocumentBuilder();\r\n\t\t\tDocument doc = dombuilder.parse(inStream);\r\n\t\t\tElement root = doc.getDocumentElement();\r\n\t\t\tNodeList resultset_web = root.getElementsByTagName(\"resultset_web\");\r\n\t\t\tNode resultset = resultset_web.item(0);\r\n\t\t\t\r\n\t\t\ttotalHits = resultset.getAttributes().getNamedItem(\"totalhits\").getNodeValue();\r\n\t\t\tNumRes = Integer.parseInt(totalHits);\r\n\t\t\t\r\n\t\t\tint count = 0;\r\n\t\t\tNodeList results = resultset.getChildNodes(); \r\n\t\t\tif(results != null)\r\n\t\t\t{\t\t\t\r\n\t\t\t\tfor(int i = 0 ; i < results.getLength(); i++){\r\n\t\t\t\t\tNode result = results.item(i);\t\t\t\t\t\t\t\t\r\n\t\t\t\t\tArticle newArticle = new Article();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(result.getNodeType()==Node.ELEMENT_NODE){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfor(Node node1 = result.getFirstChild(); node1 != null; node1 = node1.getNextSibling()){\r\n\t\t\t\t\t\t\tif(node1.getNodeType()==Node.ELEMENT_NODE){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif(node1.getNodeName().equals(\"url\") && node1.getFirstChild() != null && count < 4){\r\n\t\t\t\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t\t\t\t\tString pageUrl = node1.getFirstChild().getNodeValue();\r\n\t\t\t\t\t\t\t\t\tArticle article = new Article();\r\n\t\t\t\t\t\t\t\t\tarticle.URL = pageUrl;\r\n\t\t\t\t\t\t\t\t\tarticle.words = getWordsLynx.runLynx(pageUrl);\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tnode.articles.add(article);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(ParserConfigurationException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}catch(SAXException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn -1;\r\n\t\t}\r\n\r\n\t\treturn NumRes;\r\n\t}",
"public void run()\n\t\t{\n\t\t\tint num = 0;\n\t\t\ttry{\n\t\t\t\tlog.debug(\"Dealing with: \" + url.toString() + \" From : \" + urlp);\n\t\t\t\t\n\t\t\t\tSocket socket = new Socket(url.getHost(), PORT);\n\t\t\t\tPrintWriter writer = new PrintWriter(socket.getOutputStream());\n\t\t\t\tBufferedReader reader = \n\t\t\t\t\tnew BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\t\tString request = \"GET \" + url.getPath() + \" HTTP/1.1\\n\" +\n\t\t\t\t\t\t\t\t\"Host: \" + url.getHost() + \"\\n\" +\n\t\t\t\t\t\t\t\t\"Connection: close\\n\" + \n\t\t\t\t\t\t\t\t\"\\r\\n\";\n\t\t\t\twriter.println(request);\n\t\t\t\twriter.flush();\n\t\t\n\t\t\t\tString line = reader.readLine();\n\t\t\t\t// filter the head message of the response\n\t\t\t\twhile(line != null && line.length() != 0)\n\t\t\t\t{\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t}\n\t\t\t\t// keep the html context\n\t\t\t\twhile (line != null) \n\t\t\t\t{\n\t\t\t\t\tcontext += line + \"\\n\";\n\t\t\t\t\tline = reader.readLine();\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t\twriter.close();\n\t\t\t\tsocket.close();\n\t\t\t\t//log.debug(context);\n\t\t\t\tstripper = new TagStripper(context);\n\t\t\t\tlog.debug(\"Removing script and style from: \" + url.toString());\n\t\t\t\tstripper.removeComments();\n\t\t\t\tstripper.removeScript();\n\t\t\t\tstripper.removeStyle();\n\t\t\t\tlog.debug(\"Getting links from: \" + url.toString());\n\t\t\t\tArrayList<String> link = new ArrayList<String>();\n\t\t\t\tstripper.buildLinks(url.toString());\n\t\t\t\t\n\t\t\t\tlink = stripper.getLinks();\n\t\t\t\tfor(String tmp : link) {\n\t\t\t\t\tif(getCount() < pageNum ) {\n\t\t\t\t\t\t// find if the link has been already visited\n\t\t\t\t\t\tif(!urlList.contains(tmp)) {\n\t\t\t\t\t\t\tworkers.execute(new SingleHTMLFetcher(new URL(tmp), this.url.toString()));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString title = stripper.getTitle();\n\t\t\t\tif(title == null)\n\t\t\t\t\ttitle = \"NO title\";\n\t\t\t\ttitle = title.replaceAll(\"&[^;]*;\", \"\");\n\t\t\t\tlog.debug(\"Removing tags from: \" + url.toString());\n\t\t\t\tstripper.removeTags();\n\t\t\t\tstripper.removeSymbol();\n\t\t\t\tString snippet = stripper.getSnippet(title);\n\t\t\t\tdb.savePageInfo(connection, title, snippet, url.toString());\n\t\t\t\tcontext = stripper.getContext();\n\t\t\t\tString[] words = context.toLowerCase().split(\"\\\\s\");\n\t\t\t\tArrayList<String> wordsList = new ArrayList<String>();\n\t\t\t\tfor (int i = 0; i < words.length; i++) {\n\t\t\t\t\t// delete non-word character\n\t\t\t\t\twords[i] = words[i].replaceAll(\"\\\\W\", \"\").replace(\"_\",\n\t\t\t\t\t\t\t\"\");\n\t\t\t\t\tif(words[i].length() != 0)\n\t\t\t\t\t\twordsList.add(words[i]);\n\t\t\t\t}\n\t\t\t\tfor (String w : wordsList) {\n\t\t\t\t\tif (w.length() != 0) {\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tindex.addNum(w, url.toString(), num);\n\t\t\t\t\t\t\t\t} catch (InterruptedException 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\tnum++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlog.debug(\"URL: \" + url.toString() + \" is finished!\");\n\t\t\t\tdecrementPending();\n\t\t\t}catch(Exception ex) {\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic void process(Page page) {\n\t\tDocument doc = Jsoup.parse(page.getHtml().getFirstSourceText());\n\n\t\tif (isFirst) {\n\t\t\tSystem.out.println(\"添加所有列表链接\");\n\t\t\tArrayList<String> urls = new ArrayList<String>();\n\t\t\t// 33\n\t\t\tfor (int i = 2; i < 30; i++) {\n\t\t\t\turls.add(\"http://zyjy.jiangmen.gov.cn//szqjszbgg/index_\" + i + \".htm\");\n\t\t\t}\n\t\t\tpage.addTargetRequests(urls);\n\t\t\tSystem.out.println(\"这一页一共有 \" + urls.size() + \" 条数据\");\n\n\t\t\tisFirst = false;\n\t\t}\n\n\t\tif (page.getUrl().regex(URL_LIST).match() || page.getUrl().toString().trim().equals(url)) {\n\t\t\tSystem.out.println(\"获取列表数据\");\n\n\t\t\tElements uls = doc.getElementsByAttributeValue(\"class\", \"c1-bline\");\n\t\t\tfor (Element ul : uls) {\n\t\t\t\tString url = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).select(\"a\").attr(\"href\").trim();\n\t\t\t\tString title = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).text();\n\t\t\t\tString data = ul.getElementsByAttributeValue(\"class\", \"f-right\").get(0).text();\n\t\t\t\tCacheHashMap.cache.put(url, title + \"###\" + data);\n\t\t\t\tMyUtils.addRequestToPage(page, url);\n\t\t\t\tSystem.out.println(url + \" \" + CacheHashMap.cache.get(url));\n\t\t\t}\n\n\t\t}\n\t\tif (page.getUrl().regex(URL_DETAILS).match()) {\n\n\t\t\tProject project = new Project();\n\t\t\tStringBuffer project_article = new StringBuffer();\n\n\t\t\tString urldetails = CacheHashMap.cache.get(page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"url\" + page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"urldetails \" + urldetails);\n\n\t\t\tString[] value = urldetails.split(\"###\");\n\t\t\tif (value != null && value.length > 1) {\n\t\t\t\tproject.setProjectName(value[0]);\n\t\t\t\tproject.setPublicStart(value[1]);\n\t\t\t}\n\n\t\t\tElements divs = doc.getElementsByAttributeValue(\"class\", \"contlist minheight\");\n\t\t\tfor (Element div : divs.get(0).children()) {\n\t\t\t\tif (div.nodeName().equals(\"table\")) {\n\t\t\t\t\tElements trs = divs.select(\"tbody\").select(\"tr\");\n\t\t\t\t\tfor (Element tr : trs) {\n\t\t\t\t\t\tproject_article.append(tr.text()).append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tproject_article.append(div.text()).append(\"\\n\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tproject.setUrl(page.getUrl().toString().trim());\n\t\t\tproject.setState(0);\n\t\t\tproject.setWebsiteType(\"江门市\");\n\t\t\tproject.setTime(MyUtils.getcurentTime());\n\t\t\tproject.setRawHtml(divs.toString());\n\n\t\t\tproject.setArticle(project_article.toString());\n\t\t\tSystem.out.println(project);\n\n\t\t\tHibernateUtil.save2Hibernate(project);\n\n\t\t}\n\n\t}",
"public static void leechBBC(Hdict dict)\r\n {\r\n WebDriver driver = new ChromeDriver();\r\n \r\n String baseUrl = \"https://www.bbc.com/\";\r\n driver.get(baseUrl);\r\n \r\n List<WebElement> links = driver.findElements(By.tagName(\"a\"));\r\n \r\n System.out.println(\"There is a total of \" + links.size() + \" frong page news detected on BBC\");\r\n \r\n Hdict titleDicts = new Hdict();\r\n \r\n for(int i = 0; i < links.size(); i++)\r\n {\r\n //get href links\r\n String url = links.get(i).getAttribute(\"href\");\r\n \r\n Words hUrl = new Words(url, 0);\r\n if(titleDicts.hdict_lookup(hUrl) != null) // if this page is already parsed\r\n {\r\n continue;\r\n }\r\n \r\n //if the page is not parsed\r\n titleDicts.hdict_insert(hUrl);\r\n \r\n String urlname = \"https://www.bbc.com/news/\";\r\n \r\n String[] news = url.split(urlname);\r\n if(news.length > 1 && news[1].length() > 10) // if it is .html and has some other shish, shit solution but works\r\n {\r\n //WebDriver driver1 = new ChromeDriver();\r\n //driver1.get(url);\r\n \r\n String[] temp1 = news[1].split(\"-\");\r\n \r\n try{ // if the serial is not attached\r\n Integer.parseInt(temp1[temp1.length-1]);\r\n }\r\n catch(Exception e){ continue; };\r\n \r\n if(temp1.length < 2) // if it is not even a topic\r\n continue;\r\n \r\n //nytimes doesn't have viewers count, so default 2500 effectiveness on all posts\r\n \r\n int reactions = NYTIME_AVG;\r\n \r\n String directory = news[1];\r\n \r\n directory = directory.split(\".html\")[0]; // removes file name and directory\r\n String[] temp = directory.split(\"/\");\r\n String title = temp[temp.length-2]; // get file name, more concise, skip last for CNN, last is index\r\n String[] keys = title.split(\"-\");\r\n \r\n for(String key : keys)\r\n {\r\n if(key.contains(\".html\")) continue; // useless stuff\r\n \r\n boolean integercheck = true;\r\n try{\r\n Integer.parseInt(key);\r\n } catch(Exception e) \r\n {\r\n integercheck = false;\r\n };\r\n if(integercheck) continue; // useless numbers\r\n \r\n if(Arrays.binarySearch(JUNK_WORDS, key) >= 0) continue; // useless words\r\n \r\n Words wkey = new Words(key, reactions * BBC_WORTH);\r\n Words wkey_old = dict.hdict_lookup(wkey);\r\n if(wkey_old == null) dict.hdict_insert(wkey);\r\n else\r\n {\r\n wkey.setPopularity(wkey.getPopularity() + wkey_old.getPopularity());\r\n dict.hdict_insert(wkey);\r\n }\r\n }\r\n }\r\n }\r\n //close Chrome\r\n driver.close();\r\n }",
"Collection<PageLink> crawl(CrawlerArgs args);",
"private Document getPageWithRetries(URL url) throws IOException {\n Document doc;\n int retries = 3;\n while (true) {\n sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());\n LOGGER.info(\"Retrieving \" + url);\n doc = Http.url(url)\n .referrer(this.url)\n .cookies(cookies)\n .get();\n if (doc.toString().contains(\"IP address will be automatically banned\")) {\n if (retries == 0) {\n throw new IOException(\"Hit rate limit and maximum number of retries, giving up\");\n }\n LOGGER.warn(\"Hit rate limit while loading \" + url + \", sleeping for \" + IP_BLOCK_SLEEP_TIME + \"ms, \" + retries + \" retries remaining\");\n retries--;\n try {\n Thread.sleep(IP_BLOCK_SLEEP_TIME);\n } catch (InterruptedException e) {\n throw new IOException(\"Interrupted while waiting for rate limit to subside\");\n }\n }\n else {\n return doc;\n }\n }\n }",
"@Test\n public void testCombinePageRankTfIdf() {\n\n Iterator<Pair<Document, Double>> resultIterator = icsSearchEngine.searchQuery(\n Arrays.asList(\"ISG\", \"Bren\", \"School\", \"UCI\"),\n 100, 100.0);\n ImmutableList<Pair<Document, Double>> resultList = ImmutableList.copyOf(resultIterator);\n\n // first result should be \"isg.ics.uci.edu\"\n Assert.assertEquals(\"isg.ics.uci.edu\", getDocumentUrl(resultList.get(0).getLeft().getText()));\n\n // top 10 should have URLs starting \"hobbes.ics.uci.edu\"\n Assert.assertTrue(resultList.stream().limit(10).map(p -> getDocumentUrl(p.getLeft().getText()))\n .anyMatch(p -> p.contains(\"hobbes.ics.uci.edu\")));\n\n // top 50 should have URL \"ipubmed2.ics.uci.edu\"\n Assert.assertTrue(resultList.stream().limit(50).map(p -> getDocumentUrl(p.getLeft().getText()))\n .anyMatch(p -> p.equals(\"ipubmed2.ics.uci.edu\")));\n\n }",
"public static void main(String[] args) throws IOException {\n\t\tCrawlMethods cm = new CrawlMethods();\n\t\tString url = cm.getURL();\n\t\tint pageNumber;\n\t\tint eachPageNumber = 2;\n\t\tBoolean isOver = false;\n\t\t\n\t\ttry {\n\t\t\tcm.loopPost(url);\n\t\t\twhile (true) {\n\t\t\t\tisOver = cm.enterPost();\n\t\t\t\tif (isOver) {\n\t\t\t\t\tSystem.out.println(\"끝\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tpageNumber = cm.getPageNumber();\n\t\t\t\tif (pageNumber % 10 == 0) {\n\t\t\t\t\tif (pageNumber == 10) {\n\t\t\t\t\t\tcm.TenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcm.afterTenNext();\n\t\t\t\t\t\teachPageNumber = 2;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// 만약 10페이지 미만이면\n\t\t\t\tif (pageNumber < 10) {\n\t\t\t\t\tcm.beforeTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t} else {\n\t\t\t\t\tcm.afterTenClickNext(eachPageNumber);\n\t\t\t\t\teachPageNumber++;\n\t\t\t\t\tThread.sleep(2500);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tparsePDF pp = new parsePDF();\n\t\t\tpp.parseData(pp.readFilesFromDirectory());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\r\n\tpublic String getPage() {\n\t\ttry {\r\n\t\t\tWriter wr = new OutputStreamWriter(\r\n\t\t\t\t\tnew FileOutputStream(OutputPath), \"utf-8\");\r\n\t\t\tList<String> colleges = IOUtil.read2List(\r\n\t\t\t\t\t\"property/speciality.properties\", \"GBK\");\r\n\t\t\tfor (String college : colleges) {\r\n\t\t\t\tfor (int i = 1; i < 10000; i++) {\r\n\t\t\t\t\tString html = getSeach(college, null, null, 1, i);\r\n\t\t\t\t\tif (html.equals(\"\")) {\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tDocument page = Jsoup.parse(html);\r\n\t\t\t\t\tElements authors = page.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\"class\", \"listBox wauto clearfix\");\r\n\t\t\t\t\tfor (Element author : authors) {\r\n\t\t\t\t\t\tElement e = author.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\"xuezheName\").get(0);\r\n\t\t\t\t\t\tElement a = e.getElementsByAttributeValue(\"target\",\r\n\t\t\t\t\t\t\t\t\"_blank\").first();\r\n\t\t\t\t\t\tString name = a.text();\r\n\t\t\t\t\t\tString school = author.getElementsByAttributeValue(\r\n\t\t\t\t\t\t\t\t\"class\", \"f14\").text();\r\n\t\t\t\t\t\tString id = a.attr(\"href\");\r\n\t\t\t\t\t\tString speciallity = author\r\n\t\t\t\t\t\t\t\t.getElementsByAttributeValue(\"class\",\r\n\t\t\t\t\t\t\t\t\t\t\"xuezheDW\").first().text();\r\n\t\t\t\t\t\twr.write(school + \"\\t\" + id + \"\\t\" + speciallity\r\n\t\t\t\t\t\t\t\t+ \"\\r\\n\");\r\n\t\t\t\t\t\tSystem.out.println(i + \":\" + school);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\twr.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public static void list_1_get() throws IOException{ \n\t\tlong current=0;\n\t\tlong start=System.currentTimeMillis();\n\t\tDocument doc=doc_get(\"http://www.yihaodian.com/product/listAll.do\"); \n\t\tif(doc!=null){\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fl>\n\t\t\t\t\t\t\t\t\t //div>.allsort.sortwidth>div.fr>\t\t\t\t\t\t\t\t\t\n\t\t\tElements links=doc.select(\"div>.allsort.sortwidth>div>div.alonesort\"); \n\t\t\tSystem.out.println(\"==========BEGIN================\");\n \n\t\t\tfor(Element link_alonesort:links){//get first class panel\n\t\t\t\tElements link_mt= link_alonesort.select(\"div.mt\");//first class property\n\t\t\t\t\n\t\t\t\t//----------\n\t\t\t\tSystem.out.println(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\"); \n\t\t\t\tSystem.out.println(link_mt.text());\n\t\t\t\tTxtWriter.appendToFile(\"-------------------------------------------------------------FIRST CLASS----------------------------------------------------------------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\tTxtWriter.appendToFile(link_mt.text(),new File(\"File/idlist.txt\"));\n\t\t\t\t//----------\n\t\t\t\t\n\t\t\t\tElements link_fores= link_alonesort.select(\"div.mc>dl\");\n\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\tfor(Element link_fore:link_fores){ \n\n\t\t\t\t\tElements link_dds=link_fore.select(\"dd\");\n\t\t\t\t\t/**BEGIN*******get second class panel**/\n\t\t\t\t\tfor(Element link_dd:link_dds){ \n\t\t\t\t\t\t\n\t\t\t\t\t\tElement link_dt=link_dd.parent().select(\"dt>a\").first();//second class property\n\t\t\t\t\t\t\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\tSystem.out.println(\"---------------------------SECOND CLASS-------------------\");\n\t\t\t\t\t\tSystem.out.println(link_dt.text()); \n\t\t\t\t\t\tTxtWriter.appendToFile(\"---------------------------SECOND CLASS-------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\tTxtWriter.appendToFile(link_dt.text()+\"---\"+link_dt.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\n\t\t\t\t\t\tElements link_as=link_dd.select(\"em>span>a\"); //third class property \n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n\t\t\t\t\t\tfor(Element link_a:link_as){//get forth class panel\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\tSystem.out.println(\"-------------------------------CLASS THREE BEGIN -------------------\"); \n\t\t\t\t\t\t\tSystem.out.println(link_a.text()+\"---\"+link_a.absUrl(\"href\")); //third class property \n\t\t\t\t\t\t\tTxtWriter.appendToFile(\"-------------------------------CLASS THREE BEGIN -------------------\",new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\tTxtWriter.appendToFile(link_a.text()+\"---\"+link_a.absUrl(\"href\"),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t//----------\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint count=1;//count of page\n\t\t\t\t\t\t\tint repeat=0;//count of repeat items\n//\t\t\t\t\t\t\t/**版本三*/\n//\t\t\t\t\t\t\tString [] strListBackup = {};\n\t\t\t\t\t\t\tList<String> list=new ArrayList<String>();\n\t\t\t\t\t\t\twhile(true){ \n\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n\t\t\t\t\t\t\t\t\t\t+String.valueOf(count++)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n\t\t\t\t\t\t\t\tSystem.out.println(list);//输出列表\n\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n\t\t\t\t\t\t\t\t\tif(list.contains(String.valueOf(strList[i]))==false){\n\t\t\t\t\t\t\t\t\t\tlist.add(String.valueOf(strList[i]));\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\trepeat++;\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(repeat>=50) //临界值\n\t\t\t\t\t\t\t\t\trepeat=0;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//写入文件\n\t\t\t\t\t\t\t\tfor(int i=0;i<list.size()&&list.size()>0;i++){\n\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(list.get(i),new File(\"File/idlist.txt\"));\n\t\t\t\t\t\t\t\t\t\tcurrent++;\n\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\tcurrent+=list.size();\n\t\t\t\t\t\t\t\tlist.clear();\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\tSet<String> set=new HashSet<String>();\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\t\n////\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"/b0/a-s1-v0-p\"\n////\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\"); \n////\t\t\t\t\t\t\t\thttp://www.yihaodian.com/ctg/s2/c5228-%E9%A5%AE%E7%94%A8%E6%B0%B4/b0/a-s1-v0-p2-price-d0-f04-m1-rt0-pid-k/\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get( link_a.absUrl(\"href\")\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tSystem.out.println(Arrays.toString(strList));\n//\t\t\t\t\t\t\t\tfor(int i=0;i<strList.length;i++){\n//\t\t\t\t\t\t\t\t\tif(set.contains(strList[i])==false){\n//\t\t\t\t\t\t\t\t\t\tset.add(strList[i]);\n//\t\t\t\t\t\t\t\t\t}else{ \n//\t\t\t\t\t\t\t\t\t\trepeat++;\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(repeat>=10){\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\tIterator<String> iterator=set.iterator();\n\n//\t\t\t\t\t\t\twhile(iterator.hasNext()){ \n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(iterator.next(),new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n//\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n//\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\tSystem.out.println(\"写入完成\");\n//\t\t\t\t\t\t\tset.clear();\n//\t\t\t\t\t\t\t\n//\n//\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t/**版本一\n//\t\t\t\t\t\t\tfor(int i=1;i<50;i++){\n//\t\t\t\t\t\t\t\tSystem.out.println(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(i)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tfor(int j=0;j< strList.length;j++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[j],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\ttry {\n//\t\t\t\t\t\t\t\t\tThread.sleep(2000);\n//\t\t\t\t\t\t\t\t} catch (InterruptedException 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}*/\n//\t\t\t\t\t\t\t/**\n//\t\t\t\t\t\t\t * 版本二*/ \n//\t\t\t\t\t\t\tString [] strListBackup = {};\n//\t\t\t\t\t\t\twhile(true){ \n//\t\t\t\t\t\t\t\tSystem.out.println(link_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tString [] strList=productsIdList_get(\n//\t\t\t\t\t\t\t\t\t\tlink_a.absUrl(\"href\")+\"b0/a-s1-v0-p\"\n//\t\t\t\t\t\t\t\t\t\t+String.valueOf(count)+\"-price-d0-f04-m1-rt0-pid-k/\");\n//\t\t\t\t\t\t\t\tcount++;\n//\t\t\t\t\t\t\t\tif(compareTo(strListBackup,strList)==false){//不相似\n//\t\t\t\t\t\t\t\t\tstrListBackup=strList;\n//\t\t\t\t\t\t\t\t}else{//相似\n//\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t} \n//\t\t\t\t\t\t\t\t//写入文件\n//\t\t\t\t\t\t\t\tfor(int i=0;i< strList.length;i++){\n//\t\t\t\t\t\t\t\t\ttry {\n//\t\t\t\t\t\t\t\t\t\tTxtWriter.appendToFile(strList[i],new File(\"File/idlist.txt\"));\n//\t\t\t\t\t\t\t\t\t\tcurrent++;\n//\t\t\t\t\t\t\t\t\t} catch (IOException e) { \n//\t\t\t\t\t\t\t\t\t\te.printStackTrace();\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\t\n\t\n//\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t/**BEGIN*******get third class panel**/\n//\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t/**END********get second class panel*************/ \n//\t\t\t\t\tbreak;\n\t\t\t\t} \n\t\t\t\t/**END********get first class panel*************/ \n\t\t\t\tSystem.out.println(\"++++++++++++++++++++++++++++++++++++++++++\");\n//\t\t\t\tbreak;\n\t\t\t} \n\t\t\t//总数\n\t\t\tSystem.out.println(\"总数\"+current);\n\t\t\tTxtWriter.appendToFile(String.valueOf(current),new File(\"File/idlist.txt\"));\n\t\t\t//耗时\n\t\t\tlong end=System.currentTimeMillis();\n\t\t\tTxtWriter.appendToFile(\"耗时:\"+(end-start)+\"ms\",new File(\"File/idlist.txt\"));\n\t\t\tSystem.out.println(\"===========END==================\");\n\t\t}else{\n\t\t\tSystem.out.println(\"Error\");\n\t\t}\n\t}",
"public void run() {\n LOG.info(\"Starting Contentful crawling\");\n //Partition of ContentTypes: TRUE: vocabularies and FALSE: non-vocabularies/web content\n Map<Boolean, List<CMAContentType>> contentTypes = getContentTypes();\n List<CMAContentType> vocContentTypes = contentTypes.get(Boolean.TRUE);\n List<CMAContentType> webContentTypes = contentTypes.get(Boolean.FALSE);\n\n //Extract vocabularies meta data\n VocabularyTerms vocabularyTerms = getVocabularyTerms(vocContentTypes);\n\n //Mapping generator can be re-used for all content types\n MappingGenerator mappingGenerator = new MappingGenerator(vocContentTypes);\n\n //Gets the ContentType.resourceId for news and articles, which vary by space\n newsContentTypeId = getContentTypeId(webContentTypes, configuration.getNewsContentType());\n articleContentTypeId = getContentTypeId(webContentTypes, configuration.getArticleContentType());\n projectContentTypeId = getContentTypeId(webContentTypes, configuration.getProjectContentType());\n\n\n //Crawl all Content Types, except for vocabularies\n crawlContentTypes(webContentTypes, mappingGenerator, vocabularyTerms);\n LOG.info(\"Contentful crawling has finished\");\n }",
"public static void main(String[] args) {\n final String filename = \"data/hungryGoWhereV2.csv\";\n try (final BusinessStorage storage = new BusinessStorage(filename)) {\n\n storage.append(Business.getHeader());\n\n final Session session = Session.builder()\n .put(STORAGE_KEY, storage)\n .build();\n\n try (final Crawler crawler = crawler(fetcher(), session).start()) {\n LOGGER.info(\"starting crawler...\");\n\n\n String csvFile = \"data/hungryGoWhere.csv\";\n String line = \"\";\n String cvsSplitBy = \",\";\n int counter = 2;\n ListingHandler handler = new ListingHandler();\n\n try (BufferedReader br = new BufferedReader(new FileReader(csvFile))) {\n int otherCounter = 1;\n while ((line = br.readLine()) != null) {\n String[] information = line.split(cvsSplitBy);\n\n if(counter == otherCounter){\n final String nextPageUrl = information[0];\n crawler.getScheduler().add(new VRequest(nextPageUrl), handler);\n// System.out.println(information[0] + \" \" + counter);\n counter ++;\n }\n otherCounter ++;\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n// final String startUrl = \"https://www.hungrygowhere.com/singapore/cafe_2000/\";\n// crawler.getScheduler().add(new VRequest(startUrl), new ListingHandler());\n } catch (Exception e) {\n LOGGER.error(\"Could not run crawler: \", e);\n }\n\n } catch (IOException e) {\n LOGGER.error(\"unable to open file: {}, {}\", filename, e);\n }\n }",
"public boolean gatherAll()\n \t{\n \t\tString clean;\n \t\tchar check;\n \t\t\n \t\ttry\n \t\t{\n \t\t\t//Grabs the webpage then selects the list of sets\n \t\t\tDocument page = Jsoup.connect(allFormat).get();\n \t\t\tElements article = page.select(\"div#advancedSearchSets\");\n \t\t\tElements table = article.select(\"table\");\n \t\t\tElements tableBody = table.select(\"tbody\");\n \t\t\tElements tableRow = tableBody.select(\"tr\");\n \t\t\tElements list;\n \t\t\tthis.pointer = 0;\n \t\t\t\n \t\t\t//Loops through each item within the list of available sets\n \t\t\tfor(Element item: tableRow)\n \t\t\t{\n \t\t\t\t//Selects all the links within the table rows\n \t\t\t\tlist = item.select(\"a[href]\");\n \t\t\t\t\n \t\t\t\tfor(Element itemName: list)\n \t\t\t\t{\t\n \t\t\t\t\tNames[pointer]=itemName.text();\n \t\t\t\t\t\n \t\t\t\t\t//Replaces all blank characters with the %20 characters \n \t\t\t\t\tclean = itemName.text().replaceAll(\" \", \"%20\");\n \t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\t//Further processes the items within found on the site\n \t\t\t\t\tfor(int length=0; length<clean.length(); length++)\n \t\t\t\t\t{\n \t\t\t\t\t\tcheck=clean.charAt(length);\n \t\t\t\t\t\tif(check=='(')\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tclean = clean.substring(0,length-3);\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//Since there is a in-consistancy within the database these are necessary\n \t\t\t\t\tif(clean.contains(\"Starter\")&&clean.contains(\"1999\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Starter%201999\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Starter\")&&clean.contains(\"2000\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Starter%202000\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Magic\")&&clean.contains(\"2010\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Magic%202010\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Planechase\")&&clean.contains(\"2012\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Planechase%202012\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"PDS\")&&clean.contains(\"Fire\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Premium%20Deck%20Series:%20Fire%20and%20Lightning\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"PDS\")&&clean.contains(\"Slivers\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Premium%20Deck%20Series:%20Slivers\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"PDS\")&&clean.contains(\"Graveborn\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Premium%20Deck%20Series:%20Graveborn\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"vs\")&&clean.contains(\"Knights\")&&clean.contains(\"Dragons\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Duel%20Decks:%20Knights%20vs%20Dragons\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"vs.\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Duel%20Decks:%20\"+clean;\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Sixth\")&&clean.contains(\"Edition\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"Classic%20Sixth%20Edition\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Seventh\")&&clean.contains(\"Edition\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"7th%20Edition\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Eighth\")&&clean.contains(\"Edition\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"8th%20Edition\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Ninth\")&&clean.contains(\"Edition\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"9th%20Edition\";\n \t\t\t\t\t}\n \t\t\t\t\telse if(clean.contains(\"Tenth\")&&clean.contains(\"Edition\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=\"10th%20Edition\";\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t//Checks to see if the set is a core set or not\n \t\t\t\t\telse if(clean.matches(\".*\\\\d\\\\d\\\\d\\\\d.*\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=coreSet(clean);\n \t\t\t\t\t\t\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tSets[pointer]=clean;\n \t\t\t\t\t}\n \t\t\t\t\tthis.pointer++;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\treturn true;\n \t\t}\n \t\tcatch(Exception e)\n \t\t{\n \t\t\tSystem.out.println(\"Error! \"+e);\n \t\t\treturn false;\n \t\t}\n \t}",
"public static void Execute ()\n\t{\n\t\tReceiveCollection (SpawnCrawler (target));\n\t\t\n\t\tList<String> initialCollection = overCollection;\n\t\t\n\t\tif ( ! initialCollection.isEmpty ())\n\t\t{\n\t\t\n\t\t\tfor (String collected : initialCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tReceiveCollection (SpawnCrawler (collected));\n\t\t\t\telse\n\t\t\t\t\tReceiveCollection (SpawnCrawler (target + collected));\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t\t/*\n\t\t * Several loops should commence here where the system reiteratively goes over all the newly acquired URLs\n\t\t * so it may extend itself beyond the first and second depth.\n\t\t * However this process should be halted once it reaches a certain configurable depth.\n\t\t */\n\t\tint depth = 0;\n\t\tint newFoundings = 0;\n\t\t\n\t\tdepthLoop: while (depth <= MAX_DEPTH)\n\t\t{\n\t\t\t\n\t\t\tfor (String collected : overCollection)\n\t\t\t{\n\t\t\t\t\n\t\t\t\tif (collected.contains (\"http\"))\n\t\t\t\t\tSpawnCrawler (collected);\n\t\t\t\telse\n\t\t\t\t\tSpawnCrawler (target + collected);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif (newFoundings <= 0)\n\t\t\t\tbreak depthLoop;\n\t\t\t\n\t\t\tdepth++;\n\t\t\t\t\t\t\n\t\t}\n\t\t\n\t}",
"public static void main(String[] args)\n {\n getCurrentOS();\n logFilePath = createLogFile();\n\n // http://ценыконкурентов.рф/\n// String generalURL = \"https://yandex.ru/search/?msid=1482176371.93869.22866.28043&text=%D1%86%D0%B5%D0%BD%D1%8B%D0%BA%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D0%B5%D0%BD%D1%82%D0%BE%D0%B2.%D1%80%D1%84&lr=213\";\n// String generalURL = \"https://yandex.ru/search/?lr=90&msid=1482652454.05074.22877.5047&text=%D1%86%D0%B5%D0%BD%D1%8B%20%D0%BA%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D0%B5%D0%BD%D1%82%D0%BE%D0%B2%20%D1%80%D1%84&vkbd=1\";\n String generalURL = \"https://yandex.ru/search/?text=%D1%86%D0%B5%D0%BD%D1%8B%20%D0%BA%D0%BE%D0%BD%D0%BA%D1%83%D1%80%D0%B5%D0%BD%D1%82%D0%BE%D0%B2\";\n// String generalURL = \"http://pestravka.frontime.ru\";\n startTime = System.currentTimeMillis();\n\n// new StartThread(generalURL, proxy, countIteration >= countTreads).start();\n countIteration = 0;\n// while (countIteration < MAX_COUNT_ITERATION){\n while (countSuccess <= MAX_COUNT_SUCCESS){\n StartTask newTask = new StartTask();\n if (USE_PROXY){\n for (String proxy:getRandomProxy(1).split(\",\")\n ) {\n countIteration++;\n newTask.start(generalURL, proxy);\n }\n }else {\n countIteration++;\n newTask.start(generalURL, \"\");\n }\n\n }\n\n addToResultString(\"Finish work!\");\n }",
"@Override\n public HashSet<String> findPostIds(String catWiseUrl) throws IOException {\n HashSet<String> postId = new HashSet<String>();\n Document document = Jsoup.connect(catWiseUrl).userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"lead-news\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-2nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n }\n\n posts = body.getElementsByClass(\"lead-news-3nd\").first().getElementsByTag(\"a\");\n\n for (Element post:posts) {\n String link = post.attr(\"href\");\n postId.add(link);\n\n if(postId.size()==5)\n break;\n }\n\n return postId;\n }",
"public static void main(String[] args) {\n\t\tNewsLKSpider spider = new NewsLKSpider();\r\n\t\tint i = 0;\r\n\t\twhile (i <= 280) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tString thisUrl = spider.newsURL + String.valueOf(i);\r\n\t\t\tString referer = \"\";\r\n\t\t\tif (i == 0) {\r\n\t\t\t\treferer = spider.newsReferer;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treferer = spider.newsURL + String.valueOf(i - 20);\r\n\t\t\t}\r\n\t\t\tString searchContent = spider.getContent(thisUrl, spider.searchCookie, referer);\r\n\t\t\tspider.getAElement(searchContent);\r\n\t\t\tint times = (int) (Math.random() * 10000 + 10000.);\r\n\t\t\tSystem.out.println(times);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(times);\r\n\t\t\t} catch (InterruptedException 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\ti = i + 20;\r\n\t\t}\r\n\t\tSystem.out.println(\"There are \" + spider.aElemenets.size() + \" news in list.\");\r\n\t\ti = 0;\r\n\t\tSet<Entry<String,String>> keyValue= spider.aElemenets.entrySet();\r\n\t\tfor (Entry<String,String> onePaire : keyValue) {\r\n\t\t\tSystem.out.println(i + \" : \" + onePaire.getValue());\r\n\t\t\tspider.getNewsContent(onePaire.getValue(), onePaire.getKey());\r\n\t\t\ti += 1;\r\n\t\t\tint times = (int) (Math.random() * 10000 + 5000.);\r\n\t\t\tSystem.out.println(\"Sleep times :\"+times);\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(times);\r\n\t\t\t} catch (InterruptedException 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}",
"public void crawlPage() {\n\t\tlogger.info(\"Starting to crawl \" + page.getLink());\n\t\tconsoleLogger.info(\"Starting to crawl \" + page.getLink());\n\n\t\tDocument document = fetchContent(page);\n\t\tif (document == null)\n\t\t\treturn;\n\n\t\tif (shouldSavePage) {\n\t\t\tsavePage(document, page.getLink());\n\t\t}\n\n\t\tlogger.info(\"Done crawling \" + page.getLink());\n\t}",
"@RequestMapping(\"/getResult\")\r\n @ResponseBody\r\n public String prob(@RequestParam String URL){\n \tHashSet<String> res= new CrawlerService().getPageLinks(URL); \t\r\n \tStringBuffer result =new StringBuffer(); \t\r\n \tfor (String item:res){\r\n \t\tresult.append(item+\"<br>\");\r\n \t} \t\r\n return result.toString();\r\n\r\n }",
"public void run() {\n\t\tHtmlPage page = null;\n\t\tHtmlSelect select = null;\n\t\tHtmlOption option = null;\n\t\tDataStreamWriter connection = null;\n\t\tWebClient client = new WebClient(BrowserVersion.FIREFOX_3);\n\t\t/* eseguo i job assegnati al thread in esecuzione */\n\t\tfor(int j = 0; j < this.jobs.length; j++) {\n\t\t\tint currentJob = this.jobs[j];\n\t\t\ttry {\n\t\t\t\t/* faccio dei tentativi per collegarmi alle pagine */\n\t\t\t\tpage = getPage(client, this.getDataSourceURL());\n\t\t\t\t/* seleziono l'opzione relativa alla regione assegnata al task */\n\t\t\t\tselect = (HtmlSelect) page.getByXPath(\"//select\").get(0);\n\t\t\t\toption = select.getOption(currentJob);\n\t\t\t\toption.setSelected(true);\n\t\t\t\tString regione = option.asText();\n\t\t\t\t/* seleziono l'opzione ed ottengo la pagina aggiornata */\n\t\t\t\tpage = (HtmlPage) select.fireEvent(Event.TYPE_CHANGE).getNewPage();\n\t\t\t\t\n\t\t\t\t/* estraggo i dati e li salvo nello \"storage\" */\n\t\t\t\tconnection = this.storageFacade.getDataStreamWriter();\n\t\t\t\tconnection.openStreamWriter();\n\t\t\t\tthis.extractData(client, connection, page, regione);\n\t\t\t}\n\t\t\tcatch (HTMLCrawlerException e) {\n\t\t\t\tSystem.err.println(\"@ HTMLCrawlerException : Extracting Data Error\");\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\t//client.closeAllWindows();\n\t\t\t\tif (connection != null)\n\t\t\t\t\tconnection.closeStreamWriter();\n\t\t\t}\n\t\t}\n\t\tclient.closeAllWindows();\n\t}",
"private void pageContent( String url) {\n\t\t\n\t\tif ( !url.matches(URL)) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tList<String> outlinks = null; // out link urls\n\t\tUrlBean bean = null; // basic info of the url\n\t\t\n\t\tbean = new UrlBean();\n\t\ttry {\n\t\t\t\n\t\t\tconn = Jsoup.connect(url).timeout(5000);\n\t\t\tif ( conn == null) {\n\t\t\t\treturn ;\n\t\t\t}\n\t\t\t\n\t\t\tdocument = conn.get(); // 得到网页源代码,超时时间是5秒\n\t\t\t\n\t\t\t/*\n\t\t\t * 文章基本信息\n\t\t\t */\n\t\t\telements = document.getElementsByTag(\"title\");\n\t\t\tif ( elements!= null && elements.size() != 0) {\n\t\t\t\telement = elements.get(0);\n\t\t\t}\n\t\t\tString title = element.text();\n\t\t\tbean.setTitle(title);\n\t\t\tbean.setKeywords(title);\n\t\t\t\n\t\t\telements = document.getElementsByTag(\"a\");\n\t\t\tif ( elements != null) {\n\t\t\t\tString linkUrl = null;\n\t\t\t\toutlinks = new ArrayList<String>();\n\t\t\t\tfor ( int i = 0; i < elements.size(); i++) {\n\t\t\t\t\tlinkUrl = elements.get(i).attr(\"href\");\n\t\t\t\t\tif ( linkUrl.matches(URL)) {\n\t\t\t\t\t\toutlinks.add(linkUrl);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t} \n\t\t\n\t\tbean.setUrl(url);\n\t\tbean.setId(urlId++);\n\t\tbean.setRank(1);\n\t\tif ( outlinks != null) {\n\t\t\tint count = outlinks.size();\n\t\t\tbean.setOutlinks(count);\n\t\t\tfor ( int i = 0; i < count; i++) {\n\t\t\t\turlsSet.add(outlinks.get(i));\n\t\t\t}\n\t\t\tif ( new AllInterface().addOneUrlInfo(bean, outlinks)) {\n\t\t\t\tSystem.out.println(\"Add to database successfully, url is '\" + url + \"'.\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Fail to add to database, maybe url exists. Url is '\" + url + \"'.\");\n\t\t\t}\n\t\t\tSystem.out.println(\"[\" + count + \" urls remain...]\");\n\t\t\tSystem.out.println();\n\t\t} else {\n\t\t\tSystem.out.println(\"Error occurs in crawl, url is '\" + url + \"'.\");\n\t\t\tSystem.out.println(\"[[FINISHED]]\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}",
"public ArrayList<String> soupThatSite(String url) throws IOException {\n\n ArrayList<String> parsedDoc = new ArrayList<>();\n Document doc = Jsoup.connect(url).get();\n\n if (url.contains(\"cnn.com\")) {\n\n doc.select(\"h1\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n doc.select(\".zn-body__paragraph\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n } else {\n\n doc.select(\"h1\").stream().filter(Element::hasText).forEach(element1 -> {\n String str = element1.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n\n doc.select(\"p\").stream().filter(Element::hasText).forEach(element -> {\n String str = element.text();\n String clean = Jsoup.clean(str, Whitelist.basic());\n parsedDoc.add(clean);\n });\n }\n\n return parsedDoc;\n }",
"WebCrawlerData retrieve(String url);",
"private void parseIndex() throws IOException {\n\t\tDocument doc = Jsoup.connect(WOLFF + \"/bioscopen/cinestar/\").get();\n\t\tElements movies = doc.select(\".table_agenda td[width=245] a\");\n\t\t\n\t\tSet<String> urls = new HashSet<String>();\n\t\tfor(Element movie : movies) {\n\t\t\turls.add(movie.attr(\"href\"));\n\t\t}\n\t\t\n\t\tfor(String url: urls) {\n\t\t\tparseMovie(url);\n\t\t}\n\t}",
"private void innerCrawl(URL url, int limit) {\n\t\t\tsynchronized(urls) {\n\t\t\t\tif(urls.size() <= limit) {\n\t\t\t\t\tqueue.execute(new CrawlWorker(url.toString()));\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void crawlSite()\n {\n /** Init the logger */\n WorkLogger.log(\"WebCrawler start at site \" + this.urlStart.getFullUrl() + \" and maxDepth = \" + this.maxDepth);\n WorkLogger.log(\"====== START ======\");\n WorkLogger.log(\"\");\n /** Save the start time of crawling */\n long startTime = System.currentTimeMillis();\n /** Start our workers */\n this.taskHandler.startTask(this.urlStart, maxDepth);\n /** Check workers finished their work; in case then all workers wait, then no ones work, that leads no more tasks -> the program finished */\n while(this.taskHandler.isEnd() == false)\n {\n /** Default timeout for 1 sec cause the socket timeout I set to 1 sec */\n try{Thread.sleep(1000);}catch(Exception e){}\n }\n this.taskHandler.stopTasks();\n /** End the log file and add the time elapsed and total sites visited */\n WorkLogger.log(\"\\r\\n====== END ======\");\n WorkLogger.log(\"Time elapsed: \" + (System.currentTimeMillis() - startTime)/1000.);\n WorkLogger.log(\"Total visited sites: \" + this.pool.getVisitedSize());\n }",
"public static void main(String[] args) throws IOException \n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Please input the keyword: \");\n\t\tString keyword = sc.next();\n\t\tsc.close();\n\t\n\t\tKeywordList kLst = new KeywordList();\t\n\t\tSystem.out.println(\"-------------------------------------------------------\\nRelative Word List: \");\n\t\tkLst.printKeywordList(kLst.getKeywords());\n\t\tSystem.out.print(\"-------------------------------------------------------\\nValid Web Pages for Keyword [\" + keyword + \"]: \\n\");\n\t\tGoogleSearch google = new GoogleSearch(keyword);\n\t\tSystem.out.print(google.toString());\n\t\t\n\t\tArrayList<WebNode> wLst = new ArrayList<WebNode>();\t\n\t\t\n\t\ttry \n\t\t{\t\t\n\t\t\tfor(String title: google.query().keySet()) \n\t\t\t{\n\t\t\t\tString webUrl = google.query().get(title);\t\n\t\t\t\tWebPage rootPage = new WebPage(webUrl, title);\n\t\t\t\tWebTree tree = new WebTree(rootPage);\n\t\t\t\t\t\n\t\t\t\tChildPageQuery childQ = new ChildPageQuery(webUrl);\n\t\t\t\tint count = 0;\n\t\t\t\tif(childQ.query() != null) \n\t\t\t\t{\t\t\t\n\t\t\t\t\tfor(String childUrl: childQ.query()) \n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tcount++;\t\t\t\t\t\t\t\n\t\t\t\t\t\ttree.root.addChild(new WebNode(new WebPage(childUrl, count + \"\")));\n\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\ttree.setPostOrderScore(kLst.getKeywords());\n\t\t\t\t\twLst.add(tree.root);\n\t\t\t\t}\n\t\t\t}\t\n\t\t\t\n\t\t\tWebRating rating = new WebRating(wLst);\n\t\t\trating.sort();\n\t\t\tSystem.out.println(\"-------------------------------------------------------\\n★★★Rating★★★\\n(Title, Total Child Pages, Total Root Page Score)\");\n\t\t\tSystem.out.print(rating.output());\n\t\t} \n\n\t\tcatch(IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Test\n public void TestScrapeMgr() throws Exception {\n ExecutorService e = Executors.newFixedThreadPool(4);\n ScrapeManager sm = new ScrapeManager(e);\n\n DALManager dm = new DALManager();\n Account a = dm.AllAccounts().get(0);\n Campaign c = a.getSelectCampaign();\n for (AConfiguration cf : c.getConfigurations()) {\n if (cf.getQueries() == null) {\n cf.setQueries(new ArrayList<AQuery>());\n }\n AQuery nw = new AQuery(\"fashion\", null, PinterestObject.PinterestObjectResources.External);\n cf.getQueries().add(nw);\n\n System.err.println(\"\" + cf.getClass().getSimpleName() + \" \" + cf.toString());\n Map<PinterestObject, Board> lst = new HashMap<>();\n Map<PinterestObject, Board> scraped = sm.Scrape(cf, a, null); //page 1 ; may return null !!!\n if (scraped == null) {\n System.err.println(\"nothing to scrape***\");\n } else {\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n scraped = sm.Scrape(cf, a, null);//page 2\n lst.putAll(scraped);\n scraped.clear(); /// !!!!!!!!!\n\n int i = 1;\n for (Map.Entry<PinterestObject, Board> kv : lst.entrySet()) {\n System.err.println(\n (i++) + \" \" + ((Pin) kv.getKey()).getHashUrl()\n );\n }\n }\n System.err.println(\"__\");\n System.err.println(\"__\");\n }\n\n }",
"@Override\n public HashSet<String> findPostIds() throws IOException {\n HashSet<String> postId = new HashSet();\n Document document = Jsoup.connect(\"https://www.bd-pratidin.com/\").userAgent(\"Opera\").get();\n Element body = document.body();\n\n Elements posts = body.getElementsByClass(\"home-latest-news\").first().getElementsByTag(\"a\");\n for (int i=0;i<20;i++) {\n String link = posts.get(i).attr(\"href\");\n postId.add(link);\n }\n return postId;\n }",
"private static Set<String> scrapeHTML(String html) {\n\t\tSet<String> set = new HashSet<String>();\n\t\tint skipLength = 0;\n\t\tint counter = 0;\n\t\t// the subtraction of 15 is because of the number of characters in \n\t\t// \"<a href=\\\"/wiki/\", to avoid a index out of bounds error\n\t\tfor(int i = 0; i < html.length()-15; i++) {\n\t\t\tif(html.substring(i, i+15).equals(\"<a href=\\\"/wiki/\")) {\n\t\t\t\t// if format matches starts to check the following characters\n\t\t\t\t// to check if it does not contain a : or a #\n\t\t\t\tchar ch = html.charAt(i+15);\n\t\t\t\tString str = \"\";\n\t\t\t\tint count = 0;\n\t\t\t\twhile(html.charAt(i+count+15) != '\"'){\n\t\t\t\t\tif(html.charAt(i+count+15) == ':' || html.charAt(i+count+15) == '#') {\n\t\t\t\t\t\tstr = \"\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tch = html.charAt(count+i+15);\n\t\t\t\t\tstr += ch;\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\t\t// adds if the page name is not empty\n\t\t\t\tif(str != \"\")\n\t\t\t\tset.add(str);\n\t\t\t\tskipLength = str.length();\n\t\t\t\tcount = 0;\n\t\t}\n\t\t\ti += skipLength;\n\t\t\tskipLength = 0;\n\t\t\tcounter++;\n\t\n\t}\n\treturn set;\n}",
"public static void main(String[] args) {\n String fileName = \"voca.html\";\n// String url = \"https://play.google.com/store/search?q=bcs&c=apps\";\n// String url = \"https://play.google.com/store/search?q=vocabulary&c=apps\";\n \n try {\n Document doc = Jsoup.parse(new File(fileName), \"utf-8\");\n Element divTag = doc.getElementById(\"mydiv\");\n Elements elements = divTag.getElementsByClass(\"card no-rationale square-cover apps small\");\n \n//this will print only 50 names\n// Document doc = Jsoup.connect(url).get();\n// Elements elements = doc.getElementsByClass(\"card no-rationale square-cover apps small\");\n \n for (Element element : elements) {\n// System.out.println(x++);\n name_link(element);\n }//for \n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public interface Crawler {\n int size();\n boolean visited(String link);\n void addNewLinkToSitemap(String link);\n void addToChildSitemap(String parent, String child);\n void addVisited(String s, Integer depth);\n void startCrawling(String requestid, String link, int maxDepth);\n ForkJoinPool getMainPool();\n Map<String, Collection<String>> getSiteMap();\n}",
"int countByExample(CrawlExample example);",
"public void recv_from_crawler() throws ClassNotFoundException\r\n {\n\r\n\r\n\t\tbyte[] yourBytes_url= new byte[10000];\r\n\r\n\r\n\r\n\t\t//10000 is assumed to be max url size\r\n\t\tStatus status = null;\r\n\t\ttry{\r\n\t\tstatus=MPI.COMM_WORLD.Recv(yourBytes_url,0,10000,MPI.BYTE,0,MPI.ANY_TAG);\r\n\t\t}\r\n\t\tcatch(MPIException e)\r\n\t\t{\r\n\t\t\t\r\n\t\t}\r\n\t // System.out.println(\"now indexer start........\");\r\n\r\n\t\tif(status.tag==1)\r\n\t\t{\r\n\t\t\tis_Recrawling=true;\r\n\t\t\tif(first)\r\n\t\t\t{\r\n\t\t\t\tfirst=false;\r\n\t\t\t\tSystem.out.println(\"reindexing------------\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\r\n\r\n\t\t//Create object from bytes\r\n\t\tByteArrayInputStream bis = new ByteArrayInputStream(yourBytes_url);\r\n\t\tObjectInput in = null;\r\n\t\ttry {\r\n\t\t in = new ObjectInputStream(bis);\r\n\t\t url = (URL) in.readObject();\r\n\t\t// System.out.println(\"url_from_crawler 1 ----> \"+url.toString());\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t try {\r\n\t\t if (in != null) {\r\n\r\n\t\t in.close();\r\n\t\t }\r\n\t\t } catch (IOException ex) {\r\n\t\t // ignore close exception\r\n\t\t }\r\n\t\t}\r\n\r\n\r\n\r\n\t\t//get_document_from_db();\r\n\r\n }",
"@Override\n\tpublic void visit(Page page) {\n\t\t\n\t\ttry{\n\t\t\tfin=\"\";\n\t\t\tif(flag == 0){\n\t\t\t\tfw = new FileWriter(wrtFile);\n\t\t\t\tfw1 = new FileWriter(wrtFile1);\n\t\t\t\tvisit_url = new HashSet<String>();\n\t\t\t\tall_txt = new HashSet<String>();\n\t\t\t\teng_sen = new ArrayList<String>();\n\t\t\t}\n\t\t\tflag++;\n\t\t\tsynchronized (this) {\n\t\t\t\tif(page.getParseData() instanceof HtmlParseData){\n\t\t\t\t\tHtmlParseData htmlParseData = (HtmlParseData) page.getParseData();\n\t\t\t\t\tString html = htmlParseData.getHtml();\n\t\t\t\t\tString url = page.getWebURL().getURL().toLowerCase();\n\t\t\t\t\t//System.out.println(\"VISIT: \"+ url);\n\t\t\t\t\t//System.out.println(\"HTML: \"+ html);\n\t\t\t\t\tDocument doc = Jsoup.parse(html);\n\t\t\t\t\tdoc.removeClass(\"twitter-tweet\");\n\t\t\t\t\tElements links = doc.select(\"div\");\n\t\t\t\t\tIterator<Element> it = links.iterator();\n\t\t\t\t\t\n\t\t\t\t\tString text=\"\";\n\t\t\t\t\tElement link;\n\t\t\t\t\tElements children;\n\t\t\t\t\twhile(it.hasNext()){\n\t\t\t\t\t\tlink = it.next();\n\t\t\t\t\t\tif(link.attr(\"class\").equals(\"desc\")){\n\t\t\t\t\t\t\t//System.out.println(\"Division Class: \"+ link.attr(\"class\"));\n\t\t\t\t\t\t\t//text.replaceAll(\",\", \"(COMMA)\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchildren = link.children();\n\t\t\t\t\t\t\tif(!children.isEmpty()){\n\t\t\t\t\t\t\t\tIterator<Element> child_it = children.iterator();\n\t\t\t\t\t\t\t\tElement child;\n\t\t\t\t\t\t\t\twhile(child_it.hasNext()){\n\t\t\t\t\t\t\t\t\tchild = child_it.next(); \n\t\t\t\t\t\t\t\t\tif(child.attr(\"data-lang\").equals(\"en\") || child.attr(\"class\").equals(\"instagram-media\") || child.text().contains(\"Read Also\")){\n\t\t\t\t\t\t\t\t\t\tchild.text(\"\");\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(!text.contains(link.text())){\t\t\n\t\t\t\t\t\t\t\tif(!link.text().matches(\".*Updated (Mon|Tue|Wed|Thu|Fri|Sat|Sun).*\")){\n\t\t\t\t\t\t\t\t\ttext += link.text();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(link.attr(\"class\").equals(\"caption\")){\n\t\t\t\t\t\t\t//System.out.println(\"Division Class: \"+ link.attr(\"class\"));\n\t\t\t\t\t\t\t//text.replaceAll(\",\", \"(COMMA)\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchildren = link.children();\n\t\t\t\t\t\t\tif(!children.isEmpty()){\n\t\t\t\t\t\t\t\tIterator<Element> child_it = children.iterator();\n\t\t\t\t\t\t\t\tElement child;\n\t\t\t\t\t\t\t\twhile(child_it.hasNext()){\n\t\t\t\t\t\t\t\t\tchild = child_it.next(); \n\t\t\t\t\t\t\t\t\tif(child.attr(\"data-lang\").equals(\"en\") || child.attr(\"class\").equals(\"instagram-media\") || child.text().contains(\"Read Also\")){\n\t\t\t\t\t\t\t\t\t\tchild.text(\"\");\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(!text.contains(link.text())){\t\t\n\t\t\t\t\t\t\t\tif(!link.text().matches(\".*Updated (Mon|Tue|Wed|Thu|Fri|Sat|Sun).*\")){\n\t\t\t\t\t\t\t\t\ttext += link.text();\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(text != \"\"){\n\t\t\t\t\t\tif(!visit_url.contains(url) && !all_txt.contains(text)){\n\t\t\t\t\t\t\tfin = text+\"\\n\";\n\t\t\t\t\t\t\tfin1 = url+\"\\n\";\n\t\t\t\t\t\t\t//System.out.println(\"Text: \"+ text);\n\t\t\t\t\t\t\t//System.out.println(\"URL: \"+ url);\n\t\t\t\t\t\t\tFiles.write(Paths.get(wrtFile), fin.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\t\t\tFiles.write(Paths.get(wrtFile1), fin1.getBytes(), StandardOpenOption.APPEND);\n\t\t\t\t\t\t\tall_txt.add(text);\n\t\t\t\t\t\t\tvisit_url.add(url);\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}catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public static void main(String[] arg) throws IOException, URISyntaxException, InterruptedException {\n DB = new manageDB();\n Crawler crawler = new Crawler();\n DBLock=new AtomicInteger(0);\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n crawler.CrawlerProcess(5);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n }\n }).start();\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n processedCrawledPages=0;\n outputSection = new HashSet<>();\n while (true) {\n crawlerOutput = crawler.crawlerOutput;\n if (crawlerOutput != null)\n {\n if (crawlerOutput.size() > 0)\n {\n Iterator<Crawler.OutputDoc> itr = crawlerOutput.iterator();\n if(itr.hasNext())\n {\n Crawler.OutputDoc output;\n synchronized (crawlerOutput) {\n output = itr.next();\n outputSection.add(output);\n }\n if(processedCrawledPages%10==0)\n {\n //lock db to be exclusive for POP function\n DBLock.set(1);\n processedCrawledPages=0;\n try {\n Thread popThread=new Thread(new POPClass(outputSection));\n popThread.start();\n popThread.join();\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n outputSection.clear();\n \n }\n while(DBLock.intValue()==1);\n processedCrawledPages +=1;\n DB.docProcess(output);\n synchronized (crawlerOutput) {\n crawlerOutput.remove(output);\n }\n }\n\n }\n }\n }\n }\n\n }).start();\n\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n ServerSocket serverSocket = new ServerSocket(7800);\n System.out.println(\"server is up and running...\");\n while (true) {\n Socket s = serverSocket.accept();\n System.out.println(\"server accepted the query...\");\n DataInputStream DIS = new DataInputStream(s.getInputStream());\n String query_and_flags = DIS.readUTF();\n Boolean imageSearch = false;\n Boolean phraseSearch = false;\n System.out.println(\"query_and_flags=\" + query_and_flags);\n String[] list_query_and_flags = query_and_flags.split(\"@\");\n String query = list_query_and_flags[0];\n if (list_query_and_flags[1].equals(\"phrase\"))\n phraseSearch = true;\n if (list_query_and_flags[2].equals(\"yes\"))\n imageSearch = true;\n\n if (imageSearch)\n manageDB.imageSearch(query);\n else manageDB.rank(query,phraseSearch);\n if (phraseSearch)\n System.out.println(\"it's phrase search\");\n else System.out.println(\"no phrase search\");\n DIS.close();\n s.close();\n\n }\n } catch (IOException | SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }).start();\n\n\n }",
"private void extractFirstFivePubsCites() {\r\n try {\r\n List<String> citeMatches = new ArrayList<String>();\r\n // gets all matched objects for extracting publication citations.\r\n Matcher matcherObject = matcher.patternMatcher(\"FivePubsCites\");\r\n\r\n\r\n while (matcherObject.find()) {\r\n citeMatches.add(matcherObject.group(2));\r\n }\r\n\r\n int fiveCiteMatches;\r\n\r\n // adds the total according to if minimum five publications can be found\r\n if (citeMatches.size() < 5) {\r\n fiveCiteMatches = citeMatches.size();\r\n } else {\r\n fiveCiteMatches = 5;\r\n }\r\n\r\n if (citeMatches.size() != 0) {\r\n int count = 0;\r\n int total = 0;\r\n while (count < fiveCiteMatches) {\r\n total += Integer.parseInt(citeMatches.get(count));\r\n count++;\r\n }\r\n\r\n format.Formatter(5, total);\r\n\r\n }\r\n\r\n } catch (Exception e) {\r\n System.out\r\n .println(\"Error has occured in extractFirstFivePubsCites method\");\r\n }\r\n }",
"public void crawl(String dir, String domain, int limit, IProgressMonitor monitor, boolean[] jsonFilter){\n\t\tint downloadCount = 0;\n\t\tjsonFactory = new JsonFactory();\n\t\tthis.monitor = monitor;\n\t\tFile streamFile = new File(dir+File.separator+domain+\".json\");\n\t\ttry {\n\t\t\tjsonGenerator = jsonFactory.createGenerator(streamFile, JsonEncoding.UTF8);\n\t\t\tjsonGenerator.useDefaultPrettyPrinter();\n\t\t\tjsonGenerator.writeStartArray();\n\t\t} catch (IOException e2) {\n\t\t\te2.printStackTrace();\n\t\t}\n\t\tint count = 1;\n\t\tint year = 2016;\n\t\tFile f=null;\n\t\twhile(true){\n\t\t\tif(limit!=-1 && count>limit)\n\t\t\t\tbreak;\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString name = FrontierConstants.site2Link.get(domain)+\".\"+year+\".\"+String.format(\"%05d\", count);\n\t\t\t\tf = new File(dir+File.separator+name+\".txt\");\n\t\t\t\tString site = IFrontierConstants.BASE_URL+name+\"/full\";\n\t\t\t\tDocument d = Jsoup.connect(site).get();\n\t\t\t\t//Document docJournalAbstract = Jsoup.parse(d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(1).toString());\n\t\t\t\tElements docJournalAbstract = d.select(\"div.JournalAbstract\");\n\t\t\t\tElements title = docJournalAbstract.select(\"h1\");\n\t\t\t\tElements abs = docJournalAbstract.select(\"p\");\n\t\t\t\tConsoleView.printlInConsoleln(\"Writing topic: \"+ Jsoup.parse(title.toString()).text());\n\t\t\t\tjsonGenerator.writeStartObject();\n\t\t\t\tif(jsonFilter[0])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"title\", Jsoup.parse(title.toString()).text());\n\t\t\t\tif(jsonFilter[1])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"abstract_body\", Jsoup.parse(abs.toString()).text());\n\t\t\t\t//String abstractBody = d.body().child(2).child(4).child(0).child(1).child(1).child(0).child(0).child(0).child(2).toString();\n\t\t\t\tString abstractBody = d.select(\"div.JournalFullText\").toString();\n\t\t\t\tint i = abstractBody.indexOf(\"References\");\n\t\t\t\tif(i != -1){\n\t\t\t\tString journalBody = abstractBody.substring(0, i);\n\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(journalBody).text());\n\t\t\t\tif(jsonFilter[3])\n\t\t\t\t\tjsonGenerator.writeObjectField(\"references\", Jsoup.parse(abstractBody.substring(i+10)).text());\n\t\t\t\t}else{\n\t\t\t\t\tif(jsonFilter[2])\n\t\t\t\t\t\tjsonGenerator.writeObjectField(\"journal_body\", Jsoup.parse(abstractBody).text());\n\t\t\t\t}\n\t\t\t\tjsonGenerator.writeEndObject();\n\t\t\t\tcount++;\n\t\t\t\tdownloadCount++;\n\t\t\t\tmonitor.worked(1);\n\t}catch(HttpStatusException e1){\n\t\tf.delete();\n\t\tif(e1.getStatusCode() == 412){\n\t\t\tcount++;\n\t\t\tcontinue;\n\t\t}\n\t\telse if(count != 1){\n\t\t\tyear--;\n\t\t\tcount = 1; \n\t\t\tcontinue;\n\t\t}\n\t\telse\n\t\t\tbreak;\n\t} catch (IOException e) {\n\t\te.printStackTrace();\n\t}\n\t}\n\t\ttry {\n\t\t\tjsonGenerator.writeEndArray();\n\t\t\tjsonGenerator.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tConsoleView.printlInConsoleln(downloadCount+\" file(s) downloaded for \"+domain);\n}",
"public static void main(String[] args) throws IOException {\n Deque<String> urlsToVisit = new ArrayDeque<String>();\n // Keep track of which URLs we have visited, so we don't get ourselves stuck in a loop.\n List<String> visitedUrls = new ArrayList<String>();\n // Keep track of how we got to each page, so that we can find our trace back to the BEGIN_URL.\n Hashtable<String, String> referrers = new Hashtable<String, String>();\n boolean pathFound = false;\n\n // Begin with the BEGIN_URL\n urlsToVisit.push(BEGIN_URL);\n\n while(!urlsToVisit.isEmpty() && !pathFound) {\n String currentUrl = urlsToVisit.pop();\n visitedUrls.add(currentUrl);\n\n Elements paragraphs = wf.fetchWikipedia(BASE_URL + currentUrl);\n List<String> pageUrls = new ArrayList<String>();\n\n for (Element p : paragraphs) {\n pageUrls.addAll(getLinksFromParagraph(p));\n }\n\n // Reverse the order of all page urls so that when we're done pushing all the URLS\n // to the stack, the first URL in the page will be the first URL in the current page.\n Collections.reverse(pageUrls);\n\n // Add all the URLs to the list of URLs to visit.\n for (String newUrl : pageUrls) {\n if(!visitedUrls.contains(newUrl)) {\n urlsToVisit.push(newUrl);\n // Record how we ended up at newUrl.\n referrers.put(newUrl, currentUrl);\n\n // Check if one of the links in this page is the END_URL; which means we'll be done!\n if (newUrl.equals(END_URL)) {\n pathFound = true;\n }\n }\n }\n }\n\n if (pathFound) {\n System.out.println(\"=================\");\n System.out.println(\"Path found!\");\n System.out.println(\"=================\");\n\n // Back trace how we ended up at END_URL.\n String backtraceUrl = END_URL;\n System.out.println(backtraceUrl);\n while(backtraceUrl != BEGIN_URL) {\n String referrerUrl = referrers.get(backtraceUrl);\n System.out.println(referrerUrl);\n backtraceUrl = referrerUrl;\n }\n } else {\n System.out.println(\"=================\");\n System.out.println(\"No path found :(\");\n System.out.println(\"=================\");\n }\n }",
"@Override\n protected String doInBackground(String... urls) {\n StringBuilder sb = new StringBuilder();\n StringBuilder sbCount = new StringBuilder();\n HttpURLConnection urlConnection = null;\n InputStream inputStream;\n try {\n URL url = new URL(urls[0]);\n URL urlCount = new URL(String.format(URL, url));\n\n // Open connection\n urlConnection = (HttpURLConnection) urlCount.openConnection();\n urlConnection.setChunkedStreamingMode(0);\n\n inputStream = new BufferedInputStream(urlConnection.getInputStream());\n if (inputStream != null){\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n String line = null;\n\n // Read Server Response\n while((line = br.readLine()) != null){\n // Append server response in string\n sbCount.append(line + \"\");\n }\n }\n String str = sbCount.toString();\n int count = Integer.parseInt(str);\n if(count<50){\n // Open connection\n urlConnection = (HttpURLConnection) url.openConnection();\n urlConnection.setChunkedStreamingMode(0);\n \n inputStream = new BufferedInputStream(urlConnection.getInputStream());\n if (inputStream != null){\n BufferedReader br = new BufferedReader(new InputStreamReader(inputStream));\n String line = null;\n \n // Read Server Response\n while((line = br.readLine()) != null){\n // Append server response in string\n sb.append(line + \"\");\n }\n }\n }else{\n return null;\n }\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }finally{\n if (urlConnection!=null){\n urlConnection.disconnect();\n }\n }\n return sb.toString();\n }",
"void retrievePageContents()\n\t{\n\t\tStringBuilder longString = new StringBuilder();\n\t\tfor (int i = 0; i < pageContents.size(); i++)\n\t\t{\n\t\t\tlongString.append(pageContents.get(i));\n\t\t}\n\t\tString pageMarkup = longString.toString().toLowerCase();\n\t\textractComments(pageMarkup);\n\n\t}",
"public void iterateThroughtEachElement(){\r\n ArrayList<String> links = examineHTML.getHrefOffers();\r\n \r\n int index = 0;\r\n \r\n for(String link:links){\r\n getHTMLOffer(link, index);\r\n ++index;\r\n }\r\n /*for(int i = 0; i < 10; i++){\r\n getHTMLOffer(links.get(i), index);\r\n ++index;\r\n }*/\r\n \r\n analyzeEachOffer();\r\n }",
"void runC() {\n\t\tArrayList<Link> links_s2 = new ArrayList<Link>(links_s);\n\t\tArrayList<Link> links_p2 = new ArrayList<Link>(links_p);\n\t\talgorithmC = new HashSet<Link>(algorithmC(links_p2, links_s2));\n\t}",
"public void beginCrawling() {\n\n if (urlsFile != null\n && emailsFile != null\n && urlsWriter != null\n && emailsWriter != null) {\n crawl(startUrl);\n }\n }",
"FetchedImage getFujimiyaUrl(String query,int maxRankOfResult){\n try{\n //Get SearchResult\n Search search = getSearchResult(query, maxRankOfResult);\n List<Result> items = search.getItems();\n for(Result result: items){\n int i = items.indexOf(result);\n logger.log(Level.INFO,\"query: \" + query + \" URL: \"+result.getLink());\n logger.log(Level.INFO,\"page URL: \"+result.getImage().getContextLink());\n if(result.getImage().getWidth()+result.getImage().getHeight()<600){\n logger.log(Level.INFO,\"Result No.\"+i+\" is too small image. next.\");\n continue;\n }\n if(DBConnection.isInBlackList(result.getLink())){\n logger.log(Level.INFO,\"Result No.\"+i+\" is included in the blacklist. next.\");\n continue;\n }\n HttpURLConnection connection = (HttpURLConnection)(new URL(result.getLink())).openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setInstanceFollowRedirects(false);\n connection.connect();\n if(connection.getResponseCode()==200){\n return new FetchedImage(connection.getInputStream(),result.getLink());\n }else{\n logger.log(Level.INFO,\"Result No.\"+i+\" occurs error while fetching the image. next.\");\n continue;\n }\n }\n //If execution comes here, connection has failed 10 times.\n throw new ConnectException(\"Connection failed 10 times\");\n\n } catch (IOException e) {\n // TODO Auto-generated catch block\n logger.log(Level.SEVERE,e.toString());\n e.printStackTrace();\n }\n return null;\n}",
"public int getPagesCrawled() {\n return pagesCrawled;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tCrawler crawler = new Crawler();\n\t\t\tSystem.setProperty(\"https.proxyHost\", \"192.168.2.101\");\n\t\t\tSystem.setProperty(\"https.proxyPort\", \"1080\");\n\n\t\t\tfillUrls(crawler.url, crawler.urlsToBeCrawled, crawler.depthMap);\n\t\t\tcrawler.addUrl(crawler.url, 1);\n\t\t\tlong start = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Crawling started\");\n\t\t\tcrawler.begin();\n\t\t\t\n\t\t\twhile (true) {\n\t\t\t\tif (crawler.urlsToBeCrawled.isEmpty() && Thread.activeCount() == 1 || crawler.count == crawler.threadCount) {\n\t\t\t\t\tCollections.sort(crawler.brs, new SortByRating());\n\t\t\t\t\twriteExcel(\"C://test1.xls\", crawler.brs);\n\n\t\t\t\t\tlong end = System.currentTimeMillis();\n\t\t\t\t\tSystem.out.println(\"Total crawl time\" + (end - start) / 1000 + \" seconds\");\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void searchWeb()\n {\n searchWeb = true;\n search();\n }",
"protected void reduce(Text mainUrl, Iterable<Text> links, Context context) throws IOException, InterruptedException {\n\n LinkedList<String> linksIn = new LinkedList<>();\n LinkedList<String> linksOut = new LinkedList<>();\n\n for (Text link : links) {\n char who = link.toString().trim().charAt(0);\n String content = link.toString().trim().substring(1);\n if (who == '>') {\n linksOut.add(content);\n } else if (who == '<') {\n linksIn.add(content);\n }\n }\n\n // Собираем статистику\n context.getCounter(\"TOPS\", \"ALL\").increment(1);\n if (linksOut.size() == 0) {\n context.getCounter(\"TOPS\", \"HANGING\").increment(1);\n }\n\n context.write(mainUrl, new Text(\"###\\t\" + String.join(\"\\t\", linksOut) + \"\\t###\\t\" + String.join(\"\\t\", linksIn)));\n }",
"public static void main(String[] args) throws IOException {\r\n\t\t\r\n // some example code to get you started\r\n\r\n\t\tString url = \"https://en.wikipedia.org/wiki/Java_(programming_language)\";\r\n\t\tElements paragraphs = wf.fetchWikipedia(url);\r\n\t\tString baseUrl = \"https://en.wikipedia.org\";\r\n\t\tString location = \"\";\r\n\t\tList<String> visited = new ArrayList<>();\r\n\t\tElement firstPara = paragraphs.get(0);\r\n\t\tboolean notFound = true;\r\n\t\tboolean first = false;\r\n\t\tint i = 0;\r\n\t\tIterable<Node> iter = new WikiNodeIterable(firstPara);\r\n\t\tvisited.add(url);\r\n\t\twhile (notFound && i < 7) {\r\n\t\t\tfor (Node node: iter) {\r\n\t\t\t\tif (node instanceof Element) {\r\n\t\t\t\t\tElement e2 = (Element) node;\r\n\t\t\t\t\tString e2txt = e2.text();\r\n\t\t\t\t\tElements e = e2.children();\r\n\t\t\t\t\tfor (Node n : e) {\r\n\t\t\t\t\t\tif (n instanceof Element) {\r\n\t\t\t\t\t\t\tElement e3 = (Element) n;\r\n\t\t\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\t\t\tif (e3.tag().toString().equals(\"a\")) {\r\n\t\t\t\t\t\t\t\t\tif (e2txt.indexOf(\"(\") < e2txt.indexOf(e3.text()) && e2txt.indexOf(\")\") > e2txt.indexOf(e3.text())) {\r\n\r\n\t\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\t\tfirst = true;\r\n\t\t\t\t\t\t\t\t\t\tString str = e3.toString();\r\n\t\t\t\t\t\t\t\t\t\tString[] arr = str.split(\" \");\r\n\t\t\t\t\t\t\t\t\t\tlocation = arr[1].substring(6, arr[1].length() - 1);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (!first) {\r\n\t\t\t\t\t\tSystem.out.println(\"No links found, exiting.\");\r\n\t\t\t\t\t\treturn;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tparagraphs = wf.fetchWikipedia(baseUrl + location);\r\n\t\t\titer = new WikiNodeIterable(paragraphs.get(0));\r\n\t\t\tfirst = false;\r\n\t\t\tif (visited.contains(baseUrl + location)) {\r\n\t\t\t\tSystem.out.println(\"Links go in a loop, exiting\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tvisited.add(baseUrl + location);\r\n\t\t\ti++;\r\n\t\t\tif (location.substring(6).equals(\"Philosophy\")) {\r\n\t\t\t\tnotFound = false;\r\n\t\t\t\tSystem.out.println(\"Philosophy found in \" + i + \" jumps\");\r\n\t\t\t}\r\n }\r\n System.out.println(visited);\r\n\t}",
"public static void main(String[] args) throws IOException,FileNotFoundException,NullPointerException {\n\t\tint _fileNumber = 1;\n\t\ttry {\n\t\t\tFile _directory = new File(\"C:\\\\Users\\\\Aayush\\\\Desktop\\\\Advance Computing Concepts\\\\W3C Web Pages\");\n\t\t\tFile[] _fileArray = _directory.listFiles();\n\t\t\tFile[] _fileArray2 = new File[102];\n\t\t\tint _numberOfFiles=0;\n\t\t\tfor(int _i=0;_i<(_fileArray.length);_i++)\n\t\t\t{\n\t\t\t\tif(_fileArray[_i].isFile())\n\t\t\t\t{\n\t\t\t\t\t_fileArray2[_numberOfFiles] = _fileArray[_i];\n\t\t\t\t\t_numberOfFiles++;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=0;i<100;i++)\n\t\t\t{\n\t\t\t\tconvertHtmlToText(_fileArray2[i],_fileNumber);\n\t\t\t\t_fileNumber = _fileNumber + 1;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Exception:\"+e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\t\n\t\t}\n\t}",
"public void torrentScrape() {\n\t\tAlfred.getTorrentScraper().scrape();\n\t}",
"public static void main(String[] args) {\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\tMyAbstractWebSpider mywebspider1=new MyConcreteWebSpider();\n\t\t//\n\t\t//\n\t\t//\n\t\tRunnable runnableProcessSpider=new ProcessSpider(mywebspider1);\n\t\tnew Thread(runnableProcessSpider).start();\n\t\t//\n\t\t//\n\t\tRunnable runnableDownLoadPicFactory=new DownLoadPicFactory(mywebspider1);\n\t\tnew Thread(runnableDownLoadPicFactory).start();\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\tMyThreadSleep.sleep10s();\n\t\tMyThreadSleep.sleep10s();\n\t\tProcessSpider runnableProcessSpiderToCatchAnswer1=new ProcessSpider(mywebspider1){\n\t\t\t@Override\n\t\t\tpublic void myprocess()\n\t\t\t{\n\t\t\t\t//存在有可能跟其他线程先后进入了同个收藏夹一起进行遍历,此时该收藏夹的搜索就由多个线程一起爬,但是已收入的答案就不会收入url队列里了\n\t\t\t\tfor(;this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()>=0;)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"getStrqueueImgUrlToRequest1 size!!!!!!!!!!!!!!!!:\"+this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueImgUrlToRequest1() );\n\t\t\t\t\tif(this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()<=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tMyThreadSleep.sleep5s();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tMyThreadSleep.sleep2s();\n\t\t\t\t\tfor(int overI=0;overI<=this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()-1;overI++)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.getWebDriver1().navigate().to(this.getMyWebSpider1().getUrlWarehouse1().pollStrqueueCollectionUrlToRequest1());\n\t\t\t\t\t\tMyThreadSleep.sleep2s();\n\t\t\t\t\t\t//搜寻每个收藏夹的答案(路径包括问题)\n\t\t\t\t\t\t//mywebspider1.getQuesionUrlWithoutAnswerUrlInSpecifiedPage(driver1);\n\t\t\t\t\t\tthis.getMyWebSpider1().getQuesionUrlWithAnswerUrlInSpecifiedPage(this.getWebDriver1());\n\t\t\t\t\t\tthis.getMyWebSpider1().getUrlToTurnToNextPageInInSpecifiedPage(this.getWebDriver1());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\t\tnew Thread((Runnable)runnableProcessSpiderToCatchAnswer1).start();\n\t\t//\n\t\t//\n/*\t\tMyThreadSleep.sleep10s();\n\t\tMyThreadSleep.sleep10s();\n\t\tProcessSpider runnableProcessSpiderToCatchAnswer2=new ProcessSpider(mywebspider1){\n\t\t\t@Override\n\t\t\tpublic void myprocess()\n\t\t\t{\n\t\t\t\t//存在有可能跟其他线程先后进入了同个收藏夹一起进行遍历,此时该收藏夹的搜索就由多个线程一起爬,但是已收入的答案就不会收入url队列里了\n\t\t\t\tfor(;this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()>=0;)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"getStrqueueImgUrlToRequest1 size!!!!!!!!!!!!!!!!:\"+this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueImgUrlToRequest1() );\n\t\t\t\t\tif(this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()<=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tMyThreadSleep.sleep5s();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tMyThreadSleep.sleep2s();\n\t\t\t\t\tfor(int overI=0;overI<=this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueCollectionUrlToRequest1()-1;overI++)\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.getWebDriver1().navigate().to(this.getMyWebSpider1().getUrlWarehouse1().pollStrqueueCollectionUrlToRequest1());\n\t\t\t\t\t\tMyThreadSleep.sleep2s();\n\t\t\t\t\t\t//搜寻每个收藏夹的答案(路径包括问题)\n\t\t\t\t\t\t//mywebspider1.getQuesionUrlWithoutAnswerUrlInSpecifiedPage(driver1);\n\t\t\t\t\t\tthis.getMyWebSpider1().getQuesionUrlWithAnswerUrlInSpecifiedPage(this.getWebDriver1());\n\t\t\t\t\t\tthis.getMyWebSpider1().getUrlToTurnToNextPageInInSpecifiedPage(this.getWebDriver1());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\t\tnew Thread((Runnable)runnableProcessSpiderToCatchAnswer2).start();*/\n\t\t//\n\t\t//\n\t\t//\n\t\t//\n\t\tMyThreadSleep.sleep10s();\n\t\tMyThreadSleep.sleep10s();\n\t\tProcessSpider runnableProcessSpiderToCatchContent=new ProcessSpider(mywebspider1){\n\t\t\t@Override\n\t\t\tpublic void myprocess()\n\t\t\t{\n\t\t\t\tfor(;this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueAnswerUrlToRequest1()>=0;)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"sizeStrqueueAnswerUrlToRequest1 size!!!!!!!!!!!!!!!!:\"+this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueAnswerUrlToRequest1() );\n\t\t\t\t\tif(this.getMyWebSpider1().getUrlWarehouse1().sizeStrqueueAnswerUrlToRequest1()<=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tMyThreadSleep.sleep5s();\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tthis.getWebDriver1().navigate().to(this.getMyWebSpider1().getUrlWarehouse1().pollStrqueueAnswerUrlToRequest1());\n\t\t\t\t\t//\n\t\t\t\t\tMyThreadSleep.sleep1s();\n\t\t\t\t\t//\n\t\t\t\t\tint scrollLength=0;\n\t\t\t\t\t//\n\t\t\t\t\tfor(int overI=0;overI<=100-1;overI++)\n\t\t\t\t\t{\n\t\t\t\t\t\tJavascriptExecutor jsDriverTemp = (JavascriptExecutor)this.getWebDriver1();\n\t\t\t\t\t\tscrollLength=scrollLength+200;\n\t\t\t\t\t\tString js=\"document.body.scrollTop =\"+scrollLength;\n\t\t\t\t\t\tjsDriverTemp.executeScript(js);\n\t\t\t\t\t\t//\n\t\t\t\t\t\tMyThreadSleep.sleep100ms();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t//get pic url in specified page\n\t\t\t\t\tthis.getMyWebSpider1().getSpecifiedAnswerContent2(this.getWebDriver1());\n\t\t\t\t\t//\n\t\t\t\t\t//\n\n\t\t\t\t\t//\n\t\t\t\t\t//\n\t\t\t\t}\n\n\t\t\t}\n\t\t};\n\t\tnew Thread((Runnable)runnableProcessSpiderToCatchContent).start();\n\t}",
"private String fetchUrl() {\n\t\tString url;\n\t\tint depth;\n\t\tdo\n\t\t{\n\t\t\tLandingPage lp = this.pagesToVisit.remove(0);\n\t\t\turl = lp.getUrl();\n\t\t\tdepth = lp.getDepth();\n\t\t\t\n\t\t}while(this.pagesVisited.containsKey(url) || !(isvalidURL(url)));\n\t\tthis.pagesVisited.put(url,depth);\n\t\treturn url;\n\t}",
"public static void getTitles(String tag){\n Connection con = LyricsAccess.startconnection(\"orcl\");\n int count = 0; //song lyrics count\n int page = 1; //page of lyrics\n \n while(count<50){\n XmlPage xml = getXmlResults(tag,page);\n if(xml.asXml().contains(\"error code\")){ //if there was an error, exit\n return;\n }\n //System.out.println(xml.asXml());\n try{\n BufferedReader in = new BufferedReader(new StringReader(xml.asXml()));\n\n String line = \"\";\n String lastline = \"\";\n boolean nameflag = false;\n boolean artistflag = false;\n String artist = \"\";\n String name = \"\"; \n int length = 0;\n\n while((line = in.readLine())!=null){ //iterate thorugh each line \n if(lastline.trim().equals(\"<duration>\")){\n length = Integer.parseInt(line.trim());\n //System.out.println(length);\n } \n if(nameflag){ //song name\n name = line.trim().replace(\"&\", \"&\"); //convert HTML escaped character into normal character\n //System.out.println(line.trim());\n }\n if(artistflag){ //song artist\n artist = line.trim();\n //System.out.println(\" \" + line.trim());\n\n // Get lyrics from online\n LyricsProcess lyric = new LyricsProcess();\n String uLyrics = lyric.webgrab(name,artist); //get lyrics\n String c_lyrics = \"\"; //with timestamp\n String nt_lyrics = \"\"; //no timestamp\n //c_lyrics = lyric.cleanup7(uLyrics,true); //clean up\n //nt_lyrics = lyric.cleanup7(uLyrics, false); //clean up (without timestamp)\n \n nt_lyrics = LyricsWiki.cleanup(LyricsWiki.grabLyrics(name, artist)); //get lyrics and clean up\n //System.out.println(c_lyrics);\n \n //random wait time\n Random rand = new Random();\n int value = 1000*(rand.nextInt(4)+2);\n try {\n Thread.sleep(value);\n } catch (InterruptedException ex) {\n Thread.currentThread().interrupt();\n }\n \n int moods[] = {5}; ///////////mood to be input, 0-7\\\\\\\\\\\\\\\\\\\\\\\n \n //c_lyrics = LyricsProcess.oneLine(c_lyrics);\n nt_lyrics = LyricsProcess.oneLine(nt_lyrics); //put lyrics in one line\n \n if(!nt_lyrics.isEmpty()){ //if there are lyrics\n LyricsAccess.saveto(con, name, artist, length, nt_lyrics, c_lyrics, moods);\n count++;\n System.out.println(count);\n }\n if(count==50){\n return;\n }\n } \n\n if(line.trim().equals(\"<name>\")&&!lastline.trim().equals(\"<artist>\")){ //finds the name of the song\n nameflag = true;\n } else {\n nameflag = false;\n }\n\n if(line.trim().equals(\"<name>\")&&lastline.trim().equals(\"<artist>\")){ //finds the artist of the song\n artistflag = true;\n } else {\n artistflag = false;\n }\n\n lastline = line;\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n \n page++;\n }\n }",
"public Crawler(String seedUrlStr, int toDiscover)\n throws InterruptedException, FileNotFoundException,\n UnsupportedEncodingException {\n HTMLFetcher fetcher = null;\n urlQueue.add(seedUrlStr);\n String urlStr = \"\";\n while (discoveredUrls < toDiscover) {\n urlStr = urlQueue.poll(TIMEOUT_VAL, TimeUnit.SECONDS);\n\n if (urlStr == null) {\n // Happens if the crawler has waited for a new URL in the queue\n // for more than the timeout value. This means that all leafs\n // have been found and the crawler cannot continue.\n break;\n }\n\n // Acquire mutex to avoid collision when adding and\n // comparing at the same time\n mutex.acquireUninterruptibly();\n polledUrls.add(urlStr);\n mutex.release();\n\n System.out.println(\"Crawling: \" + urlStr);\n try {\n fetcher = new HTMLFetcher(new URL(urlStr), this);\n } catch (MalformedURLException e) {\n continue;\n }\n\n fetcherExecutor.execute(fetcher);\n }\n System.out.println(\"DONE: Discovered \" + discoveredUrls + \" URLs\");\n\n System.out.println(\"Dumping them into: urls.txt\");\n Collection<String> toDump = new LinkedList<String>(polledUrls);\n toDump.addAll(urlQueue);\n dumpCollection(toDump, \"urls.txt\");\n\n System.out.println(\"Waiting for \" + TIMEOUT_VAL + \" seconds for \"\n + Thread.activeCount() + \" threads to terminate...\");\n fetcherExecutor.awaitTermination(TIMEOUT_VAL, TimeUnit.SECONDS);\n }",
"private void scrapResultsInCurrentResultPage() {\n List<WebElement> searchResults = getSearchResults();\n\n for (int i = 0; i < searchResults.size(); i++) {\n WebElement result = searchResults.get(i);\n WebElement quoteButton = result.findElement(By.xpath(\".//a[@class='gs_or_cit gs_nph']\"));\n quoteButton.click();\n\n waitForMillis(500);\n\n WebElement bibtexLink = driver.findElement(By.xpath(\"//div[@id='gs_citi']/a[1]\"));\n waitUntilClickable(bibtexLink);\n bibtexLink.click();\n\n WebElement publicationCitationInBibtex = driver.findElement(By.xpath(\"/html/body/pre\"));\n searchResultsAsBibtex.add(publicationCitationInBibtex.getText());\n\n driver.navigate().back();\n\n WebElement quoteDialogCancelButton = driver.findElement(By.xpath(\"//*[@id=\\\"gs_cit-x\\\"]\"));\n waitUntilClickable(quoteDialogCancelButton);\n quoteDialogCancelButton.click();\n\n // Reload the reference to the DOM elements: the search results.\n searchResults = getSearchResults();\n }\n }",
"@Override\r\n\tpublic void run() {\n while(true) {\r\n\r\n\r\n\r\n\t\t\tsynchronized(lock)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\trecv_from_crawler();\r\n\t\t\t\t\tSystem.out.println(\"url from crawler 2--->\"+url.toString()+ \" thread---> \"+Thread.currentThread().getName());\r\n\r\n\t\t\t\t} catch (ClassNotFoundException 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\r\n\t\t\t}\r\n\r\n\t\t\ttry{\r\n\r\n\t\t\t\tget_document_from_db();\r\n\t textTags2.indexing(d,url.toString(),is_Recrawling);\r\n\t }catch (IOException e){\r\n\t\t\t System.out.println(e);\r\n\t }\r\n\r\n\t\t\t// System.out.println(\"time indexer for one doc--->\"+(System.nanoTime()-startTime));\r\n\t\t //System.out.println(\"total time indexing--->\"+(System.nanoTime()-startTime));\r\n\r\n\t\t}\r\n\r\n\t}",
"public int scrape(String[] urls, String outputFolderName, String outputFileName, Long contextCounter, @Nullable Boolean dynamic)\n\t\t\tthrows FourZeroFourException, JsonLDInspectionException, CannotWriteException, MissingMarkupException {\n\n\n\t\tint index = 0;\n\n\t\tfor (String url : urls) {\n\n\t\t\turl = fixURL(url);\n\n\t\t\tString html = \"\";\n\t\t\t// The dynamic boolean determines if the scraper should start using selenium or JSOUP to scrape the information (dynamic and static respectively)\n\n\t\t\tif (dynamic) {\n\t\t\t\tlogger.info(\"dynamic scraping setting\");\n\t\t\t\thtml = wrapHTMLExtraction(url);\n\t\t\t} else {\n\t\t\t\tlogger.info(\"static scraping setting\");\n\t\t\t\thtml = wrapHTMLExtractionStatic(url);\n\t\t\t}\n\n\n\t\t\tif (html == null || html.contentEquals(\"\")){\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\tif (logger.isTraceEnabled()) {\n\t\t\t\tlogger.trace(\"Read following html ==============================================================\");\n\t\t\t\tlogger.trace(html);\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\thtml = injectId(html, url);\n\t\t\t\tif (logger.isTraceEnabled()) {\n\t\t\t\t\tlogger.trace(\"Same HTML after injecting ID ==============================================================\");\n\t\t\t\t\tlogger.trace(html);\n\t\t\t\t}\n\t\t\t} catch (MissingHTMLException e) {\n\t\t\t\tlogger.error(e.toString());\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\tDocumentSource source = new StringDocumentSource(html, url);\n\t\t\tIRI sourceIRI = SimpleValueFactory.getInstance().createIRI(source.getDocumentIRI());\n\n\t\t\tString n3 = getTriplesInNTriples(source);\n\t\t\tif (n3 == null)\n\t\t\t\tthrow new MissingMarkupException(url);\n\n\t\t\tModel updatedModel = null;\n\t\t\ttry {\n\t\t\t\tupdatedModel = processTriples(n3, sourceIRI, contextCounter);\n\t\t\t} catch (NTriplesParsingException e1) {\n\t\t\t\tlogger.error(\"Failed to process triples into model; the NTriples generated from the URL (\" + url\n\t\t\t\t\t\t+ \") could not be parsed into a model.\");\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\t\t\tif (updatedModel == null){\n\t\t\t\t//return false;\n\t\t\t\treturn index;\n\t\t\t}\n\n\t\t\t//FIXME here you have to do the writing in the same folder if it is a sitemap, pass parameter boolean flag and loop until all url are parsed and at the end write to folder\n\t\t\tif(index == 0){\n\t\t\t\tFile directory = new File(outputFolderName);\n\t\t\t\tif (!directory.exists())\n\t\t\t\t\tdirectory.mkdir();\n\n\t\t\t\tif (outputFileName == null) {\n\t\t\t\t\toutputFileName = outputFolderName + \"/\" + contextCounter + \".nq\";\n\t\t\t\t} else {\n\t\t\t\t\toutputFileName = outputFolderName + \"/\" + outputFileName + \".nq\";\n\t\t\t\t}\n\n\t\t\t\ttry (PrintWriter out = new PrintWriter(new File(outputFileName))) {\n\n\t\t\t\t\tRio.write(updatedModel, out, RDFFormat.NQUADS);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Problem writing file for \" + url, e);\n\t\t\t\t\tthrow new CannotWriteException(url);\n\t\t\t\t}\n\n\t\t\t\tif (!new File(outputFileName).exists())\n\t\t\t\t\tSystem.exit(0);\n\n\t\t\t} else {\n\t\t\t\ttry (FileWriter out = new FileWriter(new File(outputFileName), true)) {\n\t\t\t\t\t//try (PrintWriter out = new PrintWriter(new File(outputFileName))) {\n\t\t\t\t\tRio.write(updatedModel, out, RDFFormat.NQUADS, new WriterConfig().set(BasicWriterSettings.PRETTY_PRINT, true));\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlogger.error(\"Problem writing file for \" + url, e);\n\t\t\t\t\tthrow new CannotWriteException(url);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tindex++;\n\t\t}\n\n\n\n\t\t//return true;\n\t\treturn -1;\n\t}",
"public void crawl(URL url, int limit) {\n\t\turls.add(url);\n\t\tqueue.execute(new CrawlWorker(url.toString()));\n\n\t\tqueue.finish();\n\t\tqueue.shutdown();\n\t}",
"private void goThroughLinks() throws IOException {\n for (URL link :links) {\n pagesVisited++;\n Node node;\n if (link.toString().contains(\"?id=1\") && !books.contains(link)) {\n node = populateNode(link);\n depth = 2;\n books.add(node);\n } else if (link.toString().contains(\"?id=2\") && !movies.contains(link)) {\n node = populateNode(link);\n depth = 2;\n movies.add(node);\n } else if (link.toString().contains(\"?id=3\") && !music.contains(link)) {\n node = populateNode(link);\n depth = 2;\n music.add(node);\n }\n }\n }",
"public void crawl() {\n retrieveDataByProductUrls();\n // Check if data is in range\n for (TrackedProduct product : AppConfig.getProducts()) {\n if (checkProductInRange(product)) {\n // Send Email\n MailSender.sendMail(product);\n }\n }\n }",
"void updateContent(){\n Document query = new Document();\n// selected_collection.find({'locations' : {'$exists' : False}}, no_cursor_timeout=True)\n query.put(\"$where\", \"this.categoryContent.length==0 & this.siteURLs.length>0\");\n FindIterable findIterable = mongoCollection.find(query);\n\n int count = 0;\n for (Object doc: findIterable){\n System.out.println(doc);\n StringBuilder content = new StringBuilder();\n Document result = (Document) doc;\n int id = result.getInteger(\"id\");\n List<String> siteURLs = (List<String>) result.get(\"siteURLs\");\n int urlsCount = 0;\n for(String url :siteURLs){\n try {\n String urlContent = getContent(url);\n if(urlContent != null){\n content.append(urlContent).append(\"\\n\");\n urlsCount++;\n if (urlsCount >= 5)\n break;\n }\n } catch (BoilerpipeProcessingException e) {\n System.err.println(\"URL: \" + url + \" Message: \" + e.getMessage());\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n mongoCollection.updateOne(new Document(\"id\", id),new Document(\"$set\", new Document(\"categoryContent\", content.toString())));\n count++;\n }\n System.out.println(count);\n }",
"public static void pageRankmain() {\n\t\t\t\n\t\t\tstopWordStore();\n\t\t\t//File[] file_read= dir.listFiles();\n\t\t\t//textProcessor(file_read);// Will be called from LinkCrawler\n\t\t\t//queryProcess();\n\t\t\t//System.out.println(\"docsave \"+ docsave);\n\t\t\t/*for ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t List<String> values = entry.getValue();\n\t\t\t System.out.print(\"Key = \" + key);\n\t\t\t System.out.println(\" , Values = \"+ values);\n\t\t\t}*/\n\t\t\t//########## RESPOINSIBLE FOR CREATING INVERTED INDEX OF TERMS ##########\n\t\t\tfor(int i=0;i<vocabulary.size();i++) {\n\t\t\t\tint count=1;\n\t\t\t\tMap<String, Integer> nestMap = new HashMap<String, Integer>();\n\t\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry : docsave.entrySet()) {\n\t\t\t\t String keyMain = entry.getKey();\n\t\t\t\t List<String> values = entry.getValue();\n\t\t\t\t if(values.contains(vocabulary.get(i)))\n\t\t\t\t \t{\n\t\t\t\t \tentryDf.put(vocabulary.get(i), count);//entryDf stores documents frequency of vocabulary word \\\\it increase the count value for specific key\n\t\t\t\t \tcount++;\n\t\t\t\t \t}\n\t\t\t\t \n\t\t\t\t nestMap.put(keyMain, Collections.frequency(values,vocabulary.get(i)));\n\t\t\t \t\n\t\t\t \t//System.out.println(\"VOC \"+ vocabulary.get(i)+ \" KeyMain \" +keyMain+ \" \"+ Collections.frequency(values,vocabulary.get(i)));\n\t\t\t\t\t}\n\t\t\t\t\ttfList.put(vocabulary.get(i), nestMap);\n\t\t\t}\n\t\t\t//########## RESPOINSIBLE FOR CREATING A MAP \"storeIdf\" TO STORE IDF VALUES OF TERMS ##########\n\t\t\tfor ( Map.Entry<String, Integer> endf : entryDf.entrySet()) {\n\t\t\t\tString keydf = endf.getKey();\n\t\t\t\tint valdf = endf.getValue();\n\t\t\t\t//System.out.print(\"Key = \" + \"'\"+keydf+ \"'\");\n\t\t\t //System.out.print(\" , Values = \"+ valdf);\n\t\t\t double Hudai = (double) (docsave.size())/valdf;\n\t\t\t //System.out.println(\"docsave size \"+docsave.size()+ \" valdf \"+ valdf + \" Hudai \"+ Hudai+ \" log Value1 \"+ Math.log(Hudai)+ \" log Value2 \"+ Math.log(2));\n\t\t\t double idf= Math.log(Hudai)/Math.log(2);\n\t\t\t storeIdf.put(keydf, idf);\n\t\t\t //System.out.print(\" idf-> \"+ idf);\n\t\t\t //System.out.println();\n\t\t\t} \n\t\t\t\n\t\t\t//############ Just for Printing ##########NO WORK HERE########\n\t\t\tfor (Map.Entry<String, Map<String, Integer>> tokTf : tfList.entrySet()) {\n\t\t\t\tString keyTf = tokTf.getKey();\n\t\t\t\tMap<String, Integer> valTF = tokTf.getValue();\n\t\t\t\tSystem.out.println(\"Inverted Indexing by Key Word = \" + \"'\"+keyTf+ \"'\");\n\t\t\t\tfor (Map.Entry<String, Integer> nesTf : valTF.entrySet()) {\n\t\t\t\t\tString keyTF = nesTf.getKey();\n\t\t\t\t\tInteger valTf = nesTf.getValue();\n\t\t\t\t\tSystem.out.print(\" Document Consists This Key Word = \" + \"'\"+ keyTF+ \"'\");\n\t\t\t\t\tSystem.out.println(\" , Term Frequencies in This Doc = \"+ valTf);\n\t\t\t\t} \n\t\t\t}\n\t\t\t//########### FOR CALCULATING DOCUMENT LENTH #############//\n\t\t\tfor ( Map.Entry<String, ArrayList<String>> entry_new : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t{\n\t\t\t\tString keyMain_new = entry_new.getKey();\n\t\t\t\t//int countStop=0;\n\t\t\t\tdouble sum=0;\n\t\t\t\t for(Map.Entry<String, Map<String, Integer>> tokTf_new : tfList.entrySet()) // Iterating through the vocabulary\n\t\t\t\t { \n\t\t\t\t\t Map<String, Integer> valTF_new = tokTf_new.getValue();\n\t\t\t\t\t for (Map.Entry<String, Integer> nesTf_new : valTF_new.entrySet()) // Iterating Through the Documents\n\t\t\t\t\t {\n\t\t\t\t\t\t if(keyMain_new.equals(nesTf_new.getKey())) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t double val = nesTf_new.getValue()* (Double) storeIdf.get(tokTf_new.getKey());\n\t\t\t\t\t\t\t sum = sum+ Math.pow(val, 2);\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 //countStop++;\n\t\t\t\t }\n\t\t\t\t docLength.put(keyMain_new, Math.sqrt(sum));\n\t\t\t\t sum=0;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"Document Length \"+ docLength);\n\t\t\t//System.out.println(\"tfList \"+tfList);\n\t\t\t\n\t\t\t //########### FOR CALCULATING QUERY LENTH #############///\n\t\t\t\tdouble qrySum=0;\n\t\t\t\t for(String qryTerm: queryList) // Iterating through the vocabulary\n\t\t\t\t {\n\t\t\t\t\t//entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));// VUl ase\n\t\t\t\t\t \n\t\t\t\t\t\t if(storeIdf.get(qryTerm) != null) \n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t entryQf.put(qryTerm, Collections.frequency(queryList,qryTerm));\n\t\t\t\t\t\t\t double val = entryQf.get(qryTerm)* (Double) storeIdf.get(qryTerm);\n\t\t\t\t\t\t\t qrySum = qrySum+ Math.pow(val, 2);\n\t\t\t\t\t\t }\n\t\t\t\t\t System.out.println(qryTerm+\" \"+entryQf.get(qryTerm)+ \" \"+ (Double) storeIdf.get(qryTerm));\n\t\t\t\t }\n\t\t\t\t qrySum=Math.sqrt(qrySum);\n\t\t\t\t System.out.println(\"qrySum \" + qrySum);\n\t\t\t\t \n\t\t\t\t//########### FOR CALCULATING COSINE SIMILARITY #############///\n\t\t\t\t for ( Map.Entry<String, ArrayList<String>> entry_dotP : docsave.entrySet()) // Iterating Number of Documents\n\t\t\t\t\t{\n\t\t\t\t\t\tdouble sumProduct=0;\n\t\t\t\t\t\tdouble productTfIdf=0;\n\t\t\t\t\t\tString keyMain_new = entry_dotP.getKey(); //Geting Doc Name\n\t\t\t\t\t\t for(Map.Entry<String, Integer> qryTermItr : entryQf.entrySet()) // Iterating through the vocabulary\n\t\t\t\t\t\t {\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Map<String, Integer> matchTerm = tfList.get(qryTermItr.getKey()); // Getting a map of doc Names by a Query Term as value of tfList\n\n\t\t\t\t\t\t\t\t if(matchTerm.containsKey(keyMain_new)) // Only doc name EQUAL with docsave name can enter here\n\t\t\t\t\t\t\t\t {\n\t\t\t\t\t\t\t\t\t //System.out.println(\"Test \"+ matchTerm.get(keyMain_new) +\" keyMain_new \" + keyMain_new);\n\t\t\t\t\t\t\t\t\t double docTfIdf= matchTerm.get(keyMain_new) * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t double qryTfIdf= qryTermItr.getValue() * storeIdf.get(qryTermItr.getKey());\n\t\t\t\t\t\t\t\t\t productTfIdf = docTfIdf * qryTfIdf;\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 sumProduct= sumProduct+productTfIdf;\n\t\t\t\t\t\t\t //System.out.println(\"productTfIdf \"+productTfIdf+\" sumProduct \"+ sumProduct);\n\t\t\t\t\t\t\t productTfIdf=0;\n\t\t\t\t\t\t }\n\t\t\t\t\t\t cosineProd.put(entry_dotP.getKey(), sumProduct/(docLength.get(entry_dotP.getKey())*qrySum));\n\t\t\t\t\t\t sumProduct=0;\n\t\t\t\t\t\t //System.out.println(entry_dotP.getKey()+ \" \" + docLength.get(entry_dotP.getKey()));\n\t\t\t\t\t}\n\t\t\t\t System.out.println(\"cosineProd \"+ cosineProd);\n\t\t\t\t \n\t\t\t\t System.out.println(\"Number of Top Pages you want to see\");\n\t\t\t\t int topRank = Integer.parseInt(scan.nextLine());\n\t\t\t\t Map<String, Double> result = cosineProd.entrySet().stream()\n\t\t\t .sorted(Map.Entry.comparingByValue(Comparator.reverseOrder())).limit(topRank)\n\t\t\t .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue,\n\t\t\t (oldValue, newValue) -> oldValue, LinkedHashMap::new));\n\n\t\t\t\t scan.close();\n\t\t\t //Alternative way\n\t\t\t //Map<String, Double> result2 = new LinkedHashMap<>();\n\t\t\t //cosineProd.entrySet().stream().sorted(Map.Entry.<String, Double>comparingByValue().reversed()).limit(2).forEachOrdered(x -> result2.put(x.getKey(), x.getValue()));\n\n\t\t\t System.out.println(\"Sorted...\");\n\t\t\t System.out.println(result);\n\t\t\t //System.out.println(result2);\n\t}",
"private void searchImages()\n {\n searchWeb = false;\n search();\n }",
"public Document fetchDocument(String url) { \n Document doc = new Document(\"\");\n //http://www.oracle.com/technetwork/java/javase/8u111-relnotes-3124969.html\n //Disable basic authentication for HTTPS tunneling \n System.setProperty(\"jdk.http.auth.tunneling.disabledSchemes\", \"''\");\n System.out.println(\"Acessing url \" + url + \" ...\");\n\n try {\n URL robotsTxT = new URL(url);\n\n Proxy proxy = proxies.get(this.rand.nextInt(proxies.size()));\n \n Authenticator authenticator = new Authenticator() {\n @Override\n protected PasswordAuthentication getPasswordAuthentication() {\n return (new PasswordAuthentication(USER, PASS.toCharArray()));\n }\n };\n Authenticator.setDefault(authenticator);\n \n HttpURLConnection httpConn = (HttpURLConnection) robotsTxT.openConnection(proxy);\n httpConn.setRequestProperty(\"User-Agent\", agentValue.get(rand.nextInt(agentValue.size())));\n\n Scanner httpResponse = new Scanner(httpConn.getInputStream());\n\n ByteArrayOutputStream response = new ByteArrayOutputStream();\n while(httpResponse.hasNextLine()) {\n response.write(httpResponse.nextLine().getBytes());\n } \n\n response.close();\n httpResponse.close(); \n\n String robotsData = response.toString();\n\n if(robotsData != null) {\n doc = Jsoup.parse(robotsData);\n }\n\n } catch (Exception ex) {\n System.err.println(\"ERROR: \" + ex.getMessage());\n }\n\n return doc;\n }",
"private String getContent(String url) throws BoilerpipeProcessingException, IOException {\n int code;\n HttpURLConnection connection = null;\n URL uri;\n do{\n uri = new URL(url);\n if(connection != null)\n connection.disconnect();\n connection = (HttpURLConnection)uri.openConnection();\n connection.setRequestMethod(\"GET\");\n connection.setConnectTimeout(5000);\n connection.setReadTimeout(5000);\n connection.connect();\n code = connection.getResponseCode();\n if(code == 301)\n url = connection.getHeaderField( \"Location\" );\n }while (code == 301);\n\n System.out.println(url + \" :: \" + code);\n String content = null;\n if(code < 400) {\n content = ArticleExtractor.INSTANCE.getText(uri);\n }\n connection.disconnect();\n return content;\n }",
"@Override\n public void run()\n {\n Document doc = null;\n try\n {\n // Politeness policy\n try\n {\n // Used so that we don't have multiple threads sleeping, instead the rest just wait on the\n // semaphore\n if (PolitenessPolicy()) return;\n\n doc = Jsoup.connect(threadVertex.getUrl()).get();\n }\n catch (InterruptedException e)\n {\n e.printStackTrace();\n return;\n }\n }\n catch (UnsupportedMimeTypeException e)\n {\n// System.out.println(\"--unsupported document type, do nothing\");\n return;\n }\n catch (HttpStatusException e)\n {\n// System.out.println(\"--invalid link, do nothing\");\n return;\n }\n catch (IOException e)\n {\n e.printStackTrace();\n return;\n }\n finally\n {\n politenessInteger.incrementAndGet();\n }\n\n Elements links = doc.select(\"a[href]\");\n for (Element link : links)\n {\n String v = link.attr(\"abs:href\");\n// System.out.println(\"Found: \" + v);\n\n// Document temp = null;\n if (!Util.ignoreLink(threadVertex.getUrl(), v))\n {\n // This was originally trying to catch invalid links before adding them to the graph\n // but I realized those are also valid notes, just leaf nodes.\n // This also greatly speeds up the execution of the program.\n// try\n// {\n// try\n// {\n// // Used so that we don't have multiple threads sleeping, instead the rest just wait on the\n// // semaphore\n// if (PolitenessPolicy()) return;\n//\n// temp = Jsoup.connect(v).get();\n// }\n// catch (InterruptedException e)\n// {\n// e.printStackTrace();\n// return;\n// }\n// }\n// catch (UnsupportedMimeTypeException e)\n// {\n// System.out.println(\"--unsupported document type, do nothing\");\n// return;\n// }\n// catch (HttpStatusException e)\n// {\n// System.out.println(\"--invalid link, do nothing\");\n// return;\n// }\n// catch (IOException e)\n// {\n// e.printStackTrace();\n// return;\n// }\n\n Vertex newVertex = new Vertex(v);\n\n // We need to synchronize the graph and the queue among each thread\n // This avoids dirty reads and dirty writes\n synchronized(graph)\n {\n synchronized(urlQueue)\n {\n if (!graph.containsKey(newVertex.getUrl()))\n {\n int newVertexDepth = threadVertex.getDepth() + 1;\n int currentPages = graph.size();\n\n if (currentPages < maxPages && newVertexDepth <= maxDepth)\n {\n // Set the new vertex's depth and add an ancestor\n newVertex.setDepth(newVertexDepth);\n newVertex.addAncestor(threadVertex);\n\n // Update the current vertex to have this one as a child\n threadVertex.addChild(newVertex);\n graph.put(threadVertex.getUrl(), threadVertex);\n\n // Place the new vertex in the discovered HashMap and place it in the queue\n graph.put(newVertex.getUrl(), newVertex);\n\n urlQueue.add(newVertex);\n }\n }\n else\n {\n // Done to update relationships of ancestors and children\n Vertex oldVertex = graph.get(newVertex.getUrl());\n\n oldVertex.addAncestor(threadVertex);\n threadVertex.addChild(oldVertex);\n\n graph.put(oldVertex.getUrl(), oldVertex);\n graph.put(threadVertex.getUrl(), threadVertex);\n }\n }\n }\n }\n else\n {\n// System.out.println(\"--ignore\");\n return;\n }\n }\n }",
"public static void invertedIndex(String URL){\n //if the url set already contains this url, it means this url has already been processed, so return\n if(urlSet.contains(URL)){\n return;\n }\n else{\n //first add this unprocessed url to url list\n urlSet.add(URL);\n try{\n //connect this url and get its content\n URL url = new URL(URL);\n URLConnection urlCon = url.openConnection();\n BufferedReader in = new BufferedReader(new InputStreamReader(urlCon.getInputStream()));\n String urlString = \"\";\n String current;\n while((current = in.readLine()) != null)\n {\n urlString += current;\n }\n\n //by filtering the link label to get all the links in this page\n String[] urlList = urlString.split(\"<a href=\\\"\");\n\n //define regex expression to filter script label\n String scriptFilter=\"<script[^>]*?>[\\\\s\\\\S]*?<\\\\/script>\";\n\n //define regex expression to filter style label\n String styleFilter=\"<style[^>]*?>[\\\\s\\\\S]*?<\\\\/style>\";\n\n //define regex expression to filter html label\n String htmlFilter=\"<[^>]+>\";\n\n //filter all the useless labels\n Pattern scriptP=Pattern.compile(scriptFilter,Pattern.CASE_INSENSITIVE);\n Matcher scriptM=scriptP.matcher(urlString);\n urlString=scriptM.replaceAll(\"\");\n\n Pattern styleP=Pattern.compile(styleFilter,Pattern.CASE_INSENSITIVE);\n Matcher styleM=styleP.matcher(urlString);\n urlString=styleM.replaceAll(\"\");\n\n Pattern htmlP=Pattern.compile(htmlFilter,Pattern.CASE_INSENSITIVE);\n Matcher htmlM=htmlP.matcher(urlString);\n urlString=htmlM.replaceAll(\"\");\n\n //transfer content to a word array\n String[] words = urlString.split(\" \");\n for(int i = 0; i < words.length; i++){\n //System.out.println(words[i]);\n //if the hashmap doesn't contain this word, so put this word and its url pair into the hashmap\n if(!index.containsKey(words[i])){\n HashSet<String> str = new HashSet<String>();\n str.add(URL);\n index.put(words[i],str);\n }\n //if the hashmap already contains this word, update its record\n else{\n HashSet<String> str = index.get(words[i]);\n str.add(URL);\n index.put(words[i],str);\n }\n }\n //System.out.println(urlString);\n\n for(int i = 1; i < urlList.length;i++){\n //get each url in this page and transfer it to valid url, after that process each url\n int endpos = urlList[i].indexOf(\"\\\"\");\n String Url = getValidUrl(urlList[i].substring(0, endpos));\n //System.out.println(Url);\n if(Url != null){\n invertedIndex(Url);\n }\n }\n }catch(Exception e){\n System.out.println(\"can't process url : \" + URL);\n }\n }\n }",
"private void pullLinks(String htmlPage) {\n\n Document doc = Jsoup.parse(htmlPage);\n Elements links = doc.select(\"a[href]\");\n\n for (Element link : links) {\n\n String possibleUrl = link.attr(\"abs:href\");\n\n if (!possibleUrl.equals(\"\")) {\n// Log.v(\"pullLinks\", \" will try to make URL from\" + possibleUrl);\n //if the link attr isn't empty, make a URL\n URL theUrl = NetworkUtils.makeURL(possibleUrl);\n\n if (RegexUtils.urlDomainNameMatch(firstLinkAsString, theUrl.toString())) {\n //if the string version of url is within the same domain as original query\n if (!visitedLinks.contains(theUrl.toString())) {\n// Log.v(\"DLAsyncTask.pullLinks\", \" thinks that \" + theUrl.toString() + \" wasn't visited, add into collected...\");\n collectedLinks.add(theUrl.toString());\n }\n }\n }\n\n }\n }"
] | [
"0.6399414",
"0.6206882",
"0.6206373",
"0.60956705",
"0.60757315",
"0.60379785",
"0.59364074",
"0.5926683",
"0.5918691",
"0.5909714",
"0.5836065",
"0.58189994",
"0.5795846",
"0.57749075",
"0.57554024",
"0.57501423",
"0.5734315",
"0.57091755",
"0.56523544",
"0.558346",
"0.5581507",
"0.556811",
"0.5555929",
"0.5553206",
"0.55327857",
"0.5521795",
"0.55050945",
"0.546155",
"0.54549253",
"0.5435638",
"0.54049194",
"0.5386192",
"0.53663594",
"0.536174",
"0.5357777",
"0.5346054",
"0.5345054",
"0.53380734",
"0.53344476",
"0.5303906",
"0.5268226",
"0.5265567",
"0.52627784",
"0.52492887",
"0.5248763",
"0.5234371",
"0.5232113",
"0.52306956",
"0.5225951",
"0.5208354",
"0.52057564",
"0.5201608",
"0.51988035",
"0.5198237",
"0.5192325",
"0.5189105",
"0.5187253",
"0.5179194",
"0.5170282",
"0.5164567",
"0.5163721",
"0.51604366",
"0.51537496",
"0.51458687",
"0.5144577",
"0.5143315",
"0.5132829",
"0.51289606",
"0.512723",
"0.5121491",
"0.5100739",
"0.5095524",
"0.50930184",
"0.5089759",
"0.5087273",
"0.50768465",
"0.5076009",
"0.50750846",
"0.5074772",
"0.50684637",
"0.5058669",
"0.50582856",
"0.5057434",
"0.5052748",
"0.50484544",
"0.5042161",
"0.50374955",
"0.503189",
"0.5028948",
"0.50244546",
"0.5023371",
"0.50191826",
"0.50090736",
"0.4985379",
"0.4980257",
"0.4978948",
"0.49725017",
"0.496718",
"0.49659488",
"0.49623725",
"0.4959114"
] | 0.0 | -1 |
Add custom packages here | protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new CodePush(BuildConfig.ANDROID_CODEPUSH_DEPLOYMENT_KEY, MainApplication.this, BuildConfig.DEBUG));
return packages;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addPackage(Package pkg) {\r\n myPackages.add(pkg);\r\n }",
"@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlTranslate1Classes.altModelPackage != null) outputList.add(new OutputLine(indentLvl, \"import \" + UVMRdlTranslate1Classes.altModelPackage + \";\")); // add alt model pkg\n\t\toutputList.add(new OutputLine(indentLvl, \"import jspec::*;\"));\n\t}",
"protected void install() {\n\t\t//\n\t}",
"ImportedPackage createImportedPackage();",
"@Override\n\tprotected void createPackage() {\n\t\tdecorations.add(new BridesMaidDeco());\n\t\tdecorations.add(new BridalDeco());\n\t}",
"public boolean loadAdditionalPackages( String canonicalNameClassOrPkg) throws Exception;",
"protected void installComponents() {\n }",
"protected void installComponents() {\n\t}",
"public interface Package extends Container {\n\n /**\n * Returns all top-level--non-recursive-- {@link Package}s contained under this package. allows the\n * \n * @return the top-level {@link Package}s in the package.\n */\n public Collection<Package> getPackages();\n\n \n /**\n * Adds a {@link Package} to the package hierarchy.\n * \n */\n /** adding packages can be done via {@link #addArtifact(Workspace,Artifact)} */\n //@Deprecated\n //public void addPackage(Workspace workspace, Package pack);\n}",
"Package createPackage();",
"void addPackagesRecursive(String... packageNames) {\n for (String packageName : packageNames) {\n List<Class<? extends TestCase>> addedClasses = testCaseClassesInPackage(packageName);\n if (addedClasses.isEmpty()) {\n Log.w(LOG_TAG, \"Invalid Package: '\" + packageName\n + \"' could not be found or has no tests\");\n }\n testCaseClasses.addAll(addedClasses);\n }\n }",
"public void addPackage(String path) {\n\t\tscopeStack.peek().addPath(path);\n\t}",
"private void addPackages(JComboBox comboBox) {\r\n // Add the package names\r\n Iterator iter = PackageSummary.getAllPackages();\r\n TreeSet set = new TreeSet();\r\n while (iter.hasNext()) {\r\n PackageSummary next = (PackageSummary)iter.next();\r\n set.add(next.toString());\r\n }\r\n\r\n iter = set.iterator();\r\n while (iter.hasNext()) {\r\n comboBox.addItem(iter.next().toString());\r\n }\r\n }",
"public void importPackage(String pack) throws Exception;",
"@Ignore\n @Test\n public void useDefaultPackageName() throws Exception {\n }",
"public void createPackageContents()\n\t{\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create data types\n\t\tfeatureNotFoundExceptionEDataType = createEDataType(FEATURE_NOT_FOUND_EXCEPTION);\n\t}",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:42.019 -0500\", hash_original_method = \"E5A69925BDA73DD9E81D8A1F8F42F257\", hash_generated_method = \"BC29193EBB18DD714A911DC3105CD009\")\n \n public void addPackageNames(Set<String> packageNames){\n \taddTaint(packageNames.getTaint());\n }",
"@Override\n\tpublic void ignorePackage(String packageName) {\n\t\tignorePackages.add(packageName);\n\t}",
"JPackage _package();",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tbluetoothPortEClass = createEClass(BLUETOOTH_PORT);\n\n\t\tl2CAPInJobEClass = createEClass(L2CAP_IN_JOB);\n\n\t\tl2CAPoutJobEClass = createEClass(L2CA_POUT_JOB);\n\t}",
"@Override\n public boolean isPackaged() {\n return false;\n }",
"@Override\n protected void addImageForPackage(PackageInfo packageInfo) throws Exception {\n new ImageCreator(packageInfo).addImage();\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__NAME);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__LOCATION);\n\n\t\trepositoryManagerEClass = createEClass(REPOSITORY_MANAGER);\n\t}",
"public int addOlePackage(byte[] arg0, String arg1, String arg2, String arg3) throws IOException {\n\t\treturn 0;\n\t}",
"private void setNeedHookPackage(Context context) {\n ArrayList<String> NeedHookPackage = new ArrayList<String>();\n try {\n// 根据context对象获取当前apk路径\n String path = findApkFile(context, modulePackage).toString();\n// 简单暴力使用zip来解包获取config文件,之前采用getSource发现加入免重启功能后导致获取原包路径失败,因此换用这种方案\n ZipFile zipFile = new ZipFile(path);\n ZipEntry zipEntry = zipFile.getEntry(\"assets/config\");\n// 读流数据转化成arraylist\n InputStream inputStream = zipFile.getInputStream(zipEntry);\n InputStreamReader in = new InputStreamReader(inputStream);\n BufferedReader br = new BufferedReader(in);\n String line;\n StringBuilder sb = new StringBuilder();\n while ((line = br.readLine()) != null) {\n sb.append(line);\n if (line.contains(\".name\")) {\n String[] new_line = line.split(\"=\");\n NeedHookPackage.add(new_line[1]);\n }\n }\n hookPackages = NeedHookPackage;\n } catch (Exception e) {\n Logger.loge(e.toString());\n }\n }",
"private String createPackageList( final String eePackages,\n final String userPackages,\n final String platformPackages )\n {\n final StringBuilder packages = new StringBuilder();\n packages.append( eePackages );\n \n // append used defined packages\n if( userPackages != null && userPackages.trim().length() > 0 )\n {\n if( packages.length() > 0 )\n {\n packages.append( \",\" );\n }\n packages.append( userPackages );\n }\n // append platform specific packages\n if( platformPackages != null && platformPackages.trim().length() > 0 )\n {\n if( packages.length() > 0 )\n {\n packages.append( \",\" );\n }\n packages.append( platformPackages );\n }\n return packages.toString();\n }",
"public void register() {\n\t\tloadCommandsFromPackage(\"net.frozenorb.Raven.CommandSystem.Commands\");\n\t}",
"protected abstract JPackage getPackage( JPackage pkg, Aspect a );",
"private VarietyPackage() {}",
"public void buildPackageTags(XMLNode node, Content packageContentTree) {\n if (configuration.nocomment) {\n return;\n }\n packageWriter.addPackageTags(packageContentTree);\n }",
"protected abstract String getPackageName();",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\taudioEClass = createEClass(AUDIO);\n\t\tcreateEAttribute(audioEClass, AUDIO__CONTENT);\n\t\tcreateEAttribute(audioEClass, AUDIO__NAME);\n\t\tcreateEAttribute(audioEClass, AUDIO__TEXT);\n\n\t\taudioManagerEClass = createEClass(AUDIO_MANAGER);\n\n\t\taudioRecorderEClass = createEClass(AUDIO_RECORDER);\n\n\t\taudioPlayerEClass = createEClass(AUDIO_PLAYER);\n\n\t\t// Create enums\n\t\taudioStyleEEnum = createEEnum(AUDIO_STYLE);\n\t}",
"public void addCustExt() {\n String toAdd = customExt.getText();\n String[] extensions = toAdd.split(\",\");\n ExtensionsAdder.addExtensions(extensions);\n }",
"public void preInstallHook() {\n }",
"@Override\r\n public void pack() {\r\n super.pack();\r\n JkFileTree.of(this.classDir()).exclude(\"**/*.jar\").zip().to(packer().jarFile(\"lean\"));\r\n distrib();\r\n }",
"public static void registerEcorePackages() {\n\t\tInjector injector = new MMapDslStandaloneSetup().createInjectorAndDoEMFRegistration();\n\n\t\t// obtain a resourceset from the injector\n\t\tXtextResourceSet resSet = injector.getInstance(XtextResourceSet.class);\n\n\t\t// Associate the \"mindmap\" extension with the XMI resource format\n\t\tResource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(\"requirements\", new XMIResourceFactoryImpl());\n\t\t\n\t\t// Initialize the model\n\t\tMindmapPackage.eINSTANCE.eClass();\n\n\t\t// Initialize the model\n\t\tRequirementsPackage.eINSTANCE.eClass();\n\t\t\n\t\t// Retrieve the default factory singleton\n // MindmapFactory factory = MindmapFactory.eINSTANCE;\t\t\n\n // Initialize the EMFTVM package \n\t\torg.eclipse.m2m.atl.emftvm.EmftvmPackage.eINSTANCE.eClass();\n\t\t\n\t\t// Associate the \"emftvm\" extension with the EMFTVM resource format\n\t\tResource.Factory.Registry.INSTANCE.getExtensionToFactoryMap().put(\"emftvm\", new EMFTVMResourceFactoryImpl());\n\t}",
"public void postInstallHook() {\n }",
"@HOSTED_ONLY\n public static void registerBootImagePackages(List<BootImagePackage> packages) {\n for (BootImagePackage pkg : packages) {\n BOOT_IMAGE_CODE_BASE_PACKAGES.put(pkg.name(), pkg);\n }\n }",
"protected abstract void generatePackageFiles(ClassTree classtree) throws Exception;",
"synchronized void registerPackages(Iterator exports, Iterator imports) {\n while (exports.hasNext()) {\n ExportPkg pe = (ExportPkg)exports.next();\n Pkg p = (Pkg)packages.get(pe.name);\n if (p == null) {\n p = new Pkg(pe.name);\n packages.put(pe.name, p);\n }\n p.addExporter(pe);\n if (Debug.packages) {\n Debug.println(\"registerPackages: export, \" + pe);\n }\n }\n while (imports.hasNext()) {\n ImportPkg pe = (ImportPkg)imports.next();\n Pkg p = (Pkg)packages.get(pe.name);\n if (p == null) {\n p = new Pkg(pe.name);\n packages.put(pe.name, p);\n }\n p.addImporter(pe);\n if (Debug.packages) {\n Debug.println(\"registerPackages: import, \" + pe);\n }\n }\n }",
"public static void setupModules(){\n\t\tStart.setupModules();\n\t\t//add\n\t\t//e.g.: special custom scripts, workers, etc.\n\t}",
"public void setPackages(final String... packageNames) {\n packages = transformToUnique(packageNames);\n }",
"public static void install() {\n\t\t// install XPath package\n\n\t\t// install parsers\n\t\tParserFactory.instance().addRatsParser(XPathNodes.XPATH_UNIT,XPathParser.class);\n\t\t\t}",
"private void addPackageContentToImage(PackageData packageData)\n throws\n IOException,\n BaseAudioConverter.ConversionException,\n AudioItemRepository.UnsupportedFormatException {\n\n for (PlaylistInfo playlistInfo : packageInfo.getPlaylists()) {\n // Copy files, add PlaylistData to PackageData.\n PlaylistData playlistData = packageData.addPlaylist(playlistInfo.getTitle());\n addPlaylistContentToImage(playlistInfo, playlistData);\n addPlaylistPromptsToImage(playlistInfo, playlistData);\n }\n\n // Export the intro, if there is one.\n if (packageInfo.hasIntro()) {\n AudioItem audioItem = packageInfo.getIntro();\n String filename = repository.getAudioFilename(audioItem, getAudioFormat());\n\n // Export the audio file.\n File exportFile = determineShadowFile(messagesDir, filename, shadowMessagesDir);\n if (!exportFile.exists()) {\n repository.exportAudioFileWithFormat(audioItem, exportFile, getAudioFormat());\n }\n // Add audio item to the package_data.txt.\n Path exportPath = makePath(new File(messagesDir, filename));\n packageData.withAnnouncement(exportPath);\n } else {\n // No intro, so export a dummy file of silence.\n String filename = \"7\" + '.' + getAudioFormat().getFileExtension();\n File exportFile = new File(promptsDir, filename);\n Path exportPath = makePath(exportFile);\n packageData.withAnnouncement(exportPath);\n }\n }",
"public void setAdditionalProviderPackages(List<String> packageNames) {\n synchronized (mBinder) {\n mAdditionalProviderPackages.clear();\n mAdditionalProviderPackages.addAll(packageNames);\n }\n\n ILocationProviderManager manager = mManager;\n if (manager != null) {\n try {\n manager.onSetAdditionalProviderPackages(mAdditionalProviderPackages);\n } catch (RemoteException | RuntimeException e) {\n Log.w(mTag, e);\n }\n }\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:42.023 -0500\", hash_original_method = \"B071A6644C9AA816555B15D21EE52FB4\", hash_generated_method = \"D65569BC7D40591501907DE0DFE452CE\")\n \n public void addPackageName(String packageName){\n \taddTaint(packageName.getTaint());\n }",
"Imports createImports();",
"Composer createComposer();",
"default HtmlFormatter shortenPackages() {\n return replace(\n PACKAGE_PATTERN,\n \"$2\"\n );\n }",
"@Override\n public void install() {\n install(new NewControlerModule());\n install(new ControlerDefaultCoreListenersModule());\n install(new ControlerDefaultsModule());\n install(new ScenarioByInstanceModule(scenario));\n }",
"public void inputPackage(Package p) {\n \tp.inputLength();\n \tp.inputWidth();\n \tp.inputHeight();\n \tpackages.add(p);\n }",
"@Override\n\tprotected void buildRdlPackage() {\n\t\tUVMRdlTranslate1Classes.buildRdlPackage(pkgOutputList, 0);\t\t\n\t}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcmdEClass = createEClass(CMD);\n\t\tcreateEAttribute(cmdEClass, CMD__PRIORITY);\n\t\tcreateEAttribute(cmdEClass, CMD__STAMP);\n\n\t\tcompoundCmdEClass = createEClass(COMPOUND_CMD);\n\t\tcreateEReference(compoundCmdEClass, COMPOUND_CMD__CHILDREN);\n\n\t\txCmdEClass = createEClass(XCMD);\n\t\tcreateEAttribute(xCmdEClass, XCMD__OBJ);\n\n\t\tbyteCmdEClass = createEClass(BYTE_CMD);\n\t\tcreateEAttribute(byteCmdEClass, BYTE_CMD__MESSAGE);\n\n\t\t// Create enums\n\t\tpriorityEEnum = createEEnum(PRIORITY);\n\t}",
"public void initializePackageContents()\n\t{\n\t\tif (isInitialized) return;\n\t\tisInitialized = true;\n\n\t\t// Initialize package\n\t\tsetName(eNAME);\n\t\tsetNsPrefix(eNS_PREFIX);\n\t\tsetNsURI(eNS_URI);\n\n\t\t// Initialize data types\n\t\tinitEDataType(featureNotFoundExceptionEDataType, FeatureNotFoundException.class, \"FeatureNotFoundException\", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS);\n\t}",
"List<String> getSystemPackages();",
"@Override\n\tpublic void acceptPackage(String packageName) {\n\t\tignorePackages.removeIf(p -> packageName.startsWith(p + DOT));\n\t}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n\t\tpackageDeclarationEClass = createEClass(PACKAGE_DECLARATION);\n\t\tcreateEAttribute(packageDeclarationEClass, PACKAGE_DECLARATION__NAME);\n\t\tcreateEReference(packageDeclarationEClass, PACKAGE_DECLARATION__CONTENT);\n\n\t\treferenceableEClass = createEClass(REFERENCEABLE);\n\t}",
"@Test\n\tpublic void test03JavaxActivationJavaxImageIOAsSystemPackageExtra()\n\t\t\tthrows Exception {\n\t\tfinal Map<String, String> launchArgs = new HashMap<String, String>();\n\t\tlaunchArgs.put(\"org.osgi.framework.system.packages.extra\",\n\t\t\t\t\"javax.imageio,javax.imageio.metadata\");\n\t\tstartFramework(launchArgs);\n\t\tfinal Bundle bundle = installAndStartBundle(\"javax.activation_1.1.0.v201211130549.jar\");\n\t\tassertBundleResolved(bundle);\n\t\tstopFramework();\n\t}",
"private static List getPackages(Context param0) {\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmetadataEClass = createEClass(METADATA);\n\t\tcreateEAttribute(metadataEClass, METADATA__GAMENAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__SHORTNAME);\n\t\tcreateEAttribute(metadataEClass, METADATA__TIMING);\n\t\tcreateEAttribute(metadataEClass, METADATA__ADRESSING);\n\t\tcreateEAttribute(metadataEClass, METADATA__CARTRIDGE_TYPE);\n\t\tcreateEAttribute(metadataEClass, METADATA__ROM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__RAM_SIZE);\n\t\tcreateEAttribute(metadataEClass, METADATA__LICENSEE);\n\t\tcreateEAttribute(metadataEClass, METADATA__COUNTRY);\n\t\tcreateEAttribute(metadataEClass, METADATA__VIDEOFORMAT);\n\t\tcreateEAttribute(metadataEClass, METADATA__VERSION);\n\t\tcreateEAttribute(metadataEClass, METADATA__IDE_VERSION);\n\t}",
"private static void createPackageExamples(CmsBean cmsBean) throws Exception {\n }",
"EPackage createEPackage();",
"public void addPackage(PersistedBmmPackage bmmPackage) {\n packages.put(bmmPackage.getName().toUpperCase(), bmmPackage);\n }",
"void installMarathonApps();",
"@Override\r\n\tpublic void addPackage(PackageJour pj) {\n\t\tem.persist(pj);\r\n\t}",
"ModulePackage createModulePackage();",
"protected void processPackage(Package myPackage, String parentPackageName)\n {\n Element element = null;\n // local variable to store an attribute\n Attribute attribute = null;\n // local variable to store a connector\n Connector connector = null;\n // local variable to store the roles\n ConnectorEnd sourceRole = null;\n ConnectorEnd targetRole = null;\n \n String packageHierarchy = null; \n\n \n EAEventManager.getInstance().fireEAEvent(\n this,\n \"Extracting information from package \"\n + myPackage.GetName());\n\n if(parentPackageName.equals(\"\"))\n packageHierarchy = myPackage.GetName();\n else\n packageHierarchy = parentPackageName + \"/\" + myPackage.GetName(); \n \n addPackageToGlossary(myPackage, packageHierarchy);\n\n /////////////////////////////////////////////////\n // Process the classes defined in this subpackage\n /////////////////////////////////////////////////\n for (Iterator elementsIter = myPackage.GetElements()\n .iterator(); elementsIter.hasNext();) {\n\n element = (Element) elementsIter.next();\n\n // The class element is used generically\n // WARNING: in some cases, an element of type enumeration\n // ...\n if (element.GetType().equals(EA_TYPE_CLASS)) {\n\n addElementToGlossary(element, packageHierarchy);\n\n ///////////////////////////////////////////////////\n // Process the class attributes\n ///////////////////////////////////////////////////\n for (Iterator attributeIter = element.GetAttributes()\n .iterator(); attributeIter.hasNext();) {\n attribute = (Attribute) attributeIter.next();\n addAttributeToGlossary(attribute, packageHierarchy);\n }\n\n }\n }\n \n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tarrayOfStringEClass = createEClass(ARRAY_OF_STRING);\n\t\tcreateEAttribute(arrayOfStringEClass, ARRAY_OF_STRING__VALUES);\n\n\t\tcontainerEClass = createEClass(CONTAINER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CONTAINERID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IMAGE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BUILD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__COMMAND);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PORTS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__EXPOSE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__VOLUMES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENVIRONMENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENV_FILE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__NET);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DNS_SEARCH);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_ADD);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CAP_DROP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__WORKING_DIR);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ENTRYPOINT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__USER);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DOMAIN_NAME);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEM_LIMIT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_SWAP);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PRIVILEGED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RESTART);\n\t\tcreateEAttribute(containerEClass, CONTAINER__STDIN_OPEN);\n\t\tcreateEAttribute(containerEClass, CONTAINER__INTERACTIVE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SHARES);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PID);\n\t\tcreateEAttribute(containerEClass, CONTAINER__IPC);\n\t\tcreateEAttribute(containerEClass, CONTAINER__ADD_HOST);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MAC_ADDRESS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__RM);\n\t\tcreateEAttribute(containerEClass, CONTAINER__SECURITY_OPT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DEVICE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__LXC_CONF);\n\t\tcreateEAttribute(containerEClass, CONTAINER__PUBLISH_ALL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__READ_ONLY);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__DISK_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_USED);\n\t\tcreateEAttribute(containerEClass, CONTAINER__BANDWIDTH_PERCENT);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MONITORING_INTERVAL);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__MEMORY_MAX_VALUE);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CORE_MAX);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_CPUS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__CPU_SET_MEMS);\n\t\tcreateEAttribute(containerEClass, CONTAINER__TTY);\n\t\tcreateEOperation(containerEClass, CONTAINER___CREATE);\n\t\tcreateEOperation(containerEClass, CONTAINER___STOP);\n\t\tcreateEOperation(containerEClass, CONTAINER___RUN);\n\t\tcreateEOperation(containerEClass, CONTAINER___PAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___UNPAUSE);\n\t\tcreateEOperation(containerEClass, CONTAINER___KILL__STRING);\n\n\t\tlinkEClass = createEClass(LINK);\n\t\tcreateEAttribute(linkEClass, LINK__ALIAS);\n\n\t\tnetworklinkEClass = createEClass(NETWORKLINK);\n\n\t\tvolumesfromEClass = createEClass(VOLUMESFROM);\n\t\tcreateEAttribute(volumesfromEClass, VOLUMESFROM__MODE);\n\n\t\tcontainsEClass = createEClass(CONTAINS);\n\n\t\tmachineEClass = createEClass(MACHINE);\n\t\tcreateEAttribute(machineEClass, MACHINE__NAME);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSTALL_URL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_INSECURE_REGISTRY);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_REGISTRY_MIRROR);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_LABEL);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_STORAGE_DRIVER);\n\t\tcreateEAttribute(machineEClass, MACHINE__ENGINE_ENV);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_IMAGE);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_MASTER);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_DISCOVERY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_STRATEGY);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_OPT);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_HOST);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_ADDR);\n\t\tcreateEAttribute(machineEClass, MACHINE__SWARM_EXPERIMENTAL);\n\t\tcreateEAttribute(machineEClass, MACHINE__TLS_SAN);\n\t\tcreateEOperation(machineEClass, MACHINE___STARTALL);\n\n\t\tvolumeEClass = createEClass(VOLUME);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DRIVER);\n\t\tcreateEAttribute(volumeEClass, VOLUME__LABELS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__OPTIONS);\n\t\tcreateEAttribute(volumeEClass, VOLUME__SOURCE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__DESTINATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__MODE);\n\t\tcreateEAttribute(volumeEClass, VOLUME__RW);\n\t\tcreateEAttribute(volumeEClass, VOLUME__PROPAGATION);\n\t\tcreateEAttribute(volumeEClass, VOLUME__NAME);\n\n\t\tnetworkEClass = createEClass(NETWORK);\n\t\tcreateEAttribute(networkEClass, NETWORK__NETWORK_ID);\n\t\tcreateEAttribute(networkEClass, NETWORK__NAME);\n\t\tcreateEAttribute(networkEClass, NETWORK__AUX_ADDRESS);\n\t\tcreateEAttribute(networkEClass, NETWORK__DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__GATEWAY);\n\t\tcreateEAttribute(networkEClass, NETWORK__INTERNAL);\n\t\tcreateEAttribute(networkEClass, NETWORK__IP_RANGE);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_DRIVER);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPAM_OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__IPV6);\n\t\tcreateEAttribute(networkEClass, NETWORK__OPT);\n\t\tcreateEAttribute(networkEClass, NETWORK__SUBNET);\n\n\t\tmachinegenericEClass = createEClass(MACHINEGENERIC);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__ENGINE_PORT);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__IP_ADDRESS);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_KEY);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_USER);\n\t\tcreateEAttribute(machinegenericEClass, MACHINEGENERIC__SSH_PORT);\n\n\t\tmachineamazonec2EClass = createEClass(MACHINEAMAZONEC2);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ACCESS_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__AMI);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__INSTANCE_TYPE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__REGION);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ROOT_SIZE);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECRET_KEY);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SECURITY_GROUP);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SESSION_TOKEN);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__SUBNET_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__VPC_ID);\n\t\tcreateEAttribute(machineamazonec2EClass, MACHINEAMAZONEC2__ZONE);\n\n\t\tmachinedigitaloceanEClass = createEClass(MACHINEDIGITALOCEAN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__ACCESS_TOKEN);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__IMAGE);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__REGION);\n\t\tcreateEAttribute(machinedigitaloceanEClass, MACHINEDIGITALOCEAN__SIZE);\n\n\t\tmachinegooglecomputeengineEClass = createEClass(MACHINEGOOGLECOMPUTEENGINE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__ZONE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__MACHINE_TYPE);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__USERNAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__INSTANCE_NAME);\n\t\tcreateEAttribute(machinegooglecomputeengineEClass, MACHINEGOOGLECOMPUTEENGINE__PROJECT);\n\n\t\tmachineibmsoftlayerEClass = createEClass(MACHINEIBMSOFTLAYER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_ENDPOINT);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__USER);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__API_KEY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__CPU);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DISK_SIZE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__DOMAIN);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__HOURLY_BILLING);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__IMAGE);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__LOCAL_DISK);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_NET_ONLY);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__REGION);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PUBLIC_VLAN_ID);\n\t\tcreateEAttribute(machineibmsoftlayerEClass, MACHINEIBMSOFTLAYER__PRIVATE_VLAN_ID);\n\n\t\tmachinemicrosoftazureEClass = createEClass(MACHINEMICROSOFTAZURE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_ID);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBSCRIPTION_CERT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__ENVIRONMENT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__MACHINE_LOCATION);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__RESOURCE_GROUP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SIZE);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SSH_USER);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__VNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__SUBNET_PREFIX);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__AVAILABILITY_SET);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__OPEN_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__PRIVATE_IP_ADDRESS);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__NO_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__STATIC_PUBLIC_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__DOCKER_PORT);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__USE_PRIVATE_IP);\n\t\tcreateEAttribute(machinemicrosoftazureEClass, MACHINEMICROSOFTAZURE__IMAGE);\n\n\t\tmachinemicrosofthypervEClass = createEClass(MACHINEMICROSOFTHYPERV);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VIRTUAL_SWITCH);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__DISK_SIZE);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__STATIC_MAC_ADDRESS);\n\t\tcreateEAttribute(machinemicrosofthypervEClass, MACHINEMICROSOFTHYPERV__VLAN_ID);\n\n\t\tmachineopenstackEClass = createEClass(MACHINEOPENSTACK);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLAVOR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IMAGE_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AUTH_URL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__USERNAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PASSWORD);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__TENANT_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__REGION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ENDPOINT_TYPE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__NET_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SEC_GROUPS);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__FLOATING_IP_POOL);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__ACTIVE_TIME_OUT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_ID);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__DOMAIN_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__INSECURE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__IP_VERSION);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__KEYPAIR_NAME);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__PRIVATE_KEY_FILE);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_PORT);\n\t\tcreateEAttribute(machineopenstackEClass, MACHINEOPENSTACK__SSH_USER);\n\n\t\tmachinerackspaceEClass = createEClass(MACHINERACKSPACE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__USERNAME);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__API_KEY);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__REGION);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__END_POINT_TYPE);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__IMAGE_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__FLAVOR_ID);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_USER);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__SSH_PORT);\n\t\tcreateEAttribute(machinerackspaceEClass, MACHINERACKSPACE__DOCKER_INSTALL);\n\n\t\tmachinevirtualboxEClass = createEClass(MACHINEVIRTUALBOX);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__DISK_SIZE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_DNS_RESOLVER);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__IMPORT_BOOT2_DOCKER_VM);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_CIDR);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_TYPE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__HOST_ONLY_NIC_PROMISC);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_SHARE);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_DNS_PROXY);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__NO_VTX_CHECK);\n\t\tcreateEAttribute(machinevirtualboxEClass, MACHINEVIRTUALBOX__SHARE_FOLDER);\n\n\t\tmachinevmwarefusionEClass = createEClass(MACHINEVMWAREFUSION);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarefusionEClass, MACHINEVMWAREFUSION__NO_SHARE);\n\n\t\tmachinevmwarevcloudairEClass = createEClass(MACHINEVMWAREVCLOUDAIR);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__USERNAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CATALOG_ITEM);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__COMPUTE_ID);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__DOCKER_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__EDGEGATEWAY);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VAPP_NAME);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__ORGVDCNETWORK);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PROVISION);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__PUBLIC_IP);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__SSH_PORT);\n\t\tcreateEAttribute(machinevmwarevcloudairEClass, MACHINEVMWAREVCLOUDAIR__VDC_ID);\n\n\t\tmachinevmwarevsphereEClass = createEClass(MACHINEVMWAREVSPHERE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__USERNAME);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__PASSWORD);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__BOOT2DOCKER_URL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__COMPUTE_IP);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__CPU_COUNT);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATACENTER);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DATASTORE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__DISK_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__MEMORY_SIZE);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__NETWORK);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__POOL);\n\t\tcreateEAttribute(machinevmwarevsphereEClass, MACHINEVMWAREVSPHERE__VCENTER);\n\n\t\tmachineexoscaleEClass = createEClass(MACHINEEXOSCALE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__URL);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__API_SECRET_KEY);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__INSTANCE_PROFILE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__IMAGE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SECURITY_GROUP);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AVAILABILITY_ZONE);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__SSH_USER);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__USER_DATA);\n\t\tcreateEAttribute(machineexoscaleEClass, MACHINEEXOSCALE__AFFINITY_GROUP);\n\n\t\tmachinegrid5000EClass = createEClass(MACHINEGRID5000);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USERNAME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__PASSWORD);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SITE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__WALLTIME);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PRIVATE_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__SSH_PUBLIC_KEY);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__IMAGE);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__RESOURCE_PROPERTIES);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__USE_JOB_RESERVATION);\n\t\tcreateEAttribute(machinegrid5000EClass, MACHINEGRID5000__HOST_TO_PROVISION);\n\n\t\tclusterEClass = createEClass(CLUSTER);\n\t\tcreateEAttribute(clusterEClass, CLUSTER__NAME);\n\n\t\t// Create enums\n\t\tmodeEEnum = createEEnum(MODE);\n\t}",
"static Optional<String> assemblePackage(List<Thing> things, double packageWeight) throws APIException {\n\t\treturn new PackageBuilder().resolveBetterPackage(things, packageWeight);\n\t}",
"public void onInstalled() {\n }",
"@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}",
"public abstract String packageName();",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tliveScoreEClass = createEClass(LIVE_SCORE);\n\t\tcreateEReference(liveScoreEClass, LIVE_SCORE__PREFEREDPLAYER);\n\t\tcreateEAttribute(liveScoreEClass, LIVE_SCORE__SALONNAME);\n\n\t\tpreferedPlayerEClass = createEClass(PREFERED_PLAYER);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__NAME);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__WON);\n\t\tcreateEAttribute(preferedPlayerEClass, PREFERED_PLAYER__PLAYINGS);\n\t}",
"@Override\n\tpublic void installedSucess(String packageName) {\n\t\t\n\t}",
"Registries createExtension();",
"public String getPackageName();",
"public interface XPackage {\n\t\n\t/**\n\t * \n\t * @return\n\t * @throws IOException\n\t * @throws FileNotFoundException\n\t */\n\tpublic XCollection<XClass> getClasses();\n\n\t/**\n\t * \n\t * @param recursively\n\t * @return\n\t */\n\tpublic XCollection<XClass> getClasses(boolean recursively);\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XPackage getParentPackage();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages();\n\n\t/**\n\t * \n\t * @return\n\t */\n\tpublic XCollection<XPackage> getChildPackages(boolean recursively);\n\n\t/**\n\t * \n\t * @param packageName\n\t * @return\n\t */\n\tpublic XPackage find(String packageName);\n\n}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttreeEClass = createEClass(TREE);\n\t\tcreateEReference(treeEClass, TREE__CHILDREN);\n\n\t\tnodeEClass = createEClass(NODE);\n\t\tcreateEReference(nodeEClass, NODE__CHILDREN);\n\t\tcreateEAttribute(nodeEClass, NODE__NAME);\n\t}",
"public void addDepends( final ExtensionAdapter extensionAdapter )\n {\n m_dependencies.add( extensionAdapter );\n }",
"protected void createExtendedMetaDataAnnotations() {\n\t\tString source = \"http:///org/eclipse/emf/ecore/util/ExtendedMetaData\";\t\n\t\taddAnnotation\n\t\t (getJClass_Operations(), \n\t\t source, \n\t\t new String[] {\n\t\t\t \"kind\", \"simple\"\n\t\t });\n\t}",
"@Override\n protected TsArtifact composeApplication() {\n final TsQuarkusExt extH = new TsQuarkusExt(\"ext-h\");\n install(extH);\n final TsQuarkusExt extIConditional = new TsQuarkusExt(\"ext-i-conditional\");\n extIConditional.setDependencyCondition(extH);\n install(extIConditional);\n\n final TsQuarkusExt extGConditional = new TsQuarkusExt(\"ext-g-conditional\");\n\n final TsQuarkusExt extA = new TsQuarkusExt(\"ext-a\");\n extA.setConditionalDeps(extGConditional);\n\n final TsQuarkusExt extB = new TsQuarkusExt(\"ext-b\");\n extB.addDependency(extA);\n\n final TsQuarkusExt extC = new TsQuarkusExt(\"ext-c\");\n extC.addDependency(extB);\n\n final TsQuarkusExt extD = new TsQuarkusExt(\"ext-d\");\n extD.addDependency(extB);\n\n final TsQuarkusExt extEConditional = new TsQuarkusExt(\"ext-e-conditional\");\n extEConditional.setDependencyCondition(extB);\n install(extEConditional);\n\n final TsQuarkusExt extF = new TsQuarkusExt(\"ext-f\");\n extF.setConditionalDeps(extEConditional, extIConditional);\n\n extGConditional.setDependencyCondition(extC);\n extGConditional.addDependency(extF);\n install(extGConditional);\n\n addToExpectedLib(extA.getRuntime());\n addToExpectedLib(extB.getRuntime());\n addToExpectedLib(extC.getRuntime());\n addToExpectedLib(extD.getRuntime());\n addToExpectedLib(extEConditional.getRuntime());\n addToExpectedLib(extF.getRuntime());\n addToExpectedLib(extGConditional.getRuntime());\n\n return TsArtifact.jar(\"app\")\n .addManagedDependency(platformDescriptor())\n .addManagedDependency(platformProperties())\n .addDependency(extC)\n .addDependency(extD);\n }",
"public void putObjectsIntoPackage(Package pkg, List<BusinessObject> objects);",
"io.deniffel.dsl.useCase.useCase.Package getPackage();",
"public void addFromJAR() {\n btAddFromJAR().push();\n }",
"private JsonNode jsonPackages(ObjectMapper mapper) {\n ArrayNode packages = mapper.createArrayNode();\n for (JavaPackage javaPackage : catalog.getPackages()) {\n packages.add(json(mapper, javaPackage));\n }\n return packages;\n }",
"@Override\r\n\tpublic void registerRecipes()\r\n\t{\n\r\n\t}",
"private static void addProjectFiles(IProject newProject){\n \t//add README file\n \taddProjectFile(newProject , README_FILE_NAME , \"\" );\n \t//add ProviderClass\n \taddProjectFile(newProject , PROVIDER_SCRIPT_FILE_NAME , CLASSES_FOLDER+\"/\" );\n }",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__IMPLEMENTATIONS);\n\n\t\timplementationEClass = createEClass(IMPLEMENTATION);\n\t\tcreateEAttribute(implementationEClass, IMPLEMENTATION__CODE);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__TECHNOLOGY);\n\t\tcreateEReference(implementationEClass, IMPLEMENTATION__LANGUAGE);\n\n\t\tsemanticsEClass = createEClass(SEMANTICS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__ANNOTATIONS);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__LANGUAGES);\n\t\tcreateEReference(semanticsEClass, SEMANTICS__TECHNOLOGIES);\n\n\t\ttargetLanguageEClass = createEClass(TARGET_LANGUAGE);\n\n\t\ttechnologyEClass = createEClass(TECHNOLOGY);\n\n\t\tnamedElementEClass = createEClass(NAMED_ELEMENT);\n\t\tcreateEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\t}",
"public void setPkg(String pkg) {\n this.pkg = pkg;\n }",
"public interface Packager {\n /**\n * A package is created using this method. The body of the package is\n * obtained from the given body source, while the resources or references\n * to the resources are obtained from the ApplicationContext's\n * PackageResources instance.\n *\n * @param context the request context associated with the packaging\n * operation\n * @param bodySource the source of the package's body content\n * @param bodyContext a contextual object of relevance to the package\n * bodySource\n */\n void createPackage(MarinerRequestContext context,\n PackageBodySource bodySource,\n Object bodyContext)\n throws PackagingException;\n}",
"public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\txActivityDiagramArbiterEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER);\n\n\t\txActivityDiagramArbiterStateEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_STATE);\n\n\t\txActivityDiagramArbiterTransitionEClass = createEClass(XACTIVITY_DIAGRAM_ARBITER_TRANSITION);\n\t}",
"public void addCgsSchemaVersionToPackage(PackageHandlerImpl packageHandler) throws Exception;",
"public void createPackageContents() {\n if(isCreated) {\n return;\n }\n isCreated = true;\n\n // Create classes and their features\n namedElementEClass = createEClass(NAMED_ELEMENT);\n createEAttribute(namedElementEClass, NAMED_ELEMENT__NAME);\n\n modularizationModelEClass = createEClass(MODULARIZATION_MODEL);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__MODULES);\n createEReference(modularizationModelEClass, MODULARIZATION_MODEL__CLASSES);\n\n moduleEClass = createEClass(MODULE);\n createEReference(moduleEClass, MODULE__CLASSES);\n\n classEClass = createEClass(CLASS);\n createEReference(classEClass, CLASS__MODULE);\n createEReference(classEClass, CLASS__DEPENDS_ON);\n createEReference(classEClass, CLASS__DEPENDED_ON_BY);\n }",
"String pkg();",
"public static void addOrderedPromotionalPackage() {\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************Adding promotional Package************\");\n\t\tOrderManager orderManager = new OrderManager();\n\t\tList listOfOrders = orderManager.viewOrder();\n\n\t\tOrderedPackageManager orderedPromotionalPackageManager = new OrderedPackageManager();\n\t\tList listOfOrderedPromotionalPackage = null;\n\n\t\tPackageManager promotionalPackageManager = new PackageManager();\n\t\tList listOfPromotionalPackages = promotionalPackageManager.onStartUp();\n\n\t\tint i = 0;\n\t\tint choice = 0;\n\t\tOrder order = null;\n\t\tPromotionalPackage promotionalPackage = null;\n\t\tOrderedPackage orderedPromotionalPackage = null;\n\t\tboolean check = false;\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tif (listOfOrders.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no orders!\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (listOfPromotionalPackages.size() == 0) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"There is no promotional packages!\");\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.out.println();\n\t\t\t// print the list of orders for the user to select from.\n\t\t\tfor (i = 0; i < listOfOrders.size(); i++) {\n\t\t\t\torder = (Order) listOfOrders.get(i);\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.println((i + 1) + \") Order: \" + order.getId()\n\t\t\t\t\t\t+ \" | Table: \" + order.getTable().getId());\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Select an order to add the promotional package ordered: \");\n\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\torder = (Order) listOfOrders.get(choice - 1);\n\n\t\t\tdo {\n\t\t\t\tfor (i = 0; i < listOfPromotionalPackages.size(); i++) {\n\t\t\t\t\tpromotionalPackage = (PromotionalPackage) listOfPromotionalPackages\n\t\t\t\t\t\t\t.get(i);\n\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\t\tSystem.out.println((i + 1) + \") ID: \"\n\t\t\t\t\t\t\t+ promotionalPackage.getId() + \" | Name: \"\n\t\t\t\t\t\t\t+ promotionalPackage.getName() + \" | Price: $\"\n\t\t\t\t\t\t\t+ promotionalPackage.getPrice());\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\tSystem.out.println((i + 1) + \") Done\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"\\t\\t\");\n\n\t\t\t\tSystem.out.print(\"Select an item to add into order: \");\n\t\t\t\tchoice = Integer.parseInt(sc.nextLine());\n\n\t\t\t\tif (choice != (i + 1)) {\n\t\t\t\t\tpromotionalPackage = (PromotionalPackage) listOfPromotionalPackages\n\t\t\t\t\t\t\t.get(choice - 1);\n\n\t\t\t\t\torderedPromotionalPackage = new OrderedPackage();\n\t\t\t\t\torderedPromotionalPackage.setPackage(promotionalPackage);\n\t\t\t\t\torderedPromotionalPackage.setOrder(order);\n\t\t\t\t\torderedPromotionalPackage.setPrice(promotionalPackage\n\t\t\t\t\t\t\t.getPrice());\n\n\t\t\t\t\torder.addOrderedPackage(orderedPromotionalPackage);\n\n\t\t\t\t\tcheck = orderedPromotionalPackageManager\n\t\t\t\t\t\t\t.createOrderedPackage(orderedPromotionalPackage);\n\n\t\t\t\t\tif (check) {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Promotional package added into order successfully!\");\n\t\t\t\t\t}\n\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\t\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\t\t\t\tSystem.out\n\t\t\t\t\t\t\t\t.println(\"Failed to add promotional package into order!\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} while (choice != (i + 1));\n\n\t\t}\n\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.print(\"\\t\\t\");\n\t\t\tSystem.out.format(\"%-25s:\", \"TASK STATUS\");\n\t\t\tSystem.out.println(\"Invalid Input!\");\n\t\t}\n\t\tSystem.out.print(\"\\t\\t\");\n\t\tSystem.out\n\t\t\t\t.println(\"************End of adding Promotional Package************\");\n\t}",
"public void createPackageContents()\n {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tclarityAbstractObjectEClass = createEClass(CLARITY_ABSTRACT_OBJECT);\n\t\tcreateEAttribute(clarityAbstractObjectEClass, CLARITY_ABSTRACT_OBJECT__CLARITY_CONNECTION);\n\n\t\tclarityAddFilesEClass = createEClass(CLARITY_ADD_FILES);\n\n\t\tclarityGetBatchResultEClass = createEClass(CLARITY_GET_BATCH_RESULT);\n\n\t\tclarityGetKeyEClass = createEClass(CLARITY_GET_KEY);\n\n\t\tclarityQueryBatchEClass = createEClass(CLARITY_QUERY_BATCH);\n\n\t\tclarityReloadFileEClass = createEClass(CLARITY_RELOAD_FILE);\n\n\t\tclarityRemoveFilesEClass = createEClass(CLARITY_REMOVE_FILES);\n\n\t\tstartBatchEClass = createEClass(START_BATCH);\n\t}",
"private void initialiseLevelPackages() {\n\t\tlevelPackages = new ArrayList<LevelPackage>();\n\n\t\tFileHandle handle = Gdx.files.internal(BackendHelper.getAssetDirPath()\n\t\t\t\t+ \"json/levels\");\n\t\tFileHandle[] possiblePackageDirs = handle.list();\n\t\tfor (FileHandle dir : possiblePackageDirs) {\n\t\t\tif (!dir.isDirectory()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tString name = dir.name();\n\t\t\tif (name.length() != 2) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (name.matches(\"[0-9][0-9]\")) {\n\t\t\t\ttry {\n\t\t\t\t\tif (dir.child(\"package.json\").exists()) {\n\t\t\t\t\t\tlevelPackages.add(this.loadPackage(Integer\n\t\t\t\t\t\t\t\t.parseInt(name)));\n\t\t\t\t\t}\n\t\t\t\t} catch (GdxRuntimeException ex) {\n\t\t\t\t\t/*\n\t\t\t\t\t * Ignore. Just in case, libGdx' documentation of is telling\n\t\t\t\t\t * the truth (which it isn't) and an exception is thrown in\n\t\t\t\t\t * dir.child, because it is internal an non-existent\n\t\t\t\t\t */\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.sort(levelPackages, new Comparator<LevelPackage>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(LevelPackage o1, LevelPackage o2) {\n\t\t\t\treturn (int) Math.signum(o1.getLevelPackageId()\n\t\t\t\t\t\t- o2.getLevelPackageId());\n\t\t\t}\n\t\t});\n\t}",
"@Before\n public void setUp() {\n System.setProperty(\"java.protocol.handler.pkgs\",\n \"org.jvoicexml.jsapi2.protocols\");\n }",
"public void registerCustomExtensions(HtmlTable table) throws ExtensionLoadingException {\n \n \t\tif (StringUtils.isNotBlank(table.getTableConfiguration().getBasePackage())) {\n \n \t\t\tlogger.debug(\"Scanning custom extensions...\");\n \n \t\t\t// Scanning custom extension based on the base.package property\n \t\t\tList<AbstractExtension> customExtensions = scanCustomExtensions(table.getTableConfiguration()\n \t\t\t\t\t.getBasePackage());\n \n \t\t\t// Load custom extension if enabled\n \t\t\tif (customExtensions != null && !customExtensions.isEmpty() && table.getTableConfiguration().getExtraCustomExtensions() != null) {\n \t\t\t\tfor (String extensionToRegister : table.getTableConfiguration().getExtraCustomExtensions()) {\n \t\t\t\t\tfor (AbstractExtension customExtension : customExtensions) {\n \t\t\t\t\t\tif (extensionToRegister.equals(customExtension.getName().toLowerCase())) {\n \t\t\t\t\t\t\ttable.getTableConfiguration().registerExtension(customExtension);\n \t\t\t\t\t\t\tlogger.debug(\"Extension {} (version: {}) registered\", customExtension.getName(),\n \t\t\t\t\t\t\t\t\tcustomExtension.getVersion());\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tlogger.warn(\"No custom extension found\");\n \t\t\t}\n \t\t}\n \t\telse{\n \t\t\tlogger.debug(\"The 'base.package' property is blank. Unable to scan any class.\");\n \t\t}\n \t}",
"public static void providePackageDeclaration(final FileWriterWrapper writer,\n final String packageName)\n throws IOException {\n writer.write(\"package \" + packageName + \";\\n\\n\");\n }"
] | [
"0.6608549",
"0.6070275",
"0.5918456",
"0.5911345",
"0.59006274",
"0.589544",
"0.5856004",
"0.5817018",
"0.56911725",
"0.5674507",
"0.56700927",
"0.56480926",
"0.55518246",
"0.5546167",
"0.5538638",
"0.54203105",
"0.54021585",
"0.5394781",
"0.5352344",
"0.53492266",
"0.5297577",
"0.5266241",
"0.5256148",
"0.5254893",
"0.5240681",
"0.52363306",
"0.5222103",
"0.5217311",
"0.5215683",
"0.521003",
"0.5204036",
"0.51994437",
"0.5191572",
"0.51811975",
"0.5176031",
"0.5175222",
"0.5163779",
"0.516029",
"0.51550955",
"0.5154005",
"0.5148313",
"0.5137137",
"0.5136639",
"0.5128546",
"0.512834",
"0.512201",
"0.51129633",
"0.5104039",
"0.50948054",
"0.509458",
"0.5093654",
"0.5069041",
"0.5064177",
"0.50561684",
"0.50561297",
"0.50560236",
"0.5049509",
"0.5041245",
"0.50412256",
"0.50161594",
"0.500575",
"0.50050277",
"0.500282",
"0.5000497",
"0.4976079",
"0.49745762",
"0.4972899",
"0.49658304",
"0.4963491",
"0.4951093",
"0.49502665",
"0.494391",
"0.49436182",
"0.4942266",
"0.49409005",
"0.4935584",
"0.49225977",
"0.49194512",
"0.49162468",
"0.49139804",
"0.49122483",
"0.49111542",
"0.4910622",
"0.49076158",
"0.4906145",
"0.48995835",
"0.48915836",
"0.48913762",
"0.4889957",
"0.48891783",
"0.48869544",
"0.4885701",
"0.48844525",
"0.48553008",
"0.48512343",
"0.484425",
"0.4833472",
"0.48330945",
"0.48323315",
"0.4832198"
] | 0.52886456 | 21 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
assert lastName != null : "fx:id=\"lastName";
assert name != null : "fx:id=\"name";
assert birth != null : "fx:id=\"birth";
assert place != null : "fx:id=\"place";
assert death != null : "fx:id=\"death";
assert image != null : "fx:id=\"image";
assert sexe != null : "fx:id=\"sexe";
assert father != null : "fx:id=\"father";
assert mother != null : "fx:id=\"mother";
assert partner != null : "fx:id=\"partner";
assert weddingDate != null : "fx:id=\"weddingDate";
sexe.getItems().addAll("MALE", "FEMELLE");
image.setText(null);
loadPersons(lastName,birth, father);
loadPersons(birth, mother);
loadPersons(sexe, partner);
BooleanBinding booleanBinding = new BooleanBinding() {
{
super.bind(name.textProperty(),
lastName.textProperty(),
sexe.valueProperty(),
birth.valueProperty());
}
@Override
protected boolean computeValue() {
return (name.getText().isEmpty()
|| lastName.getText().isEmpty()
|| (sexe.getValue()==null)
|| (birth.getValue()==null));
}
};
BooleanBinding bb= new BooleanBinding() {
{
super.bind(partner.valueProperty());
}
@Override
protected boolean computeValue() {
return (partner.getValue()==null);
}
};
btnValider.disableProperty().bind(booleanBinding);
father.disableProperty().bind(booleanBinding);
mother.disableProperty().bind(booleanBinding);
partner.disableProperty().bind(booleanBinding);
weddingDate.disableProperty().bind(bb);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Controller()\n\t{\n\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public Controller() {\n\t\tthis(null);\n\t}",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"protected CityController() {\r\n\t}",
"public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }",
"public ClientController() {\n }",
"public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}",
"public ListaSEController() {\n }",
"boolean InitController();",
"public MenuController() {\r\n\t \r\n\t }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"public CustomerController() {\n\t\tsuper();\n\n\t}",
"public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"public PlantillaController() {\n }",
"public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}",
"public IfController()\n\t{\n\n\t}",
"public TournamentController()\n\t{\n\t\tinitMap();\n\t}",
"public GeneralListVueController() {\n\n\t}",
"private ClientController() {\n }",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public LogMessageController() {\n\t}",
"public LoginPageController() {\n\t}",
"public ControllerEnfermaria() {\n }",
"public ProvisioningEngineerController() {\n super();\n }",
"private StoreController(){}",
"public GenericController() {\n }",
"@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}",
"public MapController() {\r\n\t}",
"public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"public WfController()\n {\n }",
"public Controller() {\n\n lastSearches = new SearchHistory();\n\n }",
"private ClientController(){\n\n }",
"public LoginController() {\r\n }",
"public PersonasController() {\r\n }",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }",
"public StoreController() {\n }",
"public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}",
"public LoginController() {\r\n\r\n }",
"public final void init(final MainController mainController) {\n this.mainController = mainController;\n }",
"public SMPFXController() {\n\n }",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public GUIController() {\n\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }",
"@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }",
"public ControllerTest()\r\n {\r\n }",
"public SearchedRecipeController() {\n }",
"public FilmOverviewController() {\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public RootLayoutController() {\n }",
"public MehController() {\n updateView(null);\n }",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"public WorkerController(){\r\n\t}",
"public TipoInformazioniController() {\n\n\t}",
"private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }",
"public ProductOverviewController() {\n }",
"public ProduktController() {\r\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }",
"public PersonLoginController() {\n }",
"public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}",
"public TaxiInformationController() {\n }",
"public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }",
"public CreateDocumentController() {\n }",
"public ControllerRol() {\n }",
"public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }",
"public void init() {\n \n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public SessionController() {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"public MainFrameController() {\n }",
"public LicenciaController() {\n }",
"public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }",
"public MotorController() {\n\t\tresetTachometers();\n\t}",
"public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"public HomeController() {\n }",
"public HomeController() {\n }"
] | [
"0.8126964",
"0.7851839",
"0.7832365",
"0.77611595",
"0.77611595",
"0.76006174",
"0.7449813",
"0.7436411",
"0.74287105",
"0.7421962",
"0.74047625",
"0.7343157",
"0.73301536",
"0.7263003",
"0.7224605",
"0.7101504",
"0.7057384",
"0.69884926",
"0.69719976",
"0.69432217",
"0.69119257",
"0.6888825",
"0.6881205",
"0.68794805",
"0.687174",
"0.6866938",
"0.6865937",
"0.6849396",
"0.6845939",
"0.6839687",
"0.6837112",
"0.6833955",
"0.6795975",
"0.6782245",
"0.6767086",
"0.6764646",
"0.67509997",
"0.6749477",
"0.674522",
"0.67419225",
"0.67397505",
"0.6727296",
"0.6723142",
"0.6697698",
"0.6689844",
"0.668817",
"0.6680435",
"0.6677299",
"0.6664283",
"0.6662678",
"0.66608524",
"0.6652558",
"0.66477764",
"0.6646758",
"0.6639475",
"0.6632995",
"0.66304505",
"0.66264915",
"0.66252357",
"0.66108394",
"0.6606401",
"0.66032904",
"0.6599113",
"0.6581286",
"0.6578123",
"0.65750456",
"0.65733284",
"0.6552215",
"0.6550158",
"0.6547438",
"0.6544347",
"0.65400237",
"0.65283346",
"0.6527831",
"0.65261406",
"0.6522705",
"0.6519808",
"0.65122837",
"0.65087926",
"0.6497251",
"0.6494279",
"0.64932513",
"0.64928424",
"0.6483885",
"0.6482385",
"0.64812213",
"0.64792144",
"0.6479202",
"0.6477772",
"0.64712137",
"0.6464147",
"0.6460334",
"0.6443538",
"0.6437184",
"0.6431115",
"0.64289",
"0.6425331",
"0.6417588",
"0.6415438",
"0.641474",
"0.641474"
] | 0.0 | -1 |
Created by Jay on 2018/12/9. | public interface MenuGroupRepository extends JpaRepository<MenuGroup,String>
, QuerydslPredicateExecutor<MenuGroup> {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\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\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"private void poetries() {\n\n\t}",
"@Override\n public int describeContents() { return 0; }",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\n void init() {\n }",
"@Override\n protected void initialize() {\n\n \n }",
"@Override\r\n\tpublic void dormir() {\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 }",
"private static void cajas() {\n\t\t\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"public void mo38117a() {\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\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void init() {}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"private void m50366E() {\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\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"protected boolean func_70814_o() { return true; }",
"@Override\r\n\tpublic void init() {}",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n protected void init() {\n }",
"@Override\n protected void getExras() {\n }",
"public void mo4359a() {\n }",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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}",
"private void init() {\n\n\t}",
"private void kk12() {\n\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\n public void initialize() { \n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n public void memoria() {\n \n }",
"Consumable() {\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 nghe() {\n\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\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}",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\n public void initialize() {}",
"@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"public void mo6081a() {\n }",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override\n\tprotected void initialize() {\n\t}",
"@Override public int describeContents() { return 0; }",
"@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}",
"@Override\n public int retroceder() {\n return 0;\n }",
"@Override\n\tpublic void jugar() {}"
] | [
"0.60498154",
"0.5844589",
"0.5797757",
"0.57664865",
"0.5691012",
"0.5691012",
"0.5652021",
"0.56380427",
"0.5613109",
"0.55913997",
"0.5564318",
"0.55474615",
"0.5541943",
"0.55332196",
"0.55266505",
"0.55011606",
"0.54832083",
"0.54819375",
"0.5480598",
"0.54804724",
"0.54766786",
"0.54659885",
"0.5459848",
"0.5459283",
"0.5459283",
"0.5459283",
"0.5459283",
"0.5459283",
"0.5459283",
"0.5440004",
"0.5436744",
"0.5416442",
"0.5411668",
"0.5411668",
"0.5411668",
"0.5411668",
"0.5411668",
"0.5411094",
"0.53953516",
"0.539097",
"0.5385088",
"0.5372698",
"0.5369879",
"0.53587246",
"0.5350404",
"0.5350404",
"0.53487605",
"0.5341819",
"0.5341819",
"0.5337702",
"0.53362054",
"0.5335819",
"0.53285396",
"0.53285396",
"0.5328453",
"0.5325111",
"0.53237814",
"0.5315885",
"0.5308996",
"0.5308996",
"0.5308996",
"0.5299239",
"0.5298036",
"0.52853143",
"0.5282976",
"0.5279849",
"0.52792543",
"0.52743715",
"0.5271909",
"0.5271909",
"0.5271909",
"0.5271909",
"0.5271909",
"0.5271909",
"0.5271909",
"0.52691245",
"0.5263695",
"0.5263695",
"0.5263695",
"0.5258616",
"0.5258616",
"0.5258616",
"0.5255418",
"0.5246168",
"0.5238395",
"0.5238191",
"0.5233974",
"0.5233974",
"0.5233974",
"0.5226742",
"0.52081144",
"0.5207353",
"0.5205811",
"0.52056783",
"0.5176484",
"0.5174231",
"0.5174231",
"0.5173894",
"0.5172472",
"0.5171565",
"0.5163079"
] | 0.0 | -1 |
14.a. Todo Aluno deve ser criado com sua respectiva data de nascimento; | Aluno(String dataNascimento) {
this.dataNascimento = dataNascimento;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"private int creaSingoloAddebito(int cod, Date data) {\n /* variabili e costanti locali di lavoro */\n int nuovoRecord = 0;\n boolean continua;\n Dati dati;\n int codConto = 0;\n int codListino = 0;\n int quantita = 0;\n double prezzo = 0.0;\n Campo campoConto = null;\n Campo campoListino = null;\n Campo campoQuantita = null;\n Campo campoPrezzo = null;\n Campo campoData = null;\n Campo campoFissoConto = null;\n Campo campoFissoListino = null;\n Campo campoFissoQuantita = null;\n Campo campoFissoPrezzo = null;\n ArrayList<CampoValore> campi = null;\n Modulo modAddebito = null;\n Modulo modAddebitoFisso = null;\n\n try { // prova ad eseguire il codice\n\n modAddebito = Progetto.getModulo(Addebito.NOME_MODULO);\n modAddebitoFisso = Progetto.getModulo(AddebitoFisso.NOME_MODULO);\n\n /* carica tutti i dati dall'addebito fisso */\n dati = modAddebitoFisso.query().caricaRecord(cod);\n continua = dati != null;\n\n /* recupera i campi da leggere e da scrivere */\n if (continua) {\n\n /* campi del modulo Addebito Fisso (da leggere) */\n campoFissoConto = modAddebitoFisso.getCampo(Addebito.Cam.conto.get());\n campoFissoListino = modAddebitoFisso.getCampo(Addebito.Cam.listino.get());\n campoFissoQuantita = modAddebitoFisso.getCampo(Addebito.Cam.quantita.get());\n campoFissoPrezzo = modAddebitoFisso.getCampo(Addebito.Cam.prezzo.get());\n\n /* campi del modulo Addebito (da scrivere) */\n campoConto = modAddebito.getCampo(Addebito.Cam.conto.get());\n campoListino = modAddebito.getCampo(Addebito.Cam.listino.get());\n campoQuantita = modAddebito.getCampo(Addebito.Cam.quantita.get());\n campoPrezzo = modAddebito.getCampo(Addebito.Cam.prezzo.get());\n campoData = modAddebito.getCampo(Addebito.Cam.data.get());\n\n }// fine del blocco if\n\n /* legge i dati dal record di addebito fisso */\n if (continua) {\n codConto = dati.getIntAt(campoFissoConto);\n codListino = dati.getIntAt(campoFissoListino);\n quantita = dati.getIntAt(campoFissoQuantita);\n prezzo = (Double)dati.getValueAt(0, campoFissoPrezzo);\n dati.close();\n }// fine del blocco if\n\n /* crea un nuovo record in addebito */\n if (continua) {\n campi = new ArrayList<CampoValore>();\n campi.add(new CampoValore(campoConto, codConto));\n campi.add(new CampoValore(campoListino, codListino));\n campi.add(new CampoValore(campoQuantita, quantita));\n campi.add(new CampoValore(campoPrezzo, prezzo));\n campi.add(new CampoValore(campoData, data));\n nuovoRecord = modAddebito.query().nuovoRecord(campi);\n continua = nuovoRecord > 0;\n }// fine del blocco if\n\n /* aggiorna la data di sincronizzazione in addebito fisso */\n if (continua) {\n this.getModulo().query().registraRecordValore(cod, Cam.dataSincro.get(), data);\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n /* valore di ritorno */\n return nuovoRecord;\n }",
"public void crearDepartamento(String nombredep, String num, int nvJefe, int horIn, int minIn, int horCi, int minCi) {\r\n\t\t// TODO Auto-generated method stub by carlos Sánchez\r\n\t\t//Agustin deberia devolverme algo q me indique si hay un fallo alcrearlo cual es\r\n\t\t//hazlo como mas facil te sea.Yo no se cuantos distintos puede haber.\r\n\t\r\n\t//para añadir el Dpto en la BBDD no se necesita el Nombre del Jefe\r\n\t//pero si su numero de vendedor (por eso lo he puesto como int) que forma parte de la PK \r\n\t\t\r\n\t\tint n= Integer.parseInt(num);\r\n\t\tString horaapertura=aplicacion.utilidades.Util.horaminutosAString(horIn, minIn);\r\n\t\tString horacierre=aplicacion.utilidades.Util.horaminutosAString(horCi, minCi);\r\n\t\tTime thI= Time.valueOf(horaapertura);\r\n\t\tTime thC=Time.valueOf(horacierre);\r\n\t\tthis.controlador.insertDepartamentoPruebas(nombredep, nvJefe,thI,thC); //tabla DEPARTAMENTO\r\n\t\tthis.controlador.insertNumerosDepartamento(n, nombredep); //tabla NumerosDEPARTAMENTOs\r\n\t\tthis.controlador.insertDepartamentoUsuario(nvJefe, nombredep); //tabla DepartamentoUsuario\r\n\r\n\t\t//insertamos en la cache\r\n\t\t//Departamento d=new Departamento(nombredep,Integer.parseInt(num),getEmpleado(nvJefe),null,null);\r\n\t\t//departamentosJefe.add(d);\r\n\t\t/*ArrayList<Object> aux=new ArrayList<Object>();\r\n\t\taux.add(nombredep);\r\n\t\taux.add(n);\r\n\t\taux.add(nvJefe);\r\n\t\tinsertCache(aux,\"crearDepartamento\");*///no quitar el parseInt\r\n\t}",
"public co\n\t\t.com\n\t\t.telefonica\n\t\t.atiempo\n\t\t.soltec\n\t\t.datos_publicacion\n\t\t.ejb\n\t\t.sb\n\t\t.DatosPublicacionSTLocal create()\n\t\tthrows javax.ejb.CreateException;",
"public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}",
"private void populaAluno()\n {\n Calendar nasc = Calendar.getInstance();\n nasc.set(Calendar.DAY_OF_MONTH, 24);\n nasc.set(Calendar.MONTH, 03);\n nasc.set(Calendar.YEAR, 1989);\n Aluno c = new Aluno();\n c.setNome(\"Christian \");\n c.setEmail(\"c@gmail.com\");\n c.setCpf(\"33342523501\");\n c.setAltura(1.76);\n c.setPeso(70);\n c.setSenha(CriptografiaLogic.encriptar(\"r\"));\n c.setRg(\"22233344401\");\n c.setDataNascimento(nasc);\n c.setNumSolicitacao(0);\n alunoDAO.insert(c);\n\n for (int i = 1; i < 500; i++)\n {\n nasc.set(Calendar.DAY_OF_MONTH, NumberLogic.randomInteger(1, 28));\n nasc.set(Calendar.MONTH, NumberLogic.randomInteger(1, 12));\n nasc.set(Calendar.YEAR, NumberLogic.randomInteger(1940, 1995));\n Aluno a = new Aluno();\n a.setNome(\"Aluno \" + i);\n a.setEmail(\"aluno\" + i + \"@gmail.com\");\n a.setCpf(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setAltura(NumberLogic.randomDouble(1.60d, 1.99d));\n a.setPeso(NumberLogic.randomInteger(60, 100));\n a.setSenha(CriptografiaLogic.encriptar(\"123\"));\n a.setRg(String.valueOf(NumberLogic.randomInteger(100000000, 999999999)));\n a.setDataNascimento(nasc);\n a.setNumSolicitacao(0);\n alunoDAO.insert(a);\n }\n }",
"public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }",
"private void creaAddebitiGiornoConto(Date data, int codConto) {\n /* variabili e costanti locali di lavoro */\n boolean continua;\n Filtro filtro;\n int[] interi;\n ArrayList<Integer> codici = null;\n Modulo modAddFisso;\n Modulo modConto;\n boolean chiuso;\n\n try { // prova ad eseguire il codice\n\n /* controllo se il conto e' aperto */\n modConto = Albergo.Moduli.Conto();\n chiuso = modConto.query().valoreBool(Conto.Cam.chiuso.get(), codConto);\n continua = (!chiuso);\n\n if (continua) {\n\n /* filtro che isola gli addebiti fissi da eseguire\n * per il giorno e il conto dati */\n filtro = this.getFiltroFissiGiornoConto(data, codConto);\n continua = filtro != null;\n\n /* crea elenco dei codici addebito fisso da elaborare */\n if (continua) {\n modAddFisso = Albergo.Moduli.AddebitoFisso();\n interi = modAddFisso.query().valoriChiave(filtro);\n codici = Lib.Array.creaLista(interi);\n }// fine del blocco if\n\n /* crea un addebito effettivo per ogni addebito fisso */\n if (codici != null) {\n for (int cod : codici) {\n this.creaSingoloAddebito(cod, data);\n } // fine del ciclo for-each\n }// fine del blocco if\n\n }// fine del blocco if\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}",
"public void inseriPessoa() throws IOException {\n\t\tString r;\n\t\tvetPessoas[nPessoas] = new Pessoa();\n\t\tSystem.out.println(\"Inseri o nome \");\n\t\tr = EntradaTeclado.leString();\n\t\tvetPessoas[nPessoas].setNome(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Cpf \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setCpf(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Endereco \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEndereco(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Email \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEmail(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Data de Nascimento fomanto (dd/mm/aaaa)\");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setDataNascimento(r);\n\t\t\n\t\tSystem.out.println(\"Inseri o Estado Civil \");\n\t\tr = EntradaTeclado.leString();\n\t\tthis.vetPessoas[this.nPessoas].setEstadoCivil(r);\n\t\t\n\t\tthis.nPessoas+=1;\n\t}",
"public static void creaHidatoAutomaticament()\n {\n ControladorVista.mostraCreacioHidatoAutomatica();\n }",
"public void SalvarNovaPessoa(){\r\n \r\n\t\tpessoaModel.setUsuarioModel(this.usuarioController.GetUsuarioSession());\r\n \r\n\t\t//INFORMANDO QUE O CADASTRO FOI VIA INPUT\r\n\t\tpessoaModel.setOrigemCadastro(\"I\");\r\n \r\n\t\tpessoaRepository.SalvarNovoRegistro(this.pessoaModel);\r\n \r\n\t\tthis.pessoaModel = null;\r\n \r\n\t\tUteis.MensagemInfo(\"Registro cadastrado com sucesso\");\r\n \r\n\t}",
"private void populaUnidade()\n {\n Unidade unidade = new Unidade(\"Unidade Santo Amaro\", \"Horario de funcionamento: 6:00 as 23:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Aclimação\", \"Horario de funcionamento: 7:00 as 22:00\");\n unidadeDAO.insert(unidade);\n unidade = new Unidade(\"Unidade Vinhedo\", \"Horario de funcionamento: 6:00 as 22:00\");\n unidadeDAO.insert(unidade);\n }",
"Secuencia createSecuencia();",
"@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }",
"public void agregarAlInicio(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario va agregando los nodos al inicio de la lista.\r\n } else{\r\n // Une el nuevo nodo con la lista existente.\r\n nuevo.setSiguiente(inicio);\r\n // Renombra al nuevo nodo como el inicio de la lista.\r\n inicio = nuevo;\r\n }\r\n // Incrementa el contador de tamaño de la lista.\r\n tamanio++;\r\n }",
"public Persona() { // constructor sin parámetros\r\n\t\t\r\n\t\tthis.nif = \"44882229Y\";\r\n\t\tthis.nombre=\"Anonimo\";\r\n\t\tthis.sexo = 'F';\r\n\t\tthis.fecha = LocalDate.now();\r\n\t\tthis.altura = 180;\r\n\t\tthis.madre = null;\r\n\t\tthis.padre = null;\r\n\t\tcontador++;\r\n\t}",
"@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}",
"@Override\r\n public boolean create(Pontuacao pontuacao) {\r\n Connection conexao = mysql.getConnection();\r\n\r\n try {\r\n PreparedStatement stm = conexao.prepareStatement(createSQL);\r\n\r\n stm.setInt(1, pontuacao.getIdcodigo());\r\n stm.setString(2, pontuacao.getData());\r\n stm.setInt(3, pontuacao.getP_rodada());\r\n stm.setInt(4, pontuacao.getS_rodada());\r\n stm.setInt(5, pontuacao.getT_rodada());\r\n stm.setInt(6, pontuacao.getTotal());\r\n\r\n int registros = stm.executeUpdate();\r\n\r\n return registros > 0 ? true : false;\r\n\r\n } catch (final SQLException ex) {\r\n System.out.println(\"Falha de conexão com a base de dados!\");\r\n ex.printStackTrace();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n try {\r\n conexao.close();\r\n } catch (final Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n return false;\r\n }",
"public static void insert(String nome, String cognome, String email, String citta, Date dataNascita, String username, String password, int ruolo, Date dataSignup ) {\r\n\t\tMap<String, Object> map = new HashMap<String, Object>(); \r\n \tmap.put(\"nome\", nome);\r\n \tmap.put(\"cognome\", cognome);\r\n \tmap.put(\"email\", email);\r\n \tmap.put(\"citta\", citta);\r\n \tmap.put(\"dataNascita\", dataNascita);\r\n \tmap.put(\"username\", username);\r\n \tmap.put(\"password\", crypt(password));\r\n \tmap.put(\"ruolo\", ruolo); // ruolo dell'utente normale \r\n \tmap.put(\"dataSignup\", dataSignup);\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"Non esiste un altro utente con queste credenziali nel DB\");\r\n\t\t\tDatabase.connect();\r\n \t\tDatabase.insertRecord(\"utente\", map);\r\n\r\n \t\tDatabase.close();\r\n \t\t\r\n\t\t}catch(NamingException e) {\r\n \t\tSystem.out.println(e);\r\n }catch (SQLException e) {\r\n \tSystem.out.println(e);\r\n }catch (Exception e) {\r\n \tSystem.out.println(e); \r\n }\r\n\t\t\r\n\t}",
"ParqueaderoEntidad agregar(String nombre);",
"public ExistenciaMaq generar(final String clave,final Date fecha, final Long almacenId);",
"@Override\r\npublic int create(Detalle_pedido d) {\n\treturn detalle_pedidoDao.create(d);\r\n}",
"public Paciente agregar(PacienteDTO nuevoPaciente) {\n\n int valor_hipertension = nuevoPaciente.getHipertension().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_mareo = nuevoPaciente.getMareo().equalsIgnoreCase(\"Si\") ? 100 : 0;\n int valor_presion = medirPresion(nuevoPaciente.getPresion());\n int valor_fiebre = medirFiebre(nuevoPaciente.getFiebre());\n int valor_edad = medirEdad(nuevoPaciente.getEdad());\n int puntaje = valor_mareo + valor_edad + valor_presion + valor_fiebre + valor_hipertension;\n\n Date date = new Date(new java.util.Date().getTime());\n Color color = colorRepository.getColorBetweenRange(puntaje);\n\n Paciente paciente = new Paciente();\n paciente.setName(nuevoPaciente.getNombre());\n paciente.setDni(nuevoPaciente.getDni());\n paciente.setColor(color);\n paciente.setScore(puntaje);\n paciente.setStatus(cantidadSiendoAtendidos(color) < color.getCant_max_patient() ? \"Siendo atendido\" : \"En espera\");\n paciente.setDate(date);\n Paciente elemento = pacienteRepository.saveAndFlush(paciente);\n return elemento;\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"@Transactional\n\t@Override\n\tpublic Prenotazione create(long id,LocalDate dataInzio, LocalDate dataFine, LocalTime oraInzio, LocalTime oraFine, \n\t\t\tString descrizione, Car car, User user) {\n\t\treturn this.prenotazioneRepository.create(id, dataInzio, dataFine, oraInzio, oraFine, descrizione, car, user);\n\t}",
"Long crear(Prestamo prestamo);",
"public void insertar(String dato){\r\n \r\n if(estaVacia()){\r\n \r\n primero = new NodoJugador(dato);\r\n }else{\r\n NodoJugador temporal = primero;\r\n while(temporal.getSiguiente()!=null){\r\n temporal = temporal.getSiguiente();\r\n }\r\n \r\n temporal.setSiguiente(new NodoJugador(dato));\r\n }\r\n }",
"public abstract Anuncio creaAnuncioIndividualizado();",
"@Override\n public ComprobanteContable createComprobante(Aerolinea a, Boleto boleto, Cliente cliente, String tipo, NotaDebito nota) throws CRUDException {\n\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n return comprobante;\n }",
"Documento createDocumento();",
"public Pedido(int id_pedido, Mesa mesa, Time hora, Usuario usuario, int cancelado, Date fecha) {\n this.id_pedido = id_pedido;\n this.mesa = mesa;\n this.hora = hora;\n this.usuario = usuario;\n this.cancelado = cancelado;\n this.fecha = fecha;\n }",
"private void adicionar(No novo, Pessoa pessoa) {\n if(raiz == null)\n raiz = new No(pessoa);\n else{\n if(pessoa.getIdade()<novo.getPessoa().getIdade()){\n if(novo.getEsquerda() != null)\n adicionar(novo.getEsquerda() , pessoa);\n else\n novo.setEsquerda(new No(pessoa));\n }else{\n if(novo.getDireita() !=null)\n adicionar(novo.getDireita(), pessoa);\n else\n novo.setDireita(new No(pessoa));\n }\n }\n \n }",
"public void crearActividad (Actividad a) {\r\n String query = \"INSERT INTO actividad (identificacion_navegate, numero_matricula, fecha, hora, destino, eliminar) VALUES (\\\"\" \r\n + a.getIdentificacionNavegante()+ \"\\\", \" \r\n + a.getNumeroMatricula() + \", \\\"\" \r\n + a.getFecha() + \"\\\", \\\"\" \r\n + a.getHora() + \"\\\", \\\"\" \r\n + a.getDestino()+ \"\\\" ,false)\";\r\n try {\r\n Statement st = con.createStatement();\r\n st.executeUpdate(query);\r\n st.close();\r\n JOptionPane.showMessageDialog(null, \"Actividad creada\", \"Operación exitosa\", JOptionPane.INFORMATION_MESSAGE);\r\n } catch (SQLException ex) {\r\n Logger.getLogger(PActividad.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"Long crear(Espacio espacio);",
"@Override\r\n public void crearCliente(Cliente cliente) throws Exception {\r\n entity.getTransaction().begin();//inicia la creacion\r\n entity.persist(cliente);//se crea el cliente\r\n entity.getTransaction().commit();//finaliza la creacion\r\n }",
"public long Create(Estado estado ){\r\n SQLiteDatabase sqLiteDatabase = conn.getWritableDatabase();\r\n return sqLiteDatabase.insert(\"estados\", null, estado.toContentValues());\r\n }",
"public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }",
"@Test\n public void createComentarioTest() {\n PodamFactory factory = new PodamFactoryImpl();\n ComentarioEntity nuevaEntity = factory.manufacturePojo(ComentarioEntity.class);\n ComentarioEntity resultado = comentarioPersistence.create(nuevaEntity);\n\n Assert.assertNotNull(resultado);\n\n ComentarioEntity entity = em.find(ComentarioEntity.class, resultado.getId());\n\n Assert.assertEquals(nuevaEntity.getNombreUsuario(), entity.getNombreUsuario());\n \n }",
"public void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\n}",
"ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);",
"public ExistenciaMaq generar(final String clave,final Long almacenId,int year,int mes);",
"public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }",
"@Override\n public void agregarSocio(String nombre, int dni, int codSocio) {\n }",
"public void añadirCuentas(int numeroCuentas){\n\t\tfloat saldo; \r\n\t\tint random;\r\n\t\tString titular=\"\", numero=\"\", caracteres=\"0123456789\";\r\n\t\tString[] palabras=new String[5];\r\n\t\tpalabras[0]=\"Marta\";\r\n\t\tpalabras[1]=\"Javier\";\r\n\t\tpalabras[2]=\"Sandra\";\r\n\t\tpalabras[3]=\"David\";\r\n\t\tpalabras[4]=\"Juan\";\r\n\t\tboolean valida;\r\n\r\n\t\t//(int)(Math.random()*(hasta-desde+1)+desde)\r\n\r\n\r\n\t\tfor (int i=0;i<numeroCuentas;i++){\r\n\r\n\t\t\trandom=(int)(Math.random()*(4-0+1)+0);\r\n\t\t\ttitular=palabras[random];\r\n\r\n\t\t\trandom=(int)(Math.random()*(10000-0+1)+0);\r\n\t\t\tsaldo=random;\r\n\r\n\t\t\tdo{\r\n\t\t\t\tfor(int j=0;j<20;j++){\r\n\t\t\t\t\trandom=(int)(Math.random()*(9-0+1)+0);\r\n\t\t\t\t\tnumero+=caracteres.charAt(random);\r\n\t\t\t\t}\r\n\t\t\t\tvalida=comprobarNumero(numero);\r\n\t\t\t}while(!valida);\r\n\r\n\t\t\tCuentaCorriente defecto=new CuentaCorriente(titular, numero, saldo);\r\n\t\t\tlista[i]=defecto;\r\n\t\t\tCuentas.setnCuentas(CuentaCorriente.getCodigo());\r\n\t\t\tnumero=\"\";\r\n\r\n\t\t}\r\n\t\tordenar();\r\n\r\n\t}",
"@Override\n public ComprobanteContable createComprobante(\n Aerolinea a, Boleto boleto, Cliente cliente, String tipo) throws CRUDException {\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n buff.append(a.getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas\n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n comprobante.setIdCliente(cliente);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(tipo);\n\n //ComprobanteContablePK numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), tipo);\n comprobante.setIdNumeroGestion(numero);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n\n return comprobante;\n }",
"public long insertDato(String atributo01)\n {\n ContentValues initialValues = new ContentValues();\n initialValues.put(KEY_ATRIBUTO01, atributo01);\n return db.insert(DATABASE_TABLE, null, initialValues);\n }",
"@SuppressWarnings(\"UnnecessaryLocalVariable\")\r\n private int create(T o) throws PersistenceException {\r\n String query = PREFIX_INSERT_QUERY + this.type.getSimpleName();\r\n Integer status = getSqlSession().insert(query, o);\r\n // ne doit pas être utilisé avec une session Spring\r\n // getSqlSession().commit();\r\n return status;\r\n }",
"public void insertar(int rafaga, int tiempo) {\n\t\tif (rafaga <= 0 || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.id = String.valueOf((char) this.caracter);\n\t\tthis.caracter++;\n\t\tnuevo.rafaga = rafaga;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.ColaProviene = this.NombreCola;\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"public void abrirDialogoCustodio(){\n\t\tif(aut_empleado.getValor()!=null){\n\t\t\ttab_tarspaso_Custodio.limpiar();\n\t\t\ttab_tarspaso_Custodio.insertar();\n\t\t\t//tab_direccion.limpiar();\n\t\t//\ttab_direccion.insertar();\n\t\t\tdia_traspaso_custodio.dibujar();\n\t\t}\n\t\telse{\n\t\t\tutilitario.agregarMensaje(\"Inserte un Custodio\", \"\");\n\t\t}\n\n\t}",
"@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}",
"@DirectMethod\r\n\tpublic String agregarNodosArbolIn(boolean bNvoHijo,//que si es nuevo hijo si dice false es padre\r\n\t\t\t\t\t\t\t\t\tString sRuta,//trae la clave de donde viene de la empresa raiz ala que se le metera el hijo\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaRaiz,//trae la clave de la empresa raiz ala que se le metera el hijo \r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaHijo,//Id de la empresa \r\n\t\t\t\t\t\t\t\t\tdouble uMonto,//monto en flotante\r\n\t\t\t\t\t\t\t\t\tString nombreArbol,//trae un dato en blanco ''\r\n\t\t\t\t\t\t\t\t\t//String tipoValor,//trae el dato del combo tipodevalor \r\n\t\t\t\t\t\t\t\t\tint tipoOperacion,//treae el numero de la operacion\r\n\t\t\t\t\t\t\t\t\tint iIdEmpresaPadre){//trae el Id del padre ala que se insertara\r\n\r\n\t\t\r\n\t\t\r\n\r\n\t\tString sMsgUsuario = \"en nodos hojso angel\";\r\n\t\tif(!Utilerias.haveSession(WebContextManager.get()))\r\n\t\t\treturn sMsgUsuario;\r\n\t\ttry{\r\n\t\t\tBarridosFondeosService barridosFondeosService = (BarridosFondeosService) contexto.obtenerBean(\"barridosFondeosBusinessImpl\");\r\n\t\t\tsMsgUsuario = barridosFondeosService.agregarNodosArbolIn(bNvoHijo, sRuta, iIdEmpresaRaiz, \r\n\t\t\t\t\tiIdEmpresaHijo, uMonto, nombreArbol, tipoOperacion, iIdEmpresaPadre); \r\n\t\t}catch(Exception e){\r\n\t\t\tbitacora.insertarRegistro(new Date().toString() + \" \" + Bitacora.getStackTrace(e)\r\n\t\t\t\t\t+ \"P: BarridosFondeos C: BarridosFondeosAction M: agregarNodosArbolIn\");\r\n\t\t}return sMsgUsuario;\r\n\t}",
"public void insertar(Proceso p, int tiempo) {\n\t\tif (p == null || tiempo < 0) {\n\t\t\treturn;\n\t\t}\n\t\tProceso nuevo = new Proceso();\n\t\tnuevo.rafaga = p.rafaga;\n\t\tnuevo.id = p.id;\n\t\tnuevo.IdCola = this.IdCola;\n\t\tnuevo.NombreCola = this.NombreCola;\n\t\tnuevo.tllegada = tiempo;\n\t\tnuevo.ColaProviene = p.ColaProviene;\n\n\t\tif (raiz.sig == raiz) {\n\t\t\traiz.sig = nuevo;\n\t\t\tcabeza = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\tnuevo.padre = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t} else {\n\t\t\tProceso aux = raiz.padre;\n\t\t\taux.sig = nuevo;\n\t\t\tnuevo.sig = raiz;\n\t\t\traiz.padre = nuevo;\n\t\t\tnuevo.padre = aux;\n\t\t}\n\t\tthis.numProcesos++;\n\t\tthis.rafagaTotal += nuevo.rafaga;\n\t\tthis.Ordenamiento();\n\t}",
"public Fornecedor(int código, String nome, String data_cadastro, String n_documento) {\r\n super(código, nome, data_cadastro, n_documento);\r\n }",
"public void inserir(Conserto conserto) throws SQLException{\r\n conecta = FabricaConexao.conexaoBanco();\r\n Date dataentradasql = new Date(conserto.getDataEntrada().getTime());\r\n //Date datasaidasql = new Date(conserto.getDataSaida().getTime());\r\n sql = \"insert into conserto (concodigo, condataentrada, condatasaida, concarchassi, conoficodigo) values (?, ?, ?, ?, ?)\";\r\n pstm = conecta.prepareStatement(sql);\r\n pstm.setInt(1, conserto.getCodigo());\r\n pstm.setDate(2, (Date) dataentradasql);\r\n pstm.setDate(3, null);\r\n pstm.setString(4, conserto.getCarro().getChassi());\r\n pstm.setInt(5, conserto.getOficina().getCodigo());\r\n pstm.execute();\r\n FabricaConexao.fecharConexao();\r\n \r\n }",
"public void setDataCreazione(Date dataCreazione) {\n\t\tthis.dataCreazione = dataCreazione;\n\t}",
"public Mencacao()\r\n {\r\n texto = \"\";\r\n deUtilizador = \"\";\r\n data = new GregorianCalendar();\r\n }",
"private void insertData() {\r\n PodamFactory factory = new PodamFactoryImpl();\r\n for (int i = 0; i < 3; i++) {\r\n UsuarioEntity entity = factory.manufacturePojo(UsuarioEntity.class);\r\n em.persist(entity);\r\n dataUsuario.add(entity);\r\n }\r\n for (int i = 0; i < 3; i++) {\r\n CarritoDeComprasEntity entity = factory.manufacturePojo(CarritoDeComprasEntity.class);\r\n if (i == 0 ){\r\n entity.setUsuario(dataUsuario.get(0));\r\n }\r\n em.persist(entity);\r\n data.add(entity);\r\n }\r\n }",
"public void addRegistro(String nombre, String apellidos, String dni) {\r\n\t\t\r\n\t\tSession ss = Util.getSessionFactory().openSession();\r\n\t\tTransaction tr = null;\r\n\t\ttry {\r\n\t\t\ttr = ss.beginTransaction();// comenzamos a hacer cositas\r\n\t\t\t// id incremental,por eso pongo cero\r\n\t\t\tPersona p = new Persona(0, nombre, apellidos, dni);\r\n\t\t\tss.save(p);\r\n\t\t\ttr.commit();\r\n\t\t} catch (HibernateException e) {\r\n\t\t\tSystem.out.println(\"Pako_error= \" + e);\r\n\t\t} finally {\r\n\t\t\tss.close();\r\n\t\t\t// System.out.println(\"Final\");\r\n\t\t}\r\n\t}",
"public void crearUsuario(UsuarioDTO usuarioNuevo) throws Exception;",
"public void inserisciValore()throws Exception {\n\n\t\tif (!valore.getInserito()) {\n\n\t\t\tif (!valore.getInserito()) {\n\t\t\t\tint inserimento = Utility.leggiIntero(0, 1, \"Vuoi inserire \" + nome + \"? Digita 1 per SI e 0 pre NO\");\n\t\t\t\tif (inserimento == 0) {\n\n\t\t\t\t} else {\n\t\t\t\t\tswitch (valore.getTipo()) {\n\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\tvalore.setValore(Utility.leggiLinea(\"inserisci \" + nome));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\tvalore.setValore(Utility.leggiIntero(0, 9999999, \"inserisci \" + nome));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\tString data = Utility.leggiData(\"inserisci \" + nome + \"(gg/mm/aaaa)\");\n\t\t\t\t\t\t\tDate date = new SimpleDateFormat(\"dd/MM/yyyy\").parse(data);\n\t\t\t\t\t\t\tvalore.setValore(date);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\tString ora = Utility.leggiOra(\"Inserisci \" + nome + \" (hh:mm)\");\n\t\t\t\t\t\t\tvalore.setValore(ora);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\tArrayList<Integer> eta = Utility.leggiFasciaEta(\"Inserisci\" + nome);\n\t\t\t\t\t\t\tvalore.setEta(eta);\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t}",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"public void setFechaInsercion(String p) { this.fechaInsercion = p; }",
"OperacionColeccion createOperacionColeccion();",
"public static Consumo insertConsumo(int cantidad_consumo,Date fecha_inicio,\n Producto producto,Servicio servicio){\n Consumo miConsumo = new Consumo(cantidad_consumo,fecha_inicio, \n producto, servicio);\n miConsumo.registrarConsumo();\n return miConsumo;\n }",
"void crearNuevaPersona(Persona persona);",
"public String formataDataNascimento(String dataNascimentoInserida) {\n String dataNascimentoString;\n SimpleDateFormat formatadorDataNascimento = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dataNascimento = new Date();\n try {\n dataNascimento = formatadorDataNascimento.parse((dataNascimentoInserida));\n } catch (ParseException ex) {\n this.telaFuncionario.mensagemErroDataNascimento();\n dataNascimentoString = cadastraDataNascimento();\n return dataNascimentoString;\n }\n dataNascimentoString = formatadorDataNascimento.format(dataNascimento);\n dataNascimentoString = controlaConfirmacaoCadastroDataNascimento(dataNascimentoString);\n return dataNascimentoString;\n }",
"void adicionaComentario(Comentario comentario);",
"private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public DocumentVente(String code, Date date, Tier fornisseur, Date datecommande, String codefourni) {\n this.code = code;\n this.date = date;\n this.client = fornisseur;\n this.datecommande = datecommande;\n this.codeclient = codefourni;\n// this.lieu = emplacement;\n \n }",
"@Override\n public ComprobanteContable createAsientoDiarioBoleto(Boleto boleto) throws CRUDException {\n\n Optional op;\n ComprobanteContable comprobante = new ComprobanteContable();\n //ComprobanteContablePK pk = new ComprobanteContablePK();\n //pk.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setEstado(ComprobanteContable.EMITIDO);\n //comprobante.setComprobanteContablePK(pk);\n\n //creamos el concepto\n StringBuilder buff = new StringBuilder();\n\n // DESCRIPCION \n // AEROLINEA/ # Boleto / Pasajero / Rutas\n /*Aerolinea a = em.find(Aerolinea.class, boleto.getIdAerolinea().getIdAerolinea());\n if (a != null) {\n buff.append(a.getNumero());\n }*/\n buff.append(boleto.getIdAerolinea().getNumero());\n\n buff.append(\"/\");\n\n //numero boleto\n buff.append(\"#\");\n buff.append(boleto.getNumero());\n buff.append(\"/\");\n\n //Pasajero\n buff.append(boleto.getNombrePasajero().toUpperCase());\n\n // Rutas \n buff.append(\"/\");\n buff.append(boleto.getIdRuta1() != null ? boleto.getIdRuta1() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta2() != null ? boleto.getIdRuta2() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta3() != null ? boleto.getIdRuta3() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta4() != null ? boleto.getIdRuta4() : \"\");\n buff.append(\"/\");\n buff.append(boleto.getIdRuta5() != null ? boleto.getIdRuta5() : \"\");\n\n //jala el nombre cliente\n Cliente c = em.find(Cliente.class, boleto.getIdCliente().getIdCliente());\n op = Optional.ofNullable(c);\n\n if (!op.isPresent()) {\n throw new CRUDException(\"No se encontro un Cliente para el boleto\");\n }\n\n comprobante.setIdCliente(c);\n comprobante.setConcepto(buff.toString());\n comprobante.setFactorCambiario(boleto.getFactorCambiario());\n comprobante.setFecha(boleto.getFechaEmision());\n comprobante.setFechaInsert(boleto.getFechaInsert());\n comprobante.setIdEmpresa(boleto.getIdEmpresa());\n comprobante.setIdUsuarioCreador(boleto.getIdUsuarioCreador());\n comprobante.setTipo(ComprobanteContable.Tipo.ASIENTO_DIARIO);\n\n Integer numero = getNextComprobantePK(boleto.getFechaEmision(), ComprobanteContable.Tipo.ASIENTO_DIARIO);\n comprobante.setGestion(DateContable.getPartitionDateInt(DateContable.getDateFormat(boleto.getFechaEmision(), DateContable.LATIN_AMERICA_FORMAT)));\n comprobante.setIdNumeroGestion(numero);\n\n return comprobante;\n }",
"@Override\n public void agregarComentario(String pNumFinca, String pComentario) throws SQLException {\n Comentario comentario = new Comentario(pComentario, Integer.parseInt(pNumFinca));\n bdPropiedad.manipulationQuery(\"INSERT INTO COMENTARIO (ID_PROPIEDAD, COMENTARIO) VALUES (\" + \n comentario.getIdPropiedad() + \", '\" + comentario.getComentario() + \"')\");\n comentarios.add(comentario);\n }",
"private void insertData() {\n PodamFactory factory = new PodamFactoryImpl();\n for (int i = 0; i < 3; i++) {\n VueltasConDemoraEnOficinaEntity entity = factory.manufacturePojo(VueltasConDemoraEnOficinaEntity.class);\n \n em.persist(entity);\n data.add(entity);\n }\n }",
"public String insertarOficial() {\r\n\t\tlog.info(\"LISTA DE DESHABILITADO--> \"+ TelefonoDeshabilitado.size()); \r\n\t\tlog.info(\"insertarOficial() \" + \"Id-Cliente-->\"+\" \"+ objClienteSie.getIdcliente() + \" \"+\"Nombre de Cliente\"+\" \"+ objClienteSie.getNombrecliente());\r\n\t\tString paginaretorno=\"\";\r\n\t\ttry {\r\n\t\t\tif (log.isInfoEnabled()) {\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tlog.info(\"busca el Id-DNI\");\r\n\t\t\tobjClienteSie.setTbTipoDocumentoIdentidad(objTipoDocService.buscarTipoDocumento(TipoDocumento));\r\n\t\t\t\r\n\t\t\tlog.info(\"busca el Id-Ubigeo\");\r\n\t\t\tobjDomicilio.setTbUbigeo(objUbigeoService.findUbigeo(Integer.parseInt(idUbigeo1)));\r\n\t\t\t\r\n\t\t\tlog.info(\"*******AQUI ESTA SI HAY UN VALOR DENTRO DE LA LISTA TELEFONOS PARA ELIMINAR*******\");\r\n\t\t\tlog.info(\"Tel-FISICO--------->\"+ \" \"+ TelefonoDeshabilitado.size());\r\n\t\t\tlog.info(\"Tel-TEMPORAL------->\"+ \"\t\"+ TelefonoPersonaList.size());\r\n\t\t\t\r\n\t\t\tlog.info(\"*******AQUI ESTA SI HAY UN VALOR DENTRO DE LA LISTA DOMICILIO PARA ELIMINAR*******\");\r\n\t\t\tlog.info(\"Domicilio-FISICO--------->\"+ \" \"+ DomicilioPersonaDeshabilitado.size());\r\n\t\t\tlog.info(\"Domicilio-TEMPORAL------->\"+ \"\t\"+ DomicilioPersonaList.size());\r\n\t\t\tobjClienteService.updateCliente(objClienteSie,objDomicilio,idUbigeo1, idUbigeo, tipo, Tipocasanuevo,TelefonoPersona,TelefonoPersonaList, TelefonoDeshabilitado, DomicilioPersonaList, DomicilioPersonaDeshabilitado);\r\n\t\t\t\r\n\t\t\tmensaje = Constants.MESSAGE_ACTUALIZO_TITULO;\r\n\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_INFO,\r\n\t\t\tConstants.MESSAGE_INFO_TITULO, mensaje);\r\n\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tmensaje = e.getMessage();\r\n\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\tlog.error(e.getMessage());\r\n\t}\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\treturn getViewList();\r\n\t}",
"public OrdemDeServico inserir (OrdemDeServico servico) {\n\t\tservico.setId((Long) null);\n\t\treturn repoOrdem.save(servico);\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"Operacion createOperacion();",
"public void agregarAlFinal(String valor){\r\n // Define un nuevo nodo.\r\n Nodo nuevo = new Nodo();\r\n // Agrega al valor al nodo.\r\n nuevo.setValor(valor);\r\n // Consulta si la lista esta vacia.\r\n if (esVacia()) {\r\n // Inicializa la lista agregando como inicio al nuevo nodo.\r\n inicio = nuevo;\r\n // Caso contrario recorre la lista hasta llegar al ultimo nodo\r\n //y agrega el nuevo.\r\n } else{\r\n // Crea ua copia de la lista.\r\n Nodo aux = inicio;\r\n // Recorre la lista hasta llegar al ultimo nodo.\r\n while(aux.getSiguiente() != null){\r\n aux = aux.getSiguiente();\r\n }\r\n // Agrega el nuevo nodo al final de la lista.\r\n aux.setSiguiente(nuevo);\r\n }\r\n // Incrementa el contador de tamaño de la lista\r\n tamanio++;\r\n }",
"@Override\n protected void carregaObjeto() throws ViolacaoRegraNegocioException {\n entidade.setNome( txtNome.getText() );\n entidade.setDescricao(txtDescricao.getText());\n entidade.setTipo( txtTipo.getText() );\n entidade.setValorCusto(new BigDecimal((String) txtCusto.getValue()));\n entidade.setValorVenda(new BigDecimal((String) txtVenda.getValue()));\n \n \n }",
"public void insertarAlimento (int id_alimento, String nombre, String estado, float caloria, float proteinas,float grasas, float hidratos_de_carbono, float H20, float NE, float vitamina_a, float vitamina_B1, float vitamina_B2, float vitamina_C, float Niac, float sodio, float potasio, float calcio, float magnesio, float cobre, float hierro, float fosforo, float azufre, float cloro, float Fen, float Ileu, float Leu, float Lis, float Met, float Tre, float Tri, float Val, float Acid, float AlCAL);",
"public RespuestaBD crearRegistro(int codigoFlujo, int secuencia, int servicioInicio, int accion, int codigoEstado, int servicioDestino, String nombreProcedimiento, String correoDestino, String enviar, String mismoProveedor, String mismoCliente, String estado, int caracteristica, int caracteristicaValor, int caracteristicaCorreo, String metodoSeleccionProveedor, String indCorreoCliente, String indHermana, String indHermanaCerrada, String indfuncionario, String usuarioInsercion) {\n/* 342 */ RespuestaBD rta = new RespuestaBD();\n/* */ \n/* 344 */ int elSiguiente = siguienteRegistro(codigoFlujo);\n/* 345 */ if (elSiguiente == 0) {\n/* 346 */ rta.setMensaje(\"Generando secuencia\");\n/* 347 */ return rta;\n/* */ } \n/* */ \n/* */ try {\n/* 351 */ String s = \"insert into wkf_detalle(codigo_flujo,secuencia,servicio_inicio,accion,codigo_estado,servicio_destino,nombre_procedimiento,correo_destino,enviar_solicitud,ind_mismo_proveedor,ind_mismo_cliente,estado,caracteristica,valor_caracteristica,caracteristica_correo,metodo_seleccion_proveedor,ind_correo_clientes,enviar_hermana,enviar_si_hermana_cerrada,ind_cliente_inicial,usuario_insercion,fecha_insercion) values (\" + codigoFlujo + \",\" + \"\" + elSiguiente + \",\" + \"\" + servicioInicio + \",\" + \"\" + accion + \",\" + \"\" + codigoEstado + \",\" + \"\" + ((servicioDestino == 0) ? \"null\" : Integer.valueOf(servicioDestino)) + \",\" + \"'\" + nombreProcedimiento + \"',\" + \"'\" + correoDestino + \"',\" + \"'\" + enviar + \"',\" + \"'\" + mismoProveedor + \"',\" + \"'\" + mismoCliente + \"',\" + \"'\" + estado + \"',\" + ((caracteristica == 0) ? \"null\" : (\"\" + caracteristica)) + \",\" + ((caracteristicaValor == 0) ? \"null\" : (\"\" + caracteristicaValor)) + \",\" + ((caracteristicaCorreo == 0) ? \"null\" : (\"\" + caracteristicaCorreo)) + \",\" + ((metodoSeleccionProveedor.length() == 0) ? \"null\" : (\"'\" + metodoSeleccionProveedor + \"'\")) + \",\" + ((indCorreoCliente.length() == 0) ? \"null\" : (\"'\" + indCorreoCliente + \"'\")) + \",\" + ((indHermana.length() == 0) ? \"null\" : (\"'\" + indHermana + \"'\")) + \",\" + ((indHermanaCerrada.length() == 0) ? \"null\" : (\"'\" + indHermanaCerrada + \"'\")) + \",\" + ((indfuncionario.length() == 0) ? \"null\" : (\"'\" + indfuncionario + \"'\")) + \",\" + \"'\" + usuarioInsercion + \"',\" + \"\" + Utilidades.getFechaBD() + \"\" + \")\";\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 398 */ rta = this.dat.executeUpdate2(s);\n/* 399 */ rta.setSecuencia(elSiguiente);\n/* */ }\n/* 401 */ catch (Exception e) {\n/* 402 */ e.printStackTrace();\n/* 403 */ Utilidades.writeError(\"%FlujoDetalleDAO:crearRegistro \", e);\n/* 404 */ rta.setMensaje(e.getMessage());\n/* */ } \n/* 406 */ return rta;\n/* */ }",
"@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}",
"public abstract Anuncio creaAnuncioTematico();",
"private void insertData() \n {\n for (int i = 0; i < 3; i++) {\n TarjetaPrepagoEntity entity = factory.manufacturePojo(TarjetaPrepagoEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n for(int i = 0; i < 3; i++)\n {\n PagoEntity pagos = factory.manufacturePojo(PagoEntity.class);\n em.persist(pagos);\n pagosData.add(pagos);\n\n }\n \n data.get(2).setSaldo(0.0);\n data.get(2).setPuntos(0.0);\n \n double valor = (Math.random()+1) *100;\n data.get(0).setSaldo(valor);\n data.get(0).setPuntos(valor); \n data.get(1).setSaldo(valor);\n data.get(1).setPuntos(valor);\n \n }",
"public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }",
"private void salvarVenda(String nomeCliente, double precoFinal, double desconto ,String mesAnoAt,String dataCompra,String formaDePagamento) {\n\n\t\tFirebaseAuth autenticacion = configFireBase.getFireBaseAutenticacao();\n\n\t\tString idUsuario = Base64Custom.codificarBase64(autenticacion.getCurrentUser().getEmail());\n\t\tDatabaseReference VendaRef=mDatabase.child(\"vendas\");\n\n\n\t\tvenda.setIdVenda(VendaRef.push().getKey());\n\t\tvenda.setNomeCliente(nomeCliente);\n\t\tvenda.setValorTotal(precoFinal);\n\t\tvenda.setMesAno(mesAnoAt);\n\t\tvenda.setDesconto(desconto);\n\t\tvenda.setDataCompra(dataCompra);\n\t\tvenda.setLista(ListagemDeProdutosParaCompras.produtosSelecionados);\n\t\tvenda.setFormaDePagamento(formaDePagamento);\n\n\t\tmDatabase.child(\"armazenamento\").child(idUsuario).child(\"vendas\").child(venda.getIdVenda()).setValue(venda).addOnCompleteListener(new OnCompleteListener<Void>() {\n\n\t\t\t@Override\n\t\t\tpublic void onComplete(@NonNull Task<Void> task) {\n\n\t\t\t}\n\n\t\t});\n\n\t\tToast.makeText(CadastrarVendaActivity.this, \"Venda Realizada\", Toast.LENGTH_SHORT).show();\n\t\tstartActivity(new Intent(getApplicationContext(), ListagemDeVendasRealizadas.class));\n\t\tvenda.subtrairVendas();\n\n\t\tthis.finish();\n\t}",
"@Test\r\n public void testSetDataNascimento() {\r\n System.out.println(\"setDataNascimento\");\r\n Date dataNascimento = null;\r\n Integrante instance = new Integrante();\r\n instance.setDataNascimento(dataNascimento);\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }",
"public void addend(int dato) {\n //agrega nuevo nodo \n NodoEnteroSimple nodo = new NodoEnteroSimple();\n\n nodo.setValor(dato);\n\n if (vacia()) {\n\n head = nodo;\n } else {\n //un temporal de la lista \n NodoEnteroSimple temp = head;\n\n while (temp.getSiguiente() != null) {\n temp = temp.getSiguiente();\n\n }\n temp.getSiguiente();\n }\n size++;\n }",
"public void gerarparcelascontrato(int id, int idcliente, int idgrupofinanceiro) {\n\t\tContrato contrato = repo.findById(id).get();\n\t\t// contrato.setCliente(clientes);\n\t\t// contrato.setFinanceiroContrato(financeiroContrato);\n\t\trepo.save(contrato);\n\t\tMovimentoContrato movement = movimentoContratoRepository.findByContratoIdAndStatus(id,\n\t\t\t\tStatusActiv.ABERTO.getDescricao());\n\t\tif (movement == null) {\n\t\t\tmovement = new MovimentoContrato();\n\t\t\tmovement.setDataMovimento(new Date());\n\t\t\tmovement.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\tmovement.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\t\t}\n\t\tmovement.setValor(contrato.getTotal());\n\t\tmovement.setContrato(contrato);\n\t\tmovement.setHistorico(contrato.getFinanceiroContrato());\n\t\tmovement.setParcela(contrato.getPeriodo());\n\n\t\tmovement.setName(\"Contrato Nº \" + String.valueOf(id) + \" Cliente: \" + contrato.getClientename());\n\t\tmovement = movimentoContratoRepository.save(movement);\n\n\t\tfichaLeituraRepository\n\t\t\t\t.deleteAll(fichaLeituraRepository.findByContratoIdAndStatus(id, StatusActiv.ABERTO.getDescricao()));\n\t\texcluirParcelas(movement);\n\t\tmovement.setValor(contrato.getTotal());\n\t\tDateTime dt;\n\t\tDateTime dt12;\n\n\t\t//if (movement.getFaturasQuit().size() > 0) {\n\n\t\t\t//dt = new DateTime(movement.getFaturasQuit().get(0).getDataVencimento());\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt = new DateTime(ano, mes, contrato.getDiaVencimento(), 8, 0); \n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0); \n\n\t\t/*} \n\t\telse {\n\t\t\tdt = new DateTime();\n\t\t\tint ano = dt.getYear();\n\t\t\tint mes = dt.getMonthOfYear();\n\t\t\tdt12 = new DateTime(ano, mes, contrato.getDiaLeitura(), 8, 0);\n\t\t}*/\n\t\t/*DateTime dt1 = new DateTime(new Date());\n\t\tfor (Fatura itemmovimento : movement.getFaturasQuit()) {\n\t\t\tdt1 = new DateTime(itemmovimento.getDataVencimento());\n\t\t\tif (dt1.isAfter(dt)) {\n\t\t\t\tdt = dt1;\n\t\t\t}\n\t\t\tif (dt1.isAfter(dt12)) {\n\t\t\t\tdt12 = dt1;\n\t\t\t}\n\n\t\t}\n\t\tdt1 = dt12;*/\n\t\tDateTime plusPeriod = new DateTime();\n\t\tDateTime plusPeriodleitura = new DateTime();\n\t\tFatura itemmovimento;\n\t\tint j = movement.getParcela() - movement.getFaturasQuit().size();\n\t\tList<Integer> indiceparcalas = new LinkedList<Integer>();\n\t\tindiceparcalas = maxparcela(movement, j);\n\t\tdouble valr1 = contrato.getTotal();// getValorAberto() / j;\n\n\t\tList<FichaLeitura> fichas = new ArrayList<>();\n\t\tfor (int i = 0; i < j; i++) {\n\t\t\titemmovimento = new Fatura(movement, (movement.getValor() - movement.getValorAberto()));\n\t\t\tplusPeriod = dt.plus(org.joda.time.Period.months(i));\n\t\t\tplusPeriodleitura = dt12.plus(org.joda.time.Period.months(i));\n\t\t\tint dayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\tint DaysToAdd;\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriod = plusPeriod.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriodleitura.dayOfWeek().getAsString());\n\n\t\t\t// se final de semana\n\t\t\tif (dayOfWeekEndDateNumber == 6 || dayOfWeekEndDateNumber == 7) {\n\t\t\t\tDaysToAdd = 8 - dayOfWeekEndDateNumber;\n\t\t\t\tplusPeriodleitura = plusPeriodleitura.plusDays(DaysToAdd);\n\t\t\t\tdayOfWeekEndDateNumber = Integer.valueOf(plusPeriod.dayOfWeek().getAsString());\n\t\t\t}\n\n\t\t\titemmovimento.setParcela(indiceparcalas.get(i));\n\t\t\titemmovimento.setValor(contrato.getTotal());\n\t\t\titemmovimento.setDataVencimento(plusPeriod.toDate());\n\t\t\titemmovimento.setDataleitura(plusPeriodleitura.toDate());\n\t\t\titemmovimento.setInstantCreation(new Date());\n\t\t\titemmovimento.setStatus(StatusActiv.ABERTO.getDescricao());\n\t\t\titemmovimento.setMovimentoFinanceiro(movement);\n\t\t\titemmovimento.setContrato(contrato);\n\t\t\titemmovimento.setDataMovimento(movement.getDataMovimento());\n\t\t\titemmovimento.setTipomovimento(TipoMovimentoEnum.entradaContrato.getDescricao());\n\n\t\t\t/*\n\t\t\t * FichaLeitura fichaLeitura = new FichaLeitura(contrato, equipamentoContrato,\n\t\t\t * itemmovimento.getDataleitura(), StatusActiv.ABERTO.getDescricao());\n\t\t\t */\n\n\t\t\tCentroCusto centroCusto = centroCustoRepository.findById(movement.getHistorico().getCentrocusto().getId())\n\t\t\t\t\t.get();\n\t\t\tcentroCusto.setSaldoReceber(centroCusto.getSaldoReceber() + (contrato.getTotal()));\n\n\t\t\tcentroCustoRepository.save(centroCusto);\n\t\t\titemmovimento = faturaRepository.save(itemmovimento);\n\t\t\tfor (EquipamentosContrato equipamentoContrato : contrato.getEquipamentosContratos()) {\n\t\t\t\tfichas.add(new FichaLeitura(contrato, equipamentoContrato, itemmovimento.getDataleitura(),\n\t\t\t\t\t\tStatusActiv.ABERTO.getDescricao(), itemmovimento));\n\t\t\t}\n\n\t\t}\n\t\tfichaLeituraRepository.saveAll(fichas);\n\n\t}",
"public void AgregarUsuario(Usuario usuario)\n {\n //encerramos todo en un try para manejar los errores\n try{\n //si no hay ninguna conexion entonces generamos una\n if(con == null)\n con = Conexion_Sql.getConexion();\n \n String sql = \"INSERT INTO puntajes(nombre,puntaje) values(?,?)\";\n \n PreparedStatement statement = con.prepareStatement(sql);\n statement.setString(1, usuario.RetornarNombre());\n statement.setInt(2, usuario.RetornarPremio());\n int RowsInserted = statement.executeUpdate();\n \n if(RowsInserted > 0)\n {\n System.out.println(\"La insercion fue exitosa\");\n System.out.println(\"--------------------------------------\");\n }\n else\n {\n System.out.println(\"Hubo un error con la insercion\");\n System.out.println(\"--------------------------------------\");\n }\n }\n catch(SQLException ex)\n {\n ex.printStackTrace();\n }\n }",
"private void procurarData() {\n if (jDateIni.getDate() != null && jDateFim.getDate() != null) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n String data = sdf.format(jDateIni.getDate());\n String data2 = sdf.format(jDateFim.getDate());\n carregaTable(id, data, data2);\n JBreg.setEnabled(false);\n }\n }",
"public void inserir(Comentario c);",
"public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }",
"public boolean crear(String nombre, String apellido, String cedula) {\n Cliente cliente = new Cliente(generarId(), nombre, apellido, cedula); // Creo un nuevo cliente\n return datos.add(cliente); // Agrego a mi lista de datos\n }",
"public void insere (String nome)\n {\n //TODO\n }",
"void crearCampania(GestionPrecioDTO campania);",
"@Override\n\t@Transactional\n\tpublic DetalleCarrito create(DetalleCarrito entity) throws Exception {\n\t\treturn detalleCarritoRepository.save(entity);\n\t}",
"private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }",
"private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }"
] | [
"0.6720924",
"0.67022324",
"0.66510576",
"0.66281533",
"0.66080195",
"0.6583223",
"0.64883953",
"0.64476866",
"0.6433317",
"0.640121",
"0.6379842",
"0.63680786",
"0.6367804",
"0.6357136",
"0.6319515",
"0.6303976",
"0.629876",
"0.62964463",
"0.6291803",
"0.6281035",
"0.627298",
"0.62663496",
"0.6255076",
"0.62537545",
"0.6248166",
"0.62319666",
"0.6228008",
"0.6223933",
"0.6203123",
"0.6179478",
"0.61729074",
"0.61600894",
"0.61564523",
"0.61456907",
"0.6143965",
"0.6132679",
"0.61254185",
"0.612196",
"0.6119381",
"0.6113431",
"0.61102355",
"0.6106303",
"0.6103951",
"0.6091881",
"0.60703737",
"0.60674465",
"0.6067191",
"0.606213",
"0.6058844",
"0.6057659",
"0.6055993",
"0.6051815",
"0.604922",
"0.6047164",
"0.60452276",
"0.6041183",
"0.6035326",
"0.6032847",
"0.6030435",
"0.6029532",
"0.6028181",
"0.6027151",
"0.60261476",
"0.60261476",
"0.6023547",
"0.6021895",
"0.6021469",
"0.6021371",
"0.60183823",
"0.60168546",
"0.6011797",
"0.60084206",
"0.5995615",
"0.59931105",
"0.5991764",
"0.5989426",
"0.59747",
"0.59672564",
"0.5963718",
"0.5962812",
"0.5959163",
"0.59577674",
"0.5951495",
"0.59503835",
"0.5948572",
"0.5948546",
"0.5948513",
"0.5944235",
"0.59394777",
"0.593825",
"0.5937677",
"0.59370106",
"0.59337765",
"0.5930112",
"0.5929768",
"0.5923605",
"0.5922572",
"0.59222996",
"0.5917417",
"0.5916252"
] | 0.6781995 | 0 |
/ node root = new node(1); root.left = new node(2); root.right = new node(3); root.left.left = new node(4); root.left.right = new node(5); | public static void main(String[] args) {
int in[] = new int[] { 9, 8, 4, 2, 10, 5, 10, 1, 6, 3, 13, 12, 7 };
int pre[] = new int[] { 1, 2, 4, 8, 9, 5, 10, 10, 3, 6, 7, 12, 13 };
node root = constructTree(in, pre, 0, in.length - 1);
MorrisTraversePreOrder(root);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static TreeNode getNode() {\n TreeNode treeNode = new TreeNode(1);\n TreeNode left = new TreeNode(2);\n TreeNode right = new TreeNode(3);\n treeNode.left = left;\n treeNode.right = right;\n\n left.left = new TreeNode(4);\n right.left = new TreeNode(5);\n right.right = new TreeNode(6);\n return treeNode;\n }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void root(Node n) {}",
"private static Node getTree()\r\n {\r\n Node node1 = new Node( 1 );\r\n Node node2 = new Node( 2 );\r\n Node node3 = new Node( 3 );\r\n Node node4 = new Node( 4 );\r\n Node node5 = new Node( 5 );\r\n Node node6 = new Node( 6 );\r\n Node node7 = new Node( 7 );\r\n\r\n node1.left = node2;\r\n node1.right = node3;\r\n\r\n node2.left = node4;\r\n node2.right = node5;\r\n\r\n node3.left = node6;\r\n node3.right = node7;\r\n return node1;\r\n }",
"public static void main(String[] args) {\n Node root = newNode(1);\n\n root.left = newNode(2);\n root.right = newNode(3);\n\n root.left.left = newNode(4);\n root.left.right = newNode(5);\n\n root.left.left.left = newNode(8);\n root.left.left.right = newNode(9);\n\n root.left.right. left = newNode(10);\n root.left.right. right = newNode(11);\n\n root.right.left = newNode(6);\n root.right.right = newNode(7);\n root.right.left .left = newNode(12);\n root.right.left .right = newNode(13);\n root.right.right. left = newNode(14);\n root.right.right. right = newNode(15);\n System.out.println(findNode(root, 5, 6, 15));\n }",
"public TwoFourTree()\r\n\t{\r\n\t\troot = new TreeNode(); //assign the root to a new tree node\r\n\t}",
"public void createBinaryTree()\r\n\t{\n\t\t\r\n\t\tNode node = new Node(1);\r\n\t\tnode.left = new Node(2);\r\n\t\tnode.right = new Node(3);\r\n\t\tnode.left.left = new Node(4);\r\n\t\tnode.left.right = new Node(5);\r\n\t\tnode.left.right.right = new Node(10);\r\n\t\tnode.left.left.left = new Node(8);\r\n\t\tnode.left.left.left.right = new Node(15);\r\n\t\tnode.left.left.left.right.left = new Node(17);\r\n\t\tnode.left.left.left.right.left.left = new Node(18);\r\n\t\tnode.left.left.left.right.right = new Node(16);\r\n\t\tnode.left.left.right = new Node(9);\r\n\t\tnode.right.left = new Node(6);\r\n\t\tnode.right.left.left = new Node(13);\r\n\t\tnode.right.left.left.left = new Node(14);\r\n\t\tnode.right.right = new Node(7);\r\n\t\tnode.right.right.right = new Node(11);\r\n\t\tnode.right.right.right.right = new Node(12);\r\n\t\troot = node;\r\n\t\t\r\n\t}",
"public Tree() // constructor\n\t{ root = null; }",
"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}",
"public static void main(String[] args) {\n// TreeNode node1 = new TreeNode(0);\n// TreeNode node2l = new TreeNode(3);\n// TreeNode node2r = new TreeNode(5);\n//// TreeNode node3l = new TreeNode(2);\n// TreeNode node3r = new TreeNode(2);\n//// TreeNode node4l = new TreeNode(4);\n// TreeNode node4r = new TreeNode(1);\n//\n// node1.left = node2l;\n// node1.right = node2r;\n//// node2l.left = node3l;\n// node2l.right = node3r;\n// node3r.right = node4r;\n//\n\n int[] nums = {3, 2, 1, 6, 0, 5};\n\n }",
"public Tree(){\n root = null;\n }",
"public static TreeNode generateBinaryTree3() {\n // Nodes\n TreeNode root = new TreeNode(1);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(4);\n TreeNode rootRight = new TreeNode(5);\n TreeNode rootRightRight = new TreeNode(6);\n TreeNode rootRightRightRight = new TreeNode(7);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n root.right = rootRight;\n rootRight.right = rootRightRight;\n rootRightRight.right = rootRightRightRight;\n\n // Return root\n return root;\n }",
"public static TreeNode buildTree() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\t\n\t\tTreeNode left = new TreeNode(2);\n\t\tleft.left = new TreeNode(4);\n\t\tleft.right = new TreeNode(5);\n\t\tleft.right.right = new TreeNode(8);\n\t\t\n\t\tTreeNode right = new TreeNode(3);\n\t\tright.left = new TreeNode(6);\n\t\tright.right = new TreeNode(7);\n\t\tright.right.left = new TreeNode(9);\n\t\t\n\t\troot.left = left;\n\t\troot.right = right;\n\t\t\n\t\treturn root;\n\t}",
"public RedBlackTree()\n { \n \t root = null;\n }",
"TreeNode(){\n this.elem = null;\n this.left = null;\n this.right = null;\n }",
"private void CreateTree()\r\n\t{\r\n\r\n\t\t//sample nodes which are not identical\r\n\t\ta = new Node(1);\r\n\t\ta.left = new Node(3);\r\n\t\ta.left.left = new Node(5);\r\n\t\ta.right = new Node(2);\r\n\r\n\r\n\t\tb = new Node(2);\r\n\t\tb.left = new Node(1);\r\n\t\tb.right = new Node(3);\r\n\t\tb.right.right = new Node(7);\r\n\t\tb.left.right = new Node(4);\r\n\r\n\t\t//sample nodes which are identical\r\n\t\ta1 = new Node(1);\r\n\t\ta1.left = new Node(3);\r\n\t\ta1.left.left = new Node(5);\r\n\t\ta1.right = new Node(2);\r\n\r\n\r\n\t\tb1 = new Node(1);\r\n\t\tb1.left = new Node(3);\r\n\t\tb1.right = new Node(2);\r\n\t\tb1.left.left = new Node(5); \r\n\t}",
"public static TreeNode getTree() {\n\t\tTreeNode a = new TreeNode(\"a\", 314);\n\t\tTreeNode b = new TreeNode(\"b\", 6);\n\t\tTreeNode c = new TreeNode(\"c\", 271);\n\t\tTreeNode d = new TreeNode(\"d\", 28);\n\t\tTreeNode e = new TreeNode(\"e\", 0);\n\t\tTreeNode f = new TreeNode(\"f\", 561);\n\t\tTreeNode g = new TreeNode(\"g\", 3);\n\t\tTreeNode h = new TreeNode(\"h\", 17);\n\t\tTreeNode i = new TreeNode(\"i\", 6);\n\t\tTreeNode j = new TreeNode(\"j\", 2);\n\t\tTreeNode k = new TreeNode(\"k\", 1);\n\t\tTreeNode l = new TreeNode(\"l\", 401);\n\t\tTreeNode m = new TreeNode(\"m\", 641);\n\t\tTreeNode n = new TreeNode(\"n\", 257);\n\t\tTreeNode o = new TreeNode(\"o\", 271);\n\t\tTreeNode p = new TreeNode(\"p\", 28);\n\t\t\n\t\ta.left = b; b.parent = a;\n\t\tb.left = c; c.parent = b;\n\t\tc.left = d;\t d.parent = c;\n\t\tc.right = e; e.parent = c;\n\t\tb.right = f; f.parent = b;\n\t\tf.right = g; g.parent = f;\n\t\tg.left = h; h.parent = g;\n\t\ta.right = i; i.parent = a;\n\t\ti.left = j; j.parent = i;\n\t\ti.right = o; o.parent = i;\n\t\tj.right = k; k.parent = j;\n\t\to.right = p; p.parent = o;\n\t\tk.right = n; n.parent = k;\n\t\tk.left = l; l.parent = k;\n\t\tl.right = m; m.parent = l;\n\t\t\n\t\td.childrenCount = 0;\n\t\te.childrenCount = 0;\n\t\tc.childrenCount = 2;\n\t\tb.childrenCount = 6;\n\t\tf.childrenCount = 2;\n\t\tg.childrenCount = 1;\n\t\th.childrenCount = 0;\n\t\tl.childrenCount = 1;\n\t\tm.childrenCount = 0;\n\t\tn.childrenCount = 0;\n\t\tk.childrenCount = 3;\n\t\tj.childrenCount = 4;\n\t\to.childrenCount = 1;\n\t\tp.childrenCount = 0;\n\t\ti.childrenCount = 7;\n\t\ta.childrenCount = 15;\n\t\t\n\t\treturn a;\n\t}",
"public BinaryTree()\n {\n //this is the constructor for the BinaryTree object\n data = null;\n left = null;\n right = null;\n }",
"public BinaryTree(){\r\n root = null;\r\n }",
"public static TreeNode getBasicTree(){\n TreeNode one = new TreeNode(1);\n TreeNode two = new TreeNode(2);\n TreeNode three = new TreeNode(3);\n TreeNode four = new TreeNode(4);\n TreeNode five = new TreeNode(5);\n TreeNode six = new TreeNode(6);\n TreeNode seven = new TreeNode(7);\n\n one.left = two;\n one.right = three;\n two.left = four;\n two.right = five;\n four.left = six;\n four.right = seven;\n\n return one;\n }",
"public static void main(String[] args)\n {\n Node root = new Node(10);\n root.left = new Node(8);\n root.right = new Node(2);\n root.left.left = new Node(3);\n root.left.right = new Node(5);\n root.right.left = new Node(2);\n \n printRootToLeaf(root);\n }",
"public void createTree() {\n Node<String> nodeB = new Node<String>(\"B\", null, null);\n Node<String> nodeC = new Node<String>(\"C\", null, null);\n Node<String> nodeD = new Node<String>(\"D\", null, null);\n Node<String> nodeE = new Node<String>(\"E\", null, null);\n Node<String> nodeF = new Node<String>(\"F\", null, null);\n Node<String> nodeG = new Node<String>(\"G\", null, null);\n root.leftChild = nodeB;\n root.rightChild = nodeC;\n nodeB.leftChild = nodeD;\n nodeB.rightChild = nodeE;\n nodeC.leftChild = nodeF;\n nodeC.rightChild = nodeG;\n\n }",
"public BST() {\r\n root = null;\r\n }",
"public static void main(String[] args) {\n BinayTree root = new BinayTree();\n root.data = 8;\n root.left = new BinayTree();\n root.left.data = 6;\n root.left.left = new BinayTree();\n root.left.left.data = 5;\n root.left.right = new BinayTree();\n root.left.right.data = 7;\n root.right = new BinayTree();\n root.right.data = 10;\n root.right.left = new BinayTree();\n root.right.left.data = 9;\n root.right.right = new BinayTree();\n root.right.right.data = 11;\n printTree(root);\n System.out.println();\n mirror(root);\n printTree(root);\n // 1\n // /\n // 3\n // /\n // 5\n // /\n // 7\n // /\n // 9\n BinayTree root2 = new BinayTree();\n root2.data = 1;\n root2.left = new BinayTree();\n root2.left.data = 3;\n root2.left.left = new BinayTree();\n root2.left.left.data = 5;\n root2.left.left.left = new BinayTree();\n root2.left.left.left.data = 7;\n root2.left.left.left.left = new BinayTree();\n root2.left.left.left.left.data = 9;\n System.out.println(\"\\n\");\n printTree(root2);\n System.out.println();\n mirror(root2);\n printTree(root2);\n\n // 0\n // \\\n // 2\n // \\\n // 4\n // \\\n // 6\n // \\\n // 8\n BinayTree root3 = new BinayTree();\n root3.data = 0;\n root3.right = new BinayTree();\n root3.right.data = 2;\n root3.right.right = new BinayTree();\n root3.right.right.data = 4;\n root3.right.right.right = new BinayTree();\n root3.right.right.right.data = 6;\n root3.right.right.right.right = new BinayTree();\n root3.right.right.right.right.data = 8;\n System.out.println(\"\\n\");\n printTree(root3);\n System.out.println();\n mirror(root3);\n printTree(root3);\n\n\n }",
"private static void test4() {\n BinaryTreeNode node1 = new BinaryTreeNode(5);\n BinaryTreeNode node2 = new BinaryTreeNode(4);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(2);\n BinaryTreeNode node5 = new BinaryTreeNode(1);\n node1.left = node2;\n node2.left = node3;\n node3.left = node4;\n node4.left = node5;\n test(\"Test4\", node1, false);\n }",
"public static TreeNode generateBinaryTree1() {\n // Nodes\n TreeNode root = new TreeNode(5);\n TreeNode rootLeft = new TreeNode(2);\n TreeNode rootRight = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(20);\n TreeNode rootLeftRight = new TreeNode(1);\n // Edges\n root.left = rootLeft;\n root.right = rootRight;\n rootLeft.left = rootLeftLeft;\n rootLeft.right = rootLeftRight;\n\n // Return root\n return root;\n }",
"private static void test2() {\n BinaryTreeNode node1 = new BinaryTreeNode(1);\n BinaryTreeNode node2 = new BinaryTreeNode(2);\n BinaryTreeNode node3 = new BinaryTreeNode(3);\n BinaryTreeNode node4 = new BinaryTreeNode(4);\n BinaryTreeNode node5 = new BinaryTreeNode(5);\n BinaryTreeNode node6 = new BinaryTreeNode(6);\n BinaryTreeNode node7 = new BinaryTreeNode(7);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node5.left = node7;\n node3.right = node6;\n test(\"Test2\", node1, true);\n }",
"@Test\n public void testManipulateObjectByReference() {\n TreeNode root = new TreeNode(0);\n root.left = new TreeNode(1);\n root.right = new TreeNode(2);\n setLeftChildToNull(root);\n System.out.println(root.left);\n }",
"public BinaryTree()\n {\n this.root = null;\n this.actualNode = null;\n this.altMode = false;\n this.deepestRight = null;\n }",
"abstract void setRoot(Node<T> n);",
"public BinaryTree()\n\t{\n\t\troot = null;\n\t}",
"public static TreeNode generateBinaryTree2() {\n // Nodes\n TreeNode root = new TreeNode(12);\n TreeNode rootLeft = new TreeNode(4);\n TreeNode rootLeftLeft = new TreeNode(3);\n TreeNode rootLeftLeftLeft = new TreeNode(1);\n TreeNode rootLeftLeftLeftLeft = new TreeNode(20);\n TreeNode rootRight = new TreeNode(5);\n // Edges\n root.left = rootLeft;\n rootLeft.left = rootLeftLeft;\n rootLeftLeft.left = rootLeftLeftLeft;\n rootLeftLeftLeft.left = rootLeftLeftLeftLeft;\n root.right = rootRight;\n\n // Return root\n return root;\n }",
"public BinaryTree() {\n root = null;\n }",
"public BinaryTree() {\n root = null;\n }",
"public static void main(String[] args) {\n MyBinaryTree tree = new MyBinaryTree();\n\n TreeNode n45 = new TreeNode(45);\n TreeNode n1 = new TreeNode(66);\n TreeNode n2 = new TreeNode(66);\n TreeNode n3 = new TreeNode(66);\n TreeNode n4 = new TreeNode(66);\n\n tree.root = n45;\n n45.left = n1;\n n45.right = n2;\n\n n1.right = n3;\n n2.left = n4;\n }",
"private static void test1() {\n BinaryTreeNode node1 = new BinaryTreeNode(8);\n BinaryTreeNode node2 = new BinaryTreeNode(6);\n BinaryTreeNode node3 = new BinaryTreeNode(10);\n BinaryTreeNode node4 = new BinaryTreeNode(5);\n BinaryTreeNode node5 = new BinaryTreeNode(7);\n BinaryTreeNode node6 = new BinaryTreeNode(9);\n BinaryTreeNode node7 = new BinaryTreeNode(11);\n node1.left = node2;\n node1.right = node3;\n node2.left = node4;\n node2.right = node5;\n node3.left = node6;\n node3.right = node7;\n test(\"Test1\", node1, true);\n }",
"public BinarySearchTree(KeyedItem root) {\r\n\t\tthis.root = root;\r\n\t\tleftChild = null;\r\n\t\trightChild = null;\r\n\t\t\r\n\t}",
"public BinaryTree() {\n count = 0;\n root = null;\n }",
"public static TreeNode buildTree01() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t\n\t\treturn root;\n\t}",
"public BST(){\n\t\tthis.root = null;\n\t}",
"public BinaryTreeByLinkedList() {\n\t\tthis.root = null;\n\t}",
"public RBTree() {\r\n\t\troot = null;\r\n\t}",
"public TreeNode(){ this(null, null, 0);}",
"public BST()\r\n\t{\r\n\t\troot = null;\r\n\t}",
"public BST() {\n this.root = null;\n }",
"public BSTree2(){\n root = null;\n }",
"public static void main(String args[]) {\r\n\t\tTree tree=new Tree(10);\r\n\t\t\r\n\t\ttree.root.left=new Node(20);\r\n\t\ttree.root.right=new Node(30);\r\n\t\t\r\n\t\ttree.root.left.left=new Node(40);\r\n\t\ttree.root.left.right=new Node(60);\r\n\t\t\r\n\t\t\r\n\t}",
"public static TreeNode buildTree02() {\n\t\t\n\t\tTreeNode root = new TreeNode(5);\n\t\t/*\n\t\troot.left = new TreeNode(4);\n\t\troot.left.left = new TreeNode(11);\n\t\troot.left.left.left = new TreeNode(7);\n\t\troot.left.left.right = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(8);\n\t\troot.right.left = new TreeNode(13);\n\t\troot.right.right = new TreeNode(4);\n\t\troot.right.right.left = new TreeNode(5);\n\t\troot.right.right.right = new TreeNode(1);\n\t\t*/\n\t\treturn root;\n\t}",
"private void buildRoot() {\n this.root = new GPRootTreeNode(this.tree);\n }",
"public BinarySearchTree(Object root){\r\n\t\tthis.root = (KeyedItem)root;\r\n\t\tleftChild = null;\r\n\t\trightChild = null;\r\n\t}",
"private TreeNode(int x) {\n val = x;\n left = null;\n right = null;\n }",
"public TreeNode encode(Node root) {\n if (root == null) {\n return null;\n }\n TreeNode head = new TreeNode(root.val);\n head.left = en(root.children);\n return head;\n }",
"void setRoot(Node<K, V> root) throws IOException;",
"private static Node buildSmallerTree() {\n\t\tNode root = createNode(10);\n\t\troot.leftChild = createNode(25);\n\t\troot.rightChild = createNode(25);\n\t\troot.leftChild.leftChild = createNode(13);\n\t\troot.rightChild.rightChild = createNode(7);\n\t\troot.leftChild.rightChild = createNode(27);\n\t\t\n\t\treturn root;\n\t}",
"public static TreeNode getMockWithSuccessorTreeRoot() {\n TreeNode<Integer> root = new TreeNode<>(4);\n TreeNode<Integer> node1 = new TreeNode<>(2);\n TreeNode<Integer> node2 = new TreeNode<>(8);\n TreeNode<Integer> node3 = new TreeNode<>(1);\n TreeNode<Integer> node4 = new TreeNode<>(3);\n TreeNode<Integer> node5 = new TreeNode<>(7);\n TreeNode<Integer> node6 = new TreeNode<>(9);\n\n root.left = node1;\n root.right = node2;\n node1.parent = root;\n node2.parent = root;\n\n node1.left = node3;\n node1.right = node4;\n node3.parent = node1;\n node4.parent = node1;\n\n node2.left = node5;\n node2.right = node6;\n node5.parent = node2;\n node6.parent = node2;\n\n return root;\n }",
"public TreeNode getLeft(){ return leftChild;}",
"public BST() {\n\t\troot = null;\n\t}",
"public static void main(String args[]) \n{ \n\t/* Create following Binary Tree \n\t\t1 \n\t\t/ \\ \n\t\t2 3 \n\t\t\\ \n\t\t4 \n\t\t\\ \n\t\t5 \n\t\t\t\\ \n\t\t\t6*/\n\tNode root = newNode(1); \n\troot.left = newNode(2); \n\troot.right = newNode(3); \n\troot.left.right = newNode(4); \n\troot.left.right.right = newNode(5); \n\troot.left.right.right.right = newNode(6); \n\tSystem.out.println( \"Following are nodes in top view of Binary Tree\\n\"); \n\ttopView(root); \n}",
"public LinkedBinaryTree() {\n\t\t root = null;\n\t}",
"public static TreeNode getTree() {\n TreeNode treeNode4 = new TreeNode(4);\n TreeNode treeNode3 = new TreeNode(3);\n TreeNode treeNode1 = new TreeNode(1);\n TreeNode treeNode2 = new TreeNode(2);\n TreeNode treeNode5 = new TreeNode(5);\n TreeNode treeNode6 = new TreeNode(6);\n treeNode4.left = treeNode3;\n treeNode4.right = treeNode5;\n treeNode3.left = treeNode1;\n treeNode3.right = treeNode2;\n treeNode5.right = treeNode6;\n return treeNode4;\n }",
"void setLeft(TreeNode<T> left);",
"public TreeNode(Object initValue, TreeNode initLeft, TreeNode initRight)\r\n {\r\n value = initValue;\r\n left = initLeft;\r\n right = initRight;\r\n }",
"public TreeNode(int ID) {\n this.ID = ID;\n right = null;\n left = null;\n }",
"private BinaryTree() {\n root = new Node(0);\n }",
"public Tree() {\n // constructor. no nodes in tree yet\n root = null;\n }",
"public TreeNode(Object e) {\n element = e;\n //this.parent = null;\n left = null;\n right = null;\n }",
"public static void main(String[] args) {\n Node root = new Node(1);\n\n Node left = new Node(2);\n left.left = new Node(4);\n left.right = new Node(3);\n\n Node right = new Node(5);\n right.left = new Node(6);\n right.right = new Node(7);\n\n root.left = left;\n root.right = right;\n\n Traversal traversal = new Traversal();\n traversal.preOrder(root);\n System.out.println();\n traversal.postOrder(root);\n System.out.println();\n traversal.inOrder(root);\n System.out.println();\n traversal.levelOrder(root);\n //System.out.println(checkBST(root));\n }",
"public void setRoot(Node<T> root) {\n this.root = root;\n }",
"public ObjectBinaryTree() {\n root = null;\n }",
"public TreeNode encode(Node root) {\n\t\t\tif (root == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tTreeNode head = new TreeNode(root.val);\n\t\t\thead.left = en(root.children);\n\t\t\treturn head;\n\t\t}",
"public BinarySearchTree(){\n\t\tthis.root = null;\n\t}",
"public static RootNode buildTree() {\n\t\t//1\n\t\tfinal RootNode root = new RootNode();\n\t\t\n\t\t//2\n\t\tEdgeNode a = attachEdgenode(root, \"a\");\n\t\tEdgeNode daa = attachEdgenode(root, \"daa\");\n\t\t\n\t\t//3\n\t\tExplicitNode e = Builder.buildExplicit();\n\t\te.setPreviousNode(a);\n\t\ta.addChildNode(e);\n\t\t\n\t\tattachLeafNode(daa, \"2\");\n\t\t\n\t\t//4\n\t\tEdgeNode a_e = attachEdgenode(e, \"a\");\n\t\tEdgeNode daa_e = attachEdgenode(e, \"daa\");\t\t\n\t\t\n\t\t//5\n\t\tattachLeafNode(a_e, \"3\");\n\t\tattachLeafNode(daa_e, \"1\");\n\t\treturn root;\n\t}",
"static TreeNode mirror_tree(TreeNode root) {\n\t\t\n\t\tTreeNode temp ;\n\t\t\n\t\tif(root != null) {\n\t\t\t\n\t\t\tmirror_tree(root.left);\n\t\t\tmirror_tree(root.right);\n\t\t\t\n\t\t\ttemp = root.left;\n\t\t\troot.left = root.right;\n\t\t\troot.right = temp;\n\t\t}\n\t\t\n\t\treturn root;\n\t}",
"void makeTree()\n \t{\n \t\t\t \n \t\tobj.insert(5,\"spandu\");\n \tobj.insert(4,\"anshu\");\n \tobj.insert(3,\"anu\");\n \tobj.insert(6,\"himani\");\n \t\t\n \t}",
"BinarySearchTree() {\n this.root = null;\n }",
"private void singleRotationLR(BinaryNode node){\n if (node == root) {\n root = node.left;\n root.parent = null;\n root.right = node;\n node.parent = node.left;\n node.left = null;\n } else {\n if (node.parent.right == node) {\n node.parent.right = node.left;\n } else {\n node.parent.left = node.left;\n }\n node.left.parent = node.parent;\n node.left.right = node;\n node.parent = node.left;\n node.left = null;\n }\n }",
"public AVLTree() {\r\n\r\n\r\n this.root = new AVLTreeNode(9);\r\n Delete(9);\r\n }",
"public BinaryTree() {\r\n\t\troot = null;\r\n\t\tcount = 0;\r\n\t}",
"private void constructTree() {\r\n\t\tsortLeaves();\r\n\t\tNode currentNode;\r\n\t\tint index = 0;\r\n\t\t\tdo{\r\n\t\t\t\t// Create a new node with the next two least frequent nodes as its children\r\n\t\t\t\tcurrentNode = new Node(this.treeNodes[0], this.treeNodes[1]); \r\n\t\t\t\taddNewNode(currentNode);\r\n\t\t\t}\r\n\t\t\twhile (this.treeNodes.length > 1); // Until there is only one root node\r\n\t\t\tthis.rootNode = currentNode;\r\n\t\t\tindex++;\r\n\t}",
"public void setRoot(Node root) {\n this.root = root;\n }",
"public TernaryTree() {\n root = null;\n\n }",
"public BinarySearchTree() {\r\n\t\troot = null;\r\n\t\tleftChild = null;\r\n\t\trightChild = null;\r\n\t}",
"public static void main(String[] args) {\n BinaryTreeNode root = new BinaryTreeNode();\n root.value = 8;\n root.left = new BinaryTreeNode();\n root.left.value = 6;\n root.left.left = new BinaryTreeNode();\n root.left.left.value = 5;\n root.left.right = new BinaryTreeNode();\n root.left.right.value = 7;\n root.right = new BinaryTreeNode();\n root.right.value = 10;\n root.right.left = new BinaryTreeNode();\n root.right.left.value = 9;\n root.right.right = new BinaryTreeNode();\n root.right.right.value = 11;\n printFromToBottom(root);}",
"public static Node buildRandomTree() {\n\t\tNode root = createNode(15);\n\t\troot.leftChild = createNode(10);\n\t\troot.rightChild = createNode(4);\n\t\troot.leftChild.leftChild = createNode(25);\n\t\troot.leftChild.leftChild.rightChild = createNode(27);\n\t\troot.leftChild.leftChild.leftChild = createNode(13);\n\t\troot.leftChild.rightChild = createNode(25);\n\t\troot.leftChild.rightChild.rightChild = createNode(7);\n\t\t\n\t\treturn root;\n\t}",
"public RBTree() {\n\t\troot = null;\n\t\tdrawer = new RBTreeDrawer();\n\t}",
"public static Treenode createBinaryTree() {\n\t\tTreenode rootnode = new Treenode(40);\r\n\t\tTreenode r40 = new Treenode(50);\r\n\t\tTreenode l40 = new Treenode(20);\r\n\t\tTreenode r50 = new Treenode(60);\r\n\t\tTreenode l50 = new Treenode(45);\r\n\t\tTreenode r20 = new Treenode(30);\r\n\t\tTreenode l20 = new Treenode(10);\r\n\t\trootnode.right = r40;\r\n\t\trootnode.left = l40;\r\n\t\tr40.right=r50;\r\n\t\tr40.left = l50;\r\n\t\tl40.right=r20;\r\n\t\tl40.left=l20;\r\n\t\t r40.parent=rootnode; l40.parent= rootnode;\r\n\t\t r50.parent=r40;\r\n\t\tl50.parent=r40 ;\r\n\t\t r20.parent=l40;\r\n\t\t l20.parent=l40 ;\r\n\t\treturn rootnode;\r\n\t\t\r\n\t}",
"public KdTree() {\n root = null;\n n = 0;\n }",
"public KdTree() {\n root = null;\n }",
"public BST_Recursive() {\n\t\tthis.root = null;\n\t\tnumOfElements = 0; \n\t}",
"public TreeNode encode(Node root) {\n if (root == null) return null;\n TreeNode node = new TreeNode(root.val);\n List<Node> children = root.children;\n TreeNode tmp = node;\n if (!children.isEmpty()) {\n for (int i = 0; i < children.size(); i++) {\n if (i == 0) {\n node.left = encode(children.get(0));\n tmp = node.left;\n } else {\n tmp.right = encode(children.get(i));\n tmp = tmp.right;\n }\n }\n }\n return node;\n }",
"void deleteTree(TreeNode node) \n {\n root = null; \n }",
"public static Node[] initTree(int[] arr){\n int i;\n Node[] tree = new Node[n];\n Node node;\n for(i = 0; i < n; i++){\n node = new Node();\n node.data = arr[i];\n tree[i] = node;\n }\n tree[0].data = arr[0];\n tree[1].data = arr[1];\n tree[2].data = arr[2];\n tree[3].data = arr[3];\n tree[4].data = arr[4];\n tree[5].data = arr[5];\n tree[6].data = arr[6];\n\n tree[0].parent = null;\n tree[0].left = tree[1];\n tree[0].right = tree[2];\n\n tree[1].parent = tree[0];\n tree[1].left = null;\n tree[1].right = tree[3];\n\n tree[2].parent = tree[0];\n tree[2].left = tree[4];\n tree[2].right = null;\n \n tree[3].parent = tree[1];\n tree[3].left = null;\n tree[3].right = null;\n\n tree[4].parent = tree[2];\n tree[4].left = tree[5];\n tree[4].right = tree[6];\n\n tree[5].parent = tree[4];\n tree[5].left = null;\n tree[5].right = null;\n\n tree[6].parent = tree[4];\n tree[6].left = null;\n tree[6].right = null;\n\n root = tree[0];\n return tree; \n }",
"@Test\r\n\tpublic void test(){\r\n\t\tTreeNode root = new TreeNode(1); \r\n TreeNode r2 = new TreeNode(2); \r\n TreeNode r3 = new TreeNode(3); \r\n TreeNode r4 = new TreeNode(4); \r\n TreeNode r5 = new TreeNode(5); \r\n TreeNode r6 = new TreeNode(6); \r\n root.left = r2; \r\n root.right = r3; \r\n r2.left = r4; \r\n r2.right = r5; \r\n r3.right = r6;\r\n System.out.println(getNodeNumRec(root));\r\n System.out.println(getNodeNum(root));\r\n System.out.println(getDepthRec(root));\r\n System.out.println(getDepth(root));\r\n System.out.println(\"前序遍历\");\r\n preorderTraversalRec(root);\r\n System.out.println(\"\");\r\n preorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"中序遍历\");\r\n inorderTraversalRec(root);\r\n System.out.println(\"\");\r\n inorderTraversal(root);\r\n System.out.println(\"\");\r\n System.out.println(\"后序遍历\");\r\n postorderTraversalRec(root);\r\n System.out.println(\"\");\r\n postorderTraversal(root);\r\n System.out.println(\"分层遍历\");\r\n levelTraversal(root);\r\n System.out.println(\"\");\r\n levelTraversalRec(root);\r\n\t}",
"public BTNode(int value){ \r\n node = value; \r\n leftleaf = null;\r\n rightleaf = null;\r\n }",
"public static void main(String[] args) {\n TreeNode one = new TreeNode(1);\n TreeNode three = new TreeNode(3);\n three.right = one;\n TreeNode two = new TreeNode(2);\n two.right = three;\n new BinaryTreePostorderTraversal_145().postorderTraversal(two);\n }",
"public static Node constructTree() {\n\n Node node2 = new Node(2, null, null);\n Node node8 = new Node(8, null, null);\n Node node12 = new Node(12, null, null);\n Node node17 = new Node(17, null, null);\n\n Node node6 = new Node(6, node2, node8);\n Node node15 = new Node(15, node12, node17);\n\n //Root Node\n Node node10 = new Node(10, node6, node15);\n\n return node10;\n }",
"public AVLTree() {\n\t\tthis.root = null;\n\t}",
"private static void doMirrorTreeRecursive(Node root) {\n Queue<Node> lvlQueue = new LinkedList<>();\n lvlQueue.add(root);\n while (!lvlQueue.isEmpty()) {\n Node poppedNode = lvlQueue.poll();\n if (poppedNode.left != null){\n lvlQueue.add(poppedNode.left);\n }\n if (poppedNode.right != null){\n lvlQueue.add(poppedNode.right);\n }\n Node temp = poppedNode.left;\n poppedNode.left = poppedNode.right;\n poppedNode.right = temp;\n }\n }",
"private static BinaryTree mirror(BinaryTree root) {\n\t\tif(root == null) return null;\r\n\t\tif(root.left!=null || root.right!= null){\r\n\t\t\tBinaryTree temp;\r\n\t\t\tmirror(root.left);\r\n\t\t\tmirror(root.right);\r\n\t\t\tBinaryTree left = root.left;\r\n\t\t\tBinaryTree right = root.right;\r\n\t\t\ttemp = left;\r\n\t\t\troot.left = right;\r\n\t\t\troot.right = temp;\r\n\t\t}\r\n\t\treturn root;\r\n\t}",
"public void treeOrder ()\n {\n treeOrder (root, 0);\n }",
"public static TreeNode buildTreeNode06() {\n\t\t\n\t\tTreeNode root = new TreeNode(1);\n\t\troot.left = new TreeNode(2);\n\t\t\n\t\troot.right = new TreeNode(3);\n\t\troot.right.left = new TreeNode(4);\n\t\troot.right.left.right = new TreeNode(5);\n\t\t\n\t\treturn root;\n\t}"
] | [
"0.753192",
"0.73602766",
"0.73390394",
"0.72480196",
"0.7242657",
"0.722863",
"0.71905345",
"0.7174211",
"0.7148256",
"0.71422416",
"0.71204954",
"0.7110036",
"0.7091399",
"0.70655614",
"0.7057306",
"0.7038168",
"0.6984744",
"0.6958251",
"0.69429994",
"0.69338703",
"0.6893546",
"0.68910545",
"0.6877111",
"0.6858287",
"0.6849705",
"0.6819125",
"0.6802714",
"0.6792006",
"0.6781727",
"0.67622405",
"0.6756532",
"0.6754346",
"0.67293096",
"0.67293096",
"0.671629",
"0.67143613",
"0.67003983",
"0.668199",
"0.66799396",
"0.6677662",
"0.66754216",
"0.666461",
"0.6654477",
"0.66482216",
"0.6645033",
"0.6631545",
"0.6629885",
"0.66122705",
"0.6576253",
"0.65755165",
"0.6569577",
"0.6566731",
"0.65606534",
"0.65550643",
"0.6554587",
"0.6546385",
"0.6542387",
"0.65415823",
"0.6539342",
"0.6531155",
"0.65191424",
"0.65172434",
"0.65004027",
"0.64993626",
"0.64948434",
"0.6480033",
"0.6475609",
"0.64755815",
"0.64511275",
"0.64480036",
"0.64463156",
"0.6443123",
"0.644295",
"0.6440956",
"0.6438137",
"0.6434993",
"0.64300287",
"0.6426814",
"0.6422007",
"0.6405408",
"0.63976413",
"0.6394129",
"0.6393981",
"0.6385531",
"0.6383372",
"0.6381728",
"0.63789326",
"0.63761234",
"0.63715655",
"0.6367523",
"0.63568616",
"0.63489807",
"0.6345304",
"0.6340583",
"0.6323625",
"0.6319754",
"0.63137096",
"0.63106513",
"0.6304223",
"0.6302037",
"0.6300188"
] | 0.0 | -1 |
Created by linchenpeng on 2017/6/23. | public interface ZIndexTransformer {
String getTag();
void transformAnimation(CardItem card, float fraction, int cardWidth, int cardHeight, int fromPosition, int toPosition);
void transformInterpolatedAnimation(CardItem card, float fraction, int cardWidth, int cardHeight, int fromPosition, int toPosition);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private static void cajas() {\n\t\t\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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\n public void init() {\n\n }",
"private void poetries() {\n\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private void init() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"private void strin() {\n\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\n void init() {\n }",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void nadar() {\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\tpublic void init() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void init() {\n }",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n protected void getExras() {\n }",
"public void mo38117a() {\n }",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\n protected void initialize() \n {\n \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}",
"public final void mo51373a() {\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\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\n public void memoria() {\n \n }",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void kk12() {\n\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}",
"@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 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 }",
"public void mo4359a() {\n }",
"@Override\n public void init() {}",
"private void init() {\n\n\n\n }",
"@Override\n protected void init() {\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\n\tpublic void init()\n\t{\n\n\t}",
"@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 void mo6081a() {\n }",
"private Rekenhulp()\n\t{\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"Constructor() {\r\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\n\tpublic void init() {\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\n\tpublic void jugar() {\n\t\t\n\t}",
"private void m50366E() {\n }",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public void mo55254a() {\n }",
"@Override\n public void initialize() { \n }",
"public contrustor(){\r\n\t}",
"protected boolean func_70814_o() { return true; }",
"private void getStatus() {\n\t\t\n\t}",
"@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tvoid func04() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n \n }",
"private void init() {\n }"
] | [
"0.6007161",
"0.5989859",
"0.57465285",
"0.5724713",
"0.5714884",
"0.57080066",
"0.57080066",
"0.56561935",
"0.56414294",
"0.5622692",
"0.5601056",
"0.5597323",
"0.5587599",
"0.5578967",
"0.55741066",
"0.5552639",
"0.5537759",
"0.55316055",
"0.5513196",
"0.55129266",
"0.54997814",
"0.549488",
"0.5490162",
"0.5490162",
"0.5490162",
"0.5490162",
"0.5490162",
"0.54885846",
"0.5488365",
"0.54859656",
"0.5474399",
"0.5466151",
"0.54603773",
"0.54578555",
"0.5450829",
"0.5447904",
"0.54438645",
"0.54406047",
"0.54406047",
"0.5427606",
"0.54271644",
"0.54271644",
"0.5421674",
"0.5421674",
"0.5421674",
"0.54146",
"0.5414205",
"0.54123944",
"0.54044133",
"0.540176",
"0.540176",
"0.540176",
"0.53917414",
"0.53917414",
"0.53917414",
"0.53880054",
"0.53880054",
"0.53880054",
"0.53880054",
"0.53880054",
"0.53880054",
"0.5384688",
"0.53562677",
"0.5342392",
"0.53409487",
"0.53384745",
"0.53384745",
"0.53384745",
"0.53384745",
"0.53384745",
"0.53384745",
"0.53384745",
"0.53333384",
"0.53278047",
"0.53266656",
"0.53266656",
"0.53177136",
"0.5313871",
"0.53048754",
"0.53044444",
"0.5299941",
"0.5295922",
"0.5290009",
"0.52883995",
"0.5284003",
"0.5275807",
"0.52672124",
"0.52614105",
"0.52571005",
"0.5253769",
"0.5223175",
"0.52196324",
"0.52135617",
"0.5210461",
"0.52088773",
"0.5205123",
"0.52047944",
"0.51982325",
"0.5195466",
"0.51898783",
"0.51893365"
] | 0.0 | -1 |
Inflate the layout for this fragment | @Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View rootView = inflater.inflate(R.layout.fragment_profile_comments, container, false);
ProfileCommentsAdapter adapter = new ProfileCommentsAdapter(this.getContext(), mUser.getmComments());
RecyclerView recyclerView = (RecyclerView) rootView.findViewById(R.id.profile_comments_recyclerview);
recyclerView.setAdapter(adapter);
recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
return rootView;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_main_allinfo, container, false);\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.wallpager_layout, null);\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_invit_friends, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_zhuye, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_posts, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n return inflater.inflate(R.layout.ilustration_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_sow_drug_cost_per_week, container, false);\n\n db = new DataBaseAdapter(getActivity());\n hc = new HelperClass();\n pop = new FeedSowsFragment();\n\n infltr = (LayoutInflater) getActivity().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n parent = (LinearLayout) v.findViewById(R.id.layout_for_add);\n tvTotalCost = (TextView) v.findViewById(R.id.totalCost);\n\n getData();\n setData();\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_stream_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_event, container, false);\n\n\n\n\n\n\n\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_feed, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.screen_select_list_student, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_overall, container, false);\n mNamesLayout = (LinearLayout) rootView.findViewById(R.id.fragment_overall_names_layout);\n mOverallView = (OverallView) rootView.findViewById(R.id.fragment_overall_view);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n super.onCreateView(inflater, container, savedInstanceState);\n final View rootview = inflater.inflate(R.layout.activity_email_frag, container, false);\n ConfigInnerElements(rootview);\n return rootview;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n\t\t\tBundle savedInstanceState) {\n\t\trootView = inflater.inflate(R.layout.fragment_attack_armor, container, false);\r\n\r\n\t\tfindInterfaceElements();\r\n\t\taddRangeSelector();\r\n\t\tupdateHeadings();\r\n\t\tsetListeners();\r\n\r\n\t\tsetFromData();\r\n\r\n\t\treturn rootView;\r\n\t}",
"@SuppressLint(\"InflateParams\")\r\n\t@Override\r\n\tpublic View initLayout(LayoutInflater inflater) {\n\t\tView view = inflater.inflate(R.layout.frag_customer_all, null);\r\n\t\treturn view;\r\n\t}",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_fore_cast, container, false);\r\n initView();\r\n mainLayout.setVisibility(View.GONE);\r\n apiInterface = RestClinet.getClient().create(ApiInterface.class);\r\n loadData();\r\n return view;\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_friend, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_detail, container, false);\n image = rootView.findViewById(R.id.fr_image);\n name = rootView.findViewById(R.id.fr_name);\n phoneNumber = rootView.findViewById(R.id.fr_phone_number);\n email = rootView.findViewById(R.id.fr_email);\n street = rootView.findViewById(R.id.fr_street);\n city = rootView.findViewById(R.id.fr_city);\n state = rootView.findViewById(R.id.fr_state);\n zipcode = rootView.findViewById(R.id.fr_zipcode);\n dBrith = rootView.findViewById(R.id.date_brith);\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_kkbox_playlist, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_feed_pager, container, false);\n\n// loadData();\n\n findViews(rootView);\n\n setViews();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n layout = (FrameLayout) inflater.inflate(R.layout.fragment_actualites, container, false);\n\n relLayout = (RelativeLayout) layout.findViewById(R.id.relLayoutActus);\n\n initListView();\n getXMLData();\n\n return layout;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\treturn inflater.inflate(R.layout.lf_em4305_fragment, container, false);\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_recordings, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_category, container, false);\n initView(view);\n bindRefreshListener();\n loadParams();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_cm_box_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_layout12, container, false);\n\n iniv();\n\n init();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_details, container, false);\n //return inflater.inflate(R.layout.fragment_details, container, false);\n getIntentValues();\n initViews();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_mem_body_blood, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_qiugouxiaoxi, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_coll_blank, container, false);\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_attendance_divide, container, false);\n\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.show_program_fragment, parent, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container,\n @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.visualization_fragment, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.fragment_category_details_page, container, false);\n initializeAll();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View v = inflater.inflate(R.layout.fragemnt_reserve, container, false);\n\n\n\n\n return v;\n }",
"protected int getLayoutResId() {\n return R.layout.activity_fragment;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_quizs, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n role = getArguments().getInt(\"role\");\n rootview = inflater.inflate(R.layout.fragment_application, container, false);\n layout = rootview.findViewById(R.id.patentDetails);\n progressBar = rootview.findViewById(R.id.progressBar);\n try {\n run();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return rootview;\n }",
"@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tview = inflater.inflate(R.layout.fragment_zhu, null);\n\t\tinitView();\n\t\tinitData();\n\t\treturn view;\n\t}",
"@Override\n\t\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)\n\t\t{\n\t\t\tView rootView = inflater.inflate(R.layout.maimfragment, container, false);\n\t\t\treturn rootView;\n\t\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment__record__week, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_porishongkhan, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_dashboard, container, false);\n resultsRv = view.findViewById(R.id.db_results_rv);\n resultText = view.findViewById(R.id.db_search_empty);\n progressBar = view.findViewById(R.id.db_progressbar);\n lastVisitText = view.findViewById(R.id.db_last_visit);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(getLayoutId(), container, false);\n init(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_service_summery, container, false);\n tvVoiceMS = v.findViewById(R.id.tvVoiceValue);\n tvDataMS = v.findViewById(R.id.tvdataValue);\n tvSMSMS = v.findViewById(R.id.tvSMSValue);\n tvVoiceFL = v.findViewById(R.id.tvVoiceFLValue);\n tvDataBS = v.findViewById(R.id.tvDataBRValue);\n tvTotal = v.findViewById(R.id.tvTotalAccountvalue);\n return v;\n }",
"@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_clan_rank_details, container, false);\r\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_star_wars_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_lei, container, false);\n\n initView(inflate);\n initData();\n return inflate;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_quotation, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_wode_ragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n\n\n\n\n\n return inflater.inflate(R.layout.fragment_appoint_list, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n if (rootView == null) {\n rootView = inflater.inflate(R.layout.fragment_ip_info, container, false);\n initView();\n }\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_offer, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_rooms, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_img_eva, container, false);\n\n getSendData();\n\n initView(view);\n\n initData();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }",
"@Override\r\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n\t\tmainLayout = inflater.inflate(R.layout.fragment_play, container, false);\r\n\t\treturn mainLayout;\r\n\t}",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View rootView = inflater.inflate(R.layout.fragment_habit_type_details, container, false);\n\n habitTitle = rootView.findViewById(R.id.textViewTitle);\n habitReason = rootView.findViewById(R.id.textViewReason);\n habitStartDate = rootView.findViewById(R.id.textViewStartDate);\n habitWeeklyPlan = rootView.findViewById(R.id.textViewWeeklyPlan);\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_information_friends4, container, false);\n\n if (getArguments() != null) {\n FriendsID = getArguments().getString(\"keyFriends\");\n }\n\n return v;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_post_details, container, false);\n\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hotel, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view=inflater.inflate(R.layout.fragment_bus_inquiry, container, false);\n initView();\n initData();\n initDialog();\n getDataFromNet();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_weather, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_srgl, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_ground_detail_frgment, container, false);\n init();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_book_appointment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n binding = DataBindingUtil\n .inflate(inflater, R.layout.fragment_learning_leaders, container, false);\n init();\n\n return rootView;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_end_game_tab, container, false);\n\n setupWidgets();\n setupTextFields(view);\n setupSpinners(view);\n\n // Inflate the layout for this fragment\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.memoir_fragment, container, false);\n\n getUserIdFromSharedPref();\n configureUI(view);\n configureSortSpinner();\n configureFilterSpinner();\n\n networkConnection = new NetworkConnection();\n new GetAllMemoirTask().execute();\n\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_jadwal, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_delivery_detail, container, false);\n initialise();\n\n\n\n return view;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_4, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_all_product, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_group_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_downloadables, container, false);\n }",
"@Override\n public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.movie_list_fragment, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_like, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_hall, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_unit_main, container, false);\n TextView mTxvBusinessAassistant = (TextView) view.findViewById(R.id.txv_business_assistant);\n TextView mTxvCardINformation = (TextView) view.findViewById(R.id.txv_card_information);\n RelativeLayout mRelOfficialWebsite = (RelativeLayout) view.findViewById(R.id.rel_official_website);\n RelativeLayout mRelPictureAblum = (RelativeLayout) view.findViewById(R.id.rel_picture_album);\n TextView mTxvQrCodeCard = (TextView) view.findViewById(R.id.txv_qr_code_card);\n TextView mTxvShareCard = (TextView) view.findViewById(R.id.txv_share_card);\n mTxvBusinessAassistant.setOnClickListener(this.mOnClickListener);\n mTxvCardINformation.setOnClickListener(this.mOnClickListener);\n mRelOfficialWebsite.setOnClickListener(this.mOnClickListener);\n mRelPictureAblum.setOnClickListener(this.mOnClickListener);\n mTxvQrCodeCard.setOnClickListener(this.mOnClickListener);\n mTxvShareCard.setOnClickListener(this.mOnClickListener);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_moviespage, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_s, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_bahan_ajar, container, false);\n initView(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n root = (ViewGroup) inflater.inflate(R.layout.money_main, container, false);\n context = getActivity();\n initHeaderView(root);\n initView(root);\n\n getDate();\n initEvetn();\n return root;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup parent, Bundle savedInstanceState) {\n // Defines the xml file for the fragment\n return inflater.inflate(R.layout.fragment_historical_event, parent, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_event_details, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n v= inflater.inflate(R.layout.fragment_post_contacts, container, false);\n this.mapping(v);\n return v;\n }",
"@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_measures, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_feed, container, false);\n findViews(view);\n return view;\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_surah_list, container, false);\n }",
"@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_data_binded, container, false);\n }"
] | [
"0.6739604",
"0.67235583",
"0.6721706",
"0.6698254",
"0.6691869",
"0.6687986",
"0.66869223",
"0.6684548",
"0.66766286",
"0.6674615",
"0.66654444",
"0.66654384",
"0.6664403",
"0.66596216",
"0.6653321",
"0.6647136",
"0.66423255",
"0.66388357",
"0.6637491",
"0.6634193",
"0.6625158",
"0.66195583",
"0.66164845",
"0.6608733",
"0.6596594",
"0.65928894",
"0.6585293",
"0.65842897",
"0.65730995",
"0.6571248",
"0.6569152",
"0.65689117",
"0.656853",
"0.6566686",
"0.65652984",
"0.6553419",
"0.65525705",
"0.65432084",
"0.6542382",
"0.65411425",
"0.6538022",
"0.65366334",
"0.65355957",
"0.6535043",
"0.65329415",
"0.65311074",
"0.65310687",
"0.6528645",
"0.65277404",
"0.6525902",
"0.6524516",
"0.6524048",
"0.65232015",
"0.65224624",
"0.65185034",
"0.65130377",
"0.6512968",
"0.65122765",
"0.65116245",
"0.65106046",
"0.65103024",
"0.6509013",
"0.65088093",
"0.6508651",
"0.6508225",
"0.6504662",
"0.650149",
"0.65011525",
"0.6500686",
"0.64974767",
"0.64935696",
"0.6492234",
"0.6490034",
"0.6487609",
"0.6487216",
"0.64872116",
"0.6486594",
"0.64861935",
"0.6486018",
"0.6484269",
"0.648366",
"0.6481476",
"0.6481086",
"0.6480985",
"0.6480396",
"0.64797544",
"0.647696",
"0.64758915",
"0.6475649",
"0.6474114",
"0.6474004",
"0.6470706",
"0.6470275",
"0.64702207",
"0.6470039",
"0.6467449",
"0.646602",
"0.6462256",
"0.64617974",
"0.6461681",
"0.6461214"
] | 0.0 | -1 |
continuously listen for the incoming data and analyse it to get the client intention and perform the correponding action. | public void run() {
out.println("Your are now Connected");
out.println("Enter [user: name] to register");
try {
while (connected) {
cmd = parseLine(in.readLine());
switch(cmd) {
case "user":
System.out.println(userName +" is registered now");
out.println("Welcome " + userName);
out.println("Enter [play:hangman] to play game");
break;
case "play":
if (!playing) {
System.out.println(userName +" want to play " +game);
chooseWord = new Thread(new ChooseWord());
chooseWord.start();
try {
Thread.sleep(1000);
} catch (Exception e) {
}
System.out.println("Word : " + word);
playGame = new PlayGame(word, this);
playGame.processWord(word);
playing = true;
} else {
playGame.processWord(userGuess);
}
break;
case "reset":
playing = false;
System.out.println("Game reset");
break;
case "quit":
connected = false;
closeConnection("User Disconnedted");
//chooseWord.interrupt();
break;
default:
System.out.println("Invalid command");
break;
}
}
} catch (Exception e) {
//String s = exceptionToString(e);
closeConnection("Connection to " + userName + " Lost");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\r\n\tpublic void run() {\r\n\t\twhile (closer) {\r\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t\t\t\tObject object = ois.readObject();\r\n\t\t\t\tArrayList<String> input = (ArrayList<String>) object;\r\n\t\t\t\tInteger election = inputTransformer(input);\r\n\t\t\t\tif (election == 1) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 1 - For Chat\");\r\n\t\t\t\t}\r\n\t\t\t\tif (election == 2) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 2 - For Points\");\r\n\t\t\t\t}\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}",
"public void run() {\n readFromClient();\n }",
"private void listen() {\n\t\tString message;\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tmessage = input.readLine();\n\t\t\t\tif (message == null) continue;\n\n\t\t\t\tif(message.equals(\"disconnect\")){\n\t\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\t\tt.start();\n\t\t\t\t\treturn;\n\t\t\t\t} else if(message.contains(\"PUSH\")) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t} else if (message.equals(\"pong\")){\n\t\t\t\t\tponged = true;\n\t\t\t\t} else if(!validResponse) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tresponse = message;\n\t\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\t\tnotifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tresponse = null;\n\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\tnotifyAll();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }",
"public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}",
"public void run() {\n\t\t// System.out.println(\"ReplyLogListener running\");\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tchimeraRead();\n\t\t\t} catch (IOException e) {\n\t\t\t\tlogger.info(\"UCSF Chimera has exited: \"+e.getMessage());\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}",
"@Override\n\t\tpublic void run()\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\twhile (keepListening)\n\t\t\t\t{\n\t\t\t\t\tString rcvStr = is.readLine();\n\t\t\t\t\t\n\t\t\t\t\t//We must make sure that this packet has been sent here correctly.\n\t\t\t\t\tif (rcvStr != null)\n\t\t\t\t\t{\n\t\t\t\t\t\t//TO-DO parse message here and notify controller\n\t\t\t\t\t\t//just transmit it to controller.\n\t\t\t\t\t\tSystem.out.println(\"receive reply : \" + rcvStr);\n\t\t\t\t\t\tmyController.parseResponse(rcvStr);\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t//The receive String is null means that this connection is broken.\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"at ControlChannel listenRunnable : receive null response\");\n\t\t\t\t\t\tkeepListening = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }",
"private void consumeInputWire(final NHttpClientEventHandler handler) {\n if (getContext() == null) {\n return;\n }\n SynapseWireLogHolder logHolder = null;\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n } else {\n logHolder = new SynapseWireLogHolder();\n }\n synchronized (logHolder) {\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_READY);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n if (this.status != ACTIVE) {\n this.session.clearEvent(EventMask.READ);\n return;\n }\n try {\n if (this.response == null) {\n int bytesRead;\n do {\n bytesRead = this.responseParser.fillBuffer(this.session.channel());\n if (bytesRead > 0) {\n this.inTransportMetrics.incrementBytesTransferred(bytesRead);\n }\n this.response = this.responseParser.parse();\n } while (bytesRead > 0 && this.response == null);\n if (this.response != null) {\n if (this.response.getStatusLine().getStatusCode() >= 200) {\n final HttpEntity entity = prepareDecoder(this.response);\n this.response.setEntity(entity);\n this.connMetrics.incrementResponseCount();\n }\n this.hasBufferedInput = this.inbuf.hasData();\n onResponseReceived(this.response);\n handler.responseReceived(this);\n if (this.contentDecoder == null) {\n resetInput();\n }\n }\n if (bytesRead == -1 && !this.inbuf.hasData()) {\n handler.endOfInput(this);\n }\n }\n if (this.contentDecoder != null && (this.session.getEventMask() & SelectionKey.OP_READ) > 0) {\n handler.inputReady(this, this.contentDecoder);\n if (this.contentDecoder.isCompleted()) {\n //This is the place where it finishes the response read from back-ends\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Response entity received\n // Ready to receive a new response\n resetInput();\n }\n }\n } catch (final HttpException ex) {\n resetInput();\n handler.exception(this, ex);\n } catch (final Exception ex) {\n handler.exception(this, ex);\n } finally {\n if (getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY) != null) {\n logHolder = (SynapseWireLogHolder) getContext().getAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY);\n logHolder.setPhase(SynapseWireLogHolder.PHASE.TARGET_RESPONSE_DONE);\n getContext().setAttribute(SynapseDebugInfoHolder.SYNAPSE_WIRE_LOG_HOLDER_PROPERTY, logHolder);\n }\n // Finally set buffered input flag\n this.hasBufferedInput = this.inbuf.hasData();\n }\n }\n }",
"@Override\n public void run() {\n handleClientRequest();\n }",
"@Override\n\tprotected void processConnection() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint receiverID = (Integer) input.readObject();\n\t\t\t\tString message = (String) input.readObject();\n\t\t\t\t\n\t\t\t\tClientHandler recieverHandler = Server.clientConnections.get(receiverID);\n\t\t\t\tif(recieverHandler == null) {\n\t\t\t\t\tsendData(ERROR_CODE);\n\t\t\t\t\tsendData(\"Not available\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trecieverHandler.sendData(clientID);\n\t\t\t\t\trecieverHandler.sendData(message);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException classNotFoundException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Unknown object type recieved.\");\n\t\t\t}\n\t\t\tcatch(IOException ioException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Client terminated connection.\\n\");\n\t\t\t\tcloseConnection();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"public void listen() throws IOException, InterruptedException{\n\t\tString response;\n\t\twhile (!serverSoc.isClosed() && (response = fromServer.readLine()) != null){\n\t\t\tif (gui != null){\n\t\t\t\tgui.giveResponse(response);\n\t\t\t}\n\t\t\tSystem.out.println(response);\n\t\t\tbotAction(response);\n\t\t}\n\t\tqueue.add(\"\");\n\t\tgameOver = true;\n\t}",
"public void run() {\n\t\tString choice = null;\n\t\tBufferedReader inFromClient = null;\n\t\tDataOutputStream outToClient = null;\n\t\t\n\t\ttry {\n\t\t\tinFromClient = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\toutToClient = new DataOutputStream(client.getOutputStream());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// Loops until the client's connection is lost\n\t\t\twhile (true) {\t\n\t\t\t\t// Request that was sent from the client\n\t\t\t\tchoice = inFromClient.readLine();\n\t\t\t\tif(choice != null) {\n\t\t\t\t\tSystem.out.println(choice);\n\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t// Calculates the next even fib by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTEVENFIB\":\n\t\t\t\t\t\t\tnew EvenFib(client).run();\n\t\t\t\t\t\t\t// Increments the fib index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.fib++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next even nextLargerRan by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTLARGERRAND\":\n\t\t\t\t\t\t\tnew NextLargeRan(client).run();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t// Calculates the next prime by creating a new\n\t\t\t\t\t\t// thread to handle that calculation\n\t\t\t\t\t\tcase \"NEXTPRIME\":\n\t\t\t\t\t\t\tnew NextPrime(client).run();\n\t\t\t\t\t\t\t// Increments the prime index tracker so no duplicates\n\t\t\t\t\t\t\t// are sent\n\t\t\t\t\t\t\tServer.prime++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// Displays that the client it was connected to\n\t\t\t// has disconnected\n\t\t\tSystem.out.println(\"Client Disconnected\");\n\t\t}\n\n\t}",
"public void run() {\n while (true) { \n \t\ttry {\n \t\t\tString line=br.readLine();\n\t\t\t\t\t\t\th.obtainMessage(RECIEVE_MESSAGE, line).sendToTarget();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n \n }\n }",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlisten();\n\t\t\t\t}",
"public void run() {\r\n String request = \"\";\r\n\r\n try {\r\n /**\r\n * The ClientConnectionHandler constantly waits for requests from the client. Requests are the initial message\r\n * that the client sends. This initial message determines how the server receives the messages that come after\r\n * it (if there are any).\r\n */\r\n while (isOpen) {\r\n request = readMessage();\r\n processRequest(request);\r\n }\r\n clientSocket.close();\r\n System.out.println(\"Client #\" + clientNumber + \" has closed\");\r\n } catch (Exception e) {}\r\n }",
"public void run(){\r\n\r\n try{\r\n InputStreamReader isr = new InputStreamReader(inputStream);\r\n BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n\r\n while((line = br.readLine()) != null){\r\n System.out.println(\"CLIENT: \" + type + \">\" + line);\r\n }\r\n\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this error and handle it like a boss\r\n }\r\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException 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\n\t\t\t\t}\n\n\t\t\t}",
"@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }",
"public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }",
"@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\twhile(connected) {\n\t\t\tif(GameActivity.getInstance() == null)\n\t\t\t\tcontinue;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t// Read first 4 bytes (int, messageType) from stream\n\t\t\t\t//in.read(bytes, 0, 4);\n\t\t\t\tint messageType = in.readInt();\n\t\t\t\t//intByteBuffer.clear(); // Clear buffer so we can read from it again\n\t\t\t\t\n\t\t\t\t// Receive appropriate message based on received messageType\n\t\t\t if(messageType == Message.CHARACTERS.value()) {\n\t\t\t\t\treceiveCharacters();\n\t\t\t\t} else if(messageType == Message.ID.value()) {\n\t\t\t\t\treceiveId();\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Received message with unknown id: \" + messageType);\n\t\t\t\t}\n\t\t\t \n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Connection to server lost\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tclose();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }",
"public void start() {\n\t\tconnection.start((sender, message) -> message.accept(new Visitor(sender)));\n\t\tloadData();\n\t}",
"protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }",
"public void run(){\n\t\t\tObjectReader readerClient = new ObjectReader(in, clientInetAddress);\r\n\t\t\treaderClient.start();\r\n\t\t\t\r\n\t\t\t// Constantly checks msgToSend for messages and sends them\r\n\t\t\twhile(true){\r\n\t\t\t\ttry{\r\n\t\t\t\t\t// Send message\r\n\t\t\t\t\tif(msgToSend.length() != 0){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tout.writeObject(new DataObject(DataObject.STRING, msgToSend.toString()));\r\n\t\t\t\t\t\tout.flush();\r\n\t\t\t\t\t\tmsgToSend.setLength(0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tcatch(IOException ioe){\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}",
"public void start(){\n\t\tdo{\n\t\t\tMessage<T> msg= input.read();\n\t\t\tif (!msg.getQuit() && !msg.getFail() ){\n\t\t\t\tconsume(msg.getContent());\n\t\t\t}\n\t\t\tif (msg.getQuit()){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}while(true);\n\t\t\n\t}",
"public void listen() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\tDatagramPacket packet = new DatagramPacket(recieveData, MAX_SIZE);\n\t\t\tint available = 0;\n\t\t\t\n\t\t\ttry {\n\t\t\t\t//The 'receive(...)' method fills up the buffer of the packet we passed into it with the data received\n\t\t\t\tmainSocket.receive(packet);\n\t\t\t\t//available = packet.getLength();\n\t\t\t\tbyte[] data = packet.getData();\n\t\t\t\t\n\t\t\t\tif(data[0] == HEADER && data[1] == CONNECTION)\n\t\t\t\t\tif(askUser(packet, available))\n\t\t\t\t\t\tmakeClientThread();\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t}\n\t\t\tcatch(PortUnreachableException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"PortUnreachableException caught in server side.\\n Unable to recieve packet\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t\tcatch (IOException ex) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"1. IOException Caught in server side.\\n Unable to vertify user\\n\");\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public void run() {\n\n\t\tinitListen(new OnReceivedListener() {\n\t\t\t@Override\n\t\t\tpublic void onReceived() throws Exception {\n\n\t\t\t\tmSocket.receive(new DatagramPacket(mQuickBuffer, mQuickBuffer.length));\n\t\t\t\tPacket packet = (Packet) deserialization(mQuickBuffer);\n\t\t\t\tif (packet.isAck()) {\n\t\t\t\t\tSR.updateBufferSlotTimerSender(packet.getSeq(), BufferSlotTimer.ACKED);\n\t\t\t\t\tSR.output.append(\"(S) - Acknowledgment for Packet \" + packet.getSeq() + \" has been Received \\n\");\n\t\t\t\t\tSR.updateBaseSnd();\n\t\t\t\t\tSR.getBufferSlotTimerSender(packet.getSeq()).stopTimerTimeout();\n\t\t\t\t\tSR.output.append(\"(S) - Timer for Packet \" + packet.getSeq() + \" has been stopped \\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"public void run() {\n try {\n BufferedReader serverInput = new BufferedReader(\n new InputStreamReader(connectionSock.getInputStream()));\n while (running) {\n // Get data sent from the server\n String serverText = serverInput.readLine();\n if (serverInput != null) {\n //System.out.println(\"CLIENT DEBUG: \" + serverText);\n parseResponse(serverText);\n }\n }\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }",
"private void eventLoop() {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n try {\n System.out.println(\">\");\n // Before readLine(), clear the in stream.\n System.out.flush();\n String line = in.readLine().toLowerCase();\n if (line.startsWith(\"quit\") || line.startsWith(\"exit\")) {\n break;\n }\n line = \"[\" + \"Node1\" + \"]\" + line;\n // destination address is null, send msg to everyone in the cluster.\n Message msg = new ObjectMessage(null, line);\n channel.send(msg);\n } catch (Exception e) {\n // TODO: handle exception.\n }\n }\n\n }",
"@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tInputStream inputStream = mSocket.getInputStream();\n\t\t\tint leng;\n\t\t\tbyte[] buffer = new byte[1024];\n\t\t\tByteArrayBuffer[] data = {new ByteArrayBuffer(1024 * 32)};\n\t\t\twhile((leng = inputStream.read(buffer)) != -1 && mConected)\n\t\t\t{\n\t\t\t\tif(mConected)\n\t\t\t\t{\n\t\t\t\t\tdata[0].append(buffer, data[0].length(), leng);\n\t\t\t\t\tprocessMessage(data);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tLog.e(TAG, \"Cannot set InputStream\\nNetwork error\");\n\t\t\tevent.connectionLost();\n\t\t} catch (ProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tevent.connectionLost();\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\r\n\t\twhile(true){\r\n\t\t\ttry {\r\n\t\t\tLiftEvent event = connection.receive();\r\n\t\t\tLiftAction liftAction = eventActionMap.get(event.getClass());\r\n\r\n\t\t\tliftAction.execute(event);\r\n\t\t\t} catch(Exception e) {\r\n\t\t e.printStackTrace();\r\n\t\t throw new RuntimeException(e);\r\n\t\t } \r\n\t\t}\t\r\n\t}",
"final public void run() {\n connectionEstablished();\n\n // The message from the server\n int msg;\n\n // Loop waiting for data\n\n try {\n // messageTimer.schedule(new TimerTask() {\n // @Override\n // public void run() {\n // try {\n // sendFromMessageQueue();\n // } catch (IOException e) {}\n // }\n // }, 0, 100);\n while (!readyToStop) {\n // Get data from Server and send it to the handler\n // The thread waits indefinitely at the following\n // statement until something is received from the server\n\n try { // added in version 2.31\n\n // String cur = input.readLine();\n // handleBig5String(cur + \"\\n\");\n readByte();\n\n } catch (RuntimeException ex) { // thrown by handleMessageFromServer\n\n connectionException(ex);\n }\n }\n } catch (Exception exception) {\n if (!readyToStop) {\n try {\n closeAll();\n } catch (Exception ex) {\n }\n\n clientReader = null;\n connectionException(exception);\n }\n } finally {\n\n clientReader = null;\n connectionClosed(); // moved here in version 2.31\n }\n }",
"public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\trespond();\n\t\tlisten();\n\t}",
"protected void serveClient() {\r\n\t\tif (lineIn == null || lineOut == null) {\r\n\t\t\tSystem.err.printf(\"I/O has not been set up.%n\");\r\n\t\t} else {\r\n\t\t\ttry {\r\n\t\t\t\tString clientRequest;\r\n\t\t\t\tStringTokenizer args;\r\n\r\n\t\t\t\t// control loop, receiving client requests\r\n\t\t\t\twhile (!exitRecieved) {\r\n\t\t\t\t\t// PRESENT PROMPT\r\n\t\t\t\t\tsendMessage(PROMPT);\r\n\r\n\t\t\t\t\t// ACCEPT & PROCESS INPUT\r\n\t\t\t\t\tclientRequest = receiveMessage();\r\n\t\t\t\t\targs = new StringTokenizer(clientRequest);\r\n\t\t\t\t\tprocessCommand(args);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.printf(\"IO Error receiving client input: %s%n\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run() {\t\r\n\ttry {\r\n\t System.out.println(\"Creating input pipe\");\r\n\t // create the input pipe\r\n\t pipeIn = pipeSvc.createInputPipe(pipeAdv,this);\r\n\t} \r\n\tcatch (Exception e) {\r\n\t System.out.println(\"Error creating input pipe.\");\r\n\t return;\r\n\t}\r\n\tif (pipeIn == null) {\r\n\t System.out.println(\"Error: cannot open InputPipe\");\r\n\t System.exit(-1);\r\n\t}\r\n\tSystem.out.println(\"Listener waiting for messages...\");\r\n\ttry {\r\n\t Thread.sleep(Integer.MAX_VALUE);\r\n\t} catch (Exception e) {\r\n\t System.out.println(\"Program interrupted\");\r\n\t}\r\n }",
"public void listen() throws IOException {\n\t\twhile(true){\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString responseFromServer = serverReader.readLine();\n\t\t\tJOptionPane.showMessageDialog(null, responseFromServer);\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tif (FrameworkHandler.DEBUG_MODE){\n\t\t\tString strType = \"\";\n\t\t\tif (type == RULE_CONNECTION) strType = \"New RemoteRule Listener\";\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(strType + \" LISTENING on port: \" + listeningSocket.getLocalPort());\n\t\t}\n\t\ttry {\n\t\t\twhile (running) {\n\t\t\t\tSocket newSocket = listeningSocket.accept();\n\t\t\t\t\n\t\t\t\tif (FrameworkHandler.DEBUG_MODE)\n\t\t\t\t\tSystem.out.println(\"New request obtained on \" + newSocket.getPort() + \"|\" + newSocket.getLocalPort());\n\t\t\t\t\n\t\t\t\tcreateNewConnection(newSocket);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tFrameworkHandler.exceptionLog(FrameworkHandler.LOG_ERROR, this, e);\n\t\t}\n\t}",
"@Override\r\n public void run() {\r\n byte[] buffer = new byte[1024];\r\n int bytes;\r\n int times = 0;\r\n\r\n while (!mStopped) {\r\n try {\r\n if (times == 0) {\r\n try {\r\n \t// Sometimes lag occurs. Therefore, from time to time\r\n \t// we just ignore a large chunk of data from input stream\r\n \t// in order to synchronize the communication.\r\n mInputStream.skip(1024000);\r\n } catch (Exception e) {}\r\n times = LAG_CUT_TIMEOUT;\r\n }\r\n times--;\r\n\r\n // Read from socket and send to the handler\r\n bytes = mInputStream.read(buffer);\r\n mReceiveHandler.receiveData(buffer, bytes);\r\n\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error receiving from the socket: \" + ioe.getMessage());\r\n mPeer.communicationErrorOccured();\r\n break;\r\n }\r\n }\r\n }",
"@Override\n\tpublic void run() {\n\t\n\t\tboolean finMsg = false;\n\n \n \n\t\ttry {\n\t\t\t\n\t\t DataInputStream is = new DataInputStream(socket.getInputStream());\n DataOutputStream os = new DataOutputStream(socket.getOutputStream()); \n\t\t\t\n\t\t\twhile (!finMsg) {\n\t\t\t\t\n\t\t\tString[] client_Msg = is.readUTF().split(\" \");\n\t\t\t\t\n\t\t\tswitch (client_Msg[1]) {\n\t\t\t\n\t\t\t\tcase \"REG\":\n\t\t\t\t\thandleRegister(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"RDY\":\n\t\t\t\t\thandleReady(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase \"MOV\":\n\t\t\t\t\thandleMove(client_Msg, os);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\tcase \"FIN\":\n\t\t\t\t\tsocket.close();\n\t\t\t\t\tfinMsg=true;\n\t\t\t\t\tbreak;\n\t\t\t \n\t\t\t\n\t\t\t\t}\n\t\t\n\t\t \n\t\t\t}\n\t\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"@Override\n public void run() {\n this.running.set(true);\n Socket socket = null;\n // if flag is set to listen, keep listening for client connection request and keep accepting connections\n while (this.running.get()) {\n try {\n if (connectionCount.get() < Constants.MAX_CLIENT_CONNECTIONS) {\n socket = serverSocket.accept();\n socket.setSoTimeout(30000); // timeout set to 30,000 ms\n socket.setKeepAlive(true);\n log.info(\"Connection Accepted: Local Add {} Remote Add {}\", socket.getLocalAddress(),\n socket.getRemoteSocketAddress());\n // add the connected socket to the list\n socketList.add(socket);\n // Pass the socket to the RequestHandler thread for processing\n IncomingMessageHandler messageHandler = new IncomingMessageHandler(socket, logWriter, fileWriterQueue,\n periodicReportingService, orderShutdown);\n messageHandler.start();\n connectionCount.getAndIncrement();// increment connection count\n log.debug(\"Current number of connections {}\", connectionCount.get());\n } else {\n if(maxConnWarnCount < 4) {\n log.warn(\"Reached maximum connection limit {}; Stopping to accept more client connections\"\n , connectionCount.get());\n maxConnWarnCount++;\n }\n }\n } catch (IOException e) {\n log.error(\"Error in accepting connections\", e);\n if (e instanceof SocketException) {\n log.error(\"SocketException for remote connection\");\n }\n }\n }\n }",
"public void onStart() {\n\t new Thread() {\n\t @Override public void run() {\n\t receive();\n\t }\n\t }.start();\n\t }",
"public void run() {\r\n\t\ttry {\r\n\t\t\toutput = clientSocket.getOutputStream();\r\n\t\t\tinput = clientSocket.getInputStream();\r\n\t\t// send initial message on connect\r\n\t\t\tsendMessage(new common.messages.KVAdminMessage(\"connect\", \"CONNECT_SUCCESS\", \"\", \"\")); \r\n\r\n\t\t\r\n\t\t\twhile(isOpen) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Receive the KV Message from Client and check if it is valid\r\n\t\t\t\t\tcommon.messages.KVMessage latestMsg = receiveMessage();\r\n\t\t\t\t\tif (latestMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t// If it is valid Handle the message by calling the function in KVServer\r\n\t\t\t\t\t\tcommon.messages.KVMessage returnMsg = m_server.handleClientMessage(latestMsg);\r\n\t\t\t\t\t\tif (returnMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t\t// If returned KVMessage was valid send it back to the client\r\n\t\t\t\t\t\t\tif (returnMsg.getStatus().equals(\"SERVER_STOPPED\") || returnMsg.getStatus().equals(\"SERVER_WRITE_LOCK\") || returnMsg.getStatus().equals(\"SERVER_NOT_RESPONSIBLE\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was not processed by Server.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was Successfully Processed by Server!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// If returned KVMessage is not valid it will have all blank fields\r\n\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg + \" encountered a problem on Server side!\");\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (latestMsg.getHeader().trim().equals(\"\")) {\r\n\t\t\t\t\t\t//echo empty messages\r\n\t\t\t\t\t\tsendMessage(latestMsg);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If it is a bad message output error and echo it back to the client\r\n\t\t\t\t\t\tlogger.debug(\"Message from Client was not valid, sending errorous message back to client\");\r\n\t\t\t\t\t\tlogger.debug(latestMsg.getError());\r\n\t\t\t\t\t\tsendMessage(new common.messages.KVAdminMessage(latestMsg.getHeader(), \"FAILED\", latestMsg.getKey(), latestMsg.getValue()));\r\n\t\t\t\t\t}\r\n\t\t\t\t/* connection either terminated by the client or lost due to \r\n\t\t\t\t * network problems*/\t\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tlogger.error(\"Connection lost!\");\r\n\t\t\t\t\tisOpen = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tlogger.error(\"Error! Connection could not be established!\", ioe);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (clientSocket != null) {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tlogger.error(\"Error! Unable to tear down connection!\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"public void ObserverIO() {\r\n\t\twhile(running && !gameover) {\r\n\t\t\tif (engine.begin) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tToClient.writeBoolean(running);\r\n\t\t\t\t\tToClient.writeBoolean(engine.gameOver);\r\n\t\t\t\t\t// Exit the loop if game over\r\n\t\t\t\t\tif(engine.gameOver)\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tturnDelta = engine.getActiveTurn();\r\n\t\t\t\t\tToClient.writeBoolean(turnDelta != recordedTurn);\r\n\t\t\t\t\tif (turnDelta != recordedTurn) {\r\n\t\t\t\t\t\tToClient.writeUTF(engine.OutputData());\r\n\t\t\t\t\t\trecordedTurn = turnDelta;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tyield();\r\n\t\t\t\t\t}\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\tSystem.out.println(\"Thread Connection lost\");\r\n\t\t\t\t\tinterrupt();\r\n\t\t\t\t} \r\n\t\t\t} else {\r\n\t\t\t\tyield();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(engine.gameOver) {\r\n\t\t\ttry {\r\n\t\t\t\tToClient.writeUTF(engine.getGameOverMessage(TYPE));\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}",
"private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private static void AssureRecieve(ClientManager clientManager, tangible.RefObject<byte[]> buffer) {\n int bytesRecieved = 0;\n int totalBytesReceived = 0;\n do {\n try {\n bytesRecieved = clientManager.getClientSocket().getInputStream().read(buffer.argvalue, totalBytesReceived, buffer.argvalue.length - totalBytesReceived);\n totalBytesReceived += bytesRecieved;\n\n clientManager.AddToClientsBytesRecieved(bytesRecieved);\n if (SocketServer.getIsServerCounterEnabled()) {\n SocketServer.getPerfStatsColl().incrementBytesReceivedPerSecStats(bytesRecieved);\n SocketServer.getPerfStatsColl().incrementByteReceivePerSecStatsBy(bytesRecieved);\n }\n } catch (Exception se) {\n }\n } while (totalBytesReceived < buffer.argvalue.length && bytesRecieved > 0);\n }",
"public void run()\n\t{\n\t\twhile (true)\n\t\t{\n\t\t\t// Get a broadcast\n\t\t\tString str = sc.nextLine();\n\t\t\t\n\t\t\t// Split the data into its elements\n\t\t\tString[] parts = str.split(\"\\0\");\n\t\t\t\n\t\t\t// Determine whether something new is playing, or nothing is playing\n\t\t\t// If nothing is playing ...\n\t\t\tif (parts[0].equals(\"nothinghere\"))\n\t\t\t{\n\t\t\t\t// ... package that as a NowPlayingEvent\n\t\t\t\tNowPlayingEvent ev = new NowPlayingEvent(null, null, null, null, colorParse(parts[1]), str);\n\t\t\t\t\n\t\t\t\t// ... keep track of it\n\t\t\t\tlastEvent = ev;\n\t\t\t\tlastWasClearEvent = true;\n\t\t\t\t\n\t\t\t\t// ... and notify all registered 'NowPlayingListener's\n\t\t\t\tfor (NowPlayingListener listener : listeners)\n\t\t\t\t\tlistener.nowPlayingSongCleared(ev);\n\t\t\t}\n\t\t\t// Otherwise, something new is playing ...\n\t\t\telse\n\t\t\t{\n\t\t\t\t// ... package that as a NowPlayingEvent\n\t\t\t\tNowPlayingEvent ev = new NowPlayingEvent(parts[0], parts[1], parts[2], parts[3], colorParse(parts[4]), str);\n\t\t\t\t\n\t\t\t\t// ... keep track of it\n\t\t\t\tlastEvent = ev;\n\t\t\t\tlastWasClearEvent = false;\n\t\t\t\t\n\t\t\t\t// ... and notify all registered 'NowPlayingListener's\n\t\t\t\tfor (NowPlayingListener listener : listeners)\n\t\t\t\t\tlistener.nowPlayingSongSet(ev);\n\t\t\t}\n\t\t}\n\t}",
"public void startListening();",
"@Override\n\tpublic void run() {\n\t\tlog(\"Running on port \" + serverSocket.getLocalPort());\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\t// accept incomming connections\n\t\t\t\tSocket clientSocket = serverSocket.accept();\n\t\t\t\t//log(\"New connection from \" + client_socket.getRemoteSocketAddress());\n\t\t\t\t// create a new connection handler and run in a separate thread\n\t\t\t\tTrackerRequestHandler handler = new TrackerRequestHandler(this, clientSocket);\n\t\t\t\texecutor.execute(handler);\n\t\t\t} catch (IOException e) {\n\t\t\t\tlog(\"Problem accepting a connection\");\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n int eventseen = 0;\n int looptry = 0;\n int wait = 100;\n while(! isInterrupted()) {\n Iterable<byte[]> stream = new Iterable<byte[]>() {\n @Override\n public Iterator<byte[]> iterator() {\n Iterator<byte[]> i = Receiver.this.getIterator();\n if(i == null) {\n return new Iterator<byte[]>() {\n\n @Override\n public boolean hasNext() {\n return false;\n }\n\n @Override\n public byte[] next() {\n return null;\n }\n\n };\n } else {\n return i;\n }\n }\n };\n try {\n for(byte[] e: stream) {\n logger.trace(\"new message received: {}\", e);\n if(e != null) {\n eventseen++;\n //Wrap, but not a problem, just count as 1\n if(eventseen < 0) {\n eventseen = 1;\n }\n Event event = new Event();\n decode(event, e);\n send(event);\n }\n }\n } catch (Exception e) {\n eventseen = 0;\n logger.error(e.getMessage());\n logger.catching(e);\n }\n // The previous loop didn't catch anything\n // So try some recovery\n if(eventseen == 0) {\n looptry++;\n logger.debug(\"event seen = 0, try = {}\", looptry);\n // A little magic, give the CPU to other threads\n Thread.yield();\n if(looptry > 3) {\n try {\n Thread.sleep(wait);\n wait = wait * 2;\n looptry = 0;\n } catch (InterruptedException ex) {\n break;\n }\n }\n } else {\n looptry = 0;\n wait = 0;\n }\n }\n }",
"private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}",
"private void readData()\n {\n while(System.currentTimeMillis() - start <= durationMillis)\n {\n counters.numRequested.incrementAndGet();\n readRate.acquire();\n\n if (state.get() == SimulationState.TEARING_DOWN)\n break;\n }\n }",
"public void process () {\n consoleListenerAndSender.execute(() -> {\n String message = null;\n DataInputStream reader = null;\n try {\n reader = new DataInputStream(new BufferedInputStream(console.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n while (!isServerAvailable()) {\n message = reader.readUTF();\n\n if (Objects.equals(message, \"/quit\")){\n close();\n setQuitCommandAppear(true);\n break;\n }\n\n sender.sendMessage(message);\n message = null;\n\n }\n reader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n\n serverListenerAndConsoleWriter.execute(() -> {\n try {\n while (!isServerAvailable()) {\n System.out.println(getter.getInputMessage());\n }\n } catch (IOException e) {\n if (!isQuitCommandAppear()) {\n System.out.println(\"[SERVER ISSUE] server is down.\");\n close();\n setServerAvailable(true);\n }\n else {\n System.out.println(\"Quit...\");\n }\n }\n });\n }",
"private void receive() {\n\t\t\ttry{\n\t\t\t\twhile(true){\n\t\t\t\t\tsuper.store(generateSimulateData());\n\t\t\t\t\tSystem.out.println(\"模拟接收数据\");\n\t\t\t\t\tThread.sleep(10000);\n\t\t\t\t}\n\t\t\t}catch(Exception ex){\n\t\t\t\tex.printStackTrace();\n\t\t\t}\n\t }",
"public void run() {\n // Check if the specified connector is null\n //\n if(this.connector == null) {\n System.out.println(\"[ERROR] connector is null aborting\");\n return;\n }\n\n //\n // Keep reading messages\n //\n while (true) {\n AeMessage inMsg = connector.read();\n if(inMsg == null) {\n System.out.println(\"[ERROR] Received an invalid message\");\n connector.reconnect();\n try {\n Thread.sleep(10000);\n }\n catch(Exception e) {\n }\n }\n else {\n //\n // Reject messages over two minutes old\n //\n if(inMsg.checkMessageOlderThan(120) == 1) {\n System.out.println(\"[INFO] Message has expired: \" + inMsg.toString());\n }\n else if(inMsg.getMessageType().equals(\"22\")) {\n System.out.println(\"[INFO] Received message:\" + inMsg.toString());\n if(messageStore.reportMessage(inMsg)) {\n System.out.println(\"[INFO] Successfully added message to the store\");\n }\n else {\n System.out.println(\"[ERROR] Failed to add message to the store\");\n }\n }\n }\n }\n }",
"public void run() {\n\t\t\twhile(true){\n\t\t\t\t//recieve new state\n\t \t \t\t//StoryFactory.getInstance().setAllLogs((ArrayList<ArrayList<UserStory>>) inputFromServer.readObject());\n\t\t\t}\t\t \n\t\t}",
"protected synchronized void receiveHighLevel() throws Exception{\n\t\treceivedMsg = conn.receiveALine( ); \n//\t\tprintln(\"received \" + receivedMsg);\n\t\twhile( receivedMsg == null ){ //this means that the connection works in raw mode\n\t\t\t//System.out.println(\"ConnInputReceiver waiting ... \" + conn );\n\t\t\tmemo();\n \t\t\twait();\n \t\t\t//System.out.println(\"ConnInputReceiver resuming ... \" + conn );\n\t\t\treceivedMsg = conn.receiveALine( ); \n\t\t}\t\n\t\tunmemo();\t\n\t}",
"@Override\n\tpublic void run() {\n\t\t\n\t\ttry{\n\t\tServerEncoderDecoder encodeco = new ServerEncoderDecoder();\n\t\t\n\t\t\tbyte[] datatoWrite = new byte[2000];\n\t\t\t\tdatatoWrite = encodeco.encodeData(packet);\n\t\t\tserverConnection.getOutput().println(new String(datatoWrite));\n\t\t\tString ack = serverConnection.getInput().readLine();\n\t\t\tif(ack.equals(\"ACK\")){\n\t\t\t\t//System.out.println(\"ACK for request obtained\");\n\t\t\t\tCoordinator.incrementCounter();\n\t\t\t}\n\t\t\n\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void run() {\n\t\tPrintWriter out = null;\r\n\t\ttry {\r\n\t\t\tout = new PrintWriter(clientSocket.getOutputStream(), true);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tBufferedReader in = null;\r\n\t\ttry {\r\n\t\t\tin = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tString inputLine, outputLine;\r\n\t\tProtocol kkp = new Protocol();\r\n\r\n\t\toutputLine = kkp.processInput(null);\r\n\t\tout.println(outputLine);\r\n\t\t// Leo continuamente e interactuo\r\n\t\ttry {\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n//\t\t\t\toutputLine = kkp.processInput(inputLine);\r\n\t\t\t\toutputLine = inputLine;\r\n\t\t\t\tout.println(outputLine);\r\n\t\t\t\tif (outputLine.equals(\"Bye.\")){\r\n\t\t\t\t\tbreak;\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (IOException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\ttry {\r\n\t\t\t// Cierro la entrada y salida\r\n\t\t\tout.close();\r\n\t\t\tin.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} finally{\r\n\t\t\tlog.info(\"Clientes activos: \"+ (taskExecutor.getThreadPoolExecutor().getActiveCount()-1));\t\t\t\r\n\t\t}\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tSocket cliente = null;\n\t\t\t\t\tArrayList<Data> dataReceived;\n\t\t\t\t\tlong initialTime = System.currentTimeMillis();\n\t\t\t\t\twhile(!observer.isClosed())\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(\"esperando atualizacao do Subject: \");\n\t\t\t\t\t\t\tcliente = observer.accept();\n\t\t\t\t\t\t\tSystem.out.println(\"Observer conectado: \"+cliente.getInetAddress().getHostAddress());\n\t\t\t\t\t\t\tObjectInputStream input = new ObjectInputStream(cliente.getInputStream());\n\t\t\t\t\t\t\ttry \n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tdataReceived= (ArrayList<Data>) input.readObject();\n\t\t\t\t\t\t\t\tSystem.out.println(\"Tempo decorrido desde a ultima \"\n\t\t\t\t\t\t\t\t\t\t+ \"atualizacao \" + (System.currentTimeMillis()-initialTime));\n\t\t\t\t\t\t\t\tinitialTime = System.currentTimeMillis();\n\t\t\t\t\t\t\t\tinput.close();\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tfor(Data it:dataReceived) {\n\t\t\t\t\t\t\t\t\tCliente.this.point(it.getFramePos(), it.getPosX(), it.getPosY(),\n\t\t\t\t\t\t\t\t\t\t\tit.getColor(), it.getSize());\n\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} catch (ClassNotFoundException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e1) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tcliente.close();\n\t\t\t\t\t\t\t\tthis.run();\n\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n public void run() {\n android.os.Process.setThreadPriority(android.os.Process.THREAD_PRIORITY_BACKGROUND);\n try {\n try {\n selector = Selector.open();\n channel = SocketChannel.open();\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_CONNECT);\n channel.connect(new InetSocketAddress(HOSTNAME, PORT));\n\n } catch (IOException e) {\n new IOException(\"Connection failed. Hostname : \" + HOSTNAME + \", port : \" + PORT, e).printStackTrace();\n }\n\n while (!Thread.interrupted()) {\n selector.select();\n Iterator<SelectionKey> keys = selector.selectedKeys().iterator();\n\n while (keys.hasNext()) {\n SelectionKey key = keys.next();\n keys.remove();\n\n if (!key.isValid()) {\n continue;\n }\n if (key.isConnectable()) {\n connect(key);\n }\n if (key.isReadable()) {\n String str = read(key);\n /*if(!str.equals(score)) {\n String nonStrange = str.replaceAll(\"\\\\p{Cntrl}\", \"\"); // gets rid of special character (diamond question mark)\n score = Integer.valueOf(nonStrange);\n Score();\n }*/\n Log.d(\"Received a message\", str);\n }\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n close();\n }\n }",
"public final void loopReader() {\n looperThread = Thread.currentThread();\n\n try {\n try {\n readerListener.onOpen(this, response);\n } catch (Throwable t) {\n Util.throwIfFatal(t);\n replyToReaderError(t);\n readerListener.onFailure(t, null);\n return;\n }\n\n while (processNextFrame()) {\n }\n } finally {\n looperThread = null;\n }\n }",
"@Override\n public void run() {\n byte[] buffer = new byte[1024];\n int bytes;\n while (true) {\n try {\n\n bytes = inputStream.read(buffer);\n String data = new String(buffer, 0, bytes);\n handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).sendToTarget();\n\n Log.i(this.toString(), \"en el run de Connection: \" + handler.obtainMessage(MainActivityFreeEX.DATA_RECEIVED, data).toString());\n\n\n } catch (IOException e) {\n break;\n }\n }\n }",
"@Override\n\tpublic void run() {\n\t\ttry\n\t\t{\n\t\t\tPath path = Paths.get(\"C:\\\\Users\\\\SKANDA GURUANAND\\\\workspace\\\\Accel\\\\logdata.txt\");\n\t\t\tFile file = new File(path.toString());\n\t\t\tfile.delete();\n\t\t\tFileWriter fw = new FileWriter(file, true);\n\t\t\t//Server is running always. This is done using this while(true) loop\n\t\t\tBufferedReader rd = new BufferedReader(new InputStreamReader(csocket.getInputStream()));\n\t\t\tString str;\n\n\t\t\twhile((str = rd.readLine())!=null) \n\t\t\t{\t\n\t\t\t//\tSystem.out.println(str);\n\t\t\t\tfw.write(str);\n\t\t\t\tfw.flush();\n\t\t\t\tfw.write(\"\\n\");\n\t\t\t}\n\t\t\trd.close();\n\t\t\tfw.close();\n\t\t\tcsocket.close();\n\t\t//\tdoProcessing();\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n\tpublic void run() {\n\t\tLog.i(\"here\",\"listener\");\n\t\twhile(true){\n\t\t\t\n\t\t\ttry {\n\t\t\t\tif((cs=s.accept())!=null)new Thread(new Worker(context,cs)).start();\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\t\n\t\t}\n }",
"private void handleInput() {\n String result = \"\";\n while (!clientSocket.isClosed() && result != null) {\n try {\n result = inFromServer.readLine();\n if (result == null || result.equals(\"null\")) {\n RoboRally.scheduleSync(() -> game.setScreen(new ErrorScreen(game, \"You where disconnected from the host\")), 0);\n\n return;\n }\n ClientAction command = ClientAction.fromCommandString(result.substring(0, result.indexOf(\":\")));\n String data = result.substring(result.indexOf(\":\") + 1);\n switch (command) {\n case START_GAME:\n setupGame(data);\n break;\n case GIVE_CARDS:\n giveCards(data);\n break;\n case NAME:\n //clientName = data;\n // Only used to check connectivity\n break;\n case CONNECTED_PLAYERS:\n receiveConnectedPlayers(data);\n break;\n case THREAD_NAME:\n //Do nothing\n break;\n case START_ROUND:\n GameScreen.getUiHandler().updateCountDown(0);\n playerHandler.runRound(GameGraphics.gson.fromJson(data, StartRoundDto.class));\n break;\n case COUNT_DOWN:\n // This seconds int has the information about the current number for the countdown\n int seconds = 30 - GameGraphics.gson.fromJson(data, Integer.class); // Count down, not count up\n GameScreen.getUiHandler().updateCountDown(seconds);\n break;\n case PARTY_MODE:\n InputHandler.enableMode();\n break;\n default:\n System.out.println(\"Unknown operation :\" + result);\n break;\n }\n } catch (IOException e) {\n System.out.println(\"IOExeption \" + e);\n }\n }\n }",
"@Override\n public void run() {\n // When we read from the input stream, broadcast it to all client observers to relay to the clients via the respective socket.\n try {\n Object dataFromClient = inputFromClient.readObject();\n while (dataFromClient != null) {\n setChanged();\n if(dataFromClient instanceof Integer){\n Integer clientID = (Integer) dataFromClient;\n // This client sent its client id to be added to or removed from registered users. So, send the updated list to all observers to push to ALL clients.\n if(registeredUsers.contains(clientID)){\n removeClient(clientID);\n clientData.remove(clientID);\n }else {\n registeredUsers.add((Integer)dataFromClient); // Add the new client's future ID to the list of registered users. ID sent\n }\n System.out.println(\"Server sending \" + registeredUsers);\n notifyObservers(registeredUsers);\n }else if (dataFromClient instanceof Group){\n System.out.println(\"Server received \" + dataFromClient);\n Group group = (Group)dataFromClient;\n if(group.getGroupID() == -1){ // Indicates group is asking for proper id.\n group.setGroupID(currentGroupNumber);\n System.out.println(\"Here ya go, number \" + currentGroupNumber);\n currentGroupNumber++;\n }\n notifyObservers(group);\n }else{\n notifyObservers(dataFromClient);\n }\n System.out.println(\"Server sent \" + dataFromClient);\n dataFromClient = inputFromClient.readObject();\n }\n } catch (IOException | ClassNotFoundException e) {\n System.out.println(\"Could not read data from client\");\n }\n }",
"public void run(){\n ExecutionPlan executionPlan = new ExecutionPlan().invoke();\n\n Thread thisThread = Thread.currentThread();\n\n while (sidhdiThread == thisThread) {\n InputHandler inputHandler = executionPlan.getInputHandler();\n\n //Sending events to Siddhi\n try {\n List<BLE> bleReadings = read();\n for(BLE ble : bleReadings){\n System.out.println(\"Publishing data...\");\n inputHandler.send(new Object[]{ble.getId(), ble.getTimeStamp(), ble.getLocation()});\n }\n\n thisThread.sleep(INTERVAL);\n } catch (InterruptedException e) {\n e.printStackTrace();\n break;\n }\n }\n }",
"public void run()\n\t{\n\t\t// while we have this stream\n\t\twhile(m_keyboardStream != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// only if someone is requesting us to read do we do so...\n\t\t\t\tif (m_keyboardReadRequest)\n\t\t\t\t{\n\t\t\t\t\t// block on keyboard input and put it onto the end of the queue\n\t\t\t\t\tString s = m_keyboardStream.readLine();\n\t\t\t\t\tm_keyboardInput.add(s);\n\n\t\t\t\t\t// fullfilled request, now notify blocking thread.\n\t\t\t\t\tm_keyboardReadRequest = false;\n\t\t\t\t\tsynchronized(this) { notifyAll(); }\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\ttry { Thread.sleep(50); } catch(InterruptedException ie) {}\n\t\t\t}\n\t\t\tcatch(IOException io)\n\t\t\t{\n//\t\t\t\tio.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void run() {\n try {\n // accepts the connection request.\n SelectableChannel peerHandle = this._handle.accept();\n if (peerHandle != null) {\n // now, create a service handler object to serve the\n // the client.\n ServiceHandler handler =\n this._factory.createServiceHandler(\n this._reactor,\n peerHandle);\n if (handler != null)\n // give the service handler object a chance to initialize itself.\n handler.open();\n }\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n }\n }",
"private void run() throws InterruptedException, IOException {\n endpoint.getWcEvents().take();\n\n //process received data\n processRecv();\n\n for (int i=0; i < 1000000; i++) {\n //change data in remote memory\n writeData(i);\n\n //wait for writing remote memory to complete\n endpoint.getWcEvents().take();\n }\n System.out.println(\"ClientWrite::finished!\");\n }",
"void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }",
"private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\n public void run() {\n try{\n System.out.println(\"A new client is trying to connect\");\n inputFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n outputFromServer = new PrintWriter(socket.getOutputStream(),true);\n retrievingClientInformation(); // Identifies clients\n sendPreviousMessagesToClient(); // Sends last 15 messages to new comers\n while (clientConnected) // It will execute until client sends a signal to disconnect\n {\n readMessagesFromClients(); // Reads a client inputs then sends them to other clients\n }\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }finally {\n try\n {\n socket.close();\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n }\n }",
"public int listen() {\n\t \n\t \n\tconditionLock.acquire();\n\t\t\n\t\tint aux=0;\n\t \n\t\twhile(listenerReady == true){\n\t\t\tcondLock.sleep();\n\t\t}\n\t\t//~ else{\n\t\t\tlistenerReady = true;\n\t\t\tcondLock.wakeAll();\n\t\t\t\n\t\t\taux = data;\n\t\t\n\t\twhile(speakerReady == false){\n\t\t\t\n\t\t\tcondLock.sleep();\n\t\t}\t\n\t\t\n\t\taux = data;\n\t\tspeakerReady = false;\n\t\tcondLock.wakeAll();\n\t\t\n\t\t//~ if(speakerReady){\n\t\t\t\t\n\t\t\t\t//~ aux = data;\n\t\t\t\t//~ speakerReady = false;\n\t\t\t\t\n\t\t\t\t//~ condLock.wakeAll();\n\t\t\t//~ }\n\t\t\t//~ else{\n\t\t\t\t//~ condLock.sleep();\n\t\t\t\t\n\t\t\t\t//~ aux = data;\n\t\t\t\t//~ speakerReady = false;\n\t\t\t\t//~ condLock.wakeAll();\n\t\t\t\t\n\t\t\t//~ }\n\t\t//~ }\n\t\n\t\n\tlistenerReady = false; \n\tconditionLock.release();\n\t \n\treturn aux;\n }",
"public void run() {\n try {\n socketIn = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n socketOut = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n readFromClient();\n pingToClient();\n }",
"public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }",
"public void run() {\r\n\t\ttry {\r\n\t\t\tListenForHandshakes();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }",
"private void resumeListening() {\n Thread listener = new Thread() {\n @Override\n public void run() {\n try {\n mListenerSocket = new ServerSocket();\n mListenerSocket.setReuseAddress(true);\n mListenerSocket.bind(new InetSocketAddress(LOCAL_PORT));\n while (true) {\n Socket connSocket = mListenerSocket.accept();\n Scanner sc = new Scanner(connSocket.getInputStream());\n String encMsg = sc.nextLine();\n connSocket.close();\n sc.close();\n Message msg = mHandler.obtainMessage();\n msg.obj = encMsg;\n mHandler.sendMessage(msg);\n }\n } catch (IOException e) {\n Log.d(\"LANConnection\", \"Stopping listener thread due to error\", e);\n }\n }\n };\n listener.start();\n }",
"@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\twhile (true) {\r\n\t\t\t\tString TransferLine = is.readUTF();\r\n\t\t\t\tSystem.out.println(\"Recv: \" + TransferLine);\r\n\t\t\t\tSimpleAttributeSet recv = new SimpleAttributeSet();\r\n\t\t\t\tStyleConstants.setForeground(recv, Color.RED);\r\n\t\t\t\tGUIObject.addText(\"Recv: \" + TransferLine, recv);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t}",
"@Override\n public void run() {\n while(true){\n //----------------ACCIONES QUE REALIZA EL HILO-----------------------\n if(isActive()){\n \n try {\n socket = serverSocket.accept(); //Espera una nueva conexion\n socket.setSoTimeout(10000); //Se espera recibir informacion durante 10 segundos\n dataInput = new BufferedReader(new InputStreamReader(socket.getInputStream()));//Se recibe informacion\n String data = dataInput.readLine();\n System.out.println(data);\n //Se disparan recien aqui las transiciones para evitar inconvenientes en caso de TimeOut\n monitor.disparar(transitions.get(0));\n monitor.disparar(transitions.get(1));//Se guarda en base de datos\n dataBase.insertEventWeb(data);\n monitor.disparar(transitions.get(2));\n } \n catch (SocketTimeoutException ex) { //En caso que haya expirado el TimeOut tengo que \n System.out.println(\"El tiempo a expirado\");\n }\n catch (IOException ex) {\n System.out.println(\"Error en Socket\");\n }\n try {\n socket.close();\n } \n catch (IOException ex) {\n System.out.println(\"Error al cerrar Socket\");\n }\n }\n }\n }",
"public synchronized void receive() {\n inCountStat.received();\n inCount++;\n }",
"@Override\n public void run(){\n System.out.println(clientID+\" run\");\n open();\n if(isHost){ //HostClient listening\n try{\n controller.sendHostAddress(ip, port);\n socket = hostSocket.accept();\n System.out.println(clientID+\": run: accept\");\n close(); //closes hostSocket\n connected = true;\n open(); //gets streams\n controller.sendConnect(); \n }catch(IOException e){\n System.out.println(clientID+\": run: accept: failed: IOException: \"+e);\n }\n }\n while(connected){ //interprets requests from other client\n try{\n String request = streamIn.readUTF();\n System.out.println(clientID+\": receive: \"+request);\n String response[] = request.split(\"<&>\");\n controller.interpretRequest(response);\n }catch(IOException ioe){\n System.out.println(clientID+\": receive: failed: IOException:\"+ioe);\n connected = false; \n }\n }\n }",
"@Override\n public void onStart() {\n this.dataGenerator = new DataGenerator(this.dataSize, this.dataValues, this.dataValuesBalancing);\n this.dataStream = new DataStream();\n if (this.flowRate != 0)\n this.sleepTime = dataStream.convertToInterval(this.flowRate);\n this.count = 0L;\n// this.me = this.me + \"_\" + getRuntimeContext().getIndexOfThisSubtask();\n new Thread(this::receive).start();\n }",
"public void run() {\n try {\n DataInputStream in = new DataInputStream(new BufferedInputStream(s.getInputStream()));\n try {\n byte op = (byte) in.read();\n if (op == OP_WRITE_BLOCK) {\n writeBlock(in);\n } else if (op == OP_READ_BLOCK || op == OP_READSKIP_BLOCK ||\n op == OP_READ_RANGE_BLOCK) {\n readBlock(in, op);\n } else {\n while (op >= 0) {\n System.out.println(\"Faulty op: \" + op);\n op = (byte) in.read();\n }\n throw new IOException(\"Unknown opcode for incoming data stream\");\n }\n } finally {\n in.close();\n }\n } catch (IOException ie) {\n LOG.warn(\"DataXCeiver\", ie);\n } finally {\n try {\n xceiverCount.decr();\n LOG.debug(\"Number of active connections is: \"+xceiverCount);\n s.close();\n } catch (IOException ie2) {\n }\n }\n }",
"private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Message fromClient;\n synchronized (C2SMessages){\n if (C2SMessages.size() > 0){\n fromClient = (Message) C2SMessages.get(0);\n C2SMessages.remove(0);\n if( !(fromClient instanceof PingMessage) ) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (lock){\n lock.notifyAll();\n }\n } else {\n send(new WrongTurnMessage());\n }\n }\n }\n if (C2SMessages.isEmpty())\n C2SMessages.wait();\n }\n } catch (NullPointerException | IllegalArgumentException | InterruptedException e) {\n System.out.println(\"[LOCAL-HANDLER] \"+userNickname+\"-local connection closed\");\n closeConnection();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }",
"@Override\n public void run() {\n try {\n\n byte[] data = new byte[TcpClient.BUFFER_SIZE * 2];\n\n while(!Rebroadcaster.INSTANCE.isHalted()) {\n int len = is.read(data, 0, data.length);\n os.write(data, 0, len);\n os.flush();\n }\n } catch (IOException ex) {\n LOGGER.log(Level.SEVERE, null, ex);\n }\n }",
"@Override\n public void run() {\n while(true){\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n\n String message=in.readLine();\n if(message!=null){\n logger.info(\"Received message from \"+clientSocket.getInetAddress());\n }\n else{\n logger.error(\"Null message received from \"+clientSocket.getInetAddress()+\". Stopping connection\");\n return;\n }\n\n\n PrintWriter out =\n new PrintWriter(clientSocket.getOutputStream(), true);\n out.println(message);\n\n } catch (IOException e) {\n logger.error(\"[IOException] \"+e.getMessage());\n e.printStackTrace();\n return;\n }\n try {\n Thread.sleep(responseInterval);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n }",
"public void run() {\r\n try {\r\n this.is = new ObjectInputStream(clientSocket.getInputStream());\r\n this.os = new ObjectOutputStream(clientSocket.getOutputStream());\r\n while (this.readCommand()) {}\r\n } \r\n catch (IOException e) \r\n {\r\n \tSystem.out.println(\"XX. There was a problem with the Input/Output Communication:\");\r\n e.printStackTrace();\r\n }\r\n }",
"public static void main(String[] args) throws Throwable {\n ServerSocket server = new ServerSocket();\n server.bind(new InetSocketAddress(3000));\n System.out.println(\"Blocking Socket : listening for new Request\");\n while (true) { // <1>\n Socket socket = server.accept();\n //each incomming request(socket request) allocate in a separate thread\n new Thread(clientHandler(socket)).start();\n }\n }",
"synchronized void processAndHandOff(int readCount) {\n readProcess(readCount);\n //Read processing done. Now the server is ready to send a message to the client.\n state = SENDING;\n }",
"public void run() {\n ServerSocket serverSocket = null;\n try {\n serverSocket = new ServerSocket(8823);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // running infinite loop for getting\n // client request\n while (true)\n {\n Socket socket = null;\n\n try\n {\n // socket object to receive incoming client requests\n socket = serverSocket.accept();\n\n //System.out.println(\"A new client is connected : \" + socket);\n\n // obtaining input and out streams\n InputStream inputStream = new DataInputStream(socket.getInputStream());\n OutputStream outputStream = new DataOutputStream(socket.getOutputStream());\n\n //System.out.println(\"Assigning new thread for this client\");\n\n // create a new thread object\n Thread t = new ClientHandler(socket, inputStream, outputStream);\n\n // Invoking the start() method\n t.start();\n\n }\n catch (Exception e){\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n e.printStackTrace();\n }\n }\n }"
] | [
"0.67256385",
"0.67192215",
"0.6623474",
"0.6579082",
"0.6440677",
"0.6415186",
"0.6411725",
"0.633512",
"0.6320865",
"0.62653",
"0.6252775",
"0.6235834",
"0.62092847",
"0.61954886",
"0.61780804",
"0.61727345",
"0.6169886",
"0.6165857",
"0.61636454",
"0.6138787",
"0.61374897",
"0.6133881",
"0.6129878",
"0.60950077",
"0.6074559",
"0.60707635",
"0.60650945",
"0.60595226",
"0.6043628",
"0.60435265",
"0.60190314",
"0.5997396",
"0.59922546",
"0.59848833",
"0.59828997",
"0.59602386",
"0.59512854",
"0.59504706",
"0.59429264",
"0.59272766",
"0.59011304",
"0.5890746",
"0.58893895",
"0.5882654",
"0.588192",
"0.58818316",
"0.5880973",
"0.5878788",
"0.5876058",
"0.5871464",
"0.58705497",
"0.5863757",
"0.58626103",
"0.58554566",
"0.5843461",
"0.5835593",
"0.58294535",
"0.5821792",
"0.5821779",
"0.5819898",
"0.5815693",
"0.5815103",
"0.58098114",
"0.5809751",
"0.5808672",
"0.5805982",
"0.58040756",
"0.5802953",
"0.5794791",
"0.57861716",
"0.5785893",
"0.57825017",
"0.5781391",
"0.57759637",
"0.57740235",
"0.57696253",
"0.5766596",
"0.5755823",
"0.574682",
"0.5743915",
"0.57349014",
"0.5734346",
"0.5734139",
"0.57297087",
"0.57277054",
"0.5724606",
"0.57228523",
"0.5721414",
"0.5720245",
"0.57184505",
"0.5717181",
"0.5712047",
"0.5708495",
"0.57056814",
"0.57001907",
"0.5699137",
"0.56927216",
"0.56912506",
"0.56865156",
"0.5682567",
"0.5680686"
] | 0.0 | -1 |
close the connection if an exception occure, or the user want to quit. | public void closeConnection(String s) {
System.out.println(s);
connected = false;
try {
socket.close();
} catch (Exception ee) {
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void close_Connection(){\n\t\ttry{\n\t\t\toutfile.close();\n\t\t\tcon.close();\n\t\t\tSystem.out.println(\"MYSQL is disconnected\");\n\t\t//Catch SQL exception\t\t\n\t\t}catch(SQLException sqle){ \n\t\t\tsqle.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\n\t\t//Catch I/O exception\t\n\t\tcatch(IOException ioe){ \n\t\t\tioe.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t}\t\t\n\t}",
"private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}",
"public void close () throws IOException , GateException {\n try{\n conn.close();\n }\n catch (SQLException e){\n log.error(\"Problem closing database connection\", e);\n System.exit(5);\n }\n\n }",
"@Override\r\n\tpublic void close()\r\n {\r\n\t\ttry\r\n {\r\n\t connection.close();\r\n }\r\n\t\tcatch (final SQLException e)\r\n {\r\n\t\t\t// Ignore, shutting down anyway\r\n }\r\n }",
"private void close() {\n\t\ttry {\n\t\t\tif (conn != null) {\n\t\t\t\tconn.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlog(e);\n\t\t} finally {\n\t\t\tisConnected = false;\n\t\t}\n\t}",
"private void exit()\n {\n try\n {\n connect.close();\n }\n catch (javax.jms.JMSException jmse)\n {\n jmse.printStackTrace();\n }\n\n System.exit(0);\n }",
"private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }",
"private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }",
"@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }",
"public void connectionClose() {\n try {\n conn.close();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}",
"private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public synchronized void close() {\n\n String userInput ;\n String fromServer ;\n try {\n userInput = \"QUIT\";\n out.println(\"Client: \" + userInput);\n output.println(userInput); // send QUIT command\n fromServer = input.readLine();\n //out.println(\"Server: \" + fromServer);\n\n if (fromServer.substring(0, 3).equals(\"221\")){ // 221: connection is closed successfully\n socket.close();\n System.exit(0);\n }\n } catch (IOException e) {\n // ignore any exception\n }\n }",
"private synchronized void closeConnection() {\n/* 212 */ if (this.conn != null) {\n/* 213 */ this.log.debug(\"Closing connection\");\n/* */ try {\n/* 215 */ this.conn.close();\n/* 216 */ } catch (IOException iox) {\n/* 217 */ if (this.log.isDebugEnabled()) {\n/* 218 */ this.log.debug(\"I/O exception closing connection\", iox);\n/* */ }\n/* */ } \n/* 221 */ this.conn = null;\n/* */ } \n/* */ }",
"public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }",
"@Override\n\tprotected void onClose() {\n\t\tcloseConnections();\n\t}",
"public void ExitConection(){\n try {\n resultSet.close();\n preparedStatement.close();\n conection.close();\n } catch (Exception e) {\n// MessageEmergent(\"Fail ExitConection(): \"+e.getMessage());\n }\n }",
"public boolean closeConnection(){\n try{\n conn.close();\n }catch(SQLException sqle){\n DLException dle = new DLException(sqle, \"Unable to conclude this operation\");\n return false;\n }\n \n return true;\n }",
"public void closeConnection() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {\n\t\t\tlogger.warning(\"problem closing socket connection with JSON-RPC server at \" + serverIP + \":\" + serverPort);\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void setCloseConnection();",
"public void terminate() {\n config.closeConnection();\n }",
"private void disconnect() {\n\t\t\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t} catch(Exception e) {} \n\t\t\n\t\t\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t} catch(Exception e) {}\n\t\t\n // informa ao Gui\n if(clientGui != null) clientGui.connectionFailed();\n\t\t\t\n\t}",
"private void closeConnection () {\n setConnection (null);\n }",
"private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}",
"public void closeConnection() {\n try {\n stdIn.close();\n socketIn.close();\n socketOut.close();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }",
"@Override\r\n public void close() throws Exception {\r\n if (connection != null){\r\n connection.close();\r\n }\r\n }",
"private void closeConnection()\n\t{\n\t\tif(result != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tresult.close();\n\t\t\t\tresult = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t\tif(con != null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tcon.close();\n\t\t\t\tcon = null;\n\t\t\t}\n\t\t\tcatch(Exception ignore){}\n\t\t}\n\t}",
"protected void connectionClosed() {}",
"public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}",
"public void closeConnection(){\n try {\n connection.close();\n } catch (SQLException ex) {\n System.out.println(\"SQLException in closeConnection()\");\n }\n }",
"@Override\r\n\tpublic void close() {\n\t \t if (conn != null) {\r\n\t \t\t try {\r\n\t \t\t\t conn.close();\r\n\t \t\t } catch (Exception e) {\r\n\t \t\t\t e.printStackTrace();\r\n\t \t\t }\r\n\t \t }\r\n\t}",
"public static void closeConnection() {\n\t\ttry {\n\t\t\tcon.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error al cerrar la conexion.\");\n\t\t}\n\t}",
"void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }",
"public void close() throws IOException {\n try {\n _connection.close();\n } catch (SQLException e) {\n String msg = \"Failed to close database connection.\";\n _logger.warn(msg, e);\n }\n super.close(); //close the /dev/null that ncml gave us\n }",
"public void quit()throws IOException {\n if(s.isConnected()) {\n reader.close();\n writer.close();\n s.close();\n System.out.println(\"Disconnected from the server.\");\n }\n }",
"public void closeConnection();",
"private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }",
"private void closeConnection(final String reason) {\n closeConnection(new VertxException(reason).fillInStackTrace());\n }",
"private void handleQuit() {\n sendMsgToClient(\"221 Closing connection\");\n quitCommandLoop = true;\n }",
"abstract public void closeConnection();",
"public void closeConnection() {\n try {\n if (connection != null) {\n connection.close();\n connection = null;\n }\n } catch (Exception e) {\n System.out.print(e.getMessage());\n }\n }",
"public static void closeConnection() {\n if(connection != null) {\n try {\n connection.close();\n connection = null;\n }\n catch (Exception e) \n { \n e.printStackTrace(); \n }\n }\n }",
"final public void closeConnection() throws IOException {\n\n readyToStop = true;\n closeAll();\n }",
"public void disconnect() {\n\t\ttry {\n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\n\t}",
"@Override\n public void onObjectKill( Object o ) {\n try {\n ( (Connection) o ).close();\n } catch ( SQLException e ) {\n // which is a bad thing\n }\n }",
"public void close() {\n connection.close();\n running = false;\n }",
"public void pgClose() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tSystem.out.println(\"Connection closed\");\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.err.println(\"Connection could not be closed ĘC SQLexception\");\n\t\t}\n\t\t\n\t}",
"boolean quit() throws IOException {\n Protocol protocol = this;\n synchronized (protocol) {\n boolean bl;\n try {\n bl = this.simpleCommand((String)\"QUIT\").ok;\n }\n catch (Throwable throwable) {\n try {\n this.socket.close();\n throw throwable;\n }\n finally {\n this.socket = null;\n this.input = null;\n this.output = null;\n }\n }\n try {\n this.socket.close();\n return bl;\n }\n finally {\n this.socket = null;\n this.input = null;\n this.output = null;\n }\n }\n }",
"public boolean shouldClose(Connection conn) {\n return true;\n }",
"public void close() {\n if (closed) {\n return;\n }\n try {\n disconnect();\n } catch (Exception e) {\n throw new IOError(e);\n }\n closed = true;\n }",
"private void closeConnection () {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\tconnection = null;\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}",
"public void closeConnection()\n {\n try{\n if(statement!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close statement ex:\"+ se.getMessage());\n }// do nothing\n try{\n if(connection!=null)\n connection.close();\n }catch(SQLException se){\n System.out.println(\"Close connection ex:\"+ se.getMessage());\n }//end finally try\n }",
"public void closeConnection() {\n try {\n dis.close();\n dos.close();\n socket.close();\n }\n catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}",
"public void closeConnection() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException sqlEx) {\n dbg(\"closeConnection-->SQLException raised while closing conn =\" + sqlEx.getMessage());\n }\n }\n }",
"protected boolean shouldCloseConnection(HttpConnection conn) {\n return true;\n }",
"public void close()\r\n {\r\n try\r\n {\r\n connection.close();\r\n } catch(SQLException exception)\r\n {\r\n LOG.log(Level.SEVERE, \"\", exception);\r\n }\r\n }",
"@Override\n public void disconnect() {\n\n // silently return if connection is closed\n if (!is_open) {\n return;\n }\n\n // close connection and statement, shutdown driver\n try {\n statement.close();\n connection.close();\n DriverManager.getConnection(\"jdbc:derby:\" + db_name + \";shutdown=true\");\n is_open = false;\n } catch (SQLException e) {\n System.out.println(\"Java DB connection did not shutdown successfully.\");\n }\n\n //System.out.println(\"Java DB connection shutdown successfully!\");\n\n }",
"public void destroy(){\n\n if(myConnection !=null){\n\n try{\n myConnection.close();\n }\n catch(Exception e){\n System.out.println(\"failed to destroy\");\n }\n\n\n }\n return;\n }",
"int closeConnection() {\n\t\tint status = -1; //the return value. -1 if connection failed, 0 if succeeded\r\n\t\ttry {\r\n\t\t\tconn.close();\r\n\t\t\tstatus = 0;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tSystem.out.println(\"Error: Could not close the connection to the tool rental database.\");\r\n\t\t}\r\n\t\treturn status;\r\n\t}",
"public void closeConnection(){\r\n if (connection != null)\r\n try{\r\n log.info(\"close connection\");\r\n connection.close();\r\n }\r\n catch (SQLException e){\r\n log.error(e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }",
"void handleConnectionClosed();",
"public void close() {\n try {\n connect.close();\n } catch (SQLException ex) {\n System.err.println(\"Error while closing db connection\" + ex.toString());\n }\n }",
"public void closeCon(){\r\n\t\ttry\r\n\t\t{\r\n\t\t\tmyConnection.close();\r\n\r\n\t\t}\r\n\r\n\t\tcatch (SQLException e )\r\n\t\t{\r\n\t\t\tSystem.out.println(\"something went wrong with closing DB connection\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private void close()\r\n {\r\n try \r\n {\r\n if(out != null) out.close();\r\n }\r\n catch(Exception e) {\r\n \r\n }\r\n try \r\n {\r\n if(in != null) in.close();\r\n }\r\n\r\n catch(Exception e) {\r\n \r\n };\r\n try \r\n {\r\n if(socket != null) socket.close();\r\n }\r\n catch (Exception e) {\r\n \r\n }\r\n }",
"@Override\n public synchronized void close() throws IOException {\n disconnect(false);\n }",
"public void closeConnect() throws SQLException\n {\n if(this.res!=null&&!this.res.isClosed())\n try{\n this.res.close();\n this.res=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong ket qua\");\n }\n \n if(this.sta!=null&&!this.sta.isClosed())\n try{\n this.sta.close();\n this.sta=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong lenh thuc thi\");\n }\n \n if(this.con!=null&&!this.con.isClosed())\n try{\n this.con.close();\n this.con=null;\n }catch(SQLException e)\n {\n JOptionPane.showMessageDialog(null, \"Loi dong ket noi\");\n }\n \n }",
"@Override\r\n\tpublic void close() throws IOException {\r\n\t\t List<Connection> connections = new ArrayList<>();\r\n\t\t connections.addAll(busyConnection);\r\n\t\t connections.addAll(freeConnection);\r\n\t\t \r\n\t\t for (Connection connection : connections) {\r\n\t\t\ttry {\r\n\t\t\t\tif(connection.isClosed()== false){\r\n\t\t\t\t\tconnection.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (SQLException e) {\r\n\t\t\t\tlogger.error(ErrorMessageDAO.ERROR_SQL_CLOSE + e);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}",
"public void closeConnection() {\n try {\n socket.close();\n oStream.close();\n } catch (Exception e) { }\n }",
"@Override\n public void close()\n {\n this.disconnect();\n }",
"public boolean close() {\n\t\ttry {\n\t\t\tconnection.close();\n\t\t\treturn connection.isClosed();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}",
"public void disconnect(){\n try {\n if(conn!=null){\n conn.close();\n System.out.println(\"Closed connection to the Database\");\n }else{\n System.out.println(\"Not closed connection to the Database\");\n }\n } catch (SQLException e) {\n System.out.println(\"ERROR, Cannot close the connection\" + e.getSQLState());\n }\n catch (NullPointerException e){\n System.out.println(\"ERROR, Not Created previous connection to the database\");\n e.getStackTrace();\n }\n }",
"protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}",
"public static void close() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch(Exception e) {\n\t\t\tPvPTeleport.instance.getLogger().info(e.getMessage());\n\t\t}\n\n\t}",
"public boolean endConnection() throws CommunicationException;",
"@Override\n public synchronized void forceClose() throws IOException {\n disconnect(true);\n }",
"public static void disconnect(){\n if(conn != null)\n try{\n conn.close();\n }catch(SQLException e) {\n System.out.println(e.getMessage());\n }\n }",
"public void close() {\n if (connection == null) {\n LOGGER.error(\"DB : Uninitialized DB Connection.\");\n return;\n }\n\n try {\n if (connection.isClosed()) {\n LOGGER.warn(\"Connection is already closed.\");\n return;\n }\n connection.close();\n } catch (SQLException e) {\n LOGGER.error(\"Error closing the connection.\", e);\n }\n\n }",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//pass\r\n\t\t\t}\r\n\t\t}",
"public void closeConnection() {\n\t// If port is alread closed just return.\n\tif (!open) {\n\t return;\n\t}\n\n\t// Check to make sure sPort has reference to avoid a NPE.\n\tif (sPort != null) {\n\t try {\n\t\t// close the i/o streams.\n\t \tos.close();\n\t \tis.close();\n\t } catch (IOException e) {\n ezlink.info(\"closeConnection Exception(): \");\n ezlink.error(new Object(), e);\n\t\tSystem.err.println(e);\n\t }\n\n\t // Close the port.\n\t sPort.close();\n\n\t // Remove the ownership listener.\n\t portId.removePortOwnershipListener(this);\n\t}\n\n\topen = false;\n }",
"public static void closeConnection() throws SQLException, IOException, JSchException {\n PropertiesLoader loader = new PropertiesLoader();\n int localPort = Integer.parseInt(loader.loadProperty().getProperty(\"localPort\"));\n if (connection != null) {\n connection.close();\n }\n if (session != null) {\n session.delPortForwardingL(localPort);\n session.disconnect();\n }\n }",
"public void closeConnection() {\n //It's important to close the connection when you are done with it\n try {\n connection.close();\n DriverManager.getConnection(JDBC_URL + \";shutdown=true\"); // shut Derby down, See: https://db.apache.org/derby/papers/DerbyTut/embedded_intro.html#shutdown\n } catch (SQLException ignore) {\n LOGGER.log(Level.SEVERE, \"Unable to close DB connection due to error {0}\", ignore.getMessage());\n\n // Alternative: Cascade the original exception (or rewrap it as a more specific exception)\n // Here, we just log it \n }\n }",
"private void shutdown() {\n clientTUI.showMessage(\"Closing the connection...\");\n try {\n in.close();\n out.close();\n serverSock.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void closeConnection() {\n try {\n if ( clientSocket != null ) {\n clientSocket.close();\n }\n } catch ( IOException e ) {\n logger.error( \"Error closing sokcet to client \" + getId(), e );\n }\n }",
"private void quit() {\n try {\n toServer.writeInt(QUIT);\n doQuit();\n report(\"Client --> server: QUIT \");\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n this.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void closeConnection() {\n System.out.println(\"Closing connection\");\n\n try {\n reader.close();\n \n if (connectionSocket != null) {\n connectionSocket.close();\n connectionSocket = null;\n }\n System.out.println(\"Connection closed\");\n } catch (IOException e) {\n System.out.println(\"IOException at closeConnection()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at closeConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at closeConnection()\");\n System.out.println(e.toString());\n }\n }",
"public static void closeConnection()\n\t{\n\t\ttry\n\t\t{\n\t\t\tconnect.close();\n\t\t} catch (SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void closeSession() throws ConnectionException {\n\t\tif (!(stateMachine.getCurrent().getClass() == SessionValid.class)) {\n\t\t\tthrow new ConnectionException(\"Illegal connection state: \"\n\t\t\t\t\t+ stateMachine.getCurrent().getClass().getSimpleName());\n\t\t}\n\n\t\tstateMachine.doTransition(new CloseSession(managedSystemSessionId,\n\t\t\t\tmessageQueue.getSequenceNumber()));\n\t}",
"@Override\n public void close() {\n logger.info(\"Going to disconnect from the SQL server\");\n JDBCUtils.safeClose(connection);\n connection = null;\n super.close(); // Empty method call\n\n // Stop the container\n logger.info(\"Going to stop the SQL server\");\n postgreSQLContainer.stop();\n }",
"public void close() {\n if (conn != null) {\n try {\n conn.close();\n } catch (SQLException e) {\n logger.error(\"Failed to close the connection.\");\n }\n }\n }",
"private void closeConnection() {\n try {\n bufferedWriter.close();\n } catch (IOException e) {\n System.err.println(\"Cannot close connection to MS SQL DB\");\n e.printStackTrace();\n }\n System.out.println(\"Close connection to MS SQL DB\");\n }",
"public void close() {\n\n\t\tdebug();\n\n\t\tif (isDebug == true) {\n\t\t\tlog.debug(\"=== CLOSE === \");\n\t\t}\n\n\t\ttry {\n\n\t\t\tif (connection != null) {\n\n\t\t\t\tlog.debug(\"Antes Connection Close\");\n\t\t\t\tconnection.close();\n\t\t\t\tlog.debug(\"Pos Connection Close\");\n\t\t\t}\n\n\t\t\tif (m_dbConn != null) {\n\t\t\t\tm_dbConn.close();\n\t\t\t}\n\n\t\t\tif (isDebug == true) {\n\t\t\t\tlog.debug(\"Connection Close\");\n\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tlog.debug(\"ERRO Connection Close\");\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tconnection = null;\n\t\tm_dbConn = null;\n\n\t}",
"void close() throws Exception;",
"void close() throws Exception;",
"@Override\r\n\tpublic void closeConnection() {\n\t\t\r\n\t}",
"public void closeConn() {\n try {\n if (writer != null) {\n writer.close();\n }\n if (sockoutOs != null) {\n sockoutOs.close();\n }\n if (null != socket || !socket.isClosed()) {\n socket.close();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n\n }",
"public boolean close() {\n\t\t\n\t\t///\n\t\t/// declare local variables\n\t\t///\n\t\t\n\t\tboolean success = true;\t\t// holds whether or not connection was closed successfully\n\t\t\n\t\t// try to close the connection\n\t\ttry {\n\t\t\tconn.close();\n\t\t} catch (SQLException e) {\n\t\t\tsuccess = false;\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return whether or not the connection was closed successfully\n\t\treturn success;\n\t\t\n\t}",
"public void closeConnection() {\n try {\n con.close();\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n e.printStackTrace();\n }\n }",
"public void cleanup(){\n try{\n if (this._connection != null){\n this._connection.close ();\n }//end if\n }catch (SQLException e){\n // ignored.\n }//end try\n }",
"@Override\n\tpublic void close() {\n\t\tfinal Socket input = getSocket();\n\n\t\tif (input != null) {\n\t\t\tif (!input.isClosed()) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (final IOException e) {\n\t\t\t\t\t// we cannot do anything\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}"
] | [
"0.6997931",
"0.6966862",
"0.6946444",
"0.6897353",
"0.6885502",
"0.68624294",
"0.67199075",
"0.6699733",
"0.6665452",
"0.66496885",
"0.66430587",
"0.66383237",
"0.66259354",
"0.6600948",
"0.6587031",
"0.6543131",
"0.652401",
"0.6511298",
"0.6498658",
"0.64760566",
"0.6463485",
"0.6461877",
"0.64479834",
"0.64440167",
"0.6440318",
"0.6435406",
"0.6429979",
"0.6427499",
"0.6404961",
"0.6400232",
"0.6399653",
"0.6373856",
"0.63682574",
"0.6345465",
"0.63387895",
"0.63353646",
"0.6330813",
"0.6323668",
"0.63215214",
"0.6318833",
"0.63067216",
"0.62891406",
"0.628538",
"0.6281153",
"0.62767124",
"0.62724704",
"0.627154",
"0.6269108",
"0.62610614",
"0.6260219",
"0.623767",
"0.6235734",
"0.62264067",
"0.62262696",
"0.6220401",
"0.62180334",
"0.62169725",
"0.62123513",
"0.6209997",
"0.6199837",
"0.61991715",
"0.61985886",
"0.61951077",
"0.6185436",
"0.6173924",
"0.61708856",
"0.61708504",
"0.6167859",
"0.6149306",
"0.6134421",
"0.61269176",
"0.61189693",
"0.61179155",
"0.6115237",
"0.61125237",
"0.6110583",
"0.6106383",
"0.6106078",
"0.6103115",
"0.609974",
"0.6096811",
"0.6084619",
"0.6081047",
"0.6077393",
"0.6070142",
"0.6067564",
"0.6064642",
"0.60643256",
"0.6062941",
"0.6062455",
"0.6060016",
"0.60574746",
"0.6056719",
"0.60550094",
"0.60550094",
"0.60496724",
"0.6043313",
"0.6043111",
"0.60429657",
"0.6033509",
"0.6031872"
] | 0.0 | -1 |
analyse the incoming data | public String parseLine(String line) {
String[] temp = line.split(":");
if (temp[0].equalsIgnoreCase("user")) {
cmd = temp[0];
userName = temp[1];
} else if (temp[0].equalsIgnoreCase("play")) {
if (!playing) {
cmd = temp[0];
game = temp[1];
} else {
cmd = temp[0];
userGuess = temp[1];
}
} else if(temp[0].equalsIgnoreCase("quit")) {
System.out.println(temp[0]);
cmd = temp[0];
} else if (temp[0].equalsIgnoreCase("reset")) {
cmd = temp[0];
} else {
cmd = "invalid command";
}
return cmd;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void parseData() {\n\t\t\r\n\t}",
"private void extractData() {\n String[] info = request.split(\";\");\n actionCode = info[0];\n\n // if the code is 102, 103... then it has data attached\n List listOfCodes = Arrays.asList(\"102\", \"103\", \"104\", \"202\", \"203\");\n\n // extract data attached with the action code\n if (listOfCodes.contains(actionCode)) {\n data = info[1];\n }\n }",
"@Override\n\tpublic void processData() {\n\t\t\n\t}",
"private void verificaData() {\n\t\t\n\t}",
"@Override\n\tpublic void analyzeData(String data) throws Exception {\n\t\tGson gson = new Gson();\n\t\tUserInfo user = gson.fromJson(data, UserInfo.class);\n\t\tNetConst.SESSIONID = user.getSession_id();\n\t\tNetConst.UPTOKEN = user.getImage_token();\n\t\tNetConst.IMTOKEN = user.getMessage_token();\n\t\tRongImUtils.getInstance().connect(NetConst.IMTOKEN);\n\t\tlisntenr.onBaseDataLoaded(user);\n\t}",
"public void analyzeData(){\n\t\tlinewidth = rt.getValue(\"Mean\", 1) - rt.getValue(\"Mean\", 0);\n\t\tRMS_edge_roughness = Math.sqrt((Math.pow(rt.getValue(\"StdDev\", 1), 2) + Math.pow(rt.getValue(\"StdDev\", 0), 2))/2); // this is the correct form\n\t\tif(rt.getValue(\"Max\",1) - rt.getValue(\"Min\", 1) > rt.getValue(\"Max\", 0) - rt.getValue(\"Min\", 0)){\n\t\t\tpkpk_edge_roughness = rt.getValue(\"Max\", 1) – rt.getValue(\"Min\", 1);\n\t\t}\n\t\telse{\n\t\t\tpkpk_edge_roughness = (rt.getValue(\"Max\", 0) – rt.getValue(\"Min\", 0));\n\t\t}\n\t\treturn;\n\t}",
"public static void processGraphInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(1, cutPoints.get(0))));\n for (int j = 0; j < cutPoints.size(); j++) {\n\n if (j==cutPoints.size()-1){\n if(isNumeric(data.substring(cutPoints.get(j)+1,endOfLineIndex )))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j)+1,endOfLineIndex )));\n } else{\n if(isNumeric(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))))\n tempPPGWaveBuffer.add(Double.parseDouble(data.substring(cutPoints.get(j) + 1, cutPoints.get(j+1))));\n }\n\n }\n graphIn.obtainMessage(handlerState4, Integer.toString(tempSampleTime)).sendToTarget(); //Comment this part to run junit tests\n if (tempSampleTime != 0) {\n tempReceived = true;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n graphIn.obtainMessage(handlerState1, tempPPGWaveBuffer).sendToTarget(); //Comment this part to run junit tests\n } else {\n tempReceived = false;\n graphIn.obtainMessage(handlerState2, Boolean.toString(tempReceived)).sendToTarget(); //Comment this part to run junit tests\n }\n }",
"private void getIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"DOCTOR_ID\")\n && bundle.containsKey(\"DOCTOR_NAME\")\n && bundle.containsKey(\"CLINIC_ID\")\n && bundle.containsKey(\"CLINIC_NAME\")\n && bundle.containsKey(\"CLINIC_LATITUDE\")\n && bundle.containsKey(\"CLINIC_LONGITUDE\")\n && bundle.containsKey(\"CLINIC_ADDRESS\")) {\n DOCTOR_ID = bundle.getString(\"DOCTOR_ID\");\n DOCTOR_NAME = bundle.getString(\"DOCTOR_NAME\");\n CLINIC_ID = bundle.getString(\"CLINIC_ID\");\n CLINIC_NAME = bundle.getString(\"CLINIC_NAME\");\n CLINIC_LATITUDE = bundle.getDouble(\"CLINIC_LATITUDE\");\n CLINIC_LONGITUDE = bundle.getDouble(\"CLINIC_LONGITUDE\");\n CLINIC_ADDRESS = bundle.getString(\"CLINIC_ADDRESS\");\n\n if (DOCTOR_NAME != null) {\n txtDoctorName.setText(DOCTOR_NAME);\n }\n\n if (CLINIC_NAME != null) {\n txtClinicName.setText(CLINIC_NAME);\n }\n\n if (CLINIC_ADDRESS != null) {\n txtClinicAddress.setText(CLINIC_ADDRESS);\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Failed to get required info....\", Toast.LENGTH_SHORT).show();\n finish();\n }\n }",
"private void analyzeData(){\n input1 = ihd1.getOutput();\n input2 = ihd2.getOutput();\n\n output1 = (input1 > IHD_limit);\n output2 = (input2 > IHD_limit);\n }",
"private int handleData(byte[] input) throws IOException {\n\t\tByteBuffer buffer = ByteBuffer.wrap(input);\n\t\t//if data dosen't start with preagreed header, fail packet\n\t\tif( buffer.getInt() != Constants.HEADER) {\n\t\t\treturn 1;\n\t\t}\n\t\t//expand to handle different type of responses\n\t\tswitch(buffer.get()) {\n\t\t\tcase (byte) 0:\n\t\t\t\treturn 0;\n\t\t\tdefault:\n\t\t\t\treturn 1;\n\t\t}\n\t}",
"protected abstract boolean processData(Object data);",
"private static void collectProfilingData() throws ClassNotFoundException, IOException{\r\n\r\n //TODO - clean lists in each iteration (when data packet is received)\r\n List<MemoryMeasurement> memoryData;\r\n List<CPUmeasurement> cpuData;\r\n List<ThreadMeasurement> threadData;\r\n List<ClassMeasurement> classData;\r\n Map<String, TimeMeasurement> methodRunList;\r\n String message = null;\r\n\r\n do{\r\n message = (String)serverObjectInputStream.readObject();\r\n\r\n if(message.equals(\"DATA\")){\r\n System.out.println(\"Server: packet received: \" + message);\r\n\r\n ProfilingPacketType.deserializePacket();\r\n memoryData = ProfilingPacketType.memoryUsageList;\r\n //System.out.println(\"MemoryData: \" + memoryData);\r\n ProfilingMemoryPage.prepareMemoryData(memoryData);\r\n cpuData = ProfilingPacketType.cpuUsageList;\r\n ProfilingCPUPage.prepareData(cpuData);\r\n //printCpuData(cpuData);\r\n threadData = ProfilingPacketType.threadList;\r\n ProfilingThreadsPage.prepareData(threadData);\r\n //System.out.println(\"Received thread data: \" + threadData.size());\r\n classData = ProfilingPacketType.classUsageList;\r\n ProfilingClassesPage.prepareData(classData);\r\n //System.out.println(classData.size());\r\n methodRunList = ProfilingPacketType.methodTimeList;\r\n ProfilingMethodsPage.prepareData(methodRunList);\r\n //printMethodRuns(methodRunList);\r\n\r\n ProfilingOverviewPage.getProfilingData();\r\n ProfilingVMSummaryPage.collectVMData();\r\n\r\n }\r\n\r\n }while (!message.equals(Attributes.PROFILING_PACKET_MESSAGE_TERMINATE));\r\n throw new EOFException(\"Agent has finished it's job.\");\r\n }",
"private void processData(\n ApplicationEntranceTopologyQueryRequest request,\n LinkTopologyDTO applicationEntrancesTopology,\n ApplicationEntranceTopologyResponse applicationEntranceTopologyResponse) {\n Map<String, LinkNodeDTO> nodeMap = Maps.newHashMap();\n /* key:nodeId ,value: 访问到node的边 */\n Map<String, List<LinkEdgeDTO>> providerEdgeMap = Maps.newHashMap();\n /* key:nodeId ,value: 从node开始的边 */\n Map<String, List<LinkEdgeDTO>> callEdgeMap = Maps.newHashMap();\n /* key:applicationName ,value: managerName */\n Map<String, String> managerMap = Maps.newHashMap();\n /* key:applicationName ,value: 应用实例节点 */\n Map<String, List<ApplicationNodeDTO>> appNodeMap = Maps.newHashMap();\n\n // nodes\n List<LinkNodeDTO> nodes = applicationEntrancesTopology.getNodes();\n if (CollectionUtils.isNotEmpty(nodes)) {\n nodeMap = nodes.stream().collect(Collectors.toMap(LinkNodeDTO::getNodeId, self -> self));\n managerMap = this.getManagers(nodes);\n appNodeMap = this.getAppNodes(nodes);\n }\n\n // edges\n List<LinkEdgeDTO> edges = applicationEntrancesTopology.getEdges();\n if (CollectionUtils.isNotEmpty(edges)) {\n providerEdgeMap = edges.stream().collect(Collectors.groupingBy(LinkEdgeDTO::getTargetId));\n callEdgeMap = edges.stream().collect(Collectors.groupingBy(LinkEdgeDTO::getSourceId));\n }\n\n // 节点转换\n applicationEntranceTopologyResponse.setNodes(this.convertNodes(applicationEntrancesTopology, nodeMap,\n providerEdgeMap, callEdgeMap, managerMap, appNodeMap));\n // 边 转换\n applicationEntranceTopologyResponse.setEdges(this.convertEdges(applicationEntrancesTopology, nodeMap,\n providerEdgeMap, callEdgeMap, request, applicationEntranceTopologyResponse));\n\n // 异常转换\n applicationEntranceTopologyResponse.setExceptions(\n this.getExceptionsFromNodes(applicationEntranceTopologyResponse.getNodes()));\n }",
"void processData(float[] receiveData) {\r\n\t\tlogger.debug(\"verarbeite Daten\");\r\n\t\t// gibt empfangene Daten weiter\r\n\r\n\t\tlogger.debug(\"value processData:\" + Arrays.toString(receiveData));\r\n\t\tif (receiveData[0] == Sensor.DistNx.getNumber()) {\r\n\t\t\t// Dist-Nx\r\n\t\t\tlogger.info(\"DistNX-Werte: \" + receiveData[2]);\r\n\t\t\tdistNx.setDistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.LightSensorArray.getNumber()) {\r\n\t\t\t// LSA\r\n\t\t\tlsa.setLSA(Math.round(receiveData[1] - 1),\r\n\t\t\t\t\tMath.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDLinks.getNumber()) {\r\n\t\t\t// linker EOPD\r\n\t\t\teopdLeft.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.EOPDRechts.getNumber()) {\r\n\t\t\t// rechter EOPD\r\n\t\t\teopdRight.setEOPDdistance(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == Sensor.AbsoluteIMU.getNumber()) {\r\n\t\t\t// AbsIMU-ACG\r\n\t\t\tif (Math.round(receiveData[1]) >= 16) {\r\n\t\t\t\tabs_Imu.setAngle(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 16);\r\n\t\t\t} else {\r\n\t\t\t\tabs_Imu.setTiltData(Math.round(receiveData[2]),\r\n\t\t\t\t\t\tMath.round(receiveData[1]) - 11);\r\n\t\t\t}\r\n\r\n\t\t} else if (receiveData[0] == 6) {\r\n\t\t\t// Akkuladung\r\n\t\t\taccumulator.setMilliVolt(Math.round(receiveData[1]));\r\n\t\t} else if (receiveData[0] == 7) {\r\n\t\t\tlogger.debug(\"Genuegend Werte uebermittelt: \" + this);\r\n\t\t\tsensorReady = false;\r\n\t\t} else if (receiveData[0] == Sensor.IRThermalSensor.getNumber()) {\r\n\t\t\t// ThermalSensor\r\n\t\t\tthermal.setTemperature(Math.round(receiveData[2]));\r\n\t\t} else if (receiveData[0] == 9) {\r\n\t\t\tif (receiveData[1] == 1) {\r\n\t\t\t\t// TODO Reset Button gedrueckt; ggf. muss noch weiteres getan\r\n\t\t\t\t// werden\r\n\t\t\t\tinitializeProgram.renewNavigation();\r\n\t\t\t} else if (receiveData[1] == 2) {\r\n\t\t\t\tinitializeProgram.setProgramStarted();\r\n\t\t\t}\r\n\t\t} else if (receiveData[0] == 10) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 11) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 12) {\r\n\t\t\tsemaphore.down();\r\n\t\t} else if (receiveData[0] == 13) {\r\n\t\t\tsemaphore.down();\r\n\t\t\tsemaphore.down();\r\n\t\t} else {\r\n\r\n\t\t\t// System.out.println(\"process Data (no sensor) \" +\r\n\t\t\t// Arrays.toString(receiveData));\r\n\t\t\t// logger.error(\"process Data (no sensor) \"\r\n\t\t\t// + Arrays.toString(receiveData));\r\n\t\t}\r\n\r\n\t}",
"public void inputData(InputStream _in)throws Exception{\r\n\t\tsummary = sendReceive.ReadString(_in);\r\n\t\t\r\n\t\tstart\t= sendReceive.ReadLong(_in);\r\n\t\tend\t\t= sendReceive.ReadLong(_in);\r\n\t\t\r\n\t\tlocation= sendReceive.ReadString(_in);\r\n\t\talarm\t= sendReceive.ReadInt(_in);\r\n\t\tnote\t= sendReceive.ReadString(_in);\r\n\t\t\r\n\t\tallDay\t= sendReceive.ReadBoolean(_in);\r\n\r\n\t\tattendees = new String[sendReceive.ReadInt(_in)];\r\n\r\n\t\tfor(int i = 0;i < attendees.length;i++){\r\n\t\t\tattendees[i] = sendReceive.ReadString(_in);\r\n\t\t}\t\t\r\n\t\t\r\n\t\tfree_busy\t= _in.read();\r\n\t\tevent_class = _in.read();\r\n\t\trepeat_type\t= sendReceive.ReadString(_in);\r\n\t}",
"public void process(String analysisData) throws Exception;",
"@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }",
"void handleParsedRecord(SampleRecord record);",
"@Override\r\n\tprotected void parsePacket(byte[] data)\r\n\t\t\tthrows BeCommunicationDecodeException {\r\n\t\ttry {\r\n\t\t\tsuper.parsePacket(data);\r\n\r\n\t\t\tsimpleHiveAp = CacheMgmt.getInstance().getSimpleHiveAp(apMac);\r\n\t\t\tif (simpleHiveAp == null) {\r\n\t\t\t\tthrow new BeCommunicationDecodeException(\"Invalid apMac: (\" + apMac\r\n\t\t\t\t\t\t+ \"), Can't find corresponding data in cache.\");\r\n\t\t\t}\r\n\t\t\tHmDomain owner = CacheMgmt.getInstance().getCacheDomainById(\r\n\t\t\t\t\tsimpleHiveAp.getDomainId());\r\n\t\t\tString apName = simpleHiveAp.getHostname();\r\n\t\t\t\r\n\t\t\tByteBuffer buf = ByteBuffer.wrap(resultData);\r\n\t\t\t\r\n\t\t\tbuf.getShort(); //tlv number\r\n\t\t\tHmTimeStamp timeStamp = new HmTimeStamp(getMessageTimeStamp(), getMessageTimeZone());\r\n\t\t\tint ifIndex = 0;\r\n\t\t\tString ifName = \"\";\r\n\r\n\t\t\twhile (buf.hasRemaining()) {\r\n\r\n\t\t\t\tshort tlvType = buf.getShort();\r\n\t\t\t\tbuf.getShort(); //tlv length\r\n\t\t\t\tbuf.getShort(); //tlv version\r\n\t\t\t\tif (tlvType == TLVTYPE_RADIOINFO) {\r\n\t\t\t\t\tifIndex = buf.getInt();\r\n\t\t\t\t\tbyte len = buf.get();\r\n\t\t\t\t\tifName = AhDecoder.bytes2String(buf, len);\r\n\t\t\t\t} else if (tlvType == TLVTYPE_INTERFERENCESTATS) {\r\n\t\t\t\t\tAhInterferenceStats interferenceStats = new AhInterferenceStats();\r\n\t\t\t\t\tinterferenceStats.setApMac(apMac);\r\n\t\t\t\t\tinterferenceStats.setTimeStamp(timeStamp);\r\n\t\t\t\t\tinterferenceStats.setIfIndex(ifIndex);\r\n\t\t\t\t\tinterferenceStats.setIfName(ifName);\r\n\t\t\t\t\tinterferenceStats.setOwner(owner);\r\n\t\t\t\t\tinterferenceStats.setApName(apName);\r\n\r\n\t\t\t\t\tinterferenceStats.setChannelNumber((short)AhDecoder.byte2int(buf.get()));\r\n\t\t\t\t\tinterferenceStats.setAverageTXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setAverageRXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setAverageInterferenceCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setAverageNoiseFloor(buf.get());\r\n\t\t\t\t\tinterferenceStats.setShortTermTXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setShortTermRXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setShortTermInterferenceCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setShortTermNoiseFloor(buf.get());\r\n\t\t\t\t\tinterferenceStats.setSnapShotTXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setSnapShotRXCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setSnapShotInterferenceCU(buf.get());\r\n\t\t\t\t\tinterferenceStats.setSnapShotNoiseFloor(buf.get());\r\n\t\t\t\t\tinterferenceStats.setCrcError(buf.get());\r\n\t\t\t\t\tinterferenceStats.setInterferenceCUThreshold(buf.get());\r\n\t\t\t\t\tinterferenceStats.setCrcErrorRateThreshold(buf.get());\r\n\t\t\t\t\tinterferenceStats.setSeverity(buf.get());\r\n\t\t\t\t\t\r\n\t\t\t\t\tinterferenceStatsList.add(interferenceStats);\r\n\t\t\t\t} else if (tlvType == TLVTYPE_ACSPNEIGHBOR) {\r\n\t\t\t\t\tAhACSPNeighbor neighbor = new AhACSPNeighbor();\r\n\t\t\t\t\tneighbor.setApMac(apMac);\r\n\t\t\t\t\tneighbor.setTimeStamp(timeStamp);\r\n\t\t\t\t\tneighbor.setIfIndex(ifIndex);\r\n\t\t\t\t\tneighbor.setOwner(owner);\r\n\r\n\t\t\t\t\tneighbor.setBssid(AhDecoder.bytes2hex(buf, 6).toUpperCase());\r\n\t\t\t\t\tneighbor.setNeighborMac(AhDecoder.bytes2hex(buf, 6).toUpperCase());\r\n\t\t\t\t\tneighbor.setNeighborRadioMac(AhDecoder.bytes2hex(buf, 6).toUpperCase());\r\n\t\t\t\t\tneighbor.setLastSeen(AhDecoder.int2long(buf.getInt()) * 1000);\r\n\t\t\t\t\tneighbor.setChannelNumber(AhDecoder.byte2int(buf.get()));\r\n\t\t\t\t\tneighbor.setTxPower(buf.get());\r\n\t\t\t\t\tneighbor.setRssi(buf.get());\r\n\t\t\t\t\tbyte len = buf.get();\r\n\t\t\t\t\tneighbor.setSsid(AhDecoder.bytes2String(buf, AhDecoder.byte2int(len)));\r\n\r\n\t\t\t\t\tneighborList.add(neighbor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new BeCommunicationDecodeException(\r\n\t\t\t\t\t\"BeInterferenceMapResultEvent.parsePacket() catch exception\", e);\r\n\t\t}\r\n\t}",
"private void processInput() {\r\n\t\ttry {\r\n\t\t\thandleInput(readLine());\r\n\t\t} catch (WrongFormatException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void handleData() {\n\t\tList<UserAction> commentList = null;\n\t\tcommentList = xiaoji.commentTimelineManager().getList(uid, offset, limit);\n\t\tif (commentList != null && commentList.size() != 0) {\n\n Set<String> ongoingAnouymousContestIds = Collections.emptySet();\n ongoingAnouymousContestIds = ContestManager.getOngoingAnouymousContestIds();\n\n\t\t\tbyteData = CommonServiceUtils.feedListToProtocolBuffer(commentList, 0, true, ongoingAnouymousContestIds);\n\t\t}\n\t\tif (byteData == null) {\n\t\t\tbyteData = CommonServiceUtils.protocolBufferNoData();\n\t\t}\n\t}",
"public String[] processData(String raw_data, int type){\n String[] values;\n Pattern pattern = null;\n raw_data = raw_data.trim();\n // Use \"|\" to separate data\n if (type == 1){\n pattern = Pattern.compile(\"\\\\|\");\n }else if (type == 0){\n // Use whitespace to separate data\n pattern = Pattern.compile(\"\\\\s+\");\n }else {\n System.out.println(\"Please use correct type\");\n System.exit(1);\n }\n values = pattern.split(raw_data);\n // Delete whitespace\n if (values != null) {\n for (int i = 0 ; i < values.length ; i++){\n values[i] = values[i].trim();\n if (values[i].equals(\"\")){\n System.out.println(\"File is missing data\");\n System.exit(1);\n }\n }\n }\n return values;\n }",
"public void startRetriveDataInfo() {\n\t\t\tif (isLog4jEnabled) {\n\t\t\t\n stringBuffer.append(TEXT_2);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_3);\n \n\t\t\t}\n\t\t}",
"private void processDeviceStream(SelectionKey key, byte[] data) throws IOException{\n\t\tSocketChannel channel = (SocketChannel)key.channel();\n\t\tString sDeviceID = \"\";\n\t\t// Initial call where the device sends it's IMEI# - Sarat\n\t\tif ((data.length >= 10) && (data.length <= 17)) {\n\t\t\tint ii = 0;\n\t\t\tfor (byte b : data)\n\t\t\t{\n\t\t\t\tif (ii > 1) { // skipping first 2 bytes that defines the IMEI length. - Sarat\n\t\t\t\t\tchar c = (char)b;\n\t\t\t\t\tsDeviceID = sDeviceID + c;\n\t\t\t\t}\n\t\t\t\tii++;\n\t\t\t}\n\t\t\t// printing the IMEI #. - Sarat\n\t\t\tSystem.out.println(\"IMEI#: \"+sDeviceID);\n\n\t\t\tLinkedList<String> lstDevice = new LinkedList<String>();\n\t\t\tlstDevice.add(sDeviceID);\n\t\t\tdataTracking.put(channel, lstDevice);\n\n\t\t\t// send message to module that handshake is successful - Sarat\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, true);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t// second call post handshake where the device sends the actual data. - Sarat\n\t\t}else if(data.length > 17){\n\t\t\tmClientStatus.put(channel, System.currentTimeMillis());\n\t\t\tList<?> lst = (List<?>)dataTracking.get(channel);\n\t\t\tif (lst.size() > 0)\n\t\t\t{\n\t\t\t\t//Saving data to database\n\t\t\t\tsDeviceID = lst.get(0).toString();\n\t\t\t\tDeviceState.put(channel, sDeviceID);\n\n\t\t\t\t//String sData = org.bson.internal.Base64.encode(data);\n\n\t\t\t\t// printing the data after it has been received - Sarat\n\t\t\t\tStringBuilder deviceData = byteToStringBuilder(data);\n\t\t\t\tSystem.out.println(\" Data received from device : \"+deviceData);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t//publish device IMEI and packet data to Nats Server\n\t\t\t\t\tnatsPublisher.publishMessage(sDeviceID, deviceData);\n\t\t\t\t} catch(Exception nexp) {\n\t\t\t\t\tnexp.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\t//sending response to device after processing the AVL data. - Sarat\n\t\t\t\ttry {\n\t\t\t\t\tsendDataReceptionCompleteMessage(key, data);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//storing late timestamp of device\n\t\t\t\tDeviceLastTimeStamp.put(sDeviceID, System.currentTimeMillis());\n\n\t\t\t}else{\n\t\t\t\t// data not good.\n\t\t\t\ttry {\n\t\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t\t}\n\t\t\t}\n\t\t}else{\n\t\t\t// data not good.\n\t\t\ttry {\n\t\t\t\tsendDeviceHandshake(key, false);\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new IOException(\"Bad data received\");\n\t\t\t}\n\t\t}\n\t}",
"public void dataReceived(String s) {\n dataParsed(TwitchJSONParser.streamJSONtoArrayList(s));\n }",
"@Override\n\tpublic void readData() {\n\t\t\n\t}",
"protected void parsePacket(byte[] data)\r\n\t\t\tthrows BeCommunicationDecodeException {\r\n\t\tsuper.parsePacket(data);\r\n\t\t\r\n\t\t// it's infoData is empty\r\n\t}",
"void decodeAndAnalyzeData(Intent x)\n {\n if(x.getExtras()==null)\n return;\n N=x.getIntExtra(\"N\",0);\n if(N==0)\n return;\n Names=new String[6];\n for(int i=0;i<N;i++)\n Names[i]=x.getStringExtra(Integer.toString(i));\n int n=x.getIntExtra(\"n\",0);\n if(n==0)\n return;\n Paid=new Double[6];\n Used=new Double[6];\n Balance=new Double[6];\n for(int i=0;i<6;i++)\n {\n Paid[i]=0d;\n Used[i]=0d;\n Balance[i]=0d;\n }\n for(int i=0;i<n;i++)\n {\n double _price = x.getDoubleExtra(\"iP\"+String.format(\"%03d\", i),0);\n if(_price==-0.01)\n _price=0;\n int _users = x.getIntExtra(\"iU\"+String.format(\"%03d\", i),0);\n String _buyer = x.getStringExtra(\"iB\"+String.format(\"%03d\", i));\n String _name = x.getStringExtra(\"iN\"+String.format(\"%03d\", i));\n int uid=findUserId(_buyer);\n if(uid==-1)\n continue;\n Paid[uid]+=_price;\n boolean[] c = new boolean[6];\n for (int j = 0; j < 6; j++)\n c[j] = (_users % Math.pow(2, j + 1)) >= Math.pow(2, j);\n int m=0;\n for(int j=0;j<6;j++)\n if(c[j])\n m++;\n if(m==0)\n {\n m=1;\n c[uid]=true;\n }\n double up=_price/m;\n for(int j=0;j<6;j++)\n if(c[j])\n Used[j]+=up;\n\n }\n for(int j=0;j<6;j++)\n Balance[j]=Paid[j]-Used[j];\n// //Checksum TODO\n }",
"private boolean handleData(String serverMessage){\r\n\t\t// Separating the message STATUS + TOKEN\r\n\t\tString[] messageParts = serverMessage.split(SEPARATOR);\r\n\r\n\t\t// Get status code from message\r\n\t\tint error = Integer.parseInt(messageParts[0]);\r\n\r\n\t\t//Process status\r\n\t\tswitch (error) {\r\n\t\tcase REQUEST_OK:\r\n\r\n\t\t\t// Status OK process the data\r\n\t\t\thanleOkData(messageParts);\r\n\t\t\treturn true;\r\n\r\n\t\tcase INCORRECT_REQUEST_FORMAT:\r\n\r\n\t\t\tSystem.err.println(\"Oups! \\nSomethin went wrong!\\n Request format was invalid\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase INCORRECT_USER_OR_PASSWOROD:\r\n\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Username or password is incorrect!\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tbreak;\t\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private void validateData() {\n }",
"public void processData() {\n\t\t SamReader sfr = SamReaderFactory.makeDefault().validationStringency(ValidationStringency.LENIENT).open(this.inputFile);\n\t\t \n\t\t\t\n\t\t\t//Set up file writer\n\t\t SAMFileWriterFactory sfwf = new SAMFileWriterFactory();\n\t\t sfwf.setCreateIndex(true);\n\t\t SAMFileWriter sfw = sfwf.makeSAMOrBAMWriter(sfr.getFileHeader(), false, this.outputFile);\n\t\t \n\t\t \n\t\t\t\n\t\t\t\n\t\t\t//counters\n\t\t\tint totalReads = 0;\n\t\t\tint trimmedReads = 0;\n\t\t\tint droppedReads = 0;\n\t\t\tint dropTrimReads = 0;\n\t\t\tint dropMmReads = 0;\n\t\t\t\n\t\t\t//Containers\n\t\t\tHashSet<String> notFound = new HashSet<String>();\n\t\t\tHashMap<String, SAMRecord> mateList = new HashMap<String,SAMRecord>();\n\t\t\tHashSet<String> removedList = new HashSet<String>();\n\t\t\tHashMap<String,SAMRecord> editedList = new HashMap<String,SAMRecord>();\n\t\t\t\n\t\t\tfor (SAMRecord sr: sfr) {\n\t\t\t\t//Messaging\n\t\t\t\tif (totalReads % 1000000 == 0 && totalReads != 0) {\n\t\t\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Currently storing mates for %d reads.\",totalReads,trimmedReads,droppedReads,mateList.size()));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ttotalReads += 1;\n\t\t\t\t\n\t\t\t\tString keyToCheck = sr.getReadName() + \":\" + String.valueOf(sr.getIntegerAttribute(\"HI\"));\n\t\t\t\n\t\t\t\t//Make sure chromsome is available\n\t\t\t\tString chrom = sr.getReferenceName();\n\t\t\t\tif (!this.refHash.containsKey(chrom)) {\n\t\t\t\t\tif (!notFound.contains(chrom)) {\n\t\t\t\t\t\tnotFound.add(chrom);\n\t\t\t\t\t\tMisc.printErrAndExit(String.format(\"Chromosome %s not found in reference file, skipping trimming step\", chrom));\n\t\t\t\t\t}\n\t\t\t\t} else if (!sr.getReadUnmappedFlag()) {\n\t\t\t\t\tString refSeq = null;\n\t\t\t\t\tString obsSeq = null;\n\t\t\t\t\tList<CigarElement> cigar = null;\n\t\t\t\t\t\n\t\t\t\t\t//Get necessary sequence information depending on orientation\n\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\trefSeq = this.revComp(this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd()));\n\t\t\t\t\t\tobsSeq = this.revComp(sr.getReadString());\n\t\t\t\t\t\tcigar = this.reverseCigar(sr.getCigar().getCigarElements());\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\trefSeq = this.refHash.get(chrom).substring(sr.getAlignmentStart()-1,sr.getAlignmentEnd());\n\t\t\t\t\t\tobsSeq = sr.getReadString();\n\t\t\t\t\t\tcigar = sr.getCigar().getCigarElements();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//Get alignments\n\t\t\t\t\tString[] alns = this.createAlignmentStrings(cigar, refSeq, obsSeq, totalReads);\n\t\t\t\t\t\n\t\t\t\t\t//Identify Trim Point\n\t\t\t\t\tint idx = this.identifyTrimPoint(alns,sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\n\t\t\t\t\t//Check error rate\n\t\t\t\t\tboolean mmPassed = false;\n\t\t\t\t\tif (mmMode) {\n\t\t\t\t\t\tmmPassed = this.isPoorQuality(alns, sr.getReadNegativeStrandFlag(), idx);\n\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\t//Create new cigar string\n\t\t\t\t\tif (idx < minLength || mmPassed) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tsr.setAlignmentStart(0);\n\t\t\t\t\t\tsr.setReadUnmappedFlag(true);\n\t\t\t\t\t\tsr.setProperPairFlag(false);\n\t\t\t\t\t\tsr.setReferenceIndex(-1);\n\t\t\t\t\t\tsr.setMappingQuality(0);\n\t\t\t\t\t\tsr.setNotPrimaryAlignmentFlag(false);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMateUnmapped(mateList.get(keyToCheck)));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tremovedList.add(keyToCheck);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tdroppedReads += 1;\n\t\t\t\t\t\tif (idx < minLength) {\n\t\t\t\t\t\t\tdropTrimReads += 1;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tdropMmReads += 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (idx+1 != alns[0].length()) {\n\t\t\t\t\t\ttrimmedReads++;\n\t\t\t\t\t\tCigar oldCig = sr.getCigar();\n\t\t\t\t\t\tCigar newCig = this.createNewCigar(alns, cigar, idx, sr.getReadNegativeStrandFlag());\n\t\t\t\t\t\tsr.setCigar(newCig);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadNegativeStrandFlag()) {\n\t\t\t\t\t\t\tint newStart = this.determineStart(oldCig, newCig, sr.getAlignmentStart());\n\t\t\t\t\t\t\tsr.setAlignmentStart(newStart);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (this.verbose) {\n\t\t\t\t\t\t\tthis.printAlignments(sr, oldCig, alns, idx);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\t\tmateList.put(keyToCheck, this.changeMatePos(mateList.get(keyToCheck),sr.getAlignmentStart()));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\teditedList.put(keyToCheck,sr);\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\n\t\t\t\t//System.out.println(sr.getReadName());\n\t\t\t\tif (sr.getReadPairedFlag() && !sr.getMateUnmappedFlag()) {\n\t\t\t\t\t//String rn = sr.getReadName();\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tif (editedList.containsKey(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMatePos(sr,editedList.get(keyToCheck).getAlignmentStart());\n\t\t\t\t\t\t\teditedList.remove(keyToCheck);\n\t\t\t\t\t\t} else if (removedList.contains(keyToCheck)) {\n\t\t\t\t\t\t\tsr = this.changeMateUnmapped(sr);\n\t\t\t\t\t\t\tremovedList.remove(keyToCheck);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\t\tsfw.addAlignment(mateList.get(keyToCheck));\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmateList.put(keyToCheck, sr);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsfw.addAlignment(sr);\n\t\t\t\t\tif (mateList.containsKey(keyToCheck)) {\n\t\t\t\t\t\tmateList.remove(keyToCheck);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(String.format(\"Finished processing %d reads. %d were trimmed, %d were set as unmapped. Of the unmapped, %d were too short and %d had too many mismatches. Currently storing mates for %d reads.\",\n\t\t\t\t\ttotalReads,trimmedReads,droppedReads,dropTrimReads, dropMmReads, mateList.size()));\n\t\t\tSystem.out.println(String.format(\"Reads left in hash: %d. Writing to disk.\",mateList.size()));\n\t\t\tfor (SAMRecord sr2: mateList.values()) {\n\t\t\t\tsfw.addAlignment(sr2);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tsfw.close();\n\t\t\ttry {\n\t\t\t\tsfr.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\t\t\n\t}",
"protected boolean transformIncomingData() {\r\n\t\tboolean rB=false;\r\n\t\tArrayList<String> targetStruc ;\r\n\t\t\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (transformationModelImported == false){\r\n\t\t\t\testablishTransformationModel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// soappTransform.requiredVariables\r\n\t\t\tif (transformationsExecuted == false){\r\n\t\t\t\texecuteTransformationModel();\r\n\t\t\t}\r\n\t\t\trB = transformationModelImported && transformationsExecuted ;\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn rB;\r\n\t}",
"public void beginListenForData() {\n stopWorker = false;\n readBufferPosition = 0;\n try {\n inStream = btSocket.getInputStream();\n } catch (IOException e) {\n Log.d(TAG, \"Bug while reading inStream\", e);\n }\n Thread workerThread = new Thread(new Runnable() {\n public void run() {\n while (!Thread.currentThread().isInterrupted() && !stopWorker) {\n try {\n int bytesAvailable = inStream.available();\n if (bytesAvailable > 0) {\n byte[] packetBytes = new byte[bytesAvailable];\n inStream.read(packetBytes);\n for (int i = 0; i < bytesAvailable; i++) {\n // Log.d(TAG, \" 345 i= \" + i);\n byte b = packetBytes[i];\n if (b == delimiter) {\n byte[] encodedBytes = new byte[readBufferPosition];\n System.arraycopy(readBuffer, 0,\n encodedBytes, 0,\n encodedBytes.length);\n final String data = new String(\n encodedBytes, \"US-ASCII\");\n readBufferPosition = 0;\n handler.post(new Runnable() {\n public void run() {\n Log.d(TAG, \" M250 ingelezen data= \" + data);\n ProcesInput(data); // verwerk de input\n }\n });\n } else {\n readBuffer[readBufferPosition++] = b;\n }\n }\n } // einde bytesavalable > 0\n } catch (IOException ex) {\n stopWorker = true;\n }\n }\n }\n });\n workerThread.start();\n }",
"public void processStreamInput() {\n }",
"private void collectData() {\n this.collectContest();\n this.collectProblems();\n this.collectPreCollegeParticipants();\n this.collectObservers();\n }",
"private void process () {\r\n\r\n ArrayList<String> anomaly;\r\n ArrayList<DataInfo> tmp = new ArrayList<>();\r\n int appState, screenState, screenOrientation, closeToObject, opID;\r\n long permissionCount;\r\n double scanDuration;\r\n String packageName, permission, accessTime;\r\n\r\n // get the data in the given scope (from offset, limit rows)\r\n Cursor cursor = sqliteDBHelper.get_data(\"SELECT \" + SqliteDBStructure.PACKAGE_NAME + \", \"\r\n + SqliteDBStructure.PERMISSION + \", \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \", \"\r\n + SqliteDBStructure.APP_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_STATE + \", \"\r\n + SqliteDBStructure.SCREEN_ORIENTATION + \", \"\r\n + SqliteDBStructure.CLOSE_TO_OBJECT\r\n + \" FROM \" + SqliteDBStructure.DATA_AGGREGATE\r\n + \" JOIN \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \" ON \"\r\n + SqliteDBStructure.DATA_AGGREGATE + \".\" + SqliteDBStructure.ACCESS_TIME + \" = \" + SqliteDBStructure.INFO_AT_ACCESSTIME + \".\" + SqliteDBStructure.ACCESS_TIME\r\n + \" LIMIT \" + limit + \" OFFSET \" + offset);\r\n\r\n try {\r\n if (cursor != null) {\r\n cursor.moveToFirst();\r\n\r\n while (!cursor.isAfterLast()) {\r\n packageName = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.PACKAGE_NAME));\r\n opID = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.PERMISSION));\r\n permission = Permission.opIDToName(opID);\r\n accessTime = cursor.getString(cursor.getColumnIndexOrThrow(SqliteDBStructure.ACCESS_TIME));\r\n appState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.APP_STATE));\r\n screenState = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_STATE));\r\n screenOrientation = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.SCREEN_ORIENTATION));\r\n closeToObject = cursor.getInt(cursor.getColumnIndexOrThrow(SqliteDBStructure.CLOSE_TO_OBJECT));\r\n\r\n permissionCount = DatabaseUtils.longForQuery(sqliteDBHelper.getReadableDatabase(), \"SELECT COUNT(*) FROM \" + SqliteDBStructure.DATA_AGGREGATE + \" WHERE \" + SqliteDBStructure.PACKAGE_NAME + \" = '\" + packageName + \"' \" + \" AND \" + SqliteDBStructure.PERMISSION + \" = '\" + opID + \"';\", null);\r\n\r\n //Scan duration in Minutes\r\n scanDuration = (((double) stop_scan_time.getTime() + (double) start_scan_time.getTime()) / 1000 )/ 60;\r\n //check for anomaly by ruleset class\r\n anomaly = RuleSet.checkForAnomaly(packageName, permission, permissionCount, appState, screenState, screenOrientation, closeToObject, scanDuration, context);\r\n\r\n //Send data to server or save it locally, if no valid internet connection is available\r\n if (networking) {\r\n sendRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n MyClient.POST_Anomaly(packageName, permission, anomaly.get(1), \"0\");\r\n } else {\r\n saveRawData(packageName, permission, accessTime, appState, screenState, screenOrientation, closeToObject);\r\n if (anomaly.get(0).equals(\"1\"))\r\n saveAnomaliesImage(packageName, permission, anomaly.get(1), 0);\r\n }\r\n\r\n // create a info object which holds all the necessary information about that data block and store it temporarily in a list\r\n DataInfo info = new DataInfo(packageName, Permission.opIDToDescription(opID), accessTime, permissionCount, anomaly.get(0), anomaly.get(1), scanTime, 0);\r\n tmp.add(info);\r\n\r\n // should the size of the temporary list exceeds MaxBatchSize, write list to the local DB and clear the temp list afterwards \r\n // technically this cannot happen but we are working with threads here so better be safe than sorry\r\n // temp list should not be to big, because we have have to hold task amount of temp list, with each containing around MaxBatchSize entries, in memory at the same time\r\n if (tmp.size() > MaxBatchSize) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n\r\n cursor.moveToNext();\r\n }\r\n\r\n }\r\n } finally {\r\n if (cursor != null) {\r\n cursor.close();\r\n }\r\n }\r\n\r\n // write the data stored in the temp list to the local DB \r\n if (tmp.size() > 0) {\r\n bulkInsertIntoDataAnalyzing(tmp);\r\n tmp.clear();\r\n }\r\n // inform the progress dialog that a task has been finished\r\n updateProgressDialog();\r\n // decrease the amount of ongoing tasks by 1\r\n decreaseTasks();\r\n }",
"@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }",
"public static void processVariablesInformation () {\n\n for (int i = 0; i < data.length(); i++) {\n if (data.charAt(i) == ',')\n cutPoints.add(i);\n }\n\n if (cutPoints.size() == numberOfVariablesReceived-1) {\n\n if(isNumeric(data.substring(1, cutPoints.get(0))))\n oxygenValue = data.substring(1, cutPoints.get(0));\n\n if(isNumeric(data.substring(cutPoints.get(0) + 1, cutPoints.get(1))))\n heartRateValue = data.substring(cutPoints.get(0) + 1, cutPoints.get(1));\n\n if(isNumeric(data.substring(cutPoints.get(1) + 1, cutPoints.get(2))))\n stressValue = data.substring(cutPoints.get(1) + 1, cutPoints.get(2));\n\n if(isNumeric(data.substring(cutPoints.get(2) + 1, endOfLineIndex)))\n tempSampleTime = Integer.parseInt(data.substring(cutPoints.get(2) + 1, endOfLineIndex));\n }\n if (Integer.parseInt(heartRateValue) > 0)\n integerbpm = sixtyMillis / Integer.parseInt(heartRateValue);\n else\n integerbpm = INFINITE;\n\n // Comment this part for junit tests\n if (integerbpm >= 0) {\n heartBeatAnim.setDuration(integerbpm);\n heartBeatAnim.start();\n }\n oxygenLevel.setText(oxygenValue + \"%\");\n heartRate.setText(\" HR = \" + heartRateValue + \"BPM\");\n stressLabel.setText(\" Stress= \" + stressValue + \"%\");\n stressBar.setProgress(Integer.parseInt(stressValue));\n oxygenBar.setProgress(Integer.parseInt(oxygenValue));\n\n if (Integer.parseInt(oxygenValue) < 95 || Integer.parseInt(heartRateValue) < 60 || Integer.parseInt(heartRateValue) > 120) {\n attentionImage.setVisibility(View.VISIBLE);\n attentionLabel.setVisibility(View.VISIBLE);\n\n if (sound == true) {\n final ToneGenerator tg = new ToneGenerator(AudioManager.STREAM_NOTIFICATION, 100);\n tg.startTone(ToneGenerator.TONE_CDMA_PIP);\n }\n } else {\n attentionImage.setVisibility(View.INVISIBLE);\n attentionLabel.setVisibility(View.INVISIBLE);\n }\n // until here\n }",
"public void handleIncoming() {\n\t\t// parse the packet payload\n\t\tPair<Packet,Integer> pp = fwdr.receivePkt();\n\t\tPacket p = pp.left; int lnk = pp.right;\n\n\t\tString[] lines = p.payload.split(\"\\n\");\n\t\tif (!lines[0].equals(\"RPv0\")) return;\n\n\t\tString[] chunks = lines[1].split(\":\");\n\t\tif (!chunks[0].equals(\"type\")) return;\n\t\tString type = chunks[1].trim();\n\t\t\n\t\t// if it's an route advert, call handleAdvert\n\t\tif (type.equals(\"advert\")){\n\t\t\thandleAdvert(lines, lnk);\n\t\t}\n\t\t// if it's an link failure advert, call handleFailureAdvert\n\t\tif (type.equals(\"fadvert\")){\n\t\t\thandleFailureAdvert(lines, lnk);\n\t\t}\n\t\t// if it's a hello, echo it back\n\t\tif (type.equals(\"hello\")){\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timestamp = chunks[1].trim();\n\t\t\tp.payload = String.format(\"RPv0\\ntype: echo\\n\"\n\t\t\t\t\t+ \"timestamp: %s \\n\", timestamp);\n\t\t\tfwdr.sendPkt(p, lnk);\n\t\t}\n\t\t// else it's a reply to a hello packet\n\t\t// use timestamp to determine round-trip delay\n\t\t// use this to update the link cost using exponential\n\t\t// weighted moving average method\n\t\t// also, update link cost statistics\n\t\t// also, set gotReply to true\n\t\telse {\n\t\t\tchunks = lines[2].split(\":\");\n\t\t\tif (!chunks[0].equals(\"timestamp\")) return;\n\t\t\tString timeString = chunks[1].trim();\n\t\t\tdouble timestamp = Double.parseDouble(timeString);\n\t\t\tdouble rtDelay = now - timestamp;\n\n\t\t\tLinkInfo link = lnkVec.get(lnk);\n\t\t\tlink.helloState = 3;\n\t\t\tlink.cost = rtDelay/2;\n\t\t\tRoute rt = new Route();\n\t\t\trt.outLink = lnk;\n\t\t\tboolean match = false;\n\t\t\tfor (Route rte : rteTbl){\n\t\t\t\tif (rte.outLink == lnk){\n\t\t\t\t\trt = rte;\n\t\t\t\t\tmatch = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\t\t\n\t\t\tRoute newRt = rt;\n\t\t\tlink.count = 0;\n\t\t\tlink.totalCost = 0;\n\t\t\tfor (LinkInfo l : lnkVec){\n\t\t\t\tif(l.helloState != 0){\n\t\t\t\t\tlink.count++;\n\t\t\t\t\tlink.totalCost += l.cost;\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewRt.cost = link.cost;\n\t\t\tif (updateRoute(rt,newRt)){\n\t\t\t\tlink.cost = rt.cost;\n\t\t\t}\n\t\t\tif (link.cost > link.maxCost){\n\t\t\t\tlink.maxCost = link.cost;\n\t\t\t}\n\t\t\tif (link.cost < link.minCost){\n\t\t\t\tlink.minCost = link.cost;\n\t\t\t}\n\t\t\tlink.gotReply = true;\n\t\t\tlnkVec.set(lnk, link);\n\t\t}\n\n\t}",
"@Override\n public void processData(ProgramInput input)\n throws IOException, InterruptedException, RESTClientException {\n AirlyAPIClient AirlyAPI = new AirlyAPIClient(input.getAPIKey());\n MapPoint data;\n if(input.getSensorId() == null)\n data = AirlyAPI.getMeasurementsForMapPoint(input.getLatitude(), input.getLongitude());\n else\n data = AirlyAPI.getMeasurementsFromSpecificSensor(input.getSensorId());\n if(isObjectEmpty(data)) notifyViews(\"EmptyObject\", Boolean.TRUE);\n else notifyViews(\"EmptyObject\", Boolean.FALSE);\n notifyViews(\"SensorData\", data);\n if(input.isHistory()) notifyViews(\"HistoryMode\", true);\n else notifyViews(\"HistoryMode\", false);\n }",
"protected void inboundDataReceived(ReadableBuffer frame) {\n Preconditions.checkNotNull(frame, \"frame\");\n boolean needToCloseFrame = true;\n try {\n if (inboundPhase() == Phase.STATUS) {\n return;\n }\n if (inboundPhase() == Phase.HEADERS) {\n // Have not received headers yet so error\n inboundTransportError(Status.INTERNAL\n .withDescription(\"headers not received before payload\"), new Metadata());\n return;\n }\n inboundPhase(Phase.MESSAGE);\n\n needToCloseFrame = false;\n deframe(frame, false);\n } finally {\n if (needToCloseFrame) {\n frame.close();\n }\n }\n }",
"private boolean parseInput(byte[] input) {\r\n\t\tint p = 2;\t// pointer to first relevant character in input array\r\n\t\t// at least 13 bytes\r\n\t\tif(input.length > 12 && input.length < 500) {\r\n\t\t\tif(!(input[0] == (byte) 'A' && input[1] == (byte) '4')) return true;\r\n\t\t\t\r\n\t\t\tint checkSum = getByte(input[p]);\r\n\t\t\tif(debug) System.out.println(\"checkSum:\\t\\t\"+checkSum);\r\n\t\t\t\r\n\t\t\tint dataLength = getByte(input[p+1]) + ( getByte(input[p+2]) << 8 );\r\n\t\t\tif(debug) System.out.println(\"dataLength:\\t\"+dataLength); \r\n\t\t\t\r\n\t\t\t// ignore weird packets (usually 1st)\r\n\t\t\tif(dataLength > 1000) {\r\n\t\t\t\tif(debug) System.out.println();\r\n\t\t\t\treturn true;\t// return to clean out buffer\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint invDataLength = getByte(input[p+3]) + ( getByte(input[p+4]) << 8 );\r\n\t\t int check = ~invDataLength & 0xff;\r\n\t\t // TODO inverse check only works for 1-byte numbers \r\n\t\t\t\r\n\t\t int timestampLow = getByte(input[p+5]);\r\n\t\t int timestampSubseconds = getByte(input[p+6]) + ( getByte(input[p+7]) << 8 );\r\n\t\t float subseconds = timestampSubseconds / 65535.0f;\r\n\t\t if(debug) System.out.println(\"timestamp:\\t\\t\"+timestampLow+ \" + \"+ PApplet.nf(subseconds,1,2));\r\n\t\t \r\n\t\t int sequenceNo = getByte(input[p+8]);\r\n\t\t if(debug) System.out.println(\"sequenceNo:\\t\"+sequenceNo);\r\n\t\t\r\n\t\t byte[] data; \r\n\t\t try {\r\n\t\t data = PApplet.subset(input, p+9, dataLength);\r\n\t\t } catch (Exception e) {\r\n\t\t if(debug) System.out.println(\"ERROR: array not long enough for dataLength variable\");\r\n\t\t return false;\r\n\t\t }\r\n\t\t \r\n\t\t int dataType = getByte(data[0]);\r\n\t\t String dataTypeStr = getDataType(dataType);\r\n\t\t if(debug) System.out.println(\"dataType:\\t\\t\"+dataType+ \" (\"+dataTypeStr+\")\");\r\n\t\t \r\n\t\t int sum = 0;\r\n\t\t for(int i=0; i<data.length; i++) {\r\n\t\t sum+= getByte(data[i]);\r\n\t\t }\r\n\t\t if(debug) System.out.print(\"sum:\\t\\t\");\r\n\t\t if((sum%256) == checkSum) {\r\n\t\t \tif(debug) System.out.println(\"VALID\");\r\n\t\t } else {\r\n\t\t \tif(debug) System.out.println(\"SUM ERROR\");\r\n\t\t \treturn true;\t// return to clear out buffer\r\n\t\t }\r\n\t\t \r\n\t\t if(debug) System.out.print(\"data:\\t\\t\");\r\n\t\t for(int i=0; i<data.length; i++) {\r\n\t\t if(debug) System.out.print(getByte(data[i])+\" \");\r\n\t\t }\r\n\t\t if(debug) System.out.println();\r\n\t\t \r\n\t\t if(dataTypeStr == \"ZeoTimestamp\") {\r\n\t\t \t_timestamp = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t \tif(debug) System.out.println(\"_timestamp:\\t\"+_timestamp);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"Version\") {\r\n\t\t _version = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t if(debug) System.out.println(\"_version:\\t\"+_version);\r\n\t\t }\r\n\t\t \r\n\t\t // skip packet until version and timestamps arrive\r\n\t\t if(_timestamp == 0 || _version == 0) {\r\n\t\t if(debug) System.out.println();\r\n\t\t return true;\t// return and clear buffer \r\n\t\t }\r\n\t\t \r\n\t\t // construct full timestamp\r\n\t\t long timestamp = 0;\r\n\t\t if((_timestamp & 0xff) == timestampLow) timestamp = _timestamp;\r\n\t\t else if(((_timestamp -1) & 0xff) == timestampLow) timestamp = _timestamp - 1;\r\n\t\t else if(((_timestamp +1) & 0xff) == timestampLow) timestamp = _timestamp + 1;\r\n\t\t else timestamp = _timestamp;\r\n\t\t \r\n\t\t \r\n\t\t if(debug) {\r\n\t\t \tDate ts = new Date(timestamp);\r\n\t\t \tSystem.out.println(\"date:\\t\\t\"+ts);\r\n\t\t }\r\n\t\t \r\n\t\t // pass on data\r\n\t\t _slice.setTime(timestamp);\r\n\r\n\t\t if(dataTypeStr == \"FrequencyBins\") {\r\n\t\t _slice.setBins(data);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SleepStage\") {\r\n\t\t \tsleepState = getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t if(debug) System.out.println(\"sleepstage:\\t\"+sleepState);\r\n\t\t triggerZeoSleepStateEvent();\r\n\t\t }\r\n\t\t \r\n\t\t _slice.setSleepState(sleepState);\r\n\t\t \r\n\t\t if(dataTypeStr == \"Waveform\") {\r\n\t\t _slice.setWaveForm(data);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"Impedance\") {\r\n\t\t \t_slice.impedance = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"BadSignal\") {\r\n\t\t \t_slice.badSignal = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SQI\") {\r\n\t\t \t_slice.SQI = (long) getByte(data[1]) + (getByte(data[2]) << 8) + (getByte(data[3]) << 16) + (getByte(data[4]) << 24);\r\n\t\t }\r\n\t\t \r\n\t\t if(dataTypeStr == \"SliceEnd\") {\r\n\t\t // set public slice to tmp slice\r\n\t\t slice = _slice;\r\n\t\t // empty _slice\r\n\t\t _slice = new ZeoSlice();\r\n\t\t \r\n\t\t triggerZeoSliceEvent();\r\n\t\t }\r\n\t\t \r\n\t\t if(debug) System.out.println(); \r\n\t\t return true;\r\n\t\t} else return false; // return and keep buffer, because not long enough\r\n\t\t \r\n\t}",
"private void processData() {\n\t\tfloat S, M, VPR, VM;\n\t\tgetCal();\n\t\tgetTimestamps();\n\t\t\n \n\t\tfor(int i = 0; i < r.length; i++) {\n\t\t\t//get lux\n\t\t\tlux[i] = RGBcal[0]*vlam[0]*r[i] + RGBcal[1]*vlam[1]*g[i] + RGBcal[2]*vlam[2]*b[i];\n \n\t\t\t//get CLA\n\t\t\tS = RGBcal[0]*smac[0]*r[i] + RGBcal[1]*smac[1]*g[i] + RGBcal[2]*smac[2]*b[i];\n\t\t\tM = RGBcal[0]*mel[0]*r[i] + RGBcal[1]*mel[1]*g[i] + RGBcal[2]*mel[2]*b[i];\n\t\t\tVPR = RGBcal[0]*vp[0]*r[i] + RGBcal[1]*vp[1]*g[i] + RGBcal[2]*vp[2]*b[i];\n\t\t\tVM = RGBcal[0]*vmac[0]*r[i] + RGBcal[1]*vmac[1]*g[i] + RGBcal[2]*vmac[2]*b[i];\n \n\t\t\tif(S > CLAcal[2]*VM) {\n\t\t\t\tCLA[i] = M + CLAcal[0]*(S - CLAcal[2]*VM) - CLAcal[1]*683*(1 - pow((float)2.71, (float)(-VPR/4439.5)));\n\t\t\t}\n\t\t\telse {\n\t\t\t\tCLA[i] = M;\n\t\t\t}\n\t\t\tCLA[i] = CLA[i]*CLAcal[3];\n\t\t\tif(CLA[i] < 0) {\n\t\t\t\tCLA[i] = 0;\n\t\t\t}\n \n\t\t\t//get CS\n\t\t\tCS[i] = (float) (.7*(1 - (1/(1 + pow((float)(CLA[i]/355.7), (float)1.1026)))));\n \n\t\t\t//get activity\n\t\t\ta[i] = (float) (pow(a[i], (float).5) * .0039 * 4);\n\t\t}\n\t}",
"protected void parseTermData()\n {\n for (int i = 0; i < data.length; i++)\n {\n data[i] = Cdata[i];\n }\n }",
"private void analyzeServerDataBytes(ArrayList serverConversation)\n throws ProtocolException {\n byte[] serverBytes = new byte[serverConversation.size()];\n Iterator it = serverConversation.iterator();\n int i=0;\n while (it.hasNext()) {\n byte[] singleByte = (byte[]) it.next();\n serverBytes[i] = singleByte[0];\n i++;\n }\n //extract the data message\n byte[] dataMessage = new byte[serverBytes.length-8];\n System.arraycopy(serverBytes,8,dataMessage,0,dataMessage.length);\n //Verify that the received message is a data message\n if ((dataMessage[0]&0x80)!=0x80) {\n throw new ProtocolException(\"Message received: \"\n + Util.convert(dataMessage) + \" is not a data message\");\n }\n //Verify the length of the message\n int size = (dataMessage[2]<<8) + dataMessage[3];\n if (size!=dataMessage.length-4) {\n throw new ProtocolException(\"Data message received reported\"\n + \" incorrect size\");\n }\n\n }",
"public void parse(){\r\n\t\t//StringTokenizer st = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tst = new StringTokenizer(nmeaSentence,\",\");\r\n\t\tString sv = \"\";\r\n\r\n\t\ttry{\r\n\t\t\tnmeaHeader = st.nextToken();//Global Positioning System Fix Data\r\n\t\t\tmode = st.nextToken();\r\n\t\t\tmodeValue = Integer.parseInt(st.nextToken());\r\n\r\n\t\t\tfor(int i=0;i<=11;i++){\r\n\t\t\t\tsv = st.nextToken();\r\n\t\t\t\tif(sv.length() > 0){\r\n\t\t\t\t\tSV[i] = Integer.parseInt(sv);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tSV[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tPDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tHDOP = Float.parseFloat(st.nextToken());\r\n\t\t\tVDOP = Float.parseFloat(st.nextToken());\r\n\r\n\t\t}catch(NoSuchElementException e){\r\n\t\t\t//Empty\r\n\t\t}catch(NumberFormatException e2){\r\n\t\t\t//Empty\r\n\t\t}\r\n\r\n\t}",
"protected void recvSensorPacket(Object data_)\n\t{\t\n\t\tif ( data_ instanceof SensorPacket )\n\t\t{\n\t\t\tSensorPacket spkt = (SensorPacket)data_ ;\n\t\t\tif(nodeState.equals(NodeState.SLEEPING) && spkt.pktType!=DRLDiffApp.INTEREST_PKT){\n\t\t\t\tlog(Level.FINE,\"Dropping packet as currenly asleep..\"+spkt.getBody());\n\t\t\t\tlog(Level.FINE,\"Current task:\"+microLearner.currentTask+\", current state:\"+microLearner.currentState\n\t\t\t\t\t\t+\" time:\"+microLearner.timesteps+\" lastDiff:\"+microLearner.lastDiffusionParticipation+\" lastS:\"+microLearner.lastSourceParticipation);\n\t\t\t\treturn;\n\t\t\t}else{\n\t\t\t\tlog(Level.FINE,\"Received sensor packet:\"+spkt.getBody());\n\t\t\t}\n\t\t\tboolean process;\n\t\t\tswitch ( spkt.pktType )\n\t\t\t{\n\t\t\t\tcase DRLDiffApp.INTEREST_PKT :\n\t\t\t\t\tnoOfInterests++;\n\t\t\t\t\tInterestPacket interestPkt = (InterestPacket)spkt.getBody() ;\n\t\t\t\t\tprocess=macroLearner.interestArriveAtDownPort(interestPkt);\n\t\t\t\t\tif(process)\n\t\t\t\t\t\tmicroLearner.handleInterestPkt(interestPkt);\n\t\t\t\t\tinterestCachePrint();\n\t\t\t\t\tbreak ;\n\t\t\t\tcase DRLDiffApp.DATA_PKT :\n\t\t\t\t\tDataPacket dataPkt = (DataPacket)spkt.getBody() ;\n\t\t\t\t\tif(dataPkt.isHeartBeat()){\n\t\t\t\t\t\tnoOfHeartBeats++;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnoOfDataPkts++;\n\t\t\t\t\t}\n\t\t\t\t\tprocess=macroLearner.dataArriveAtDownPort(dataPkt);\n\t\t\t\t\tif(process){\n\t\t\t\t\t\tif(nid==sink_nid){\n\t\t\t\t\t\t\thandleSinkData(dataPkt);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tmicroLearner.handleDataPkt(dataPkt);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase DRLDiffApp.REINFORCEMENT_PKT :\n\t\t\t\t\tnoOfReinforcements++;\n\t\t\t\t\tReinforcementPacket reinforcementPkt = (ReinforcementPacket)spkt.getBody() ;\n\t\t\t\t\tlog(Level.FINE,\"Received REINFORCEMENT:\"+reinforcementPkt);\n\t\t\t\t\t//interestCachePrint();\n\t\t\t\t\tmacroLearner.handleReinforcement(reinforcementPkt);\n\t\t\t\t\tmicroLearner.handleReinforcement(reinforcementPkt);\n\t\t\t\t\tbreak ;\n\t\t\t\tdefault :\n\t\t\t\t\tsuper.recvSensorPacket(data_) ;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t\tsuper.recvSensorPacket(data_) ;\n \t}",
"protected void ProcessOutboundEvent(XMSEvent evt){\n switch(evt.getEventType()){\n case CALL_CONNECTED:\n System.out.println(\"***** Outbound call connected *****\");\n SetOutboundCallState(OutboundCallStates.CALLCONNECTED);\n ConnectCalls();\n break;\n case CALL_RECORD_END:\n \n break; \n case CALL_SENDDTMF_END:\n System.out.println(\"***** END_DTMF *****\");\n System.out.println(\"***** ReJoin Calls *****\");\n ConnectCalls();\n \n break; \n case CALL_DTMF:\n \n System.out.println(\"***** outbound CALL_DTMF *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(\"DTMF_\" + evt.getData());\n \n break; \n case CALL_INFO:\n \n System.out.println(\"***** Outbound CALL_INFO *****\");\n System.out.println(\"data=\" + evt.getData());\n myInboundCall.SendInfo(evt.getData());\n\n break;\n case CALL_PLAY_END:\n //May need to do something here\n break;\n case CALL_DISCONNECTED: // The far end hung up will simply wait for the media\n System.out.println(\"***** outbound CALL_Disconnected *****\");\n DisconnectCalls();\n break;\n default:\n System.out.println(\"Unknown Event Type!!\");\n }\n }",
"public static void processData() {\n\t\tString dirName = \"C:\\\\research_data\\\\mouse_human\\\\homo_b47_data\\\\\";\r\n\t//\tString GNF1H_fName = \"GNF1H_genes_chopped\";\r\n\t//\tString GNF1M_fName = \"GNF1M_genes_chopped\";\r\n\t\tString GNF1H_fName = \"GNF1H\";\r\n\t\tString GNF1M_fName = \"GNF1M\";\r\n\t\tString mergedValues_fName = \"GNF1_merged_expression.txt\";\r\n\t\tString mergedPMA_fName = \"GNF1_merged_PMA.txt\";\r\n\t\tString discretizedMI_fName = \"GNF1_discretized_MI.txt\";\r\n\t\tString discretizedLevels_fName = \"GNF1_discretized_levels.txt\";\r\n\t\tString discretizedData_fName = \"GNF1_discretized_data.txt\";\r\n\t\t\r\n\t\tboolean useMotifs = false;\r\n\t\tMicroArrayData humanMotifs = null;\r\n\t\tMicroArrayData mouseMotifs = null;\r\n\t\t\r\n\t\tMicroArrayData GNF1H_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1H_PMA = new MicroArrayData();\r\n\t\tGNF1H_PMA.setDiscrete();\r\n\t\tMicroArrayData GNF1M_value = new MicroArrayData();\r\n\t\tMicroArrayData GNF1M_PMA = new MicroArrayData();\r\n\t\tGNF1M_PMA.setDiscrete();\r\n\t\t\r\n\t\ttry {\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma\"); */\r\n\t\t/*\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.txt.homob44\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.txt.homob44\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.txt.homob44\"); */\r\n\t\t\tGNF1H_value.readFile(dirName+GNF1H_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1H_PMA.readFile(dirName+GNF1H_fName+\".pma.sn.txt\");\r\n\t\t\tGNF1M_value.readFile(dirName+GNF1M_fName+\".gcrma.snco.txt\");\r\n\t\t\tGNF1M_PMA.readFile(dirName+GNF1M_fName+\".pma.sn.txt\");\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t\tif (useMotifs) {\r\n\t\t\thumanMotifs = new MicroArrayData();\r\n\t\t\tmouseMotifs = new MicroArrayData();\r\n\t\t\tloadMotifs(humanMotifs,GNF1H_value.geneNames,mouseMotifs,GNF1M_value.geneNames);\r\n\t\t}\r\n\t\t\r\n\t\t// combine replicates in PMA values\r\n\t\tint[][] H_PMA = new int[GNF1H_PMA.numRows][GNF1H_PMA.numCols/2];\r\n\t\tint[][] M_PMA = new int[GNF1M_PMA.numRows][GNF1M_PMA.numCols/2];\r\n\t\t\r\n\t\tint i = 0;\r\n\t\tint j = 0;\r\n\t\tint k = 0;\r\n\t\tint v = 0;\r\n\t\tk = 0;\r\n\t\tj = 0;\r\n\t\twhile (j<GNF1H_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<H_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1H_PMA.dvalues[i][j] > 0 & GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0 | GNF1H_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tH_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tj = 0;\r\n\t\tk = 0;\r\n\t\twhile (j<GNF1M_PMA.numCols-1) {\r\n\t\t\tfor (i=0;i<M_PMA.length;i++) {\r\n\t\t\t\tv = 0;\r\n\t\t\t//\tif (GNF1M_PMA.dvalues[i][j] > 0 & GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0 | GNF1M_PMA.dvalues[i][j+1] > 0) {\r\n\t\t\t\t\tv = 1;\r\n\t\t\t\t}\r\n\t\t\t\tM_PMA[i][k] = v;\r\n\t\t\t}\r\n\t\t\tk++;\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\t\t\r\n\t\tint numMatched = 31;\r\n\t\t\r\n\t/*\tGNF1H_value.numCols = numMatched;\r\n\t\tGNF1M_value.numCols = numMatched; */\r\n\t\t\r\n\t\tint[][] matchPairs = new int[numMatched][2];\r\n\t\tfor(i=0;i<numMatched;i++) {\r\n\t\t\tmatchPairs[i][0] = i;\r\n\t\t\tmatchPairs[i][1] = i + GNF1H_value.numCols;\r\n\t\t}\r\n\t\t\r\n\t//\tDiscretizeAffyData H_discretizer = new DiscretizeAffyData(GNF1H_value.values,H_PMA,0);\r\n\t//\tH_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1H_value.values,H_PMA,GNF1H_value.numCols);\r\n\t\t\r\n\t//\tDiscretizeAffyData M_discretizer = new DiscretizeAffyData(GNF1M_value.values,M_PMA,0);\r\n\t//\tM_discretizer.adjustIntensities();\r\n\t\ttransformRelativeAbundance(GNF1M_value.values,M_PMA,GNF1M_value.numCols);\r\n\t\t\r\n\t\tdouble[][] mergedExpression = new double[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[][] mergedPMA = new int[GNF1H_value.numRows][GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\tint[] species = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tspecies = new int[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1H_value.values[i],0,mergedExpression[i],0,GNF1H_value.numCols);\r\n\t\t\tSystem.arraycopy(H_PMA[i],0,mergedPMA[i],0,GNF1H_value.numCols);\t\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tSystem.arraycopy(GNF1M_value.values[i],0,mergedExpression[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t\tSystem.arraycopy(M_PMA[i],0,mergedPMA[i],GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\t}\r\n\t\t\r\n\t\t// concatenate experiment and gene names\r\n\t\tfor (i=0;i<GNF1H_value.numCols;i++) {\r\n\t\t\tGNF1H_value.experimentNames[i] = \"h_\" + GNF1H_value.experimentNames[i];\r\n\t\t\tspecies[i] = 1;\r\n\t\t}\r\n\t\tfor (i=0;i<GNF1M_value.numCols;i++) {\r\n\t\t\tGNF1M_value.experimentNames[i] = \"m_\" + GNF1M_value.experimentNames[i];\r\n\t\t\tspecies[i+GNF1H_value.numCols] = 2;\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedExperimentNames = null;\r\n\t\tif (!useMotifs) {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols];\r\n\t\t} else {\r\n\t\t\tmergedExperimentNames = new String[GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t}\r\n\t\tSystem.arraycopy(GNF1H_value.experimentNames,0,mergedExperimentNames,0,GNF1H_value.numCols);\r\n\t\tSystem.arraycopy(GNF1M_value.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols,GNF1M_value.numCols);\r\n\t\tif (useMotifs) {\r\n\t\t\tSystem.arraycopy(humanMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols,humanMotifs.numCols);\r\n\t\t\tSystem.arraycopy(mouseMotifs.experimentNames,0,mergedExperimentNames,GNF1H_value.numCols+GNF1M_value.numCols+humanMotifs.numCols,mouseMotifs.numCols);\r\n\t\t\tfor (i=0;i<humanMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols] = 3;\r\n\t\t\t}\r\n\t\t\tfor (i=0;i<mouseMotifs.numCols;i++) {\r\n\t\t\t\tspecies[i + GNF1H_value.numCols+GNF1M_value.numCols + humanMotifs.numCols] = 4;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tString[] mergedGeneNames = new String[GNF1H_value.numRows];\r\n\t\tfor (i=0;i<GNF1M_value.numRows;i++) {\r\n\t\t\tmergedGeneNames[i] = GNF1H_value.geneNames[i] + \"|\" + GNF1M_value.geneNames[i];\r\n\t\t}\r\n\t\t\r\n\t\tint[] filterList = new int[GNF1M_value.numRows];\r\n\t\tint numFiltered = 0;\r\n\t\tdouble maxExpressedPercent = 1.25;\r\n\t\tint maxExpressed_H = (int) Math.floor(maxExpressedPercent*((double) GNF1H_value.numCols));\r\n\t\tint maxExpressed_M = (int) Math.floor(maxExpressedPercent*((double) GNF1M_value.numCols));\r\n\t\tint numExpressed_H = 0;\r\n\t\tint numExpressed_M = 0;\r\n\t\t\r\n\t\tfor (i=0;i<GNF1H_value.numRows;i++) {\r\n\t\t\tnumExpressed_H = 0;\r\n\t\t\tfor (j=0;j<GNF1H_value.numCols;j++) {\r\n\t\t\t\tif (GNF1H_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1H_value.values[i][j])) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t\t\tnumExpressed_H++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tnumExpressed_M = 0;\r\n\t\t\tfor (j=0;j<GNF1M_value.numCols;j++) {\r\n\t\t\t\tif (GNF1M_PMA.dvalues[i][j] > 0) {\r\n\t\t\t//\tif (GNF1H_value.values[i][j] > 1.5) {\r\n\t\t\t//\tif (!Double.isNaN(GNF1M_value.values[i][j])) {\r\n\t\t\t\t\tnumExpressed_M++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (numExpressed_M >= maxExpressed_M | numExpressed_H >= maxExpressed_H) {\r\n\t\t\t\tfilterList[i] = 1;\r\n\t\t\t\tnumFiltered++;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tGNF1H_value = null;\r\n\t\tGNF1H_PMA = null;\r\n\t\tGNF1M_value = null;\r\n\t\tGNF1M_PMA = null;\r\n\t\t\r\n\t\tdouble[][] mergedExpression2 = null;\r\n\t\tif (numFiltered > 0) {\r\n\t\t\tk = 0;\r\n\t\t\tint[][] mergedPMA2 = new int[mergedPMA.length-numFiltered][mergedPMA[0].length];\r\n\t\t\tif (!useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length];\r\n\t\t\t} else {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length-numFiltered][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t}\r\n\t\t\tString[] mergedGeneNames2 = new String[mergedGeneNames.length-numFiltered];\r\n\t\t\tfor (i=0;i<filterList.length;i++) {\r\n\t\t\t\tif (filterList[i] == 0) {\r\n\t\t\t\t\tmergedPMA2[k] = mergedPMA[i];\r\n\t\t\t\t\tif (!useMotifs) {\r\n\t\t\t\t\t\tmergedExpression2[k] = mergedExpression[i];\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[k],0,mergedExpression[i].length);\r\n\t\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[k],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[k],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tmergedGeneNames2[k] = mergedGeneNames[i];\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tmergedPMA = mergedPMA2;\r\n\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\tmergedGeneNames = mergedGeneNames2;\r\n\t\t} else {\r\n\t\t\tif (useMotifs) {\r\n\t\t\t\tmergedExpression2 = new double[mergedExpression.length][mergedExpression[0].length + humanMotifs.numCols + mouseMotifs.numCols];\r\n\t\t\t\tfor (i=0;i<mergedExpression.length;i++) {\r\n\t\t\t\t\tSystem.arraycopy(mergedExpression[i],0,mergedExpression2[i],0,mergedExpression[i].length);\r\n\t\t\t\t\tSystem.arraycopy(humanMotifs.values[i],0,mergedExpression2[i],mergedExpression[i].length,humanMotifs.numCols);\r\n\t\t\t\t\tSystem.arraycopy(mouseMotifs.values[i],0,mergedExpression2[i],humanMotifs.numCols+mergedExpression[i].length,mouseMotifs.numCols);\r\n\t\t\t\t}\r\n\t\t\t\tmergedExpression = mergedExpression2;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tDiscretizeAffyPairedData discretizer = new DiscretizeAffyPairedData(mergedExpression,mergedPMA,matchPairs,20);\r\n\t\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = discretizer.expression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = discretizer.numExperiments;\r\n\t\tmergedData.numRows = discretizer.numGenes;\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tdiscretizer.discretizeDownTree(dirName+discretizedMI_fName);\r\n\t\t\tdiscretizer.mergeDownLevels(3,dirName+discretizedLevels_fName);\r\n\t\t\tdiscretizer.transposeDExpression();\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t\tmergedData.dvalues = discretizer.dExpression;\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\t\t\r\n\t/*\tMicroArrayData mergedData = new MicroArrayData();\r\n\t\tmergedData.values = mergedExpression;\r\n\t\tmergedData.geneNames = mergedGeneNames;\r\n\t\tmergedData.experimentNames = mergedExperimentNames;\r\n\t\tmergedData.experimentCode = species;\r\n\t\tmergedData.numCols = mergedExpression[0].length;\r\n\t\tmergedData.numRows = mergedExpression.length;\r\n\t\ttry {\r\n\t\t\tmergedData.writeFile(dirName+mergedValues_fName);\r\n\t\t\tmergedData.setDiscrete();\r\n\t\t\tmergedData.values = null;\r\n\t\t//\tmergedData.dvalues = simpleDiscretization(mergedExpression,mergedPMA);\r\n\t\t\tmergedData.dvalues = simpleDiscretization2(mergedExpression,species);\r\n\t\t\tmergedData.writeFile(dirName+discretizedData_fName);\r\n\t\r\n\t\t\tmergedData.dvalues = mergedPMA;\r\n\t\t\tmergedData.numCols = mergedPMA[0].length;\r\n\t\t\tmergedData.writeFile(dirName+mergedPMA_fName);\r\n\t\t} catch(IOException e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t} */\r\n\t\t\r\n\t}",
"public synchronized void feed(byte data) throws PacketMappingNotFoundException { //I hate decoding bytes\r\n\t\t//First save data and increase accumulation counter\r\n\t\ttempData[accStep] = data; //save data in current step\r\n\t\tif(mode == Mode.SEARCH_HEADER) { //Special case for header, because ti doesnt accept any data\r\n\t\t\tif(data == PACKETHEADER[accStep]) {\r\n\t\t\t\taccStep++; //Only increase header finding if data is correct\r\n\t\t\t} else {\r\n\t\t\t\taccStep = 0; //If one byte is not correct, completely reset\r\n\t\t\t}\r\n\t\t} else { //for other modes increase counter\r\n\t\t\taccStep++; \r\n\t\t}\r\n\t\t\r\n\t\tupdateState();\r\n\t}",
"private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }",
"@Test\n public void dataPassed() {\n assertEquals(10, cameraVisualizationPacket.getSensorSource().getX());\n assertEquals(11, cameraVisualizationPacket.getSensorSource().getY());\n assertEquals(12, cameraVisualizationPacket.getSensorCorner1().getX());\n assertEquals(13, cameraVisualizationPacket.getSensorCorner1().getY());\n assertEquals(14, cameraVisualizationPacket.getSensorCorner2().getX());\n assertEquals(15, cameraVisualizationPacket.getSensorCorner2().getY());\n assertEquals(50, cameraVisualizationPacket.getColor().getRed());\n assertEquals(51, cameraVisualizationPacket.getColor().getGreen());\n assertEquals(57, cameraVisualizationPacket.getColor().getBlue());\n\n }",
"protected abstract void analyzeSystem(PipelineData data) throws Exception;",
"@Override\n protected void onTextData(Reader r) throws IOException {\n\n }",
"private void processInputData() throws IOException {\n\t\tout.write(Protocol.PC_READY.value);\n\t\tout.flush();\n\t\tInputBuffer buffer = InputBuffer.readFrom(in);\n\t\tdispatcher.dispatch(buffer.entries);\n\t}",
"private void getIncomingIntent()\n {\n if(getIntent().hasExtra(\"Title\")\n && getIntent().hasExtra(\"Time\")\n && getIntent().hasExtra(\"Date\")\n && getIntent().hasExtra(\"Duration\")\n && getIntent().hasExtra(\"Location\")\n && getIntent().hasExtra(\"EventDetails\"))\n {\n Title = getIntent().getStringExtra(\"Title\");\n Time = getIntent().getStringExtra(\"Time\");\n Date = getIntent().getStringExtra(\"Date\");\n Duration = getIntent().getStringExtra(\"Duration\");\n Location = getIntent().getStringExtra(\"Location\");\n EventDetails = getIntent().getStringExtra(\"EventDetails\");\n\n setData(Title,Time,Date,Duration,Location,EventDetails);\n }\n }",
"protected void ProcessInboundEvent(XMSEvent evt){\n \n FunctionLogger logger=new FunctionLogger(\"ProcessInboundEvent\",this,myLogger);\n logger.args(evt);\n try{\n switch(evt.getEventType()){\n case CALL_OFFERED:\n System.out.println(\"***** Inbound CALL_Offered *****\");\n SetGatewayState(GatewayStates.ESTABLISHING);\n SetInboundCallState(InboundCallStates.ACCEPTCALL);\n //Should there ba an accept Call\n\n StartOutboundCall(evt.getCall().getCalledAddress(),evt.getCall().getConnectionAddress());\n \n break;\n case CALL_CONNECTED:\n System.out.println(\"***** Inbound CALL_Connected *****\");\n SetInboundCallState(InboundCallStates.CALLCONNECTED);\n StartOutboundCall(evt.getCall().getCalledAddress(),evt.getCall().getConnectionAddress());\n if(PlayRingbackFlag ){\n myInboundCall.PlayOptions.SetMediaType(XMSMediaType.VIDEO);\n myInboundCall.Play(RingbackFile);\n } \n break;\n \n case CALL_INFO:\n \n System.out.println(\"***** Inbound CALL_INFO *****\");\n System.out.println(\"data=\" + evt.getData());\n myOutboundCall.SendInfo(evt.getData());\n \n break;\n case CALL_DTMF:\n \n System.out.println(\"***** inbound CALL_DTMF *****\");\n System.out.println(\"data=\" + evt.getData());\n \n UnJoinCalls(); \n SendDTMF(evt.getData()); \n \n break; \n case CALL_SENDDTMF_END:\n \n System.out.println(\"***** END_DTMF *****\");\n System.out.println(\"***** ReJoin Calls *****\");\n ConnectCalls();\n \n break;\n \n case CALL_RECORD_END:\n break; \n case CALL_PLAY_END:\n break;\n case CALL_DISCONNECTED: \n System.out.println(\"***** inbound CALL_Disconnected *****\");\n DisconnectCalls();\n break;\n default:\n System.out.println(\"Unknown Event Type!!\");\n }\n }catch(XMSGatewayOutboundCallException e){\n logger.info(\"Error is received\",e);\n }\n }",
"public String receive(){\n\t\tString val = \"\";\n\t\ttry {\n\t\t\tval = Jsoup.parse(inStream.read()+ \"\").text();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(val);\n\t\treturn val;\n\t\t/*String val = \"\";\n\t\ttry {\n\t\t\tval = Jsoup.parse(inStream.read() + \"\").text();\n\t\t\t\n\t\t\tplace = Jsoup.parse(inStream.read() + \"\").text();\n\t\t\tif(!(place == null)) {\n\t\t\t\tplaceInt = Integer.parseInt(place);\n\t\t\t}\n\t\t\tif (placeInt == 71) {\n\t\t\t\tgData = val;\n\t\t\t} else if (placeInt == 65) {\n\t\t\t\taData = val;\n\t\t\t} else if (placeInt == 68) {\n\t\t\t\tdData = val;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"VALEUR NON RECONNUE : \" + place);\n\t\t\t}\n\t\t\tSystem.out.println(val);\n\t\t\treturn val;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem receiving\");\n\t\t\treturn \"Error\";\n\t\t}*/\n\t}",
"@Override\n public void onReceive(Context context, Intent intent) {\n /*\n * Handle Intents here.\n */\n Log.d(TAG, \"onReceive: Called\");\n Bundle extras = intent.getExtras();\n Bundle details = (Bundle)extras.get(Constants.EXTENDED_DATA_STATUS);\n for (String key : xData) {\n int value = details.getInt(key);\n try {\n int pos = getPos(key);\n yData[pos] = value;\n }\n catch (KeyException ke) {\n Log.e(TAG, \"onReceive: Bad Activity string received\", ke);\n }\n }\n addDataSet(); // updated yData - now process and show\n }",
"private void processData() {\n switch (actionCode) {\n\n // get all cars in inventory\n case \"101\":\n String size = \"There are totally \" + Inventory.cars.size() + \" cars in inventory\\n\";\n response = size + Inventory.serializeCarList(Inventory.cars);\n break;\n\n // find cars by make\n case \"102\":\n List<Car> carList = Inventory.findCarsByMake(data);\n\n if (!carList.isEmpty())\n response = Inventory.serializeCarList(carList);\n else\n response = \"Not found.\";\n break;\n\n // find car by VIN\n case \"103\":\n Car car = Inventory.findCarByVIN(data);\n if (car != null)\n response = car.getCarInfo();\n else\n response = \"Not found.\";\n break;\n\n // add new car from data client supplies\n case \"104\":\n // process data submitted by client\n String[] details = data.split(\",\");\n String vin = details[0];\n String make = details[1];\n String color = details[2];\n int doors = Integer.parseInt(details[3]);\n int seats = Integer.parseInt(details[4]);\n double price = Double.parseDouble(details[5]);\n int mpg = Integer.parseInt(details[6]);\n int power = Integer.parseInt(details[7]);\n\n Car newCar = new Car(vin, make, color, doors, seats, price, mpg, power);\n Inventory.addCar(newCar);\n\n response = \"New car added.\";\n break;\n\n // get all parts in inventory\n case \"201\":\n // serialize list of part\n String partSize = \"There are totally \" + Inventory.parts.size() + \" parts in inventory\\n\";\n response = partSize + Inventory.serializePartList(Inventory.parts);\n break;\n\n // find part by ID\n case \"202\":\n int id = Integer.parseInt(data);\n Part p = Inventory.findPartById(id);\n if (p != null)\n response = p.getPartInfo();\n else\n response = \"Not found.\";\n break;\n\n // add new part to inventory\n case \"203\":\n String[] partDetails = data.split(\",\");\n int partID = Integer.parseInt(partDetails[0]);\n String des = partDetails[1];\n double partPrice = Double.parseDouble(partDetails[2]);\n String origin = partDetails[3];\n\n Part newPart = new Part(partID, des, partPrice, origin);\n Inventory.addPart(newPart);\n response = \"New part added.\";\n break;\n\n // get all sales\n case \"301\":\n String totalSaleOrders = \"There are totally \" + SeedPurchases.purchases.size() + \" sale orders.\\n\";\n String cost = \"Total sale value: \" + SeedPurchases.getPurchasesCost() + \" dollars\\n\";\n\n response = totalSaleOrders + cost;\n break;\n\n default:\n response = \"Invalid request\";\n }\n }",
"private void processInput(Protocol protocol) throws IOException {\n\t\tlogger.debug(protocol);\n\t\tswitch (protocol) {\n\t\tcase TIME_POLL:\n\t\t\tsendStatus();\n\t\t\tbreak;\n\t\tcase DATA_POLL:\n\t\t\tprocessInputData();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tlogger.warn(\"Ignoring {}\", protocol.name());\n\t\t}\n\t}",
"private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}",
"public float[] receiveData() {\r\n\t\tString dataString = null;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"Lese Daten...\");\r\n\t\t\tdataString = com.receiveString();\r\n\t\t\tlogger.debug(\"gelesen: \" + dataString);\r\n\t\t\treturn checkString(dataString);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"Fehler beim Empfangen von Daten:\" + e);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"private synchronized void parsebm() throws MessagingException {\n/* 777 */ if (this.parsed) {\n/* */ return;\n/* */ }\n/* 780 */ InputStream in = null;\n/* 781 */ SharedInputStream sin = null;\n/* 782 */ long start = 0L, end = 0L;\n/* */ \n/* */ try {\n/* 785 */ in = this.ds.getInputStream();\n/* 786 */ if (!(in instanceof java.io.ByteArrayInputStream) && !(in instanceof BufferedInputStream) && !(in instanceof SharedInputStream))\n/* */ {\n/* */ \n/* 789 */ in = new BufferedInputStream(in); } \n/* 790 */ } catch (Exception ex) {\n/* 791 */ throw new MessagingException(\"No inputstream from datasource\", ex);\n/* */ } \n/* 793 */ if (in instanceof SharedInputStream) {\n/* 794 */ sin = (SharedInputStream)in;\n/* */ }\n/* 796 */ ContentType cType = new ContentType(this.contentType);\n/* 797 */ String boundary = null;\n/* 798 */ if (!this.ignoreExistingBoundaryParameter) {\n/* 799 */ String bp = cType.getParameter(\"boundary\");\n/* 800 */ if (bp != null)\n/* 801 */ boundary = \"--\" + bp; \n/* */ } \n/* 803 */ if (boundary == null && !this.ignoreMissingBoundaryParameter && !this.ignoreExistingBoundaryParameter)\n/* */ {\n/* 805 */ throw new MessagingException(\"Missing boundary parameter\");\n/* */ }\n/* */ \n/* */ try {\n/* 809 */ LineInputStream lin = new LineInputStream(in);\n/* 810 */ StringBuffer preamblesb = null;\n/* */ \n/* 812 */ String lineSeparator = null; String line;\n/* 813 */ while ((line = lin.readLine()) != null) {\n/* */ int k;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 821 */ for (k = line.length() - 1; k >= 0; k--) {\n/* 822 */ char c = line.charAt(k);\n/* 823 */ if (c != ' ' && c != '\\t')\n/* */ break; \n/* */ } \n/* 826 */ line = line.substring(0, k + 1);\n/* 827 */ if (boundary != null) {\n/* 828 */ if (line.equals(boundary))\n/* */ break; \n/* 830 */ if (line.length() == boundary.length() + 2 && line.startsWith(boundary) && line.endsWith(\"--\")) {\n/* */ \n/* 832 */ line = null;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* 841 */ } else if (line.length() > 2 && line.startsWith(\"--\") && (\n/* 842 */ line.length() <= 4 || !allDashes(line))) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 850 */ boundary = line;\n/* */ \n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* */ \n/* 857 */ if (line.length() > 0) {\n/* */ \n/* */ \n/* 860 */ if (lineSeparator == null) {\n/* */ try {\n/* 862 */ lineSeparator = System.getProperty(\"line.separator\", \"\\n\");\n/* */ }\n/* 864 */ catch (SecurityException ex) {\n/* 865 */ lineSeparator = \"\\n\";\n/* */ } \n/* */ }\n/* */ \n/* 869 */ if (preamblesb == null)\n/* 870 */ preamblesb = new StringBuffer(line.length() + 2); \n/* 871 */ preamblesb.append(line).append(lineSeparator);\n/* */ } \n/* */ } \n/* */ \n/* 875 */ if (preamblesb != null) {\n/* 876 */ this.preamble = preamblesb.toString();\n/* */ }\n/* 878 */ if (line == null) {\n/* 879 */ if (this.allowEmpty) {\n/* */ return;\n/* */ }\n/* 882 */ throw new MessagingException(\"Missing start boundary\");\n/* */ } \n/* */ \n/* */ \n/* 886 */ byte[] bndbytes = ASCIIUtility.getBytes(boundary);\n/* 887 */ int bl = bndbytes.length;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 894 */ int[] bcs = new int[256];\n/* 895 */ for (int i = 0; i < bl; i++) {\n/* 896 */ bcs[bndbytes[i] & 0xFF] = i + 1;\n/* */ }\n/* */ \n/* 899 */ int[] gss = new int[bl];\n/* */ \n/* 901 */ for (int j = bl; j > 0; j--) {\n/* */ \n/* 903 */ int k = bl - 1; while (true) { if (k >= j) {\n/* */ \n/* 905 */ if (bndbytes[k] == bndbytes[k - j]) {\n/* */ \n/* 907 */ gss[k - 1] = j;\n/* */ \n/* */ k--;\n/* */ } \n/* */ \n/* */ break;\n/* */ } \n/* 914 */ while (k > 0)\n/* 915 */ gss[--k] = j; break; }\n/* */ \n/* 917 */ } gss[bl - 1] = 1;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 923 */ boolean done = false;\n/* */ \n/* 925 */ while (!done) {\n/* 926 */ int eolLen; MimeBodyPart part; InternetHeaders headers = null;\n/* 927 */ if (sin != null) {\n/* 928 */ start = sin.getPosition();\n/* */ \n/* 930 */ while ((line = lin.readLine()) != null && line.length() > 0);\n/* */ \n/* 932 */ if (line == null) {\n/* 933 */ if (!this.ignoreMissingEndBoundary) {\n/* 934 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* */ \n/* 937 */ this.complete = false;\n/* */ \n/* */ break;\n/* */ } \n/* */ } else {\n/* 942 */ headers = createInternetHeaders(in);\n/* */ } \n/* */ \n/* 945 */ if (!in.markSupported()) {\n/* 946 */ throw new MessagingException(\"Stream doesn't support mark\");\n/* */ }\n/* 948 */ ByteArrayOutputStream buf = null;\n/* */ \n/* 950 */ if (sin == null) {\n/* 951 */ buf = new ByteArrayOutputStream();\n/* */ } else {\n/* 953 */ end = sin.getPosition();\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 965 */ byte[] inbuf = new byte[bl];\n/* 966 */ byte[] previnbuf = new byte[bl];\n/* 967 */ int inSize = 0;\n/* 968 */ int prevSize = 0;\n/* */ \n/* 970 */ boolean first = true;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ while (true) {\n/* 976 */ in.mark(bl + 4 + 1000);\n/* 977 */ eolLen = 0;\n/* 978 */ inSize = readFully(in, inbuf, 0, bl);\n/* 979 */ if (inSize < bl) {\n/* */ \n/* 981 */ if (!this.ignoreMissingEndBoundary) {\n/* 982 */ throw new MessagingException(\"missing multipart end boundary\");\n/* */ }\n/* 984 */ if (sin != null)\n/* 985 */ end = sin.getPosition(); \n/* 986 */ this.complete = false;\n/* 987 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ int k;\n/* 992 */ for (k = bl - 1; k >= 0 && \n/* 993 */ inbuf[k] == bndbytes[k]; k--);\n/* */ \n/* */ \n/* 996 */ if (k < 0) {\n/* 997 */ eolLen = 0;\n/* 998 */ if (!first) {\n/* */ \n/* */ \n/* 1001 */ int b = previnbuf[prevSize - 1];\n/* 1002 */ if (b == 13 || b == 10) {\n/* 1003 */ eolLen = 1;\n/* 1004 */ if (b == 10 && prevSize >= 2) {\n/* 1005 */ b = previnbuf[prevSize - 2];\n/* 1006 */ if (b == 13)\n/* 1007 */ eolLen = 2; \n/* */ } \n/* */ } \n/* */ } \n/* 1011 */ if (first || eolLen > 0) {\n/* 1012 */ if (sin != null)\n/* */ {\n/* */ \n/* 1015 */ end = sin.getPosition() - bl - eolLen;\n/* */ }\n/* */ \n/* 1018 */ int b2 = in.read();\n/* 1019 */ if (b2 == 45 && \n/* 1020 */ in.read() == 45) {\n/* 1021 */ this.complete = true;\n/* 1022 */ done = true;\n/* */ \n/* */ break;\n/* */ } \n/* */ \n/* 1027 */ while (b2 == 32 || b2 == 9) {\n/* 1028 */ b2 = in.read();\n/* */ }\n/* 1030 */ if (b2 == 10)\n/* */ break; \n/* 1032 */ if (b2 == 13) {\n/* 1033 */ in.mark(1);\n/* 1034 */ if (in.read() != 10)\n/* 1035 */ in.reset(); \n/* */ break;\n/* */ } \n/* */ } \n/* 1039 */ k = 0;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1049 */ int skip = Math.max(k + 1 - bcs[inbuf[k] & Byte.MAX_VALUE], gss[k]);\n/* */ \n/* 1051 */ if (skip < 2) {\n/* */ \n/* */ \n/* */ \n/* 1055 */ if (sin == null && prevSize > 1)\n/* 1056 */ buf.write(previnbuf, 0, prevSize - 1); \n/* 1057 */ in.reset();\n/* 1058 */ skipFully(in, 1L);\n/* 1059 */ if (prevSize >= 1) {\n/* */ \n/* 1061 */ previnbuf[0] = previnbuf[prevSize - 1];\n/* 1062 */ previnbuf[1] = inbuf[0];\n/* 1063 */ prevSize = 2;\n/* */ } else {\n/* */ \n/* 1066 */ previnbuf[0] = inbuf[0];\n/* 1067 */ prevSize = 1;\n/* */ }\n/* */ \n/* */ } else {\n/* */ \n/* 1072 */ if (prevSize > 0 && sin == null) {\n/* 1073 */ buf.write(previnbuf, 0, prevSize);\n/* */ }\n/* 1075 */ prevSize = skip;\n/* 1076 */ in.reset();\n/* 1077 */ skipFully(in, prevSize);\n/* */ \n/* 1079 */ byte[] tmp = inbuf;\n/* 1080 */ inbuf = previnbuf;\n/* 1081 */ previnbuf = tmp;\n/* */ } \n/* 1083 */ first = false;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 1090 */ if (sin != null) {\n/* 1091 */ part = createMimeBodyPartIs(sin.newStream(start, end));\n/* */ } else {\n/* */ \n/* 1094 */ if (prevSize - eolLen > 0) {\n/* 1095 */ buf.write(previnbuf, 0, prevSize - eolLen);\n/* */ }\n/* */ \n/* 1098 */ if (!this.complete && inSize > 0)\n/* 1099 */ buf.write(inbuf, 0, inSize); \n/* 1100 */ part = createMimeBodyPart(headers, buf.toByteArray());\n/* */ } \n/* 1102 */ super.addBodyPart(part);\n/* */ } \n/* 1104 */ } catch (IOException ioex) {\n/* 1105 */ throw new MessagingException(\"IO Error\", ioex);\n/* */ } finally {\n/* */ try {\n/* 1108 */ in.close();\n/* 1109 */ } catch (IOException cex) {}\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1114 */ this.parsed = true;\n/* */ }",
"private void handleDataPacket(TcpPacket packet) {\n\n // Invariants\n\n // For the sender, if the ACK message did not arrive, it will receive\n // another ACK+SYN message, which it will then again confirm.\n if (!this.isReceiver()) {\n assert(packet.isSYN() && packet.isACK());\n sendWithoutResend(\n ((FullExtTcpPacket) createPacket(\n 0, // Data size (byte)\n sendNextNumber, // Sequence number\n (packet.getSequenceNumber() + packet.getDataSizeByte() + (packet.isSYN() ? 1 : 0)), // Ack number\n true, // ACK\n false, // SYN\n packet.getECN() // ECE\n ).setEchoFlowletId(packet.getFlowletId()))\n .setEchoDepartureTime(packet.getDepartureTime())\n );\n return;\n }\n\n // The receiver is always at FIRST_SEQ_NUMBER+1, having sent only the ACK+SYN message\n assert(this.sendUnackNumber == FIRST_SEQ_NUMBER + 1);\n\n // Locally store sequence numbers\n long seqNumber = packet.getSequenceNumber();\n long ackNumber = (packet.getSequenceNumber() + packet.getDataSizeByte() + (packet.isSYN() ? 1 : 0));\n\n // Only advance if it is the packet on the left side of the receiver window\n if (receiveNextNumber == seqNumber) {\n receiveNextNumber = selectiveAckSet.determineReceiveNextNumber(ackNumber);\n\n // If it is not on the left side, we selectively acknowledge it\n } else if (seqNumber > receiveNextNumber) {\n selectiveAckSet.add(seqNumber, ackNumber);\n }\n\n // Send out the acknowledgment\n sendWithoutResend(\n ((FullExtTcpPacket) ((FullExtTcpPacket) (createPacket(\n 0, // Data size (byte)\n sendNextNumber, // Sequence number\n receiveNextNumber, // Ack number\n true, // ACK\n false, // SYN\n packet.getECN() // ECE\n ).setEchoFlowletId(packet.getFlowletId())))\n .setSelectiveAck(selectiveAckSet.createSelectiveAckData()))\n .setEchoDepartureTime(packet.getDepartureTime())\n );\n\n }",
"public void processData(){\n try{\n\t\t resultTxt.setText(\"Man has been dropped.\\n\\n\");\n String line = input.readLine();\n while(line != null){ //not end of file\n String[] words = line.split(\"\\\\s\");\n\n if (isAMan(words)==true){\n \t\t\t output1.write(line+\"\\n\");\n \t\t }\n \t\t else if(isAWoman(words)==true) {\n \t\t\t output2.write(line+\"\\n\");\n\t\t\t resultTxt.append(line+\"\\n\");\n \t\t }\n line = input.readLine();\n }\n\n if (input != null){\n \t\t input.close();\n \t\t }\n \t\t if (output1 != null){\n \t\t output1.close();\n }\n if (output2 != null){\n \t\t output2.close();\n }\n }\n catch(IOException exc){\n exc.printStackTrace();\n System.err.println(\"Error: failed Fork input processor\");\n System.exit(1);\n }\n }",
"private void processRequest() throws Exception {\n InputStream is = socket.getInputStream();\n DataOutputStream os = new DataOutputStream(socket.getOutputStream());\n\n // Set up input stream filters.\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n \n // Get the request line of the HTTP request message.\n String requestLine = br.readLine();\n\n // Display the request line.\n System.out.println();\n System.out.println(requestLine);\n \n // Get and display the header lines.\n String headerLine = null;\n while ((headerLine = br.readLine()).length() != 0) {\n System.out.println(headerLine);\n }\n \n // Close streams and socket.\n os.close();\n br.close();\n socket.close();\n }",
"private void packetHandler(int[] packet)\n {\n boolean startMemoryRead= true;\n if(packet[0]==Constants.STARTCHAR && packet[3]==Constants.ENDCHAR)\n {\n\n switch (packet[1]) {\n case Constants.LIGHTSENSVAL:\n messageView.append(\"Ljussensorvärde är\"+ packet[2] + \"\\n\");\n lightSensorValueView.setText(Integer.toString(packet[2]));\n break;\n case Constants.POTVAL:\n messageView.append(\"Potentiometervärde är\"+ packet[2] + \"\\n\");\n potSensorValueView.setText(Integer.toString(packet[2]));\n break;\n case Constants.MEMVAL:\n dataStream.add(packet[2]);\n break;\n case Constants.READMEMORY:\n switch (packet[2])\n {\n case Constants.BEGIN:\n startMemoryRead = true;\n messageView.append(\"Börjar läsa data\");\n break;\n case Constants.DONE:\n startMemoryRead = false;\n messageView.append(\"läst klart data\");\n GraphActivity.updateData(dataStream);\n break;\n\n }\n\n }\n }\n }",
"private void onRequestData(int tag) {\n \ttry {\n \t data = request.request();\n \t} catch(MatjiException e) {\n \t lastOccuredException = e;\n \t}\n }",
"public void parseParameter(byte[] data)\n {\n return; \n }",
"private void receiveData()\n {\n Intent i = getIntent();\n loginStatus = i.getIntExtra(\"Login_Status\", 0);\n deviceStatus = i.getIntExtra(\"Device_Status\", 0);\n }",
"public void recvSensorEvent(Object data_)\n\t{\n\t\tList<Tuple> event = ConstructSensingEvent((Message) data_) ;\n\t\tmicroLearner.handleSensorEvent(event);\t\t\n\t}",
"public void dataControl() {\n\t\tString name = \"\", xCor = \"\", yCor = \"\";\n\t\tname = _nameTf.getText().toString();\n\t\txCor = _xTf.getText().toString();\n\t\tyCor = _yTf.getText().toString();\n\n\t\t_missionTa.append(getCurrentTimeStamp() + \"\\n\");\n\n\t\tif (checkV(name, xCor, yCor)) {\n\t\t\tsendData(name, xCor, yCor);\n\t\t}\n\n\t\tclearText();\n\t}",
"public void process(){\n\n for(int i = 0; i < STEP_SIZE; i++){\n String tmp = \"\" + accData[i][0] + \",\" + accData[i][1] + \",\"+accData[i][2] +\n \",\" + gyData[i][0] + \",\" + gyData[i][1] + \",\" + gyData[i][2] + \"\\n\";\n try{\n stream.write(tmp.getBytes());\n }catch(Exception e){\n //Log.d(TAG,\"!!!\");\n }\n\n }\n\n /**\n * currently we don't apply zero-mean, unit-variance operation\n * to the data\n */\n // only accelerator's data is using, currently 200 * 3 floats\n // parse the 1D-array to 2D\n\n if(recognizer.isInRecognitionState() &&\n recognizer.getGlobalRecognitionTimes() >= Constants.MAX_GLOBAL_RECOGNITIOME_TIMES){\n recognizer.resetRecognitionState();\n }\n if(recognizer.isInRecognitionState()){\n recognizer.removeOutliers(accData);\n recognizer.removeOutliers(gyData);\n\n double [] feature = new double [FEATURE_SIZE];\n recognizer.extractFeatures(feature, accData, gyData);\n\n int result = recognizer.runModel(feature);\n String ret = \"@@@\";\n if(result != Constants.UNDEF_RET){\n if(result == Constants.FINISH_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(Constants.FINISH_INFO);\n waitForPlayout(1);\n recognizer.resetLastGesutre();\n recognizer.resetRecognitionState();\n ret += \"1\";\n }else if(result == Constants.RIGHT_RET){\n mUserWarningService.playSpeech(\"Step\" + Integer.toString(recognizer.getLastGesture()) + Constants.RIGHT_GESTURE_INFO);\n waitForPlayout(2000);\n mUserWarningService.playSpeech(\"Now please do Step \" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n ret += \"1\";\n }else if(result == Constants.ERROR_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getExpectedGesture());\n waitForPlayout(1);\n ret += \"0\";\n }else if(result == Constants.ERROR_AND_FORWARD_RET){\n mUserWarningService.playSpeech(Constants.WRONG_GESTURE_WARNING + recognizer.getLastGesture());\n waitForPlayout(1);\n if(recognizer.getExpectedGesture() <= Constants.STATE_SPACE){\n mUserWarningService.playSpeech(\n \"Step \" + recognizer.getLastGesture() + \"missing \" +\n \". Now please do Step\" + Integer.toString(recognizer.getExpectedGesture()));\n waitForPlayout(1);\n }else{\n recognizer.resetRecognitionState();\n mUserWarningService.playSpeech(\"Recognition finished.\");\n waitForPlayout(1);\n }\n\n\n ret += \"0\";\n }\n ret += \",\" + Integer.toString(result) + \"@@@\";\n\n Log.d(TAG, ret);\n Message msg = new Message();\n msg.obj = ret;\n mWriteThread.writeHandler.sendMessage(msg);\n }\n }\n\n }",
"@Override\n\tpublic void onEvent(String name, String params, byte[] data, int offset,\n\t\t\tint length) {\n\t\tString result = \"name:\" + name;\n\t\t//if(params != null && !params.isEmpty()){\n\t\t//\tresult+=\";params:\"+params;\n\t\t//}\n\t\tif(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_PARTIAL)){\n\t\t\tif(params.contains(\"\\\"final_result\\\"\")){\n\t\t\t\tresult += \"\\n\"+\"语义解析结果:\" + params.substring(45, 47);\n\t\t\t\tif(result.contains(\"前进\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了前进!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_FORWARD);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"后退\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了后退!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_BACKWARD);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"左转\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了左转!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_LEFT);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"右转\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了右转!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_RIGHT);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"停\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了停止!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_STOP);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"避障\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了避障!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_AVOID);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"跟踪\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了跟踪!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\ttry{\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\tsocketWriter= socket.getOutputStream();\n\t\t\t\t\t\tsocketWriter.write(COMM_FOLLOW);\n\t\t\t\t\t\tsocketWriter.flush();\n\t\t\t\t\t}\n\t\t\t\t\tcatch(Exception e){\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tToast.makeText(MainActivity.this, \"Try to send message to car!\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(result.contains(\"抓取\")){\n\t\t\t\t\tToast.makeText(MainActivity.this,\"识别出了抓取!\",Toast.LENGTH_SHORT).show();\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(MainActivity.this, GraspActivity.class);\n\t\t\t\t\tMainActivity.this.startActivity(intent);\n\t\t\t\t\tfinish();\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t}\n\t\t}else if(data != null){\n\t\t\tresult += \";data length=\" + data.length;\n\t\t}\n\t\t\n\t\t\n\t\t/*if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_READY)){\n\t\t\tresult +=\"引擎准备就绪,可以开始说话\";\n\t\t}else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_BEGIN)){\n\t\t\tresult += \"检测到用户已经开始说话\";\n\t\t}else if(name.equals(SpeechConstant.CALLBACK_EVENT_ASR_END)){\n\t\t\tresult += \"检测到用户已经停止说话\";\n\t\t\t\n\t\t}else if (data != null) {\n\t\t\tresult += \" ;data length=\" + data.length;\n }*/\n\t\n\t\t//show the result\n\t\tprintresult(result);\n\t\t\n\t}",
"private void read() throws IOException {\n // The first byte of every data frame\n int firstByte;\n\n // Loop until end of stream is reached.\n while ((firstByte = bis.read()) != -1) {\n // Data contained in the first byte\n // int fin = (firstByte << 24) >>> 31;\n // int rsv1 = (firstByte << 25) >>> 31;\n // int rsv2 = (firstByte << 26) >>> 31;\n // int rsv3 = (firstByte << 27) >>> 31;\n int opcode = (firstByte << 28) >>> 28;\n\n // Reads the second byte\n int secondByte = bis.read();\n\n // Data contained in the second byte\n // int mask = (secondByte << 24) >>> 31;\n int payloadLength = (secondByte << 25) >>> 25;\n\n // If the length of payload data is less than 126, that's the\n // final\n // payload length\n // Otherwise, it must be calculated as follows\n if (payloadLength == 126) {\n // Attempts to read the next 2 bytes\n byte[] nextTwoBytes = new byte[2];\n for (int i = 0; i < 2; i++) {\n byte b = (byte) bis.read();\n nextTwoBytes[i] = b;\n }\n\n // Those last 2 bytes will be interpreted as a 16-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{0, 0, nextTwoBytes[0], nextTwoBytes[1]};\n payloadLength = Utils.fromByteArray(integer);\n } else if (payloadLength == 127) {\n // Attempts to read the next 8 bytes\n byte[] nextEightBytes = new byte[8];\n for (int i = 0; i < 8; i++) {\n byte b = (byte) bis.read();\n nextEightBytes[i] = b;\n }\n\n // Only the last 4 bytes matter because Java doesn't support\n // arrays with more than 2^31 -1 elements, so a 64-bit\n // unsigned\n // integer cannot be processed\n // Those last 4 bytes will be interpreted as a 32-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{nextEightBytes[4], nextEightBytes[5], nextEightBytes[6],\n nextEightBytes[7]};\n payloadLength = Utils.fromByteArray(integer);\n }\n\n // Attempts to read the payload data\n byte[] data = new byte[payloadLength];\n for (int i = 0; i < payloadLength; i++) {\n byte b = (byte) bis.read();\n data[i] = b;\n }\n\n // Execute the action depending on the opcode\n switch (opcode) {\n case OPCODE_CONTINUATION:\n // Should be implemented\n break;\n case OPCODE_TEXT:\n notifyOnTextReceived(new String(data, Charset.forName(\"UTF-8\")));\n break;\n case OPCODE_BINARY:\n notifyOnBinaryReceived(data);\n break;\n case OPCODE_CLOSE:\n closeInternal();\n notifyOnCloseReceived();\n return;\n case OPCODE_PING:\n notifyOnPingReceived(data);\n sendPong(data);\n break;\n case OPCODE_PONG:\n notifyOnPongReceived(data);\n break;\n default:\n closeInternal();\n Exception e = new UnknownOpcodeException(\"Unknown opcode: 0x\" + Integer.toHexString(opcode));\n notifyOnException(e);\n return;\n }\n }\n\n // If there are not more data to be read,\n // and if the connection didn't receive a close frame,\n // an IOException must be thrown because the connection didn't close\n // gracefully\n throw new IOException(\"Unexpected end of stream\");\n }",
"public void processInput() {\n\n\t}",
"private static void ProcessObsValData(byte[] data) throws Exception{\n\t\tFloatType ft = new FloatType(0xFF000270);\n\t\t//System.out.println(\" byteValue: \" + getHexString(data));\n\t\tSystem.out.println(\" Value: \" + ft);\n\t}",
"private void checkBuffer() {\r\n\t\tint startpacket = 0;\r\n\t\tfor(int i=1; i<inBuffer.length-1; i++) {\r\n\t\t if(inBuffer[i] == (byte) 'A' && inBuffer[i+1] == (byte) '4') {\r\n\t\t byte[] onePart = PApplet.subset(inBuffer, startpacket, i-startpacket);\r\n\t\t parseInput(onePart);\r\n\t\t startpacket = i;\r\n\t\t }\r\n\t\t}\r\n\t\tbyte[] lastPart = PApplet.subset(inBuffer, startpacket, inBuffer.length-startpacket);\r\n\t\tboolean deletelastbuffer = parseInput(lastPart);\r\n\t\tif(deletelastbuffer) inBuffer = new byte[0];\r\n\t\telse inBuffer = PApplet.subset(lastPart,0);\r\n\t}",
"protected void displayReceivedData(UserInfo userInfo)\n {\n\n }",
"java.lang.String getData();",
"Object getRawData();",
"public void receiveData(Object[] incomingData) {\n //For each bit of incoming data, parse into locally defined objects.\n for(Object object : incomingData) {\n GetUsersFriendsByUUIDQuery.GetUserFriendsByUUID user = (GetUsersFriendsByUUIDQuery.GetUserFriendsByUUID)object;\n\n Post[] posts = new Post[user.posts.size()];\n\n //Parse posts\n for(int i = 0; i < user.posts().size(); i++) {\n posts[i] = new Post(user.posts().get(i).title(), user.posts().get(i).content());\n }\n //Create new user\n users.add(new User(user.userName(), user.firstName(), user.lastName(), user.description(), user.id(), posts));\n }\n\n //Apply the data to the list view\n ArrayAdapter<User> arrayAdapter = new ArrayAdapter<User>(\n this,\n android.R.layout.simple_list_item_1,\n users);\n //Update the ListView\n listView.setAdapter(arrayAdapter);\n }",
"private void fetchIncomingData() {\n Bundle bundle = getIntent().getExtras();\n if (bundle.containsKey(\"TAX_ID\") && bundle.containsKey(\"TAX_NAME\")) {\n INCOMING_TAX_NAME = bundle.getString(\"TAX_NAME\");\n INCOMING_TAX_ID = bundle.getString(\"TAX_ID\");\n if (INCOMING_TAX_ID != null) {\n new fetchTaxDetails().execute();\n } else {\n //TODO: SHOW AN ERROR\n }\n } else {\n //TODO: SHOW AN ERROR\n }\n }",
"public void processIncomingDataPacket(DatagramPacket packet)\n throws Exception {\n\n this.peerAddress = packet.sender().getAddress();\n this.peerPort = packet.sender().getPort();\n int packetLength = packet.data().length();\n\n // Read bytes and put it in a eueue.\n byte[] bytes = packet.data().getBytes();\n \n String test = new String(bytes);\n System.out.println(\"Get Message :\" + test);\n \n byte[] msgBytes = new byte[packetLength];\n System.arraycopy(bytes, 0, msgBytes, 0, packetLength);\n\n logger.log(LogWriter.TRACE_DEBUG, \"UDPMessageChannel: processIncomingDataPacket : peerAddress = \"\n + peerAddress.getHostAddress() + \"/\"\n + packet.sender().getPort() + \" Length = \" + packetLength);\n\n SIPMessage sipMessage;\n try {\n this.receptionTime = System.currentTimeMillis();\n sipMessage = myParser.parseSIPMessage(msgBytes, true, false, this); \n /*@see Issue 292 */\n if (sipMessage instanceof SIPRequest) {\n String sipVersion = ((SIPRequest)sipMessage).getRequestLine().getSipVersion();\n if (! sipVersion.equals(\"SIP/2.0\")) {\n Response versionNotSupported = ((SIPRequest) sipMessage).createResponse(Response.VERSION_NOT_SUPPORTED, \"Bad version \" + sipVersion);\n this.sendMessage(versionNotSupported.toString().getBytes(),peerAddress,packet.sender().getPort(),\"UDP\",false);\n return;\n }\n String method = ((SIPRequest) sipMessage).getMethod();\n String cseqMethod = sipMessage.getCSeqHeader().getMethod();\n\n if (!method.equalsIgnoreCase(cseqMethod)) {\n SIPResponse sipResponse = ((SIPRequest) sipMessage)\n .createResponse(SIPResponse.BAD_REQUEST);\n byte[] resp = sipResponse\n .encodeAsBytes(this.getTransport());\n this.sendMessage(resp,peerAddress,packet.sender().getPort(),\"UDP\",false);\n return;\n\n }\n }\n\n } catch (ParseException ex) {\n // myParser = null; // let go of the parser reference.\n logger.log(LogWriter.TRACE_DEBUG,\"Rejecting message ! \" + new String(msgBytes));\n logger.log(LogWriter.TRACE_DEBUG, \"error message \" + ex.getMessage());\n logger.logException(ex);\n\n // JvB: send a 400 response for requests (except ACK)\n // Currently only UDP,\n String msgString = new String(msgBytes, 0, packetLength);\n if (!msgString.startsWith(\"SIP/\") && !msgString.startsWith(\"ACK \")) {\n\n String badReqRes = createBadReqRes(msgString, ex);\n if (badReqRes != null) {\n logger.log(LogWriter.TRACE_DEBUG, \"Sending automatic 400 Bad Request:\" + badReqRes);\n try {\n this.sendMessage(badReqRes.getBytes(), peerAddress,\n packet.sender().getPort(), \"UDP\", false);\n } catch (IOException e) {\n logger.logException(e);\n }\n } else {\n logger.log(LogWriter.TRACE_DEBUG, \"Could not formulate automatic 400 Bad Request\");\n }\n }\n\n return;\n }\n // No parse exception but null message - reject it and\n // march on (or return).\n // exit this message processor if the message did not parse.\n\n if (sipMessage == null) {\n logger.log(LogWriter.TRACE_DEBUG, \"Rejecting message ! + Null message parsed.\");\n\n String key = packet.sender().getAddress().getHostAddress() + \":\"\n + packet.sender().getPort();\n if (pingBackRecord.get(key) == null\n && sipStack.getMinKeepAliveInterval() > 0) {\n byte[] keepAlive = \"\\r\\n\\r\\n\".getBytes();\n\n PingBackTimerTask task = new PingBackTimerTask(this.peerAddress.getHostAddress(),\n this.getPort());\n\n pingBackRecord.put(key, task);\n\n this.sipStack.getTimer().schedule(task,\n sipStack.getMinKeepAliveInterval() * 1000);\n\n sipStack.ioHandler.sendBytes(this.messageProcessor.getIpAddress(),\n this.peerAddress, this.peerPort, Transport.UDP,\n keepAlive,false);\n } else {\n logger.logDebug(\"Not sending ping back\");\n }\n return;\n }\n Via topMostVia = sipMessage.getTopmostVia();\n // Check for the required headers.\n if (sipMessage.getFrom() == null || sipMessage.getTo() == null\n || sipMessage.getCallId() == null\n || sipMessage.getCSeq() == null || topMostVia == null) {\n\n String badmsg = new String(msgBytes);\n logger.log(LogWriter.TRACE_ERROR, \"bad message \" + badmsg);\n logger.log(LogWriter.TRACE_ERROR, \">>> Dropped Bad Msg \" + \"From = \"\n + sipMessage.getFrom() + \"To = \"\n + sipMessage.getTo() + \"CallId = \"\n + sipMessage.getCallId() + \"CSeq = \"\n + sipMessage.getCSeq() + \"Via = \"\n + sipMessage.getViaHeaders());\n return;\n }\n\n if(sipStack.sipEventInterceptor != null) {\n sipStack.sipEventInterceptor.beforeMessage(sipMessage);\n }\n // For a request first via header tells where the message\n // is coming from.\n // For response, just get the port from the packet.\n if (sipMessage instanceof SIPRequest) {\n Hop hop = sipStack.addressResolver.resolveAddress(topMostVia\n .getHop());\n this.peerPort = hop.getPort();\n this.peerProtocol = topMostVia.getTransport();\n\n this.peerPacketSourceAddress = packet.sender().getAddress();\n this.peerPacketSourcePort = packet.sender().getPort();\n try {\n this.peerAddress = packet.sender().getAddress();\n // Check to see if the received parameter matches\n // the peer address and tag it appropriately.\n\n boolean hasRPort = topMostVia.hasParameter(Via.RPORT);\n if (hasRPort\n || !hop.getHost().equals(\n this.peerAddress.getHostAddress())) {\n topMostVia.setParameter(Via.RECEIVED, this.peerAddress\n .getHostAddress());\n }\n\n if (hasRPort) {\n topMostVia.setParameter(Via.RPORT, Integer\n .toString(this.peerPacketSourcePort));\n }\n } catch (java.text.ParseException ex1) {\n InternalErrorHandler.handleException(ex1);\n }\n\n } else {\n\n this.peerPacketSourceAddress = packet.sender().getAddress();\n this.peerPacketSourcePort = packet.sender().getPort();\n this.peerAddress = packet.sender().getAddress();\n this.peerPort = packet.sender().getPort();\n this.peerProtocol = topMostVia.getTransport();\n }\n\n this.processMessage(sipMessage);\n if(sipStack.sipEventInterceptor != null) {\n sipStack.sipEventInterceptor.afterMessage(sipMessage);\n }\n }",
"DataHandler getDataHandler();",
"public void processReq(){\n //Using auto cloable for reader ;)\n try( BufferedReader reader = new BufferedReader(new InputStreamReader(clientSock.getInputStream()))){\n String mess = reader.readLine();\n String returnMess = getData(mess);\n\n PrintWriter writer = new PrintWriter(clientSock.getOutputStream());\n writer.println(returnMess);\n writer.flush();\n\n //Close sockets\n clientSock.close();\n sock.close();\n } catch (IOException e) {\n System.err.println(\"ERROR: Problem while opening / close a stream\");\n }\n }",
"@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\t\n\t // Make sure the request was successful\n\t if (resultCode == RESULT_OK) {\n\t Bundle resultBundle = data.getExtras();\n\t String decodedData = resultBundle.getString(\"DATA_RESULT\");\n\t String scanAction = resultBundle.getString(\"SCAN_ACTION\");\n\t\t \n\t\t if(scanAction != null && scanAction.equalsIgnoreCase(SCAN_TYPE)){\n\t\t\t // With the decoded data use session.get entity etc... then call server to get entity info\n\t\t\t try{\n\t\t\t\t processData(decodedData);\n\t\t\t }catch(Exception e){\n\t\t\t\t Toast.makeText(this, \"Unknown barcode format: please scan a valid barcode\", Toast.LENGTH_LONG).show();\n\t\t\t\t launchScanner(SCAN_TYPE);\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t Toast.makeText(this, \"NO SCANNING ACTION\", Toast.LENGTH_LONG).show();\n\t\t\t launchScanner(SCAN_TYPE);\n\t\t }\n\t\t \n\t }else{\n\t\t finish();\t\t \n\t }\t \n\t}",
"public void parse(InputStream in, RecordListener listener) throws IOException {\n\t\tif (in == null)\n\t\t\tthrow new NullPointerException(\"in\");\n\t\tif (listener == null)\n\t\t\tthrow new NullPointerException(\"listener\");\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\n\t\tString line = null;\n\t\tint count = -1; // Number of expected genotype calls per line.\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\ttry {\n\t\t\t\tSampleRecord record = new ParsedSampleRecord(line);\n\t\t\t\tlistener.handleParsedRecord(record);\n\t\t\t\tif (count == -1) { // Initialize count to number of calls in the first line.\n\t\t\t\t\tcount = record.getNumberOfAvailableGenotypeCalls();\n\t\t\t\t}\n\t\t\t\telse { // Kind of kludgy, but probably ok for now.\n\t\t\t\t\tif (count != record.getNumberOfAvailableGenotypeCalls()) {\n\t\t\t\t\t\tSystem.err.println(count);\n\t\t\t\t\t\tSystem.err.println(record.getNumberOfAvailableGenotypeCalls());\n\t\t\t\t\t\tSystem.err.println(line);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (RuntimeException e) {\n\t\t\t\tlistener.handleBadRecordFormat(line);\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"public void readData() throws IOException {\n // as long as there are stuff left, keep reading by sets, which are\n // pairs of description + answer\n while (hasNext()) {\n counter++;\n readSet();\n }\n }",
"private void parseAndPopulate(String in) {\r\n\t\tIParser parser = new AbbyyOCRDataParser(in);\r\n\t\tocrData = parser.parse();\r\n\t\tStore.addData(ocrData);\r\n\t\t\r\n\t\tEditText np = (EditText)findViewById(R.id.patient_et);\r\n\t\tEditText nm = (EditText)findViewById(R.id.medicine_et);\r\n\t\tEditText cd = (EditText)findViewById(R.id.consumption_et);\r\n\t\t\r\n\t\tPatient2Medicine p2m = ocrData.getPatient2Medicine();\r\n\t\tnp.setText(ocrData.getPatient().getName());\r\n\t\tnm.setText(ocrData.getMedicine().getMedicine());\r\n\t\tcd.setText(p2m.getFrequencyOfIntake()\r\n\t\t\t\t+ \" \" + p2m.getQuantityPerIntake() + \" by \" + p2m.getMode());\r\n\t\t\r\n\t}",
"@Override\n public void handleMessage(Message msg){\n switch (msg.what) {\n case PSensor.MESSAGE_STATE_CHANGE:\n break;\n case PSensor.MESSAGE_WRITE:\n break;\n case PSensor.MESSAGE_READ:\n PSensor.sensorData.parseInput((byte[])msg.obj);//parseInput((byte[])msg.obj);\n multiGauge.handleSensor(PSensor.sensorData.boost);\n multiGaugeVolts.handleSensor(PSensor.sensorData.batVolt);\n break;\n case PSensor.MESSAGE_DEVICE_NAME:\n break;\n case PSensor.MESSAGE_TOAST:\n break;\n default:\n break;\n }\n }",
"private void receive() {\r\n\t\ttry {\r\n\t\t\trcvpkt = filter.read();\t\t\t\t\t\t\t// Simulates Transfer-Failures and Errors in the received data\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"private byte[] Parse(byte[] arr)\r\n\t{\r\n\t\tbyte[] invalid = {0};\r\n\t\tif(arr[1] == 1) {\r\n\t\t\tSystem.out.println(\"***Packet Parsing***\");\r\n\t\t System.out.println(\"'Packet is a Read Request' \\n\");\r\n\t\t\tbyte[] read = {0, 3, 0, 1};\r\n\t\t\treturn read;\r\n\t\t}\r\n\t\telse if(arr[1] == 2) {\r\n\t\t\tSystem.out.println(\"***Packet Parsing***\");\r\n\t\t System.out.println(\"'Packet is a Write Request' \\n\");\r\n\t\t\tbyte[] write = {0, 4, 0, 0};\r\n\t\t\treturn write;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"***Packet Parsing***\");\r\n\t\t System.out.println(\"'Invalid Request'\");\r\n\t\t currentStatus = false;\r\n\t\t\treturn invalid;\r\n\t\t}\r\n\t}",
"protected abstract void _analyze(Object input, Consumer<Analysis> collector);",
"void onParsableDataResult(List<T> parsableData);",
"@Override\r\n public void handle(Buffer inBuffer) {\n \tlogger.debug(name_log + \"----------------------------------------------------------------------------\");\r\n \t//logger.debug(name_log + \"incoming data: \" + inBuffer.length());\r\n String recvPacket = inBuffer.getString(0, inBuffer.length());\r\n \t\r\n //logger.debug(name_log + \"read data: \" + recvPacket);\r\n logger.info(name_log + \"RECV[\" + recvPacket.length() + \"]> \\n\" + recvPacket + \"\\n\");\r\n \r\n \r\n // -- Packet Analyze ----------------------------------------------------------------\r\n // Writing received message to event bus\r\n\t\t\t\t\r\n JsonObject jo = new JsonObject();\r\n \r\n jo.put(\"recvPacket\", recvPacket);\r\n \r\n eb.send(\"PD_Trap\" + remoteAddr, jo);\r\n\r\n // -- RESPONSE, Send Packet to Target -----------------------------------------------\r\n eb.consumer(remoteAddr + \"Trap_ACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_ACK\");\r\n });\r\n \r\n eb.consumer(remoteAddr + \"Trap_NACK\", message -> {\r\n \twriteToTarget(message.body().toString(), \"Trap_NACK\");\r\n });\r\n \r\n }",
"@Override\n public void dataAvailable(byte[] data, Connection ignoreMe) {\n // Now get the data, and send it back to the listener.\n try {\n disconnect(ignoreMe);\n Message message = NonblockingResolver.parseMessage(data);\n\n if (message != null && LOG.isTraceEnabled()) {\n LOG.trace(\"dataAvailable(\" + data.length + \" bytes)\");\n LOG.trace(message);\n }\n\n NonblockingResolver.verifyTSIG(query, message, data, tsig);\n // Now check that we got the whole message, if we're asked to do so\n if (!tcp && !ignoreTruncation\n && message.getHeader().getFlag(Flags.TC)) {\n // Redo the query, but use tcp this time.\n tcp = true;\n // Now start again with a TCP connection\n startConnect();\n return;\n }\n if (query.getHeader().getID() != message.getHeader().getID()) {\n// System.out.println(\"Query wrong id! Expected \" + query.getHeader().getID() + \" but got \" + message.getHeader().getID());\n return;\n }\n returnResponse(message);\n } catch (IOException e) {\n returnException(e, null);\n }\n }",
"private Map<String, Map<String, String>> getEventsFromAnXML(Activity activity)throws XmlPullParserException, IOException {\n\t\tMap<String, Map<String, String>>detailMap = new HashMap<String, Map<String,String>>();\n//\t\tStringBuffer stringBuffer = new StringBuffer();\n\t\tResources res = activity.getResources();\n//\t\tXmlResourceParser xpp = res.getXml(R.xml.vacc_detail_eng);\n\t\tXmlResourceParser xpp = MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?res.getXml(R.xml.vacc_detail_hnd):res.getXml(R.xml.vacc_detail_eng);\n\t\txpp.next();\n\t\tint eventType = xpp.getEventType();\n\t\tString name = \"sorry\";\n\t\tString text = \"sorry\";\n\t\tHashMap<String, String>map= new HashMap<String, String>();\n\t\twhile (eventType != XmlPullParser.END_DOCUMENT) {\n\t\t\tif (eventType == XmlPullParser.START_TAG) {\n\t\t\t\tname = xpp.getName();\n\n\t\t\t\tif(name.equals(\"VaccId\")){\n\t\t\t\t\tmap= new HashMap<String, String>();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (eventType == XmlPullParser.TEXT) {\n\t\t\t\ttext = xpp.getText();\n //System.out.println(\"Parsing \"+name +\" Value \"+text);\n\t\t\t}\n\t\t\tif (eventType == XmlPullParser.END_TAG) {\n\t\t\t\tif(xpp.getName().equals(\"VaccId\")){\n//\t\t\t\t\tpreArrayList.add(map);\n\t\t\t\t\tdetailMap.put(map.get(\"VaccName\"), map);\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (name.equals(\"VaccName\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"VaccMessage\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AdministrationMSG\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\n\t\t\t\tif (name.equals(\"AboutMsg\")) {\n\t\t\t\t\tmap.put(name, text);\n\t\t\t\t\tname = \"\";\n\t\t\t\t\ttext=\"\";\n\t\t\t\t}\t\t\t\n\t\t\t}\n System.out.println(\"In Xml....\"+detailMap);\n\t\t\teventType = xpp.next();\n\t\t}\n\t\treturn detailMap;\n\t}",
"public final void process() {\n parseReport();\n checkThreshold();\n updateQualityXML();\n }",
"protected abstract DataTypes[] processLine(MutableCharArrayString line);"
] | [
"0.71599716",
"0.6329067",
"0.6325892",
"0.6175798",
"0.61198086",
"0.60694873",
"0.6062876",
"0.60440916",
"0.6004658",
"0.5967433",
"0.58078337",
"0.5803986",
"0.57656854",
"0.5765085",
"0.57514423",
"0.5723763",
"0.5713147",
"0.5680758",
"0.56588405",
"0.56569475",
"0.56453615",
"0.5633742",
"0.5616779",
"0.56101805",
"0.56066895",
"0.55839485",
"0.5554779",
"0.5550092",
"0.5546641",
"0.5525328",
"0.5523616",
"0.55140185",
"0.55119383",
"0.5499028",
"0.54963917",
"0.5483599",
"0.547613",
"0.5469629",
"0.54645574",
"0.5445528",
"0.54431003",
"0.5426834",
"0.54197824",
"0.5417166",
"0.54123294",
"0.54063827",
"0.53927785",
"0.5386589",
"0.53760076",
"0.5372479",
"0.5369269",
"0.53610724",
"0.5356027",
"0.53184927",
"0.53164965",
"0.5314844",
"0.53127515",
"0.53096235",
"0.5307194",
"0.530583",
"0.5298966",
"0.5295954",
"0.5288227",
"0.5287978",
"0.528619",
"0.5282141",
"0.5279348",
"0.52745885",
"0.52646446",
"0.5263442",
"0.5258725",
"0.5256736",
"0.52380943",
"0.5237899",
"0.52356803",
"0.5224107",
"0.5219147",
"0.52123487",
"0.52104676",
"0.5206519",
"0.52036697",
"0.51981115",
"0.5197722",
"0.519572",
"0.5195078",
"0.51898736",
"0.51801884",
"0.51780725",
"0.5176084",
"0.5172081",
"0.5170567",
"0.51618826",
"0.51553285",
"0.51511776",
"0.51393205",
"0.5137166",
"0.5136983",
"0.5136565",
"0.5131121",
"0.51292676",
"0.51280856"
] | 0.0 | -1 |
Add your initialization code here | private void parseInit() {
Parse.initialize(this, "gFWZRPLmGg1MRH8TeCNAg4erKgcWrk5OO4uqyJ67","Y8y3WoqfW4pEjSCpYqKBLVnYERvcqmL2GpDQEVf5");
registerParseObjects();
PushService.setDefaultPushCallback(this, PushNotificationActivity.class);
// setInstallationParams(null, false);
Parse.setLogLevel(Parse.LOG_LEVEL_VERBOSE);
// ParseUser.enableAutomaticUser();
ParseACL defaultACL = new ParseACL();
// defaultACL.setPublicReadAccess(true);// If you would like all objects
// to be private by default, remove this line.
ParseACL.setDefaultACL(defaultACL, true); // data is private by default
// unless said otherwise
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\t\n\t}",
"private void initialize() {\n\t}",
"private void initialize() {\n }",
"private void init() {\n\n\t}",
"private void init() {\n\n\n\n }",
"public void initialize(){\n\t\t//TODO: put initialization code here\n\t\tsuper.initialize();\n\t\t\n\t}",
"protected void initialize() {\n \t\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"public void init(){\n \n }",
"public void init() {\n \n }",
"public void init() {\r\n\r\n\t}",
"protected void initialize()\n\t{\n\t}",
"public void initialize() {\n // TODO\n }",
"protected void init() {\n // to override and use this method\n }",
"protected void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\t\t\n\t}",
"protected void initialize() {\n\n\t}",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"public void initialize() {\r\n }",
"public void init() {\n\t\n\t}",
"protected void initialize()\r\n {\n }",
"protected void initialize() {\r\n }",
"protected void initialize() {\r\n }",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"protected void init() {\n\t}",
"protected void init() {\n\t}",
"public void init() {\n\t\t}",
"protected void initialize() {\n\n }",
"public void init() {\n\t\t\n\t}",
"protected void initialize() {\n\t}",
"public void initialize() {\n\t}",
"public void initialize() {\n\t}",
"public void init() {}",
"public void init() {}",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"protected void initialize() {\n }",
"public void initialize() {\n }",
"public void initialize()\n {\n }",
"protected void init() {\n }",
"public void initialize () {\n\n }",
"public void initialize() {\n // empty for now\n }",
"public void initialize() {\n }",
"protected void init(){\n }",
"public void initialize () {\n }",
"public void init() {\n\r\n\t}",
"public void init() {\n\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tpublic void init() {\n\t\t// Nothing to do in this example\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\n\t}",
"public void init() {\r\n\t\t// to override\r\n\t}",
"protected void _init(){}",
"public static void init() {\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}",
"private void _init() {\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"public void init() {\n }",
"@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n public void initialize() {\n \n }",
"@Override\r\n public void initialize()\r\n {\n }",
"@Override\r\n\tpublic void init() {}",
"public void init() {\n\n }",
"public void init() {\n\n }",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"public static void init() {\n\n }",
"public void init() {\n\t\t \r\n\t\t }",
"@Override\n\tpublic void initialize() {\n\t\t\n\t}",
"@Override\n public void initialize() {\n\n }"
] | [
"0.7903482",
"0.7884381",
"0.7875424",
"0.78655183",
"0.7844948",
"0.78390205",
"0.7833755",
"0.78274876",
"0.78274876",
"0.78224546",
"0.7822133",
"0.77985644",
"0.77957034",
"0.7775906",
"0.77747416",
"0.7754356",
"0.7754356",
"0.7749872",
"0.7741338",
"0.7740712",
"0.7740712",
"0.7740712",
"0.7740712",
"0.772845",
"0.77210593",
"0.7711299",
"0.7710949",
"0.7710949",
"0.77098167",
"0.77098167",
"0.77098167",
"0.7698949",
"0.7698949",
"0.7696703",
"0.76728874",
"0.7666711",
"0.7659723",
"0.76461947",
"0.76461947",
"0.7635246",
"0.7635246",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.7634325",
"0.76244915",
"0.7621885",
"0.7619373",
"0.7607125",
"0.7606861",
"0.7600632",
"0.7599784",
"0.7599009",
"0.7589503",
"0.7589503",
"0.7579675",
"0.75648063",
"0.75617665",
"0.75617665",
"0.75617665",
"0.7556374",
"0.7553012",
"0.75510186",
"0.7536849",
"0.7536849",
"0.7536849",
"0.75334305",
"0.75231665",
"0.75231665",
"0.75227755",
"0.75227755",
"0.75227755",
"0.75227755",
"0.75211895",
"0.7517312",
"0.75149536",
"0.7509252",
"0.75074404",
"0.75028855",
"0.75028855",
"0.7492977",
"0.74870867",
"0.7480832",
"0.74746597",
"0.74720377",
"0.74617076",
"0.7455385"
] | 0.0 | -1 |
if (mUser == null) mUser = new User(); | private void initUser() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initObjects() {\n databaseHelper = new DatabaseHelper(activity);\n dbHelper = new DBHelper(activity);\n inputValidation = new InputValidation(activity);\n progress = new ProgressDialog(activity);\n user=new User();\n }",
"public User() {\n name = \"\";\n }",
"public void setUser(User user) { this.user = user; }",
"public User() {\r\n }",
"private void initObjects() {\n inputValidation = new InputValidation(activity);\n databaseHelper = new DatabaseHelper(activity);\n user = new User();\n }",
"public User() {\r\n \r\n }",
"public ActivityUser() {\n }",
"public User()\n\t{\n\t}",
"public User(){\r\n this.id = 0;\r\n this.firstName = null;\r\n this.lastName = null;\r\n }",
"public UserMember() {\r\n //this.email = \"user@user.com\";\r\n this.email = \"\";\r\n this.firstName = \"\";\r\n this.lastName = \"\";\r\n this.username = \"\";\r\n this.password = \"\";\r\n this.memberId = 0;\r\n }",
"public User() { }",
"public User() {\r\n\t\tuName = null;\r\n\t\tpassword = null;\r\n\t\tfullName = null;\r\n\t\tphone = null;\r\n\t\temail = null;\r\n\t}",
"public User() {\n\tsuper();\n}",
"public User() {}",
"public User() {}",
"public User() {}",
"public User() {\r\n\t}",
"public User() {\r\n\r\n\t}",
"private void getUser(){\n user = new User();\n SharedPreferences preferences = getSharedPreferences(\"account\", MODE_PRIVATE);\n user.setId(preferences.getInt(\"id\", 0));\n user.setPhone(preferences.getString(\"phone\", \"\"));\n user.setType(preferences.getInt(\"type\",0));\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"public User() {\n }",
"private User() {}",
"public User() {\n super();\n }",
"public User() {\n super();\n }",
"public UserModel()\r\n\t{\r\n\t}",
"public Register() {\n user = new User();\n em = EMF.createEntityManager();\n valid = false;\n }",
"public User() {\n\n }",
"public User() {\n\t}",
"public void initUser(ActiveSession user) {\n this.user = user;\n }",
"public User() {\n this.username = \"test\";\n }",
"private User() {\n }",
"public User()\r\n\t{\r\n\t\tthis.userId = 0;\r\n\t\tthis.userName = \"\";\r\n\t\tthis.role = \"\";\r\n\t\tthis.firstName = \"\";\r\n\t\tthis.lastName = \"\";\r\n\t\tthis.emailAddress = \"\";\r\n\t\tthis.streetAddress = \"\";\r\n\t\tthis.city = \"\";\r\n\t\tthis.state = \"\";\r\n\t\tthis.zip = 0;\r\n\t\tthis.country = \"\";\r\n\t}",
"public User user(User user) {\n return null;\n }",
"public UserModel() {\n }",
"public TestUser() {//NOPMD\n }",
"public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }",
"public GameUser() {\n\t}",
"public User(){}",
"public User(){}",
"public User(){}",
"public User() {\n log.debug(\"Create a User object\");\n }",
"public User() {\n uid= 0;\n username = \"\";\n password = \"\";\n role = \"user\";\n status = false;\n updatedTime = new Timestamp(0);\n }",
"public User() {\n username = null;\n password = null;\n email = null;\n firstName = null;\n lastName = null;\n gender = null;\n personID = null;\n }",
"public User(){\n }",
"public User() {\n this.inv = new Inventory();\n this.fl = new FriendList();\n this.tradesList = new TradesList();\n this.tradeCount = 0;\n this.downloadsEnabled = true;\n }",
"public UserManager() {\n }",
"public User() {\n }",
"public UserData() {\n }",
"public UserInfo() {\n }",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\t\tsuper();\n\t}",
"public User() {\n\n\t}",
"User()\n\t{\n\n\t}",
"public DummyUserManager()\n {\n }",
"public UserAccount() {\n }",
"public User(){\n\n }",
"public User(String n) { // constructor\r\n name = n;\r\n }",
"@UiThreadTest\r\n public void testUserNotNull() {\r\n Intent loginIntent = new Intent();\r\n PomoUser user = new PomoUser(\"9a36d2f9018aacde1430411867961\", \"test\", \"1\", false, true, 1, 1);\r\n loginIntent.putExtra(ExtraName.POMO_USER, user);\r\n mainActivity.onActivityResult(1, Activity.RESULT_OK, loginIntent);\r\n assertNotNull(mainActivity.getUser());\r\n }",
"private void checkForUser(){\n if(mUserId != -1){\n return;\n }\n\n if(mPreferences == null) {\n getPrefs();\n }\n\n mUserId = mPreferences.getInt(USER_ID_KEY, -1);\n\n if(mUserId != -1){\n return;\n }\n\n //do we have any users at all?\n List<User> users = mUserDAO.getAllUsers();\n if(users.size() <= 0 ){\n User defaultUser = new User(\"din_djarin\",\"baby_yoda_ftw\");\n mUserDAO.insert(defaultUser);\n }\n }",
"private User(){\n\n }",
"public UserDAO() {\r\n\t\tsuper();\r\n\t\tthis.userStore.put(\"user\", new User(\"user\", \"user\"));\r\n\t}",
"public Login() {\n usuario = new Usuario2();\n }",
"public User getUser(){return this.user;}",
"public UserModel()\n\t{}",
"public void newUser(User user);",
"public UserProfile() {}",
"public UserManagementImpl() {\r\n this.login = new LoginImpl();\r\n this.signUp = new SignUpImpl();\r\n }",
"public User(){\n this(null, null);\n }",
"public UserDAO() {\n }",
"private void loadUserData() {\n\t\tuserData = new UserData();\n }",
"public DbUser() {\r\n\t}",
"public void setUser(@Nullable final User user) {\n mUser = user;\n }",
"public User getCreateUser()\r\n/* */ {\r\n/* 144 */ return this.createUser;\r\n/* */ }",
"private UserManagerImpl()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\t// set the singleton instance of UserManagerImpl class in the UserManager so that\r\n\t\t// UserManager.getInstance() also points to the singleton instance of UserManagerImpl \r\n\t\tsetInstance(this);\r\n\t}",
"public UserService() {\n }",
"@Override\r\n\tpublic User getModel() {\n\t\tuser = new User();\r\n\t\treturn user;\r\n\t}",
"private void initUserInstance(User user){\n Fridge fridge = DatabaseHelper.getDatabaseInstance().takeFridgeOfUser(user);\n //print the printable\n Log.i(\"login_fridge\", fridge.toString());\n //assign fridge to user\n user.setFridge(fridge);\n\n //populate Instance class with current user\n Instance.getSingletonInstance().setCurrentUser(user);\n }",
"public User(){\n nomorAkun = 0;\n pin = 0;\n saldo = 0;\n }",
"public User()\n\t{\n\t\tfirstName = \"\";\n\t\tlastName = \"\";\n\t\tusername = \"\";\n\t\tpassword = \"\";\n\t}",
"public void setUser(String user)\n {\n _user = user;\n }",
"public User() {\r\n this(\"\", \"\");\r\n }",
"public UserModel(){\n ID = 0; // The user's ID, largely used in conjuction with a database\n firstName = \"fname\"; //User's first name\n lastName = \"lname\"; // User's last name\n password= \"pass\"; ///User password\n username = \"testuser\"; //Valid email for user\n role = 0; //Whether the user is a typical user or administrator\n status = 0; //Whether the user is active or disabled\n }",
"private void clearObjUser() { objUser_ = null;\n \n }",
"public void setUser(User user) {\r\n this.user = user;\r\n }",
"private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }",
"public UserDAO()\n {\n \n }",
"public static void test(User user) {\n\t\t User u=new User();\n\t\t u=user;\n\t\t u.setName(\"ruoshui\");\n\t }",
"private void clearUser() { user_ = null;\n \n }"
] | [
"0.6734471",
"0.6617233",
"0.6548706",
"0.6543194",
"0.6542092",
"0.6519755",
"0.6515557",
"0.6495552",
"0.64933455",
"0.6482469",
"0.64810216",
"0.64803076",
"0.6476669",
"0.64654386",
"0.64654386",
"0.64654386",
"0.6442769",
"0.6436221",
"0.6419652",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.64163727",
"0.63885087",
"0.6358534",
"0.6358534",
"0.6358027",
"0.6347872",
"0.6333573",
"0.6323224",
"0.6316258",
"0.6315586",
"0.631177",
"0.6303691",
"0.63029635",
"0.6301029",
"0.6300304",
"0.6294912",
"0.6284225",
"0.6269702",
"0.6269702",
"0.6269702",
"0.6257783",
"0.6252112",
"0.6247188",
"0.6236803",
"0.6217555",
"0.62174404",
"0.6207391",
"0.62043023",
"0.62040716",
"0.6190955",
"0.6190955",
"0.6190955",
"0.61897266",
"0.61629164",
"0.6151293",
"0.61507756",
"0.61368155",
"0.61285037",
"0.6111969",
"0.61043084",
"0.60899246",
"0.60830915",
"0.6076329",
"0.60731924",
"0.60692084",
"0.6063052",
"0.6050596",
"0.6046556",
"0.6046372",
"0.6020606",
"0.60174066",
"0.6009584",
"0.6005469",
"0.59948546",
"0.59882003",
"0.5978378",
"0.5974452",
"0.5966845",
"0.59576136",
"0.594962",
"0.5943856",
"0.5936988",
"0.5936674",
"0.59274334",
"0.5927233",
"0.5910076",
"0.5908571",
"0.5907729",
"0.59043264"
] | 0.64609087 | 16 |
This configuration tuning is custom. You can tune every option, you may tune some of them, or you can create default configuration by ImageLoaderConfiguration.createDefault(this); method. | public static void initImageLoader(Context context) {
File cacheDir = StorageUtils.getCacheDirectory(context);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)
.threadPriority(Thread.NORM_PRIORITY - 2)
.denyCacheImageMultipleSizesInMemory()
// .discCache(new UnlimitedDiscCache(cacheDir)) // default
.discCacheFileNameGenerator(new Md5FileNameGenerator())
.memoryCache(new LruMemoryCache(2 * 1024 * 1024))
.tasksProcessingOrder(QueueProcessingType.LIFO)
.writeDebugLogs() // Remove for release app
.build();
// Initialize ImageLoader with configuration.
ImageLoader.getInstance().init(config);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void tuningInit() {\n\n }",
"public void customConfig() {\n KConfig kConfig = new KConfig.KConfigBuilder()\n .heapRatio(85.0f) //heap occupied ration in percent, 85.0f means use 85% memory of max heap\n .rootDir(this.getCacheDir().getAbsolutePath()) //root dir stores report and hprof files\n .heapOverTimes(3) //heap max times of over heap's used threshold\n .build();\n KOOM.getInstance().setKConfig(kConfig);\n }",
"public abstract Builder setImageProcessingOptions(ImageProcessingOptions value);",
"public Configuration() {\r\n\t\t\tmaxEffectiveWorker = (Runtime.getRuntime().availableProcessors()*3/2) + 2;\r\n\t\t\tmaxPhysicalWorker = Math.max(32, (maxEffectiveWorker * 2) + 2);\r\n\t\t}",
"@Override\n public void configure(Configuration conf) {\n this.convergenceRate = conf.getDouble(\"ConvergenceRate\");\n\n }",
"public APIConfig() {\r\n starvation = 5;\r\n moveGeneration = 30;\r\n huntingSites = 3;\r\n populationSize = 20;\r\n maxIterations = 300;\r\n minAcceptableError = 0;\r\n gradientWeight = 0.0;\r\n debugOn = false;\r\n }",
"public void configure(Configuration config) {\r\n learner = config.get(\"classifier\");\r\n if(learner == null)\r\n throw new IllegalArgumentException(\"No weka classifier specified. Make sure a 'classifier' property is specified.\");\r\n classifier = classifiers.get(learner);\r\n if(classifier == null)\r\n throw new IllegalArgumentException(\"Invalid weka classifier name of '\"+learner+\"' - must be one of \"+ArrayUtil.asString(classifiers.getValidNames()));\r\n\r\n super.configure(config);\r\n\r\n logger.config(\" \"+this.getClass().getName()+\"[\"+getName()+\"] configure: weka-classifier[\"+learner+\"]=\"+classifier);\r\n\r\n if(config.containsKey(\"options\"))\r\n {\r\n try\r\n {\r\n classifier.setOptions(config.get(\"options\").split(\" \"));\r\n }\r\n catch(Exception ex)\r\n {\r\n throw new RuntimeException(\"Failed to initialize \"+this.getClass().getName(),ex);\r\n }\r\n }\r\n }",
"@Override\n public Sampler<?> apply(ConfigurationAdapter conf) {\n Map<String, String> items = new HashMap<String, String>();\n items.put(ProbabilitySampler.SAMPLER_FRACTION_CONF_KEY,\n conf.get(QueryServices.TRACING_PROBABILITY_THRESHOLD_ATTRIB, Double.toString(QueryServicesOptions.DEFAULT_TRACING_PROBABILITY_THRESHOLD)));\n return new ProbabilitySampler(HTraceConfiguration.fromMap(items));\n }",
"public Config() {\n\t\tlambda = 5.0;\n\t\tnu = 1.3;\n\t\tlimit = 0.0001;\n\t\titerationLimit = 0;\n\t }",
"private void addConfigParamsFromConfig(\n final OkHttpClient.Builder builder,\n final GenieNetworkConfiguration genieNetworkConfiguration\n ) {\n if (genieNetworkConfiguration.getConnectTimeout() != GenieNetworkConfiguration.DEFAULT_TIMEOUT) {\n builder.connectTimeout(genieNetworkConfiguration.getConnectTimeout(), TimeUnit.MILLISECONDS);\n }\n\n if (genieNetworkConfiguration.getReadTimeout() != GenieNetworkConfiguration.DEFAULT_TIMEOUT) {\n builder.readTimeout(genieNetworkConfiguration.getReadTimeout(), TimeUnit.MILLISECONDS);\n }\n\n if (genieNetworkConfiguration.getWriteTimeout() != GenieNetworkConfiguration.DEFAULT_TIMEOUT) {\n builder.writeTimeout(genieNetworkConfiguration.getWriteTimeout(), TimeUnit.MILLISECONDS);\n }\n\n builder.retryOnConnectionFailure(genieNetworkConfiguration.isRetryOnConnectionFailure());\n }",
"@Override\n public void applyOptions(Context context, GlideBuilder builder) {\n builder.setDecodeFormat(DecodeFormat.PREFER_RGB_565);\n builder.setDiskCache(new DiskLruCacheFactory(Environment.getExternalStorageDirectory()\n .getAbsolutePath(), \"jake/cache/.image\", DISK_CACHE_SIZE));\n // builder.setDiskCache(new DiskLruCacheFactory(\n // Environment.getExternalStorageDirectory().getAbsolutePath(),\"jake/cache/.image\",DISK_CACHE_SIZE));\n // builder.setDiskCacheService(new FifoPriorityThreadPoolExecutor(10));\n // builder.setResizeService(new FifoPriorityThreadPoolExecutor(3));\n }",
"public E4KTunerConfiguration()\n\t{\n\t\tthis( \"Default\" );\n\t}",
"public void setDefaultSettings()\n {\n this.IndexerEffort = 0;\n this.indexZIPFiles = true;\n this.thumbnailsMatrix = \"64\";\n this.SaveThumbnails = false;\n }",
"private void setDefaultConfiguration(){\n\t\tthis.setProperty(\"DefaultNodeCapacity\", \"5\");\n\t\tthis.setProperty(\"ReplicaNumber\", \"3\");\n\t\tthis.setProperty(\"JobReattemptTimes\", \"2\");\n\t\tthis.setProperty(\"ReducerCount\", \"3\");\n\t}",
"@Override\n public void tuningPeriodic() {\n\n }",
"private void initImageLoader() {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(this);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }",
"private void configurePhotoLoaders() {\n String themePhotosUrl = null;\n String myPhotosUrl = null;\n String friendPhotosUrl = null;\n\n if (mTheme != null) {\n themePhotosUrl = String.format(Endpoints.THEME_PHOTO_LIST, mTheme.id);\n\n if (!isAuthenticating() && mPhotoUser != null) {\n myPhotosUrl = String.format(Endpoints.USER_THEME_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n\n friendPhotosUrl = String.format(Endpoints.FRIENDS_PHOTO_LIST, Endpoints.ME_ID,\n mTheme.id);\n }\n }\n\n mThemePhotosLoader = restartLoader(mLoaderMgr, THEME_PHOTOS_ID, mThemePhotosLoader,\n new PhotoCallbacks(THEME_PHOTOS_ID, mThemePhotos), themePhotosUrl);\n mMyPhotosLoader = restartLoader(mLoaderMgr, MY_PHOTOS_ID, mMyPhotosLoader,\n new PhotoCallbacks(MY_PHOTOS_ID, mMyPhotos), myPhotosUrl);\n mFriendPhotosLoader = restartLoader(mLoaderMgr, FRIEND_PHOTOS_ID, mFriendPhotosLoader,\n new PhotoCallbacks(FRIEND_PHOTOS_ID, mFriendPhotos), friendPhotosUrl);\n }",
"public void imageLoader(File file)\n{\n float ratio;\n if (file == null)\n {\n return;\n } else\n {\n try\n {\n PImage img = loadImage(file.getAbsolutePath());\n //if(img.width < 300)\n //{\n // img.resize(300,img.height);\n // if(img.height/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n //if(img.height < 300)\n //{\n // img.resize(img.width, 300);\n // if(img.width/((float)img.width)>3)\n // img.resize(300, 900);\n // if(img.width/((float)img.height)<0.3)\n // img.resize(900, 300);\n //}\n if(img.height/((float)img.width)>3)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.width*2.5f));\n }\n if(img.height/((float)img.width)<0.25f)\n {\n ratio = 1.0f;\n if(img.height < 400)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.height*2.5f),(int)(ratio*img.height));\n }\n if(img.width < 400 || img.height < 400)\n {\n ratio = 1.0f;\n if(img.width < 400)\n {\n ratio = 400/((float)img.width);\n }\n if(img.height < 400 && img.height < img.width)\n {\n ratio = 400/((float)img.height);\n }\n img.resize((int)(ratio*img.width),(int)(ratio*img.height));\n }\n m.getInputImageManager().setImage(img);\n m.getInputImageManager().setResizedImage(m.getInputImageManager().resizeToFit(img, width-150, height-20));\n if(m.getOutputImageManager().getMosaic()!= null)\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getOutputImageManager().getMosaic().getLastSeenImage(), m.getOutputImageManager().getMosaic().getTiles());\n }\n else\n {\n m.getOutputImageManager().createMosaic(m.getInputImageManager().getImage(),m.getInputImageManager().getImage(), m.getTileManager().getTiles());\n }\n m.getOutputImageManager().getMosaic().setMiniatures();\n }\n catch(NullPointerException e)\n {\n println(e);\n }\n }\n}",
"ScaleStrategyConfig getScaleStrategyConfig();",
"private static void configureCaches(ImagePipelineConfig.Builder configBuilder, Context context) {\r\n final MemoryCacheParams bitmapCacheParams = new MemoryCacheParams(\r\n MAX_MEMORY_CACHE_SIZE, // Max total size of elements in the cache\r\n Integer.MAX_VALUE, // Max entries in the cache\r\n MAX_MEMORY_CACHE_SIZE, // Max total size of elements in eviction queue\r\n Integer.MAX_VALUE, // Max length of eviction queue\r\n Integer.MAX_VALUE); // Max cache entry size\r\n configBuilder\r\n .setBitmapMemoryCacheParamsSupplier(\r\n new Supplier<MemoryCacheParams>() {\r\n public MemoryCacheParams get() {\r\n return bitmapCacheParams;\r\n }\r\n })\r\n .setMainDiskCacheConfig(DiskCacheConfig.newBuilder(context)\r\n .setBaseDirectoryPath(createFile(AppFilePath.APP_SD_CARD_File_PATH))\r\n .setBaseDirectoryName(\"ImageCache\")\r\n .setMaxCacheSize(MAX_DISK_CACHE_SIZE)\r\n .build());\r\n }",
"@Override\n\tpublic void configureGAN() {\n\t\tGANProcess.type = GANProcess.GAN_TYPE.LODE_RUNNER;\n\t}",
"private ComputationGraph configurate() throws IOException {\r\n // Load Zoo model VGG16\r\n ZooModel zooModel = new VGG16();\r\n trainWriter.write(\"\\nLoading org.deeplearning4j.transferlearning.vgg16...\\n\");\r\n System.out.println(\"\\nLoading org.deeplearning4j.transferlearning.vgg16...\\n\\n\");\r\n ComputationGraph vgg16 = (ComputationGraph) zooModel.initPretrained(PretrainedType.VGGFACE);\r\n trainWriter.write(\"\\nLoaded model overview: \" + vgg16.summary());\r\n \r\n // Create Fine tune configuration, which will modify params of all layers, that are not frozen\r\n FineTuneConfiguration fineTuneConf = new FineTuneConfiguration.Builder()\r\n .updater(new Nesterovs(5e-5))\r\n .seed(123)\r\n .build();\r\n\r\n /*\r\n * Change to required config and print it.\r\n * Therefore the last layer (as seen when printing the summary) is a dense layer and not an output layer with a loss function.\r\n * Therefore to modify nOut of an output layer we delete the layer vertex,\r\n * keeping it’s connections and add back in a new output layer with the same name,\r\n * a different nOut, the suitable loss function etc etc.\r\n * */\r\n vgg16Transfer = new TransferLearning.GraphBuilder(vgg16)\r\n .fineTuneConfiguration(fineTuneConf)\r\n .setFeatureExtractor(featureExtractionLayer)\r\n .removeVertexKeepConnections(\"fc8\")\r\n .addLayer(\"fc8\",\r\n new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\r\n .nIn(4096).nOut(numLabels)\r\n .weightInit(WeightInit.DISTRIBUTION)\r\n .dist(new NormalDistribution(0,0.2*(2.0/(4096 + numLabels)))) //This weight init dist gave better results than Xavier\r\n .activation(Activation.SOFTMAX).build()\r\n ,\"fc7\").setOutputs(\"fc8\")\r\n .build();\r\n trainWriter.write(\"\\nCorrected model overview: \" + vgg16Transfer.summary());\r\n System.out.println(\"\\nCorrected model overview: \" + vgg16Transfer.summary()); // Print changes config\r\n\r\n return vgg16Transfer;\r\n }",
"private void setUpImageLoader() {\n\t\tfinal DisplayMetrics displayMetrics = new DisplayMetrics();\n\t\tgetWindowManager().getDefaultDisplay().getMetrics(displayMetrics);\n\t\tfinal int height = displayMetrics.heightPixels;\n\t\tfinal int width = displayMetrics.widthPixels;\n\n\t\t// For this sample we'll use half of the longest width to resize our images. As the\n\t\t// image scaling ensures the image is larger than this, we should be left with a\n\t\t// resolution that is appropriate for both portrait and landscape. For best image quality\n\t\t// we shouldn't divide by 2, but this will use more memory and require a larger memory\n\t\t// cache.\n\t\tfinal int longest = (height > width ? height : width) / 4;\n\n\t\tImageCache.ImageCacheParams cacheParams =\n\t\t\t\tnew ImageCache.ImageCacheParams(this, IMAGE_CACHE_DIR);\n\t\tcacheParams.setMemCacheSizePercent(0.25f); // Set memory cache to 25% of app memory\n\n\t\timageResizer = new ImageResizer(this, longest);\n\t\timageResizer.addImageCache(getSupportFragmentManager(), cacheParams);\n\t\timageResizer.setImageFadeIn(true);\n\t}",
"@Override\n public void updateConfigFromAlgorithmParams(List<Param> algParams) {\n }",
"public interface BaseImageLoaderStrategy<T extends ImageConfig> {\n void loadImage(Context ctx, T config);\n void clear(Context ctx, T config);\n}",
"private boolean setConfiguration(){\r\n\t\tif(!checkInputFields()) return false;\r\n\t\t\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tconf.setMCSScore(Float.parseFloat(m_MCSTf.getText()));\r\n\t\tconf.setRelevanceWeight(Float.parseFloat(m_RelScoreTf.getText()));\r\n\t\tconf.setCoherenceWeight(Float.parseFloat(m_CohScoreTf.getText()));\r\n\t\tconf.setKeywordsWeight(Float.parseFloat(m_KeyTf.getText()));\r\n\t\tconf.setCategoryConfidenceWeight(Float.parseFloat(m_CatConfTf.getText()));\r\n\t\tconf.setRepeatedConceptWeight(Float.parseFloat(m_RepeatTf.getText()));\r\n\t\tconf.setMaxOutputCategories(Integer.parseInt(m_MaxCatsTf.getText()));\r\n\t\tconf.setMinOutputCategories(Integer.parseInt(m_MinCatsTf.getText()));\r\n\t\tconf.setMinScore(Float.parseFloat(m_MinCatScoreTf.getText()));\r\n\t\treturn true;\r\n\t}",
"public ImageConfigThree(){\n\t\tsetup();\n\t\tsetMinPos(100);\n\t}",
"public ImageAnalysis(ImageAnalysisConfig config) {\n super(config);\n mUseCaseConfigBuilder = ImageAnalysisConfig.Builder.fromConfig(config);\n\n // Get the combined configuration with defaults\n ImageAnalysisConfig combinedConfig = (ImageAnalysisConfig) getUseCaseConfig();\n mSubscribedAnalyzer = new AtomicReference<>();\n mHandler = combinedConfig.getCallbackHandler(null);\n if (mHandler == null) {\n throw new IllegalStateException(\"No default mHandler specified.\");\n }\n setImageFormat(ImageReaderFormatRecommender.chooseCombo().imageAnalysisFormat());\n }",
"public void tune() {\n\t\tSystem.out.println(\"ting.. ting...\");\n\t}",
"static void configure() {\n float weight = (float) (Math.random() * 4000);\n System.out.println(\"Weight: \" + String.format(\"%.2f\", weight) + \"kg\");\n\n if (weight < 2000) {\n logisticsFactory = new RoadLogistics();\n } else {\n logisticsFactory = new SeaLogistics();\n }\n\n }",
"public void configure(JobConf jobConf, MapperConf mapConf)\r\n\t\t\tthrows TwisterException {\r\n\t\tthis.jobConf = jobConf;\r\n\t\tFileData fileData = (FileData) mapConf.getDataPartition();\r\n\t\tthis.image = new StaticImageVectorData();\r\n\t\ttry {\r\n\t\t\tthis.image.loadDataFromTextFile(fileData.getFileName());\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new TwisterException(e);\r\n\t\t}\r\n\t}",
"public void initDisplayImageOptions() {\n this.mDisplayImageOptionBuilder = new DisplayImageOptions.Builder().cacheThumbnail(true).loadFromMicroCache(true).cacheInMemory(true).considerExifParams(true).showStubImage(R.drawable.default_face_cover).resetViewBeforeLoading(true).imageScaleType(ImageScaleType.EXACTLY).bitmapConfig(Bitmap.Config.RGB_565).displayer(new CircleBitmapDisplayer()).usingRegionDecoderFace(true);\n this.mDefaultDisplayImageOptions = this.mDisplayImageOptionBuilder.build();\n }",
"void configure(SamplerConfiguration configuration) throws UserErrorException;",
"private void configure() {\r\n LogManager manager = LogManager.getLogManager();\r\n String className = this.getClass().getName();\r\n String level = manager.getProperty(className + \".level\");\r\n String filter = manager.getProperty(className + \".filter\");\r\n String formatter = manager.getProperty(className + \".formatter\");\r\n\r\n //accessing super class methods to set the parameters\r\n\r\n\r\n }",
"@Override\n protected void validateConfig() {\n super.validateConfig();\n final int iterations = commonConfig.getIterations();\n queryInstancesAggregates = new MetricAggregates(iterations);\n firstResponseAggregates = new MetricAggregates(iterations);\n firstFrameAggregates = new MetricAggregates(iterations);\n totalAggregates = new MetricAggregates(iterations);\n transferRateAggregates = new MetricAggregates(iterations);\n frameRateAggregates = new MetricAggregates(iterations);\n }",
"public void setProperties() {\n\n Properties props = new Properties();\n props.setProperty(\"JOptExitCondition.JOptGenerationCount\", \"1000\");\n props.setProperty(\"JOpt.Algorithm.PreOptimization.SA.NumIterations\", \"1000\");\n\n // We have to tell the optimizer that we have an high interest in capacity planning, Default is\n // 100\n props.setProperty(\"JOptWeight.Capacity\", \"200\");\n this.addElement(props);\n }",
"protected Configuration createConfiguration()\r\n/* 76: */ {\r\n/* 77:119 */ this.configuration_d.setNumOfIterations(Integer.parseInt(this.jTextField1.getText()));\r\n/* 78:120 */ this.configuration_d.setPopulationSize(Integer.parseInt(this.popSize_d.getText()));\r\n/* 79:121 */ ((GAConfiguration)this.configuration_d).setCrossoverThreshold(Double.valueOf(this.jTextField2.getText()).doubleValue());\r\n/* 80:122 */ ((GAConfiguration)this.configuration_d).setMutationThreshold(Double.valueOf(this.jTextField3.getText()).doubleValue());\r\n/* 81:123 */ ((GAConfiguration)this.configuration_d).setMethod((String)this.methodList_d.getSelectedItem());\r\n/* 82:124 */ return this.configuration_d;\r\n/* 83: */ }",
"public void setAdaptiveRateAlgorithm(String algorithm);",
"public void updateConfig() {\n String[] config = getConfiguration();\n Config.MEASUREMENT_INTERVAL = (int)Double.parseDouble(config[2]);\n Config.MAX_INJECTION = Double.parseDouble(config[3]);\n Config.MIN_INJECTION = Double.parseDouble(config[4]);\n Config.MAX_CUMULATIVE_DOSE = Double.parseDouble(config[5]);\n }",
"protected void additionalConfig(ConfigType config){}",
"private static void forceBasicEditorConfiguration() {\n Game.graphics().setBaseRenderScale(1.0f);\n Game.config().debug().setDebugEnabled(true);\n Game.config().graphics().setGraphicQuality(Quality.VERYHIGH);\n Game.config().graphics().setReduceFramesWhenNotFocused(false);\n }",
"@Override\n\tprotected void initClassifierParameters() {\n\t\tlinearKernel = new SelectedParameterItem(\"Linear kernel\", \"-K 0\");\n\t\tpolynomialKernel = new SelectedParameterItem(\"Polynomial kernel\", \"-K 1\");\n\t\tradialBasisKernel = new SelectedParameterItem(\"Radial basis kernel\", \"-K 2\");\n\t\tsigmoidKernel = new SelectedParameterItem(\"Sigmoid kernel\", \"-K 3\");\n\t\tcSVC = new SelectedParameterItem(\"C-SVC\", \"-S 0\");\n\t\tnuSVC = new SelectedParameterItem(\"ν-SVC\", \"-S 1\");\n\t\tsvmType = ParameterUtilities.createSelectedParameter(\"SVM type\", cSVC, nuSVC);\n\t\tkernelType = ParameterUtilities.createSelectedParameter(\"Kernel type\", linearKernel, polynomialKernel, radialBasisKernel,\n\t\t\t\tsigmoidKernel);\n\t\tkernelDegree = new Parameter(3, \"Degree in kernel function\", Parameter.TYPE.INTEGER, \"-D\", \"classifier.degree\");\n\t\tkernelGamma = new Parameter(0.5, \"γ in kernel function\", Parameter.TYPE.DOUBLE, \"-G\", \"classifier.gamma\");\n\t\tkernelCoefficient = new Parameter(0.0, \"Coefficient in kernel function\", Parameter.TYPE.DOUBLE, \"-R\", \"classifier.coef0\");\n\t\tparameterC = new Parameter(1.0, \"Parameter C\", Parameter.TYPE.DOUBLE, \"-C\", \"classifier.cost\");\n\t\tparameterNu = new Parameter(0.5, \"Parameter ν\", Parameter.TYPE.DOUBLE, \"-N\", \"classifier.nu\");\n\t\ttolerance = new Parameter(0.001, \"Tolerance of termination criterion\", Parameter.TYPE.DOUBLE, \"-E\");\n\t\tweight = new Parameter(null, \"Weight, set C of class i to (weight × C)\", Parameter.TYPE.STRING, \"-W\");\n\t}",
"@Override\n public void configViews() {\n\n ImageView view = findViewById(R.id.iv);\n GlideUrl cookie = new GlideUrl(\"http://images.dmzj.com/tuijian/320_170/170623yinglingtj2.jpg\", new LazyHeaders.Builder()\n .addHeader(\"Referer\", Constant.IMG_BASE_URL)\n .addHeader(\"Accept-Encoding\",\"gzip\").build());\n// Glide.with(this).load(cookie)\n// .placeholder(R.mipmap.ic_launcher)\n// .error(R.drawable.a)\n// .transform(new GlideRoundTransform(this,6))\n// .into(view);\n\n// MultiTransformation multi = new MultiTransformation(\n// new RoundedCornersTransformation(20, 0));\n float density = getResources().getDisplayMetrics().density;\n Log.e(\"density\",\"density\"+density);\n RoundedCornersTransformation roundedCornersTransformation =\n new RoundedCornersTransformation((int) (density*20), 0);\n// Glide.with(this).loadOptions.bitmapTransform(roundedCornersTransformation))\n// .into(view);(cookie)\n// .apply(Request\n//\n DeviceUtils.printDisplayInfo(this);\n\n Glide.with(this).load(cookie)\n .apply((RequestOptions.bitmapTransform(roundedCornersTransformation)))\n .into(image01);\n Glide.with(this).load(cookie)\n .into(image02);\n }",
"@Override\n public void configure(ConfigParams configParams) throws ConfigException {\n this._timeout = configParams.getAsLongWithDefault(\"options.timeout\", this._timeout);\n }",
"@Override\n\tpublic void checkPropertyConfiguration() throws IOException, CustomizedException {\n\t\tString conf=PropertyReader.getProperty(\"configuration\");\n\t\tString\tfileName=\"\";\n\t\tconfiguration=conf;\n\t\tif(conf == null || conf.isEmpty())\n\t\t{\n\t\t\tthrow new CustomizedException(\"Configuration property is not set,it must be set to 1 or 2 \");\n\n\t\t}\n\t\tif(conf.equals(\"1\"))\n\t\t{\n\t\t\titeration=1;\n\t\t\tfileName=PropertyReader.getProperty(\"anagram_file\");\n\t\t\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be set to sample against the key anagramFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse if(conf.equals(\"2\"))\n\t\t{\n\t\t\titeration=Integer.parseInt(PropertyReader.getProperty(\"load_testing_iteration\"));\n\t\t\tfileName=PropertyReader.getProperty(\"large_file\");\n\t\t\tif(fileName == null || fileName.isEmpty())\n\t\t\t{\n\t\t\t\tthrow new CustomizedException(\"Filename property is not set,it must be bigFile against the key largeFile \");\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tthis.fileName=fileName;\n\t\t\n\t}",
"protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }",
"public void configure( final Configuration configuration )\n throws ConfigurationException\n {\n final String name =\n configuration.getChild( \"name\" ).getValue();\n setName( name );\n final int priority =\n configuration.getChild( \"priority\" ).getValueAsInteger( Thread.NORM_PRIORITY );\n setPriority( priority );\n final boolean isDaemon =\n configuration.getChild( \"is-daemon\" ).getValueAsBoolean( false );\n setDaemon( isDaemon );\n\n final GenericObjectPool.Config config = getCommonsConfig();\n\n final boolean limit =\n configuration.getChild( \"resource-limiting\" ).getValueAsBoolean( false );\n if( limit )\n {\n config.whenExhaustedAction = GenericObjectPool.WHEN_EXHAUSTED_BLOCK;\n }\n else\n {\n config.whenExhaustedAction = GenericObjectPool.WHEN_EXHAUSTED_GROW;\n }\n\n config.maxActive =\n configuration.getChild( \"max-threads\" ).getValueAsInteger( 10 );\n config.maxIdle = configuration.getChild( \"max-idle\" ).\n getValueAsInteger( config.maxActive / 2 );\n }",
"protected OeTemplateProcessorConfig getConfig() {\n final OeTemplateProcessorConfig config = OeTemplateProcessorConfig.create();\n config\n //.setPollingIntervalMillis(1000)\n //.setPollingMaxDurationSecs(5)\n //.setResultsBatchSize(100)\n .getInferenceParameterOverrides()\n .setMaxAnswerCount(MAX_ANSWERS);\n return config;\n }",
"public void initImageLoader(Context context){\n ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n\t .memoryCacheExtraOptions(1200, 1000) // default = device screen dimensions\n\t .discCacheExtraOptions(1200, 1000, CompressFormat.JPEG, 85, null)\n\t .threadPoolSize(3) // default\n\t .threadPriority(Thread.NORM_PRIORITY - 1) // default\n\t .tasksProcessingOrder(QueueProcessingType.FIFO) // default\n\t .denyCacheImageMultipleSizesInMemory()\n\t .memoryCache(new LruMemoryCache(2 * 1024 * 1024))\n\t .memoryCacheSize(2 * 1024 * 1024)\n\t .memoryCacheSizePercentage(13) // default\n\t .discCacheSize(50 * 1024 * 1024)\n\t .discCacheFileCount(100)\n\t .discCacheFileNameGenerator(new HashCodeFileNameGenerator()) // default\n\t .imageDownloader(new BaseImageDownloader(context)) // default\n\t .defaultDisplayImageOptions(DisplayImageOptions.createSimple()) // default\n\t .writeDebugLogs()\n .build();\n ImageLoader.getInstance().init(config);\n\t}",
"public interface PropertyKeys {\n\n String PRO_FILE_NAME = \"MyPerf4JPropFile\";\n\n interface Basic {\n\n ConfigKey APP_NAME = ConfigKey.of(\"app_name\", \"AppName\");\n\n ConfigKey DEBUG = ConfigKey.of(\"debug\", \"Debug.PrintDebugLog\");\n\n ConfigKey PROPERTIES_FILE_DIR = ConfigKey.of(\"properties.dir\", \"MyPerf4JPropDIR\");\n }\n\n interface HttpServer {\n\n ConfigKey PORT = ConfigKey.of(\"http.server.port\", \"http.server.port\");\n\n ConfigKey MIN_WORKERS = ConfigKey.of(\"http.server.min_workers\", \"http.server.min_workers\");\n\n ConfigKey MAX_WORKERS = ConfigKey.of(\"http.server.max_workers\", \"http.server.max_workers\");\n\n ConfigKey ACCEPT_COUNT = ConfigKey.of(\"http.server.accept_count\", \"http.server.accept_count\");\n }\n\n interface Metrics {\n\n ConfigKey EXPORTER = ConfigKey.of(\"metrics.exporter\", \"MetricsProcessorType\");\n\n ConfigKey TIME_SLICE_METHOD = ConfigKey.of(\"metrics.time_slice.method\", \"MethodMilliTimeSlice\");\n\n ConfigKey TIME_SLICE_JVM = ConfigKey.of(\"metrics.time_slice.jvm\", \"JvmMilliTimeSlice\");\n\n ConfigKey METHOD_SHOW_PARAMS = ConfigKey.of(\"metrics.method.show_params\", \"ShowMethodParams\");\n\n ConfigKey CLASS_LEVEL_MAPPINGS = ConfigKey.of(\"metrics.method.class_level_mappings\", \"ClassLevelMapping\");\n\n ConfigKey LOG_METHOD = ConfigKey.of(\"metrics.log.method\", \"MethodMetricsFile\");\n\n ConfigKey LOG_CLASS_LOADING = ConfigKey.of(\"metrics.log.class_loading\", \"ClassMetricsFile\");\n\n ConfigKey LOG_GC = ConfigKey.of(\"metrics.log.gc\", \"GCMetricsFile\");\n\n ConfigKey LOG_MEMORY = ConfigKey.of(\"metrics.log.memory\", \"MemMetricsFile\");\n\n ConfigKey LOG_BUFF_POOL = ConfigKey.of(\"metrics.log.buff_pool\", \"BufPoolMetricsFile\");\n\n ConfigKey LOG_THREAD = ConfigKey.of(\"metrics.log.thread\", \"ThreadMetricsFile\");\n\n ConfigKey LOG_FILE_DESC = ConfigKey.of(\"metrics.log.file_desc\", \"FileDescMetricsFile\");\n\n ConfigKey LOG_COMPILATION = ConfigKey.of(\"metrics.log.compilation\", \"CompilationMetricsFile\");\n\n ConfigKey LOG_ROLLING_TIME_UNIT = ConfigKey.of(\"metrics.log.rolling.time_unit\", \"LogRollingTimeUnit\");\n\n ConfigKey LOG_RESERVE_COUNT = ConfigKey.of(\"metrics.log.reserve.count\", \"LogReserveCount\");\n }\n\n interface InfluxDB {\n\n ConfigKey VERSION = ConfigKey.of(\"influxdb.version\", \"influxdb.version\");\n\n ConfigKey HOST = ConfigKey.of(\"influxdb.host\", \"influxdb.host\");\n\n ConfigKey PORT = ConfigKey.of(\"influxdb.port\", \"influxdb.port\");\n\n ConfigKey ORG_NAME = ConfigKey.of(\"influxdb.orgName\", \"influxdb.orgName\");\n\n ConfigKey DATABASE = ConfigKey.of(\"influxdb.database\", \"influxdb.database\");\n\n ConfigKey USERNAME = ConfigKey.of(\"influxdb.username\", \"influxdb.username\");\n\n ConfigKey PASSWORD = ConfigKey.of(\"influxdb.password\", \"influxdb.password\");\n\n ConfigKey CONN_TIMEOUT = ConfigKey.of(\"influxdb.conn_timeout\", \"influxdb.conn_timeout\");\n\n ConfigKey READ_TIMEOUT = ConfigKey.of(\"influxdb.read_timeout\", \"influxdb.read_timeout\");\n }\n\n interface Filter {\n\n ConfigKey PACKAGES_INCLUDE = ConfigKey.of(\"filter.packages.include\", \"IncludePackages\");\n\n ConfigKey PACKAGES_EXCLUDE = ConfigKey.of(\"filter.packages.exclude\", \"ExcludePackages\");\n\n ConfigKey METHODS_EXCLUDE = ConfigKey.of(\"filter.methods.exclude\", \"ExcludeMethods\");\n\n ConfigKey METHODS_EXCLUDE_PRIVATE = ConfigKey.of(\"filter.methods.exclude_private\", \"ExcludePrivateMethod\");\n\n ConfigKey CLASS_LOADERS_EXCLUDE = ConfigKey.of(\"filter.class_loaders.exclude\", \"ExcludeClassLoaders\");\n }\n\n interface Recorder {\n\n ConfigKey BACKUP_COUNT = ConfigKey.of(\"recorders.backup_count\", \"BackupRecordersCount\");\n\n ConfigKey MODE = ConfigKey.of(\"recorder.mode\", \"RecorderMode\");\n\n ConfigKey SIZE_TIMING_ARR = ConfigKey.of(\"recorder.size.timing_arr\", \"ProfilingTimeThreshold\");\n\n ConfigKey SIZE_TIMING_MAP = ConfigKey.of(\"recorder.size.timing_map\", \"ProfilingOutThresholdCount\");\n }\n}",
"private static Config defineConfig(RunSettings settings) {\r\n\t\tConfig config = ConfigUtils.createConfig();\r\n\r\n\t\t// set number of iterations\r\n\t\tconfig.controler().setLastIteration( 2 );\r\n\r\n\t\t// able or enable signals and lanes\r\n\t\tconfig.qsim().setUseLanes( settings.isUseLanes() );\r\n\t\tif(settings.isUseSignals()){\r\n\t\t\tSignalSystemsConfigGroup signalConfigGroup = ConfigUtils.addOrGetModule(config, SignalSystemsConfigGroup.GROUP_NAME,SignalSystemsConfigGroup.class);\r\n\t\t\tsignalConfigGroup.setUseSignalSystems(true);\r\n\t\t}\r\n\t\t\r\n\t\t// set brain exp beta\r\n\t\tconfig.planCalcScore().setBrainExpBeta( 20 );\r\n\r\n\t\t// choose between link to link and node to node routing\r\n\t\tif(settings.isUseLink2Link()){\r\n\t\t\tconfig.controler().setLinkToLinkRoutingEnabled( true );\r\n\t\t\tconfig.travelTimeCalculator().setCalculateLinkToLinkTravelTimes(true);\r\n\t\t\t// link2link currently does not work for separate modes\r\n\t\t\tconfig.travelTimeCalculator().setSeparateModes(false);\r\n\t\t}\r\n\t\t\r\n\t\tconfig.travelTimeCalculator().setCalculateLinkTravelTimes(true);\r\n\t\t\r\n\t\t// set travelTimeBinSize\r\n\t\tconfig.travelTimeCalculator().setTraveltimeBinSize( 900 );\r\n\t\t\r\n\t\tconfig.travelTimeCalculator().setTravelTimeCalculatorType(\r\n\t\t\t\tTravelTimeCalculatorType.TravelTimeCalculatorHashMap.toString());\r\n\t\t// hash map and array produce same results. only difference: memory and time.\r\n\t\t// for small time bins and sparse values hash map is better. theresa, may 2015\r\n\t\t\r\n\t\t// define strategies:\r\n\t\t{\r\n\t\t\tStrategySettings strat = new StrategySettings() ;\r\n\t\t\tstrat.setStrategyName( DefaultStrategy.ReRoute.toString() );\r\n\t\t\tstrat.setWeight( 0.1 );\r\n\t\t\tconfig.strategy().addStrategySettings(strat);\r\n\t\t}\r\n\t\t{\r\n\t\t\tStrategySettings strat = new StrategySettings() ;\r\n\t\t\tstrat.setStrategyName( DefaultSelector.ChangeExpBeta.toString() );\r\n\t\t\tstrat.setWeight( 0.9 ) ;\r\n\t\t\tstrat.setDisableAfter( config.controler().getLastIteration() );\r\n\t\t\tconfig.strategy().addStrategySettings(strat);\r\n\t\t}\r\n\t\t\r\n\t\tconfig.controler().setOutputDirectory(OUTPUT_DIR);\r\n\t\tconfig.controler().setOverwriteFileSetting(OverwriteFileSetting.overwriteExistingFiles);\t\t\r\n\t\t// note: the output directory is defined in createOutputDir(...) after all adaptations are done\r\n\t\t\r\n\t\tconfig.controler().setWriteEventsInterval(0);\r\n\t\tconfig.controler().setWritePlansInterval(0);\r\n\t\tconfig.controler().setWriteSnapshotsInterval(0);\r\n\t\tconfig.controler().setCreateGraphs(false);\r\n\t\t\r\n\t\t//set StuckTime\r\n\t\tconfig.qsim().setStuckTime(3600 * 10.);\r\n\t\t\r\n\t\tconfig.qsim().setUsingFastCapacityUpdate(false);\r\n\t\t\r\n\t\tActivityParams dummyAct = new ActivityParams(\"dummy\");\r\n\t\tdummyAct.setTypicalDuration(8 * 3600);\r\n\t\tconfig.planCalcScore().addActivityParams(dummyAct);\r\n\t\t\r\n\t\treturn config;\r\n\t}",
"private static void initConfig() {\n /*\n * Human IO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Joysticks\n */\n {\n addToConstants(\"joysticks.left\", 0);\n addToConstants(\"joysticks.right\", 1);\n addToConstants(\"joysticks.operator\", 2);\n }\n\n /*\n * Buttons and axis\n */\n {\n }\n }\n }\n\n /*\n * RobotIO\n */\n {\n /*\n * Constants\n */\n {\n /*\n * Kicker\n */\n addToConstantsA(\"kicker.encoder.distPerPulse\", 360.0 / 1024.0);\n }\n }\n\n /*\n * Chassis\n */\n {\n /*\n * Constants\n */\n {\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Kicker\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"kicker.kick.normal\", 1.75);\n addToConstants(\"kicker.kick.timeout\", 0.75);\n\n addToConstants(\"kicker.shaken.voltage\", -0.3316);\n addToConstants(\"kicker.shaken.tolerance\", 3.0);\n\n addToConstants(\"kicker.zero.voltage\", 0.8);\n addToConstants(\"kicker.zero.duration\", 0.75);\n }\n\n /*\n * Variables\n */\n {\n }\n }\n\n /*\n * Gripper\n */\n {\n /*\n * Constants\n */\n {\n addToConstants(\"gripper.collection.voltage\", 0.82);\n addToConstants(\"gripper.ejection.voltage\", -0.45);\n }\n }\n }",
"@Parameterized.Parameters(name = \"{0}\")\n public static Collection<Object[]> algoOptions() {\n CarFlagEncoder encoder = new CarFlagEncoder();\n GraphHopper hopper = new GraphHopperOSM();\n hopper.setDataReaderFile(\"../map-data/leipzig_germany.osm.pbf\");\n hopper.setGraphHopperLocation(\"../target/mapmatchingtest-ch\");\n hopper.setEncodingManager(new EncodingManager(encoder));\n hopper.getCHFactoryDecorator().setDisablingAllowed(true);\n hopper.importOrLoad();\n\n // force CH\n AlgorithmOptions chOpts = AlgorithmOptions.start()\n .maxVisitedNodes(1000)\n .hints(new PMap().put(Parameters.CH.DISABLE, false))\n .build();\n\n // flexible should fall back to defaults\n AlgorithmOptions flexibleOpts = AlgorithmOptions.start()\n // TODO: fewer nodes than for CH are possible (short routes & different finish condition & higher degree graph)\n // .maxVisitedNodes(20)\n .build();\n\n return Arrays.asList(new Object[][]{\n {\"non-CH\", hopper, flexibleOpts},\n {\"CH\", hopper, chOpts}\n });\n }",
"public static void generateCustomGameConfiguration() {\n // GameConfig.getInstance().setMapWidthX(20);\n // GameConfig.getInstance().setMapHeightY(20);\n // GameConfig.getInstance().setMaxEnergyPirateValue(100);\n // GameConfig.getInstance().setMonkeyErraticSpeed(1000);\n // GameConfig.getInstance().setMonkeyHunterSpeed(750);\n // GameConfig.getInstance().setRumEnergyValue(10);\n // GameConfig.getInstance().setTimeRumVisibility(10000);\n // GameConfig.getInstance().setRumList(Brain.getInstance().getObjectManager().getRumList());\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // ArrayList<Monkey> monkeyArrayList = new ArrayList<Monkey>();\n // for(int i=0;i<10;i++) {\n // if (i % 2 == 0) {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.ERRATIC));\n // } else {\n // monkeyArrayList.add(new Monkey(PositionUtils.getSpawnPosition(\n // Map.getInstance().getGroundSquareList(),\n // CharacterManager.getInstance(Brain.getInstance()).getCharacterList(),\n // ObjectManager.getInstance(Brain.getInstance()).getObjectList()\n // ), Monkey.MonkeyType.HUNTER));\n // }\n // }\n // GameConfig.getInstance().setMonkeyList(monkeyArrayList);\n // for(int i=0;i< Brain.getInstance().getMapManager().getMap().getSquareList().size();i++) {\n // for (int j = 0; j < Brain.getInstance().getMapManager().getMap().getSquareList().get(i).size(); j++) {\n // if (i == 0 || j==0 || i == GameConfig.getInstance().getMapWidthX()-1\n // || j == GameConfig.getInstance().getMapHeightY()-1) {\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.SEA);\n // }else{\n // Brain.getInstance().getMapManager().getMap().getSquareList().get(i).get(j)\n // .setSquareType(Square.SquareType.GROUND);\n // }\n // }\n // }\n // GameConfig.getInstance().setSquaresList(Brain.getInstance().getMapManager().getMap().getSquareList());\n // saveGameConfiguration();\n }",
"@Override\n public void configure(Configuration conf) throws ConfigurationException\n {\n super.configure( conf );\n lazyLoading = conf.getAttributeAsBoolean( LAZY_LOADING, false);\n getLogger().debug(\"setting lazyLoading: \" + lazyLoading);\n }",
"public static void initImageLoader(Context context) {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n //config.writeDebugLogs(); // Remove for release app\n\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }",
"private void applyDatabasePerformanceOptions() throws SQLException, SoarException, IOException\n {\n // cache\n if(params.driver.get().equals(\"org.sqlite.JDBC\"))\n {\n // TODO: Generalize this. Move to a resource somehow.\n final long cacheSize = params.cache_size.get();\n \n try(Statement s = db.getConnection().createStatement())\n {\n s.execute(\"PRAGMA cache_size = \" + cacheSize);\n }\n }\n \n // optimization\n if(params.optimization.get() == Optimization.performance)\n {\n // If /org/jsoar/kernel/smem/<driver>.performance.sql is found on\n // the class path, execute the statements in it.\n final String perfResource = params.driver.get() + \".performance.sql\";\n final String fullPath = \"/\" + getClass().getCanonicalName().replace('.', '/') + \"/\" + perfResource;\n \n LOG.info(\"Applying performance settings from '{}'.\", fullPath);\n try(InputStream perfStream = getClass().getResourceAsStream(perfResource);)\n {\n if(perfStream != null)\n {\n JdbcTools.executeSql(db.getConnection(), perfStream, null /*\n * no\n * filter\n */);\n }\n else\n {\n LOG.warn(\"Could not find performance resource at '{}'. No performance settings applied.\", fullPath);\n }\n }\n }\n \n // page_size\n if(params.driver.get().equals(\"org.sqlite.JDBC\"))\n {\n final PageChoices pageSize = params.page_size.get();\n \n long pageSizeLong = 0;\n \n switch(pageSize)\n {\n case page_16k:\n pageSizeLong = 16 * 1024;\n break;\n case page_1k:\n pageSizeLong = 1 * 1024;\n break;\n case page_2k:\n pageSizeLong = 2 * 1024;\n break;\n case page_32k:\n pageSizeLong = 32 * 1024;\n break;\n case page_4k:\n pageSizeLong = 4 * 1024;\n break;\n case page_64k:\n pageSizeLong = 64 * 1024;\n break;\n case page_8k:\n pageSizeLong = 8 * 1024;\n break;\n default:\n break;\n }\n \n try(Statement s = db.getConnection().createStatement())\n {\n s.execute(\"PRAGMA page_size = \" + pageSizeLong);\n }\n }\n }",
"protected AlgorithmConfiguration getSettings() {\n return new AlgorithmConfiguration(m_SplitMethod, m_unbiasedEstimate,\n m_kBEPPConstant, m_useBagCount, m_bagInstanceMultiplier,\n m_AttributesToSplit, m_AttributeSplitChoices);\n }",
"private static void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n\t\tconfig.threadPriority(Thread.NORM_PRIORITY - 2);\n\t\tconfig.denyCacheImageMultipleSizesInMemory();\n\t\tconfig.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n\t\tconfig.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n\t\tconfig.tasksProcessingOrder(QueueProcessingType.LIFO);\n\t\tconfig.writeDebugLogs(); // Remove for release app\n\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config.build());\n\t}",
"private void showCrawlerSettings()\n {\n SpiderConfig config = spider.getConfig();\n \n JPanel crawlerSettingsPanel = new JPanel(new GridLayout(8, 2));\n JLabel crawlDistanceLabel = new JLabel(\"Max crawl distance\");\n JLabel maxAdjLinksLabel = new JLabel(\"Max adjacent URL's\");\n JLabel bufferSizeLabel = new JLabel(\"Buffer size\");\n JLabel cacheSizeLabel = new JLabel(\"Cache size\");\n JLabel updateDurationLabel = new JLabel(\"Duration (days) until update\");\n JLabel maxImagesLabel = new JLabel(\"Max number of images\");\n JLabel collectImagesLabel = new JLabel(\"Fetch images\");\n JLabel defaultIndexFileLabel = new JLabel(\"Default index file\");\n JTextField crawlDistanceField = new JTextField();\n JTextField maxAdjLinksField = new JTextField();\n JTextField bufferSizeField = new JTextField();\n JTextField cacheSizeField = new JTextField();\n JTextField updateDurationField = new JTextField();\n JTextField maxImagesField = new JTextField();\n JTextField indexFileField = new JTextField();\n JCheckBox collectImagesCheck = new JCheckBox();\n \n crawlerSettingsPanel.add(crawlDistanceLabel);\n crawlerSettingsPanel.add(crawlDistanceField);\n crawlerSettingsPanel.add(maxAdjLinksLabel);\n crawlerSettingsPanel.add(maxAdjLinksField);\n crawlerSettingsPanel.add(bufferSizeLabel);\n crawlerSettingsPanel.add(bufferSizeField);\n crawlerSettingsPanel.add(cacheSizeLabel);\n crawlerSettingsPanel.add(cacheSizeField);\n crawlerSettingsPanel.add(updateDurationLabel);\n crawlerSettingsPanel.add(updateDurationField);\n crawlerSettingsPanel.add(maxImagesLabel);\n crawlerSettingsPanel.add(maxImagesField);\n crawlerSettingsPanel.add(defaultIndexFileLabel);\n crawlerSettingsPanel.add(indexFileField);\n crawlerSettingsPanel.add(collectImagesLabel);\n crawlerSettingsPanel.add(collectImagesCheck);\n \n crawlDistanceField.setText(\"\" + config.getMaxCrawlDistance());\n maxAdjLinksField.setText(\"\" + config.getMaxAdjUrls());\n bufferSizeField.setText(\"\" + config.getBufferSize());\n cacheSizeField.setText(\"\" + config.getCacheSize());\n updateDurationField.setText(\"\" + config.getUpdateDays());\n maxImagesField.setText(\"\" + config.getMaxImages());\n collectImagesCheck.setSelected(config.isFetchingImages());\n indexFileField.setText(config.getDatabaseFile());\n \n int option = JOptionPane.showConfirmDialog(null, crawlerSettingsPanel, \"Crawler settings\", JOptionPane.OK_CANCEL_OPTION);\n if(option == JOptionPane.YES_OPTION)\n {\n try\n {\n int maxDistance = Integer.parseInt(crawlDistanceField.getText());\n int maxLinks = Integer.parseInt(maxAdjLinksField.getText());\n int bufferSize = Integer.parseInt(bufferSizeField.getText());\n int cacheSize = Integer.parseInt(cacheSizeField.getText());\n int updateDays = Integer.parseInt(updateDurationField.getText());\n int maxImages = Integer.parseInt(maxImagesField.getText());\n String defaultIndex = indexFileField.getText();\n boolean fetchImages = collectImagesCheck.isSelected();\n \n config.setBufferSize(bufferSize);\n config.setCacheSize(cacheSize);\n config.setMaxCrawlDistance(maxDistance);\n config.setMaxAdjUrls(maxLinks);\n config.setUpdateDays(updateDays);\n config.setFetchImages(fetchImages);\n config.setMaxImages(maxImages);\n config.setDatabaseFile(defaultIndex);\n \n spider.updateConfig();\n }\n \n catch(NumberFormatException e)\n {\n JOptionPane.showMessageDialog(null, \"Invalid config settings\");\n }\n }\n }",
"public void configure(T aView) { aView.setType(ThumbWheel.TYPE_RADIAL); aView.setPrefSize(120,16); }",
"void setConfiguration();",
"public void reconfigure(double cf) {\n if (cf > 20000) {\n cf = 20000;\n } else if (cf < 20) {\n cf = 20;\n }\n Q = (Q == 0) ? 1e-9 : Q;\n center_freq = cf;\n // only used for peaking and shelving filters\n gain_abs = Math.pow(10, gainDB / 40);\n double omega = 2 * Math.PI * cf / sample_rate;\n double sn = Math.sin(omega);\n double cs = Math.cos(omega);\n double alpha = sn / (2 * Q);\n double beta = Math.sqrt(gain_abs + gain_abs);\n switch (type) {\n case BANDPASS:\n b0 = alpha;\n b1 = 0;\n b2 = -alpha;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case LOWPASS:\n b0 = (1 - cs) / 2;\n b1 = 1 - cs;\n b2 = (1 - cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case HIGHPASS:\n b0 = (1 + cs) / 2;\n b1 = -(1 + cs);\n b2 = (1 + cs) / 2;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case NOTCH:\n b0 = 1;\n b1 = -2 * cs;\n b2 = 1;\n a0 = 1 + alpha;\n a1 = -2 * cs;\n a2 = 1 - alpha;\n break;\n case PEAK:\n b0 = 1 + (alpha * gain_abs);\n b1 = -2 * cs;\n b2 = 1 - (alpha * gain_abs);\n a0 = 1 + (alpha / gain_abs);\n a1 = -2 * cs;\n a2 = 1 - (alpha / gain_abs);\n break;\n case LOWSHELF:\n b0 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs + beta * sn);\n b1 = 2 * gain_abs * ((gain_abs - 1) - (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) - (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) + (gain_abs - 1) * cs + beta * sn;\n a1 = -2 * ((gain_abs - 1) + (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) + (gain_abs - 1) * cs - beta * sn;\n break;\n case HIGHSHELF:\n b0 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs + beta * sn);\n b1 = -2 * gain_abs * ((gain_abs - 1) + (gain_abs + 1) * cs);\n b2 = gain_abs * ((gain_abs + 1) + (gain_abs - 1) * cs - beta * sn);\n a0 = (gain_abs + 1) - (gain_abs - 1) * cs + beta * sn;\n a1 = 2 * ((gain_abs - 1) - (gain_abs + 1) * cs);\n a2 = (gain_abs + 1) - (gain_abs - 1) * cs - beta * sn;\n break;\n }\n // prescale flter constants\n b0 /= a0;\n b1 /= a0;\n b2 /= a0;\n a1 /= a0;\n a2 /= a0;\n }",
"private void initImageLoader(Context context) {\n\t\tImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n\t\tconfig.threadPriority(Thread.NORM_PRIORITY - 2);\n\t\tconfig.denyCacheImageMultipleSizesInMemory();\n\t\tconfig.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n\t\tconfig.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n\t\tconfig.tasksProcessingOrder(QueueProcessingType.LIFO);\n\t\tconfig.writeDebugLogs(); // Remove for release app\n\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config.build());\n\t}",
"public void setFiltering(int FILTERING) {\n\t\tswitch(FILTERING) {\n\t\tdefault :\n\t\tcase GPUImageInterface.NEAREST : \n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(2) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(2) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.LINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(3) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(3) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.BILINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(4) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(4) ;\n\t\t\tbreak;\n\t\tcase GPUImageInterface.TRILINEAR :\n\t\t\t((PGraphicsOpenGL)this.src).textureSampling(5) ;\n\t\t\t((PGraphicsOpenGL)this.dst).textureSampling(5) ;\n\t\t\tbreak;\n\t\t}\n\t}",
"private void setSize() {\n width = AppConfig.width;\n height = (int) (AppConfig.width * 0.56);\n requestOptions = new RequestOptions()\n .diskCacheStrategy(DiskCacheStrategy.AUTOMATIC);\n \n }",
"protected void enhanceConfig(ConfigurationBuilder c) {\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"@Override\n\tpublic void loadExtraConfigs(Configuration config)\n\t{\n\n\t}",
"public ImageLoader(Context context){\n fileCache=new FileCache(context);\n executorService=Executors.newFixedThreadPool(5);\n }",
"@Override\n\tprotected void setMultiplier(DynamicMultiplier multiplier) {\n\t\tif (\"supportVectors\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor(numberOfSupportVectors);\n\t\t} else if (\"supportVectorsMinusOne\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor(numberOfSupportVectors - 1);\n\t\t} else if (\"supportVectorMachines\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor((numberOfClasses * (numberOfClasses - 1)) / 2);\n\t\t} else if (\"squareAndMultiplyDegree\".equals(multiplier.getName())) {\n\t\t\tmultiplier.setFactor((int) (2.0 * FastMath.floor(FastMath.log(2.0, ((Integer) kernelDegree.getValue())))));\n\t\t}\n\t}",
"public static void initImageLoader(Context context) {\n ImageLoaderConfiguration.Builder config = new ImageLoaderConfiguration.Builder(context);\n config.threadPriority(Thread.NORM_PRIORITY - 2);\n config.denyCacheImageMultipleSizesInMemory();\n config.diskCacheFileNameGenerator(new Md5FileNameGenerator());\n config.diskCacheSize(50 * 1024 * 1024); // 50 MiB\n config.tasksProcessingOrder(QueueProcessingType.LIFO);\n config.writeDebugLogs(); // Remove for release app\n\n // Initialize ImageLoader with configuration.\n ImageLoader.getInstance().init(config.build());\n }",
"public static void setImageLoadingTimeout(long newTimeout) {\n ImageLoader.setTimeout(newTimeout);\n }",
"public ImageLoader(int threadCount, Type type) {\r\n init(threadCount,type);\r\n }",
"@Override\r\n public void init(NegotiationSession negotiationSession, Map<String, Double> parameters) {\r\n super.init(negotiationSession, parameters);\r\n this.negotiationSession = negotiationSession;\r\n if (parameters != null && parameters.get(\"l\") != null) {\r\n learnCoef = parameters.get(\"l\");\r\n } else {\r\n learnCoef = 0.2;\r\n }\r\n learnValueAddition = 1;\r\n initializeModel();\r\n }",
"private void configureAnalysisFeatures() {\n for (AnalysisFeatureSetting setting : analysisOptions.analysisFeatureSettingList) {\n setting.configure(AnalysisContext.currentAnalysisContext());\n }\n AnalysisContext.currentAnalysisContext().setBoolProperty(AnalysisFeatures.MERGE_SIMILAR_WARNINGS,\n analysisOptions.mergeSimilarWarnings);\n }",
"@Override\n protected PreprocessingConfig getPreprocessingConfig() {\n PreprocessingConfig config = super.getPreprocessingConfig();\n config.put(TargetEncoding.CONFIG_PREPARE_CV_ONLY, aml().isCVEnabled()); \n return config;\n }",
"public interface BaseImageLoaderStrategy {\n //无占位图\n void loadImage(Object url, ImageView imageView);\n\n void loadImage(Object url, int placeholder, ImageView imageView);\n\n void loadImage(Context context, Object url, int placeholder, ImageView imageView);\n\n //这里的context指定为ApplicationContext\n void loadImageWithAppCxt(Object url, ImageView imageView);\n\n void loadImageWithListener(Object url, int placeholder, ImageView imageView, ImageLoadListener listener);\n\n void loadCenterCropWithCorner(Context context, Object model, ImageView imageView, int corner_px);\n\n void loadCenterCropWithCorner(Context context, Object model, int placeholder, ImageView imageView, int corner_px);\n\n void loadCircleImage(Object url, int placeholder, ImageView imageView);\n\n void loadCentercropCircleImage(Object model, int placeholder, ImageView imageView);\n\n void loadCircleImage(Bitmap bitmap, int placeholder, ImageView imageView);\n\n void loadCircleImage(Bitmap bitmap, int placeholder, ImageView imageView, ImageLoadListener listener);\n\n void loadCircleImage(Object url, int placeholder, ImageView imageView, ImageLoadListener listener);\n\n void loadCircleBorderImage(Object url, int placeholder, ImageView imageView, float borderWidth, int borderColor);\n\n void loadCornerImage(Bitmap bitmap, int placeholder, ImageView imageView, int dp);\n\n void loadCornerImage(Object url, int placeholder, ImageView imageView, int dp);\n\n void loadCornerImage(Object url, int placeholder, ImageView imageView, int dp, ImageLoadListener listener);\n\n //清除硬盘缓存\n void clearImageDiskCache(final Context context);\n\n //清除内存缓存\n void clearImageMemoryCache(Context context);\n\n //根据不同的内存状态,来响应不同的内存释放策略\n void trimMemory(Context context, int level);\n\n //获取缓存大小\n String getCacheSize(Context context);\n\n void saveImage(Context context, Object url, String savePath, String saveFileName, ImageSaveListener listener);\n\n void downloadOnly(Context context, String url, ImageDownloadListener listener);\n\n void loadDrawable(Context context, Object url, ImageDrawableListener listener);\n}",
"public void initImageLoader(Context context) {\n\n ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(context)\n .threadPoolSize(1)\n .tasksProcessingOrder(QueueProcessingType.LIFO)\n .diskCacheFileNameGenerator(new Md5FileNameGenerator())\n .threadPriority(Thread.NORM_PRIORITY - 2)\n .denyCacheImageMultipleSizesInMemory()\n .memoryCache(new WeakMemoryCache())\n .build();\n\t\t// Initialize ImageLoader with configuration.\n\t\tImageLoader.getInstance().init(config);\n\t}",
"@Override public void applyOptions(Context context, GlideBuilder builder) {\n builder.setDiskCache(\n new InternalCacheDiskCacheFactory(context, GLIDE_DISK_CACHE));\n }",
"public CrawlerConfiguration() {\n\t\tinitConfiguration();\n\t}",
"public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);",
"protected void setJAIDefaultOptions() {\r\n\r\n\t\tthis.updateDynamicWelcomeText(\"Setting default JAI options...\");\r\n\r\n\t\tfinal long memCapacity = 1024L * 1024 * 1024; // 1024MByte\r\n\t\t// final long memCapacity = 0L; // 256MByte\r\n\t\t// final long tileCapacity = 1000L;\r\n\t\tJAI.getDefaultInstance().setTileCache(JAI.createTileCache(memCapacity));\r\n\t\tJAI.getDefaultInstance().setRenderingHint(\r\n\t\t\t\tJAI.KEY_CACHED_TILE_RECYCLING_ENABLED, Boolean.FALSE);\r\n\t\tTileScheduler ts = JAI.createTileScheduler();\r\n\t\tts.setPriority(Thread.MAX_PRIORITY);\r\n\t\t// ts.setParallelism(2); //default 2\r\n\t\tJAI.getDefaultInstance().setTileScheduler(ts);\r\n\r\n\t}",
"public void setDefaultParameters() {\n\t\toptions = 0;\n\t\toutBits = null;\n\t\ttext = new byte[0];\n\t\tyHeight = 3;\n\t\taspectRatio = 0.5f;\n\t}",
"public AdjustPeaksForPixelSensitivity_2(){\n super(\"AdjustPeaksForPixelSensitivity_2\");\n }",
"public interface FmTrainParams<T> extends\n HasLabelCol<T>,\n HasVectorColDefaultAsNull<T>,\n HasWeightColDefaultAsNull<T>,\n HasEpsilonDv0000001<T>,\n HasFeatureColsDefaultAsNull<T>,\n FmCommonTrainParams<T> {\n\n /**\n * @cn-name 迭代数据batch size\n * @cn 数据batch size\n */\n ParamInfo<Integer> MINIBATCH_SIZE = ParamInfoFactory\n .createParamInfo(\"batchSize\", Integer.class)\n .setDescription(\"mini-batch size\")\n\t\t\t.setAlias(new String[]{\"minibatchSize\"})\n .setHasDefaultValue(-1)\n .build();\n\n default Integer getBatchSize() {\n return get(MINIBATCH_SIZE);\n }\n\n default T setBatchSize(Integer value) {\n return set(MINIBATCH_SIZE, value);\n }\n}",
"public void overrideProfileSize() {\n }",
"public ImageProcessor() {\n\t\t// Exit on Close\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\n\n\t\t// sets up custom gain/bias filter objects\n\t\tadjustGain = new GainFilter();\n\t\tadjustBias = new BiasFilter();\n\n\t\t// Creates the Menus for file options, gain, and bias adjustments\n\t\toptionsMenu = new JMenu(\"File Options\");\n\t\tgainMenu = new JMenu(\"Gain Adjustment\");\n\t\tbiasMenu = new JMenu(\"Bias Adjustment\");\n\n\t\t// File Options Menu setup\n\t\topenImageOption = new JMenuItem(\"Open A New Image File\");\n\t\topenImageOption.addActionListener(this);\n\t\toptionsMenu.add(openImageOption);\n\n\t\t// Add Seperator in file menu\n\n\t\toptionsMenu.addSeparator();\n\n\t\tsaveImageOption = new JMenuItem(\"Save The Filtered Image\");\n\t\tsaveImageOption.addActionListener(this);\n\t\tsaveImageOption.setEnabled(false);\n\n\t\toptionsMenu.add(saveImageOption);\n\n\t\t// Setup bias Slider\n\t\tbiasFactorSlider = new JSlider(-200, 200);\n\t\tbiasFactorSlider.setMajorTickSpacing(50);\n\t\tbiasFactorSlider.setPaintTicks(true);\n\t\tbiasFactorSlider.setPaintLabels(true);\n\t\tbiasFactorSlider.addChangeListener(this);\n\t\tbiasFactorSlider.setEnabled(false);\n\t\tbiasFactorSlider.addChangeListener(this);\n\t\tbiasMenu.add(biasFactorSlider);\n\t\tbiasMenu.setEnabled(false);\n\n\t\t// Setup gain slider\n\t\tgainFactorSlider = new JSlider(2, 8);\n\t\tHashtable<Integer, JLabel> labelTable = new Hashtable<Integer, JLabel>();\n\t\tlabelTable.put(2, new JLabel(\"0.5\"));\n\t\tlabelTable.put(3, new JLabel(\"0.75\"));\n\t\tlabelTable.put(4, new JLabel(\"1.0\"));\n\t\tlabelTable.put(5, new JLabel(\"1.25\"));\n\t\tlabelTable.put(6, new JLabel(\"1.5\"));\n\t\tlabelTable.put(7, new JLabel(\"1.75\"));\n\t\tlabelTable.put(8, new JLabel(\"2.0\"));\n\t\tgainFactorSlider.setLabelTable(labelTable);\n\t\tgainFactorSlider.setPaintLabels(true);\n\t\tgainFactorSlider.setEnabled(false);\n\t\tgainFactorSlider.addChangeListener(this);\n\t\tgainMenu.add(gainFactorSlider);\n\t\tgainMenu.setEnabled(false);\n\n\t\t// Setup zoom slider\n\t\tzoomSlider = new JSlider(0, 10);\n\t\tzoomSlider.setMajorTickSpacing(1);\n\t\tzoomSlider.setPaintTicks(true);\n\t\tzoomSlider.setPaintLabels(true);\n\n\t\tzoomSlider.addChangeListener(this);\n\t\tJMenu zoomMenu = new JMenu(\"Zoom\");\n\t\tzoomMenu.add(zoomSlider);\n\n\t\t// Set up the menu bar, and add the items needed\n\t\tJMenuBar optionsBar = new JMenuBar();\n\t\toptionsBar.add(optionsMenu);\n\t\toptionsBar.add(biasMenu);\n\t\toptionsBar.add(gainMenu);\n\t\toptionsBar.add(zoomMenu);\n\t\tsetJMenuBar(optionsBar);\n\n\t\t//// Add Radio Buttons for the filters\n\t\tbutton1 = new JRadioButton(\"Red-Green Swap\", false);\n\t\tbutton2 = new JRadioButton(\"Red-Blue Swap\", false);\n\t\tbutton3 = new JRadioButton(\"Green-Blue Swap\", false);\n\t\tbutton4 = new JRadioButton(\"Black and White\", false);\n\t\tbutton5 = new JRadioButton(\"Rotate clockwise\", false);\n\t\tbutton6 = new JRadioButton(\"Rotate counter-clockwise\", false);\n\t\tbutton7 = new JRadioButton(\"Gain\", false);\n\t\tbutton8 = new JRadioButton(\"Bias\", false);\n\t\tbutton9 = new JRadioButton(\"Blur\", false);\n\t\tbutton10 = new JRadioButton(\"Red-Select\", false);\n\t\tbutton11 = new JRadioButton(\"Green-Select\", false);\n\t\tbutton12 = new JRadioButton(\"Blue-Select\", false);\n\n\t\t// Set Tool-tips for each radio Button\n\t\tbutton1.setToolTipText(\"This Filter will swap green colors with red\");\n\t\tbutton2.setToolTipText(\"This Filter will swap red colors with blue\");\n\t\tbutton3.setToolTipText(\"This Filter will swap green colors with blue\");\n\t\tbutton4.setToolTipText(\"This Filter will convert the image to Black and White\");\n\t\tbutton5.setToolTipText(\"This Button will rotate the image clockwise\");\n\t\tbutton6.setToolTipText(\"This Button will rotate the image counterclock-wise\");\n\t\tbutton7.setToolTipText(\"This Filter can make the image contrast brighter or darker, use slider to adjust\");\n\t\tbutton8.setToolTipText(\n\t\t\t\t\"This Filter will select a bais filter, you can select how bright or dark you want the image to be\");\n\t\tbutton9.setToolTipText(\"This Filter will blur the image\");\n\t\tbutton10.setToolTipText(\"This Filter will smooth out red areas of the image pallet\");\n\t\tbutton11.setToolTipText(\"This FIlter will smooth out green areas of the image pallet\");\n\t\tbutton12.setToolTipText(\"This Filter will smooth out blue areas of the image pallet\");\n\t\t// Set tool-tips for each slider\n\t\tbiasFactorSlider.setToolTipText(\n\t\t\t\t\"Slide to adjust the amount of bias, and select Apply {Negative values will make image darker, positive values will make image brighter}\");\n\t\tgainFactorSlider.setToolTipText(\n\t\t\t\t\"Slide to adjust the amount of gain, and select Apply {Higher gain values will result in higher contrast, and brighter image}\");\n\n\t\t// Create a button group to store the buttons so only one can be\n\t\t// selected\n\t\tfilterGroup = new ButtonGroup();\n\t\tfilterGroup.add(button1);\n\t\tfilterGroup.add(button2);\n\t\tfilterGroup.add(button3);\n\t\tfilterGroup.add(button4);\n\t\tfilterGroup.add(button5);\n\t\tfilterGroup.add(button6);\n\t\tfilterGroup.add(button7);\n\t\tfilterGroup.add(button8);\n\t\tfilterGroup.add(button9);\n\t\tfilterGroup.add(button10);\n\t\tfilterGroup.add(button11);\n\t\tfilterGroup.add(button12);\n\n\t\t// Add a new panel to put into main panel\n\t\tradioButtons = new JPanel();\n\t\tradioButtons.setLayout(new GridLayout(4, 3));\n\t\tradioButtons.add(button1);\n\t\tradioButtons.add(button2);\n\t\tradioButtons.add(button3);\n\t\tradioButtons.add(button4);\n\t\tradioButtons.add(button5);\n\t\tradioButtons.add(button6);\n\t\tradioButtons.add(button7);\n\t\tradioButtons.add(button8);\n\t\tradioButtons.add(button9);\n\t\tradioButtons.add(button10);\n\t\tradioButtons.add(button11);\n\t\tradioButtons.add(button12);\n\n\t\tradioButtons\n\t\t\t\t.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Select an Option:\"));\n\t\t// Initially Disable the Radio Buttons\n\t\tbutton1.setEnabled(false);\n\t\tbutton2.setEnabled(false);\n\t\tbutton3.setEnabled(false);\n\t\tbutton4.setEnabled(false);\n\t\tbutton5.setEnabled(false);\n\t\tbutton6.setEnabled(false);\n\t\tbutton7.setEnabled(false);\n\t\tbutton8.setEnabled(false);\n\t\tbutton9.setEnabled(false);\n\t\tbutton10.setEnabled(false);\n\t\tbutton11.setEnabled(false);\n\t\tbutton12.setEnabled(false);\n\n\t\t// Setup Multi-selection radio buttons\n\t\tOn = new JRadioButton(\"On\");\n\t\tOff = new JRadioButton(\"Off\");\n\t\tmultiSelect = new ButtonGroup();\n\t\tmultiSelect.add(On);\n\t\tmultiSelect.add(Off);\n\n\t\tOn.setEnabled(false);\n\t\tOff.setEnabled(false);\n\t\tmultiSelectPanel = new JPanel();\n\t\tmultiSelectPanel.setLayout(new GridLayout(1, 3));\n\t\tmultiSelectPanel.add(On);\n\t\tmultiSelectPanel.add(Off);\n\t\tmultiSelectPanel\n\t\t\t\t.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Multi-Filter Select\"));\n\t\tmultiSelectPanel.setPreferredSize(new Dimension(150, 80));\n\n\t\t// Sets up the Tabbed Pane for the image\n\n\t\timagePane = new JTabbedPane();\n\n\t\t// Create a button to apply filters, and to apply adjustments\n\t\tfilterButton = new JButton(\"Apply\");\n\t\tfilterButton.setEnabled(false);\n\t\tfilterButton.setToolTipText(\"Apply the Selected Operation\");\n\n\t\t// Setup Crop Button\n\t\tcropButton = new JButton(\"Crop\");\n\t\tcropButton.setEnabled(false);\n\t\tcropButton.setToolTipText(\"Select Region of Image to Crop\");\n\n\t\t// Set up region selection button\n\t\tregionFilterButton = new JButton(\"Region Filter\");\n\t\tregionFilterButton.setEnabled(false);\n\t\tregionFilterButton.setToolTipText(\n\t\t\t\t\"Select this button to apply filter to a region of Image, will not work for Rotation, blur, gain, and bias\");\n\n\t\t// Setup panel for Apply, crop, and region-select buttons\n\t\tselectionPanel = new JPanel();\n\t\tselectionPanel.setLayout(new GridLayout(1, 2));\n\t\tselectionPanel.setPreferredSize(new Dimension(350, 30));\n\t\tselectionPanel.add(filterButton);\n\t\tselectionPanel.add(cropButton);\n\t\tselectionPanel.add(regionFilterButton);\n\n\t\t// Set the JPanel area\n\t\tJPanel content = new JPanel();\n\t\tcontent.setLayout(new FlowLayout());\n\t\tcontent.setPreferredSize(new Dimension(1024, 900));\n\t\tcontent.add(radioButtons);\n\t\tcontent.add(multiSelectPanel);\n\n\t\tcontent.add(selectionPanel);\n\t\tcontent.add(imagePane);\n\t\tsetTitle(\"ImageProcessor\");\n\t\tsetContentPane(content);\n\t\tpack();\n\n\t\t// All major events for standard filters will occur when the \"apply\"\n\t\t// button is pressed\n\n\t\tfilterButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOn.setEnabled(true);\n\t\t\t\tOff.setEnabled(true);\n\t\t\t\tgainMenu.setEnabled(false);\n\t\t\t\tbiasMenu.setEnabled(false);\n\t\t\t\tgainFactorSlider.setEnabled(false);\n\t\t\t\tbiasFactorSlider.setEnabled(false);\n\n\t\t\t\t// Setup conditions depending on which button is pressed\n\n\t\t\t\tif (button1.isSelected()) {\n\n\t\t\t\t\tf = new RedGreenSwapFilter();\n\n\t\t\t\t} else if (button2.isSelected()) {\n\n\t\t\t\t\tf = new RedBlueSwapFilter();\n\n\t\t\t\t} else if (button3.isSelected()) {\n\n\t\t\t\t\tf = new GreenBlueSwapFilter();\n\n\t\t\t\t} else if (button4.isSelected()) {\n\n\t\t\t\t\tf = new BlackAndWhiteFilter();\n\n\t\t\t\t} else if (button5.isSelected()) {\n\n\t\t\t\t\tf = new RotateClockwise();\n\n\t\t\t\t} else if (button6.isSelected()) {\n\n\t\t\t\t\tf = new RotateCounterClockwise();\n\n\t\t\t\t} else if (button7.isSelected()) {\n\t\t\t\t\t// conditions to apply gain filter\n\t\t\t\t\tgainMenu.setEnabled(true);\n\t\t\t\t\tgainFactorSlider.setEnabled(true);\n\n\t\t\t\t\tadjustGain.setGainValue(gainFactor);\n\t\t\t\t\tfinalImage = adjustGain.filter(originalImage);\n\n\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t} else {\n\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t}\n\n\t\t\t\t} else if (button8.isSelected()) {\n\t\t\t\t\t// conditions to apply bias filter\n\t\t\t\t\tbiasMenu.setEnabled(true);\n\t\t\t\t\tbiasFactorSlider.setEnabled(true);\n\n\t\t\t\t\tadjustBias.setBiasValue(biasFactor);\n\t\t\t\t\tfinalImage = adjustBias.filter(originalImage);\n\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t} else {\n\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t}\n\n\t\t\t\t} else if (button9.isSelected()) {\n\n\t\t\t\t\tf = new BlurFilter();\n\n\t\t\t\t} else if (button10.isSelected()) {\n\n\t\t\t\t\tf = new RedSelectFilter();\n\n\t\t\t\t} else if (button11.isSelected()) {\n\n\t\t\t\t\tf = new GreenSelectFilter();\n\n\t\t\t\t} else {\n\n\t\t\t\t\tf = new BlueSelectFilter();\n\t\t\t\t}\n\t\t\t\t// Determines is multi filter apply selection option button is\n\t\t\t\t// on or off\n\t\t\t\tif (!(button7.isSelected() || button8.isSelected())) {\n\n\t\t\t\t\tif ((!On.isSelected()) || (Off.isSelected())) {\n\n\t\t\t\t\t\tfinalImage = f.filter(originalImage);\n\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfinalImage = f.filter(finalImage);\n\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tsaveImageOption.setEnabled(true);\n\n\t\t\t}\n\t\t});\n\n\t\t// Crop Button action Listener\n\n\t\tcropButton.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// make buttons visable\n\t\t\t\tOn.setEnabled(true);\n\t\t\t\tOff.setEnabled(true);\n\t\t\t\t// if multi select option is turned on, then cumilitive effects\n\t\t\t\t// will occur with crop\n\t\t\t\tif ((!On.isSelected()) || (Off.isSelected())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tf2 = new CropImageFilter();\n\t\t\t\t\t\tf2.setRegion(originalPanel.getSelectedRegion());\n\t\t\t\t\t\tfinalImage = f2.filter(originalImage);\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception d) {\n\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tf2 = new CropImageFilter();\n\t\t\t\t\t\tf2.setRegion(originalPanel.getSelectedRegion());\n\t\t\t\t\t\tfinalImage = f2.filter(finalImage);\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception d) {\n\n\t\t\t\t\t\treturn;\n\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t\t// Region Filter Button Listener\n\t\tregionFilterButton.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tOn.setEnabled(true);\n\t\t\t\tOff.setEnabled(true);\n\t\t\t\t// sets up the filtering\n\t\t\t\tif (button1.isSelected()) {\n\t\t\t\t\tf2 = new RedGreenSwapSelect();\n\t\t\t\t} else if (button2.isSelected()) {\n\t\t\t\t\tf2 = new RedBlueSwapSelect();\n\t\t\t\t} else if (button3.isSelected()) {\n\t\t\t\t\tf2 = new GreenBlueSwapSelect();\n\t\t\t\t} else if (button4.isSelected()) {\n\t\t\t\t\tf2 = new BlackAndWhiteSelect();\n\t\t\t\t} else if (button9.isSelected()) {\n\t\t\t\t\tf2 = new BlurFilterSelect();\n\n\t\t\t\t} else if (button10.isSelected()) {\n\t\t\t\t\tf2 = new RedSelectFilterSelect();\n\t\t\t\t} else if (button11.isSelected()) {\n\t\t\t\t\tf2 = new GreenSelectFilterSelect();\n\t\t\t\t} else if (button12.isSelected()) {\n\t\t\t\t\tf2 = new BlueSelectFilterSelect();\n\t\t\t\t}\n\t\t\t\t// if statement will determine is multi selection option is\n\t\t\t\t// turned on for cumulative selection,\n\t\t\t\t// if on, it will accumulate the filters.\n\t\t\t\tif ((!On.isSelected()) || (Off.isSelected())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tf2.setRegion(originalPanel.getSelectedRegion());\n\t\t\t\t\t\tfinalImage = f2.filter(originalImage);\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception d) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tf2.setRegion(originalPanel.getSelectedRegion());\n\t\t\t\t\t\tfinalImage = f2.filter(finalImage);\n\t\t\t\t\t\tif (imagePane.getTabCount() >= 2) {\n\t\t\t\t\t\t\timagePane.setComponentAt(1, new ImagePanel(finalImage));\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\timagePane.add(new ImagePanel(finalImage), \"Filtered\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception d) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t});\n\n\t}",
"@Override\n public void settings(){\n size(500, 500);\n }",
"public void setPerformanceTuningSettings(Properties aPerformanceTuningSettings) {\n mPerformanceTuningSettings = aPerformanceTuningSettings;\n }",
"private static Bitmap readImageWithSampling(String imagePath, int targetWidth, int targetHeight,\n Bitmap.Config bmConfig) {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(imagePath, bmOptions);\n\n int photoWidth = bmOptions.outWidth;\n int photoHeight = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoWidth / targetWidth, photoHeight / targetHeight);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inPreferredConfig = bmConfig;\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bmOptions.inDither = false;\n\n Bitmap orgImage = BitmapFactory.decodeFile(imagePath, bmOptions);\n\n return orgImage;\n\n }",
"public FireflyOptimization(){\n this(25, 1000);\n }",
"public LimitConfiguration() {\n try {\n yellowLimit = new AlertLimit((float) 0.75);\n redLimit = new AlertLimit((float)0.9);\n } catch(Exception e){\n //This exception should not happen\n System.out.println(e.getMessage());\n }\n }",
"public ListenerConfig(String threshold, int size) { \n\t\tmThreshold = threshold;\n\t\tmSize = size;\n\t}",
"void configure(DecisionContextItemConfig config);",
"public void settings() {\n size(640, 384);\n }",
"@Override\n public void setupConfiguration(Configuration config)\n {\n\n }",
"public ConfigGeneratorApi(ToolOptions options) {\n super(options);\n }",
"@Generated\n @Selector(\"configurationWithScale:\")\n public static native UIImageSymbolConfiguration configurationWithScale(@NInt long scale);",
"public interface Settings {\n boolean dynamicMetricsEnabled();\n}",
"public static Config createJeruslaemConfig() {\n\t\tConfig config = ConfigUtils.createConfig();\n\n\t\tconfig.network().setInputFile(INPUT_NETWORK);\n\t\tconfig.plans().setInputFile(INPUT_POPULATION);\n\t\tconfig.facilities().setInputFile(INPUT_FACILITES);\n\t\tconfig.households().setInputFile(INPUT_HOUSEHOLDS);\n\n\t\t// modify controler\n\t\tconfig.controler().setWriteEventsInterval(25);\n\t\tconfig.controler().setWritePlansInterval(25);\n\t\tconfig.controler().setEventsFileFormats(EnumSet.of(EventsFileFormat.xml));\n\t\tconfig.controler().setOutputDirectory(OUTPUT_FOLDER + RUN_ID + \"/\");\n\t\tconfig.controler().setOverwriteFileSetting(OverwriteFileSetting.overwriteExistingFiles);\n\t\tconfig.controler().setFirstIteration(0);\n\t\tconfig.controler().setLastIteration(300);\n\t\tconfig.controler().setMobsim(\"qsim\");\n\t\tconfig.controler().setRoutingAlgorithmType(RoutingAlgorithmType.FastAStarLandmarks);\n\t\tconfig.controler().setRunId(RUN_ID);\n\t\t\n\t\t// modify Qsim\n\t\tconfig.qsim().setStartTime(0.0);\n\t\tconfig.qsim().setEndTime(30 * 3600);\n\t\tconfig.qsim().setFlowCapFactor(0.3);\n\t\tconfig.qsim().setStorageCapFactor(Math.pow(0.3, 0.75));\n\t\tconfig.qsim().setNumberOfThreads(12);\n\t\tconfig.qsim().setSnapshotPeriod(1);\n\t\tconfig.qsim().setStuckTime(10);//30,60 or multiply by 60\n\t\tconfig.qsim().setRemoveStuckVehicles(false);\n\t\tconfig.qsim().setTimeStepSize(1);\n\t\tconfig.qsim().setTrafficDynamics(TrafficDynamics.kinematicWaves);// kinematic waves\n\t\tconfig.qsim().setMainModes(Arrays.asList(TransportMode.car));\n\t\tconfig.qsim().setInsertingWaitingVehiclesBeforeDrivingVehicles(true);\n\n\t\t// modify global\n\t\tconfig.global().setCoordinateSystem(\"EPSG:2039\");\n\t\tconfig.global().setNumberOfThreads(16);\n\t\t// ?? random seed?<param name=\"randomSeed\" value=\"4711\" />\n\t\t\n\t\t// Add transit\n\t\tconfig.transit().setUseTransit(true);\n\t\tconfig.transit().setTransitScheduleFile(INPUT_TRANSIT_SCHEDULE);\n\t\tconfig.transit().setVehiclesFile(INPUT_TRANSIT_VEHICLES);\n\t\t\n\n\n//\t\t// Add sub-tour mode choice\n//\t\tconfig.subtourModeChoice()\n//\t\t\t\t.setModes(new String[] { TransportMode.car, TransportMode.pt, TransportMode.walk, TransportMode.bike });\n//\t\t// TODO check that bike is biycle\n//\t\tconfig.subtourModeChoice().setChainBasedModes(new String[] { TransportMode.car });\n//\n\t\t// Add sub-tour mode choice\n\t\tconfig.timeAllocationMutator().setMutationRange(3600);\n\n\t\t// Add strategy\n\t\tconfig.strategy().setMaxAgentPlanMemorySize(5);\n\t\tconfig.strategy().setFractionOfIterationsToDisableInnovation(0.8);\n\n\t\t// Add strategy - plan selector\n\t\tStrategySettings changeExpStrategy = new StrategySettings();\n\t\tchangeExpStrategy.setDisableAfter(-1);\n\t\tchangeExpStrategy.setStrategyName(DefaultPlanStrategiesModule.DefaultSelector.ChangeExpBeta.toString());\n\t\tchangeExpStrategy.setWeight(0.8);\n\t\tconfig.strategy().addStrategySettings(changeExpStrategy);\n\n//\t\t Add strategy - time-mutation\n\t\tStrategySettings timeMutatorStrategy = new StrategySettings();\n\t\ttimeMutatorStrategy\n\t\t\t\t.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.TimeAllocationMutator.toString());\n\t\ttimeMutatorStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(timeMutatorStrategy);\n\n\t\t// Add strategy - re-route\n\t\tStrategySettings reRouteStrategy = new StrategySettings();\n\t\treRouteStrategy.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.ReRoute.toString());\n\t\treRouteStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(reRouteStrategy);\n\n//\t\t Add strategy - Sub-tour strategy\n\t\tStrategySettings subTourModeChoiceStrategy = new StrategySettings();\n\t\tsubTourModeChoiceStrategy\n\t\t\t\t.setStrategyName(DefaultPlanStrategiesModule.DefaultStrategy.SubtourModeChoice.toString());\n\t\tsubTourModeChoiceStrategy.setWeight(0.1);\n\t\tconfig.strategy().addStrategySettings(subTourModeChoiceStrategy);\n\n\t\t// add car Availability after adding attributes to popualtion\n\t\t config.subtourModeChoice().setConsiderCarAvailability(true);\n\n\t\t// add network modes which are simulated on network in future add more modes\n\t\t// config.plansCalcRoute().setNetworkModes(Arrays.asList(TransportMode.car));\n\t\t// config.plansCalcRoute().setInsertingAccessEgressWalk(true);\n\n\t\t// // just a place hodler\n\t\t// ModeRoutingParams taxiModeRoute = new ModeRoutingParams();\n\t\t// taxiModeRoute.setMode(TransportMode.taxi);\n\t\t// taxiModeRoute.setTeleportedModeSpeed(100.0);\n\t\t// config.plansCalcRoute().addModeRoutingParams(taxiModeRoute);\n\n\t\t// global scoring values taken from TLVM model = SF 14\n\t\tconfig.planCalcScore().setEarlyDeparture_utils_hr(0.0);\n\t\tconfig.planCalcScore().setLateArrival_utils_hr(0);\n\t\tconfig.planCalcScore().setMarginalUtilityOfMoney(0.062);\n\t\tconfig.planCalcScore().setPerforming_utils_hr(0.96);\n\t\tconfig.planCalcScore().setUtilityOfLineSwitch(0);\n\t\tconfig.planCalcScore().setMarginalUtlOfWaitingPt_utils_hr(-0.18);\n\n\t\t// car scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams carCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.car);\n\t\tcarCalcScoreParams.setConstant(-0.562);\n\t\tcarCalcScoreParams.setMode(\"car\");\n\t\tcarCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\tconfig.planCalcScore().addModeParams(carCalcScoreParams);\n\n\t\t// PT scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams ptCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.pt);\n\t\tptCalcScoreParams.setConstant(-0.124);\n\t\tptCalcScoreParams.setMode(\"pt\");\n\t\tptCalcScoreParams.setMarginalUtilityOfTraveling(-0.18);\n\t\tconfig.planCalcScore().addModeParams(ptCalcScoreParams);\n\n\t\t// Walk scoring functions from TLVM model = SF 14\n\t\tPlanCalcScoreConfigGroup.ModeParams walkCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.walk);\n\t\twalkCalcScoreParams.setMode(\"walk\");\n\t\twalkCalcScoreParams.setMarginalUtilityOfTraveling(-1.14);\n\t\tconfig.planCalcScore().addModeParams(walkCalcScoreParams);\n\n\t\t// TODO get values for Taxi scoring\n\t\t// Taxi scoring functions place holder (taken from car)\n\t\t// PlanCalcScoreConfigGroup.ModeParams TaxiCalcScoreParams = new\n\t\t// PlanCalcScoreConfigGroup.ModeParams(TransportMode.taxi);\n\t\t// TaxiCalcScoreParams.setConstant(-0.562);\n\t\t// TaxiCalcScoreParams.setMode(\"taxi\");\n\t\t// TaxiCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\t// config.planCalcScore().addModeParams(walkCalcScoreParams);\n\n\t\t// TODO add ride as network mode remove from modechoice\n\t\t// Ride scoring functions place holder taken from Berlin MATSim model -\n\t\t// monetaryDistanceRate same as car -0.0004\n\t\tPlanCalcScoreConfigGroup.ModeParams rideCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.ride);\n\t\trideCalcScoreParams.setMode(\"ride\");\n\t\trideCalcScoreParams.setMonetaryDistanceRate(-0.0004);\n\t\tconfig.planCalcScore().addModeParams(rideCalcScoreParams);\n\n\t\t// TODO check with JLM bike - bicyle\n\t\t// bike scoring functions place holder taken from Berlin MATSim model of bicyke\n\t\tPlanCalcScoreConfigGroup.ModeParams bikeCalcScoreParams = new PlanCalcScoreConfigGroup.ModeParams(\n\t\t\t\tTransportMode.bike);\n\t\tbikeCalcScoreParams.setConstant(-1.9);\n\t\tbikeCalcScoreParams.setMode(\"bike\");\n\t\tconfig.planCalcScore().addModeParams(bikeCalcScoreParams);\n\n\t\t// TODO get activities open hours\n\t\tActivityParams home = new ActivityParams(\"home\");\n\t\thome.setTypicalDuration(16 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(home);\n\n\t\tActivityParams work = new ActivityParams(\"work\");\n\t\twork.setOpeningTime(6 * 3600);\n\t\twork.setClosingTime(20 * 3600);\n\t\twork.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(work);\n\n\t\tActivityParams school = new ActivityParams(\"school\");\n\t\tschool.setOpeningTime(8 * 3600);\n\t\tschool.setClosingTime(14 * 3600);\n\t\tschool.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(school);\n\n\t\tActivityParams leisure = new ActivityParams(\"leisure\");\n\t\tleisure.setOpeningTime(9 * 3600);\n\t\tleisure.setClosingTime(24 * 3600);\n\t\tleisure.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(leisure);\n\n\t\tActivityParams other = new ActivityParams(\"other\");\n\t\tother.setTypicalDuration(8 * 60 * 60);\n\t\tconfig.planCalcScore().addActivityParams(other);\n\n\t\treturn config;\n\n\t}"
] | [
"0.63409853",
"0.5791025",
"0.5730762",
"0.5662872",
"0.56225115",
"0.5558756",
"0.553354",
"0.5359134",
"0.5339623",
"0.52764267",
"0.5270552",
"0.5211977",
"0.5179496",
"0.51467836",
"0.51320463",
"0.51218307",
"0.5092442",
"0.50859445",
"0.508186",
"0.5066703",
"0.50393736",
"0.49656987",
"0.4959256",
"0.4941202",
"0.4933646",
"0.49304897",
"0.4925934",
"0.49233097",
"0.49199238",
"0.48819262",
"0.48703352",
"0.48612022",
"0.4851796",
"0.4844721",
"0.4775327",
"0.477253",
"0.4758117",
"0.47368726",
"0.4733942",
"0.47307172",
"0.47295797",
"0.47266868",
"0.47265717",
"0.4725481",
"0.46995717",
"0.46904466",
"0.46902266",
"0.46881628",
"0.4681952",
"0.46782166",
"0.46721438",
"0.46718806",
"0.46717224",
"0.46709344",
"0.46599522",
"0.46595895",
"0.46587673",
"0.46496093",
"0.46473208",
"0.46433797",
"0.46355087",
"0.4620866",
"0.46146885",
"0.4612752",
"0.4611451",
"0.46084908",
"0.46079996",
"0.4600935",
"0.45999467",
"0.45994455",
"0.45961037",
"0.4592107",
"0.45893806",
"0.45808217",
"0.4577455",
"0.45751107",
"0.45742935",
"0.45678914",
"0.45529804",
"0.45527688",
"0.45523098",
"0.45495528",
"0.45442194",
"0.45403525",
"0.4522848",
"0.45220315",
"0.45200896",
"0.4517197",
"0.45158333",
"0.451463",
"0.45117265",
"0.45055303",
"0.45012367",
"0.45000654",
"0.44969338",
"0.4486273",
"0.4483924",
"0.44835064",
"0.44826669",
"0.4475893",
"0.447571"
] | 0.0 | -1 |
Initializes the controller class. | @Override
public void initialize(URL url, ResourceBundle rb) {
// TODO
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initialize() {\n\t\tcontroller = Controller.getInstance();\n\t}",
"public MainController() {\n\t\tcontroller = new Controller(this);\n\t}",
"public abstract void initController();",
"public Controller() {\n super();\n }",
"public Controller() {\n super();\n }",
"public Controller()\n\t{\n\n\t}",
"private static CompanyController initializeController() {\n\n controller = new CompanyController();\n return controller;\n }",
"public MainController() {\n initializeControllers();\n initializeGui();\n runGameLoop();\n }",
"public Controller() {\n this.model = new ModelFacade();\n this.view = new ViewFacade();\n }",
"public Controller()\r\n\t{\r\n\t\tview = new View();\r\n\t}",
"public Controller() {\n\t\tthis(null);\n\t}",
"public void init(){\n\t\t//Makes the view\n\t\tsetUpView();\n\n\t\t//Make the controller. Links the action listeners to the view\n\t\tnew Controller(this);\n\t\t\n\t\t//Initilize the array list\n\t\tgameInput = new ArrayList<Integer>();\n\t\tuserInput = new ArrayList<Integer>();\n\t\thighScore = new HighScoreArrayList();\n\t}",
"private void initialize() {\n\t\tinitializeModel();\n\t\tinitializeBoundary();\n\t\tinitializeController();\n\t}",
"public void init() {\n\t\tkontrolleri1 = new KolikkoController(this);\n\t}",
"protected void initialize() {\n super.initialize(); // Enables \"drive straight\" controller\n }",
"public Controller() {\n model = new Model();\n comboBox = new ChannelComboBox();\n initView();\n new ChannelWorker().execute();\n timer = new Timer();\n }",
"protected CityController() {\r\n\t}",
"public void initialize() {\n warpController = new WarpController(this);\n kitController = new KitController(this);\n crafting = new CraftingController(this);\n mobs = new MobController(this);\n items = new ItemController(this);\n enchanting = new EnchantingController(this);\n anvil = new AnvilController(this);\n blockController = new BlockController(this);\n hangingController = new HangingController(this);\n entityController = new EntityController(this);\n playerController = new PlayerController(this);\n inventoryController = new InventoryController(this);\n explosionController = new ExplosionController(this);\n requirementsController = new RequirementsController(this);\n worldController = new WorldController(this);\n arenaController = new ArenaController(this);\n arenaController.start();\n if (CompatibilityLib.hasStatistics() && !CompatibilityLib.hasJumpEvent()) {\n jumpController = new JumpController(this);\n }\n File examplesFolder = new File(getPlugin().getDataFolder(), \"examples\");\n examplesFolder.mkdirs();\n\n File urlMapFile = getDataFile(URL_MAPS_FILE);\n File imageCache = new File(dataFolder, \"imagemapcache\");\n imageCache.mkdirs();\n maps = new MapController(this, urlMapFile, imageCache);\n\n // Initialize EffectLib.\n if (com.elmakers.mine.bukkit.effect.EffectPlayer.initialize(plugin, getLogger())) {\n getLogger().info(\"EffectLib initialized\");\n } else {\n getLogger().warning(\"Failed to initialize EffectLib\");\n }\n\n // Pre-create schematic folder\n File magicSchematicFolder = new File(plugin.getDataFolder(), \"schematics\");\n magicSchematicFolder.mkdirs();\n\n // One-time migration of legacy configurations\n migrateConfig(\"enchanting\", \"paths\");\n migrateConfig(\"automata\", \"blocks\");\n migrateDataFile(\"automata\", \"blocks\");\n\n // Ready to load\n load();\n resourcePacks.startResourcePackChecks();\n }",
"public ClientController() {\n }",
"public Controller() {\n\t\tthis.nextID = 0;\n\t\tthis.data = new HashMap<Integer, T>();\n\t}",
"public ListaSEController() {\n }",
"boolean InitController();",
"public MenuController() {\r\n\t \r\n\t }",
"@Override\n\tprotected void initController() throws Exception {\n\t\tmgr = orderPickListManager;\n\t}",
"public CustomerController() {\n\t\tsuper();\n\n\t}",
"public End_User_0_Controller() {\r\n\t\t// primaryStage = Users_Page_Controller.primaryStage;\r\n\t\t// this.Storeinfo = primaryStage.getTitle();\r\n\t}",
"public Controller(){\r\n\t\tthis.fabricaJogos = new JogoFactory();\r\n\t\tthis.loja = new Loja();\r\n\t\tthis.preco = 0;\r\n\t\tthis.desconto = 0;\r\n\t}",
"private Controller() {\n\t\tthis.gui = GUI.getInstance();\n\t\tthis.gui.setController(this);\n\t}",
"public GameController() {\r\n\t\tsuper();\r\n\t\tthis.model = Main.getModel();\r\n\t\tthis.player = this.model.getPlayer();\r\n\t\tthis.timeline = this.model.getIndefiniteTimeline();\r\n\t}",
"public PlantillaController() {\n }",
"public Controller() {\n\t\tplaylist = new ArrayList<>();\n\t\tshowingMore = false;\n\t\tstage = Main.getStage();\n\t}",
"public IfController()\n\t{\n\n\t}",
"public TournamentController()\n\t{\n\t\tinitMap();\n\t}",
"public GeneralListVueController() {\n\n\t}",
"private ClientController() {\n }",
"public Controller()\n\t{\n\t\ttheParser = new Parser();\n\t\tstarList = theParser.getStars();\n\t\tmessierList = theParser.getMessierObjects();\n\t\tmoon = new Moon(\"moon\");\n\t\tsun = new Sun(\"sun\");\n\t\tconstellationList = theParser.getConstellations();\n\t\tplanetList = new ArrayList<Planet>();\n\t\ttheCalculator = new Calculator();\n\t\tepoch2000JD = 2451545.0;\n\t}",
"private void initialiseController() \r\n {\r\n defaultVectors();\r\n if(grantsByPIForm == null) \r\n {\r\n grantsByPIForm = new GrantsByPIForm(); //(Component) parent,modal);\r\n }\r\n grantsByPIForm.descriptionLabel.setText(UnitName);\r\n grantsByPIForm.descriptionLabel.setFont(new Font(\"SansSerif\",Font.BOLD,14));\r\n queryEngine = QueryEngine.getInstance();\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n registerComponents();\r\n try {\r\n setFormData(null);\r\n }\r\n catch(Exception e) {\r\n e.printStackTrace(System.out);\r\n }\r\n }",
"public LogMessageController() {\n\t}",
"public LoginPageController() {\n\t}",
"public ControllerEnfermaria() {\n }",
"public ProvisioningEngineerController() {\n super();\n }",
"private StoreController(){}",
"public GenericController() {\n }",
"@Override\n\tpublic void initialize() {\n\t\tinitializeModel(getSeed());\n\t\tinitializeView();\n\t\tinitializeControllers();\n\t\t\n\t\tupdateScore(8);\n\t\tupdateNumberCardsLeft(86);\n\n\t}",
"public MapController() {\r\n\t}",
"public Controller() {\n\t\tenabled = false;\n\t\tloop = new Notifier(new ControllerTask(this));\n\t\tloop.startPeriodic(DEFAULT_PERIOD);\n\t}",
"@Override\r\n\tpublic void initControllerBean() throws Exception {\n\t}",
"private void setupController() {\n setupWriter();\n Controller controller1 = new Controller(writer);\n controller = controller1;\n }",
"public WfController()\n {\n }",
"public Controller() {\n\n lastSearches = new SearchHistory();\n\n }",
"private ClientController(){\n\n }",
"public LoginController() {\r\n }",
"public PersonasController() {\r\n }",
"private void initBefore() {\n // Crear Modelo\n model = new Model();\n\n // Crear Controlador\n control = new Controller(model, this);\n\n // Cargar Propiedades Vista\n prpView = UtilesApp.cargarPropiedades(FICHERO);\n\n // Restaurar Estado\n control.restaurarEstadoVista(this, prpView);\n\n // Otras inicializaciones\n }",
"public StoreController() {\n }",
"public ConsoleController() {\n\t\tcommandDispatch = new CommandDispatch();\n\t}",
"public LoginController() {\r\n\r\n }",
"public final void init(final MainController mainController) {\n this.mainController = mainController;\n }",
"public SMPFXController() {\n\n }",
"public Controller()\r\n {\r\n fillBombs();\r\n fillBoard();\r\n scoreBoard = new ScoreBoard();\r\n }",
"public GUIController() {\n\n }",
"public void init(){\n this.controller = new StudentController();\n SetSection.displayLevelList(grade_comp);\n new DesignSection().designForm(this, editStudentMainPanel, \"mini\");\n }",
"public void init(final Controller controller){\n Gdx.app.debug(\"View\", \"Initializing\");\n \n this.controller = controller;\n \n //clear old stuff\n cameras.clear();\n \n //set up renderer\n hudCamera = new OrthographicCamera();\n hudCamera.setToOrtho(false, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n \n batch = new SpriteBatch();\n igShRenderer = new ShapeRenderer();\n shapeRenderer = new ShapeRenderer();\n \n //set up stage\n stage = new Stage();\n \n //laod cursor\n cursor = new Pixmap(Gdx.files.internal(\"com/BombingGames/WurfelEngine/Core/images/cursor.png\"));\n\n controller.getLoadMenu().viewInit(this);\n \n initalized = true;\n }",
"@PostConstruct\n public void init() {\n WebsocketController.getInstance().setTemplate(this.template);\n try {\n\t\t\tthis.chatController = ChatController.getInstance();\n } catch (final Exception e){\n LOG.error(e.getMessage(), e);\n }\n }",
"public ControllerTest()\r\n {\r\n }",
"public SearchedRecipeController() {\n }",
"public FilmOverviewController() {\n }",
"private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}",
"public CreditPayuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public RootLayoutController() {\n }",
"public MehController() {\n updateView(null);\n }",
"public Controller(int host) {\r\n\t\tsuper(host);\r\n\t}",
"public WorkerController(){\r\n\t}",
"public TipoInformazioniController() {\n\n\t}",
"private void initializeMealsControllers() {\n trNewPetMeal = MealsControllersFactory.createTrNewPetMeal();\n trObtainAllPetMeals = MealsControllersFactory.createTrObtainAllPetMeals();\n trDeleteMeal = MealsControllersFactory.createTrDeleteMeal();\n trUpdateMeal = MealsControllersFactory.createTrUpdateMeal();\n }",
"public ProductOverviewController() {\n }",
"public ProduktController() {\r\n }",
"public Controller(ViewIF view) {\n\t\tthis.view = view;\n\t\tthis.dao = new DAO();\n\t\tthis.stats = new Statistics(this.dao);\n\t\tthis.gameStarted = false;\n\t}",
"private void initializeMedicationControllers() {\n trNewPetMedication = MedicationControllersFactory.createTrNewPetMedication();\n trObtainAllPetMedications = MedicationControllersFactory.createTrObtainAllPetMedications();\n trDeleteMedication = MedicationControllersFactory.createTrDeleteMedication();\n trUpdateMedication = MedicationControllersFactory.createTrUpdateMedication();\n }",
"public PersonLoginController() {\n }",
"public PremiseController() {\n\t\tSystem.out.println(\"Class PremiseController()\");\n\t}",
"public TaxiInformationController() {\n }",
"public LoginController() {\n\t\treadFromFile();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Controller(){\n initControl();\n this.getStylesheets().addAll(\"/resource/style.css\");\n }",
"public CreateDocumentController() {\n }",
"public ControllerRol() {\n }",
"public Controller () {\r\n puzzle = null;\r\n words = new ArrayList <String> ();\r\n fileManager = new FileIO ();\r\n }",
"public void init() {\n \n }",
"Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}",
"public Controller() {\n\t\tdoResidu = false;\n\t\tdoTime = false;\n\t\tdoReference = false;\n\t\tdoConstraint = false;\n\t\ttimeStarting = System.nanoTime();\n\t\t\n\t\tsetPath(Files.getWorkingDirectory());\n\t\tsetSystem(true);\n\t\tsetMultithreading(true);\n\t\tsetDisplayFinal(true);\n\t\tsetFFT(FFT.getFastestFFT().getDefaultFFT());\n\t\tsetNormalizationPSF(1);\n\t\tsetEpsilon(1e-6);\n\t\tsetPadding(new Padding());\n\t\tsetApodization(new Apodization());\n\n\t\tmonitors = new Monitors();\n\t\tmonitors.add(new ConsoleMonitor());\n\t\tmonitors.add(new TableMonitor(Constants.widthGUI, 240));\n\n\t\tsetVerbose(Verbose.Log);\n\t\tsetStats(new Stats(Stats.Mode.NO));\n\t\tsetConstraint(Constraint.Mode.NO);\n\t\tsetResiduMin(-1);\n\t\tsetTimeLimit(-1);\n\t\tsetReference(null);\n\t\tsetOuts(new ArrayList<Output>());\n\t}",
"public OrderInfoViewuiController() {\n\t\tuserbl = new UserController();\n\t}",
"public SessionController() {\n }",
"@Override\n\tprotected void setController() {\n\t\t\n\t}",
"public MainFrameController() {\n }",
"public LicenciaController() {\n }",
"public NearestParksController() {\n this.bn = new BicycleNetwork();\n this.pf = new LocationFacade();\n // this.bn.loadData();\n }",
"public MotorController() {\n\t\tresetTachometers();\n\t}",
"public AwTracingController() {\n mNativeAwTracingController = nativeInit();\n }",
"public Controller(IView view) {\n\t\tengine = new Engine(this);\n\t\tclock = new Clock();\n\t\tsoundEmettor = new SoundEmettor();\n\t\tthis.view = view;\n\t}",
"public HomeController() {\n }",
"public HomeController() {\n }"
] | [
"0.8126964",
"0.7851839",
"0.7832365",
"0.77611595",
"0.77611595",
"0.76006174",
"0.7449813",
"0.7436411",
"0.74287105",
"0.7421962",
"0.74047625",
"0.7343157",
"0.73301536",
"0.7263003",
"0.7224605",
"0.7101504",
"0.7057384",
"0.69884926",
"0.69719976",
"0.69432217",
"0.69119257",
"0.6888825",
"0.6881205",
"0.68794805",
"0.687174",
"0.6866938",
"0.6865937",
"0.6849396",
"0.6845939",
"0.6839687",
"0.6837112",
"0.6833955",
"0.6795975",
"0.6782245",
"0.6767086",
"0.6764646",
"0.67509997",
"0.6749477",
"0.674522",
"0.67419225",
"0.67397505",
"0.6727296",
"0.6723142",
"0.6697698",
"0.6689844",
"0.668817",
"0.6680435",
"0.6677299",
"0.6664283",
"0.6662678",
"0.66608524",
"0.6652558",
"0.66477764",
"0.6646758",
"0.6639475",
"0.6632995",
"0.66304505",
"0.66264915",
"0.66252357",
"0.66108394",
"0.6606401",
"0.66032904",
"0.6599113",
"0.6581286",
"0.6578123",
"0.65750456",
"0.65733284",
"0.6552215",
"0.6550158",
"0.6547438",
"0.6544347",
"0.65400237",
"0.65283346",
"0.6527831",
"0.65261406",
"0.6522705",
"0.6519808",
"0.65122837",
"0.65087926",
"0.6497251",
"0.6494279",
"0.64932513",
"0.64928424",
"0.6483885",
"0.6482385",
"0.64812213",
"0.64792144",
"0.6479202",
"0.6477772",
"0.64712137",
"0.6464147",
"0.6460334",
"0.6443538",
"0.6437184",
"0.6431115",
"0.64289",
"0.6425331",
"0.6417588",
"0.6415438",
"0.641474",
"0.641474"
] | 0.0 | -1 |
Processes requests for both HTTP GET and POST methods. | protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, ClassNotFoundException {
// setting the content type
response.setContentType("application/pdf");
try {
HttpSession session=request.getSession();
if(session.getAttribute("username")!=null) {
// Get the text that will be added to the PDF
String month=request.getParameter("month");
String year=request.getParameter("year");
//String id=request.getParameter("empid");
// System.out.println(id);
// String text = request.getParameter("text");
// if (text == null || text.trim().length() == 0) {
// text = "You didn't enter any text.";
// }
//String id="Ultimate01";
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection con=DriverManager.getConnection("jdbc:mysql://localhost:3306/payroll123","root","");
PreparedStatement ps = con.prepareStatement("SELECT SUM(basicsalary) as sum1 FROM payslip where month=? and year=?");
ps.setString(1, month);
ps.setString(2, year);
System.out.println("hey1");
PreparedStatement ps1 = con.prepareStatement("SELECT COUNT(DISTINCT employeeid) as emps FROM payslip where month=? and year=?");
ps1.setString(1, month);
ps1.setString(2, year);
System.out.println("hey1");
ResultSet rs = ps.executeQuery();
//System.out.println(rs.getInt(1));
rs.next();
// System.out.println(rs.getInt("sum1"));
ResultSet rs1 = ps1.executeQuery();
rs1.next();
if(rs.getFloat("sum1")==0.0 && rs1.getFloat("emps")==0.0)
{
response.sendRedirect("generatereportbyaccz.jsp?id=Report of "+month+"/"+year+" is not generated OR Record of this Report is not available in our Database");
}
// step 1
Float[] val = new Float[9];
val[0]=rs.getFloat("sum1");
val[1]=6000.00f*rs1.getFloat("emps");
val[2]=1000.00f*rs1.getFloat("emps");
val[3]=1000.00f*rs1.getFloat("emps");
val[4]=val[0]/2;
val[5]=1000.00f*rs1.getFloat("emps");
val[6]=val[4];
val[7]=val[0]*12/100;
val[8]=0.00f;
if((val[0]+val[4]+val[6])*12>250000.00f)
{
val[8]=(val[0]+val[4]+val[6])/10;
}
//System.out.println("sssssssssssssssssss");
Document document = new Document();
// step 2
ByteArrayOutputStream baos = new ByteArrayOutputStream();
PdfWriter.getInstance(document, baos);
Font font0 = new Font(Font.FontFamily.TIMES_ROMAN , 11);
Font font1 = new Font(Font.FontFamily.HELVETICA , 11, Font.BOLD);
Font font2 = new Font(Font.FontFamily.HELVETICA , 18, Font.BOLD);
Font font3 = new Font(Font.FontFamily.HELVETICA , 9, Font.BOLD);
Font font4 = new Font(Font.FontFamily.HELVETICA , 10);
Font font5 = new Font(Font.FontFamily.HELVETICA , 12, Font.BOLD);
Font font6 = new Font(Font.FontFamily.HELVETICA , 12);
//font1.setColor(BaseColor.WHITE);
BaseColor myColor = WebColors.getRGBColor("#F78181");
BaseColor myColor1 = WebColors.getRGBColor("#FAFAFA");
//step 3
document.open();
// step 3.5
PdfPTable table1 = new PdfPTable(3); // 1 columns.
// table1.setWidthPercentage(75);
PdfPCell cell00 = new PdfPCell(new Paragraph("Monthly Payroll Summary\nFEB-2015",font2));
cell00.setBorder(PdfPCell.NO_BORDER);
cell00.setPaddingTop(18);
cell00.setColspan(2);
Image image = Image.getInstance("cc.jpg");
PdfPCell cell0 = new PdfPCell(image, true);
cell0.setBorder(PdfPCell.NO_BORDER);
// cell0.setHorizontalAlignment(Element.ALIGN_RIGHT);
//PdfPCell cell1 = new PdfPCell(new Paragraph("Mr. NILESH POPATBHAI LATHIYA"));
table1.addCell(cell00);
// table1.addCell(cell0);
table1.addCell(cell0);
// table1.addCell(cell1);
// table.addCell(cell2);
// table.addCell(cell3);
table1.setWidthPercentage(100);
table1.setSpacingAfter(8f);
//table1.setSpacingBefore(20f);
//table1.setSpacingAfter(10f);
document.add(table1);
// table1.setWidthPercentage(100);
PdfPTable table21 = new PdfPTable(2); // 3 columns.
table21.setWidthPercentage(100);
PdfPCell cell151 = new PdfPCell(new Paragraph("Total Number of Employees",font3));
//cell15.setLeading(10f, 0f);
cell151.setPadding(3);
cell151.setBorderWidth(1f);
cell151.setBackgroundColor(myColor1);
PdfPCell cell161 = new PdfPCell(new Paragraph(Integer.toString(rs1.getInt("emps")),font4));
// cell16.setLeading(10f, 0f);
cell161.setPadding(3);
cell161.setBorderWidth(1f);
cell161.setBackgroundColor(myColor1);
table21.addCell(cell151);
table21.addCell(cell161);
table21.setSpacingAfter(12f);
document.add(table21);
PdfPTable table2 = new PdfPTable(2); // 3 columns.
table2.setWidthPercentage(100);
PdfPCell cell15 = new PdfPCell(new Paragraph("Total Basic Salary",font3));
//cell15.setLeading(10f, 0f);
cell15.setPadding(3);
cell15.setBorderWidth(1f);
cell15.setBackgroundColor(myColor1);
PdfPCell cell16 = new PdfPCell(new Paragraph(Float.toString(val[0]),font4));
// cell16.setLeading(10f, 0f);
cell16.setPadding(3);
cell16.setBorderWidth(1f);
cell16.setBackgroundColor(myColor1);
PdfPCell cell17 = new PdfPCell(new Paragraph("Total House Rent Allowance",font3));
//cell17.setLeading(10f, 0f);
cell17.setPadding(3);
cell17.setBorderWidth(1f);
cell17.setBackgroundColor(myColor1);
PdfPCell cell18 = new PdfPCell(new Paragraph(Float.toString(val[1]),font4));
//cell18.setLeading(10f, 0f);
cell18.setPadding(3);
cell18.setBorderWidth(1f);
cell18.setBackgroundColor(myColor1);
PdfPCell cell19 = new PdfPCell(new Paragraph("Total Medical Allowance",font3));
//cell19.setLeading(10f, 0f);
cell19.setPadding(3);
cell19.setBorderWidth(1f);
cell19.setBackgroundColor(myColor1);
PdfPCell cell20 = new PdfPCell(new Paragraph(Float.toString(val[2]),font4));
//cell20.setLeading(10f, 0f);
cell20.setPadding(3);
cell20.setBorderWidth(1f);
cell20.setBackgroundColor(myColor1);
table2.addCell(cell15);
table2.addCell(cell16);
table2.addCell(cell17);
table2.addCell(cell18);
table2.addCell(cell19);
table2.addCell(cell20);
PdfPCell cell21 = new PdfPCell(new Paragraph("Total Travelling Allowance",font3));
//cell21.setLeading(10f, 0f);
cell21.setPadding(3);
cell21.setBorderWidth(1f);
cell21.setBackgroundColor(myColor1);
PdfPCell cell22 = new PdfPCell(new Paragraph(Float.toString(val[3]),font4));
// cell22.setLeading(10f, 0f);
cell22.setPadding(3);
cell22.setBorderWidth(1f);
cell22.setBackgroundColor(myColor1);
PdfPCell cell23 = new PdfPCell(new Paragraph("Total Personal Allowance",font3));
//cell23.setLeading(10f, 0f);
cell23.setPadding(3);
cell23.setBorderWidth(1f);
cell23.setBackgroundColor(myColor1);
PdfPCell cell24 = new PdfPCell(new Paragraph(Float.toString(val[4]),font4));
//cell24.setLeading(10f, 0f);
cell24.setPadding(3);
cell24.setBorderWidth(1f);
cell24.setBackgroundColor(myColor1);
PdfPCell cell25 = new PdfPCell(new Paragraph("Total City Allowance",font3));
//cell25.setLeading(10f, 0f);
cell25.setPadding(3);
cell25.setBorderWidth(1f);
cell25.setBackgroundColor(myColor1);
PdfPCell cell26 = new PdfPCell(new Paragraph(Float.toString(val[5]),font4));
//cell26.setLeading(10f, 0f);
cell26.setPadding(3);
cell26.setBorderWidth(1f);
cell26.setBackgroundColor(myColor1);
table2.addCell(cell21);
table2.addCell(cell22);
table2.addCell(cell23);
table2.addCell(cell24);
table2.addCell(cell25);
table2.addCell(cell26);
PdfPCell cell27 = new PdfPCell(new Paragraph("Total Performance Pay",font3));
//cell27.setLeading(10f, 0f);
cell27.setPadding(3);
cell27.setBorderWidth(1f);
cell27.setBackgroundColor(myColor1);
PdfPCell cell28 = new PdfPCell(new Paragraph(Float.toString(val[6]),font4));
// cell28.setLeading(10f, 0f);
cell28.setPadding(3);
cell28.setBorderWidth(1f);
cell28.setBackgroundColor(myColor1);
table2.addCell(cell27);
table2.addCell(cell28);
table2.setSpacingAfter(12f);
document.add(table2);
PdfPTable table3 = new PdfPTable(2); // 3 columns.
table3.setWidthPercentage(100);
PdfPCell cell271 = new PdfPCell(new Paragraph("Final Total amount paid by company",font3));
//cell27.setLeading(10f, 0f);
cell271.setPadding(3);
cell271.setBorderWidth(1f);
cell271.setBackgroundColor(myColor1);
PdfPCell cell281 = new PdfPCell(new Paragraph(Float.toString(val[6]),font4));
// cell28.setLeading(10f, 0f);
cell281.setPadding(3);
cell281.setBorderWidth(1f);
cell281.setBackgroundColor(myColor1);
PdfPCell cell29 = new PdfPCell(new Paragraph("Total Provident Fund Collected",font3));
//cell29.setLeading(10f, 0f);
cell29.setPadding(3);
cell29.setBorderWidth(1f);
cell29.setBackgroundColor(myColor1);
PdfPCell cell30 = new PdfPCell(new Paragraph(Float.toString(val[7]),font4));
//cell30.setLeading(10f, 0f);
cell30.setPadding(3);
cell30.setBorderWidth(1f);
cell30.setBackgroundColor(myColor1);
PdfPCell cell31 = new PdfPCell(new Paragraph("Total Professional Tax Collected",font3));
//cell31.setLeading(10f, 0f);
cell31.setPadding(3);
cell31.setBorderWidth(1f);
cell31.setBackgroundColor(myColor1);
PdfPCell cell32 = new PdfPCell(new Paragraph(Float.toString(val[8]),font4));
//cell32.setLeading(10f, 0f);
cell32.setPadding(3);
cell32.setBorderWidth(1f);
cell32.setBackgroundColor(myColor1);
table3.addCell(cell271);
table3.addCell(cell281);
table3.addCell(cell29);
table3.addCell(cell30);
table3.addCell(cell31);
table3.addCell(cell32);
table3.setSpacingAfter(12f);
document.add(table3);
/* PdfPCell cell33 = new PdfPCell(new Paragraph("PAN",font3));
//cell33.setLeading(10f, 0f);
cell33.setPadding(3);
cell33.setBorderWidth(1f);
cell33.setBackgroundColor(myColor1);
PdfPCell cell34 = new PdfPCell(new Paragraph("XXXXXXX792E",font4));
// cell34.setLeading(10f, 0f);
cell34.setPadding(3);
cell34.setBorderWidth(1f);
cell34.setBackgroundColor(myColor1);
PdfPCell cell35 = new PdfPCell(new Paragraph("Leave Balance",font3));
//cell35.setLeading(10f, 0f);
cell35.setPadding(3);
cell35.setBorderWidth(1f);
cell35.setBackgroundColor(myColor1);
PdfPCell cell36 = new PdfPCell(new Paragraph("EL X SL X CL X",font4));
//cell36.setLeading(10f, 0f);
cell36.setPadding(3);
cell36.setBorderWidth(1f);
cell36.setBackgroundColor(myColor1);
PdfPCell cell37 = new PdfPCell(new Paragraph(" WON/SWON",font3));
//cell37.setLeading(10f, 0f);
cell37.setPadding(3);
cell37.setBorderWidth(1f);
cell37.setBackgroundColor(myColor1);
PdfPCell cell38 = new PdfPCell(new Paragraph("2616141",font4));
//cell38.setLeading(10f, 0f);
cell38.setPadding(3);
cell38.setBorderWidth(1f);
cell38.setBackgroundColor(myColor1);
table2.addCell(cell33);
table2.addCell(cell34);
table2.addCell(cell35);
table2.addCell(cell36);
table2.addCell(cell37);
table2.addCell(cell38);
*/
/*
PdfPTable table3 = new PdfPTable(5); // 5 columns.
table3.setWidthPercentage(100);
PdfPCell cell39 = new PdfPCell(new Paragraph("Earnings",font1));
cell39.setLeading(10f, 0f);
cell39.setPadding(4);
cell39.setBorderWidth(1f);
cell39.setBackgroundColor(myColor);
PdfPCell cell40 = new PdfPCell(new Paragraph("Arrears (INR)",font1));
cell40.setLeading(10f, 0f);
cell40.setPadding(4);
cell40.setBorderWidth(1f);
cell40.setBackgroundColor(myColor);
PdfPCell cell41 = new PdfPCell(new Paragraph("Current (INR)",font1));
cell41.setLeading(10f, 0f);
cell41.setPadding(4);
cell41.setBorderWidth(1f);
cell41.setBackgroundColor(myColor);
PdfPCell cell42 = new PdfPCell(new Paragraph("Deductions",font1));
cell42.setLeading(10f, 0f);
cell42.setPadding(4);
cell42.setBorderWidth(1f);
cell42.setBackgroundColor(myColor);
PdfPCell cell43 = new PdfPCell(new Paragraph("Amount (INR)",font1));
cell43.setLeading(10f, 0f);
cell43.setPadding(4);
cell43.setBorderWidth(1f);
cell43.setBackgroundColor(myColor);
table3.addCell(cell39);
table3.addCell(cell40);
table3.addCell(cell41);
table3.addCell(cell42);
table3.addCell(cell43);
String[] sal = new String[9];
sal[0]="Basic Salary";
sal[1]="House Rent Allowance";
sal[2]="Medical Allowance";
sal[3]="Travelling Allowance";
sal[4]="Personal Allowance";
sal[5]="City Allowance";
sal[6]="Performance Pay";
sal[7]="Provident Fund";
sal[8]="Professional Tax";
Float[] val = new Float[9];
val[0]=rs1.getFloat(4);
val[1]=6000.00f;
val[2]=1000.00f;
val[3]=1000.00f;
val[4]=val[0]/2;
val[5]=1000.00f;
val[6]=val[4];
val[7]=val[0]*12/100;
val[8]=0.00f;
if((val[0]+val[4]+val[6])*12>250000.00f)
{
val[8]=(val[0]+val[4]+val[6])/10;
}
for(int i=0;i<7;i++)
{
PdfPCell cell44 = new PdfPCell(new Paragraph(sal[i],font3));
//cell27.setLeading(10f, 0f);
cell44.setPadding(3);
cell44.setBorderWidth(1f);
cell44.setBackgroundColor(myColor1);
PdfPCell cell45 = new PdfPCell(new Paragraph("",font4));
// cell45.setLeading(10f, 0f);
cell45.setPadding(3);
cell45.setBorderWidth(1f);
cell45.setBackgroundColor(myColor1);
PdfPCell cell46 = new PdfPCell(new Paragraph(val[i].toString(),font3));
//cell46.setLeading(10f, 0f);
cell46.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell46.setPadding(3);
cell46.setBorderWidth(1f);
cell46.setBackgroundColor(myColor1);
table3.addCell(cell44);
table3.addCell(cell45);
table3.addCell(cell46);
if(i==0 || i==1) {
PdfPCell cell47 = new PdfPCell(new Paragraph(sal[7+i],font4));
//cell47.setLeading(10f, 0f);
cell47.setPadding(3);
cell47.setBorderWidth(1f);
cell47.setBackgroundColor(myColor1);
table3.addCell(cell47);
PdfPCell cell48 = new PdfPCell(new Paragraph(val[i+7].toString(),font3));
//cell48.setLeading(10f, 0f);
cell48.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell48.setPadding(3);
cell48.setBorderWidth(1f);
cell48.setBackgroundColor(myColor1);
table3.addCell(cell48);
}
else
{
PdfPCell cell47 = new PdfPCell(new Paragraph("",font4));
cell47.setBorder(PdfPCell.NO_BORDER);
cell47.setBorderWidthRight (1f);
cell47.setColspan(2);
table3.addCell(cell47);
}
}
PdfPCell cell48 = new PdfPCell(new Paragraph("",font4));
//cell48.setBorder(PdfPCell.NO_BORDER);
cell48.setColspan(3);
table3.addCell(cell48);
PdfPCell cell49 = new PdfPCell(new Paragraph("",font4));
//cell49.setBorder(PdfPCell.NO_BORDER);
cell49.setColspan(2);
table3.addCell(cell49);
table3.addCell(cell48);
table3.addCell(cell49);
table3.addCell(cell48);
table3.addCell(cell49);
table3.addCell(cell48);
table3.addCell(cell49);
PdfPCell cell50 = new PdfPCell(new Paragraph("Total Earnings (Current + Arrears)",font3));
//cell27.setLeading(10f, 0f);
cell50.setColspan(2);
cell50.setPadding(3);
cell50.setBorderWidth(1f);
cell50.setBackgroundColor(myColor1);
table3.addCell(cell50);
float a = 0.0f;
for(int i=0;i<7;i++)
{a+=val[i];}
PdfPCell cell55 = new PdfPCell(new Paragraph(Float.toString(a),font3));
//cell27.setLeading(10f, 0f);
cell55.setPadding(3);
cell55.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell55.setBorderWidth(1f);
cell55.setBackgroundColor(myColor1);
table3.addCell(cell55);
PdfPCell cell51 = new PdfPCell(new Paragraph("Total Deductions",font3));
//cell27.setLeading(10f, 0f);
//cell51.setColspan(3);
cell51.setPadding(3);
cell51.setBorderWidth(1f);
cell51.setBackgroundColor(myColor1);
table3.addCell(cell51);
float b = val[7]+val[8];
PdfPCell cell56 = new PdfPCell(new Paragraph(Float.toString(b),font3));
//cell27.setLeading(10f, 0f);
//cell56.setColspan(3);
cell56.setPadding(3);
cell56.setHorizontalAlignment(Element.ALIGN_RIGHT);
cell56.setBorderWidth(1f);
cell56.setBackgroundColor(myColor1);
table3.addCell(cell56);
table3.setSpacingAfter(12f);
document.add(table3);
PdfPTable table4 = new PdfPTable(5); // 2 columns.
table4.setWidthPercentage(100);
PdfPCell cell54 = new PdfPCell(new Paragraph("",font3));
cell54.setBorder(PdfPCell.NO_BORDER);
cell54.setColspan(3);
table4.addCell(cell54);
PdfPCell cell52 = new PdfPCell(new Paragraph("Net Pay",font5));
cell52.setLeading(10f, 0f);
// cell52.setBorder(PdfPCell.ALIGN_CENTER);
cell52.setHorizontalAlignment(Element.ALIGN_LEFT);
cell52.setVerticalAlignment(Element.ALIGN_CENTER);
cell52.setPadding(6f);
cell52.setBorderWidth(1f);
cell52.setBackgroundColor(myColor);
table4.addCell(cell52);
PdfPCell cell53 = new PdfPCell(new Paragraph(""+(a-b),font6));
cell53.setLeading(10f, 0f);
cell53.setPadding(6f);
cell53.setHorizontalAlignment(Element.ALIGN_CENTER);
cell53.setVerticalAlignment(Element.ALIGN_CENTER);
cell53.setBorderWidth(1f);
table4.addCell(cell53);
document.add(table4);
*/
// step 4
// document.add(new Paragraph(String.format(
// "You have submitted the following text using the %s method:%s",
// request.getMethod(),uname)));
// document.add(new Paragraph(text));
// step 5
document.close();
// setting some response headers
response.setHeader("Expires", "0");
response.setHeader("Cache-Control","must-revalidate, post-check=0, pre-check=0");
response.setHeader("Pragma", "public");
// the contentlength
response.setContentLength(baos.size());
// write ByteArrayOutputStream to the ServletOutputStream
OutputStream os = response.getOutputStream();
baos.writeTo(os);
os.flush();
os.close();
}
else
{
response.sendRedirect("index.jsp?id=Your session may be expired. You have to login first");
}
}
catch(Exception e) {
// throw new IOException(e.getMessage());
System.out.println(e);
System.out.println("sssssssssssssssssss");
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException {\n final String method = req.getParameter(METHOD);\n if (GET.equals(method)) {\n doGet(req, resp);\n } else {\n resp.setStatus(HttpServletResponse.SC_METHOD_NOT_ALLOWED);\n }\n }",
"private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n // only POST should be used\n doPost(request, response);\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\nSystem.err.println(\"=====================>>>>>123\");\n\t\tString key=req.getParameter(\"method\");\n\t\tswitch (key) {\n\t\tcase \"1\":\n\t\t\tgetProvinces(req,resp);\n\t\t\tbreak;\n\t\tcase \"2\":\n\t\t\tgetCities(req,resp);\t\t\t\n\t\t\tbreak;\n\t\tcase \"3\":\n\t\t\tgetAreas(req,resp);\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\r\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\n\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\n\t}",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tdoPost(req, resp);\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t\tdoGet(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tthis.doPost(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tprocessRequest(request, response);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tthis.doPost(req, resp);\n\t\t\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }"
] | [
"0.7004024",
"0.66585696",
"0.66031146",
"0.6510023",
"0.6447109",
"0.64421695",
"0.64405906",
"0.64321136",
"0.6428049",
"0.6424289",
"0.6424289",
"0.6419742",
"0.6419742",
"0.6419742",
"0.6418235",
"0.64143145",
"0.64143145",
"0.6400266",
"0.63939095",
"0.63939095",
"0.639271",
"0.63919044",
"0.63919044",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63903785",
"0.63887113",
"0.63887113",
"0.6380285",
"0.63783026",
"0.63781637",
"0.637677",
"0.63761306",
"0.6370491",
"0.63626",
"0.63626",
"0.63614637",
"0.6355308",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896",
"0.63546896"
] | 0.0 | -1 |
Handles the HTTP GET method. | @Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(generatepayslip.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void doGet( )\n {\n \n }",
"@Override\n\tprotected void executeGet(GetRequest request, OperationResponse response) {\n\t}",
"@Override\n\tprotected Method getMethod() {\n\t\treturn Method.GET;\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t}",
"@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoGet(req, resp);\r\n\t}",
"void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metGet(request, response);\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"GET log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) return;\r\n\tif (\"get-response\".equals( requestId )) {\r\n\t try {\r\n\t\tonMEVPollsForResponse( req, resp );\r\n\t } catch (Exception e) {\r\n\t\tlogError( req, resp, e, \"MEV polling error\" );\r\n\t\tsendError( resp, \"MEV polling error: \" + e.toString() );\r\n\t }\r\n\t}\r\n }",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n \r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t\t\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\r\n\t}",
"public void doGet() throws IOException {\n\n // search ressource\n byte[] contentByte = null;\n try {\n contentByte = ToolBox.readFileByte(RESOURCE_DIRECTORY, this.url);\n this.statusCode = OK;\n ContentType contentType = new ContentType(this.extension);\n sendHeader(statusCode, contentType.getContentType(), contentByte.length);\n } catch (IOException e) {\n System.out.println(\"Ressource non trouvé\");\n statusCode = NOT_FOUND;\n contentByte = ToolBox.readFileByte(RESPONSE_PAGE_DIRECTORY, \"pageNotFound.html\");\n sendHeader(statusCode, \"text/html\", contentByte.length);\n }\n\n this.sendBodyByte(contentByte);\n }",
"public HttpResponseWrapper invokeGET(String path) {\n\t\treturn invokeHttpMethod(HttpMethodType.HTTP_GET, path, \"\");\n\t}",
"@Override\n\tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t}",
"public Result get(Get get) throws IOException;",
"@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) {\n System.out.println(\"[Servlet] GET request \" + request.getRequestURI());\n\n response.setContentType(FrontEndServiceDriver.APP_TYPE);\n response.setStatus(HttpURLConnection.HTTP_BAD_REQUEST);\n\n try {\n String url = FrontEndServiceDriver.primaryEventService +\n request.getRequestURI().replaceFirst(\"/events\", \"\");\n HttpURLConnection connection = doGetRequest(url);\n\n if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) {\n PrintWriter pw = response.getWriter();\n JsonObject responseBody = (JsonObject) parseResponse(connection);\n\n response.setStatus(HttpURLConnection.HTTP_OK);\n pw.println(responseBody.toString());\n }\n }\n catch (Exception ignored) {}\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tSystem.out.println(\"get\");\n\t\tthis.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doGet(req, resp);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \tSystem.out.println(\"---here--get--\");\n processRequest(request, response);\n }",
"@Override\n public final void doGet() {\n try {\n checkPermissions(getRequest());\n // GET one\n if (id != null) {\n output(api.runGet(id, getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER)));\n } else if (countParameters() == 0) {\n throw new APIMissingIdException(getRequestURL());\n }\n // Search\n else {\n\n final ItemSearchResult<?> result = api.runSearch(Integer.parseInt(getParameter(PARAMETER_PAGE, \"0\")),\n Integer.parseInt(getParameter(PARAMETER_LIMIT, \"10\")), getParameter(PARAMETER_SEARCH),\n getParameter(PARAMETER_ORDER), parseFilters(getParameterAsList(PARAMETER_FILTER)),\n getParameterAsList(PARAMETER_DEPLOY), getParameterAsList(PARAMETER_COUNTER));\n\n head(\"Content-Range\", result.getPage() + \"-\" + result.getLength() + \"/\" + result.getTotal());\n\n output(result.getResults());\n }\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n }\n }",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tthis.service(req, resp);\r\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\n\t}",
"@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n public void get(@PathVariable(\"id\") String id, HttpServletRequest req){\n throw new NotImplementedException(\"To be implemented\");\n }",
"@Override\npublic void get(String url) {\n\t\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString action = req.getParameter(\"action\");\r\n\t\t\r\n\t\tif(action == null) {\r\n\t\t\taction = \"List\";\r\n\t\t}\r\n\t\t\r\n\t\tswitch(action) {\r\n\t\t\tcase \"List\":\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tlistUser(req, resp);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doGet(HttpServletRequest request, \n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tSystem.out.println(\"Routed to doGet\");\n\t}",
"@NonNull\n public String getAction() {\n return \"GET\";\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\n\t\tprocess(req,resp);\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"@Override\r\nprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t process(req,resp);\r\n\t }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\n\tpublic HttpResponse get(final String endpoint) {\n\t\treturn httpRequest(HTTP_GET, endpoint, null);\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste doget\");\r\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/plain\");\n // Actual logic goes here.\n PrintWriter out = response.getWriter();\n out.println(\"Wolken,5534-0848-5100,0299-6830-9164\");\n\ttry \n\t{\n Get g = new Get(Bytes.toBytes(request.getParameter(\"userid\")));\n Result r = table.get(g);\n byte [] value = r.getValue(Bytes.toBytes(\"v\"),\n Bytes.toBytes(\"\"));\n\t\tString valueStr = Bytes.toString(value);\n\t\tout.println(valueStr);\n\t}\n\tcatch (Exception e)\n\t{\n\t\tout.println(e);\n\t}\n }",
"@Override\r\n public void doGet(String path, HttpServletRequest request, HttpServletResponse response)\r\n throws Exception {\r\n // throw new UnsupportedOperationException();\r\n System.out.println(\"Inside the get\");\r\n response.setContentType(\"text/xml\");\r\n response.setCharacterEncoding(\"utf-8\");\r\n final Writer w = response.getWriter();\r\n w.write(\"inside the get\");\r\n w.close();\r\n }",
"@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\r\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n System.out.println(\"Console: doGET visited\");\n String result = \"\";\n //get the user choice from the client\n String choice = (request.getPathInfo()).substring(1);\n response.setContentType(\"text/plain;charset=UTF-8\");\n PrintWriter out = response.getWriter();\n //methods call appropriate to user calls\n if (Integer.valueOf(choice) == 3) {\n result = theBlockChain.toString();\n if (result != null) {\n out.println(result);\n response.setStatus(200);\n //set status if result output is not generated\n } else {\n response.setStatus(401);\n return;\n }\n }\n //verify chain method\n if (Integer.valueOf(choice) == 2) {\n response.setStatus(200);\n boolean validity = theBlockChain.isChainValid();\n out.print(\"verifying:\\nchain verification: \");\n out.println(validity);\n }\n }",
"@Override\n public DataObjectResponse<T> handleGET(DataObjectRequest<T> request)\n {\n if(getRequestValidator() != null) getRequestValidator().validateGET(request);\n\n DefaultDataObjectResponse<T> response = new DefaultDataObjectResponse<>();\n try\n {\n VisibilityFilter<T, DataObjectRequest<T>> visibilityFilter = visibilityFilterMap.get(VisibilityMethod.GET);\n List<Query> queryList = new LinkedList<>();\n if(request.getQueries() != null)\n queryList.addAll(request.getQueries());\n\n if(request.getId() != null)\n {\n // if the id is specified\n queryList.add(new ById(request.getId()));\n }\n\n DataObjectFeed<T> feed = objectPersister.retrieve(queryList);\n if(feed == null)\n feed = new DataObjectFeed<>();\n List<T> filteredObjects = visibilityFilter.filterByVisible(request, feed.getAll());\n response.setCount(feed.getCount());\n response.addAll(filteredObjects);\n }\n catch(PersistenceException e)\n {\n ObjectNotFoundException objectNotFoundException = new ObjectNotFoundException(String.format(OBJECT_NOT_FOUND_EXCEPTION, request.getId()), e);\n response.setErrorResponse(ErrorResponseFactory.objectNotFound(objectNotFoundException, request.getCID()));\n }\n return response;\n }",
"public void handleGet( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n case \"/\":\n print(\"sending /MainPage.html\");\n sendResponse( exchange, FU.readFromFile( getReqDir( exchange )), 200);\n break;\n case \"/lif\":\n // send log in page ( main page )\n sendResponse ( exchange, FU.readFromFile(getReqDir(exchange)), 200);\n //\n break;\n case \"/home.html\":\n\n break;\n case \"/book.html\":\n\n break;\n default:\n //checks if user is logged in\n\n //if not send log in page\n //if user is logged in then\n print(\"Sending\");\n String directory = getReqDir( exchange ); // dont need to do the / replace as no space\n File page = new File( getReqDir( exchange) );\n\n // IMPLEMENT DIFFERENT RESPONSE CODE FOR HERE IF EXISTS IS FALSE OR CAN READ IS FALSE\n sendResponse(exchange, FU.readFromFile(directory), 200);\n break;\n }\n }",
"public int handleGET(String requestURL) throws ClientProtocolException, IOException{\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\thttpGet = new HttpGet(requestURL);\t\t\r\n\t\t\t\t\t\t\r\n\t\tinputsource=null;\r\n\t\t\t\r\n\t\toutputString=\"\";\r\n\t\t\r\n\t\t//taking response by executing http GET object\r\n\t\tCloseableHttpResponse response = httpclient.execute(httpGet);\t\t\r\n\t\r\n\t\t/* \r\n\t\t * \tThe underlying HTTP connection is still held by the response object\r\n\t\t\tto allow the response content to be streamed directly from the network socket.\r\n\t\t\tIn order to ensure correct deallocation of system resources\r\n\t\t\tthe user MUST call CloseableHttpResponse.close() from a finally clause.\r\n\t\t\tPlease note that if response content is not fully consumed the underlying\r\n\t\t\tconnection cannot be safely re-used and will be shut down and discarded\r\n\t\t\tby the connection manager.\r\n\t\t */\r\n\t\t\r\n\t\t\tstatusLine= response.getStatusLine().toString();\t\t//status line\r\n\t\t\t\r\n\t\t\tHttpEntity entity1 = response.getEntity();\t\t\t\t//getting response entity from server response \t\r\n\t\t\t\t\t\r\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(entity1.getContent()));\r\n\r\n\t\t\tString line;\r\n\t\t\twhile((line=br.readLine())!=null)\r\n\t\t\t{\r\n\t\t\t\toutputString=outputString+line.toString();\r\n\t }\r\n\t\t\t\r\n\t\t\t//removing spaces around server response string.\r\n\t\t\toutputString.trim();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\r\n\t\t\t//converting server response string into InputSource.\r\n\t\t\tinputsource = new InputSource(new StringReader(outputString));\t\r\n\t\t\t\r\n\t\t\t// and ensure it is fully consumed\r\n\t\t\tEntityUtils.consume(entity1);\t\t\t//consuming entity.\r\n\t\t\tresponse.close();\t\t\t\t\t\t//closing response.\r\n\t\t\tbr.close();\t\t\t\t\t\t\t\t//closing buffered reader\r\n\t\t\t\r\n\t\t\t//returning response code\r\n\t\t\treturn response.getStatusLine().getStatusCode();\r\n\t\r\n\t}",
"@Override\n\tprotected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t logger.error(\"BISHUNNN CALLED\");\n\t\tString category = request.getParameter(\"category\").trim();\n\t\tGetHttpCall getHttpCall = new GetHttpCall();\n\t\turl = APIConstants.baseURL+category.toLowerCase();\n\t\tresponseString = getHttpCall.execute(url);\n\t\tresponse.getWriter().write(responseString);\n\t}",
"@Override\r\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n //processRequest(request, response);\r\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tPrintWriter out = resp.getWriter();\n\t\tout.print(\"<h1>Hello from your doGet method!</h1>\");\n\t}",
"public void doGet(HttpServletRequest request,\n HttpServletResponse response)\n throws IOException, ServletException {\n response.setContentType(TYPE_TEXT_HTML.label);\n response.setCharacterEncoding(UTF8.label);\n request.setCharacterEncoding(UTF8.label);\n String path = request.getRequestURI();\n logger.debug(RECEIVED_REQUEST + path);\n Command command = null;\n try {\n command = commands.get(path);\n command.execute(request, response);\n } catch (NullPointerException e) {\n logger.error(REQUEST_PATH_NOT_FOUND);\n request.setAttribute(JAVAX_SERVLET_ERROR_STATUS_CODE, 404);\n command = commands.get(EXCEPTION.label);\n command.execute(request, response);\n }\n }",
"public void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tString search = req.getParameter(\"searchBook\");\n\t\tString output=search;\n\n\t\t//redirect output to view search.jsp\n\t\treq.setAttribute(\"output\", output);\n\t\tresp.setContentType(\"text/json\");\n\t\tRequestDispatcher view = req.getRequestDispatcher(\"search.jsp\");\n\t\tview.forward(req, resp);\n\t\t\t\n\t}",
"public void doGet( HttpServletRequest request, HttpServletResponse response )\n throws ServletException, IOException\n {\n handleRequest( request, response, false );\n }",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"public void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\t}",
"@GET\n @Produces(MediaType.APPLICATION_JSON)\n public Response handleGet() {\n Gson gson = GSONFactory.getInstance();\n List allEmployees = getAllEmployees();\n\n if (allEmployees == null) {\n allEmployees = new ArrayList();\n }\n\n Response response = Response.ok().entity(gson.toJson(allEmployees)).build();\n return response;\n }",
"@Override\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows IOException, ServletException {\n\t\tsuper.doGet(request, response);\t\t\t\n\t}",
"private static String sendGET(String getURL) throws IOException {\n\t\tURL obj = new URL(getURL);\n\t\tHttpURLConnection con = (HttpURLConnection) obj.openConnection();\n\t\tcon.setRequestMethod(\"GET\");\n\t\tString finalResponse = \"\";\n\n\t\t//This way we know if the request was processed successfully or there was any HTTP error message thrown.\n\t\tint responseCode = con.getResponseCode();\n\t\tSystem.out.println(\"GET Response Code : \" + responseCode);\n\t\tif (responseCode == HttpURLConnection.HTTP_OK) { // success\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n\t\t\tString inputLine;\n\t\t\tStringBuffer buffer = new StringBuffer();\n\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\tbuffer.append(inputLine);\n\t\t\t}\n\t\t\tin.close();\n\n\t\t\t// print result\n\t\t\tfinalResponse = buffer.toString();\n\t\t} else {\n\t\t\tSystem.out.println(\"GET request not worked\");\n\t\t}\n\t\treturn finalResponse;\n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n //processRequest(request, response);\n }",
"@Override\n \tpublic void doGet(HttpServletRequest req, HttpServletResponse resp)\n \t\t\tthrows ServletException, IOException {\n \t\tdoPost(req, resp);\n \t}",
"public BufferedReader reqGet(final String route) throws\n ServerStatusException, IOException {\n System.out.println(\"first reqGet\");\n return reqGet(route, USER_AGENT);\n }",
"HttpGet getRequest(HttpServletRequest request, String address) throws IOException;",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override \r\nprotected void doGet(HttpServletRequest request, HttpServletResponse response) \r\nthrows ServletException, IOException { \r\nprocessRequest(request, response); \r\n}",
"protected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\r\n\r\n try {\r\n switch (action)\r\n {\r\n case \"/getUser\":\r\n \tgetUser(request, response);\r\n break;\r\n \r\n }\r\n } catch (Exception ex) {\r\n throw new ServletException(ex);\r\n }\r\n }",
"@Override\n protected void doGet\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tdoProcess(req, resp);\n\t}",
"@Test\r\n\tpublic void doGet() throws Exception {\n\t\tCloseableHttpClient httpClient = HttpClients.createDefault();\r\n\t\t// Create a GET object and pass a url to it\r\n\t\tHttpGet get = new HttpGet(\"http://www.google.com\");\r\n\t\t// make a request\r\n\t\tCloseableHttpResponse response = httpClient.execute(get);\r\n\t\t// get response as result\r\n\t\tSystem.out.println(response.getStatusLine().getStatusCode());\r\n\t\tHttpEntity entity = response.getEntity();\r\n\t\tSystem.out.println(EntityUtils.toString(entity));\r\n\t\t// close HttpClient\r\n\t\tresponse.close();\r\n\t\thttpClient.close();\r\n\t}",
"private void requestGet(String endpoint, Map<String, String> params, RequestListener listener) throws Exception {\n String requestUri = Constant.API_BASE_URL + ((endpoint.indexOf(\"/\") == 0) ? endpoint : \"/\" + endpoint);\n get(requestUri, params, listener);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint i = request.getRequestURI().lastIndexOf(\"/\") + 1;\n\t\tString action = request.getRequestURI().substring(i);\n\t\tSystem.out.println(action);\n\t\t\n\t\tString view = \"Error\";\n\t\tObject model = \"service Non disponible\";\n\t\t\n\t\tif (action.equals(\"ProductsList\")) {\n\t\t\tview = productAction.productsList();\n\t\t\tmodel = productAction.getProducts();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"model\", model);\n\t\trequest.getRequestDispatcher(prefix + view + suffix).forward(request, response); \n\t}",
"@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t throws ServletException, IOException {\n\tprocessRequest(request, response);\n }",
"protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tcommandAction(request,response);\r\n\t}"
] | [
"0.7589609",
"0.71665615",
"0.71148175",
"0.705623",
"0.7030174",
"0.70291144",
"0.6995984",
"0.697576",
"0.68883485",
"0.6873811",
"0.6853569",
"0.6843572",
"0.6843572",
"0.6835363",
"0.6835363",
"0.6835363",
"0.68195957",
"0.6817864",
"0.6797789",
"0.67810035",
"0.6761234",
"0.6754993",
"0.6754993",
"0.67394847",
"0.6719924",
"0.6716244",
"0.67054695",
"0.67054695",
"0.67012346",
"0.6684415",
"0.6676695",
"0.6675696",
"0.6675696",
"0.66747975",
"0.66747975",
"0.6669016",
"0.66621476",
"0.66621476",
"0.66476154",
"0.66365504",
"0.6615004",
"0.66130257",
"0.6604073",
"0.6570195",
"0.6551141",
"0.65378064",
"0.6536579",
"0.65357745",
"0.64957607",
"0.64672184",
"0.6453189",
"0.6450501",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.6411481",
"0.64067316",
"0.6395873",
"0.6379907",
"0.63737476",
"0.636021",
"0.6356937",
"0.63410467",
"0.6309468",
"0.630619",
"0.630263",
"0.63014317",
"0.6283933",
"0.62738425",
"0.62680805",
"0.62585783",
"0.62553537",
"0.6249043",
"0.62457556",
"0.6239428",
"0.6239428",
"0.62376446",
"0.62359244",
"0.6215947",
"0.62125194",
"0.6207376",
"0.62067443",
"0.6204527",
"0.6200444",
"0.6199078",
"0.61876005",
"0.6182614",
"0.61762017",
"0.61755335",
"0.61716276",
"0.6170575",
"0.6170397",
"0.616901"
] | 0.0 | -1 |
Handles the HTTP POST method. | @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(generatepayslip.class.getName()).log(Level.SEVERE, null, ex);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void doPost(Request request, Response response) {\n\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) {\n }",
"public void doPost( )\n {\n \n }",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public String post();",
"@Override\n\tpublic void doPost(HttpRequest request, AbstractHttpResponse response)\n\t\t\tthrows IOException {\n\t\t\n\t}",
"@Override\n public String getMethod() {\n return \"POST\";\n }",
"public ResponseTranslator post() {\n setMethod(\"POST\");\n return doRequest();\n }",
"protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n }",
"public void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException {\n\n\t}",
"public void postData() {\n\n\t}",
"@Override\n public void doPost(HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException {\n logger.warn(\"doPost Called\");\n handle(req, res);\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n metPost(request, response);\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tpublic void postHandle(WebRequest request, ModelMap model) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\r\n\t\t\r\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\t\n\t}",
"@Override\n\tprotected HttpMethod requestMethod() {\n\t\treturn HttpMethod.POST;\n\t}",
"@Override\n\tprotected void handlePostBody(HashMap<String, HashMap<String, String>> params, DataFormat format) throws Exception {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n }",
"@Override\n\tprotected void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n \r\n }",
"@Override\n\n\tpublic void handlePOST(CoapExchange exchange) {\n\t\tFIleStream read = new FIleStream();\n\t\tread.tempWrite(Temp_Path, exchange.getRequestText());\n\t\texchange.respond(ResponseCode.CREATED, \"POST successfully!\");\n\t\t_Logger.info(\"Receive post request:\" + exchange.getRequestText());\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.getWriter().println(\"go to post method in manager\");\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\r\n\t}",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }",
"public abstract boolean handlePost(FORM form, BindException errors) throws Exception;",
"@Override\n protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n super.doPost(req, resp);\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\n\t\t\t\n\t\t \n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.doPost(req, resp);\n\t}",
"public void processPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException\n {\n }",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"@Override\n\tpublic void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\n\n\t}",
"public void doPost(HttpServletRequest request ,HttpServletResponse response){\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n\n }",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t}",
"public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException {\r\n\tlogTrace( req, \"POST log\" );\r\n\tString requestId = req.getQueryString();\r\n\tif (requestId == null) {\r\n\t try {\r\n\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t } catch (IOException ex) {\r\n\t }\r\n\t logError( req, resp, new Exception(\"Unrecognized POST\"), \"\" );\r\n\t sendError(resp, \"Unrecognized POST\");\r\n\t} else\r\n\t if (\"post-request\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onMEVPostsRequest( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"MEV POST error\" );\r\n\t\t sendError( resp, \"MEV POST error: \" + e.toString() );\r\n\t\t}\r\n\t } else if (\"post-response\".equals( requestId )) {\r\n\t\ttry {\r\n\t\t onPVMPostsResponse( req, resp );\r\n\t\t} catch (Exception e) {\r\n\t\t try {\r\n\t\t\tServletUtil.bufferedRead( req.getInputStream() );\r\n\t\t } catch (IOException ex) {\r\n\t\t }\r\n\t\t logError( req, resp, e, \"PVM POST error\" );\r\n\t\t sendError( resp, \"PVM POST error: \" + e.toString() );\r\n\t\t}\r\n\t }\r\n }",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request,\n\t\t\tHttpServletResponse response, Object handler,\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest req, HttpServletResponse resp, Object handler, ModelAndView m)\r\n\t\t\tthrows Exception {\n\t\t\r\n\t}",
"@Override\n public final void doPost() {\n try {\n checkPermissions(getRequest());\n final IItem jSonStreamAsItem = getJSonStreamAsItem();\n final IItem outputItem = api.runAdd(jSonStreamAsItem);\n\n output(JSonItemWriter.itemToJSON(outputItem));\n } catch (final APIException e) {\n e.setApi(apiName);\n e.setResource(resourceName);\n throw e;\n\n }\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t\tSystem.out.println(\"=========interCpetor Post=========\");\r\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tString method = request.getParameter(\"method\");\n\t\tswitch(method){\n\t\tcase \"Crawl\":\n\t\t\tcrawl(request, response);\n\t\t\tbreak;\n\t\tcase \"Extract\":\n\t\t\textract(request, response);\n\t\t\tbreak;\n\t\tcase \"JDBC\":\n\t\t\tjdbc(request, response);\n\t\t\tbreak;\n\t\tcase \"Indexer\":\n\t\t\tindexer(request, response);\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n System.out.println(\"teste dopost\");\r\n }",
"protected void doPost(HttpServletRequest request,\r\n\t\t\tHttpServletResponse response)\r\n\t/* 43: */throws ServletException, IOException\r\n\t/* 44: */{\r\n\t\t/* 45:48 */doGet(request, response);\r\n\t\t/* 46: */}",
"@Override\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows ServletException, IOException {\n\t\tprocess(req, resp);\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\r\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\r\n\tprotected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\tprocess(req,resp);\r\n\t}",
"public void handlePost(SessionSrvc session, IObjectContext context)\n throws Exception\n {\n }",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\n\t\tdoGet(request, response);\n\t}",
"public void doPost(HttpServletRequest request, HttpServletResponse response) {\r\n\t\tdoGet(request, response);\r\n\t}",
"@Override\r\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler,\r\n\t\t\tModelAndView modelAndView) throws Exception {\n\t}",
"@Override\n protected void doPost\n (HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n processRequest(request, response);\n }",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n try {\r\n processRequest(request, response);\r\n } catch (JSONException ex) {\r\n Logger.getLogger(PDCBukUpload.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }",
"@Override\r\n protected void doPost(HttpServletRequest request,\r\n HttpServletResponse response)\r\n throws ServletException,\r\n IOException {\r\n processRequest(request,\r\n response);\r\n\r\n }",
"@Override\r\n\tpublic void doPost(CustomHttpRequest request, CustomHttpResponse response) throws Exception {\n\t\tdoGet(request, response);\r\n\t}",
"@Override\n\tpublic void postHandle(HttpServletRequest request, HttpServletResponse response,\n\t\t\tObject handler, ModelAndView modelAndView) throws Exception {\n\n\t}",
"protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tdoHandle(request, response);\n\t}",
"private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}",
"@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\r\n throws ServletException, IOException {\r\n processRequest(request, response);\r\n }",
"@Override\n public void postHandle(HttpServletRequest request,\n HttpServletResponse response, Object handler,\n ModelAndView modelAndView) throws Exception {\n\n }",
"@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n try {\n processRequest(request, response);\n } catch (Exception ex) {\n Logger.getLogger(PedidoController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }"
] | [
"0.73289514",
"0.71383566",
"0.7116213",
"0.7105215",
"0.7100045",
"0.70236707",
"0.7016248",
"0.6964149",
"0.6889435",
"0.6784954",
"0.67733276",
"0.67482096",
"0.66677034",
"0.6558593",
"0.65582114",
"0.6525548",
"0.652552",
"0.652552",
"0.652552",
"0.65229493",
"0.6520197",
"0.6515622",
"0.6513045",
"0.6512626",
"0.6492367",
"0.64817846",
"0.6477479",
"0.64725804",
"0.6472099",
"0.6469389",
"0.6456206",
"0.6452577",
"0.6452577",
"0.6452577",
"0.6450273",
"0.6450273",
"0.6438126",
"0.6437522",
"0.64339423",
"0.64253825",
"0.6422238",
"0.6420897",
"0.6420897",
"0.6420897",
"0.6407662",
"0.64041835",
"0.64041835",
"0.639631",
"0.6395677",
"0.6354875",
"0.63334197",
"0.6324263",
"0.62959254",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6288832",
"0.6280875",
"0.6272104",
"0.6272104",
"0.62711537",
"0.62616795",
"0.62544584",
"0.6251865",
"0.62274224",
"0.6214439",
"0.62137586",
"0.621211",
"0.620854",
"0.62023044",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61775357",
"0.61638993",
"0.61603814",
"0.6148914",
"0.61465937",
"0.61465937",
"0.614548",
"0.6141879",
"0.6136717",
"0.61313903",
"0.61300284",
"0.6124381",
"0.6118381",
"0.6118128",
"0.61063534",
"0.60992104",
"0.6098801",
"0.6096766"
] | 0.0 | -1 |
Returns a short description of the servlet. | @Override
public String getServletInfo() {
return "Short description";
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getServletInfo()\n {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\n return \"Short description\";\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\r\n public String getServletInfo() {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\n\tpublic String getServletInfo() {\n\t\treturn \"Short description\";\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo()\n {\n return \"Short description\";\n }",
"@Override\r\n\tpublic String getServletInfo() {\r\n\t\treturn \"Short description\";\r\n\t}",
"@Override\r\n public String getServletInfo()\r\n {\r\n return \"Short description\";\r\n }",
"@Override\n public String getServletInfo() {\n return \"Short description\";\n }"
] | [
"0.87637967",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.8732516",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.86994135",
"0.8531816",
"0.8531816",
"0.8528654",
"0.8528654",
"0.8528654",
"0.8528071",
"0.8528071",
"0.8528071",
"0.8528071",
"0.8528071",
"0.8528071",
"0.8517513",
"0.85127866",
"0.8511884",
"0.8510858",
"0.84969866"
] | 0.0 | -1 |
Constructs a Product with a productName and the productQuantity associated with the product. Product objects constructed will not have any product tags associated with it. | public Product(Name productName, int productQuantity) {
this.productName = productName;
this.productQuantity = productQuantity;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }",
"public Product(Name productName, int productQuantity, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n this.productTags.addAll(productTags);\n }",
"public Product(String name, double price, int quantity) {\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.quantity=quantity;\n\t\t\n\t}",
"public Product(String productName, float price, int quantity, String supplierName, String supplierPhone) {\n this.productName = productName;\n mProductPrice = price;\n productQuantity = quantity;\n this.supplierName = supplierName;\n this.supplierPhone = supplierPhone;\n }",
"public Product(String productName, double productPrice) {\n this.productName = productName;\n this.productPrice = productPrice;\n this.createDate = LocalDate.now();\n this.stockVolume = getStockNumber();\n }",
"public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }",
"public Product(String name) {\n setName(name);\n setProductionNumber(currentProductionNumber);\n\n // Increment current production number in loop\n currentProductionNumber++;\n manufacturer = MANUFACTURER;\n manufacturedOn = new Date();\n }",
"Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }",
"public Product(Name productName, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuantity = 0;\n this.productTags.addAll(productTags);\n }",
"public Product(int productId, String name, String description, float price) {\n setProductId(productId);\n setName(name);\n setDescription(description);\n setPrice(price);\n }",
"public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}",
"public Product(String name) {\n setProductionNumber(currentProductionNumber);\n this.name = name;\n this.serialNumber = currentProductionNumber;\n this.manufacturedOn = new java.util.Date();\n }",
"public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(this.getProdId());\n\t\tprod.setProductName(this.getProductName());\n\t\tprod.setPrice(this.getPrice());\n\t\tprod.setStock(this.getStock());\n\t\tprod.setDescription(this.getDescription());\n\t\tprod.setImage(this.getImage());\n\t\tprod.setSellerId(this.getSellerId());\n\t\tprod.setCategory(this.getCategory());\n\t\tprod.setSubcategory(this.getSubcategory());\n\t\tprod.setProductrating(this.getProductrating());\n\t\treturn prod;\n\t}",
"public CartProduct(int cartId, int uId, int cartQuantity, int pId, String pName, String pImage, double pPrice, int pWeight, String pDescription, int pQuantity, String pCreateDate) {\n this.cartId = cartId;\n this.uId = uId;\n this.cartQuantity = cartQuantity;\n this.pId = pId;\n this.pName = pName;\n this.pImage = pImage;\n this.pPrice = pPrice;\n this.pWeight = pWeight;\n this.pDescription = pDescription;\n this.pQuantity = pQuantity;\n this.pCreateDate = pCreateDate;\n }",
"public Product(String name, double price, boolean imported, int quantity)\n\t{\n\t\tthis.name = name;\n\t\tthis.price = price * quantity;\n\t\tthis.imported = imported;\n\t\tthis.quantity = quantity;\n\t}",
"public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}",
"OrderedProduct(int quantity, String prodCode, String prodName, int prodSize, String prodVariety,\n double prodPrice) {\n this.quantity = quantity;\n this.prodCode = prodCode;\n this.prodName = prodName;\n this.prodSize = prodSize;\n this.prodVariety = prodVariety;\n this.prodPrice = prodPrice;\n }",
"static public Product create(String name, String description, double price) {\n\t\t\n\t\tProduct p = new Product();\n\t\tp.name = name;\n\t\tp.description = description;\n\t\tp.price = price;\n\t\t\n\t\treturn p;\n\t}",
"public Product(String sku, String name, BigDecimal price) {\n\t\t\n\t\tif (sku == null || name == null || price == null) {\n\t\t\tthrow new IllegalArgumentException(\"Sku price and name are mandatory\");\n\t\t}\n\t\tthis.sku = sku;\n\t\tthis.name = name;\n\t\tthis.price = price;\t\t\t\n\t}",
"public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }",
"public Product(String categeory, String name, String description,int productSize, int packQuantity,\n double cost, double price, Business manufacturer) {\n this(categeory,name,description,packQuantity,cost,price,manufacturer);\n setProductSizeUnit(categeory); \n }",
"public Product(String productName, ProductCondition productCondition, String productCode, int stockLevel) {\n this.productName = productName;\n this.productCondition = productCondition;\n this.productCode = productCode;\n this.stockLevel = stockLevel;\n }",
"public Product(String code, String name) {\n this.code = code;\n this.name = name;\n }",
"public Product(String name, int stock, double price, String color) {\n\t\tthis.name = name;\n\t\tthis.stock = stock;\n\t\tthis.price = price;\n\t\tthis.color = color;\n\t}",
"public Product(String name, float price) throws WrongProductNameException, WrongProductPriceValueException {\n\t\t\n\t\tsetName(name);\n\t\tsetPrice(price);\n\t\tweeklySoldItems = new ArrayList<Integer>();\n\t}",
"public MobilePhones(String productId, String name, double price, int quantity) {\n\t\tsuper(productId, name, price, quantity);\n\n\t}",
"public Order(String orderNumber, String productName, float price, int quantity) {\n\t\tthis.orderNumber = orderNumber;\n\t\tthis.productName = productName;\n\t\tthis.price = price;\n\t\tthis.quantity = quantity;\n\t}",
"public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public Product() {}",
"public Product(Integer productCode, String description, Double price) {\n\t\tsuper();\n\t\tthis.productCode = productCode;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t}",
"public Product(String id, String name, String description) {\n this.id = id;\n this.name = name;\n this.description = description;\n }",
"public void setProductName(java.lang.String productName) {\n this.productName = productName;\n }",
"public StockItem(T product, Integer quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"public void setProductName(String productName) {\n\t\tthis.productName = productName;\n\t}",
"public InventoryItem(String itemName, int sku, double price,int quantity) {\r\n this.itemName = itemName;\r\n this.sku = sku;\r\n this.setPrice(price);\r\n this.setQuantity(quantity);\r\n nItems++;\r\n }",
"public Product(String ndbNumber, String productName, String manufacturer, String ingredients) {\n\t\tsuper();\n\t\tthis.ndbNumber = ndbNumber;\n\t\tthis.productName = productName;\n\t\tthis.manufacturer = manufacturer;\n\t\tthis.ingredients = ingredients;\n\t}",
"public void setProductName(String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"public LineItem(Product product, int quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"public void setProductName(String productName) {\r\n this.productName = productName;\r\n }",
"public Order(int id, String orderNumber, String productName, float price, int quantity) {\n\t\tthis.id = id;\n\t\tthis.orderNumber = orderNumber;\n\t\tthis.productName = productName;\n\t\tthis.price = price;\n\t\tthis.quantity = quantity;\n\t}",
"public Saving productName(String productName) {\n this.productName = productName;\n return this;\n }",
"public void setProductName (java.lang.String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"@Transactional\n public HttpResult createProduct(String name, String quantity, String price, String description) {\n httpResultcreateProduct.setMessage(\"\");\n if (!name.isEmpty() || !quantity.isEmpty() || !price.isEmpty() || !description.isEmpty()) {\n if (!checkDigids(quantity) || !checkDigids(price)) {\n if (!checkDigids(quantity)) {\n httpResultcreateProduct.setMessage(\"Quantity may be only numbers\");\n logger.info(\"Quantity may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Quantity may be only numbers\");\n }\n }\n if (!checkDigids(price)) {\n if (httpResultcreateProduct.getMessage().length() > 1) {\n httpResultcreateProduct.setMessage(httpResultcreateProduct.getMessage() + \"\\n\" + \"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n } else {\n httpResultcreateProduct.setMessage(\"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n }\n }\n } else {\n int pructPrice = Integer.parseInt(price);\n int productQuantity = Integer.parseInt(quantity);\n product = new Product(description, pructPrice, name, productQuantity);\n httpResultcreateProduct.setData(product);\n }\n } else {\n httpResultcreateProduct.setMessage(\"Please don't leave empty fields\");\n logger.info(\"Please don't leave empty fields\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Please don't leave empty fields\");\n }\n }\n return httpResultcreateProduct;\n }",
"public Producto(String nombre, String descripcion, LocalDate fechaPubl, double pvp, Tag tagProducto, boolean stock,\n\t\t\tlong idProducto) {\n\t\tsuper();\n\t\tthis.nombre = nombre;\n\t\tthis.descripcion = descripcion;\n\t\tthis.fechaPubl = fechaPubl;\n\t\tthis.pvp = pvp;\n\t\tthis.tagProducto = tagProducto;\n\t\tthis.stock = stock;\n\t\tthis.idProducto = idProducto;\n\t}",
"public Product() { }",
"public Product() { }",
"public Product(String name, Double price, Category... categories) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t\tthis.categories = new HashSet<ProductCategory>();\n\t\tfor (Category category : categories) {\n\t\t\tProductCategoryId productCategoryId = new ProductCategoryId(this, category);\n\t\t\tProductCategory productCategory = new ProductCategory(productCategoryId, name, category.getName());\n\t\t\tthis.categories.add(productCategory);\n\t\t}\n\t}",
"public Product() {\n\t}",
"public Product() {\n }",
"public Product() {\n }",
"public InventoryItem(String itemName, int sku, double price) {\r\n this.itemName = itemName;\r\n this.sku = sku;\r\n this.setPrice(price);\r\n this.quantity = 0;\r\n nItems++;\r\n }",
"public Item(String itemName, double itemPrice, int numPurchased)\n {\n \tname = itemName;\n \tprice = itemPrice;\n \tquantity = numPurchased;\n }",
"public void createProduct(ProductData newProduct) {\n throw new UnsupportedOperationException();\n }",
"public Item(String name, int quantity, double price, String id) {\n\t\tthis.name = name;\n\t\tthis.quantity = quantity;\n\t\tthis.price = price;\n\t\tthis.id = id;\n\n\t}",
"protected Product(Parcel in) {\r\n quantity = in.readInt();\r\n name = in.readString();\r\n checked = in.readByte() != 0;\r\n }",
"public InventoryItem(String name, int quantity) {\n\t\tthis.name = name;\n\t\tthis.quantity = quantity;\n\t}",
"public Product inputProduct() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Description:\");\n String dscrp = in.next();\n p.setName(dscrp);\n System.out.println(\"Price:\");\n double Price = in.nextDouble();\n p.setPrice(Price);\n System.out.println(\"Quantity:\");\n int Quantity = in.nextInt();\n p.setQuantity(Quantity);\n\n return new Product(p.getName(), p.getPrice(), p.getQuantity());\n }",
"public Basket(double price, String name, int quantityForSold, double priceOfProvider, Quantity quantity) {\n super(price, name, quantityForSold, priceOfProvider, quantity);\n }",
"ProductInventory(Product pProduct)\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t\t// Add a user-defined Product to the inventory array\n\t\t// This Product object is placed in the first position\n\t\t// of the Product Inventory Array List\n\t\tthis.addProduct(pProduct);\n\n\t}",
"public DocumentLifecycleWorkflowRequest setProductName(String productName) {\n\t\tthis.productName = productName;\n\t\treturn this;\n\t}",
"public Product(final LocalDateTime createdAt,final String name,final BigDecimal price,final Status status) {\r\n\t\tthis.name=name;\r\n\t\tthis.price=price;\r\n\t\tthis.status=status;\r\n\t\tthis.createdAt=createdAt;\r\n\t}",
"private Product getProduct(ProductVO product) {\n return Product.builder()\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }",
"public Product loadProductFromId(int productId) {\n ResultSet rs = database.getProduct(productId);\n Product newProduct = null;\n\n try {\n if (rs.next()) {\n newProduct = new Product(rs.getString(\"name\"), rs.getString(\"description\"), rs.getString(\"type\"), new Money(rs.getString(\"price\")), productId, rs.getBoolean(\"currentlyselling\"));\n } else {\n throw new NoSuchProductException(productId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newProduct == null) {\n throw new NoSuchProductException(productId);\n }\n return newProduct;\n }",
"public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}",
"public static Product getProduct(String productCode) {\n\t\tProduct product2 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\tProduct product3 = new Product(productCode, \"Murach's MySQL\", 54.50);\r\n\t\tProduct product4 = new Product(productCode, \"Murach's python\", 57.50);\r\n\t\tProduct product5 = new Product(productCode, \"Murach's Java Programming\", 57.50);\r\n\r\n\t\t// you can also call product, and then pass in like so\r\n\t\tProduct product6;\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct6 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\t}\r\n\r\n\t\t// create the Product object\r\n\t\t// then with your product instance you can call the methods to set your values\r\n\t\tProduct product = new Product();\r\n\t\t// fill the Product object with data\r\n\t\tproduct.setCode(productCode);\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Programming\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"jsp\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Servlets and JSP\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"mysql\")) {\r\n\t\t\tproduct.setDescription(\"Murach's MySQL\");\r\n\t\t\tproduct.setPrice(54.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"python\")) {\r\n\t\t\tproduct.setDescription(\"Murach's python\");\r\n\t\t\tproduct.setPrice(66.60);\r\n\t\t} else {\r\n\t\t\tproduct.setDescription(\"Unknown\");\r\n\t\t}\r\n\t\treturn product;\r\n\t}",
"public ProductTextFile() {\n\t\t\n\t\t\tProduct item = new Product();\n\t\t\titem.setDescription(\"South West Exploration\");\n\t\t\titem.setCode(\"SWE\");\n\t\t\titem.setPrice(49.50);\n\t\t\t\n\t\t\tproducts.add(item);\n\t\t\t\n\t\t\tProduct product = new Product();\n\t\t\tproduct.setDescription(\"All The Stars\");\n\t\t\tproduct.setCode(\"ATS\");\n\t\t\tproduct.setPrice(13.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\t\tProduct book = new Product();\n\t\t\tbook.setDescription(\"Who Moved My Cheese?\");\n\t\t\tbook.setCode(\"WMC\");\n\t\t\tbook.setPrice(10.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\n\t}",
"public Product selectProduct(String productName)\n {\n Product aProduct = new Product();\n for (int index = 0; index < listOfProduct.size(); index++)\n {\n if (productName.equals(listOfProduct.get(index).getProductName()))\n return listOfProduct.get(index);\n }\n return aProduct;\n }",
"public Stock(final String product, final String batch, final String lot, final int quantity)\n {\n this();\n\n this.batch = batch;\n this.lot = lot;\n this.product = product;\n this.quantity = quantity;\n }",
"public Warehouse(String name, String address, String phone, ArrayList<Product> products) {\r\n\t\tthis.name = name;\r\n\t\tthis.address = address;\r\n\t\tthis.phone = phone;\r\n\t\tthis.inventory = new HashMap<Integer, Integer>();\r\n\t\tfor(Product prod:products) {\r\n\t\t\tinventory.put(prod.getID(), 0);\r\n\t\t}\r\n\t}",
"public CartItem(Product product, Taste taste) {\n this.setProduct(product);\n this.taste = taste;\n this.setQuantity(1);\n this.setTotalPrice(product.getRealPrice());\n }",
"public Product(){\n // Default constructor required for calls to DataSnapshot.getValue(Product.class)\n }",
"public Inventory(String kodeWh,String kodeProd,double hargaProd,int jumlahProd){\n this.kodeWh=kodeWh;\n this.kodeProd=kodeProd;\n this.hargaProd=hargaProd;\n this.jumlahProd=jumlahProd;\n }",
"public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}",
"public void setItemName(String product) {\n itemName = product;\n }",
"public CartProduct() {\n }",
"Product getProductByProductName(String productName);",
"public void setProductName(final String productName);",
"void create(Product product) throws IllegalArgumentException;",
"@Step(\"Add product to cart and proceed to checkout\")\n public HomeSteps addProductToCart(String productName) {\n homePage\n .openPage()\n .clickAddToCartButton(productName)\n .clickProceedToCheckoutButton();\n return this;\n }",
"public Plan(String name, String publisher, String product) {\n if (name == null) {\n throw new NullPointerException(\"name\");\n }\n if (publisher == null) {\n throw new NullPointerException(\"publisher\");\n }\n if (product == null) {\n throw new NullPointerException(\"product\");\n }\n this.setName(name);\n this.setPublisher(publisher);\n this.setProduct(product);\n }",
"public Item(String name, int quantity, String um, double unitPrice) {\n\t\tthis.name = name;\n\t\tthis.unitPrice = unitPrice;\n\t\tthis.quantityInStock = quantity;\n\t\tthis.unitOfMeasurement = um;\n\t}",
"public Item(String name, String description, double price) {\n\t\tthis.name = name;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t\tformatter = NumberFormat.getCurrencyInstance();\n\t}",
"public Product(int id, String name, double price, int stock, int min, int max) {\n this.id = id;\n this.name = name;\n this.price = price;\n this.stock = stock;\n this.min = min;\n this.max = max;\n }",
"public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }",
"public void addProduct(String name, double val, int q) {\n\t\tproducts.add(new Products(name, val, q));\n\t}",
"public org.mrk.grpc.catalog.Product getProduct() {\n if (productBuilder_ == null) {\n return product_ == null ? org.mrk.grpc.catalog.Product.getDefaultInstance() : product_;\n } else {\n return productBuilder_.getMessage();\n }\n }",
"public Builder setProduct(org.mrk.grpc.catalog.Product value) {\n if (productBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n product_ = value;\n onChanged();\n } else {\n productBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public TVSets(String productId, String name, double price, int quantity, double displaySize) {\n\t\tsuper(productId, name, price, quantity);\n\t\tthis.displaySize = displaySize;\n\t}",
"private static Product getProduct(Element e) {\n\t\tNodeList children = e.getChildNodes();\n\n\t\tElement descriptionElement = (Element) children.item(1);\n\t\tText descriptionText = (Text) descriptionElement.getFirstChild();\n\t\tString description = descriptionText.getData();\n\n\t\tElement priceElement = (Element) children.item(1);\n\t\tText priceText = (Text) priceElement.getFirstChild();\n\t\tdouble price = Double.parseDouble(priceText.getData());\n\n\t\treturn new Product(description, price);\n\t}",
"@Override\r\n\tpublic Product findByProductName(String productName) {\n\t\treturn iImportSalesRecordDao.findByProductName(productName);\r\n\t}",
"public Item(long id, String name, double price, int wasPurchased, int order, String storeName) {\n setId(id);\n setName(name);\n setPrice(price);\n setWasPurchased(wasPurchased);\n setOrder(order);\n setStoreName(storeName);\n }",
"public GroceryItemOrder(String name, int quantity, double pricePerUnit) {\n this.name = name;\n this.quantity = quantity;\n this.ppu = pricePerUnit;\n }",
"public CheckoutPage AddProductToCartAndCheckout(String strProductName)\n\t{\n\t\twaittillResultload(\".//*[@name='\"+strProductName+\"']/div[2]/div/span/input\", \"xpath\");\n\t\t\n\t\tinputAddToCart.click();\n\t\t\n\t\twaittillResultload(\".go_to_checkout\", \"css\");\n\t\t\n\t\tbuttonCheckout.click();\n\t\t\n\t\treturn new CheckoutPage(driver);\n\t\t\n\t}",
"private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }",
"public GoodsSpecProduct(Name alias) {\n this(alias, GOODS_SPEC_PRODUCT);\n }",
"public Weapon (String name) {\n\t\tsuper(name, weight, itemDamage, 0, 0, quantity);\n\t}",
"public void setProductId(String productId) {\n this.productId = productId;\n }"
] | [
"0.81906533",
"0.80804116",
"0.8046236",
"0.80161655",
"0.7978435",
"0.77009416",
"0.7637445",
"0.7601705",
"0.75932866",
"0.74035114",
"0.73737144",
"0.7333416",
"0.7309889",
"0.7280347",
"0.71678156",
"0.70909697",
"0.7022872",
"0.6992201",
"0.6945147",
"0.6873501",
"0.6815116",
"0.67168576",
"0.66884744",
"0.65969086",
"0.6596645",
"0.6567468",
"0.6548724",
"0.6538763",
"0.64951307",
"0.64951307",
"0.64951307",
"0.6489012",
"0.64863163",
"0.6481074",
"0.6474789",
"0.64701",
"0.6451102",
"0.644267",
"0.64356333",
"0.6425515",
"0.64050615",
"0.6396586",
"0.6393943",
"0.6336895",
"0.63047224",
"0.6293577",
"0.6292237",
"0.6260961",
"0.6260961",
"0.6247772",
"0.6211441",
"0.6171165",
"0.6171165",
"0.61473024",
"0.6142578",
"0.6088077",
"0.6062988",
"0.6060118",
"0.6051851",
"0.604729",
"0.60453695",
"0.599257",
"0.59431815",
"0.5940379",
"0.59378207",
"0.59355927",
"0.59181786",
"0.59137124",
"0.5911416",
"0.5904187",
"0.58905596",
"0.5871808",
"0.58666587",
"0.586035",
"0.58599323",
"0.5858948",
"0.5843939",
"0.58387625",
"0.58327836",
"0.58305794",
"0.5825981",
"0.58132",
"0.58118296",
"0.5794078",
"0.5789929",
"0.5785951",
"0.5780101",
"0.5774031",
"0.5769101",
"0.57682717",
"0.57663846",
"0.57651794",
"0.575525",
"0.5749573",
"0.574515",
"0.5744772",
"0.57291764",
"0.57230055",
"0.572233",
"0.5722103"
] | 0.8576708 | 0 |
Constructs a Product with a productName and the tags (if any) associated with the products. Tags can be 0 or more than 1. | public Product(Name productName, Set<Tag> productTags) {
this.productName = productName;
this.productQuantity = 0;
this.productTags.addAll(productTags);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(Name productName, int productQuantity, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n this.productTags.addAll(productTags);\n }",
"public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(this.getProdId());\n\t\tprod.setProductName(this.getProductName());\n\t\tprod.setPrice(this.getPrice());\n\t\tprod.setStock(this.getStock());\n\t\tprod.setDescription(this.getDescription());\n\t\tprod.setImage(this.getImage());\n\t\tprod.setSellerId(this.getSellerId());\n\t\tprod.setCategory(this.getCategory());\n\t\tprod.setSubcategory(this.getSubcategory());\n\t\tprod.setProductrating(this.getProductrating());\n\t\treturn prod;\n\t}",
"public Product(String productName, double productPrice) {\n this.productName = productName;\n this.productPrice = productPrice;\n this.createDate = LocalDate.now();\n this.stockVolume = getStockNumber();\n }",
"public Product(String name) {\n setName(name);\n setProductionNumber(currentProductionNumber);\n\n // Increment current production number in loop\n currentProductionNumber++;\n manufacturer = MANUFACTURER;\n manufacturedOn = new Date();\n }",
"public Product(int productId, String name, String description, float price) {\n setProductId(productId);\n setName(name);\n setDescription(description);\n setPrice(price);\n }",
"public Product(String productName, float price, int quantity, String supplierName, String supplierPhone) {\n this.productName = productName;\n mProductPrice = price;\n productQuantity = quantity;\n this.supplierName = supplierName;\n this.supplierPhone = supplierPhone;\n }",
"static public Product create(String name, String description, double price) {\n\t\t\n\t\tProduct p = new Product();\n\t\tp.name = name;\n\t\tp.description = description;\n\t\tp.price = price;\n\t\t\n\t\treturn p;\n\t}",
"public Product(Name productName, int productQuantity) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n }",
"public Product(String name) {\n setProductionNumber(currentProductionNumber);\n this.name = name;\n this.serialNumber = currentProductionNumber;\n this.manufacturedOn = new java.util.Date();\n }",
"public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }",
"public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }",
"public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }",
"public Product(String name, double price, int quantity) {\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.quantity=quantity;\n\t\t\n\t}",
"public Product(String id, String name, String description) {\n this.id = id;\n this.name = name;\n this.description = description;\n }",
"public Product(String name, Double price, Category... categories) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t\tthis.categories = new HashSet<ProductCategory>();\n\t\tfor (Category category : categories) {\n\t\t\tProductCategoryId productCategoryId = new ProductCategoryId(this, category);\n\t\t\tProductCategory productCategory = new ProductCategory(productCategoryId, name, category.getName());\n\t\t\tthis.categories.add(productCategory);\n\t\t}\n\t}",
"public Product(String code, String name) {\n this.code = code;\n this.name = name;\n }",
"public Producto(String nombre, String descripcion, LocalDate fechaPubl, double pvp, Tag tagProducto, boolean stock,\n\t\t\tlong idProducto) {\n\t\tsuper();\n\t\tthis.nombre = nombre;\n\t\tthis.descripcion = descripcion;\n\t\tthis.fechaPubl = fechaPubl;\n\t\tthis.pvp = pvp;\n\t\tthis.tagProducto = tagProducto;\n\t\tthis.stock = stock;\n\t\tthis.idProducto = idProducto;\n\t}",
"public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}",
"public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }",
"Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }",
"public Product selectProduct(String productName)\n {\n Product aProduct = new Product();\n for (int index = 0; index < listOfProduct.size(); index++)\n {\n if (productName.equals(listOfProduct.get(index).getProductName()))\n return listOfProduct.get(index);\n }\n return aProduct;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(java.lang.String productName) {\n this.productName = productName;\n }",
"public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}",
"public Product() {}",
"public static Product getProduct(String productCode) {\n\t\tProduct product2 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\tProduct product3 = new Product(productCode, \"Murach's MySQL\", 54.50);\r\n\t\tProduct product4 = new Product(productCode, \"Murach's python\", 57.50);\r\n\t\tProduct product5 = new Product(productCode, \"Murach's Java Programming\", 57.50);\r\n\r\n\t\t// you can also call product, and then pass in like so\r\n\t\tProduct product6;\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct6 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\t}\r\n\r\n\t\t// create the Product object\r\n\t\t// then with your product instance you can call the methods to set your values\r\n\t\tProduct product = new Product();\r\n\t\t// fill the Product object with data\r\n\t\tproduct.setCode(productCode);\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Programming\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"jsp\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Servlets and JSP\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"mysql\")) {\r\n\t\t\tproduct.setDescription(\"Murach's MySQL\");\r\n\t\t\tproduct.setPrice(54.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"python\")) {\r\n\t\t\tproduct.setDescription(\"Murach's python\");\r\n\t\t\tproduct.setPrice(66.60);\r\n\t\t} else {\r\n\t\t\tproduct.setDescription(\"Unknown\");\r\n\t\t}\r\n\t\treturn product;\r\n\t}",
"public void setProductName(String productName) {\r\n this.productName = productName;\r\n }",
"private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }",
"public void setProductName(String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"private GeneProduct createGeneProduct( Gene gene ) {\n GeneProduct geneProduct = GeneProduct.Factory.newInstance();\n geneProduct.setGene( gene );\n geneProduct.setName( gene.getName() );\n geneProduct.setDescription( \"Gene product placeholder\" );\n return geneProduct;\n }",
"@Transactional\n public HttpResult createProduct(String name, String quantity, String price, String description) {\n httpResultcreateProduct.setMessage(\"\");\n if (!name.isEmpty() || !quantity.isEmpty() || !price.isEmpty() || !description.isEmpty()) {\n if (!checkDigids(quantity) || !checkDigids(price)) {\n if (!checkDigids(quantity)) {\n httpResultcreateProduct.setMessage(\"Quantity may be only numbers\");\n logger.info(\"Quantity may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Quantity may be only numbers\");\n }\n }\n if (!checkDigids(price)) {\n if (httpResultcreateProduct.getMessage().length() > 1) {\n httpResultcreateProduct.setMessage(httpResultcreateProduct.getMessage() + \"\\n\" + \"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n } else {\n httpResultcreateProduct.setMessage(\"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n }\n }\n } else {\n int pructPrice = Integer.parseInt(price);\n int productQuantity = Integer.parseInt(quantity);\n product = new Product(description, pructPrice, name, productQuantity);\n httpResultcreateProduct.setData(product);\n }\n } else {\n httpResultcreateProduct.setMessage(\"Please don't leave empty fields\");\n logger.info(\"Please don't leave empty fields\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Please don't leave empty fields\");\n }\n }\n return httpResultcreateProduct;\n }",
"public void setProductName(String productName) {\n\t\tthis.productName = productName;\n\t}",
"Product getProductByProductName(String productName);",
"public void setProductName (java.lang.String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"private static Product getProduct(Element e) {\n\t\tNodeList children = e.getChildNodes();\n\n\t\tElement descriptionElement = (Element) children.item(1);\n\t\tText descriptionText = (Text) descriptionElement.getFirstChild();\n\t\tString description = descriptionText.getData();\n\n\t\tElement priceElement = (Element) children.item(1);\n\t\tText priceText = (Text) priceElement.getFirstChild();\n\t\tdouble price = Double.parseDouble(priceText.getData());\n\n\t\treturn new Product(description, price);\n\t}",
"private Product getProduct(ProductVO product) {\n return Product.builder()\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }",
"public Product(String ndbNumber, String productName, String manufacturer, String ingredients) {\n\t\tsuper();\n\t\tthis.ndbNumber = ndbNumber;\n\t\tthis.productName = productName;\n\t\tthis.manufacturer = manufacturer;\n\t\tthis.ingredients = ingredients;\n\t}",
"public Product(String sku, String name, BigDecimal price) {\n\t\t\n\t\tif (sku == null || name == null || price == null) {\n\t\t\tthrow new IllegalArgumentException(\"Sku price and name are mandatory\");\n\t\t}\n\t\tthis.sku = sku;\n\t\tthis.name = name;\n\t\tthis.price = price;\t\t\t\n\t}",
"public GoodsSpecProduct(Name alias) {\n this(alias, GOODS_SPEC_PRODUCT);\n }",
"public Product(String categeory, String name, String description,int productSize, int packQuantity,\n double cost, double price, Business manufacturer) {\n this(categeory,name,description,packQuantity,cost,price,manufacturer);\n setProductSizeUnit(categeory); \n }",
"public void createProduct(ProductData newProduct) {\n throw new UnsupportedOperationException();\n }",
"public ProductTextFile() {\n\t\t\n\t\t\tProduct item = new Product();\n\t\t\titem.setDescription(\"South West Exploration\");\n\t\t\titem.setCode(\"SWE\");\n\t\t\titem.setPrice(49.50);\n\t\t\t\n\t\t\tproducts.add(item);\n\t\t\t\n\t\t\tProduct product = new Product();\n\t\t\tproduct.setDescription(\"All The Stars\");\n\t\t\tproduct.setCode(\"ATS\");\n\t\t\tproduct.setPrice(13.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\t\tProduct book = new Product();\n\t\t\tbook.setDescription(\"Who Moved My Cheese?\");\n\t\t\tbook.setCode(\"WMC\");\n\t\t\tbook.setPrice(10.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\n\t}",
"public Product() { }",
"public Product() { }",
"public Product(Integer productCode, String description, Double price) {\n\t\tsuper();\n\t\tthis.productCode = productCode;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t}",
"public Product(String name, double price, boolean imported, int quantity)\n\t{\n\t\tthis.name = name;\n\t\tthis.price = price * quantity;\n\t\tthis.imported = imported;\n\t\tthis.quantity = quantity;\n\t}",
"public Product() {\n\t}",
"public Product(String name, int stock, double price, String color) {\n\t\tthis.name = name;\n\t\tthis.stock = stock;\n\t\tthis.price = price;\n\t\tthis.color = color;\n\t}",
"public void setProductName(final String productName);",
"public Saving productName(String productName) {\n this.productName = productName;\n return this;\n }",
"public Product inputProduct() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Description:\");\n String dscrp = in.next();\n p.setName(dscrp);\n System.out.println(\"Price:\");\n double Price = in.nextDouble();\n p.setPrice(Price);\n System.out.println(\"Quantity:\");\n int Quantity = in.nextInt();\n p.setQuantity(Quantity);\n\n return new Product(p.getName(), p.getPrice(), p.getQuantity());\n }",
"public Product() {\n }",
"public Product() {\n }",
"public Product(String productName, ProductCondition productCondition, String productCode, int stockLevel) {\n this.productName = productName;\n this.productCondition = productCondition;\n this.productCode = productCode;\n this.stockLevel = stockLevel;\n }",
"public static Product getProduct(int productId) throws SQLException\n\t{\n\t\tProduct product = null;\n\t\tLogger logger = null;;\n\t\ttry{\n\t\t\tPreparedStatement statement = connection.prepareStatement(selectOneQuery);\n\t\t\tstatement.setInt(1, productId);\n\t\t\tResultSet resultset = statement.executeQuery();\n\t\t\twhile (resultset.next()) {\n\t\t\t\tString productName = resultset.getString(2);\n\t\t\t\t\n\t\t\t\tlogger .info(productName);\n\t\t\t\tproduct= new Product(productName);\n\t\t\t}\n\t\t}catch(SQLException e)\n\t\t{\n\t\t\tlogger.error(e);\n\t\t}\n\t\t\n\t\treturn product;\n\t\t\n\t}",
"public CartProduct(int cartId, int uId, int cartQuantity, int pId, String pName, String pImage, double pPrice, int pWeight, String pDescription, int pQuantity, String pCreateDate) {\n this.cartId = cartId;\n this.uId = uId;\n this.cartQuantity = cartQuantity;\n this.pId = pId;\n this.pName = pName;\n this.pImage = pImage;\n this.pPrice = pPrice;\n this.pWeight = pWeight;\n this.pDescription = pDescription;\n this.pQuantity = pQuantity;\n this.pCreateDate = pCreateDate;\n }",
"public Product getProduct(String productCode) {\n\t\t\n Product p = null;\n\t\t\n\t\tif(productCode.equalsIgnoreCase(\"RTLove\") || productCode.equalsIgnoreCase(\"FoWork\") || productCode.equalsIgnoreCase(\"WinFs\") ) {\n\t\t// create Product object \n\t\t\n\t\tBook b = new Book();\n\t\t\n\t\tif(productCode.equalsIgnoreCase(\"RTLove\"))\n\t\t{\n\t\t\tp.setDescription(\"Return to Love\");\n\t\t\tp.setCode(productCode);\n\t\t\tp.setPrice(49.50);\n\t\t} \n\t\telse if (productCode.equalsIgnoreCase(\"FoWork\"))\n\t\t{\n\t\t\tp.setDescription(\"Focused Work\");\n\t\t\tp.setCode(productCode);\n\t\t\tp.setPrice(30.50);\n\t\t\t\n\t\t}\n\t\t\n\t\telse if (productCode.equalsIgnoreCase(\"WinFs\"))\n\t\t{\n\t\t\tp.setDescription(\"Win over Friends\");\n\t\t\tp.setCode(productCode);\n\t\t\tp.setPrice(25.50);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tp = b;\n\t\t}\n\t\t\n\t\t\n\t}\n\t\treturn p;\n\t\t\n\t}",
"public static Product generateProduct()\n {\n Random r = new Random();\n Product p = new Product();\n String [] itemName = {\"Cool Hat\" , \"Cool Watch\" , \"Cool Necklace\", \"Black Lipstick\" , \"Red LipStick\" ,\n \"Black Eyeliner\" , \"Blue Shirt\" , \"Blue Jeans\" , \"Black Dress\" , \"Red Bag\" ,\n \"White Bag\" , \"Yellow Bag\" , \"Cool Flip Flops\", \"Cool Shoes\" , \"Cool Heels\" ,\n \"Cool Blender\" , \"Cool Mixer\" , \"Cool Juicer\" };\n p.productID = 1 + r.nextInt(6);\n\n if( p.productID == 1){\n p.productName = itemName[r.nextInt(3)];\n p.productType = (\"Accessory\");\n p.productSize = 1;\n }\n if( p.productID == 2) {\n p.productName = itemName[3 + r.nextInt(3)];\n p.productType = (\"Beauty\");\n p.productSize = 2;\n }\n if( p.productID == 3) {\n p.productName = itemName[6 + r.nextInt(3)];\n p.productType = (\"Clothes\");\n p.productSize = 2;\n }\n if( p.productID == 4){\n p.productName = itemName[9 + r.nextInt(3)];\n p.productType = (\"Bags\");\n p.productSize = 3;\n }\n if( p.productID == 5){\n p.productName = itemName[12 + r.nextInt(3)];\n p.productType = (\"Shoes\");\n p.productSize = 3;\n }\n if( p.productID == 6) {\n p.productName = itemName[15 + r.nextInt(3)];\n p.productType = (\"Housewares\");\n p.productSize = 5;\n }\n\n p.productSku = 1000000 + r.nextInt(9999999);\n\n\n\n\n return p;\n }",
"void create(Product product) throws IllegalArgumentException;",
"public Product loadProductFromId(int productId) {\n ResultSet rs = database.getProduct(productId);\n Product newProduct = null;\n\n try {\n if (rs.next()) {\n newProduct = new Product(rs.getString(\"name\"), rs.getString(\"description\"), rs.getString(\"type\"), new Money(rs.getString(\"price\")), productId, rs.getBoolean(\"currentlyselling\"));\n } else {\n throw new NoSuchProductException(productId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newProduct == null) {\n throw new NoSuchProductException(productId);\n }\n return newProduct;\n }",
"public Product getProductFromName(String prodName) throws BackendException;",
"@Override\r\n\tpublic Product create(Product p) throws CustomServiceUnavailableException, CustomBadRequestException {\r\n\t\tProductTypeDAO ptDao = new ProductTypeDAOImpl();\r\n\t\ttry {\r\n\t\t\tp.getId_product_type().setId_product_type(\r\n\t\t\t\t\tptDao.getIdByName(p.getId_product_type().getName()));\r\n\t\t\tProductDAO productDao = new ProductDAOImp();\r\n\t\t\tProduct product = productDao.insert(p);\r\n\t\t\tif (!(p.getImage() == null)) {\r\n\t\t\t\tDecodeImage(p.getImage(), product.getId_product());\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcopyDefaultImage(product.getId_product());\r\n\t\t\t}\r\n\t\t\treturn product;\r\n\t\t} catch (SQLException e) {\r\n\t\t\tif (e.getErrorCode() == 1062) {\r\n\t\t\t\tthrow new CustomBadRequestException(\"This product already exist!\");\r\n\t\t\t} else\r\n\t\t\t\tthrow new CustomServiceUnavailableException(\"Service Unavailable\");\r\n\t\t}\r\n\t}",
"public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }",
"OrderedProduct(int quantity, String prodCode, String prodName, int prodSize, String prodVariety,\n double prodPrice) {\n this.quantity = quantity;\n this.prodCode = prodCode;\n this.prodName = prodName;\n this.prodSize = prodSize;\n this.prodVariety = prodVariety;\n this.prodPrice = prodPrice;\n }",
"public Producto(String nombre, String vendedor, float precio, int cantidad,boolean enVenta, String descripcion,\r\n\t\t\tCaracteristica caracteristicas, Categoria categoria) {\r\n\t\tsuper();\r\n\t\tID = getIDnuevoProducto();\r\n\t\tsetNombre(nombre);\r\n\t\tsetCantidad(cantidad);\r\n\t\tsetEnVenta(enVenta);\r\n\t\tsetCaracteristicas(caracteristicas);\r\n\t\tsetCategoria(categoria);\r\n\t\tsetDescripcion(descripcion);\r\n\t\tsetPrecio(precio);\r\n\t\tsetVendedor(vendedor);\r\n\t}",
"@Programmatic\n public Product createProduct(final String title, final String description) {\n\n Product p = container.newTransientInstance(Product.class);\n p.setTitle(title);\n p.setDescription(description);\n\n container.persist(p);\n return p;\n }",
"private void loadProducts() {\n\t\tproduct1 = new Product();\n\t\tproduct1.setId(1L);\n\t\tproduct1.setName(HP);\n\t\tproduct1.setDescription(HP);\n\t\tproduct1.setPrice(BigDecimal.TEN);\n\n\t\tproduct2 = new Product();\n\t\tproduct2.setId(2L);\n\t\tproduct2.setName(LENOVO);\n\t\tproduct2.setDescription(LENOVO);\n\t\tproduct2.setPrice(new BigDecimal(20));\n\n\t}",
"public GoodsSpecProduct() {\n this(DSL.name(\"b2c_goods_spec_product\"), null);\n }",
"public Product(String name, float price) throws WrongProductNameException, WrongProductPriceValueException {\n\t\t\n\t\tsetName(name);\n\t\tsetPrice(price);\n\t\tweeklySoldItems = new ArrayList<Integer>();\n\t}",
"protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }",
"public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }",
"public Product createProduct() {\n String code, name;\n int quantity;\n float price;\n String color;\n String producer;\n int productType;\n\n Scanner scanner = new Scanner(System.in);\n System.out.println(\"1. for dairy 2. for color product \");\n productType = scanner.nextInt();\n\n System.out.println(\"Give product Code\");\n code = scanner.next();\n System.out.println(\"Give product Name\");\n name = scanner.next();\n System.out.println(\"Give product Quantity\");\n quantity = scanner.nextInt();\n System.out.println(\"Give product Price\");\n price = scanner.nextFloat();\n\n Product product;\n switch (productType) {\n case 1:\n System.out.println(\"Give producer \");\n producer = scanner.next();\n product = new DairyProduct(code, name, price, quantity, producer);\n return product;\n case 2:\n System.out.println(\"Give color \");\n color = scanner.next();\n product = new ColorProducts(code, name, price, quantity, color);\n return product;\n default: return null;\n }\n }",
"public Product(int id, String name, double price, int stock, int min, int max) {\n this.id = id;\n this.name = name;\n this.price = price;\n this.stock = stock;\n this.min = min;\n this.max = max;\n }",
"public static ProductFragment newInstance(long productId) {\n Bundle args = new Bundle();\n args.putLong(PRODUCT_ID, productId);\n ProductFragment fragment = new ProductFragment();\n fragment.setArguments(args);\n return fragment;\n }",
"public Producto (){\n\n }",
"Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;",
"public PantryProducts(Name alias) {\n this(alias, PANTRY_PRODUCTS);\n }",
"public Product(final LocalDateTime createdAt,final String name,final BigDecimal price,final Status status) {\r\n\t\tthis.name=name;\r\n\t\tthis.price=price;\r\n\t\tthis.status=status;\r\n\t\tthis.createdAt=createdAt;\r\n\t}",
"public static ProductFragments newInstance(String name) {\n ProductFragments fragment = new ProductFragments();\n Bundle args = new Bundle();\n fragment.setArguments(args);\n return fragment;\n }",
"public void setProductId(String productId) {\n this.productId = productId;\n }",
"public static Product createProduct(String type) {\n\n if (type.equals(\"A\")) {\n return new ConctreteProductA();\n }\n\n if (type.equals(\"B\")) {\n return new ConctreteProductB();\n }\n\n throw new UnsupportedOperationException(\"The type: \" + type + \" is incorrect!\");\n }",
"public Product getProductWithName(String name) {\n for (Product s : products) {\n if (s.getName() == name) { return s;}\n }\n return null;\n }",
"public Builder setProduct(org.mrk.grpc.catalog.Product value) {\n if (productBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n product_ = value;\n onChanged();\n } else {\n productBuilder_.setMessage(value);\n }\n\n return this;\n }",
"@Override\n public void startElement(String str1, String str2, String elementName, Attributes attributes) throws SAXException {\n\n if (elementName.equalsIgnoreCase(\"Product\")) {\n \t\n \t\n \tString cat = attributes.getValue(\"Cat\");\n \tint id = Integer.parseInt(attributes.getValue(\"id\"));\n \t\n \tproduct = new Product();\n \tproduct.setId(id);\n \tproduct.setCatagory(cat);\n \n }\n\n }",
"public Order(String name, double order_discount, String desc, Product... products) {\n\n this.order_no = this.generateOrderNumber();\n this.order_name = name;\n this.order_discount = order_discount;\n this.order_desc = desc;\n this.orderProducts = Stream.of(products).collect(Collectors.toSet());\n // TODO: check lambda\n this.orderProducts.forEach(x -> x.setOrderProduct(this));\n this.totalOrderPrice = countTotalOrderPrice(this);\n this.totalOrderPriceDiscount = countTotalOrderPriceDiscount(this);\n }",
"public ProductApiResponse getProductById(Integer id) throws ProductException {\n\n\t\tProduct product = new Product();\n\n\t\tString productName = \"\";\n\n\t\tProductApiResponse productApiResponse = new ProductApiResponse();\n\t\ttry {\n\t\t\t// find the product id in the repository\n\t\t\tproduct = productRepository.findProductByProductId(id);\n\n\t\t\tif (product != null) {\n\t\t\t\t// if product id is available in the repository then call the external api to\n\t\t\t\t// get the product name\n\n\t\t\t\tproductName = productExtApiService.getProductName(id);\n\n\t\t\t\tif (productName != null) {\n\t\t\t\t\tproductApiResponse = setProductName(product, productName);\n\t\t\t\t} else {\n\t\t\t\t\tlogger.info(\"Product Name not available\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tlogger.info(\"Product Id:\" + id + \"is not available in the repository\");\n\t\t\t\tthrow new ProductNotFoundException(\"Product Id:\" + id + \"is not available in the repository\");\n\n\t\t\t}\n\t\t} catch (RestClientException e) {\n\t\t\tlogger.info(\"Error in calling the external api to get the product name\");\n\t\t\tthrow new RestClientException(\"Error in calling the external api to get the product name.\");\n\t\t}\n\n\t\treturn productApiResponse;\n\t}",
"private ProductVO getProductVO(Product product) {\n return ProductVO.builder()\n .created(product.getCreated())\n .updated(product.getUpdated())\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }",
"ProductType(String name)\n {\n this.name = name;\n }",
"public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}",
"public GoodsSpecProduct(String alias) {\n this(DSL.name(alias), GOODS_SPEC_PRODUCT);\n }",
"public void setProductId(String productId) {\r\n\t\tthis.productId = productId;\r\n\t}",
"public static Product of(final Product template) {\n ProductImpl instance = new ProductImpl();\n instance.setId(template.getId());\n instance.setVersion(template.getVersion());\n instance.setCreatedAt(template.getCreatedAt());\n instance.setLastModifiedAt(template.getLastModifiedAt());\n instance.setLastModifiedBy(template.getLastModifiedBy());\n instance.setCreatedBy(template.getCreatedBy());\n instance.setKey(template.getKey());\n instance.setProductType(template.getProductType());\n instance.setMasterData(template.getMasterData());\n instance.setTaxCategory(template.getTaxCategory());\n instance.setState(template.getState());\n instance.setReviewRatingStatistics(template.getReviewRatingStatistics());\n instance.setPriceMode(template.getPriceMode());\n return instance;\n }",
"protected Product() {\n\t\t\n\t}",
"static MyProduct getMyProduct(String line) {\n // Assuming that the input data is 'valid', we can tokenize each line to three String literals.\n // These tokens correspond to product ID, units sold, and revenue.\n String[] tokens = line.split(\",\");\n MyProduct.Builder prodBuilder = MyProduct.newBuilder();\n\n // You can \"set\" the value of a field like this:\n prodBuilder.setId(tokens[0]);\n\n // You can chain multiple calls to setters, too.\n prodBuilder.setUnitsSold(Integer.parseInt(tokens[1])).setRevenue(Integer.parseInt(tokens[2]));\n\n // 'build()' will create a new object based on the values set in the builder object.\n return prodBuilder.build();\n }",
"public Product instantiateProduct (String prodId, String prodLocation) {\n\t\tif (productMap.containsKey(prodId)) {\n\t\t\tSystem.out.println(prodId+\" ERROR: product already exists @ \"+productMap.get(prodId).getLocation()+\" use restock to add more\" );\n\t\t\treturn productMap.get(prodId);\n\t\t} else {\n\t\t\tProduct temp = new Product (prodId, prodLocation);\n\t\t\tproductMap.put(prodId, temp);\n\t\t\treturn temp;\n\t\t}\n\t}",
"@Override\n\tpublic <T extends Product> T createProduct(Class<T> clazz) {\n\t\tT product = null;\n\t\t\n\t\ttry {\n\t\t\tproduct = clazz.newInstance();\n\t\t} catch (InstantiationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalAccessException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn (T) product;\n\t}",
"public Product Product() {\n return null;\n }"
] | [
"0.7775399",
"0.72027737",
"0.7008331",
"0.695978",
"0.69367063",
"0.688798",
"0.6874703",
"0.68267465",
"0.6703622",
"0.6682145",
"0.66445595",
"0.65733534",
"0.646821",
"0.6447546",
"0.64176756",
"0.63405293",
"0.62732214",
"0.6270016",
"0.6259648",
"0.62018687",
"0.61864585",
"0.6153016",
"0.6131099",
"0.6131099",
"0.6131099",
"0.61165917",
"0.6108892",
"0.6106619",
"0.6084264",
"0.6074396",
"0.60480124",
"0.6045351",
"0.603058",
"0.60223967",
"0.6009066",
"0.5990154",
"0.59704113",
"0.59256655",
"0.59148264",
"0.59082776",
"0.58955514",
"0.58844995",
"0.5880131",
"0.5868914",
"0.5860798",
"0.5860471",
"0.5860471",
"0.58504635",
"0.58480287",
"0.5847501",
"0.58212364",
"0.5798059",
"0.577811",
"0.5775547",
"0.577201",
"0.577201",
"0.5759761",
"0.5711181",
"0.57046556",
"0.56974965",
"0.56958854",
"0.56912684",
"0.56767976",
"0.5674142",
"0.5670917",
"0.56693625",
"0.5667847",
"0.56600434",
"0.56596524",
"0.5633746",
"0.56231517",
"0.560851",
"0.5593549",
"0.5587228",
"0.5583409",
"0.558269",
"0.5577281",
"0.5573576",
"0.5556235",
"0.5540647",
"0.5537612",
"0.5517337",
"0.54951435",
"0.5490205",
"0.54883456",
"0.54797363",
"0.5479716",
"0.54781646",
"0.5465676",
"0.54563236",
"0.54545057",
"0.5452866",
"0.545246",
"0.5452283",
"0.5429431",
"0.54164857",
"0.5413304",
"0.53938645",
"0.53841937",
"0.53837293"
] | 0.800225 | 0 |
Constructs a Product with a productName, the product's productQuantity and tags associated with the current product. | public Product(Name productName, int productQuantity, Set<Tag> productTags) {
this.productName = productName;
this.productQuantity = productQuantity;
this.productTags.addAll(productTags);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Product(Name productName, int productQuantity) {\n this.productName = productName;\n this.productQuantity = productQuantity;\n }",
"public Product(String name, double price, int quantity) {\r\n this.name = name;\r\n this.price = price;\r\n this.quantity = quantity;\r\n }",
"public Product(String productName, float price, int quantity, String supplierName, String supplierPhone) {\n this.productName = productName;\n mProductPrice = price;\n productQuantity = quantity;\n this.supplierName = supplierName;\n this.supplierPhone = supplierPhone;\n }",
"public Product(String name) {\n setName(name);\n setProductionNumber(currentProductionNumber);\n\n // Increment current production number in loop\n currentProductionNumber++;\n manufacturer = MANUFACTURER;\n manufacturedOn = new Date();\n }",
"public Product(Name productName, Set<Tag> productTags) {\n this.productName = productName;\n this.productQuantity = 0;\n this.productTags.addAll(productTags);\n }",
"public Product(String productName, double productPrice) {\n this.productName = productName;\n this.productPrice = productPrice;\n this.createDate = LocalDate.now();\n this.stockVolume = getStockNumber();\n }",
"public Product createProduct() {\n\t\tProduct prod = new Product();\n\t\tprod.setProdId(this.getProdId());\n\t\tprod.setProductName(this.getProductName());\n\t\tprod.setPrice(this.getPrice());\n\t\tprod.setStock(this.getStock());\n\t\tprod.setDescription(this.getDescription());\n\t\tprod.setImage(this.getImage());\n\t\tprod.setSellerId(this.getSellerId());\n\t\tprod.setCategory(this.getCategory());\n\t\tprod.setSubcategory(this.getSubcategory());\n\t\tprod.setProductrating(this.getProductrating());\n\t\treturn prod;\n\t}",
"public Product(String name, double price, int quantity) {\n\t\tthis.name=name;\n\t\tthis.price=price;\n\t\tthis.quantity=quantity;\n\t\t\n\t}",
"public Product(String name) {\n setProductionNumber(currentProductionNumber);\n this.name = name;\n this.serialNumber = currentProductionNumber;\n this.manufacturedOn = new java.util.Date();\n }",
"Product(String name, int quantity, double price, double totalCost) {\n this.name = name;\n this.quantity = quantity;\n this.price = price;\n this.totalCost = totalCost;\n }",
"public Product(String name, double price) {\r\n this.name = name;\r\n this.price = price;\r\n quantity = 0;\r\n }",
"public Product(int productId, String name, String description, float price) {\n setProductId(productId);\n setName(name);\n setDescription(description);\n setPrice(price);\n }",
"public Product() {\n\t\tthis.name = \"\";\n\t\tthis.price = 0;\n\t\tthis.quantity = 0;\n\t}",
"public Product()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.price = 0.0;\n\t\tthis.imported = false;\n\t\tthis.quantity = 0;\n\t\tthis.taxedCost = 0.0;\n\t}",
"public Product(int productID, String productName, double costPrice, double sellingPrice, String productDescription, int amountInStock, int minimumStock) {\r\n this.productID = productID;\r\n this.productName = productName;\r\n this.costPrice = costPrice;\r\n this.sellingPrice = sellingPrice;\r\n this.productDescription = productDescription;\r\n this.amountInStock = amountInStock;\r\n this.minimumStock = minimumStock;\r\n \r\n }",
"public CartProduct(int cartId, int uId, int cartQuantity, int pId, String pName, String pImage, double pPrice, int pWeight, String pDescription, int pQuantity, String pCreateDate) {\n this.cartId = cartId;\n this.uId = uId;\n this.cartQuantity = cartQuantity;\n this.pId = pId;\n this.pName = pName;\n this.pImage = pImage;\n this.pPrice = pPrice;\n this.pWeight = pWeight;\n this.pDescription = pDescription;\n this.pQuantity = pQuantity;\n this.pCreateDate = pCreateDate;\n }",
"public Product(String code, String name) {\n this.code = code;\n this.name = name;\n }",
"public Product(String name, double price, boolean imported, int quantity)\n\t{\n\t\tthis.name = name;\n\t\tthis.price = price * quantity;\n\t\tthis.imported = imported;\n\t\tthis.quantity = quantity;\n\t}",
"static public Product create(String name, String description, double price) {\n\t\t\n\t\tProduct p = new Product();\n\t\tp.name = name;\n\t\tp.description = description;\n\t\tp.price = price;\n\t\t\n\t\treturn p;\n\t}",
"OrderedProduct(int quantity, String prodCode, String prodName, int prodSize, String prodVariety,\n double prodPrice) {\n this.quantity = quantity;\n this.prodCode = prodCode;\n this.prodName = prodName;\n this.prodSize = prodSize;\n this.prodVariety = prodVariety;\n this.prodPrice = prodPrice;\n }",
"public Product(String name, int price, int photoId) {\n this.name = name;\n this.price = price;\n this.profileID = photoId;\n }",
"public Product(String categeory, String name, String description,int productSize, int packQuantity,\n double cost, double price, Business manufacturer) {\n this(categeory,name,description,packQuantity,cost,price,manufacturer);\n setProductSizeUnit(categeory); \n }",
"public Product(String name, int stock, double price, String color) {\n\t\tthis.name = name;\n\t\tthis.stock = stock;\n\t\tthis.price = price;\n\t\tthis.color = color;\n\t}",
"public Product(String id, String name, String description) {\n this.id = id;\n this.name = name;\n this.description = description;\n }",
"public Product(String productName, ProductCondition productCondition, String productCode, int stockLevel) {\n this.productName = productName;\n this.productCondition = productCondition;\n this.productCode = productCode;\n this.stockLevel = stockLevel;\n }",
"public Producto(String nombre, String descripcion, LocalDate fechaPubl, double pvp, Tag tagProducto, boolean stock,\n\t\t\tlong idProducto) {\n\t\tsuper();\n\t\tthis.nombre = nombre;\n\t\tthis.descripcion = descripcion;\n\t\tthis.fechaPubl = fechaPubl;\n\t\tthis.pvp = pvp;\n\t\tthis.tagProducto = tagProducto;\n\t\tthis.stock = stock;\n\t\tthis.idProducto = idProducto;\n\t}",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public Product(String ndbNumber, String productName, String manufacturer, String ingredients) {\n\t\tsuper();\n\t\tthis.ndbNumber = ndbNumber;\n\t\tthis.productName = productName;\n\t\tthis.manufacturer = manufacturer;\n\t\tthis.ingredients = ingredients;\n\t}",
"private Product getProduct(ProductVO product) {\n return Product.builder()\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }",
"public Product(String sku, String name, BigDecimal price) {\n\t\t\n\t\tif (sku == null || name == null || price == null) {\n\t\t\tthrow new IllegalArgumentException(\"Sku price and name are mandatory\");\n\t\t}\n\t\tthis.sku = sku;\n\t\tthis.name = name;\n\t\tthis.price = price;\t\t\t\n\t}",
"public Saving productName(String productName) {\n this.productName = productName;\n return this;\n }",
"public Product() {}",
"public Product build() {\n Product product = new Product();\n product.product_id = this.product_id;\n product.product_name = this.product_name;\n product.price = this.price;\n product.in_stock = this.in_stock;\n product.amount = this.amount;\n product.ordered_amount = this.ordered_amount;\n product.order_price = this.order_price;\n\n return product;\n }",
"public void setProductName(java.lang.String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\r\n this.productName = productName;\r\n }",
"public void setProductName(String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"public void setProductName(String productName) {\n\t\tthis.productName = productName;\n\t}",
"public StockItem(T product, Integer quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"public Product inputProduct() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Description:\");\n String dscrp = in.next();\n p.setName(dscrp);\n System.out.println(\"Price:\");\n double Price = in.nextDouble();\n p.setPrice(Price);\n System.out.println(\"Quantity:\");\n int Quantity = in.nextInt();\n p.setQuantity(Quantity);\n\n return new Product(p.getName(), p.getPrice(), p.getQuantity());\n }",
"public MobilePhones(String productId, String name, double price, int quantity) {\n\t\tsuper(productId, name, price, quantity);\n\n\t}",
"public Product() {\n\t}",
"public Product(Integer productCode, String description, Double price) {\n\t\tsuper();\n\t\tthis.productCode = productCode;\n\t\tthis.description = description;\n\t\tthis.price = price;\n\t}",
"public void createProduct(ProductData newProduct) {\n throw new UnsupportedOperationException();\n }",
"public void setProductName (java.lang.String productName) {\r\n\t\tthis.productName = productName;\r\n\t}",
"public Product() { }",
"public Product() { }",
"ProductInventory(Product pProduct)\n\t{\n\n\t\t// Initialize the Product Inventory Array List\n\t\tmyProductInventory = new ArrayList<Product>();\n\n\t\t// Add a user-defined Product to the inventory array\n\t\t// This Product object is placed in the first position\n\t\t// of the Product Inventory Array List\n\t\tthis.addProduct(pProduct);\n\n\t}",
"public static Result newProduct() {\n Form<models.Product> productForm = form(models.Product.class).bindFromRequest();\n if(productForm.hasErrors()) {\n return badRequest(\"Tag name cannot be 'tag'.\");\n }\n models.Product product = productForm.get();\n product.save();\n return ok(product.toString());\n }",
"public ProductTextFile() {\n\t\t\n\t\t\tProduct item = new Product();\n\t\t\titem.setDescription(\"South West Exploration\");\n\t\t\titem.setCode(\"SWE\");\n\t\t\titem.setPrice(49.50);\n\t\t\t\n\t\t\tproducts.add(item);\n\t\t\t\n\t\t\tProduct product = new Product();\n\t\t\tproduct.setDescription(\"All The Stars\");\n\t\t\tproduct.setCode(\"ATS\");\n\t\t\tproduct.setPrice(13.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\t\tProduct book = new Product();\n\t\t\tbook.setDescription(\"Who Moved My Cheese?\");\n\t\t\tbook.setCode(\"WMC\");\n\t\t\tbook.setPrice(10.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\n\t}",
"protected Product(Parcel in) {\r\n quantity = in.readInt();\r\n name = in.readString();\r\n checked = in.readByte() != 0;\r\n }",
"public Product() {\n }",
"public Product() {\n }",
"public Product(final LocalDateTime createdAt,final String name,final BigDecimal price,final Status status) {\r\n\t\tthis.name=name;\r\n\t\tthis.price=price;\r\n\t\tthis.status=status;\r\n\t\tthis.createdAt=createdAt;\r\n\t}",
"public Product(String name, float price) throws WrongProductNameException, WrongProductPriceValueException {\n\t\t\n\t\tsetName(name);\n\t\tsetPrice(price);\n\t\tweeklySoldItems = new ArrayList<Integer>();\n\t}",
"public static Product getProduct(String productCode) {\n\t\tProduct product2 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\tProduct product3 = new Product(productCode, \"Murach's MySQL\", 54.50);\r\n\t\tProduct product4 = new Product(productCode, \"Murach's python\", 57.50);\r\n\t\tProduct product5 = new Product(productCode, \"Murach's Java Programming\", 57.50);\r\n\r\n\t\t// you can also call product, and then pass in like so\r\n\t\tProduct product6;\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct6 = new Product(productCode, \"Murach's Java Servlets and JSP\", 57.50);\r\n\t\t}\r\n\r\n\t\t// create the Product object\r\n\t\t// then with your product instance you can call the methods to set your values\r\n\t\tProduct product = new Product();\r\n\t\t// fill the Product object with data\r\n\t\tproduct.setCode(productCode);\r\n\t\tif (productCode.equalsIgnoreCase(\"java\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Programming\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"jsp\")) {\r\n\t\t\tproduct.setDescription(\"Murach's Java Servlets and JSP\");\r\n\t\t\tproduct.setPrice(57.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"mysql\")) {\r\n\t\t\tproduct.setDescription(\"Murach's MySQL\");\r\n\t\t\tproduct.setPrice(54.50);\r\n\t\t} else if (productCode.equalsIgnoreCase(\"python\")) {\r\n\t\t\tproduct.setDescription(\"Murach's python\");\r\n\t\t\tproduct.setPrice(66.60);\r\n\t\t} else {\r\n\t\t\tproduct.setDescription(\"Unknown\");\r\n\t\t}\r\n\t\treturn product;\r\n\t}",
"public LineItem(Product product, int quantity) {\n this.product = product;\n this.quantity = quantity;\n }",
"public Order(String orderNumber, String productName, float price, int quantity) {\n\t\tthis.orderNumber = orderNumber;\n\t\tthis.productName = productName;\n\t\tthis.price = price;\n\t\tthis.quantity = quantity;\n\t}",
"public GoodsSpecProduct(Name alias) {\n this(alias, GOODS_SPEC_PRODUCT);\n }",
"private static void createProducts() {\n productRepository.addProduct(Product.builder()\n .name(\"Milk\")\n .barcode(new Barcode(\"5900017304007\"))\n .price(new BigDecimal(2.90))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Butter\")\n .barcode(new Barcode(\"5906217041483\"))\n .price(new BigDecimal(4.29))\n .build()\n );\n productRepository.addProduct(Product.builder()\n .name(\"Beer\")\n .barcode(new Barcode(\"5905927001114\"))\n .price(new BigDecimal(2.99))\n .build()\n );\n }",
"public Product loadProductFromId(int productId) {\n ResultSet rs = database.getProduct(productId);\n Product newProduct = null;\n\n try {\n if (rs.next()) {\n newProduct = new Product(rs.getString(\"name\"), rs.getString(\"description\"), rs.getString(\"type\"), new Money(rs.getString(\"price\")), productId, rs.getBoolean(\"currentlyselling\"));\n } else {\n throw new NoSuchProductException(productId);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n if (newProduct == null) {\n throw new NoSuchProductException(productId);\n }\n return newProduct;\n }",
"public Product selectProduct(String productName)\n {\n Product aProduct = new Product();\n for (int index = 0; index < listOfProduct.size(); index++)\n {\n if (productName.equals(listOfProduct.get(index).getProductName()))\n return listOfProduct.get(index);\n }\n return aProduct;\n }",
"public org.mrk.grpc.catalog.Product getProduct() {\n if (productBuilder_ == null) {\n return product_ == null ? org.mrk.grpc.catalog.Product.getDefaultInstance() : product_;\n } else {\n return productBuilder_.getMessage();\n }\n }",
"public Product(String name, Double price, Category... categories) {\n\t\tthis.name = name;\n\t\tthis.price = price;\n\t\tthis.categories = new HashSet<ProductCategory>();\n\t\tfor (Category category : categories) {\n\t\t\tProductCategoryId productCategoryId = new ProductCategoryId(this, category);\n\t\t\tProductCategory productCategory = new ProductCategory(productCategoryId, name, category.getName());\n\t\t\tthis.categories.add(productCategory);\n\t\t}\n\t}",
"public InventoryItem(String itemName, int sku, double price,int quantity) {\r\n this.itemName = itemName;\r\n this.sku = sku;\r\n this.setPrice(price);\r\n this.setQuantity(quantity);\r\n nItems++;\r\n }",
"private ProductVO getProductVO(Product product) {\n return ProductVO.builder()\n .created(product.getCreated())\n .updated(product.getUpdated())\n .id(product.getId())\n .description(product.getDescription())\n .name(product.getName())\n .price(product.getPrice())\n .stock(product.getStock())\n .build();\n }",
"@Transactional\n public HttpResult createProduct(String name, String quantity, String price, String description) {\n httpResultcreateProduct.setMessage(\"\");\n if (!name.isEmpty() || !quantity.isEmpty() || !price.isEmpty() || !description.isEmpty()) {\n if (!checkDigids(quantity) || !checkDigids(price)) {\n if (!checkDigids(quantity)) {\n httpResultcreateProduct.setMessage(\"Quantity may be only numbers\");\n logger.info(\"Quantity may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Quantity may be only numbers\");\n }\n }\n if (!checkDigids(price)) {\n if (httpResultcreateProduct.getMessage().length() > 1) {\n httpResultcreateProduct.setMessage(httpResultcreateProduct.getMessage() + \"\\n\" + \"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n } else {\n httpResultcreateProduct.setMessage(\"Price may be only numbers\");\n logger.info(\"Price may be only numbers\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Price may be only numbers\");\n }\n }\n }\n } else {\n int pructPrice = Integer.parseInt(price);\n int productQuantity = Integer.parseInt(quantity);\n product = new Product(description, pructPrice, name, productQuantity);\n httpResultcreateProduct.setData(product);\n }\n } else {\n httpResultcreateProduct.setMessage(\"Please don't leave empty fields\");\n logger.info(\"Please don't leave empty fields\");\n if (logger.isDebugEnabled()) {\n logger.debug(\"Please don't leave empty fields\");\n }\n }\n return httpResultcreateProduct;\n }",
"public void setProductName(final String productName);",
"public Order(int id, String orderNumber, String productName, float price, int quantity) {\n\t\tthis.id = id;\n\t\tthis.orderNumber = orderNumber;\n\t\tthis.productName = productName;\n\t\tthis.price = price;\n\t\tthis.quantity = quantity;\n\t}",
"private static Product getProduct(Element e) {\n\t\tNodeList children = e.getChildNodes();\n\n\t\tElement descriptionElement = (Element) children.item(1);\n\t\tText descriptionText = (Text) descriptionElement.getFirstChild();\n\t\tString description = descriptionText.getData();\n\n\t\tElement priceElement = (Element) children.item(1);\n\t\tText priceText = (Text) priceElement.getFirstChild();\n\t\tdouble price = Double.parseDouble(priceText.getData());\n\n\t\treturn new Product(description, price);\n\t}",
"@Override\r\n public void getProduct() {\r\n\r\n InventoryList.add(new Product(\"Prod1\", \"Shirt\", \"Each\", 10.0, LocalDate.of(2021,03,19)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,21)));\r\n InventoryList.add(new Product(\"Prod1\", \"Trousers\", \"Each\", 20.0, LocalDate.of(2021,03,29)));\r\n }",
"public Product(){\n // Default constructor required for calls to DataSnapshot.getValue(Product.class)\n }",
"public Product(int id, String name, double price, int stock, int min, int max) {\n this.id = id;\n this.name = name;\n this.price = price;\n this.stock = stock;\n this.min = min;\n this.max = max;\n }",
"protected Product() {\n\t\t\n\t}",
"public Builder setProduct(org.mrk.grpc.catalog.Product value) {\n if (productBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n product_ = value;\n onChanged();\n } else {\n productBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public static ProductFragment newInstance(long productId) {\n Bundle args = new Bundle();\n args.putLong(PRODUCT_ID, productId);\n ProductFragment fragment = new ProductFragment();\n fragment.setArguments(args);\n return fragment;\n }",
"public org.mrk.grpc.catalog.ProductOrBuilder getProductOrBuilder() {\n if (productBuilder_ != null) {\n return productBuilder_.getMessageOrBuilder();\n } else {\n return product_ == null ?\n org.mrk.grpc.catalog.Product.getDefaultInstance() : product_;\n }\n }",
"public DocumentLifecycleWorkflowRequest setProductName(String productName) {\n\t\tthis.productName = productName;\n\t\treturn this;\n\t}",
"public void defineProduct(String name,\r\n\t\t\t\t\t\t\t\t double calories,\r\n\t\t\t\t\t\t\t\t double proteins,\r\n\t\t\t\t\t\t\t\t double carbs,\r\n\t\t\t\t\t\t\t\t double fat){\r\n\t\tproducts.add(new Material(name,calories,proteins,carbs,fat,false));\r\n\t}",
"public ProductType(String name, String spacecraft, String sensor,\n String description, String level)\n {\n this.name = name;\n this.spacecraft = spacecraft.toUpperCase();\n this.sensor = sensor;\n this.description = description;\n this.level = level;\n }",
"@Override\n public Product apply(ProductDto productDto) {\n\n return new Product(productDto.getId(), productDto.getName(), productDto.getBrand(), productDto.getGender(), productDto.getCategory(), productDto.getSize(), productDto.getPrice(), productDto.getColour(),\n productDto.getQuantity(), productDto.getDesc(), productDto.getPicture());\n\n\n }",
"private GeneProduct createGeneProduct( Gene gene ) {\n GeneProduct geneProduct = GeneProduct.Factory.newInstance();\n geneProduct.setGene( gene );\n geneProduct.setName( gene.getName() );\n geneProduct.setDescription( \"Gene product placeholder\" );\n return geneProduct;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + categoryId + \", supplierId=\" + supplierId + \", brandId=\" + brandId + \", typeId=\"\r\n\t\t\t\t+ typeId + \", purchases=\" + purchases + \", views=\" + views + \"]\";\r\n\t}",
"public SuperProduct() {\n\t\tsuper();\n\t}",
"public void setItemName(String product) {\n itemName = product;\n }",
"Product getProductByProductName(String productName);",
"public addproduct() {\n\t\tsuper();\n\t}",
"protected Product()\n\t{\n\t}",
"public GoodsSpecProduct() {\n this(DSL.name(\"b2c_goods_spec_product\"), null);\n }",
"public static SingleProductDescrFragment newInstance(String name, String price, String weight, Integer quantity) {\n SingleProductDescrFragment fragment = new SingleProductDescrFragment();\n //storeNFCData(result);\n fragment.name = name;\n fragment.price = price;\n fragment.weight = weight;\n fragment.quantity = quantity;\n return fragment;\n\n }",
"public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }",
"public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}",
"public ProductImp() {\n insert(new Product(\"hammer\", 9.99));\n insert(new Product(\"screwdriver\", 9.99));\n insert(new Product(\"drill\", 19.99));\n }",
"public void setProductId(String productId) {\n this.productId = productId;\n }",
"protected final Product getProduct() {\n Product.Builder product = new Product.Builder()\n .implementationTitle(getClass())\n .implementationVersion(getClass());\n Optional.ofNullable(getClass().getPackage())\n .flatMap(p -> Optional.ofNullable(p.getSpecificationVersion()))\n .map(specVersion -> \"(specification \" + specVersion + \")\")\n .ifPresent(product::comment);\n return product.build();\n }",
"public Product Product() {\n return null;\n }",
"void create(Product product) throws IllegalArgumentException;",
"public static Product generateProduct()\n {\n Random r = new Random();\n Product p = new Product();\n String [] itemName = {\"Cool Hat\" , \"Cool Watch\" , \"Cool Necklace\", \"Black Lipstick\" , \"Red LipStick\" ,\n \"Black Eyeliner\" , \"Blue Shirt\" , \"Blue Jeans\" , \"Black Dress\" , \"Red Bag\" ,\n \"White Bag\" , \"Yellow Bag\" , \"Cool Flip Flops\", \"Cool Shoes\" , \"Cool Heels\" ,\n \"Cool Blender\" , \"Cool Mixer\" , \"Cool Juicer\" };\n p.productID = 1 + r.nextInt(6);\n\n if( p.productID == 1){\n p.productName = itemName[r.nextInt(3)];\n p.productType = (\"Accessory\");\n p.productSize = 1;\n }\n if( p.productID == 2) {\n p.productName = itemName[3 + r.nextInt(3)];\n p.productType = (\"Beauty\");\n p.productSize = 2;\n }\n if( p.productID == 3) {\n p.productName = itemName[6 + r.nextInt(3)];\n p.productType = (\"Clothes\");\n p.productSize = 2;\n }\n if( p.productID == 4){\n p.productName = itemName[9 + r.nextInt(3)];\n p.productType = (\"Bags\");\n p.productSize = 3;\n }\n if( p.productID == 5){\n p.productName = itemName[12 + r.nextInt(3)];\n p.productType = (\"Shoes\");\n p.productSize = 3;\n }\n if( p.productID == 6) {\n p.productName = itemName[15 + r.nextInt(3)];\n p.productType = (\"Housewares\");\n p.productSize = 5;\n }\n\n p.productSku = 1000000 + r.nextInt(9999999);\n\n\n\n\n return p;\n }",
"public InventoryItem(String itemName, int sku, double price) {\r\n this.itemName = itemName;\r\n this.sku = sku;\r\n this.setPrice(price);\r\n this.quantity = 0;\r\n nItems++;\r\n }"
] | [
"0.80731314",
"0.77170885",
"0.77021843",
"0.76564646",
"0.7644744",
"0.76249516",
"0.7524072",
"0.75037783",
"0.74687433",
"0.73360175",
"0.73107785",
"0.719176",
"0.71906227",
"0.7032473",
"0.6898218",
"0.6881494",
"0.6801689",
"0.6790597",
"0.67297816",
"0.6728041",
"0.6708279",
"0.662547",
"0.65628517",
"0.6562365",
"0.65587217",
"0.6467835",
"0.64641",
"0.64641",
"0.64641",
"0.64544374",
"0.6428228",
"0.64277893",
"0.6422303",
"0.64196724",
"0.6410688",
"0.63835686",
"0.6380404",
"0.6354347",
"0.63422173",
"0.62964576",
"0.62544245",
"0.6249216",
"0.62416315",
"0.6227079",
"0.6221444",
"0.621287",
"0.62099",
"0.62099",
"0.6190719",
"0.6185168",
"0.6171254",
"0.61503625",
"0.61429423",
"0.61429423",
"0.61287826",
"0.61112636",
"0.6049151",
"0.603353",
"0.60071844",
"0.59895396",
"0.59843856",
"0.59833384",
"0.5980946",
"0.59735894",
"0.5972731",
"0.5949389",
"0.59423053",
"0.5940156",
"0.5938668",
"0.5921729",
"0.59200096",
"0.5918319",
"0.5918043",
"0.5916277",
"0.5912736",
"0.5910145",
"0.5909856",
"0.5898396",
"0.5887173",
"0.58856255",
"0.5861213",
"0.5849399",
"0.5842213",
"0.5839564",
"0.5830634",
"0.58305746",
"0.5830307",
"0.58268416",
"0.58265674",
"0.5825531",
"0.5807341",
"0.5805971",
"0.58032286",
"0.58002883",
"0.5797681",
"0.5789965",
"0.5783951",
"0.5779533",
"0.577916",
"0.57542425"
] | 0.79641384 | 1 |
Compares if two products are equal by checking if they have the same product name. | @Override
public boolean equals(Object other) {
return other == this // short circuit if same object
|| (other instanceof Product // instanceof handles nulls
&& productName.equals(((Product) other).productName)); // state check
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tif(obj instanceof Product) {\n\t\tProduct newProduct = (Product)obj;\n\t\t return this.getSKU() == newProduct.getSKU() ;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}",
"public void productName_Comparision_MiniCart() {\n UtilityHelper.miniCart_CompareListString();\n }",
"public synchronized void verifyActualProdTitle(String productName) {\n\t\ttry {\n\t\t\tWebActionUtil.waitForElement(actualProdTitle, \"cart product title\", 30);\n\t\t\tString actProdTitle= actualProdTitle.getAttribute(\"value\");\n\t\t\tif(productName.equals(actProdTitle))\n\t\t\t{\n\t\t\t\tWebActionUtil.info(\"Product title is verified\");\n\t\t\t}\n\t\t}\n\t\t catch (Exception e) \n\t\t{\n\t\t\t WebActionUtil.error(e.getMessage());\n\t\t\tWebActionUtil.error(\"Unable to verify actual title of the product\");\n\t\t\tAssert.fail(\"Unable to verify actual title of the product\");\n\t\t}\n\t}",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n LitemallProduct other = (LitemallProduct) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getGoodsId() == null ? other.getGoodsId() == null : this.getGoodsId().equals(other.getGoodsId()))\n && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))\n && (this.getSeriesId() == null ? other.getSeriesId() == null : this.getSeriesId().equals(other.getSeriesId()))\n && (this.getBrandId() == null ? other.getBrandId() == null : this.getBrandId().equals(other.getBrandId()))\n && (Arrays.equals(this.getGallery(), other.getGallery()))\n && (this.getKeywords() == null ? other.getKeywords() == null : this.getKeywords().equals(other.getKeywords()))\n && (this.getBrief() == null ? other.getBrief() == null : this.getBrief().equals(other.getBrief()))\n && (this.getSortOrder() == null ? other.getSortOrder() == null : this.getSortOrder().equals(other.getSortOrder()))\n && (this.getPicUrl() == null ? other.getPicUrl() == null : this.getPicUrl().equals(other.getPicUrl()))\n && (this.getBuyLink() == null ? other.getBuyLink() == null : this.getBuyLink().equals(other.getBuyLink()))\n && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))\n && (this.getDetail() == null ? other.getDetail() == null : this.getDetail().equals(other.getDetail()));\n }",
"@Override\n public boolean equals(Object other) {\n if (this == other) {\n return true;\n }\n if (other == null || getClass() != other.getClass()) {\n return false;\n }\n StockItem<?> stockItem = (StockItem<?>) other;\n return product.equals(stockItem.product);\n }",
"@Step\n public void verifyToProductListAreEquals(List<CartProduct> expectedProducts,List<CartProduct> actualProducts ){\n\n for (CartProduct expectedProduct: expectedProducts) {\n CartProduct actualProduct = findProductInList(expectedProduct, actualProducts);\n Assert.assertTrue(\"Prices are not correct\",expectedProduct.getPrice() == actualProduct.getPrice());\n Assert.assertTrue(\"Sizes are not correct\",expectedProduct.getSize() == actualProduct.getSize());\n Assert.assertTrue(\"Names are not correct\",expectedProduct.getName() == actualProduct.getName());\n Assert.assertTrue(\"Colors are not correct\",expectedProduct.getColor() == actualProduct.getColor());\n Assert.assertTrue(\"Qty are not correct\",expectedProduct.getQty() == actualProduct.getQty());\n }\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Product)) {\r\n return false;\r\n }\r\n Product other = (Product) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n public void addProductsToCompareListTest() {\n YandexMarketHomePage homePage = new YandexMarketHomePage(driver);\n homePage.open();\n\n // 2. Select category of products\n homePage.selectCategory(\"Электроника\");\n\n // 3. Select subcategory of products\n new YandexMarketCategoryPage(driver).selectCatalogItemPage(\"Смартфоны\");\n\n // 4. Add products to compare list\n YandexMarketCatalogItemPage catalogItemPage = new YandexMarketCatalogItemPage(driver);\n String product1 = catalogItemPage.addProductToCompare(1);\n String product2 = catalogItemPage.addProductToCompare(2);\n\n List<String> expectedProductTitleList = new ArrayList<>();\n expectedProductTitleList.add(product1);\n expectedProductTitleList.add(product2);\n\n // 5. Click compare button\n catalogItemPage.clickCompareButton();\n\n // 6. Check that only added product names displayed on the page\n List<String> actualProductTitleList = new YandexMarketCompareProductPage(driver)\n .getProductNames();\n\n assertThat(actualProductTitleList)\n .as(\"Incorrect products was added to compare\")\n .containsExactlyInAnyOrderElementsOf(expectedProductTitleList);\n }",
"@Override\r\n public boolean equals(Object other) {\r\n return (other instanceof Product) && (id != null)\r\n ? id.equals(((Product) other).id)\r\n : (other == this);\r\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n Product product = (Product) o;\n return Objects.equals(id, product.id) &&\n Objects.equals(name, product.name) &&\n Objects.equals(price, product.price) &&\n Objects.equals(description, product.description) &&\n Objects.equals(gallery, product.gallery) &&\n Objects.equals(orders, product.orders) &&\n Objects.equals(animalCategories, product.animalCategories);\n }",
"public String getProductToCompare() {\n return mProductToCompare;\n }",
"public static boolean namesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n if (normalizer.isDelimited(defaultRule, name1)) {\n if (!Objects.equals(name1, name2)) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(name1, name2)) {\n return false;\n }\n }\n return true;\n }",
"@Test\n public void equals_returnsTrueIfNameIsTheSame_false() {\n Animal firstAnimal = new Animal(\"Deer\");\n Animal anotherAnimal = new Animal(\"Deer\");\n assertTrue(firstAnimal.equals(anotherAnimal));\n }",
"public static boolean fullNamesEqual(String name1, String name2) {\n if (StringUtil.isEmpty(name1) && StringUtil.isEmpty(name2)) {\n return true;\n }\n // Split multi-part names into individual components and compare\n // each component. If delimited, do case compare.\n String[] names1 = normalizer.splitName(defaultRule, name1);\n String[] names2 = normalizer.splitName(defaultRule, name2);\n if (names1.length != names2.length) {\n return false;\n }\n for (int i = 0; i < names1.length; i++) {\n if (normalizer.isDelimited(defaultRule, names1[i])) {\n if (!Objects.equals(names1[i],names2[i])) {\n return false;\n }\n } else {\n if (!StringUtil.equalsIgnoreCase(names1[i],names2[i])) {\n return false;\n }\n }\n }\n return true;\n }",
"@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof Product))\n {\n return false;\n }\n Product other = (Product) object;\n if ((this.productCode == null && other.productCode != null) || (this.productCode != null && !this.productCode.equals(other.productCode)))\n {\n return false;\n }\n return true;\n }",
"public final void testDifferentNameEquals() {\n assertFalse(testTransaction1.equals(testTransaction2)); // pmd doesn't\n // like either\n // way\n }",
"@Override\n public boolean equals(Object obj) {\n if (this == obj)\n return true;\n if (obj == null)\n return false;\n if (getClass() != obj.getClass())\n return false;\n Product other = (Product) obj;\n if (id != other.getId()) {\n \treturn false; \t\n }\n return true;\n }",
"@Test\n public void testGetProductsByName() throws Exception {\n System.out.println(\"getProductsByName\");\n for (Product p : products) {\n prs = dao.getProductsByName(p.getName());\n assertTrue(prs.size() == 1);\n assertTrue(prs.contains(p));\n \n }\n prs = dao.getProductsByName(nonExisten.getName());\n assertTrue(prs.isEmpty());\n }",
"@Test\n public void equals_differentName() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Foo Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Bar Site\"\n );\n\n Assert.assertNotEquals(si1, si2);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof TbProduct)) {\n return false;\n }\n TbProduct other = (TbProduct) object;\n if ((this.productID == null && other.productID != null) || (this.productID != null && !this.productID.equals(other.productID))) {\n return false;\n }\n return true;\n }",
"public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Products)) {\n return false;\n }\n Products other = (Products) object;\n if ((this.code == null && other.code != null) || (this.code != null && !this.code.equals(other.code))) {\n return false;\n }\n return true;\n }",
"public int compareTo(Product p) {\n /**\n * This will sort objects of projects by their field \"name\"\n * Since the objects we make in program are AudioPlayer and MoviePlayer I have them call this method\n * to sort the elements.\n * This method return an Int because the result of a compareTo is either a -1,0,1\n * -1, if first string is lower lexicographic than the second., 0 if equal And 1 if first is greater.\n *\n * Also instead of using the default Object o, we can use Product p in parameter since I Product objects are send here.\n */\n return name.compareTo(p.getName());\n //Returns 1 if name Greater than p.getName\n //Return 0 is both are equal\n //Return -1 if name is lessThan p.getName\n\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Product)) {\r\n return false;\r\n }\r\n Product other = (Product) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean equalProps(InstanceProperties props) {\n String propsName = props.getString(PROPERTY_NAME, null);\n return propsName != null\n ? propsName.equals(name)\n : name == null;\n }",
"public boolean FindProduct(String productName)\r\n {\r\n boolean isSuccess = false;\r\n for (int i = 0; i < productArrayList.size(); i++)\r\n {\r\n if (productName.equals(productArrayList.get(i).getName())) {\r\n // success\r\n isSuccess = true;\r\n break;\r\n }\r\n }\r\n\r\n return isSuccess;\r\n }",
"@Test\n public void testUpdateWithDifferentExistingNameShouldFail() {\n when(repository().queryByPredicates(any(Predicate.class))).thenAnswer(env -> productMockSecond);\n\n // when\n org.jboss.pnc.dto.Product productUpdate = org.jboss.pnc.dto.Product.builder()\n .id(productMock.getId().toString())\n .name(productMockSecond.getName())\n .abbreviation(productMock.getAbbreviation())\n .description(productMock.getDescription())\n .build();\n\n assertThatThrownBy(() -> provider.update(productMock.getId().toString(), productUpdate))\n .isInstanceOf(ConflictedEntryException.class);\n\n }",
"private static boolean equalityTest3(String a, String b)\n {\n return System.identityHashCode(a) == System.identityHashCode(b);\n }",
"@Test\n public void TestABBACBBABABBACBBAB() {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n try {\n int totalPrice = supermarket.checkout(\"ABBACBBABABBACBBAB\");\n assertEquals(\"Total prices does not equal.\", new Integer(480), new Integer(totalPrice));\n }\n catch (Exception e)\n {\n fail(e.getMessage());\n }\n }",
"public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}",
"private void testNameAndValue(String resultFromRPCServer , String nameOfProduct, int valueForOrder){\n if(resultFromRPCServer.contains(nameOfProduct)){\n System.out.println(\"Name of Product is same\");\n }else{\n System.out.println(\"Name of Product is not same\");\n }\n\n if(resultFromRPCServer.contains(\"\"+ valueForOrder)){\n System.out.println(\"Value of Product is equal\");\n }else{\n System.out.println(\"Value of Product is not equal\");\n }\n\n\n }",
"@Test\n public void equals_SameBuyQuery_Test() {\n Assert.assertTrue(bq1.equals(bq0));\n }",
"private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }",
"@Test(priority =1)\n\tpublic void userAddProductsToCompareList() {\n\t\tsearch = new SearchPage(driver);\n\t\tproductDetails = new ProductDetailsPage(driver);\n\t\tcompare = new AddToCompareListPage(driver);\n\n\t\tsearch.searchUsingAutoCompleteList(\"niko\");\n\t\tassertTrue(productDetails.productNameInBreadCrumb.getText().equalsIgnoreCase(firstProductName));\n\t\tproductDetails.addToCompareList();\n\t\t\n\t\tsearch.searchUsingAutoCompleteList(\"leic\");\n\t\tproductDetails = new ProductDetailsPage(driver);\n\t\tassertTrue(productDetails.productNameInBreadCrumb.getText().equalsIgnoreCase(secondProductName));\n\t\tproductDetails.addToCompareList();\n\t\tproductDetails.openProductComparisonPage();\n\t\tcompare.compareProducts();\n\n\t}",
"public void setProductToCompare(String productId) {\n mProductToCompare = productId;\n if (isLoggingDebug())\n logDebug(\"ProductToCompare:\" + productId);\n }",
"public void isProductAvailable(String productName) {\n\n\t\tString text = WebUtility.getText(Locators.getLocators(\"loc.text.productNameAfterSearch\"));\n\t\tSystem.out.println(text);\n\t\tAssert.assertEquals(text, productName, \"product is not present\");\n\n\t}",
"@Test\n public void TestABC() {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n try {\n int totalPrice = supermarket.checkout(\"ABC\");\n assertEquals(\"Total prices are not equal.\", new Integer(100), new Integer(totalPrice));\n }\n catch (Exception e)\n {\n fail(e.getMessage());\n }\n }",
"@Test\n\tpublic void equalsSimilarObjects() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tboolean equals = key1.equals(key2);\n\t\tSystem.out.println();\n\t\tAssert.assertTrue(equals);\n\t}",
"@Test\n public void TestABBACBBAB() {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n try {\n int totalPrice = supermarket.checkout(\"ABBACBBAB\");\n assertEquals(\"Total prices does not equal.\", new Integer(240), new Integer(totalPrice));\n }\n catch (Exception e)\n {\n fail(e.getMessage());\n }\n }",
"public static void main(String[] args) {\n Customer u1= new Customer(\"Smith\",\"John\",\"2323\",\"wp@pl\");\n Customer u2= new Customer(\"Smith\",\"John\",\"23211\",\"wp@pl\");\n if(u1.equals(u2)){\n System.out.println(\"Sa rowni \");\n\n }else {\n System.out.println(\"niew sa rowni\");\n }\n }",
"boolean hasSameAs();",
"boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic int compare(Product p1, Product p2) {\n\t\t\n\t\treturn p2.getReviewCount()*p2.getSaleCount()-p1.getReviewCount()*p1.getSaleCount();\n\t}",
"@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }",
"public boolean DEBUG_compare(Alphabet other) {\n System.out.println(\"now comparing the alphabets this with other:\\n\"+this+\"\\n\"+other);\n boolean sameSlexic = true;\n for (String s : other.slexic.keySet()) {\n if (!slexic.containsKey(s)) {\n sameSlexic = false;\n break;\n }\n if (!slexic.get(s).equals(other.slexic.get(s))) {\n sameSlexic = false;\n break;\n }\n slexic.remove(s);\n }\n System.out.println(\"the slexic attributes are the same : \" + sameSlexic);\n boolean sameSlexicinv = true;\n for (int i = 0, limit = other.slexicinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = slexicinv.size() + i; j < limit2; j++) {\n int k = j % slexicinv.size();\n if (other.slexicinv.get(i).equals(slexicinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSlexicinv = false;\n break;\n }\n\n }\n boolean sameSpair = true;\n System.out.println(\"the slexicinv attributes are the same : \" + sameSlexicinv);\n for (IntegerPair p : other.spair.keySet()) {\n if(!spair.containsKey(p)) {\n //if (!containsKey(spair, p)) {\n sameSpair = false;\n break;\n }\n //if (!(get(spair, p).equals(get(a.spair, p)))) {\n if (!spair.get(p).equals(other.spair.get(p))) {\n sameSpair = false;\n break;\n }\n }\n System.out.println(\"the spair attributes are the same : \" + sameSpair);\n boolean sameSpairinv = true;\n for (int i = 0, limit = other.spairinv.size(); i < limit; i++) {\n boolean temp = false;\n for (int j = i, limit2 = spairinv.size() + i; j < limit2; j++) {\n int k = j % spairinv.size();\n if (other.spairinv.get(i).equals(spairinv.get(k))) {\n temp = true;\n break;\n }\n }\n if (!temp) {\n sameSpairinv = false;\n break;\n }\n }\n System.out.println(\"the spairinv attributes are the same : \" + sameSpairinv);\n return (sameSpairinv && sameSpair && sameSlexic && sameSlexicinv);\n }",
"public boolean isNameEquals(String name) {\n\n return (_name.equalsIgnoreCase(name));//Checks not case sensitive\n }",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n BallPackProduct other = (BallPackProduct) that;\n return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))\n && (this.getValueId() == null ? other.getValueId() == null : this.getValueId().equals(other.getValueId()))\n && (this.getAddTime() == null ? other.getAddTime() == null : this.getAddTime().equals(other.getAddTime()))\n && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))\n && (this.getDeleted() == null ? other.getDeleted() == null : this.getDeleted().equals(other.getDeleted()))\n && (this.getReason() == null ? other.getReason() == null : this.getReason().equals(other.getReason()))\n && (this.getBallPackId() == null ? other.getBallPackId() == null : this.getBallPackId().equals(other.getBallPackId()));\n }",
"private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }",
"public static void main(String[] args) {\n Pair first = new Pair(\"Pesho\", \"Gosho\");\r\n Pair second = new Pair(\"Pesho\", \"Gosho\");\r\n Pair third = new Pair(\"Pesho\", \"Mariika\");\r\n \r\n System.out.println(first.equals(second));\r\n System.out.println(first.equals(third));\r\n }",
"@Test(priority = 2)\r\n\tpublic void verify_ProductName() throws InterruptedException {\r\n\t\tAssert.assertEquals(DetailPage.getProduct_name(), DetailPage.strName, \"Product name is different selected one\");\r\n\t}",
"@Test\n public void equals_DifferentPriceCents_Test() {\n Assert.assertFalse(bq1.equals(bq5));\n }",
"@Test\n public void testEquals_2()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n Object obj = new Project();\n\n boolean result = fixture.equals(obj);\n\n assertEquals(true, result);\n }",
"@Test\n public void equalsWithDifferentName() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"key1\");\n AttributeKey<Number> key2 = new AttributeKey<Number>(Number.class, \"key2\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }",
"@Test\n @Then(\"Search made and name verified\")\n public void s15_CheckFoundItem(){\n searchByNameHP.submit();\n foundNameHP = driver.findElementByClassName(\"n-product-title\").findElement(By.tagName(\"H1\")).getText();\n if (checkFirstHP.equals(foundNameHP)) {\n System.out.println(\"Step15 PASSED, names are equal\");\n }\n else\n {\n System.out.println(\"Step15 FAILED, names are not equal\");\n }\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Producto)) {\r\n return false;\r\n }\r\n Producto other = (Producto) object;\r\n if ((this.idProducto == null && other.idProducto != null) || (this.idProducto != null && !this.idProducto.equals(other.idProducto))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Producto)) {\n return false;\n }\n Producto other = (Producto) object;\n if ((this.codpro == null && other.codpro != null) || (this.codpro != null && !this.codpro.equals(other.codpro))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void compareToReturnsAPositiveNumberWhenUnitWithSameSymbolButSmallerNameIsProvided() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tunit.setName(\"b\");\n\t\tDummyUnit otherUnit = new DummyUnit(SYMBOL);\n\t\totherUnit.setName(\"a\");\n\t\tassertTrue(unit.compareTo(otherUnit) > 0);\n\t}",
"private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\r\n\t\tboolean flag = false;\r\n\t\tif (obj != null && obj instanceof Producto) {\r\n\t\t\tif(((Producto)obj).getID() == getID()) {\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"boolean equal(String s1, String s2) {\n return compareStrings(s1, s2) == 0;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n if (!super.equals(o)) return false;\n Order order = (Order) o;\n return quantity == order.quantity &&\n userId == order.userId &&\n Objects.equals(product, order.product);\n }",
"private boolean compareProperties (Properties props1 , Properties props2){\n boolean propertiesAreEqual = true;\n Properties props2Clone = (Properties)props2.clone();\n Iterator<Object> itProps1Name = props1.keySet().iterator();\n while (propertiesAreEqual && itProps1Name.hasNext()){\n String propertyName = (String)itProps1Name.next();\n if (props2Clone.containsKey(propertyName)){\n propertiesAreEqual = props1.getProperty(propertyName).trim()\n .equals(props2Clone.getProperty(propertyName).trim());\n // Remove checked property from props2Clone properties\n props2Clone.remove(propertyName);\n }\n else{\n propertiesAreEqual = false;\n }\n }\n // If there are left properties in CSS file then files are not equal\n if (props2Clone.size() > 0){\n propertiesAreEqual = false;\n }\n \n return propertiesAreEqual;\n \n }",
"public void compareShoppingCartToReOrderItems() {\n UtilityHelper.compareShoppingCartToReOrderItems();\n }",
"@Test\n public void verifyAppleOfferApplied() {\n \tProduct product = new Product(\"Apple\", 0.2);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 5);\n \tassertTrue(\"Have to get the price of 3 items = 0.6 ==> \", \n \t\t\tDouble.compare(calculator.calculatePrice(basket), 0.6) == 0);\n }",
"@Test\n public void testEditProduct() throws Exception {\n System.out.println(\"editProduct\");\n Product p;\n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n p = prs.get(0);\n String nameNew = \"newName\", nameOld = p.getName();\n p.setName(nameNew);\n dao.editProduct(p);\n \n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.isEmpty());\n prs = dao.getProductsByName(nameNew);\n assertTrue(prs.contains(p));\n assertTrue(prs.size() == 1);\n p.setName(nameOld);\n dao.editProduct(p);\n \n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n prs = dao.getProductsByName(nameNew);\n assertTrue(prs.isEmpty());\n }",
"@Test\n\tpublic void compareToReturnsZeroWhenUnitWithSameSymbolAndNameIsProvided() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tunit.setName(NAME);\n\t\tDummyUnit otherUnit = new DummyUnit(SYMBOL);\n\t\totherUnit.setName(NAME);\n\t\tassertEquals(0, unit.compareTo(otherUnit));\n\t}",
"private boolean equals(String str1, String str2)\n\t{\n\t\tif (str1.length() != str2.length()) // Easiest to check is if they are the same to potentially avoid running remaining code\n\t\t\treturn false;\n\t\tfor(int i = 0; i < str1.length(); i++)\n\t\t{\n\t\t\tif (str1.charAt(i) != str2.charAt(i)) // If at any point one char is not equal to the same char at a given index then they are disimilar\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true; // If no discrepancies are found then the strings must be equal\n\t}",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Producto)) {\n return false;\n }\n return id != null && id.equals(((Producto) o).id);\n }",
"@Test // This test will pass\n public void testIfCompanyNameIsEquals(){\n String expected = \"Amazon\";\n String actual = \"Amazon\";\n\n assertEquals(expected, actual);\n }",
"public static void testComparing() {\n System.out.println(\"\\nTEST ASSIGNING\");\n System.out.println(\"==============\");\n int i = 20;\n int j = 20;\n\n if(i == j) {\n System.out.println(\"i and j are equal\");\n }\n\n String JPY = new String(\"JPY\");\n String YEN = new String(\"JPY\");\n\n if(JPY == YEN) {\n System.out.println(\"JPY and YEN are same\"); //This line is not printed\n }\n\n if(JPY.equals(YEN)) {\n //you should always use equals() method to compare reference types.\n System.out.println(\"JPY and YEN are equal by equals()\");\n }\n }",
"public static void main(String[] args) {\n\t\tStock company1 = new Stock(\"XYZ\", 47.69);\n\t\t\n\t\tStock company2 = new Stock(\"XYZ\", 47.69);\n\t\t\n\t\t// create 2 instances of the Stock class with different contents\n\t\tStock company3 = new Stock(\"ABC\", 14.88);\n\t\t\n\t\tStock company4 = new Stock(\"abc\", 88.14);\n\t\t\n\t\t// compare the contents of company1 & company2\n\t\tif(company1.equals(company2)) {\n\t\t\tSystem.out.println(\"\\nthe contents in the 2 instances, referenced by company1 & company2, are identical\");\n\t\t}else {\n\t\t\tSystem.out.println(\"\\nthe contents in the 2 instances, referenced by company1 & company2, are NOT identical\");\n\t\t}\n\t\t\n\t\t// compare the contents of company3 & company4\n\t\tif(company3.equals(company4)) {\n\t\t\tSystem.out.println(\"\\nthe contents in the 2 instances, referenced by company3 & company4, are identical\");\n\t\t}else {\n\t\t\tSystem.out.println(\"\\nthe contents in the 2 instances, referenced by company3 & company4, are NOT identical\");\n\t\t}\n\t}",
"@Test\n public void testFindProduct() {\n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n \n assertTrue(instance.findProduct(\"Galletas\"));\n }",
"public ObservableList<Product> lookupProduct(String productName) {\n ObservableList<Product> namedProducts = FXCollections.observableArrayList();\n for ( Product product : allProducts ) {\n if(product.getName().toLowerCase().contains(productName.toLowerCase())) {\n namedProducts.add(product);\n }\n }\n return namedProducts;\n }",
"private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }",
"public static void main(String[] args) {\n\n\n String str1 = new String(\"abc\");\n String str2 = new String(\"abc\");\n\n System.out.println(str1 == str2);\n System.out.println(str1.equals(str2));\n\n }",
"@Override\n public boolean areItemsTheSame(Concert oldConcert, Concert newConcert) {\n return oldConcert.getId() == newConcert.getId();\n }",
"public boolean equals(@org.jetbrains.annotations.Nullable java.lang.Object r3) {\r\n /*\r\n r2 = this;\r\n if (r2 == r3) goto L_0x001f\r\n boolean r0 = r3 instanceof kr.co.popone.fitts.model.product.CategoryProductListResponse\r\n if (r0 == 0) goto L_0x001d\r\n kr.co.popone.fitts.model.product.CategoryProductListResponse r3 = (kr.co.popone.fitts.model.product.CategoryProductListResponse) r3\r\n java.lang.String r0 = r2.version\r\n java.lang.String r1 = r3.version\r\n boolean r0 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r1)\r\n if (r0 == 0) goto L_0x001d\r\n java.util.List<kr.co.popone.fitts.model.product.CategoryProductItem> r0 = r2.items\r\n java.util.List<kr.co.popone.fitts.model.product.CategoryProductItem> r3 = r3.items\r\n boolean r3 = kotlin.jvm.internal.Intrinsics.areEqual(r0, r3)\r\n if (r3 == 0) goto L_0x001d\r\n goto L_0x001f\r\n L_0x001d:\r\n r3 = 0\r\n return r3\r\n L_0x001f:\r\n r3 = 1\r\n return r3\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: kr.co.popone.fitts.model.product.CategoryProductListResponse.equals(java.lang.Object):boolean\");\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Producto)) {\n return false;\n }\n Producto other = (Producto) object;\n if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"String getEqual();",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\n this.productName = productName;\n }",
"public void setProductName(String productName) {\r\n this.productName = productName;\r\n }",
"public boolean deleteProduct(Product s) {\n for (int i = 0; i < products.size(); i++) {\n if (products.get(i).equals(s)){\n products.remove(i);\n return true;\n }\n }\n return false;\n }",
"@Test\n public void testUpdateProductShouldCorrectWhenNewNameNotExist() throws Exception {\n // Mock method\n when(productRepository.findOne(product.getId())).thenReturn(product);\n when(productRepository.existsByName(productRequest.getName())).thenReturn(false);\n when(productRepository.save(product)).thenReturn(product);\n\n Map<String, Object> jsonMap = new HashMap<>();\n jsonMap.put(\"$.name\", productRequest.getName());\n jsonMap.put(\"$.url\", productRequest.getUrl());\n testResponseData(RequestInfo.builder()\n .request(put(PRODUCT_DETAIL_ENDPOINT, product.getId()))\n .token(adminToken)\n .body(productRequest)\n .httpStatus(HttpStatus.OK)\n .jsonMap(jsonMap)\n .build());\n }",
"@Test\n public void TestBCABBACBCB() {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20, 2, 1);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30, 3, 2);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n try {\n int totalPrice = supermarket.checkout(\"BCABBACBCB\");\n assertEquals(\"Total prices are not equal.\", new Integer(230), new Integer(totalPrice));\n }\n catch (Exception e)\n {\n fail(e.getMessage());\n }\n }",
"public boolean checkMatchingProductIds(AdminSetProducts productsSet, List<Product> employeeProducts){\n // Checks if the employee product ids and admin specified products\n // collections contain the same ids.\n Set<Long> employeeProductIds = employeeProducts\n .stream()\n .map(p -> Long.parseLong(p.getId()))\n .collect(Collectors.toUnmodifiableSet());\n\n Set<Long> providedProductIds = new HashSet<>(productsSet.getProductIds());\n\n return providedProductIds.equals(employeeProductIds);\n }",
"@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }",
"private boolean isSameQuant(PlainGraph graph, String quantLvl, String prevQuant) {\n PlainNode q = graphNodeMap.get(graph).get(quantLvl);\n PlainNode prevQ = graphNodeMap.get(graph).get(prevQuant);\n\n String quantName = graph.inEdgeSet(q).stream().filter(e -> e.target() == e.source()).map(e -> e.label().text()).collect(Collectors.toList()).get(0);\n String prevQuantName = graph.inEdgeSet(prevQ).stream().filter(e -> e.target() == e.source()).map(e -> e.label().text()).collect(Collectors.toList()).get(0);\n\n return quantName.equals(prevQuantName);\n }",
"private static boolean areBundlesEqual(Bundle lhs, Bundle rhs) {\n if (!lhs.keySet().equals(rhs.keySet())) {\n // Keys differ - bundles are not equal.\n return false;\n }\n for (String key : lhs.keySet()) {\n if (!areEqual(lhs.get(key), rhs.get(key))) {\n return false;\n }\n }\n return true;\n }",
"public boolean deleteProduct(Product selectedProduct) {\n for(Product product: allProducts) {\n if (product.getId() == selectedProduct.getId() &&\n product.getName().equals(selectedProduct.getName()) &&\n product.getPrice() == selectedProduct.getPrice() &&\n product.getStock() == selectedProduct.getStock() &&\n product.getMin() == selectedProduct.getMin() &&\n product.getMax() == selectedProduct.getMax()) {\n return allProducts.remove(product);\n }\n }\n System.out.println(\"No matching part was found\");\n return false;\n }",
"public HashMap<String, String> compareNames(String name1, String name2) {\n\t\tcompare(name1, name2) ; \n\t\tHashMap<String, String> result = new HashMap<String, String>();\n\t\tresult.put(\"SCORE\", Float.toString(score));\n\t\tresult.put(\"SHINGLE\", Float.toString(scoreShingle));\n\t\tresult.put(\"REASON\", reason);\n\t\treturn result;\n\t}",
"@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n if (that == null) {\n return false;\n }\n if (getClass() != that.getClass()) {\n return false;\n }\n ProductosMoleculas other = (ProductosMoleculas) that;\n return (this.getCum() == null ? other.getCum() == null : this.getCum().equals(other.getCum()))\n && (this.getMolecula() == null ? other.getMolecula() == null : this.getMolecula().equals(other.getMolecula()))\n && (this.getUnidaddilusion() == null ? other.getUnidaddilusion() == null : this.getUnidaddilusion().equals(other.getUnidaddilusion()))\n && (this.getUnidadcomponente() == null ? other.getUnidadcomponente() == null : this.getUnidadcomponente().equals(other.getUnidadcomponente()))\n && (this.getConcentracionmolecula() == null ? other.getConcentracionmolecula() == null : this.getConcentracionmolecula().equals(other.getConcentracionmolecula()));\n }",
"@Test\n public void equalsSameTest() {\n Device device2 = new Device(deviceID, token);\n assertEquals(device, device2);\n }",
"@Test\n\tpublic void test_equals2() {\n\tTennisPlayer c1 = new TennisPlayer(11,\"Joe Tsonga\");\n\tTennisPlayer c2 = new TennisPlayer(521,\"Joe Tsonga\");\n\tassertFalse(c1.equals(c2));\n }",
"private static boolean areEqual (byte[] a, byte[] b) {\r\n int aLength = a.length;\r\n if (aLength != b.length)\r\n return false;\r\n for (int i = 0; i < aLength; i++)\r\n if (a[i] != b[i])\r\n return false;\r\n return true;\r\n }",
"@Test\n public void testGetProductName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getProductName();\n\n assertEquals(\"\", result);\n }",
"@Test\n\tpublic void searchForProductLandsOnCorrectProduct() {\n\t}",
"@Test(expected = ProductNotFoundException.class)\n public void TestProductNotFoundException() throws ProductNotFoundException {\n HashMap<Character, Product> productList = new HashMap<Character, Product>();\n Product product = new Product('A', 20, 2, 1);\n productList.put(product.getName(), product);\n\n product = new Product('B', 50, 5, 3);\n productList.put(product.getName(), product);\n\n product = new Product('C', 30, 3, 2);\n productList.put(product.getName(), product);\n\n com.jama.domain.Supermarket supermarket = new com.jama.domain.Supermarket(productList);\n\n int totalPrice = supermarket.checkout(\"BCABBACBCBX\");\n assertEquals(\"Total prices are not equal.\", new Integer(230), new Integer(totalPrice));\n }"
] | [
"0.6763442",
"0.6643799",
"0.64385533",
"0.6283071",
"0.62676024",
"0.6234284",
"0.6204925",
"0.6200846",
"0.61890566",
"0.61868054",
"0.6151869",
"0.6084963",
"0.606056",
"0.6056066",
"0.60457546",
"0.6042039",
"0.60180473",
"0.60121804",
"0.59935606",
"0.59892845",
"0.5967829",
"0.59592503",
"0.59495384",
"0.59414285",
"0.59295774",
"0.59254473",
"0.5911796",
"0.58906466",
"0.58569175",
"0.585044",
"0.5832615",
"0.5826284",
"0.5814038",
"0.5788667",
"0.57608795",
"0.5759499",
"0.57592505",
"0.57558566",
"0.57501876",
"0.574334",
"0.57358587",
"0.5727789",
"0.57261395",
"0.5720822",
"0.5705337",
"0.56912804",
"0.56889606",
"0.5679097",
"0.5676491",
"0.567492",
"0.56721705",
"0.56716025",
"0.5669696",
"0.566857",
"0.565546",
"0.5652561",
"0.5652128",
"0.5633551",
"0.5628515",
"0.5618146",
"0.5615085",
"0.56036794",
"0.55812365",
"0.5580126",
"0.5571139",
"0.5564524",
"0.55630624",
"0.5562183",
"0.55612636",
"0.5560497",
"0.5558421",
"0.55445796",
"0.55247766",
"0.5510581",
"0.5499298",
"0.5479591",
"0.5474148",
"0.54633516",
"0.5460343",
"0.5460075",
"0.5456603",
"0.5456603",
"0.5456603",
"0.5453531",
"0.54429543",
"0.54405856",
"0.5438258",
"0.5432329",
"0.5426501",
"0.5426018",
"0.54194134",
"0.5409492",
"0.54088455",
"0.54063004",
"0.5405828",
"0.5395555",
"0.53939813",
"0.5392755",
"0.53863335",
"0.5380596"
] | 0.725806 | 0 |
Displays String representation of Product displayed under a supplier or warehouse. | public String toString() {
final StringBuilder builder = new StringBuilder();
builder.append(getProductName())
.append(" - ")
.append(getProductQuantity())
.append(" left");
return builder.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}",
"public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + categoryId + \", supplierId=\" + supplierId + \", brandId=\" + brandId + \", typeId=\"\r\n\t\t\t\t+ typeId + \", purchases=\" + purchases + \", views=\" + views + \"]\";\r\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tint inStock = inventory.get(code);\r\n\t\t\tif(inStock >= 0) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == code) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + inStock;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}",
"public String toString() {\r\n return \"Product: \" + this.product + \", Amount: \" + this.amount;\r\n }",
"java.lang.String getProductDescription();",
"public StringBuffer getSkuDetail() {\n List<CheckoutCommerceItemBean> commerceItems;\n productsInfo.append(\"\");\n if (null != reviewOrderBean) {\n if (null != reviewOrderBean.getComponent()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems()) {\n commerceItems = reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems();\n for (int i = 0; i < commerceItems.size(); i++) {\n\n productsInfo.append(commerceItems.get(i)\n .getCatalogRefId());\n productsInfo.append(\";\");\n /* sku quantity\n productsInfo.append(commerceItems.get(i)\n .getQuantity());\n productsInfo.append(\";\");*/\n productsInfo.append(String.format(\n \"%.2f\", Double.valueOf(commerceItems.get(i)\n .getAmount())));\n if (i != commerceItems.size() - 1) //avoid adding \"|\" at last product\n productsInfo.append(\"|\");\n\n }\n\n\n }\n }\n }\n }\n return productsInfo;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn String.format(\n\t\t\t\"ID: %d. Name: %s. Supplier: [ \"+supplier+\" ]\", id, name\n\t\t);\n\t}",
"@Override\n public String toString() {\n String output = quantity + \" x \" + product;\n\n return output;\n }",
"public String getProductSummary() {\r\n\t\tif (getProducts() != null) {\r\n\t\t\tif (getProducts().size() == 1) {\r\n\t\t\t\treturn getProducts().get(0);\r\n\t\t\t}\r\n\t\t\tif (getProducts().size() > 1) {\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(getProducts().get(0))\r\n\t\t\t\t .append( \" (plus \")\r\n\t\t\t\t .append(getProducts().size()-1)\r\n\t\t\t\t .append( \" more)\");\r\n\t\t\t\treturn sb.toString();\r\n\t\t\t}\t\r\n\t\t}\r\n\r\n\t\treturn \"No products\";\r\n\t}",
"public String getDetailString()\n {\n short type = this.getType();\n StringBuffer buffer = new StringBuffer(PriceAdjustmentTypes.toString(type));\n switch(type)\n {\n case PriceAdjustmentTypes.SPLIT:\n buffer.append(\": \");\n buffer.append(this.getSplitNumerator()).append(\" for \").append(this.getSplitDenominator());\n break;\n // SYMBOL_CHANGE and MERGER only change the product symbol\n case PriceAdjustmentTypes.SYMBOL_CHANGE:\n case PriceAdjustmentTypes.MERGER:\n buffer.append(\": \");\n String symbol = getNewProductSymbol();\n if (symbol!=null && symbol.length() > 0)\n {\n buffer.append(\"New Symbol: \").append(symbol);\n }\n else\n {\n buffer.append(\"No Symbol Change.\");\n }\n break;\n case PriceAdjustmentTypes.DIVIDEND_CASH:\n buffer.append(\": \");\n buffer.append('$').append(this.getCashDividend().toString());\n break;\n case PriceAdjustmentTypes.DIVIDEND_STOCK:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append(\" shares.\");\n break;\n case PriceAdjustmentTypes.DIVIDEND_PERCENT:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append('%');\n break;\n case PriceAdjustmentTypes.COMMON_DISTRIBUTION:\n break;\n case PriceAdjustmentTypes.LEAP_ROLLOVER:\n break;\n default:\n break;\n }\n return buffer.toString();\n }",
"private void printSupplierList(Shop shop) {\n System.out.println(shop.supplierListToString());\n }",
"public String getProductName(){\n return productRelation.getProductName();\n }",
"public void showSupplierList(){\n\t\tfor(int i = 0; i<supplierList.size();i++) {\n\t\t\tSystem.out.println(supplierList.get(i).getSupID()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getCompanyName()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getAddress()+\";\"+\n\t\t\t\t\tsupplierList.get(i).getSaleRep());\n\t\t}\n\t}",
"public java.lang.String getProduct() {\n return product;\n }",
"public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void displayProductsList(List list){\r\n Iterator iter = list.iterator();\r\n if (!iter.hasNext()){\r\n System.out.println(\"No products to display.\");\r\n return;\r\n }\r\n while (iter.hasNext()){\r\n Product product = (Product) iter.next();\r\n String msg = product.getSupplier().getName() + \"\\t\";\r\n msg += product.getName() + \"\\t\";\r\n msg += product.getPrice() + \"\\t\";\r\n msg += product.getDescription();\r\n System.out.println(msg);\r\n }\r\n }",
"public String product() {\n return this.product;\n }",
"protected String stringGoodsInfo() {\n String ret = \"Goods Supply\";\n for (G good : this.goods) {\n ret += \"\\nN = \" + good.supply;\n }\n return ret;\n }",
"public String getProduct() {\n return this.product;\n }",
"@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }",
"public String getProduct() {\r\n return this.product;\r\n }",
"@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }",
"@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}",
"public String getProduct() {\n return product;\n }",
"public String getProduct() {\n return product;\n }",
"public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }",
"String getProduct();",
"public String toString(){\n String reply = \"|\\n\";\n\t\t reply += \"| Product's name: \"+name+\"\\n\";\n\t\t reply += \"| Product's code: \"+code+\"\\n\";\n\t\t reply += \"| Water required for manufacture: \"+waterRequired4Manufacturing+\" litres\\n\";\n\t\t reply += \"| Units in inventory: \"+unitsInventory+\" COP\\n\";\n\t\t reply += \"|\\n\";\n\t\t reply += \"+-------------------------------------------------------------------------------------------------------------+\\n\";\n\t\t if (invima != null) {\n\t\t \treply += invima.toString();\n\t\t }\n\t\t\t \n\n\t\treturn reply;\n\n\t}",
"public String getProduct()\n {\n return product;\n }",
"public static void print()\n {\n ProductGUI.Display(\"\\n\");\n for(Product element: productList)\n {\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n }\n }",
"public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }",
"public String getProductName() {\r\n return productName;\r\n }",
"protected <U> String toString(Supplier<U> supp) {\n\t\ttry {\n\t\t\treturn \"\"+supp.get();\n\t\t} catch (RuntimeException ex) {\n\t\t\treturn ex.getClass().getSimpleName();\n\t\t}\n\t}",
"public String toString() {\n\t\treturn getUserName() + \" quote: \" + getProduct() + \" \" + buy.getPrice() + \" x \" + buy.getRemainingVolume() \n\t\t\t\t+ \" (Original Vol: \" + buy.getOriginalVolume() + \", CXL'd Vol: \" + buy.getCancelledVolume()\n\t\t\t\t+ \") [\" + buy.getId() + \"]\"+ \" - \" + sell.getPrice() + \" x \" + sell.getRemainingVolume()\n\t\t\t\t+ \" (Original Vol: \" + sell.getOriginalVolume() + \", CXL'd Vol: \" + sell.getCancelledVolume()\n\t\t\t\t+ \") [\" + sell.getId() + \"]\";\n\t}",
"@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }",
"public String toString() {\n String ret = \"\\n*****\" + title + \"*****\" + \"\\n\" + description + \"\\nBusiness Contact: \" + contact\n + \"\\nSupply List: \";\n for (String supply : supplies) {\n ret += \"\\n-\" + supply;\n }\n ret += \"\\nPrice: $\" + price + \"\\n\";\n return ret;\n }",
"public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }",
"public static String sale(StoreProduct product) {\n\t\tdouble total;\n\t\tdouble subtotal;\n\t\tdouble tax;\n\t\t\n\t\tif(product.productAvailability()) {\n\t\t\t// calculate the total\n\t\t\tsubtotal = product.getPrice();\n\t\t\ttax = product.getPrice() * TAX;\n\t\t\ttotal = subtotal + tax;\n\t\t\t\n\t\t\t// return the subtotal, tax, and total cost to the user\n\t\t\treturn \"Subtotal: $\" + subtotal + \"\\nTax: $\" + tax + \"\\nTotal: $\" + total;\n\t\t} else {\n\t\t\treturn \"The product is not available for sale because of the lack of stock. Sorry!\";\n\t\t}\n\t}",
"public String getProdDetailsName(){\n String prodName = productDetailsName.toString();\n return prodName;\n }",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _buySellProducts.getDescription();\n\t}",
"public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }",
"public String toString() {\n return \"\" + this.prodCode;\n }",
"public String productListForDetail() {\n return SUCCESS;\n }",
"@Override\r\n\tpublic String toString() {\n\t\tString string=\"[\"+product.getName()+\" \"+number+\"]\";\r\n\t\treturn string;\r\n\t}",
"public String getProductName() {\r\n\t\treturn productName;\r\n\t}",
"public String toString(){\n StringBuffer sb = new StringBuffer();\n sb.append(\"*****\" + title + \"*****\");\n sb.append( \"\\n\" + description + \"\\n\");\n sb.append(\"Business Contact: \" + contact + \"\\n\");\n sb.append(\"Supply List: \\n\");\n for (String s : supplies){\n sb.append(\"- \"+ s + \"\\n\");\n\n }\n sb.append(\"Price: $\" + price + \"\\n\");\n return sb.toString();\n }",
"public java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\t}",
"public String getProductLabel(){\n return productLabel.getText().trim();\n }",
"@FXML\n\t private void setProdInfoToTextArea ( Product prod) {\n\t resultArea.setText(\"Denumire: \" + prod.getDenumire() + \"\\n\" +\"Producator: \" + prod.getProducator() + \"\\n\" + \"Pret: \" + prod.getPrice() + \"\\n\" + \"Marime: \" + prod.getMarime() + \"\\n\" + \"Culoare: \" + prod.getCuloare());\n\t }",
"@Override\n public String getEISProductName() throws ResourceException {\n return repository.getDescriptor(Repository.REP_NAME_DESC);\n }",
"private static void displayItems()\n {\n System.out.println(\"\\n\\tCurrent List of Products in the Store:\\n\");\n for(Sales s : store)\n System.out.println(s.toString());\n }",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public java.lang.String getProductName() {\n return productName;\n }",
"public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}",
"public String getProductName() {\n\t\treturn productName;\n\t}",
"public String listLowStock() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tLinkedList<HashMap.Entry<Integer, Integer>> entries = new LinkedList<HashMap.Entry<Integer, Integer>>(inventory.entrySet());\r\n\t\tCollections.sort(entries, HashMap.Entry.comparingByValue());\r\n\t\tIterator<HashMap.Entry<Integer, Integer>> iter = entries.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tHashMap.Entry<Integer, Integer> entry = iter.next();\r\n\t\t\tif(entry.getValue() >= 0 && entry.getValue() <= 5) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == entry.getKey()) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + entry.getValue();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}",
"public String displayDetails()\n\t{\n\t\tString displayDetail = \"\";\n\t\t \n\t\tdisplayDetail = (\"Make of your System\\t\\t=>\\t\" + make + \n\t\t\t\t\t\t\"\\nModel of your System\\t\\t=>\\t\" + model + \n\t\t\t\t\t\t\"\\nSpeed of your System\\t\\t=>\\t\" + speed + \n\t\t\t\t\t\t\"\\nMemory of your System\\t\\t=>\\t\" + memorySize + \" MB \" +\n\t\t\t\t\t\t\"\\nHard Disk of your System\\t=>\\t\" + hardDiskSize + \" GB \" +\n\t\t\t\t\t\t\"\\nPurchase Cost of your System\\t=>\\t\" + purchaseCost);\n\t\t\n\t\treturn displayDetail;\n\t}",
"public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }",
"public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }",
"public String toString() {\r\n return String.format(\"%-5s %-20s %-10s %-7s %-15s\", toolId, toolName, toolQuantity, toolPrice, toolSupplier.getName());\r\n }",
"@Override\n public String toString(){\n if (myBasket.size() == 0) {\n System.out.println(\"No products yet.\");\n return null;\n }\n int i = 0;\n String string = \"List of products in basket: \\n\";\n for (Product product: myBasket.keySet())\n {\n i++;\n string = string + i + \")\\n\" + product.toString() + \"in basket: \" + myBasket.get(product) + \"\\n\";\n }\n return string;\n }",
"public String getNameProd() {\n\t\treturn nameProd;\n\t}",
"private void displaySell()\r\n {\r\n\r\n System.out.println(\"To sell:\");\r\n for(HardwareDevice devices: hardwares)\r\n {\r\n\r\n devices.displayDescription();\r\n }\r\n }",
"private static void printProduct(int productId, Product product) {\r\n\t\tStringBuilder fixedProductName = generatePaddings(product.getName(), PRODUCT_NAME_LENGTH);\r\n\t\tStringBuilder fixedBrandName = generatePaddings(product.getBrand(), SHOP_NAME_LENGTH);\r\n\t\tStringBuilder fixedPriceName = generatePaddings(convertCentToDollar(product.getPriceInCent()), PRICE_LENGTH);\r\n\t\tStringBuilder fixedTopSalesNum = generatePaddings(product.getSalesTotalNum().toString(), TOP_SALES_LENGTH);\r\n\t\t\r\n\t\tif(productId < 10) {\r\n\t\t\tSystem.out.println(\" \" + productId + \"|\" + fixedProductName + \"|\"\r\n\t\t\t\t+ fixedBrandName + \"|\" + fixedPriceName + \"|\" + fixedTopSalesNum);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\" \" + productId + \"|\" + fixedProductName + \"|\"\r\n\t\t\t\t\t+ fixedBrandName + \"|\" + fixedPriceName + \"|\" + fixedTopSalesNum);\r\n\t\t}\r\n\t\t\r\n\t}",
"public String PrintProductInformation(int productId)\r\n {\r\n String productInformation = \"\";\r\n Double retail;\r\n boolean productFound = false;\r\n // check if product exists using id\r\n for (int i = 0; i < productArrayList.size(); i++)\r\n {\r\n if (productId == (productArrayList.get(i).getId()))\r\n {\r\n // set the retail price\r\n retail = (productArrayList.get(i).getCost() +\r\n (productArrayList.get(i).getMargin()*productArrayList.get(i).getCost()/100));\r\n // add product details to productInformation string\r\n productInformation += \"Id Name Cost Quantity Retail\\n\";\r\n productInformation += \"----------------------------------------------------\\n\";\r\n productInformation += productArrayList.get(i).getId() + \" \" + productArrayList.get(i).getName()\r\n + \" $\" + productArrayList.get(i).getCost() + \" \" + productArrayList.get(i).getQuantity() + \" $\"\r\n + retail;\r\n break;\r\n } else\r\n {\r\n System.out.println(\"Product not found.\");\r\n }\r\n }\r\n System.out.println(productInformation);\r\n return productInformation;\r\n }",
"public String getName(){\n\t\treturn Name; // Return the product's name\n\t}",
"public void display() {\r\n String kind;\r\n if (profit == true) {\r\n kind = \"profit\";\r\n }\r\n\r\n else kind = \"non-profit\";\r\n System.out.println(name + \" is a \" + kind + \" organization that has\" + \" \" + revenue + \" dollars in revenue\" );\r\n }",
"private RLabel getProductLabel() {\n if (productLabel == null) {\n productLabel = new RLabel();\n productLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/product\\\") %>\");\n productLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n productLabel.setName(\"productLabel\");\n }\n return productLabel;\n }",
"public String toStringWithTags() {\n final StringBuilder builder = new StringBuilder();\n builder.append(getProductName())\n .append(\"\\nQuantity: \")\n .append(getProductQuantity())\n .append(\" left \\n\")\n .append(\"Tag(s): \\n\");\n\n for (Tag tag : getProductTags()) {\n builder.append(\"- \" + tag + \"\\n\");\n }\n builder.append(\"\\n\");\n return builder.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Market [products=\" + products + \"]\";\n\t}",
"public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }",
"public static String productList(List<Product> purchasedProductList) {\n\t\tString productList = \"* Description: \\t\\t\\t *\\n\";\n\t\tproductList += \"-----------------------------------\\n\";\n\t\tproductList += \"- Product\" + \" quantity\" + \"\\t price -\\n\";\n\t\tfor (Product registred : purchasedProductList)\n\t\t\tproductList += \"- \" + registred.getName() + \"\\t\\t\" + registred.getQuantity() + \"\\t \"\n\t\t\t\t\t+ (new DecimalFormat(\"# $,##0.00\").format(registred.grossPrice())) + \" -\" + \"\\n\";\n\t\tproductList += \"-----------------------------------\";\n\t\treturn productList;\n\t}",
"@Override\n public String getProductName() {\n return ProductName.REFLECTIONS_II_BOOSTER_PACK;\n }",
"public String toString() {\r\n\t\treturn(\"This Quadcopter is manufactured by \" + this.brand + \" since \" + this.creationYear \r\n\t\t\t\t+ \". It has \" + this.cylinderNum + \" cylinders and can carry \" + this.passengerCap + \" passengers. It has \"\r\n\t\t\t\t+ this.hp + \" horse power, can fly at \" + maxFlyingSpeed + \" mph, and costs \" + this.price + \"$.\");\r\n\t}",
"public String getDatabaseProduct();",
"public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }",
"@Override\n public String toString() {\n return \"stock: \" + stock + \"\\n\" +\n \"cost: \" + itemPrice + \"\\n\";\n }",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"public String getProdName() {\n\t\treturn prodName;\n\t}",
"public String getSupplierName() {\n return supplierName;\n }",
"public String getProductOwner();",
"public String toString(){\n return storeName + \"\\n\" + \n \t\tstoreAdress + \"\\n\" +\n \t\tdate + \"\\n\" + \n \t\ttime + \"\\n\" +\n \t\titemList + \"\\n\" +\n \t\t\"total price \" + totalPrice + \"\\n\" +\n \t\t\"total VAT price \" + String.format(\"%.2f\",totalVATPrice) + \"\\n\" +\n \t\t\"payed amount \" + cash + \"\\n\" +\n \t\t\"money back \" + change + \"\\n\" +\n \t\t\"discount \" + discount + \"\\n\";\n }",
"public String toString() {\n if (inCatlog) {\n return name + \" \" + quantity + \" \" + price;\n }\n return name + \" \" + quantity;\n }",
"public void showProductType() {\r\n System.out.println(\"This is a iPhone.\");\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.gems + \" gems for \" + this.amount + \" \" + this.goods.toString();\n\t}",
"public String getProductLine() {\n return productLine;\n }",
"public void displayProducts() {\r\n\t\tSystem.out.println(\"All Products : \");\r\n\t\tfor(int i=0; i<currentBranchNumber; ++i) \r\n\t\t\tbranchs[i].displayProducts();\r\n\t}",
"public List<String> dispProduct(String id);",
"public void linkProduct() {\n Product result;\n String supplierID = getToken(\"Enter supplier ID: \");\n if (warehouse.searchSupplier(supplierID) == null) {\n System.out.println(\"No such supplier!\");\n return;\n }\n do {\n String productID = getToken(\"Enter product ID: \");\n result = warehouse.linkProduct(supplierID, productID);\n if (result != null) {\n System.out.println(\"Product [\" + productID + \"] assigned to supplier: [\" + supplierID + \"]\");\n }\n else {\n System.out.println(\"Product could not be assigned\");\n }\n if (!yesOrNo(\"Assign more products to supplier: [\" + supplierID + \"]\")) {\n break;\n }\n } while (true);\n }",
"@Override\n public String toString() {\n\n String line = \"Manufacturer : \" + MANUFACTURER + \"\\n\" +\n \"Serial Number : \" + serialNumber + \"\\n\" +\n \"Date : \" + getManufactureDate() + \"\\n\" +\n \"Name : \" + name;\n //I use line because I felt it was easier to code with\n return line;\n\n }",
"public HashMap<String, ProductDTO> displayProductInWishlist() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\treturn WishlistDaoImpl.wlist ;\n\t}",
"public String toString() {\n\t\treturn \"Półka \" + shelfName;\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(itemName + \" \" + price + \"kr \" + tax + \"% \");\n return builder.toString();\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn new String(\"Le prix:\"+this.cost+\", Le tpsRep: \"+this.tpsRep);\r\n\t}",
"public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }"
] | [
"0.7244466",
"0.678084",
"0.66707534",
"0.66599786",
"0.65388316",
"0.6524415",
"0.6513666",
"0.6448868",
"0.6427557",
"0.6417845",
"0.6397153",
"0.6377167",
"0.6356508",
"0.63457096",
"0.63304794",
"0.632381",
"0.6315802",
"0.6240458",
"0.62393755",
"0.62053216",
"0.6204089",
"0.6203065",
"0.6191543",
"0.618207",
"0.6170308",
"0.6170308",
"0.61420494",
"0.613385",
"0.6117522",
"0.61166906",
"0.61052924",
"0.60874283",
"0.6087414",
"0.6087414",
"0.6087414",
"0.6072615",
"0.6059285",
"0.6035433",
"0.6028838",
"0.6021953",
"0.6019368",
"0.6010003",
"0.6002067",
"0.59978193",
"0.59921074",
"0.598948",
"0.59862465",
"0.59740317",
"0.59557027",
"0.5933907",
"0.5924934",
"0.59219384",
"0.5916986",
"0.5915503",
"0.591288",
"0.5909234",
"0.5905708",
"0.5896559",
"0.58814466",
"0.58795696",
"0.5877821",
"0.5874227",
"0.58604693",
"0.58381945",
"0.5836322",
"0.58258796",
"0.5811079",
"0.57990015",
"0.57834804",
"0.57713634",
"0.57699",
"0.5762054",
"0.57552254",
"0.57498",
"0.5744401",
"0.57398766",
"0.57345146",
"0.5727187",
"0.56940097",
"0.56801194",
"0.56787306",
"0.5678076",
"0.5666265",
"0.56613195",
"0.56594473",
"0.5658954",
"0.5642026",
"0.56402314",
"0.56335884",
"0.5624245",
"0.56168526",
"0.5615933",
"0.5615546",
"0.5613478",
"0.5610218",
"0.55950737",
"0.5584806",
"0.5581146",
"0.55773634",
"0.5573082"
] | 0.6080102 | 35 |
Displays String representation of Product including Tags. | public String toStringWithTags() {
final StringBuilder builder = new StringBuilder();
builder.append(getProductName())
.append("\nQuantity: ")
.append(getProductQuantity())
.append(" left \n")
.append("Tag(s): \n");
for (Tag tag : getProductTags()) {
builder.append("- " + tag + "\n");
}
builder.append("\n");
return builder.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Product [id=\" + id + \", code=\" + code + \", name=\" + name + \", brand=\" + brand + \", description=\"\r\n\t\t\t\t+ description + \", unitPrice=\" + unitPrice + \", quantity=\" + quantity + \", active=\" + active\r\n\t\t\t\t+ \", categoryId=\" + categoryId + \", supplierId=\" + supplierId + \", brandId=\" + brandId + \", typeId=\"\r\n\t\t\t\t+ typeId + \", purchases=\" + purchases + \", views=\" + views + \"]\";\r\n\t}",
"public void printProduct() {\n System.out.println(\"nom_jeu : \" + name);\n System.out.println(\"price : \" + price);\n System.out.println(\"uniqueID : \" + identifier);\n System.out.println(\"stock : \" + stock);\n System.out.println(\"image : \" + image);\n System.out.println(\"genre : \" + genre);\n System.out.println(\"plateforme : \" + platform);\n System.out.println();\n }",
"public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}",
"java.lang.String getProductDescription();",
"public String toString() {\r\n return \"Product: \" + this.product + \", Amount: \" + this.amount;\r\n }",
"public static void print()\n {\n ProductGUI.Display(\"\\n\");\n for(Product element: productList)\n {\n ProductGUI.Display(\"\\n\");\n System.out.println(element);\n ProductGUI.Display(element.toString());\n }\n }",
"public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public String getProductSummary() {\r\n\t\tif (getProducts() != null) {\r\n\t\t\tif (getProducts().size() == 1) {\r\n\t\t\t\treturn getProducts().get(0);\r\n\t\t\t}\r\n\t\t\tif (getProducts().size() > 1) {\r\n\t\t\t\t\r\n\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\tsb.append(getProducts().get(0))\r\n\t\t\t\t .append( \" (plus \")\r\n\t\t\t\t .append(getProducts().size()-1)\r\n\t\t\t\t .append( \" more)\");\r\n\t\t\t\treturn sb.toString();\r\n\t\t\t}\t\r\n\t\t}\r\n\r\n\t\treturn \"No products\";\r\n\t}",
"@Override\n public String toString(){\n if (myBasket.size() == 0) {\n System.out.println(\"No products yet.\");\n return null;\n }\n int i = 0;\n String string = \"List of products in basket: \\n\";\n for (Product product: myBasket.keySet())\n {\n i++;\n string = string + i + \")\\n\" + product.toString() + \"in basket: \" + myBasket.get(product) + \"\\n\";\n }\n return string;\n }",
"public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }",
"@Override\n public String toString() {\n String output = quantity + \" x \" + product;\n\n return output;\n }",
"public void showAllProducts() {\n try {\n System.out.println(Constants.DECOR+\"ALL PRODUCTS IN STORE\"+Constants.DECOR_END);\n List<Product> products = productService.getProducts();\n System.out.println(Constants.PRODUCT_HEADER);\n for (Product product : products) { \n System.out.println((product.getName()).concat(\"\\t\\t\").concat(product.getDescription()).concat(\"\\t\\t\")\n .concat(String.valueOf(product.getId()))\n .concat(\"\\t\\t\").concat(product.getSKU()).concat(\"\\t\").concat(String.valueOf(product.getPrice()))\n .concat(\"\\t\").concat(String.valueOf(product.getMaxPrice())).concat(\"\\t\")\n .concat(String.valueOf(product.getStatus()))\n .concat(\"\\t\").concat(product.getCreated()).concat(\"\\t\\t\").concat(product.getModified())\n .concat(\"\\t\\t\").concat(String.valueOf(product.getUser().getUserId())));\n }\n } catch (ProductException ex) {\n System.out.println(ex);\n }\n }",
"@Override\n public String toString() {\n return product.toString() + \", Quantity: \" + quantity;\n }",
"public java.lang.String getProduct() {\n return product;\n }",
"public String product() {\n return this.product;\n }",
"@Override\r\n\tpublic String toString() {\n\t\tString string=\"[\"+product.getName()+\" \"+number+\"]\";\r\n\t\treturn string;\r\n\t}",
"public String getProduct() {\r\n return this.product;\r\n }",
"public String getProduct() {\n return this.product;\n }",
"@Override\n public String toString () {\n String stock = \"\";\n\n for (int i = 0; i < inventory.size(); i++) {\n\n Product p = inventory.get(i);\n stock += p.toString() + '\\n';\n }\n return stock;\n }",
"public void printData () {\n System.out.println (products.toString ());\n }",
"public String getProduct() {\n return product;\n }",
"public String getProduct() {\n return product;\n }",
"public String getProductLabel(){\n return productLabel.getText().trim();\n }",
"private RLabel getProductLabel() {\n if (productLabel == null) {\n productLabel = new RLabel();\n productLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/product\\\") %>\");\n productLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n productLabel.setName(\"productLabel\");\n }\n return productLabel;\n }",
"public StringBuffer getSkuDetail() {\n List<CheckoutCommerceItemBean> commerceItems;\n productsInfo.append(\"\");\n if (null != reviewOrderBean) {\n if (null != reviewOrderBean.getComponent()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems()) {\n commerceItems = reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems();\n for (int i = 0; i < commerceItems.size(); i++) {\n\n productsInfo.append(commerceItems.get(i)\n .getCatalogRefId());\n productsInfo.append(\";\");\n /* sku quantity\n productsInfo.append(commerceItems.get(i)\n .getQuantity());\n productsInfo.append(\";\");*/\n productsInfo.append(String.format(\n \"%.2f\", Double.valueOf(commerceItems.get(i)\n .getAmount())));\n if (i != commerceItems.size() - 1) //avoid adding \"|\" at last product\n productsInfo.append(\"|\");\n\n }\n\n\n }\n }\n }\n }\n return productsInfo;\n }",
"public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }",
"@Override\n\tpublic String getName() {\n\t\treturn product.getName();\n\t}",
"public String toString(){\n String reply = \"|\\n\";\n\t\t reply += \"| Product's name: \"+name+\"\\n\";\n\t\t reply += \"| Product's code: \"+code+\"\\n\";\n\t\t reply += \"| Water required for manufacture: \"+waterRequired4Manufacturing+\" litres\\n\";\n\t\t reply += \"| Units in inventory: \"+unitsInventory+\" COP\\n\";\n\t\t reply += \"|\\n\";\n\t\t reply += \"+-------------------------------------------------------------------------------------------------------------+\\n\";\n\t\t if (invima != null) {\n\t\t \treply += invima.toString();\n\t\t }\n\t\t\t \n\n\t\treturn reply;\n\n\t}",
"public String getProduct()\n {\n return product;\n }",
"@Override\r\n public String toString() {\n return String.format(\"Title: %s%nPrice: %.2f%nDescription: %s%nRelease date: %s\",\r\n this.getTitle(), this.getPrice(), this.getDescription(), this.releaseDate);\r\n }",
"public java.lang.String getProductInfo () {\n\t\treturn productInfo;\n\t}",
"public String toString() {\n if (inCatlog) {\n return name + \" \" + quantity + \" \" + price;\n }\n return name + \" \" + quantity;\n }",
"@Override\r\n\tpublic String toString() {\r\n\t\tString toReturn = \"\";\r\n\t\ttoReturn = String.format(\"Warehouse Name: %s%nPhone Number: %s%nAddress: %s\", this.name, this.phone, this.address);\r\n\t\ttoReturn += String.format(\"%nInventory Stock:%n%-30s|%-15s|%-15s|%-20s|%-15s|%-10s\", \"Product Name\", \"Wholesale Cost\", \"Retail Price\", \"Product Category\", \"Quantity Sold\", \"In Stock\");\r\n\t\tIterator<Integer> productCodes = inventory.keySet().iterator();\r\n\t\twhile(productCodes.hasNext()) {\r\n\t\t\tint code = productCodes.next();\r\n\t\t\tint inStock = inventory.get(code);\r\n\t\t\tif(inStock >= 0) {\r\n\t\t\t\tfor(Product p : Data.productArr) {\r\n\t\t\t\t\tif(p.getID() == code) {\r\n\t\t\t\t\t\ttoReturn += \"\\n\" + p.toString() + \"|\" + inStock;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn toReturn;\r\n\t}",
"public String toString() {\n return \"\" + this.prodCode;\n }",
"String getProduct();",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductName() {\n return productName;\n }",
"public String getProductDescription() {\r\n/* 221 */ return this._productDescription;\r\n/* */ }",
"public String getProductName() {\r\n return productName;\r\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"Market [products=\" + products + \"]\";\n\t}",
"@Override\n\tpublic java.lang.String getDescription() {\n\t\treturn _buySellProducts.getDescription();\n\t}",
"public String productListForDetail() {\n return SUCCESS;\n }",
"@FXML\n\t private void setProdInfoToTextArea ( Product prod) {\n\t resultArea.setText(\"Denumire: \" + prod.getDenumire() + \"\\n\" +\"Producator: \" + prod.getProducator() + \"\\n\" + \"Pret: \" + prod.getPrice() + \"\\n\" + \"Marime: \" + prod.getMarime() + \"\\n\" + \"Culoare: \" + prod.getCuloare());\n\t }",
"public String toString(){\n return \"Codigo Produto: \"+this.idProduto+\n \"\\nNome do Produto \"+this.nomePro+\n \"\\nDescrição \"+this.descricao+\n \"\\nPreço: \"+this.preco;\n }",
"public String PrintProductInformation(int productId)\r\n {\r\n String productInformation = \"\";\r\n Double retail;\r\n boolean productFound = false;\r\n // check if product exists using id\r\n for (int i = 0; i < productArrayList.size(); i++)\r\n {\r\n if (productId == (productArrayList.get(i).getId()))\r\n {\r\n // set the retail price\r\n retail = (productArrayList.get(i).getCost() +\r\n (productArrayList.get(i).getMargin()*productArrayList.get(i).getCost()/100));\r\n // add product details to productInformation string\r\n productInformation += \"Id Name Cost Quantity Retail\\n\";\r\n productInformation += \"----------------------------------------------------\\n\";\r\n productInformation += productArrayList.get(i).getId() + \" \" + productArrayList.get(i).getName()\r\n + \" $\" + productArrayList.get(i).getCost() + \" \" + productArrayList.get(i).getQuantity() + \" $\"\r\n + retail;\r\n break;\r\n } else\r\n {\r\n System.out.println(\"Product not found.\");\r\n }\r\n }\r\n System.out.println(productInformation);\r\n return productInformation;\r\n }",
"private static void printProduct(int productId, Product product) {\r\n\t\tStringBuilder fixedProductName = generatePaddings(product.getName(), PRODUCT_NAME_LENGTH);\r\n\t\tStringBuilder fixedBrandName = generatePaddings(product.getBrand(), SHOP_NAME_LENGTH);\r\n\t\tStringBuilder fixedPriceName = generatePaddings(convertCentToDollar(product.getPriceInCent()), PRICE_LENGTH);\r\n\t\tStringBuilder fixedTopSalesNum = generatePaddings(product.getSalesTotalNum().toString(), TOP_SALES_LENGTH);\r\n\t\t\r\n\t\tif(productId < 10) {\r\n\t\t\tSystem.out.println(\" \" + productId + \"|\" + fixedProductName + \"|\"\r\n\t\t\t\t+ fixedBrandName + \"|\" + fixedPriceName + \"|\" + fixedTopSalesNum);\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\" \" + productId + \"|\" + fixedProductName + \"|\"\r\n\t\t\t\t\t+ fixedBrandName + \"|\" + fixedPriceName + \"|\" + fixedTopSalesNum);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void displayProducts() {\r\n\t\tSystem.out.println(\"All Products : \");\r\n\t\tfor(int i=0; i<currentBranchNumber; ++i) \r\n\t\t\tbranchs[i].displayProducts();\r\n\t}",
"public String getProductName() {\r\n\t\treturn productName;\r\n\t}",
"public String getDetailString()\n {\n short type = this.getType();\n StringBuffer buffer = new StringBuffer(PriceAdjustmentTypes.toString(type));\n switch(type)\n {\n case PriceAdjustmentTypes.SPLIT:\n buffer.append(\": \");\n buffer.append(this.getSplitNumerator()).append(\" for \").append(this.getSplitDenominator());\n break;\n // SYMBOL_CHANGE and MERGER only change the product symbol\n case PriceAdjustmentTypes.SYMBOL_CHANGE:\n case PriceAdjustmentTypes.MERGER:\n buffer.append(\": \");\n String symbol = getNewProductSymbol();\n if (symbol!=null && symbol.length() > 0)\n {\n buffer.append(\"New Symbol: \").append(symbol);\n }\n else\n {\n buffer.append(\"No Symbol Change.\");\n }\n break;\n case PriceAdjustmentTypes.DIVIDEND_CASH:\n buffer.append(\": \");\n buffer.append('$').append(this.getCashDividend().toString());\n break;\n case PriceAdjustmentTypes.DIVIDEND_STOCK:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append(\" shares.\");\n break;\n case PriceAdjustmentTypes.DIVIDEND_PERCENT:\n buffer.append(\": \");\n buffer.append(this.getStockDividend().toString()).append('%');\n break;\n case PriceAdjustmentTypes.COMMON_DISTRIBUTION:\n break;\n case PriceAdjustmentTypes.LEAP_ROLLOVER:\n break;\n default:\n break;\n }\n return buffer.toString();\n }",
"public java.lang.String getProductName() {\n return productName;\n }",
"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 java.lang.String getProductName () {\r\n\t\treturn productName;\r\n\t}",
"public static void displayProductsList(List list){\r\n Iterator iter = list.iterator();\r\n if (!iter.hasNext()){\r\n System.out.println(\"No products to display.\");\r\n return;\r\n }\r\n while (iter.hasNext()){\r\n Product product = (Product) iter.next();\r\n String msg = product.getSupplier().getName() + \"\\t\";\r\n msg += product.getName() + \"\\t\";\r\n msg += product.getPrice() + \"\\t\";\r\n msg += product.getDescription();\r\n System.out.println(msg);\r\n }\r\n }",
"public String getProductName() {\n\t\treturn productName;\n\t}",
"public static void main(String[] args) {\n\t Product a = new Product(123, \"Shiseido Face Cream\", 85.00 , 2);\r\n\t Product b = new Product(111, \"Chanel Perfume\", 65.00, 5);\r\n\t \r\n\t System.out.println(a.toString());\r\n\t System.out.println(b.toString());\r\n\t \r\n}",
"public static void display(){\n\n try {\n Connection myConnection = ConnectionFactory.getConnection();\n Statement stat = myConnection.createStatement();\n ResultSet rs = stat.executeQuery(\"SELECT * from product\");\n\n System.out.println(\"PRODUCT\");\n while(rs.next()){\n\n System.out.println(rs.getInt(\"id\") + \", \" + rs.getString(\"quantity\") + \", \" + rs.getString(\"productName\") + \", \" + rs.getDouble(\"price\")+ \", \" + rs.getString(\"deleted\"));\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n System.out.println();\n\n }",
"public ProductTextFile() {\n\t\t\n\t\t\tProduct item = new Product();\n\t\t\titem.setDescription(\"South West Exploration\");\n\t\t\titem.setCode(\"SWE\");\n\t\t\titem.setPrice(49.50);\n\t\t\t\n\t\t\tproducts.add(item);\n\t\t\t\n\t\t\tProduct product = new Product();\n\t\t\tproduct.setDescription(\"All The Stars\");\n\t\t\tproduct.setCode(\"ATS\");\n\t\t\tproduct.setPrice(13.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\t\tProduct book = new Product();\n\t\t\tbook.setDescription(\"Who Moved My Cheese?\");\n\t\t\tbook.setCode(\"WMC\");\n\t\t\tbook.setPrice(10.00);\n\t\t\t\n\t\t\tproducts.add(product);\n\t\t\t\n\t\n\t}",
"public String getName(){\n\t\treturn Name; // Return the product's name\n\t}",
"@Override\r\n\tpublic String toString() {\r\n\t\t\r\n\t\t// Variables declaration\r\n\t\t\r\n\t\tString output = null;\r\n\t\t\r\n\t\t// Data processing\r\n\t\t\r\n\t\toutput = String.format(\"\\n ID Veículo: %s\", idVeiculo != null ? idVeiculo.toString() : \"\");\r\n\r\n\t\toutput += String.format(\"\\n Placa: %s\", placaVeiculo != null ? placaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Modelo: %s\", modeloVeiculo != null ? modeloVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Marca: %s\", marcaVeiculo != null ? marcaVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Cor: %s\", corVeiculo != null ? corVeiculo : \"\");\r\n\t\t\r\n\t\toutput += String.format(\"\\n Acentos: %s\", acentosVeiculos != null ? acentosVeiculos : \"\");\r\n\t\t\r\n\t\t// Information output\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"public String getProductName(){\n return productRelation.getProductName();\n }",
"private RLabel getJavaProductLabel() {\n if (javaProductLabel == null) {\n javaProductLabel = new RLabel();\n javaProductLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/javaProduct\\\") %>\");\n javaProductLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n javaProductLabel.setName(\"javaProductLabel\");\n }\n return javaProductLabel;\n }",
"public void displayProductsMenu(ArrayList<Product> Products) {\n char A = 'A';\n for (Product p: Products) {\n System.out.println(A + \") \" + p.getName() + \" @ $\" + p.getPrice());\n A++; // counter to increment the ASCII of the character\n }\n }",
"public void showProductType() {\r\n System.out.println(\"This is a iPhone.\");\r\n }",
"public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }",
"public String toString() {\n return \"[Name: \" + itemName + \" Performance:\" + \" \" + itemAttribute + \" Price: \" + \" \" + itemPrice + \"]\";\n }",
"public String toString() {\n\t\treturn(\"\\nComputer Info:\" +\n\t\t\t \"\\nBrand: \" + brand +\n\t\t\t \"\\nModel: \" + model +\n\t\t\t \"\\nSN: \" + SN +\n\t\t\t \"\\nPrice: \" + price);\n\t}",
"@Override\n public String toString(){\n\n return \"\\n\\n\"+super.toString()+\",\" + \"Dni: \"+ this.dni +\",\"+ \" Nombre: \"+this.Nombre+\",\"+\" ciudad: \"\n +\", \"+\"Ubicacion: \"+this.ubicacion+\", \"+\"Tarjeta de Crédito: \"+this.tarjetaCredito+\", \"+\n \"\\nProductos en Venta{\"+this.productosEnVenta+\"}\"+\", \" + \"\\nProductos Vendidos{\"+this.productosVendidos+\"}\"+\n \", \"+\"\\nProductos Comprados{\"+this.productosComprados+\"}\";\n }",
"public String toString() {\n return getName() + \", \" + getAuthor() + \", \" + getPrice();\n }",
"@FXML\n\t private void populateAndShowProduct(Product prod) throws ClassNotFoundException {\n\t if (prod != null) {\n\t populateProduct(prod);\n\t setProdInfoToTextArea(prod);\n\t } else {\n\t resultArea.setText(\"This product does not exist!\\n\");\n\t }\n\t }",
"@Override\n public String toString() {\n String text = \"\";\n\n text += super.toString();\n text += \"Potatoes price per kilo: \" + potatoesPrice + \" €\"; \n return text;\n }",
"public void printProduct(int id)\n {\n Product product = findProduct(id);\n \n if(product != null) \n {\n System.out.println(product.toString());\n }\n }",
"public String render()\r\n/* 24: */ {\r\n/* 25:51 */ if (!this.init_flag)\r\n/* 26: */ {\r\n/* 27:52 */ this.init_flag = true;\r\n/* 28:53 */ return \"\";\r\n/* 29: */ }\r\n/* 30: */ try\r\n/* 31: */ {\r\n/* 32:56 */ ConnectorResultSet res = this.sql.get_variants(this.request);\r\n/* 33:57 */ return render_set(res);\r\n/* 34: */ }\r\n/* 35: */ catch (ConnectorOperationException e) {}\r\n/* 36:59 */ return \"\";\r\n/* 37: */ }",
"public String toString(){\n StringBuffer sb = new StringBuffer();\n sb.append(\"*****\" + title + \"*****\");\n sb.append( \"\\n\" + description + \"\\n\");\n sb.append(\"Business Contact: \" + contact + \"\\n\");\n sb.append(\"Supply List: \\n\");\n for (String s : supplies){\n sb.append(\"- \"+ s + \"\\n\");\n\n }\n sb.append(\"Price: $\" + price + \"\\n\");\n return sb.toString();\n }",
"private RLabel getDbProductLabel() {\n if (dbProductLabel == null) {\n dbProductLabel = new RLabel();\n dbProductLabel.setText(\"<%= ivy.cms.co(\\\"/Dialogs/about/databaseProduct\\\") %>\");\n dbProductLabel.setStyleProperties(\"{/insetsTop \\\"2\\\"}\");\n dbProductLabel.setName(\"dbProductLabel\");\n }\n return dbProductLabel;\n }",
"public String toString()\n {\n\n StringBuilder sb=new StringBuilder(ID+\":\");\n // sb.append(ID + \":\");\n //sb.append(\"\\n***************************************************\");\n sb.append(title +\"#\");\n sb.append(ASIN +\"#\");\n sb.append(salesrank +\"#\");\n sb.append(avgRating +\"#\");\n sb.append(productCategories +\"\\n\");\n //sb.append(\"\\n**************************************************\\n\\n\");\n return sb.toString();\n }",
"public String print() {\n\t\treturn new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)\n\t\t\t\t.append(\"ItemTemplate\", super.print())\n\t\t\t\t.append(\"smallCost\", smallCost)\n\t\t\t\t.append(\"mediumCost\", mediumCost)\n\t\t\t\t.append(\"bigCost\", bigCost)\n\t\t\t\t.append(\"largeCost\", largeCost)\n\t\t\t\t.append(\"weightPercent\", weightPercent)\n\t\t\t\t.append(\"armorType\", armorType)\n\t\t\t\t.toString();\n\t}",
"public String toString() {\n String ret = \"\\n*****\" + title + \"*****\" + \"\\n\" + description + \"\\nBusiness Contact: \" + contact\n + \"\\nSupply List: \";\n for (String supply : supplies) {\n ret += \"\\n-\" + supply;\n }\n ret += \"\\nPrice: $\" + price + \"\\n\";\n return ret;\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn this.getCaption()+\" \"+this.getDescription();\r\n\t}",
"public List<String> dispProduct(String id);",
"public String toString() {\n\t\treturn getUserName() + \" quote: \" + getProduct() + \" \" + buy.getPrice() + \" x \" + buy.getRemainingVolume() \n\t\t\t\t+ \" (Original Vol: \" + buy.getOriginalVolume() + \", CXL'd Vol: \" + buy.getCancelledVolume()\n\t\t\t\t+ \") [\" + buy.getId() + \"]\"+ \" - \" + sell.getPrice() + \" x \" + sell.getRemainingVolume()\n\t\t\t\t+ \" (Original Vol: \" + sell.getOriginalVolume() + \", CXL'd Vol: \" + sell.getCancelledVolume()\n\t\t\t\t+ \") [\" + sell.getId() + \"]\";\n\t}",
"protected String stringGoodsInfo() {\n String ret = \"Goods Supply\";\n for (G good : this.goods) {\n ret += \"\\nN = \" + good.supply;\n }\n return ret;\n }",
"public String displayShort(){\n return \"\\tId: \" + id + \"\\n\" +\n \"\\tName: \" + name + \"\\n\" +\n \"\\tDescription: \" + description + \"\\n\";\n }",
"@Override\n\tpublic String toString() {\n\t\tSystem.out.println(\"_____Fiction Book_____\");\n\t\treturn \"Title :\" + getTitle() + \"\\nPrice :$\" + getPrice() + \"\\n\";\n\t}",
"public void inventoryPrint() {\n System.out.println(\"Artifact Name: \" + name);\r\n System.out.println(\"Desc:\" + description);\r\n System.out.println(\"Value: \" + value);\r\n System.out.println(\"Mobility: \" + mobility); \r\n }",
"@Override\n\tpublic String toString() {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder\n\t\t\t\t.append(\"ID \").append(id).append(\"\\n\")\n\t\t\t\t.append(\"Date \").append(date).append(\"\\n\")\n\t\t\t\t.append(\"INVOICE_NUMBER \").append(invoiceNumber).append(\"\\n\")\n\t\t\t\t.append(\"CUSTOMER_ID \").append(customer.getId()).append(\"\\n\")\n\t\t\t\t.append(\"Name \").append(customer.getName()).append(\"\\n\")\n\t\t\t\t.append(\"Address \").append(customer.getAddress()).append(\"\\n\")\n\t\t\t\t.append(\"Products == \").append(\"\\n\");\n\t\tfor (Order o : orderList){\n\t\t\tstringBuilder\n\t\t\t\t\t.append(\"Product Manufac \").append(o.getManufacturer()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product model \").append(o.getModel()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product IEMI \").append(o.getImeiNumber()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product Rate \").append(o.getRate()).append(\"\\n\")\n\t\t\t\t\t.append(\"Product ID\").append(o.getP().getId()).append(\"\\n\");\n\t\t}\n\t\tstringBuilder.append(\"Payment Mode \").append(paymentMode).append(\"\\n\");\n\t\treturn stringBuilder.toString();\n\t}",
"public String getNameProd() {\n\t\treturn nameProd;\n\t}",
"public void display() {\n \t\tSystem.out.printf(\"|%6s \", String.valueOf(idNumber));\n\t\tSystem.out.printf(\"|%13s |\", name);\n\t\tSystem.out.printf(\"%10s |\", quantity);\n\t\tSystem.out.printf(\"%8.2f |\", price);\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.printf(\"%16s |\", \" \");\n\t\tSystem.out.println();\n }",
"@Override\r\n public String print(){\r\n String geneString = \"Customer: \" + getNode() + \", isVehicle: \" + getIsVehicle() + \", capacity:\" + getSize();\r\n return geneString;\r\n }",
"@Override\n\tpublic void printPriceDescription() {\n\t\tfor(IComponent obj:components) {\n\t\t\tobj.printPriceDescription();\n\t\t}\n\t\t\n\t}",
"public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}",
"public String toString()\r\n\t{\r\n\t\tString output = \" \";\r\n\t\tString specialModifier = \" \";\r\n\t\tif(this.isSpecial())\r\n\t\t{\r\n\t\t\tspecialModifier = \" *\";\r\n\t\t}\r\n\t\t\t\r\n\t\toutput = String.format(\"%-9s%-5s%-19s%s%.2f\",getType(), specialModifier, this.getName(),\"$ \", this.getPrice());\r\n\t\t//code to be done here\r\n\t\t\r\n\t\t\r\n\t\treturn output;\r\n\t}",
"void setProductDescription(java.lang.String productDescription);",
"public void show() {\n\t\t System.out.println(\"这是A型产品\"); \r\n\t}",
"public String getProductPackDesc() {\n return (String)getAttributeInternal(PRODUCTPACKDESC);\n }",
"public String toString() {\n\tString s = \"\";\n\tfor (int i = 0; i < productions.size(); i++) {\n\t s += \" \";\n\t Vector<String> prodVec = productions.get(i);\n\t for (int j = 0; j < prodVec.size(); j++) {\n\t\ts += prodVec.get(j) + \" \";\n\t }\n\t s += \"\\n\";\n\t}\n\treturn s;\n }",
"private static void displayItems()\n {\n System.out.println(\"\\n\\tCurrent List of Products in the Store:\\n\");\n for(Sales s : store)\n System.out.println(s.toString());\n }",
"public String toString() {\n return (\"Item: \" + itemCode + \" \" + itemName + \" \" + itemQuantityInStock + \" price: $\" + df.format(itemPrice) +\" cost: $\"+ df.format(itemCost) + \" farm supplier: \" + farmName);\n }",
"public String getDescription(){\n\t\treturn getiIngredient().getDescription() + \", \" + super.getDescription();\n\t}",
"public static String productList(List<Product> purchasedProductList) {\n\t\tString productList = \"* Description: \\t\\t\\t *\\n\";\n\t\tproductList += \"-----------------------------------\\n\";\n\t\tproductList += \"- Product\" + \" quantity\" + \"\\t price -\\n\";\n\t\tfor (Product registred : purchasedProductList)\n\t\t\tproductList += \"- \" + registred.getName() + \"\\t\\t\" + registred.getQuantity() + \"\\t \"\n\t\t\t\t\t+ (new DecimalFormat(\"# $,##0.00\").format(registred.grossPrice())) + \" -\" + \"\\n\";\n\t\tproductList += \"-----------------------------------\";\n\t\treturn productList;\n\t}"
] | [
"0.7251838",
"0.70198387",
"0.6890106",
"0.683313",
"0.66368586",
"0.65807694",
"0.64637023",
"0.64604634",
"0.64536196",
"0.6446917",
"0.64402384",
"0.63779646",
"0.63659185",
"0.6309963",
"0.6297137",
"0.6266195",
"0.6246264",
"0.6244983",
"0.6242299",
"0.624028",
"0.6219626",
"0.6219626",
"0.62173486",
"0.6215648",
"0.61665595",
"0.61604154",
"0.61594415",
"0.6136028",
"0.6128417",
"0.6114664",
"0.6084459",
"0.60546446",
"0.6046871",
"0.60447174",
"0.60156596",
"0.60100436",
"0.60100436",
"0.60100436",
"0.6000407",
"0.59931743",
"0.59732157",
"0.5954883",
"0.59448946",
"0.59400195",
"0.59331304",
"0.5907504",
"0.59071076",
"0.5895878",
"0.5874067",
"0.5873231",
"0.5866369",
"0.5862826",
"0.5856588",
"0.58289385",
"0.582096",
"0.58194447",
"0.57968867",
"0.5795848",
"0.57901496",
"0.5789858",
"0.57769495",
"0.5776707",
"0.57647306",
"0.5755974",
"0.5748383",
"0.57320493",
"0.57220656",
"0.56946117",
"0.567508",
"0.56743306",
"0.5665648",
"0.56621844",
"0.56558853",
"0.56543726",
"0.56480056",
"0.5647097",
"0.56370103",
"0.563549",
"0.56270784",
"0.56263024",
"0.5613931",
"0.56006175",
"0.5587673",
"0.55828804",
"0.5580667",
"0.5580261",
"0.5578805",
"0.5565304",
"0.5562342",
"0.5556825",
"0.55503255",
"0.5547068",
"0.55171156",
"0.55059046",
"0.5505158",
"0.54953843",
"0.5491389",
"0.54848623",
"0.5480167",
"0.54775625"
] | 0.7383113 | 0 |
Examine if a quantity is a valid product quantity. | public static boolean isValidQuantity(int productQuantity) {
return productQuantity >= 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }",
"boolean hasQuantity();",
"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}",
"final boolean isValidCartQty() {\n Map<Integer, ReturnedItemDTO> cartMap = returnTable.getIdAndQuantityMap();\n for (Entry<Integer, ReturnedItemDTO> entry : cartMap.entrySet()) {\n ReturnedItemDTO ret = entry.getValue();\n int qty = ret.qty;\n int damageStatus = ret.damageStatus;\n if (qty > 0 && damageStatus > 0) {\n return true;\n }\n }\n return false;\n\n }",
"@And(\"^price is correctly calculated based on quantity \\\"([^\\\"]*)\\\"$\")\n public void priceIsCorrectlyCalculated(int quantity) {\n totalPrice = productPage.getTotalPrice();\n Assert.assertTrue(productPage.getPricePerUnit() * quantity == productPage.getTotalPrice());\n }",
"private void validateQuantity() {\n if (numQuantity.isEmpty()) {\n numQuantity.setErrorMessage(\"This field cannot be left blank.\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n // Check that quantity is in acceptable range (range check)\n else if (!validator.checkValidQuantity(numQuantity.getValue().intValue())) {\n numQuantity.setErrorMessage(\"Please enter a number between 1 and \" + researchDetails.MAX_QUANTITY + \" (inclusively)\");\n numQuantity.setInvalid(true);\n removeValidity();\n }\n\n }",
"public static final boolean consumeQuantity(String productKey, int quantity) {\n\t\tInteger tValue = sConsumableProducts.get(productKey);\n\t\tif (tValue == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tint tQuantity = tValue.intValue();\n\t\t\ttQuantity -= quantity;\n\t\t\tif (tQuantity > 0) {\n\t\t\t\tsConsumableProducts.put(productKey, new Integer(tQuantity));\n\t\t\t} else {\n\t\t\t\tsConsumableProducts.remove(productKey);\n\t\t\t}\n\t\t\treturn tQuantity >= 0;\n\t\t}\n\t}",
"boolean isSetValueQuantity();",
"public boolean isSetQuantity()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(QUANTITY$10) != 0;\n }\n }",
"private int validateQuantity(String aQuantity) {\n\t\tString theAction;\n\t\tint amount = 0;\n\t\ttry {\n\t\t\tamount = Integer.parseInt(aQuantity); // Convert\n\t\t\tif (amount < 0)\n\t\t\t\tthrow new NumberFormatException(\"-ve\");\n\t\t} catch (Exception err) {\n\t\t\ttheAction = \"Invalid quantity\";\n\t\t\tsubscriber.onNext(theAction);\n\t\t\treturn 0;\n\t\t}\n\t\treturn amount;\n\t}",
"public static boolean isValidQuantity(String test) {\n try {\n return Integer.parseInt(test) <= MAX_QUANTITY\n && Integer.parseInt(test) >= MIN_QUANTITY\n && test.matches(VALIDATION_REGEX);\n } catch (NumberFormatException e) {\n return false;\n }\n }",
"private boolean isSquareQuantityValid() {\n int blueSquares = 0;\n int yellowSquares = 0;\n int greenSquares = 0;\n int whiteSquares = 0;\n int orangeSquares = 0;\n int redSquares = 0;\n\n for (RubiksFace face : rubiksFaceList) {\n for (RubiksColor color : face.getRubiksColors()) {\n switch(color) {\n case RED:\n redSquares++;\n break;\n case GREEN:\n greenSquares++;\n break;\n case BLUE:\n blueSquares++;\n break;\n case YELLOW:\n yellowSquares++;\n break;\n case ORANGE:\n orangeSquares++;\n break;\n case WHITE:\n whiteSquares++;\n break;\n }\n }\n }\n\n System.out.println(\"BLUE: \" + blueSquares);\n System.out.println(\"YELLOW: \" + yellowSquares);\n System.out.println(\"GREEN: \" + greenSquares);\n System.out.println(\"WHITE: \" + whiteSquares);\n System.out.println(\"ORANGE: \" + orangeSquares);\n System.out.println(\"RED: \" + redSquares);\n\n return (blueSquares == 9 && yellowSquares == 9 && greenSquares == 9 && whiteSquares == 9 && orangeSquares == 9 && redSquares == 9);\n }",
"public boolean checkQuantity(Integer numToRemove) {\n return this.quantity >= numToRemove;\n }",
"public boolean checkInventory(int serialNum, int qty){\n \n //create a boolean var and set to false- change to true only if there is enough of requested inventory\n boolean enoughInventory = false;\n \n //loop through all Inventory\n for(int i=0; i<this.items.size(); i++){\n //check if inventoryItem has matching serialNumber with specified serialNum\n if(this.items.get(i).getSerialNum()==serialNum){\n //if serial numbers match, check if inventoryItem has enough in stock for requested order\n if(this.items.get(i).getQty() >= qty){\n enoughInventory = true; //if quantity in inventory is greater than or equal to requested quantity there is enough\n }\n }\n }\n \n //return enoughInventory- will be false if no serial number matched or if there was not enough for requested qty\n return enoughInventory;\n \n }",
"protected void validate() {\n\t\tString quantity=editText.getText().toString().trim();\n\t\tif(quantity.length()==0){\n\t\t\tAlertUtils.showToast(mContext, \"Enter quantity\");\n\t\t\treturn;\n\t\t}else if(!isValidNumber(quantity)){\n\t\t\tAlertUtils.showToast(mContext, \"Enter valid quantity\");\n\t\t\treturn;\n\t\t}\n//\t\tif(((HomeActivity)mContext).checkInternet())\n//\t\t\tdialogCallback.setQuantity(item);\n\t}",
"public int checkProduct(int PID, int Quantity) throws Exception {\n\t\tconnect();\n\t\tStatement s= con.createStatement(); \n\t\tProperties id = new Properties(); \n\t\tMyIdentity.setIdentity( id );\n\n\t\ts.executeQuery(\"USE \"+ id.getProperty(\"database\"));\n\t\tResultSet result = s.executeQuery(\"SELECT \\r\\n\" + \n\t\t\t\t\" Discontinued\\r\\n\" + \n\t\t\t\t\"FROM\\r\\n\" + \n\t\t\t\t\" products\\r\\n\" + \n\t\t\t\t\"WHERE\\r\\n\" + \n\t\t\t\t\" ProductID = \" + PID); \n\t\t\n\t\t// Checks whether product exist in the table\n\t\tif(!result.next()) {\n\t\t\treturn 2;\n\t\t}\n\t\t\n\t\t// Checks for discontinued products\n\t\tif(result.getInt(\"Discontinued\") == 1) {\n\t\t\treturn 3;\n\t\t}\n\n\t\tcon.close();\n\t\treturn 1;\n\t}",
"private int checkItemQuantity() {\n\n int desiredQuantity = initialQuantity;\n MenusItem tempItem = null;\n tempItem = ItemCart.getInstance().checkItem(menusItem);\n\n if(tempItem != null){\n desiredQuantity = tempItem.getDesiredQuantity();\n }\n\n\n return desiredQuantity;\n }",
"@Override\r\n public boolean removeProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n\r\n //checks if quantity value is invalid or if not enough stocks\r\n if (quantity <= 0 || stock < quantity) {\r\n this.productQuantity.set(i, 0);\r\n return true;\r\n }\r\n this.productQuantity.set(i, stock - quantity);\r\n return true;\r\n }\r\n i++;\r\n }\r\n return false;\r\n }",
"boolean isCartValid();",
"public void setQuantity(String quantity) {\n this.quantity = quantity;\n }",
"public static boolean validatorCatalogItemInput(String title, String author, String year, String quantity) throws InputException {\n boolean valid;\n if (title.length() == 0 || author.length() == 0 || year.length() == 0 || quantity.length() == 0) {\n throw new InputException(MessageManager.EMPTY_FIELD_VALID_MESSAGE);\n }\n if (!checkWithRegex(title, PATTERN_STRING_LENGTH45)) {\n throw new InputException(MessageManager.INCORRECT_TITLE_VALID_MESSAGE);\n }\n if (!checkWithRegex(author, PATTERN_STRING_LENGTH45)) {\n throw new InputException(MessageManager.INCORRECT_AUTHOR_VALID_MESSAGE);\n }\n if (!checkWithRegex(year, PATTERN_YEAR)) {\n throw new InputException(MessageManager.INCORRECT_YEAR_VALID_MESSAGE);\n }\n if (!checkWithRegex(quantity, PATTERN_DIGIT)) {\n throw new InputException(MessageManager.INCORRECT_QUANTITY_VALID_MESSAGE);\n }\n valid = true;\n return valid;\n }",
"public void shoppingCartTC008PriceDisplayValidation(String totalitemQty) {\n Assert.assertEquals(totalitemQty, ITEM_COUNT_ON_SHOPPING_CART.getText());\n }",
"boolean isQuantiteProduitDisponible(ProduitFormateUnite produitFormateUnite, int quantite);",
"private void checkProductAvailability()\n\t{\n\n\t\tprodMsg = \"\";\n\t\tcartIsEmpty = false;\n\n\t\tMap <String,Product> products = getProducts();\n\n\t\tint qtyRequested, qtyAvailable;\n\n\t\t// Check for unavailable products\n\t\tfor ( Product p : shoppingCart.getProducts().keySet() )\n\t\t{\n\t\t\tfor ( String s : products.keySet() )\n\t\t\t{\n\t\t\t\tif ( products.get(s).getName().equals(p.getName()) )\n\t\t\t\t{\n\t\t\t\t\t// Modify product to write to file\n\t\t\t\t\tqtyRequested = shoppingCart.getProducts().get(p);\n\t\t\t\t\tqtyAvailable = products.get(s).getQtyAvailable();\n\n\t\t\t\t\tif ( qtyAvailable < qtyRequested )\n\t\t\t\t\t\tunavailableProds.put(p, new ArrayList <>(Arrays.asList(qtyRequested, qtyAvailable)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Show warning\n\t\tif ( !unavailableProds.isEmpty() )\n\t\t{\n\t\t\tprodMsg = \"The cart products were not available anymore in the requested quantity, only the available quantity has been bought:\\n\\n\";\n\n\t\t\tfor ( Product p : unavailableProds.keySet() )\n\t\t\t{\n\t\t\t\tprodMsg += p.getName() + \": requested: \" + unavailableProds.get(p).get(0) + \", available: \"\n\t\t\t\t\t\t+ unavailableProds.get(p).get(1) + \"\\n\";\n\n\t\t\t\tif ( unavailableProds.get(p).get(1) == 0 )\n\t\t\t\t\tshoppingCart.removeProduct(p);\n\t\t\t\telse\n\t\t\t\t\tshoppingCart.getProducts().replace(p, unavailableProds.get(p).get(1));\n\t\t\t}\n\n\t\t\tif ( shoppingCart.getProducts().size() == 0 )\n\t\t\t{\n\t\t\t\tcartIsEmpty = true;\n\t\t\t\tprodMsg = \"All of your products were not available anymore for purchase: payment cancelled.\\nPlease select some new products.\";\n\t\t\t}\n\t\t}\n\t}",
"public double validation(Product prod){\n if((wbu)>(Double.parseDouble(prod.getMaxWeight())))\n return Double.parseDouble(prod.getPrice());\n return 0;\n }",
"public void validateRpd3s11()\n {\n // <q> is not allowed.\n assertFalse(Type.ERROR, \"rpd3s11.quotation\", containsElement(\"q\"));\n }",
"private void verifyLiquidAmount(List<Liquid> liquids) {\n if (liquids.isEmpty())\n throw new ValidationException(\"A cocktail needs at least one liquid.\");\n }",
"public void stateForUnavailableItems_InMiniCart() {\n int count = 0;\n List<WebElement> itemInMiniCart = getDriver().findElements(By.xpath(\"//*[@id='itemList']//li\"));\n for (WebElement unavailable : itemInMiniCart) {\n if (count != itemInMiniCart.size()) {\n if (!String.valueOf(unavailable.getAttribute(\"class\")).contains(\"outofstock\")) {\n continue;\n }\n count++;\n System.out.println(\"unavailable ===>> \" + String.valueOf(unavailable.findElement(By.xpath(\"//*[@class='productNameInner']\")).getText()));\n WebElement childQtyStepper = unavailable.findElement(By.xpath(\".//*[@class='mjr-qtyButton plus noSelect']\"));\n Assert.assertFalse(\"Verify Qty Stepper NOT displayed for Unavailable Product via Mini-Cart\", (childQtyStepper.isDisplayed()));\n }\n }\n System.out.println(\"=== Total Number of Products [\" + itemInMiniCart.size() + \"]\");\n System.out.println(\"=== Number of Unavailable Products In Mini-Cart [\" + count + \"]\");\n Assert.assertEquals(\"Verify there is at least one (1) unavailable product \", 1, count);\n }",
"public void setQuantity(java.math.BigDecimal quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(java.math.BigDecimal quantity) {\r\n this.quantity = quantity;\r\n }",
"public boolean hasValidUnitNum() {\n return getTotalUnits() <= 22;\n }",
"private boolean checkStock(){\n int i;\n int inventorySize = inventory.size();\n int count = 0;\n for(i = 0; i < inventorySize; i++){\n count = count + inventory.get(i).getStock();\n\n }\n //System.out.println(\"Count was: \" + count);\n if(count < 1){\n return false;\n }else{\n return true;\n }\n }",
"boolean isQuantification(Formula f);",
"@Test\r\n public void testGetQuantidadeValido() {\r\n PapelMoeda instance = new PapelMoeda(100, 100);\r\n int expResult = 100;\r\n int result = instance.getQuantidade();\r\n assertEquals(expResult, result);\r\n }",
"public int updateProductQuantity(String product, int quantity) {\n Collection<String> collection = shoppingBasket.keySet();\n\n for (String key : collection) {\n if (key != null) {\n if (product.equals(key) == true) {\n // нашли наше значение равное ключу\n // кладутся новые значения\n shoppingBasket.put(product, quantity);\n return 1;\n } else {\n return 0;\n }\n }\n }\n return 0;\n }",
"public void verifyToCart() {\n if (priceText.getText().equalsIgnoreCase(\"$0.00\")) {\n Assert.fail();\n System.out.println(\"No products have been added to your cart.\");\n\n\n } else\n System.out.println(\"\\n\" +\n \"The product has been successfully added to the Cart.\" + \"\\n\" + \"Total Price: \" + priceText.getText());\n\n }",
"@Schema(description = \"Number of units consumed\")\n public Long getQuantity() {\n return quantity;\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(Integer quantity) {\r\n this.quantity = quantity;\r\n }",
"private void buyProduct() {\n\t\tSystem.out.println(\"Enter Number of Product :- \");\n\t\tint numberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\twhile (!StoreController.getInstance().isValidNumberOfProduct(\n\t\t\t\tnumberOfProduct)) {\n\t\t\tSystem.out.println(\"Enter Valid Number of Product :- \");\n\t\t\tnumberOfProduct = getValidInteger(\"Enter Number of Product :- \");\n\t\t}\n\t\tfor (int number = 1; number <= numberOfProduct; number++) {\n\t\t\tSystem.out.println(\"Enter \" + number + \" Product Id\");\n\t\t\tint productId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\twhile (!StoreController.getInstance().isValidProductId(productId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id\");\n\t\t\t\tproductId = getValidInteger(\"Enter \" + number + \" Product Id\");\n\t\t\t}\n\t\t\tSystem.out.println(\"Enter product Quantity\");\n\t\t\tint quantity = getValidInteger(\"Enter product Quantity\");\n\t\t\tCartController.getInstance().addProductToCart(productId, quantity);\n\t\t}\n\t}",
"@Override\r\n\tpublic void validate(Product p) throws CustomBadRequestException {\r\n\t\tif(p.getName() == null || p.getName().equals(\"\") || p.getBarcode() == null || p.getBarcode().equals(\"\") || p.getMeasure_unit() == null ||\r\n\t\t\t\tp.getMeasure_unit().equals(\"\") || p.getQuantity() == null || p.getQuantity().equals(\"\")|| p.getBrand() == null || p.getBrand().equals(\"\")){\r\n\t\t\tthrow new CustomBadRequestException(\"Incomplete Information about the product\");\r\n\t\t}\r\n\r\n\t\tString eanCode = p.getBarcode();\r\n\t\tString ValidChars = \"0123456789\";\r\n\t\tchar digit;\r\n\t\tfor (int i = 0; i < eanCode.length(); i++) { \r\n\t\t\tdigit = eanCode.charAt(i); \r\n\t\t\tif (ValidChars.indexOf(digit) == -1) {\r\n\t\t\t\tthrow new CustomBadRequestException(\"Invalid Barcode\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Add five 0 if the code has only 8 digits\r\n\t\tif (eanCode.length() == 8 ) {\r\n\t\t\teanCode = \"00000\" + eanCode;\r\n\t\t}\r\n\t\t// Check for 13 digits otherwise\r\n\t\telse if (eanCode.length() != 13) {\r\n\t\t\tthrow new CustomBadRequestException(\"Invalid Barcode\");\r\n\t\t}\r\n\r\n\t\t// Get the check number\r\n\t\tint originalCheck = Integer.parseInt(eanCode.substring(eanCode.length() - 1));\r\n\t\teanCode = eanCode.substring(0, eanCode.length() - 1);\r\n\r\n\t\t// Add even numbers together\r\n\t\tint even = Integer.parseInt((eanCode.substring(1, 2))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(3, 4))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(5, 6))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(7, 8))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(9, 10))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(11, 12))) ;\r\n\t\t// Multiply this result by 3\r\n\t\teven *= 3;\r\n\r\n\t\t// Add odd numbers together\r\n\t\tint odd = Integer.parseInt((eanCode.substring(0, 1))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(2, 3))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(4, 5))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(6, 7))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(8, 9))) + \r\n\t\t\t\tInteger.parseInt((eanCode.substring(10, 11))) ;\r\n\r\n\t\t// Add two totals together\r\n\t\tint total = even + odd;\r\n\r\n\t\t// Calculate the checksum\r\n\t\t// Divide total by 10 and store the remainder\r\n\t\tint checksum = total % 10;\r\n\t\t// If result is not 0 then take away 10\r\n\t\tif (checksum != 0) {\r\n\t\t\tchecksum = 10 - checksum;\r\n\t\t}\r\n\r\n\t\t// Return the result\r\n\t\tif (checksum != originalCheck) {\r\n\t\t\tthrow new CustomBadRequestException(\"Invalid Barcode\");\r\n\t\t}\r\n\r\n\t\tif(Float.parseFloat(p.getQuantity()) <= 0){\r\n\t\t\tthrow new CustomBadRequestException(\"Invalid Quantity\");\r\n\t\t}\r\n\r\n\r\n\t}",
"public boolean isItemValid(ItemStack par1ItemStack)\n {\n return true;\n }",
"public void setQuantity(Float quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity)\n\t{\n\t\tthis.quantity = quantity;\n\t}",
"protected int checkRowForAdd(GenericValue reservation, String orderId, String orderItemSeqId, String shipGroupSeqId, String productId,\n BigDecimal quantity) {\n // check to see if the reservation can hold the requested quantity amount\n String inventoryItemId = reservation.getString(\"inventoryItemId\");\n BigDecimal resQty = reservation.getBigDecimal(\"quantity\");\n VerifyPickSessionRow pickRow = this.getPickRow(orderId, orderItemSeqId, shipGroupSeqId, productId, inventoryItemId);\n\n if (pickRow == null) {\n if (resQty.compareTo(quantity) < 0) {\n return 0;\n } else {\n return 2;\n }\n } else {\n BigDecimal newQty = pickRow.getReadyToVerifyQty().add(quantity);\n if (resQty.compareTo(newQty) < 0) {\n return 0;\n } else {\n pickRow.setReadyToVerifyQty(newQty);\n return 1;\n }\n }\n }",
"MeasureType getQuantity();",
"private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }",
"public void setQuantity(int quantity) {\r\n\t\tthis.quantity = quantity;\r\n\t}",
"public void setQuantity(int quantity) {\n\t\tthis.quantity = quantity;\n\t}",
"private boolean isInputValid(){\n\t\tString errorMessage = \"\";\n\t\tif((nameField.getText() == null) || (nameField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid product name!\\n\";\n\t\t}\n\t\tif((amountAvailableField.getText() == null) || (amountAvailableField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount available value!\\n\";\n\t\t}\n\t\tif((amountSoldField.getText() == null) || (amountSoldField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid amount sold value!\\n\";\n\t\t}\n\t\tif((priceEachField.getText() == null) || (priceEachField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price for each!\\n\";\n\t\t}\n\t\tif((priceMakeField.getText() == null) || (priceMakeField.getText().length() == 0)){\n\t\t\terrorMessage += \"No valid price to make the product!\\n\";\n\t\t}\n\t\tif(errorMessage.length() == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}",
"public void setQuantity(int quantity) {\r\n if (quantity >= 0) {\r\n this.quantity = quantity;\r\n }\r\n else {\r\n System.out.print(\"Sorry no negative quantities -- setting to 1\");\r\n this.quantity = 1;\r\n }\r\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public void setQuantity(int quantity) {\n this.quantity = quantity;\n }",
"public boolean validarProducto(String codigo) {\r\n return (Utils.countVowels(codigo) <= AppConfig.numMaxVocales);\r\n }",
"public void setQuantity(int quantity) {\r\n this.quantity = quantity;\r\n }",
"public boolean checkExist(String itemName, int Qty) {\n\n for (int i = 0; i < inventory.size(); i++) {\n Map<String, Object> newItem = new HashMap<>();\n newItem = inventory.get(i);\n if (itemName.equals(newItem.get(\"Name\").toString())) {\n int a = Integer.parseInt((String) newItem.get(\"Amount\"));\n //isInList = true;\n if (a >= Qty) {\n isExist = true;\n break;\n } else {\n isExist = false;\n }\n } else {\n isExist = false;\n }\n\n }\n return isExist;\n\n }",
"public boolean validateContainsAtLeastOneItem(PurchasingDocument purDocument) {\n boolean valid = false;\n for (PurApItem item : purDocument.getItems()) {\n if (!((PurchasingItemBase) item).isEmpty() && item.getItemType().isLineItemIndicator()) {\n\n return true;\n }\n }\n String documentType = getDocumentTypeLabel(purDocument.getDocumentHeader().getWorkflowDocument().getDocumentTypeName());\n\n if (!valid) {\n GlobalVariables.getMessageMap().putError(PurapConstants.ITEM_TAB_ERROR_PROPERTY, PurapKeyConstants.ERROR_ITEM_REQUIRED, documentType);\n }\n\n return valid;\n }",
"void setQuantity(int quantity) throws NegativeNumberException {\n if (quantity <= 0) {\n throw new NegativeNumberException(\"Negative number.Try again.\");\n }\n this.quantity = quantity;\n }",
"public void testIsProduct() {\n // C-terminal cleavage.\n Enzyme e = new Enzyme(\"Test\", \"KR\", \"P\", \"Cterm\", 1);\n Protein p = new Protein(\">Test Protein.\\nLENNARTMARTENS\");\n\n // A non-enzymatic product by sequence and subsequently by (human readable!) indices.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), \"ENN\"));\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), 2, 4));\n\n // A half enzymatic sequence (N-terminal), also with the true N-terminus included.\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), \"TMARTE\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), 7, 12));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), \"LEN\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), 1, 3));\n\n // A half enzymatic sequence (C-terminal), also with the true C-terminus included.\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), \"NNAR\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), 3, 6));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), \"RTENS\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(p.getSequence().getSequence(), 10, 14));\n\n // Check the correct behaviour when multiple occurrences take place.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"LGHJKLIGHKL\", \"GH\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"GHJKLIGHKL\", \"GH\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"FTTRGHJKLIGHKL\", \"GH\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"FTTGKLIGKPL\", \"GK\"));\n Assert.assertEquals(Enzyme.FULLY_ENZYMATIC, e.isEnzymaticProduct(\"FTTRGKLIGKPL\", \"GK\"));\n\n // Now check the correct handling of restriction locations.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGRPLMM\", \"PHVVGR\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRHVVGRPLMM\", \"HVVGR\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"HVVGRPLMM\", \"HVVGR\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGR\", \"PHVVGR\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGRLMM\", \"PHVVGR\"));\n Assert.assertEquals(Enzyme.FULLY_ENZYMATIC, e.isEnzymaticProduct(\"LGHRHVVGRLMM\", \"HVVGR\"));\n\n // N-terminal cleavage.\n e = new Enzyme(\"Test2\", \"KR\", \"P\", \"Nterm\", 1);\n\n // A non-enzymatic product.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"KARVAL\", \"ARVA\"));\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"KARVAL\", 2, 5));\n\n // A half enzymatic sequence (N-terminal), also with the true N-terminus included.\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", \"KARV\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", 3, 6));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"ARVAL\", \"ARV\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"ARVAL\", 1, 3));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"KARVAL\", \"KARV\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"KARVAL\", 1, 4));\n\n\n // A half enzymatic sequence (C-terminal), also with the true C-terminus included.\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", \"LKA\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", 2, 4));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", \"VAL\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVAL\", 6, 8));\n\n // Check the correct behaviour when multiple occurrences take place.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVALGHGHGLKARVRAL\", \"LKARV\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"GHKARVALGHKARVAL\", \"KARV\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVALGHGHLKARPAL\", \"LKA\"));\n Assert.assertEquals(Enzyme.FULLY_ENZYMATIC, e.isEnzymaticProduct(\"LLKARVALGHGHLKARPAL\", \"KA\"));\n\n // Now check the correct handling of restriction locations.\n Assert.assertEquals(Enzyme.ENTIRELY_NOT_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGRPLMM\", \"RPHVVG\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRHVVGRPLMM\", \"RHVVG\"));\n Assert.assertEquals(Enzyme.N_TERM_ENZYMATIC, e.isEnzymaticProduct(\"HVVGRPLMM\", \"HVVG\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGR\", \"RPHVVG\"));\n Assert.assertEquals(Enzyme.C_TERM_ENZYMATIC, e.isEnzymaticProduct(\"LGHRPHVVGRLMM\", \"RPHVVG\"));\n Assert.assertEquals(Enzyme.FULLY_ENZYMATIC, e.isEnzymaticProduct(\"LGHRHVVGRLMM\", \"RHVVG\"));\n\n // Test exception handling.\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", \"FILIBERKE\");\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence 'FILIBERKE' in 'LENNARTMARTENS' for 'isEnzymaticProduct(String, String)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", \"FILIBERKE\");\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence 'FILIBERKE' in 'LENNARTMARTENS' for 'isEnzymaticProduct(String, String)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", -1, 12);\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence indices (-1, 12) and 'LENNARTMARTENS' for 'isEnzymaticProduct(String, int, int)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", 1, -1);\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence indices (1, -1) and 'LENNARTMARTENS' for 'isEnzymaticProduct(String, int, int)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", 3, 2);\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence indices (3, 2) and 'LENNARTMARTENS' for 'isEnzymaticProduct(String, int, int)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", 6, 15);\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence indices (6, 15) and 'LENNARTMARTENS' (last char at 14) for 'isEnzymaticProduct(String, int, int)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n try {\n e.isEnzymaticProduct(\"LENNARTMARTENS\", 6, 129);\n fail(\"No IllegalArgumentException thrown when confronting an Enzyme with subsequence indices (6, 129) and 'LENNARTMARTENS' (last char at 14) for 'isEnzymaticProduct(String, int, int)'!\");\n } catch(IllegalArgumentException iae) {\n // Perfect.\n }\n }",
"public boolean inStock(String title, int quantity) {\n // Search for the book...if found, adjust the quantity. \n // otherwise, Book not in the BookStore.\n for (int i =0; i<books.length; i++) \n {\n if (title.equals(books[i].getTitle())) \n {\n if (quantity <= books[i].getQuantity()) \n {\n return true;\n }\n else \n {\n return false;\n }\n }\n }\n return false;\n\n }",
"@Test\n\tpublic void orderingBadItemsThrowsException() {\n\t\tItemQuantity wrongItem = new ItemQuantity(201, 5);\n\t\tList<ItemQuantity> wrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\tOrderStep wrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\tboolean exceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t\t\n\t\t/* \n\t\t * Check that items with negative quantity get rejected \n\t\t */\n\t\twrongItem = new ItemQuantity(101, -5);\n\t\twrongItemQuantities = new ArrayList<ItemQuantity>();\n\t\twrongItemQuantities.add(wrongItem);\n\t\t\n\t\twrongStep = new OrderStep(1, wrongItemQuantities);\n\t\t\n\t\texceptionWasThrown = false;\n\t\ttry {\n\t\t\titemSupplier.executeStep(wrongStep);\n\t\t}\n\t\tcatch (OrderProcessingException ex) {\n\t\t\texceptionWasThrown = true;\n\t\t}\n\t\tassertTrue(exceptionWasThrown);\n\t}",
"public void setQuantity(Long quantity) {\n this.quantity = quantity;\n }",
"BigDecimal getQuantity();",
"@Test\r\n\tpublic void testUpdateQuantity() throws IdNotContainedException { \r\n\t\tint initialQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t int expectedQuantity = 2;\r\n\t processOrder.updateItemQuantity(currentOrder);\r\n\t int actualQuantity = menu.findItemId(\"DES006\").getQuantity();\r\n\t String message =\"Value updated succesfully\";\r\n\t\tassertEquals(message, actualQuantity, expectedQuantity ); \r\n assertTrue(actualQuantity > initialQuantity); //make sure that when updating the value has increased\r\n\r\n\t}",
"public boolean alertCriticalQuantity(Medical medicalSelected, int specifiedQuantity) {\r\n\t\ttry {\r\n\t\t\tMedical medical = ioOperationsMedicals.getMedical(medicalSelected.getCode());\r\n\t\t\tdouble totalQuantity = medical.getTotalQuantity();\r\n\t\t\tdouble residual = totalQuantity - specifiedQuantity;\t\t\t\r\n\t\t\treturn residual < medical.getMinqty();\r\n\t\t} catch (OHException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Test\n public void verifyNoOfferApplied() {\n \tProduct product = new Product(\"Watermelon\", 0.8);\n \tProduct product2 = new Product(\"Apple\", 0.2);\n \tProduct product3 = new Product(\"Orange\", 0.5);\n \tBasket basket = new Basket();\n \tbasket.getProducts().put(product, 2);\n \tbasket.getProducts().put(product2, 1);\n \tbasket.getProducts().put(product3, 5);\n \tassertTrue(\"Have to get the price of 8 items = 4.3 ==> \", (calculator.calculatePrice(basket) - 4.3) < 0.0001);\n }",
"public void doCheck(String productNum) {\n\t\tpn = productNum.trim(); // Product no.\n\t}",
"public String getQuantity() {\n return quantity;\n }",
"private void validate(final CartDto cartDto) throws BadRequestException {\n if (cartDto.getSkuCode() == null || \"\".equals(cartDto.getSkuCode())) {\n LOG.info(\"Sku code is mandatory.\");\n throw new BadRequestException(\"Sku code is mandatory\");\n }\n if (cartDto.getQuantity() <= 0) {\n LOG.info(\"Quantity must be 1 or greater.\");\n throw new BadRequestException(\"Quantity must be 1 or greater\");\n }\n }",
"private boolean inventoryValid(int min, int max, int stock) {\n\n boolean isValid = true;\n\n if (stock < min || stock > max) {\n isValid = false;\n AlartMessage.displayAlertAdd(4);\n }\n\n return isValid;\n }",
"public void verifyProductDetailAttribute(String Sku, String totalGemAmount, String MetalType, String height, String width,\r\n\r\n\t\t\tString MetalWeight, String Catagory, String TypeOfProduct, String DiamondShape, String NoOfDiamonds,\r\n\r\n\t\t\tString Collection, String GemstoneType, String GemstoneShape, String NoOfGemstones, String TotalGemWeight,\r\n\r\n\t\t\tString TotalDiamondWeight, Product productItms) {\n\r\n\t\tif (productItms.getTGemAmount() != null && !productItms.getTGemAmount().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tString actualTGemAmount = utility.converPrice(productItms.getTGemAmount());\r\n\r\n\t\t\tif (!(actualTGemAmount.trim().toUpperCase().equals(totalGemAmount.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"totalGemAmount\", finalResult.get(\"totalGemAmount\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(totalGemAmount, finalResult.get(\"totalGemAmount\") & false);\r\n\r\n\t\t\ttotalGemAmount = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Metal type\r\n\r\n\t\tif (productItms.getmetalPurity() != null && !productItms.getmetalPurity().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tString actualmetalPurity = productItms.getmetalPurity();\r\n\r\n\t\t\tif (!(actualmetalPurity.trim().toUpperCase().equals(MetalType.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"MetalType\", finalResult.get(\"MetalType\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(MetalType, finalResult.get(\"MetalType\") & false);\r\n\r\n\t\t\tMetalType = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// Verification of height of the product page\r\n\r\n\t\tif (productItms.getHeight() != null && !productItms.getHeight().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tString actualHeight = utility.convertDecimal(productItms.getHeight());\r\n\r\n\t\t\tString expectedHeight = utility.convertDecimal(height);\r\n\r\n\t\t\tif (!(actualHeight.trim().toUpperCase().equals(expectedHeight.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"height\", finalResult.get(\"height\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse if (height == \"0\")\r\n\r\n\t\t{\r\n\r\n\t\t\theight = \"N/A\";\r\n\r\n\t\t\tfinalResult.put(height, finalResult.get(\"height\") & false);\r\n\r\n\t\t}\r\n\r\n\t\t// verification of width of the product page\r\n\r\n\t\tif (productItms.getWidth() != null && !productItms.getWidth().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tString actualWidth = utility.convertDecimal(productItms.getWidth());\r\n\r\n\t\t\tString expectedWidth = utility.convertDecimal(width);\r\n\r\n\t\t\tif (!(actualWidth.trim().toUpperCase().equals(expectedWidth.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"width\", finalResult.get(\"width\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse if (width == \"0\")\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(\"width\", finalResult.get(\"width\") & false);\r\n\r\n\t\t\twidth = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// verification of gold weight\r\n\r\n if((Sku.contains(\"RG\")||Sku.contains(\"BR\")))\r\n {\r\n MetalWeight=\"N/A\";\r\n \r\n }\r\n else {\r\n \r\n if(productItms.getGoldWeight() != null && !productItms.getGoldWeight().trim().equals(\"N/A\")){\r\n\r\n\r\n\t\t\tString actualGoldWeight = utility.convertDecimal(productItms.getGoldWeight().split(\" \")[0].toString());\r\n\r\n\t\t\tString expectedGoldWeight = utility.convertDecimal(MetalWeight);\r\n\r\n\t\t\tif (!(actualGoldWeight.trim().toUpperCase().equals(expectedGoldWeight.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"MetalWeight\", finalResult.get(\"MetalWeight\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(\"MetalWeight\", finalResult.get(\"MetalWeight\") & false);\r\n\r\n\t\t\tMetalWeight = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Design Type\r\n\r\n\t\tif (productItms.getDesignType() != null && !productItms.getDesignType().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tString actualDesignType = productItms.getDesignType();\r\n\r\n\t\t\tif (!(actualDesignType.trim().toUpperCase().equals(Catagory.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"Catagory\", finalResult.get(\"Catagory\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(\"Catagory\", finalResult.get(\"Catagory\") & false);\r\n\r\n\t\t\tCatagory = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// Verification of style of the product in Product Page. String\r\n\r\n\t\tif (productItms.getstyle() != null && !productItms.getstyle().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tif (!(utility.matchTwoString(productItms.getstyle(), TypeOfProduct)))\r\n\r\n\t\t\t\tfinalResult.put(\"TypeOfProduct\", finalResult.get(\"TypeOfProduct\") & false);\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(\"TypeOfProduct\", finalResult.get(\"TypeOfProduct\") & false);\r\n\r\n\t\t\tTypeOfProduct = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Diamond shape\r\n\r\n\t\tif (productItms.getDshape() != null && !productItms.getDshape().trim().equals(\"N/A\")) {\r\n\r\n\t\t\tif (!(utility.matchTwoString(productItms.getDshape(), DiamondShape)))\r\n\r\n\t\t\t\tfinalResult.put(\"DiamondShape\", finalResult.get(\"DiamondShape\") & false);\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\r\n\t\t{\r\n\r\n\t\t\tfinalResult.put(\"DiamondShape\", finalResult.get(\"TypeOfProduct\") & false);\r\n\r\n\t\t\tDiamondShape = \"N/A\";\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Total number of Diamonds\r\n\r\n\t\tString actualTotalnoDiamonds = productItms.getTotalnoDiamonds();\r\n\r\n\t\tif (!(actualTotalnoDiamonds.trim().toUpperCase().equals(NoOfDiamonds.trim().toUpperCase()))) {\r\n\r\n\t\t\tfinalResult.put(\"NoOfDiamonds\", finalResult.get(\"NoOfDiamonds\") & false);\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Diamond total Weight\r\n\r\n\t\tString actualDtotalWeight = utility.convertDecimal(productItms.getDtotalWeight().split(\"ct\")[0].toString());\r\n\r\n\t\tString expetedDtotalWeight1 = utility.convertDecimal(TotalDiamondWeight.trim());\r\n\r\n\t\tif (!(actualDtotalWeight.trim().toUpperCase().equals(expetedDtotalWeight1.trim().toUpperCase()))) {\r\n\r\n\t\t\tfinalResult.put(\"TotalDiamondWeight\", finalResult.get(\"TotalDiamondWeight\") & false);\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Collections\r\n\r\n\t\tif (!(utility.matchTwoString(productItms.getCollections(), Collection)))\r\n\r\n\t\t\tfinalResult.put(\"Collection\", finalResult.get(\"Collection\") & false);\r\n\r\n\t\t// verification of Gemstone Type\r\n\r\n\t\tif (GemstoneType.length() > 0)\r\n\r\n\t\t\tif (!(utility.matchTwoString(productItms.getGemType(), GemstoneType)))\r\n\r\n\t\t\t\tfinalResult.put(\"GemstoneType\", finalResult.get(\"GemstoneType\") & false);\r\n\r\n\t\t// verification of Gemstone shape\r\n\r\n\t\tif (GemstoneShape.length() > 0)\r\n\r\n\t\t\tif (!(utility.matchTwoString(productItms.getGemShape(), GemstoneShape)))\r\n\r\n\t\t\t\tfinalResult.put(\"GemstoneShape\", finalResult.get(\"GemstoneShape\") & false);\r\n\r\n\t\t// verification of Number of Gemstones\r\n\r\n\t\tif (!(NoOfGemstones.equals(\"0\"))) {\r\n\r\n\t\t\tString actualTotalNoGem = productItms.getTotalNoGem();\r\n\r\n\t\t\tif (!(actualTotalNoGem.trim().toUpperCase().equals(NoOfGemstones.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"NoOfGemstones\", finalResult.get(\"NoOfGemstones\") & false);\r\n\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\t// verification of Total Gemstone weight\r\n\r\n\t\tif (!(TotalGemWeight.equals(\"0\"))) {\r\n\r\n\t\t\tString actualTotalGemWeight = utility\r\n\r\n\t\t\t\t\t.convertDecimal(productItms.getTotalGemWeight().split(\"ct\")[0].toString());\r\n\r\n\t\t\tString expectedTotalGemWeight = utility.convertDecimal(TotalGemWeight);\r\n\r\n\t\t\tif (!(actualTotalGemWeight.trim().toUpperCase().equals(expectedTotalGemWeight.trim().toUpperCase()))) {\r\n\r\n\t\t\t\tfinalResult.put(\"TotalGemWeight\", finalResult.get(\"TotalGemWeight\") & false);\r\n\r\n\t\t\t}\r\n\t\t}\r\n }\r\n\r\n\t\t\r\n\r\n\t}",
"public boolean checkValidity() {\n String sep = DECIMAL_FORMAT.getDecimalFormatSymbols().getDecimalSeparator() + \"\";\n String name = nameField.getText().trim();\n String priceText = valueField.getText().trim();\n if (name.equals(\"\") || priceText.equals(\"\")) {\n Utils.showWarningMessage(getRootPane(), \"The fields can not be empty!\");\n return false;\n }\n String price = priceText.replace(sep, \"\");\n if (!price.matches(\"^[0-9]+$\")) {\n Utils.showWarningMessage(getRootPane(), \"Please enter a valid price!\");\n return false;\n }\n int priceInt = Integer.parseInt(price);\n if (priceInt == 0) {\n Utils.showWarningMessage(getRootPane(), \"The price can not be 0.\");\n return false;\n }\n return true;\n }",
"public void setQuantity(Long quantity) {\r\n this.quantity = quantity;\r\n }",
"public void sellProduct(){\n if(quantity > 0)\n this.quantity -= 1;\n else\n throw new IllegalArgumentException(\"Cannot sell \"+ this.model +\" with no inventory\");\n\n }",
"Product() {\n boolean condition = false;\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Enter name of the product.\");\n do {\n try {\n setName(in.nextLine());\n condition = true;\n } catch (EmptyLineException e) {\n System.out.println(e.getMessage());\n }\n } while (!condition);\n\n condition = false;\n\n System.out.println(\"Enter quantity of the product.\");\n do {\n try {\n setQuantity(in.nextInt());\n condition = true;\n } catch (InputMismatchException ie) {\n System.out.println(\"This is not natural number. Try again.\");\n in.nextLine();\n } catch (NegativeNumberException ne) {\n System.out.println(ne.getMessage());\n in.nextLine();\n }\n } while (!condition);\n\n condition = false;\n\n System.out.println(\"Enter price of the product.\");\n do {\n try {\n setPrice(in.nextDouble());\n condition = true;\n } catch (InputMismatchException ie) {\n System.out.println(\"This is not real number. Try again.\");\n in.nextLine();\n } catch (NegativeNumberException ne) {\n System.out.println(ne.getMessage());\n in.nextLine();\n }\n } while (!condition);\n\n this.totalCost = quantity * price;\n }",
"Quantity getQuantity();",
"public void validate_remainingItem_ShoppingCart() {\n System.out.println(\"List of remaining items ===>> \" + listOfShoppingCardItem);\n System.out.println(\"List of Deleted items =====>> \" + listOfDeletedItemNameShoppingCart);\n Assert.assertTrue(!(listOfShoppingCardItem.containsAll(listOfDeletedItemNameShoppingCart)));\n }",
"@PutMapping(\"/{id}/update\")\n\tpublic boolean updateItemQuantity(@PathVariable Long id, @NotBlank @RequestParam Integer quantity) {\n\t\treturn itemService.updateItemQuantity(id, quantity);\n\t}",
"private void printCheckItemQuantityMenu(Shop shop) {\n System.out.println(\"What is the ID of the tool you would like to look up?\");\n int itemId = receiveNumberInput();\n if (shop.searchInventory(itemId)) {\n System.out.println(\"Quantity: \" + shop.checkToolStock(itemId));\n } else {\n System.out.println(\"Tool does not exist or invalid input, please check spelling and try again.\");\n }\n }",
"void checkConsumption()\n {\n assertEquals(\"Consumption doesn't match\", keyEventPair.getKey().isConsumed(), keyEventPair.getValue().isConsumed());\n }",
"public boolean isItemValid(ItemStack var1)\n {\n return canHoldPotion(var1);\n }",
"public void validate(Object target, Errors errors) {\n\t\tInvoiceDTO invoiceDTO = (InvoiceDTO) target;\n\t\tif(invoiceDTO.getQuantity() <= 0) {\n\t\t\terrors.rejectValue(\"quantity\", \"msg.wrong\");\n\t\t}\n \t\t\n\t}",
"public void addProduct(CartProduct p) throws InsufficientQuantityException {\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\tif (product.getDescription().equals(p.getDescription()) && (product.getQuantity() >= 1)) {\n\t\t\t\tcart.addToCart(p);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthrow new InsufficientQuantityException(\"Out of Stock\");\n\t\t\t}\n\t\t}\n\t}",
"public void removeItems(Product product, int quantity) throws IllegalArgumentException {\n int qty = quantity;\n \t\t\n if (qty > 0) {\n if (qty <= getNumOfRequestItems()) {\n for (int i = 0; i < qty; i++) {\n this.setRequestValue(getRequestValue() - product.getPrice());\n requestItems.remove(product);\n product.setQuantity(product.getQuantity() + 1);\n }\n }\n } else {\n throw new IllegalArgumentException(\"The number has to be positive.\");\n }\n }",
"public boolean hasProduct(ProductBarcode code);",
"public long getQuantity() {\n return quantity_;\n }",
"public long getQuantity() {\n return quantity_;\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"@Test(expected=MissingPrice.class)\n\tpublic void testNotEnoughBought() {\n\t\tpos.setPricing(\"A\", 4, 7);\n\n\t\tpos.scan(\"A\");\n\t\tpos.total();\n\t}",
"private void CheckToolSale(Shop shop, int toolId, int quantity) {\n if (shop.decreaseToolStock(toolId, quantity)) {\n System.out.println(\"Successfully sold item for: $\" + shop.getToolPrice(toolId)\n * quantity);\n } else if (shop.searchInventory(toolId)) {\n System.out.println(\"Cannot sell more than what is currently in stock.\");\n } else {\n System.out.println(\"Invalid toolId inputted.\");\n }\n }",
"public Integer getQuantity() {\r\n return this.quantity;\r\n }",
"@Test(expected = MessageValidationException.class)\r\n public void testValidate3() throws MessageValidationException {\r\n ProductRequestMsg instance = new ProductRequestMsg();\r\n instance.setMessage(\"The request message\");\r\n instance.setQuantity(1.0f);\r\n instance.setPickingDate(new Date());\r\n ProductMsg product = new ProductMsg();\r\n product.setId(12L);\r\n instance.setProduct(product);\r\n instance.validate();\r\n }",
"public static int validateStockInput(Context context, TextInputEditText editText) {\n // store input\n final String rawQuantity = editText.getText().toString().trim();\n\n // return 0 as a default value\n if (TextUtils.isEmpty(rawQuantity))\n return 0;\n\n try {\n int quantityInt = Integer.parseInt(editText.getText().toString().trim());\n if (quantityInt < 0) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n return quantityInt;\n } catch (NumberFormatException nfe) {\n editText.setError(context.getResources().getString(R.string.editor_edt_invalid_input));\n return -1;\n }\n }",
"private boolean validInventory(int min, int max, int stock) {\r\n\r\n boolean isTrue = true;\r\n\r\n if (stock < min || stock > max) {\r\n isTrue = false;\r\n alertDisplay(4);\r\n }\r\n\r\n return isTrue;\r\n }",
"public Integer getQuantity() {\n return this.quantity;\n }",
"public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)\n {\n return true;\n }",
"public boolean verifyCartItem()\n\t{ if (einKaufswagenBtn.isDisplayed())\n\t{\n\t\teinKaufswagenBtn.click();\n\t}\n\tfor (int j=0;j<collectnToStorePrdktIdLst.size();j++)\n\t{\n\t\tString expectedProduct1=collectnToStorePrdktIdLst.get(j);\n\t\tList<WebElement> fndProduct=driver.findElements(By.xpath(\"//form[@id='activeCartViewForm']//div[@class='a-section a-spacing-mini sc-list-body sc-java-remote-feature']//div[@class='a-row sc-list-item sc-list-item-border sc-java-remote-feature']\"));\n\t\tfor (int e=0;e<=fndProduct.size();e++)\n\t\t{\n\t\t\tString actProdkt=fndProduct.get(e).getAttribute(\"data-asin\");\n\t\t\tif (actProdkt.contains(expectedProduct1))\n\t\t\t{\n\t\t\t\tcnt++;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n\tif (cnt==2)\n\t{\n\t\treturn true;\n\t}\n\n\telse\n\t{\n\t\treturn false;\n\t}\n\t}",
"public boolean validateFurnitureItem(Object object) {\n\t\treturn false;\n\t}"
] | [
"0.7448691",
"0.7213221",
"0.7201678",
"0.70818293",
"0.70676214",
"0.69037753",
"0.670418",
"0.66708124",
"0.65656775",
"0.6533227",
"0.6462384",
"0.6179699",
"0.616903",
"0.6163464",
"0.6146982",
"0.59736687",
"0.5948526",
"0.59409565",
"0.59220564",
"0.59181136",
"0.5881095",
"0.5833906",
"0.57476586",
"0.5730866",
"0.5684333",
"0.56753606",
"0.56542534",
"0.5652324",
"0.56426835",
"0.56418055",
"0.5590883",
"0.5589581",
"0.5589159",
"0.55882657",
"0.5584706",
"0.5581913",
"0.55795825",
"0.5564409",
"0.5564409",
"0.556374",
"0.5535509",
"0.5516169",
"0.5503276",
"0.5499921",
"0.54972255",
"0.54971",
"0.5494759",
"0.5486206",
"0.5483252",
"0.5459076",
"0.54568946",
"0.5444976",
"0.5443728",
"0.54288214",
"0.54288214",
"0.5397604",
"0.53956616",
"0.53843194",
"0.5382464",
"0.53822505",
"0.5360256",
"0.5359216",
"0.53425235",
"0.5337719",
"0.533722",
"0.5332595",
"0.5325229",
"0.53234553",
"0.53175074",
"0.531334",
"0.5303117",
"0.5301676",
"0.5301541",
"0.52884644",
"0.52853876",
"0.5278991",
"0.5276764",
"0.52754986",
"0.5264968",
"0.5263407",
"0.52626234",
"0.52564603",
"0.5255591",
"0.5250765",
"0.5236571",
"0.5234817",
"0.5222893",
"0.5219901",
"0.5219901",
"0.52166605",
"0.52136827",
"0.5210365",
"0.5201615",
"0.5199387",
"0.519639",
"0.5194263",
"0.51889056",
"0.51853436",
"0.5181651",
"0.51801157"
] | 0.73930514 | 1 |
_logger.logp(Level.INFO, "ShoppingCart", "addItem", "Entering"); | public void addItem(Item item) {
_items.add(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void logs() {\n \n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"void log();",
"@Override\n public void log()\n {\n }",
"@Override\n public void log(String message) {\n }",
"public void logData(){\n }",
"public void log(String message) {\n\t}",
"private void logToFile() {\n }",
"public void log(String msg) {\n\n\t}",
"void log(Message message);",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}",
"private void Log(String action) {\r\n\t}",
"public void add_to_log(String s){\n }",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}",
"public void logMessage( Object p_msg);",
"public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }",
"@Override\n\tpublic void log(Level level, Object message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"void log(Log log);",
"static void log(int priority, String tag, String message) {\n }",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"public void log(String text) {\n }",
"void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"public void logPayRaise(){\r\n\t\tSystem.out.println(\"Log message: employee \" + this.employeeName + \" has new salary: \" + this.salary);\r\n\t}",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void log(Level level, Message msg) {\n\n\t}",
"abstract void initiateLog();",
"public void addLog(Log p) {\n logs.add(p);\n }",
"@Override\n\tpublic void log(Level level, String message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}",
"private void log(String pMessage) {\n\t\tif (logging)\n\t\t\tSystem.out.println(pMessage);\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}",
"public void addLog(String item) {\n\t\tlong itemTime = System.currentTimeMillis();\r\n\r\n\t\t// Measure total time\r\n\t\tlong itemTotalTime = (itemTime - start) / 1000;\r\n\t\tReporter.log(\"<td> - \" + item + itemTotalTime + \" </td>\");\r\n\t}",
"private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }",
"private void logUser() {\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3) {\n\n\t}",
"public String get_log(){\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"void log(Level level, String message);",
"IFileLogger log();",
"private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}",
"@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}",
"public void log(Object self, String p1) {\n\tif (!logging)\n\t return;\n\tprefix(self).print(p1).suffix();\n }",
"public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}",
"@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"int insertProductTaskLog(ProductTaskLog productTaskLog);",
"public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}",
"@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}",
"abstract protected void logInternal(int level, String message);",
"@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, CharSequence message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"public abstract void print(Level level, Object logMessage);",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, CharSequence message) {\n\n\t}",
"protected void log(String s ) {\r\n\tmessageSB.append( s ).append(\"\\r\\n\");\r\n }",
"private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}",
"public void log(String txt);",
"void log(String message) {\n System.out.println(buildMessage(message));\n }",
"public static void main(String[] args)\n\t{\n\t\tSystem.out.println(logger.getName());\n\t\tlogger.log(Level.INFO,\"come from logFunction\");\n\t\tlogger.debug(\"debug message\");\n\t\tlogger.info(\"info message\");\n\t\tlogger.warn(\"warn message\");\n\t\tlogger.error(\"error message\");\n\t\tlogger.fatal(\"fatal message\");\n\t}",
"LogRecorder getLogRecorder();",
"LogRecorder getLogRecorder();",
"private static void log(String message) {\n System.out.println(message);\n }",
"private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"abstract protected void _log(TrackingActivity activity) throws Exception;",
"protected abstract void log(T level, Object message);",
"void log(String string);",
"public void logStoreAppendSuccess(AppendLogCommand cmd) {\r\n\r\n\r\n\r\n if (logger.isInfoEnabled())\r\n logger.info(\"LogStore call back MemberAppend {}\",\r\n new String(cmd.getTerm() + \" \" + cmd.getLastIndex()));\r\n\r\n\r\n\r\n // send to all follower and self\r\n\r\n\r\n\r\n }",
"@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"@AfterReturning(\"execution(* de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService.addToCart(..)) && args(parameter)\")\n\tpublic void logAddToCart(final JoinPoint joinPoint, final CommerceCartParameter parameter)\n\t{\n\t\tmultiCartsStrategy.addProduct(parameter);\n\t}",
"public void logs(Object message) {\n System.out.println(message.toString());\n }",
"@Override\n\tpublic void log(Level level, MessageSupplier msgSupplier) {\n\n\t}",
"public void enableLogging();",
"abstract void logCustom(String tag, String message);",
"public void log(Marker level, String... message);"
] | [
"0.67233646",
"0.6670111",
"0.6670111",
"0.6670111",
"0.66576564",
"0.6642537",
"0.6515346",
"0.6514745",
"0.64440024",
"0.64260316",
"0.6390422",
"0.6379844",
"0.63214374",
"0.6312054",
"0.6294847",
"0.62944114",
"0.6285169",
"0.62746865",
"0.6202814",
"0.6202403",
"0.61674464",
"0.6135063",
"0.6120744",
"0.611412",
"0.6107763",
"0.6105496",
"0.6105155",
"0.60996634",
"0.60933167",
"0.6090857",
"0.6084855",
"0.6083404",
"0.6083367",
"0.60702217",
"0.60627234",
"0.60584676",
"0.60567623",
"0.60517365",
"0.6021829",
"0.60203546",
"0.6016078",
"0.6013577",
"0.59785056",
"0.59715253",
"0.5969514",
"0.5962752",
"0.5956077",
"0.59541184",
"0.5947749",
"0.592562",
"0.59239185",
"0.59186316",
"0.5910725",
"0.59007823",
"0.5898601",
"0.58931303",
"0.58899873",
"0.5888592",
"0.58828646",
"0.58807087",
"0.5880229",
"0.5880058",
"0.5863133",
"0.58608615",
"0.5856881",
"0.5850955",
"0.58474106",
"0.5846538",
"0.58452606",
"0.58444196",
"0.583205",
"0.5830642",
"0.58224446",
"0.58164436",
"0.5814877",
"0.5805881",
"0.58040845",
"0.57984364",
"0.5786783",
"0.5786361",
"0.5770492",
"0.57687974",
"0.57640827",
"0.57629955",
"0.57607585",
"0.5759215",
"0.5759215",
"0.57590485",
"0.5757794",
"0.5751266",
"0.57424283",
"0.5736906",
"0.5723401",
"0.57158005",
"0.5712816",
"0.5712512",
"0.5708572",
"0.570258",
"0.5700622",
"0.56925803",
"0.5691312"
] | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "removeItem", "Entering"); | public void removeItem(Item item) {
_items.remove(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void log();",
"@Override\n public void log()\n {\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"private void logToFile() {\n }",
"@Override\n public void log(String message) {\n }",
"void log(Message message);",
"public void logData(){\n }",
"private void Log(String action) {\r\n\t}",
"public void log(String message) {\n\t}",
"public void log(String msg) {\n\n\t}",
"public void imprimir(String log){\n System.out.println(log);\n\n }",
"public void logMessage( Object p_msg);",
"@Override\n\tpublic void releaseLogger() {\n\t\t\n\t}",
"@Override\n public void closeLog() {\n \n }",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"void log(Log log);",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"public abstract void CancelLog();",
"@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }",
"@Test\r\n public void test_logExit3() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date(), true, Level.INFO);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"INFO\",\r\n \"] Exiting method [method_signature], time spent in the method: \",\r\n \"Output parameter: result\");\r\n }",
"@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"private void log(String pMessage) {\n\t\tif (logging)\n\t\t\tSystem.out.println(pMessage);\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}",
"public void logCommunalDeck()\n\t{\n\t\t\tlog += String.format(\"%nCOMMUNAL DECK UPDATED%nCOMMUNAL DECK NOW EMPTY\");\n\t\t\tlineBreak();\n\t}",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"@Override\n\tpublic void log(Level level, Object message) {\n\n\t}",
"private static void log_d( String msg ) {\n\t if (D) Log.d( TAG, TAG_SUB + \" \" + msg );\n}",
"public void logPayRaise(){\r\n\t\tSystem.out.println(\"Log message: employee \" + this.employeeName + \" has new salary: \" + this.salary);\r\n\t}",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"private void log_d( String msg ) {\n\t if (D) Log.d( TAG, TAG_SUB + \" \" + msg );\n}",
"public void log(String text) {\n }",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"private void logUser() {\n }",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}",
"private void log(String message) {\n System.out.println(message);\n }",
"static void log(int priority, String tag, String message) {\n }",
"public void add_to_log(String s){\n }",
"@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }",
"@Override\n\tpublic void log(Level level, String message) {\n\n\t}",
"private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"public String get_log(){\n }",
"@Override\n\tpublic void log(Level level, Message msg) {\n\n\t}",
"@AfterReturning(\"execution(* de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartService.addToCart(..)) && args(parameter)\")\n\tpublic void logAddToCart(final JoinPoint joinPoint, final CommerceCartParameter parameter)\n\t{\n\t\tmultiCartsStrategy.addProduct(parameter);\n\t}",
"public void trace(Object message)\n/* */ {\n/* 141 */ this.logger.trace(message);\n/* */ }",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}",
"public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}",
"abstract protected void logInternal(int level, String message);",
"void logSevere(String pMessage)\n{\n\n Logger.getLogger(getClass().getName()).log(Level.SEVERE, pMessage);\n\n}",
"private void log(String message) {\n System.out.println(message);\n }",
"private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}",
"@SuppressWarnings({\"UNUSED_SYMBOL\"})\r\n private void plog(String m) {\n }",
"IFileLogger log();",
"public void logTransactionEnd();",
"private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }",
"void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }",
"@Test\r\n public void test_logExit2() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date());\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature], time spent in the method: \",\r\n \"Output parameter: result\");\r\n }",
"protected void log(String s ) {\r\n\tmessageSB.append( s ).append(\"\\r\\n\");\r\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3) {\n\n\t}",
"private static void log(String message) {\n System.out.println(message);\n }",
"abstract protected void _log(TrackingActivity activity) throws Exception;",
"@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}",
"public void logAfter(JoinPoint joinPoint);",
"void log(Level level, String message);",
"void log(String message) {\n System.out.println(buildMessage(message));\n }",
"private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }",
"@Test\r\n public void test_logExit1() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature].\",\r\n \"Output parameter: result\");\r\n }",
"LogRecorder getLogRecorder();",
"LogRecorder getLogRecorder();",
"private void log(String l) {\n if (LOG) {\n System.out.println(\"RotationMatrixTest.\" + l);\n }\n }",
"public static void logPurchaseAttempted() {\n /*if(ZeTarget.robolectricTesting) {\n System.out.println(\"ZETARGET: logging purchase attempted event\");\n }*/\n logEvent(Constants.Z_PURCHASE_ATTEMPTED_EVENT);\n }",
"public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}",
"void log(String string);",
"@Override\n\tpublic void log(Level level, Marker marker, String message) {\n\n\t}",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n public void logOut() {\n }",
"public static void log(String message) {\n\t\tSystem.out.println(message + RESET);\n\t}",
"private Log() {\r\n\t}",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"protected void log(String message) {\n task.log(message);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, CharSequence message) {\n\n\t}",
"private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}",
"public abstract void print(Level level, Object logMessage);"
] | [
"0.62700933",
"0.6137428",
"0.612223",
"0.612223",
"0.612223",
"0.6114401",
"0.606238",
"0.60464406",
"0.6007493",
"0.5992171",
"0.59737253",
"0.5955351",
"0.5809825",
"0.5746183",
"0.5739325",
"0.57319164",
"0.5728954",
"0.5713035",
"0.5710561",
"0.5701183",
"0.56956154",
"0.5658345",
"0.5652405",
"0.56389505",
"0.5634555",
"0.5619351",
"0.55883807",
"0.5586046",
"0.5571985",
"0.5565167",
"0.55493945",
"0.5547195",
"0.5545779",
"0.5543249",
"0.5541711",
"0.55408996",
"0.5533078",
"0.5525697",
"0.5524404",
"0.5521457",
"0.55172086",
"0.55128425",
"0.549537",
"0.5487355",
"0.5486206",
"0.54781044",
"0.54755944",
"0.54686266",
"0.5457039",
"0.54543805",
"0.54535514",
"0.5450866",
"0.54364693",
"0.5436166",
"0.5434267",
"0.5434052",
"0.54282606",
"0.54267997",
"0.5426632",
"0.5424237",
"0.5421364",
"0.5420997",
"0.5404496",
"0.5404264",
"0.53952974",
"0.53878564",
"0.5380436",
"0.5374133",
"0.53716105",
"0.53668356",
"0.5366403",
"0.5357922",
"0.53573066",
"0.535566",
"0.5353254",
"0.535251",
"0.5351443",
"0.5343756",
"0.5338663",
"0.5335894",
"0.53354126",
"0.53224146",
"0.53224146",
"0.53113145",
"0.5306618",
"0.53015953",
"0.5301026",
"0.52923644",
"0.52857447",
"0.5285356",
"0.52848583",
"0.5274857",
"0.5271856",
"0.5269507",
"0.52638036",
"0.5263708",
"0.5255302",
"0.525221",
"0.52513456",
"0.52504325",
"0.52461725"
] | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "empty", "Entering"); | public void empty() {
_items.clear();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void logs() {\n \n }",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"void log();",
"@Override\n public void log()\n {\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}",
"public void logData(){\n }",
"@Override\n public void log(String message) {\n }",
"private void logToFile() {\n }",
"public void logCommunalDeck()\n\t{\n\t\t\tlog += String.format(\"%nCOMMUNAL DECK UPDATED%nCOMMUNAL DECK NOW EMPTY\");\n\t\t\tlineBreak();\n\t}",
"private void log(String pMessage) {\n\t\tif (logging)\n\t\t\tSystem.out.println(pMessage);\n\t}",
"public void log(String message) {\n\t}",
"abstract void initiateLog();",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}",
"void initializeLogging();",
"public void log(String msg) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}",
"private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}",
"private Log() {\r\n\t}",
"void log(Message message);",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }",
"@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }",
"public void log(String text) {\n }",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}",
"private void Log(String action) {\r\n\t}",
"public abstract void print(Level level, Object logMessage);",
"public String get_log(){\n }",
"void log(Log log);",
"private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n // logger.info(\"Message\");\n // System.out.println(\"cdkdk\");\n\n }",
"private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }",
"@Override\n\tpublic void log(Level level, String message) {\n\n\t}",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"@Override\n\tpublic void log(Level level, Message msg) {\n\n\t}",
"private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }",
"@Override\n\tpublic void log(Level level, Object message) {\n\n\t}",
"@Override\n\tpublic void initLogger() {\n\t\t\n\t}",
"private void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }",
"public void imprimir(String log){\n System.out.println(log);\n\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}",
"public void enableLogging();",
"private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"abstract protected void logInternal(int level, String message);",
"void printLog(String str, int level)\n { if (log!=null) log.println(\"CommandLineUA: \"+str, UserAgent.LOG_OFFSET+level);\n }",
"Appendable getLog();",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}",
"IFileLogger log();",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3) {\n\n\t}",
"private static void log(String message) {\n System.out.println(message);\n }",
"public String getLog();",
"public void log(Object self, String p1) {\n\tif (!logging)\n\t return;\n\tprefix(self).print(p1).suffix();\n }",
"private static void log(String msg) {\n System.out.println(msg);\n }",
"public void log(String message) {\n log(message, MSG_INFO);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}",
"static void log(int priority, String tag, String message) {\n }",
"@Override\n\tpublic void log(Level level, Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}",
"@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }",
"public void logMessage( Object p_msg);",
"private static void log(IStatus status) {\n\t getDefault().getLog().log(status);\n\t}",
"public void logPayRaise(){\r\n\t\tSystem.out.println(\"Log message: employee \" + this.employeeName + \" has new salary: \" + this.salary);\r\n\t}",
"protected void log(String s ) {\r\n\tmessageSB.append( s ).append(\"\\r\\n\");\r\n }",
"public void log(Marker level, String... message);",
"private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }",
"@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}",
"public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void logUser() {\n }",
"void log(Level level, String message);",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"private void logika_rozpocznij(){\n\t}",
"void log(String message) {\n System.out.println(buildMessage(message));\n }",
"public static void main(String[] args)\n\t{\n\t\tSystem.out.println(logger.getName());\n\t\tlogger.log(Level.INFO,\"come from logFunction\");\n\t\tlogger.debug(\"debug message\");\n\t\tlogger.info(\"info message\");\n\t\tlogger.warn(\"warn message\");\n\t\tlogger.error(\"error message\");\n\t\tlogger.fatal(\"fatal message\");\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message) {\n\n\t}",
"public void log(String txt);",
"private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}",
"public void add_to_log(String s){\n }",
"LogRecorder getLogRecorder();",
"LogRecorder getLogRecorder();",
"@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}",
"public static void log4jExample() {\n\t\tnewLogger.warn(\"This is the info level\");\n\t\t\n\t}"
] | [
"0.6836864",
"0.6836864",
"0.6836864",
"0.6750537",
"0.67350405",
"0.67064035",
"0.6600305",
"0.6452227",
"0.63995856",
"0.6398319",
"0.63788366",
"0.6367272",
"0.6337052",
"0.63078654",
"0.63051116",
"0.6299207",
"0.62972564",
"0.6294277",
"0.6233233",
"0.62288487",
"0.6194503",
"0.6189051",
"0.6181936",
"0.6180551",
"0.6177141",
"0.61203647",
"0.60992527",
"0.60979944",
"0.60947186",
"0.60941875",
"0.6076695",
"0.60694695",
"0.6054636",
"0.6044972",
"0.604086",
"0.6032658",
"0.6016097",
"0.6011365",
"0.6010304",
"0.6009703",
"0.600648",
"0.60030395",
"0.6002425",
"0.5992609",
"0.59799945",
"0.59758776",
"0.59757143",
"0.59717774",
"0.5946597",
"0.59413695",
"0.59384346",
"0.59318227",
"0.59236145",
"0.59192866",
"0.5918409",
"0.59167445",
"0.5909952",
"0.59016657",
"0.59015256",
"0.58988434",
"0.5897",
"0.58845043",
"0.5870264",
"0.58666986",
"0.5866416",
"0.5864963",
"0.58628505",
"0.58561605",
"0.5852347",
"0.58520174",
"0.58490276",
"0.58437073",
"0.58432627",
"0.58432424",
"0.58408695",
"0.58394176",
"0.58347523",
"0.5833467",
"0.58322734",
"0.5825442",
"0.5809742",
"0.58071744",
"0.5799303",
"0.57943076",
"0.5794244",
"0.5791504",
"0.57900035",
"0.5778459",
"0.5768743",
"0.57622194",
"0.5759559",
"0.5759035",
"0.5758787",
"0.57570696",
"0.57432884",
"0.5739572",
"0.5739572",
"0.57390594",
"0.57390535",
"0.5724713",
"0.5721409"
] | 0.0 | -1 |
_logger.logp(Level.INFO, "ShoppingCart", "totalValue", "Entering"); unimplemented... free! | public float totalValue() {
return 0;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void logPayRaise(){\r\n\t\tSystem.out.println(\"Log message: employee \" + this.employeeName + \" has new salary: \" + this.salary);\r\n\t}",
"public void logData(){\n }",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"public void writeLog() {\n\n\t}",
"@Override\n public void log()\n {\n }",
"void log();",
"private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }",
"public final void log() throws ArithmeticException {\n\t\tif ((mksa&_LOG) != 0) throw new ArithmeticException\n\t\t(\"****Unit: log(\" + symbol + \")\") ;\n\t\tvalue = AstroMath.log(value);\n\t\tmksa |= _log;\n\t\tif (symbol != null) \n\t\t\tsymbol = \"[\" + symbol + \"]\";\t// Enough to indicate log\n\t}",
"@Override\n public void logs() {\n \n }",
"protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}",
"static public final void ccLogln(String pxTag, Object pxValue){\n if(cmLogOn){\n ccPrintln(pxTag, pxValue);\n }//..?\n }",
"public void logToConsole(){\n logger.trace(\"Records total: \" + employees.size());\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}",
"@Override\n public void log(String message) {\n }",
"public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}",
"public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}",
"public String get_log(){\n }",
"void printTotalQuantity();",
"public abstract void print(Level level, Object logMessage);",
"private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"@SuppressWarnings({\"UNUSED_SYMBOL\"})\r\n private void plog(String m) {\n }",
"public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }",
"private void log(String pMessage) {\n\t\tif (logging)\n\t\t\tSystem.out.println(pMessage);\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3) {\n\n\t}",
"private void logParkingLotAgent() {\n\t\t\n\t\tLogger logger = Logger.getInstance();\n\t\t\n\t\tlogger.logPrint(\"PARKING LOT ARGS START\");\n\t\tlogger.logPrint(\"Coords: (\" + coords.x + \", \" + coords.y + \")\");\n\t\tlogger.logPrint(\"Available spots: \" + spots);\n\t\tlogger.logPrint(\"Regular: \" + regularSpots + \" Luxury: \" + luxurySpots + \" Handicap: \" + handicapSpots);\n\t\tlogger.logPrint(\"Hourly cost: \" + hourlyCost);\n\t\tlogger.logPrint(\"Luxury cost modifier: \" + luxuryCostPercent);\n\t\tlogger.logPrint(\"PARKING LOT ARGS END\" + System.lineSeparator());\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1) {\n\n\t}",
"void log(Log log);",
"private void logToFile() {\n }",
"@Override\n\tpublic void log(Level level, Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object... params) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6) {\n\n\t}",
"void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6, Object p7) {\n\n\t}",
"final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }",
"@Override\n\tpublic void log(Level level, String message, Object... params) {\n\n\t}",
"public void log(String msg) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"public void logCommunalDeck()\n\t{\n\t\t\tlog += String.format(\"%nCOMMUNAL DECK UPDATED%nCOMMUNAL DECK NOW EMPTY\");\n\t\t\tlineBreak();\n\t}",
"abstract protected void logInternal(int level, String message);",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6) {\n\n\t}",
"@Override\r\n\tpublic String log(String info) {\n\t\tlong id=Thread.currentThread().getId();\r\n\t\tCalcThread b=ProCalcManage.getInstance().threadIDMap.get(id);\r\n\t\tsynchronized (b.proinfo.info.log) {\r\n\t\t\tb.proinfo.info.log.add(new LogInfo(new Date(), info));\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn info;\r\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Object message) {\n\n\t}",
"private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }",
"public void logDebugData() {\n SmartDashboard.putNumber(\"Ele Pos\", getPosition());\n SmartDashboard.putBoolean(\"Ele Switch\", bottomSwitchValue());\n SmartDashboard.putNumber(\"Ele Current\", getCurrent());\n SmartDashboard.putNumber(\"Ele Out %\", elevatorSpark.getAppliedOutput());\n }",
"void log(Message message);",
"public abstract void logKenaiUsage(Object... parameters);",
"public void logMessage( Object p_msg);",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}",
"@Override\n public void logDeposit(UUID userUUID, double amount) {\n }",
"public void logSensorData () {\n\t}",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4) {\n\n\t}",
"private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}",
"public void log(String message) {\n\t}",
"@Override\n\tpublic void log(Level level, Message msg) {\n\n\t}",
"public static void logPurchaseCompleted(String currency, Double grandTotal, Double total,\n Double shipping, Double tax, Integer quantity,\n String orderId, String receiptId, String productsku) {\n JSONObject purchaseDetails = new JSONObject();\n try {\n if(currency!=null) {\n purchaseDetails.put(\"currency\", currency);\n }\n if(grandTotal!=null){\n purchaseDetails.put(\"grand_total\",grandTotal);\n }else{\n if(ZeTarget.isDebuggingOn()){\n //Log.i(\"PurchaseCompletedEvent:\", \"grandTotal param missing in the method call\");\n }\n return;\n }\n if(total!=null){\n purchaseDetails.put(\"total\",total);\n }\n if(shipping!=null){\n purchaseDetails.put(\"shipping\",shipping);\n }\n if(tax!=null){\n purchaseDetails.put(\"tax\",tax);\n }\n if(quantity!=null) {\n purchaseDetails.put(\"quantity\", quantity);\n }\n if(orderId!=null){\n purchaseDetails.put(\"orderid\",orderId);\n }\n if(receiptId!=null){\n purchaseDetails.put(\"receiptid\",receiptId);\n }\n if(productsku!=null){\n purchaseDetails.put(\"productsku\",productsku);\n }\n } catch (JSONException e) {\n if(ZeTarget.isDebuggingOn()){\n Log.e(TAG,\"Failure in adding Purchase Details\",e);\n }\n }\n /*if(ZeTarget.robolectricTesting) {\n System.out.println(\"ZETARGET: logging purchase completed event\");\n }*/\n logEvent(Constants.Z_PURCHASE_COMPLETED_EVENT, purchaseDetails);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}",
"private void Log(String action) {\r\n\t}",
"private void log(String val)\n {\n System.out.println(String.format(\"JOB: %s CPU #: %s MSG: %s\",\n currentJobNumber(),\n cpuNum,\n val));\n }",
"@Override\n\tpublic void log(Level level, Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4) {\n\n\t}",
"abstract void initiateLog();",
"public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }",
"public void addLog(String item) {\n\t\tlong itemTime = System.currentTimeMillis();\r\n\r\n\t\t// Measure total time\r\n\t\tlong itemTotalTime = (itemTime - start) / 1000;\r\n\t\tReporter.log(\"<td> - \" + item + itemTotalTime + \" </td>\");\r\n\t}",
"protected Log getLog()\n/* */ {\n/* 59 */ return log;\n/* */ }",
"public void add_to_log(String s){\n }",
"private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }",
"@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}",
"public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"public void log(String text) {\n }",
"public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }",
"@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8, Object p9) {\n\n\t}",
"void printLog(String str, int level)\n { if (log!=null) log.println(\"CommandLineUA: \"+str, UserAgent.LOG_OFFSET+level);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"public void customLogger() {\n KOOM.getInstance().setLogger(new KLog.KLogger() {\n @Override\n public void i(String TAG, String msg) {\n //get the log of info level\n }\n\n @Override\n public void d(String TAG, String msg) {\n //get the log of debug level\n }\n\n @Override\n public void e(String TAG, String msg) {\n //get the log of error level\n }\n });\n }",
"private void log(String message) {\n System.out.println(message);\n }",
"@Override\n\tpublic void log(Level level, String message) {\n\n\t}",
"@FXML\n\tprivate void logSerialNumberIncrement() {\n\t\tcheckFieldEditOrNot = true;\n\t\tSX3Manager.getInstance().addLog(\"Serial Number Increment : \" + serialNumberIncrement.getValue() + \".<br>\");\n\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t}",
"private void printLog(String str)\n { printLog(str,Log.LEVEL_HIGH);\n }",
"@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}",
"private static void log(Level level, Object message) {\n logger.info(LogUtil.class.getName(),level, message,null);\n }",
"private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}",
"private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }",
"public void log(Object self, String p1) {\n\tif (!logging)\n\t return;\n\tprefix(self).print(p1).suffix();\n }",
"String getLogHandled();",
"@Override\n\tpublic void log(Level level, Marker marker, String message) {\n\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void log(String msg, int level, Date date, StackTraceElement trace) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}",
"private void log(String l) {\n if (LOG) {\n System.out.println(\"RotationMatrixTest.\" + l);\n }\n }",
"public static void log(String name, int value) {\n m_output += \" | \" + name + \": \" + value;\n }",
"private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}",
"public static void logRealtimeInventoryCheckInfo(NMProfile profile, NMCommerceItem item, int stocklevel, boolean isOldCheckout) {\r\n \r\n try {\r\n String pipe = \"|\";\r\n \r\n StringBuffer message = new StringBuffer();\r\n \r\n message.append(\"REQUESTED INVENTORY UNAVAILABLE:[\");\r\n \r\n message.append(\"TIME:\" + (new SimpleDateFormat(\"MM-dd-yyyy HH:mm:ss\")).format(Calendar.getInstance().getTime()));\r\n message.append(pipe);\r\n \r\n DynamoHttpServletRequest request = ServletUtil.getCurrentRequest();\r\n if (request != null) {\r\n message.append(\"USER-AGENT:\" + request.getHeader(\"User-Agent\"));\r\n message.append(pipe);\r\n if (request.getSession() != null) {\r\n message.append(\"SESSION:\" + request.getSession().getId());\r\n message.append(pipe);\r\n }\r\n }\r\n \r\n if (profile != null) {\r\n message.append(\"PROFILE:\" + profile.getRepositoryId());\r\n message.append(pipe);\r\n }\r\n \r\n if (item != null) {\r\n message.append(\"PRODUCT:\" + item.getProductId());\r\n message.append(pipe);\r\n \r\n message.append(\"PRODUCT_NAME:\" + item.getProduct().getDisplayName());\r\n message.append(pipe);\r\n \r\n message.append(\"CMOS_ID:\" + item.getCmosCatalogId() + \"_\" + item.getCmosItemCode());\r\n message.append(pipe);\r\n \r\n message.append(\"SKU:\" + item.getSkuNumber());\r\n message.append(pipe);\r\n \r\n message.append(\"REQUESTED:\" + item.getQuantity());\r\n message.append(pipe);\r\n \r\n message.append(\"AVAILABLE:\" + stocklevel);\r\n message.append(pipe);\r\n }\r\n \r\n if (isOldCheckout) {\r\n message.append(\"VERSION:Ajax\");\r\n } else {\r\n message.append(\"VERSION:Responsive\");\r\n }\r\n message.append(pipe);\r\n \r\n message.append(\"SITE:\" + CommonComponentHelper.getSystemSpecs().getProductionSystemCode());\r\n \r\n message.append(\"]\");\r\n \r\n CommonComponentHelper.getLogger().info(message.toString());\r\n \r\n } catch (Exception e) {\r\n // should never occur, but this is short order, so to ensure no issues within checkout catch all issues.\r\n System.out.println(\"Unexpected error while logging LogginUtil#logRealtimeInventoryCheckInfo \" + e.getMessage());\r\n }\r\n \r\n }",
"public static void logPurchaseCompleted(Double grandTotal, Integer quantity){\n logPurchaseCompleted(null, grandTotal, null, null, null, quantity, null, null, null);\n }"
] | [
"0.6387006",
"0.6340284",
"0.62855166",
"0.62855166",
"0.62855166",
"0.62804234",
"0.622163",
"0.61867404",
"0.61380804",
"0.60882336",
"0.6077436",
"0.59431463",
"0.5880096",
"0.58780104",
"0.58765763",
"0.5844818",
"0.58389264",
"0.58356065",
"0.5833006",
"0.58295715",
"0.5810395",
"0.5762604",
"0.57536525",
"0.5749148",
"0.5735819",
"0.5714551",
"0.5705364",
"0.57004607",
"0.56930983",
"0.56882524",
"0.56881934",
"0.56848055",
"0.56700104",
"0.5665171",
"0.5655603",
"0.5652167",
"0.56503606",
"0.56440127",
"0.5637336",
"0.56312484",
"0.563039",
"0.56301725",
"0.56291527",
"0.5622305",
"0.5616319",
"0.5614936",
"0.56090605",
"0.56046695",
"0.559964",
"0.5596925",
"0.55945593",
"0.5593968",
"0.5585406",
"0.55816483",
"0.55790085",
"0.55722386",
"0.5564835",
"0.55640274",
"0.556385",
"0.5563312",
"0.55632967",
"0.55612606",
"0.5555979",
"0.5555299",
"0.55471647",
"0.55463266",
"0.5539567",
"0.5536369",
"0.5533558",
"0.5533261",
"0.5522882",
"0.55213976",
"0.5517616",
"0.55175424",
"0.5511375",
"0.5508706",
"0.5504991",
"0.5502004",
"0.5501192",
"0.5494227",
"0.5492801",
"0.5492265",
"0.5489939",
"0.5486397",
"0.54854834",
"0.548244",
"0.54812974",
"0.54790515",
"0.5476122",
"0.54735076",
"0.545439",
"0.54515755",
"0.544275",
"0.5435117",
"0.54345393",
"0.5433366",
"0.5428611",
"0.5427251",
"0.5422313",
"0.541512",
"0.5411892"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public BerylliumSphere next() {
return new BerylliumSphere();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Because the field id is private, so change its access first | public long getId(BerylliumSphere s) {
try {
Field f = BerylliumSphere.class.getDeclaredField("id");
f.setAccessible(true);
return f.getLong(s);
} catch(Exception e) {
e.printStackTrace();
}
return -1L;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public int getField(int id) {\n return 0;\n }",
"private Integer getId() { return this.id; }",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getField(int id) {\n\t\treturn 0;\n\t}",
"public long getId(){return this.id;}",
"public int getId() {\n/* 35 */ return this.id;\n/* */ }",
"public int getId(){ return id; }",
"public int getId(){\r\n return localId;\r\n }",
"public int getId(){return id;}",
"public long getId() { return _id; }",
"@Override\n public void setField(int id, int value) {\n \n }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() { return id; }",
"public int getId() {return id;}",
"public String getId(){ return id.get(); }",
"public long getId() { return this.id; }",
"public int getID()\r\n/* 65: */ {\r\n/* 66: 67 */ return this.id;\r\n/* 67: */ }",
"public int getId(){\r\n return this.id;\r\n }",
"private int getId() {\r\n\t\treturn id;\r\n\t}",
"public long getId() { return id; }",
"public long getId() { return id; }",
"private void setId(Integer id) { this.id = id; }",
"public Integer getId(){return id;}",
"public String getId(){return id;}",
"public int id() {return id;}",
"public int getID(){\n return id;\n }",
"public String getId()\r\n/* 14: */ {\r\n/* 15:14 */ return this.id;\r\n/* 16: */ }",
"protected int getID(){\r\n\t\treturn this.ID;\r\n\t}",
"public int getId() {return Id;}",
"public int getID() {return id;}",
"public int getID() {return id;}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"@Override\n\tpublic void setField(int id, int value) {\n\t\t\n\t}",
"public long getId(){\n return this.id;\n }",
"public int getID(){\r\n return this.ID;\r\n }",
"public String getId(){ return ID; }",
"public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }",
"@Override\n public long getId() {\n return id;\n }",
"public void setID(String idIn) {this.id = idIn;}",
"@Override public String getID() { return id;}",
"public long getId ()\r\n {\r\n return _id;\r\n }",
"public int getId() {\n return id;\n }",
"public void testGetId_Accuracy() {\r\n int id = 1;\r\n UnitTestHelper.setPrivateField(AuditDetail.class, auditDetail, \"id\", new Integer(id));\r\n assertEquals(\"The id value should be got properly.\", id, auditDetail.getId());\r\n }",
"final protected int getId() {\n\t\treturn id;\n\t}",
"public int getID(){\n return id;\n }",
"public void setId(int id){ this.id = id; }",
"public long getId() {\n return id_;\n }",
"public void setId(long id) {\n id_ = id;\n }",
"public Integer getId() { return this.id; }",
"public Integer getId()\r\n/* */ {\r\n/* 114 */ return this.id;\r\n/* */ }",
"@Override\n public long getId() {\n return this.id;\n }",
"protected abstract String getId();",
"public int getBigId () { return bigId; }",
"public int getEntityId()\r\n/* 25: */ {\r\n/* 26:26 */ return this.entityId;\r\n/* 27: */ }",
"@Override\n public long getId() {\n return super.getId();\n }",
"private int getFieldId(VectorAccessible accessible, LogicalExpression expr) {\n return getFieldIds(accessible, expr)[0];\n }",
"public Integer getId() { return id; }",
"public int getID(){\n return this.ID;\n }",
"@Override\r\n\tpublic void read(Object id) {\n\t\t\r\n\t}",
"public void setId(long id) { this.id = id; }",
"public void setId(long id) { this.id = id; }",
"@Override\r\n\tpublic String getIdFieldName() {\n\t\treturn null;\r\n\t}",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getId() { return id; }",
"public String getID(){return ID;}",
"int getId() throws UnsupportedOperationException;",
"public Long getId() {return id;}",
"public Long getId() {return id;}",
"public int getId ()\r\n {\r\n return id;\r\n }",
"public abstract long getId();",
"public abstract long getId();",
"public Long id() { return this.id; }",
"public SimpleIntegerProperty getIDProperty(){ return id; }",
"@Override\n public Long getId () {\n return id;\n }",
"public void setId(String id)\r\n/* 19: */ {\r\n/* 20:17 */ this.id = id;\r\n/* 21: */ }",
"public Long getId() {\n return id;\n }",
"public int getID() {\r\n return id;\r\n }",
"@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"@java.lang.Override\n public int getId() {\n return id_;\n }",
"public void setId(Long id) {this.id = id;}",
"public void setId(Long id) {this.id = id;}",
"@Override\r\n public int getId() {\n return id;\r\n }",
"public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }",
"public int getId() {\n\treturn id;\n}",
"public int getId() {\n\treturn id;\n}",
"public int getID(){\n return this.goodID;\n }",
"public int getId()\n {\n return this.id;\n }",
"long getId() {\n return id;\n }",
"@Public\n @Stable\n public abstract int getId();",
"public int getId()\n {\n return id;\n }",
"int getId() {\n return this.id;\n }",
"public Integer getID(){\n return ID;\n }",
"@Override\n public String getId() {\n return \"1\";\n }",
"public int getId()\r\n {\r\n return id;\r\n }"
] | [
"0.71841913",
"0.70222294",
"0.6918454",
"0.6918454",
"0.6918454",
"0.6854692",
"0.6842071",
"0.6783529",
"0.676515",
"0.6702315",
"0.6654889",
"0.66399485",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.657235",
"0.655193",
"0.65386295",
"0.6501644",
"0.64897406",
"0.6458482",
"0.64479035",
"0.64385444",
"0.64385444",
"0.6407038",
"0.6377785",
"0.6362607",
"0.63451487",
"0.6339021",
"0.6332841",
"0.6331503",
"0.6329123",
"0.63257885",
"0.63257885",
"0.6321016",
"0.6321016",
"0.62768865",
"0.6268599",
"0.626533",
"0.6257022",
"0.62395686",
"0.6219869",
"0.6213145",
"0.6197744",
"0.61857903",
"0.6185063",
"0.6182934",
"0.6181563",
"0.6172289",
"0.61705774",
"0.616599",
"0.6165801",
"0.6162554",
"0.6154631",
"0.6150318",
"0.614855",
"0.6144184",
"0.61430424",
"0.61407006",
"0.6134403",
"0.61322504",
"0.61259806",
"0.61165524",
"0.61165524",
"0.6101923",
"0.60906494",
"0.60906494",
"0.60906494",
"0.60856247",
"0.60851425",
"0.6084476",
"0.6084476",
"0.6069383",
"0.60667825",
"0.60667825",
"0.60664433",
"0.6065327",
"0.60634816",
"0.60613334",
"0.60499513",
"0.60482717",
"0.6046436",
"0.60454",
"0.60454",
"0.6044066",
"0.6044066",
"0.60367775",
"0.6034153",
"0.6033755",
"0.6033755",
"0.6029225",
"0.60271454",
"0.6011931",
"0.6005154",
"0.6004703",
"0.5993102",
"0.5989114",
"0.59859747",
"0.5985835"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
Random r = new Random(47);
BerylliumSphere[] spheres =
Generated.array(BerylliumSphere.class, new BSGenerator(), 10);
Collections.shuffle(Arrays.asList(spheres), r);
System.out.println("Not comparable BS:");
System.out.println(Arrays.toString(spheres));
try {
Arrays.sort(spheres);
} catch(Exception e) {
System.out.println("BerylliumSphere is not sortable!");
System.out.println(e + "");
}
ComparableBerylliumSphere[] comparableSpheres = new ComparableBerylliumSphere[10];
for(int i = 0; i < 10; i++)
comparableSpheres[i] = new ComparableBerylliumSphere();
Collections.shuffle(Arrays.asList(comparableSpheres), r);
System.out.println("Before sorting for comparable BS:");
System.out.println(Arrays.toString(comparableSpheres));
Arrays.sort(comparableSpheres);
System.out.println("After sorting for comparable BS:");
System.out.println(Arrays.toString(comparableSpheres));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
/public List findByDescription(String searchstr); | @Query("SELECT a FROM Appointment a WHERE a.description like ?1")
public List<Appointment> searchByDescription(String searchstr); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Product> findByDescription(String description);",
"@GetMapping(\"/description/{description}\")\n @ApiOperation(value = \"Search StudyClasses by description\")\n public List<StudyClassDTO> findByDescription(\n @ApiParam(value = \"The StudyClass description\") @PathVariable String description) {\n\n return studyClassService.findByDescription(description);\n }",
"public List<Product> search(String searchString);",
"@Override\n public List<Event> searchByDescription(String description) {\n TypedQuery<EventAdapter> query = em.createQuery(\n \"SELECT e FROM EventAdapter e \"\n + \"WHERE e.description = :description \"\n + \"ORDER BY e.id\", EventAdapter.class)\n .setParameter(\"description\", description);\n\n return query.getResultList()\n .parallelStream()\n .map(EventAdapter::getEvent)\n .collect(Collectors.toList());\n }",
"@Query(value = INGREDIENT_SELECT + DESCRIPTION_SEARCH + EXT_DESCRIPTION + NOT_DELETES)\n List<Ingredient> findByIngredientDescriptionContaining(@Param(\"description\")String description, Pageable request);",
"protected LinkedList<Ticket> searchDescription(String searchString) {\n\n return null; //replace this with a return statement that returns a list\n }",
"List<DataTerm> search(String searchTerm);",
"List<Card> search(String searchString) throws PersistenceCoreException;",
"@In String search();",
"List<Product> getProductsContainingProductNameOrShortDescription(String productSearchString);",
"public interface ItemRepository extends CrudRepository<Item, Integer> {\n\n Iterable<Item> findByDescription(String description);\n}",
"public List<Budget> search (String search) throws SQLException{\n List<Budget> found = new ArrayList<Budget>();\n DatabaseConnection dbaInfo = new DatabaseConnection();\n Connection conn = null;\n try {\n conn = dbaInfo.getConnection();\n search = search + \"%\";\n PreparedStatement ps = conn.prepareStatement(\"SELECT * FROM finance.budget WHERE (bud_category ILIKE ?) OR (bud_description ILIKE ?);\");\n ps.setString(1, search);\n ps.setString(2, search);\n ResultSet rs = ps.executeQuery();\n found = listResults(rs);\n }catch (Exception error) {\n error.printStackTrace();\n conn.rollback();\n }finally {\n conn.close();\n }\n return found;\n }",
"List<SearchResult> search(SearchQuery searchQuery);",
"public List findByExample(Object example);",
"List<Block> search(String searchTerm);",
"List<Card> search(String searchString, long userId) throws PersistenceCoreException;",
"List<Coupon> findByTitleContaining(String searchWord);",
"public interface ProductRepository extends CrudRepository<Product,Long> {\n Product findById(Long id);\n Product findByName(String name);\n List<Product> findByNameIgnoreCaseContaining(String name);\n List<Product> findByDescriptionIgnoreCaseContaining(String description);\n\n}",
"public interface BookDAO extends JpaRepository<Book,Integer> {\n List<Book> findAllByCategory(Category category);\n List<Book> findAllByTitleLikeOrAuthorLike(String keyword1, String keyword2);\n}",
"public java.util.List<Todo> findByTodoText(String todoText);",
"public List<CatalogDescription> getCatalogDescriptions(Map<String, String> eqCriteria, Map<String, String> searchCriteria);",
"List<ResultDTO> search(String query);",
"List<T> searchByExample(T entity);",
"public List<ReadBookVO> searchReadBookList(String searchVal) {\n\t\t\n\t\tList<String> names = Arrays.asList(searchVal.split(\" \"));\n\t\treturn readBookDao.searchReadBookList(names);\n\t}",
"public abstract <T> List<T> listByExample(T searchObject);",
"List<Employee> findByNameContaining(String keyword, Sort sort);",
"public List<User> listSearch(String search);",
"@RequestMapping(method = RequestMethod.GET, value = \"/search\")\n public List<String> search(@RequestParam(name = \"query\") String query) {\n return searchService.search(query);\n }",
"@Query(\"FROM Job j WHERE j.jobTitle LIKE %:term%\")\n List<Job> searchByJobTitle(@Param(\"term\") String term);",
"public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}",
"public interface JournalEntryRepository extends MongoRepository<JournalEntry, String> {\n\n List<JournalEntry> findByTitleLike(String word);\n\n}",
"@GetMapping(\"/search\")\n public List<BannerDTO> searchByTitle(@RequestParam(\"title\") String title){\n return bannerService.findByTitle(title);\n }",
"public java.util.List<Todo> findByTodoRichText(String todoRichText);",
"public List<Goods> selectByStr(@Param(\"limit\")Integer limit,@Param(\"name\") String name,@Param(\"describle\") String describle);",
"@Repository\npublic interface AnalyseResultRepository extends JpaRepository<AnalyseCsv,Integer> {\n/* Iterable<AnalyseCsv> findById(Integer resultid);*/\n\n/* //按名称进行模糊搜索\n List<DatamodelSource> findByfilenameLike(String sourcename);*/\n\n\n\n\n}",
"List<Corretor> search(String query);",
"List<UserStory> findByTitleContainingIgnoreCase(@Param(\"title\") String title);",
"List<Codebadge> search(String query);",
"public interface StudentDao extends MongoRepository<Student, String> {\n /**\n * 自定义搜索 find + By + 字段 首字母大写\n * @param name\n * @return\n */\n Student findByName(String name);\n\n /**\n * 自定义搜索 find + By + 字段 首字母大写 +Like\n * @param name\n * @return\n */\n List<Student> findByNameLike(String name);\n}",
"List<T> findByExample(T t) ;",
"List<LectureDTO> search(String query);",
"String printListSearch(String searchString);",
"@Override\n public List<Digital> getSearch(String txt, int pageIndex, int pageSize) throws Exception {\n\n Connection con = null;\n ResultSet rs = null;\n PreparedStatement ps = null;\n List<Digital> list = new ArrayList<>();\n String query = \"select *from(\"\n + \"select ROW_NUMBER() over (order by ID ASC) as rn, *\\n\"\n + \"from digital where title \\n\"\n + \"like ?\"\n + \")as x\\n\"\n + \"where rn between ?*?-2\"\n + \"and ?*?\";\n // check connection of db if cannot connect, it will throw an object of Exception\n try {\n con = getConnection();\n ps = con.prepareStatement(query);\n ps.setString(1, \"%\" + txt + \"%\");\n ps.setInt(2, pageIndex);\n ps.setInt(3, pageSize);\n ps.setInt(4, pageIndex);\n ps.setInt(5, pageSize);\n rs = ps.executeQuery();\n while (rs.next()) {\n Digital d = new Digital(rs.getInt(\"id\"),\n rs.getString(\"title\"),\n rs.getString(\"description\"),\n rs.getString(\"images\"),\n rs.getString(\"author\"),\n rs.getTimestamp(\"timePost\"),\n rs.getString(\"shortDes\"));\n list.add(d);\n }\n } catch (Exception e) {\n throw e;\n } finally {\n // close ResultSet, PrepareStatement, Connection\n closeResultSet(rs);\n closePrepareStateMent(ps);\n closeConnection(con);\n }\n return list;\n }",
"public interface OrdineRepository extends JpaRepository<Ordine,Long> {\n\n //Ricerca ordini associati ad un determinato cliente\n @Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);\n}",
"Search getSearch();",
"ArrayList<News> findByTitle(String title) throws DAOException, ConnectionPoolDataSourceException;",
"public interface DirektoratRepository extends JpaRepository<Direktorat,Long> {\n\n @Query(value = \"select d from Direktorat d where d.nama like :cariNama\")\n List<Direktorat> findByNama(@Param(\"cariNama\")String cariNama);\n\n List<Direktorat> findByKode(String kode);\n\n}",
"@Repository\n@Transactional\npublic interface CatalogRepository extends CrudRepository<Catalog, Long> {\n Catalog findCatalogByCatalogCode(String code);\n\n @Query(value = \"select * from catalog where code like %:query% or name like %:query% \", nativeQuery = true)\n Set<Catalog> find(@Param(value = \"query\") String query);\n}",
"public List<Book> readByBookName(String searchString) throws Exception{\n\t\tsearchString = \"%\"+searchString+\"%\";\n\t\treturn (List<Book>) template.query(\"select * from tbl_book where title like ?\", new Object[] {searchString}, this);\n\t}",
"List<CfgSearchRecommend> selectByExample(CfgSearchRecommendExample example);",
"List<User> findByfnameContaining(String search);",
"@Query(\"select o from Ordine o \" +\n \"where lower(o.cliente.nomeCliente) like lower(concat('%', :searchTerm, '%')) \" )\n List<Ordine> searchForCliente(@Param(\"searchTerm\") String searchTerm);",
"List<SongVO> searchSong(String searchText) throws Exception;",
"public interface IPlantDAO {\n\n /**\n * Accept filter, text and return a collection of plants that contain that filter text\n * @param filter the text we want to match in our returned list of plants.\n * @return a list of plants that contain given filter text in either genus, species, cultivar or common name.\n */\n public List<PlantDTO> fetchPlants(String filter);\n\n\n}",
"@Override\n\tpublic List<Movie> search(String queryText) {\n\t\tMoviesResponse moviesResponse = movieDataService.fetchAll();\n\t\tList<Movie> movieList = moviesResponse.stream()\n\t\t\t\t.filter(movieData -> Arrays.asList(movieData.getTitle().toLowerCase().split(\"\\\\s+\")).contains(queryText.toLowerCase()))\n\t\t\t\t.collect(Collectors.mapping(movieData -> mapMovieDataToMovie(movieData),Collectors.toList()));\n\t\treturn movieList;\n\t}",
"List<ShipmentInfoPODDTO> search(String query);",
"@Repository\npublic interface DeviceTypeDao extends CrudRepository<DeviceType,Long> {\n\n DeviceType findByChinatypename(String chinatypename);\n\n// @Query(value=\"select * from tb_devicetype where chinatypename like ?1 or hextypename like ?1 or typename like ?1 or typenum like ?1\",nativeQuery=true)\n// DeviceType findSearch(String info);\n\n}",
"public interface SensitiveWordRepository extends MyRepository<SensitiveWord,Long> {\n\n SensitiveWord findByContent(String content);\n}",
"public List<Item> findItemByDescription(String description)\n {\n return auctionManager.findItemByDescription(description);\n }",
"public List<T> findByName(String text) {\n\t Query q = getEntityManager().createQuery(\"select u from \" + getEntityClass().getSimpleName() + \" u where u.name like :name\");\n\t q.setParameter(\"name\", \"%\" + text + \"%\");\n\t return q.getResultList();\n\t }",
"public interface ReviewStepMetaRepository extends AbstractEntityRepository<ReviewStepMeta>{\n List<ReviewStepMeta> findBySearchId(String searchId);\n\n\n}",
"@Override\n public List<DefinitionDTO> findWordsByWord(String query) {\n List<Word> words = wordRepository.findBySearchString(query);\n return DTOMapper.mapWordListToDefinitionDTOList(words);\n }",
"public List<Recipe> search(String queryText, Category category, CookingMethod cookingMethod);",
"@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}",
"public List<Ve> searchVe(String maSearch);",
"@Repository\npublic interface BlogRepository extends CrudRepository<Blog, Integer>{\n\n @Query(\"select b from Blog b where b.title like :title escape '/'\")\n public List<Blog> findBlogByTitle(@Param(\"title\") String title);\n\n @Query(\"select b from Blog b where b.author=:author\")\n public List<Blog> findBlogByAuthor(@Param(\"author\") String author);\n\n @Query(\"select b from Blog b where b.author like :keywords escape '/'\")\n public List<Blog> findBlogByAuthorKeywords(@Param(\"keywords\") String keywords);\n\n @Query(value = \"SELECT * from blog ORDER BY UNIX_TIMESTAMP(blog.create_date) DESC LIMIT :start, :end\", nativeQuery = true)\n public List<Blog> listBlog(@Param(\"start\") Integer start, @Param(\"end\") Integer end);\n}",
"@Override\r\n\tpublic List<Product> search(String key) {\n\tProductExample example = new ProductExample();\r\n\texample.createCriteria().andNameLike(\"%\"+key+\"%\");\r\n\texample.setOrderByClause(\"id desc\");\r\n\tList<Product> list = productMapper.selectByExample(example);\r\n\tsetAll(list);\r\n\treturn list;\r\n\t\t}",
"List<Person> findByLastName(String lastName);",
"void search();",
"void search();",
"public List<products> search(String text) {\n\t\t \n\t // get the full text entity manager\n\t FullTextEntityManager fullTextEntityManager =\n\t org.hibernate.search.jpa.Search.\n\t getFullTextEntityManager(entityManager);\n\t \n\t // create the query using Hibernate Search query DSL\n\t QueryBuilder queryBuilder = \n\t fullTextEntityManager.getSearchFactory()\n\t .buildQueryBuilder().forEntity(products.class).get();\n\t \n\t // a very basic query by keywords\n\t org.apache.lucene.search.Query query =\n\t queryBuilder\n\t .keyword()\n\t .onFields(\"title\")\n\t .matching(text)\n\t .createQuery();\n\t \n\t //System.out.println(\"query \"+query.toString());\n\t // wrap Lucene query in an Hibernate Query object\n\t org.hibernate.search.jpa.FullTextQuery jpaQuery =\n\t fullTextEntityManager.createFullTextQuery(query, products.class);\n\t jpaQuery.setMaxResults(10);\n\t //System.out.println(\"query \"+jpaQuery.toString());\n\t // execute search and return results (sorted by relevance as default)\n\t @SuppressWarnings(\"unchecked\")\n\t List<products> results = jpaQuery.getResultList();\n\t \n\t return results;\n\t }",
"SearchResult<TimelineMeta> search(SearchParameter searchParameter);",
"public List<User> searchUser(String searchValue);",
"List<Cemetery> search(String query);",
"public List<Produto> findByNomeLike(String nome);",
"@Override\n\tpublic List<AbilityBbs> searchList(String searchWord) {\n\t\treturn abilityDao.searchList(searchWord);\n\t}",
"List<PilotContainer> Search(String cas, String word);",
"public interface PollRepository extends CrudRepository<Poll, Long>{\n\t//Search function to find polls by their subject\n\tList<Poll> findBySubject(String subject);\n\n}",
"ArrayList<News> findByAuthor(String author) throws DAOException, ConnectionPoolDataSourceException;",
"@ResponseBody\n @RequestMapping(value=\"/searchcourses\", method=RequestMethod.GET)\n public LinkedList<Course> courseBySearchTerm(@RequestParam(\"SRCHTRM\") String searchTerm){\n dbManager.initializeDatabase();\n LinkedList<Course> rqstdcourses = dbManager.getCourseListByString(searchTerm);\n dbManager.closeDatabase();\n return rqstdcourses;\n }",
"@GetMapping(\"/search-author/{titleString}\")\n public List<Author> getAllAuthorsByConsistTitleString(@PathVariable(\"titleString\") String titleString){\n System.out.println(\"Query: \" + titleString);\n return authorService.getAuthorsByBookTitle(titleString);\n }",
"public List<Post> getBySearchString(String search) throws SQLException {\r\n\tString sql = \"SELECT * FROM posts WHERE content LIKE ? ORDER BY date DESC LIMIT ?\";\r\n\tPreparedStatement st = db.prepareStatement(sql);\r\n\tst.setQueryTimeout(TIMEOUT);\r\n\t\r\n\tst.setString(1, \"%\" + search + \"%\");\r\n\tst.setInt(2, LIMIT);\r\n\t\r\n\tResultSet results = st.executeQuery();\r\n\tList<Post> parsed = parseResults(results);\r\n\treturn parsed;\r\n }",
"@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }",
"List<T> findByExample(T exampleInstance);",
"Page<NoteDTO> search(String query, Pageable pageable);",
"@GET\n\t@Nonnull\n\t@Produces(MediaType.APPLICATION_JSON)\n\tList<Exercise> getExerciseByDescription(@Nonnull @QueryParam(\"description\") String description);",
"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 }",
"@Test\n\tpublic void findByRegularExpression() {\n\t\tBdmService service = new BdmService();\n\t\tservice.setIndexRepository(this.getRepository(10, 100, BDM_CODE));\n\t\tPageableResult<Bdm> list = service.findByRegularExpression(SEARCH_STRING,\n\t\t\t\t10, 100);\n\t\tAssert.assertEquals(this.getTestBdm(), list.getData().iterator().next());\n\t}",
"List<TypeTreatmentPlanStatuses> search(String query);",
"@Query(\"select p from Pedido p where p.desc =?1\")\n public Pedido buscarPedidoPorDescricao(String desc);",
"@Override\n\tpublic List<SApplicationcategory> find(String searchinfo, int page, int rows) {\n\t\tString hql=\"from \"+tablename +\" where 1=1 \";\t\t\n\t\tif(searchinfo!=null&& !searchinfo.equals(\"\")){\t\t\t\n\t\t\thql+=\" and t.name like '%\"+ searchinfo+\"%' \";\n\t\t}\t\t\n\t\treturn SApplicationcategorydao.find(hql, page, rows);\n\t}",
"List<Student> findAllByLastNameLike(String lastName);",
"public interface SysRoleRepository extends CrudRepository<SysRole, Long> {\n\n List<SysRole> findAllByDescriptionIn(Collection<String> roleNames);\n}",
"public List findRecords(String informationType, String queryString) throws DatabaseException;",
"@ResponseBody\n @RequestMapping(value=\"/existingbystring\", method=RequestMethod.GET)\n public LinkedList<ExistingCourseForDisplay> existingCourseForDisplay(@RequestParam(\"SEARCHTERM\") String searchTerm){\n dbManager.initializeDatabase();\n LinkedList<ExistingCourseForDisplay> ecdl= dbManager.getDisplayCourses(searchTerm);\n dbManager.closeDatabase();\n return ecdl;\n }",
"public Parameter getParameterByDescription(String description) {\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().trim().equalsIgnoreCase(description.trim())) {\r\n return cat;\r\n }\r\n }\r\n return null;\r\n }",
"@Transactional(readOnly = true)\n public Result list(String search) {\n List<Tag> tags = TagService.search(search);\n return util.Json.jsonResult(response(), ok(Json.toJson(tags)));\n }",
"public java.util.List<Todo> findByTitle(String title);",
"@Override\n public List<Client> filterByName(String searchString){\n log.trace(\"filterByName -- method entered\");\n Iterable<Client> clients = clientRepository.findAll();\n List<Client> result = StreamSupport.stream(clients.spliterator(),false).filter((c)->c.getName().contains(searchString)).collect(Collectors.toList());\n log.trace(\"filterByName: result = {}\", result);\n return result;\n\n }",
"public void search() {\r\n \t\r\n }"
] | [
"0.8027029",
"0.7296556",
"0.7112129",
"0.7101875",
"0.69368964",
"0.6899516",
"0.68939406",
"0.68145555",
"0.6737028",
"0.66609263",
"0.663154",
"0.65895885",
"0.63810855",
"0.6335838",
"0.63184613",
"0.63160056",
"0.63023794",
"0.6274415",
"0.62410915",
"0.6233143",
"0.6206005",
"0.6134463",
"0.6118452",
"0.6115164",
"0.6102688",
"0.60944784",
"0.6088969",
"0.6076549",
"0.6064014",
"0.6052202",
"0.6030492",
"0.60252935",
"0.6020164",
"0.6019877",
"0.60195917",
"0.6019311",
"0.6019152",
"0.59960234",
"0.593962",
"0.5938811",
"0.59372914",
"0.59142244",
"0.59138775",
"0.59122497",
"0.5911025",
"0.5908245",
"0.59076524",
"0.5894036",
"0.5892425",
"0.5887665",
"0.5884519",
"0.58802146",
"0.5879236",
"0.5863695",
"0.58625597",
"0.58556956",
"0.5854597",
"0.5853267",
"0.5831723",
"0.5824385",
"0.5820569",
"0.5818343",
"0.581701",
"0.581317",
"0.58092666",
"0.58078355",
"0.5803158",
"0.5796723",
"0.57940793",
"0.57940793",
"0.57928187",
"0.5788175",
"0.57860565",
"0.5781247",
"0.5775676",
"0.57734853",
"0.57484317",
"0.5747586",
"0.57439965",
"0.5743321",
"0.57358825",
"0.57353055",
"0.5731753",
"0.57277584",
"0.57277495",
"0.5725438",
"0.5724684",
"0.57200116",
"0.57197714",
"0.57192034",
"0.5717782",
"0.57171863",
"0.571652",
"0.57163036",
"0.5710904",
"0.5704717",
"0.57006514",
"0.56978077",
"0.5690168",
"0.5686168"
] | 0.82292587 | 0 |
TODO Autogenerated method stub | @Override
public void run() {
try {
Thread.sleep(5000);
WaitDialogs.this.dialog.dispose();
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
/ GET INPUT FROM USER FIELDS | @Override
public void onClick(View v) {
String username = edtUsername.getText().toString();
String password = edtPassword.getText().toString();
int usertype = spnUsertype.getSelectedItemPosition();
/* CHECK IF FIELDS ARE BLANK */
if(areFieldsBlank(username, password)) {
return;
}
else {
/* REDIRECT TO FREELANCE DASHBOARD */
if (usertype == 0) {
if (app.isFreelancerExistent(username, password)) {
Intent launchFreelanceDashboardActivity = new Intent(LoginActivity.this,
FreelanceDashboardActivity.class);
/* CREATE SESSION */
session.createLoginSession(username, password, "Freelancer");
launchFreelanceDashboardActivity.putExtra("F_USERNAME", username);
launchFreelanceDashboardActivity.putExtra("F_PASSWORD", password);
startActivity(launchFreelanceDashboardActivity);
finish();
return;
}
else {
Toast.makeText(LoginActivity.this,
"ERROR: Please verify freelancer login credentials.",
Toast.LENGTH_SHORT).show();
}
}
/* REDIRECT TO CLIENT DASHBOARD */
else if (usertype == 1) {
if (app.isClientExistent(username, password)) {
Intent launchClientDashboardActivity = new Intent(LoginActivity.this,
ClientDashboardActivity.class);
/* CREATE SESSION */
session.createLoginSession(username, password, "Client");
launchClientDashboardActivity.putExtra("F_USERNAME", username);
launchClientDashboardActivity.putExtra("F_PASSWORD", password);
startActivity(launchClientDashboardActivity);
finish();
return;
}
else {
Toast.makeText(LoginActivity.this,
"ERROR: Please verify client login credentials.",
Toast.LENGTH_SHORT).show();
}
}
/* REDIRECT TO ADMIN DASHBOARD */
else if (usertype == 2) {
// TODO: Verify Account
Intent launchAdminDashboardActivity = new Intent(LoginActivity.this,
AdminDashboardActivity.class);
startActivity(launchAdminDashboardActivity);
finish();
return;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"String getUserInput();",
"String getUsersInput(String outForUser) throws IOException;",
"String getInput();",
"private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }",
"Input getInputs();",
"Inputs getInputs();",
"List<String> getListInput(String fieldName);",
"private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }",
"public String getInputUser() {\n return inputUser;\n }",
"private String getClientInput() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = null;\n try {\n input = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return input;\n }",
"public void takeUserInput() {\n\t\t\r\n\t}",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"private static String inputStringHelper(Scanner scanner, String field) {\n System.out.println(\"Type in your new friend's \" + field + \": \");\n return scanner.nextLine();\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }",
"public String getUser1()\n {\n return userInput1;\n }",
"String userInputFromTextArea();",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public abstract Object getInput ();",
"INPUT createINPUT();",
"Input getObjetivo();",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"protected abstract void getInput();",
"public static String readUserInput() {\n return in.nextLine();\n }",
"public static String getUserInput() {\n\t\tif (testType == null) {\n\t\t\tuserInput = inputScanner.nextLine();\n\t\t} else if (testType.equalsIgnoreCase(\"makeReady\")) {\n\t\t\tcreateEnterTestSet();\n\t\t\tif (enterTestCount < enterCount)\n\t\t\t\tuserInput = (String) makeReadyEnters.get(enterTestCount++);\n\t\t}else if (testType.equalsIgnoreCase(\"sequenceTest\")) {\n\t\t\tcreateWrongSequenceTestSet();\n\t\t\tif (sequenceTestCount<wrongSeqCount)\n\t\t\t\tuserInput = (String) wrongSequenceAnswers.get(sequenceTestCount++);\n\t\t}\n\t\telse if (testType.equalsIgnoreCase(\"randomKeyPress\")) {\n\t\t\tcreatePlayfulSet();\n\t\t\tif (randomTestCount<randomCount)\n\t\t\t\tuserInput = (String) randomKeys.get(randomTestCount++);\n\t\t}\n\n\t\treturn userInput;\n\t}",
"public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}",
"String userInput(String question);",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput getGetInput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String searchBoxUserRecord();",
"public String getInputBy() {\n return inputBy;\n }",
"public String getUserInput(String prompt) {\n Scanner scanner = new Scanner(System.in);\n\n // prompt for the user's name\n System.out.print(prompt);\n\n // get their input as a String\n String userInput = scanner.next();\n\n return userInput;\n }",
"public static String getInput(String arg1, String arg2, String arg3)\n\t{\n\t\tString input;\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"Select: \");\n\t\t\tSystem.out.println(\"1. \" + arg1);\n\t\t\tSystem.out.println(\"2. \" + arg2);\n\t\t\tSystem.out.println(\"3. \" + arg3);\n\t\t\tinput = scn.nextLine();\n\t\t} while(!(input.equals(\"1\") || input.equals(\"2\") || input.equals(\"3\")));\n\t\treturn input;\n\t}",
"public interface UsersInput {\n\n /**\n * Return user's input on a given line.\n * @param outForUser given line.\n * @return user's input.\n * @throws IOException IOException.\n */\n String getUsersInput(String outForUser) throws IOException;\n}",
"public void readUserInput(){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String input = reader.readLine();\n while (!userValidation.validateUserInput(input)){\n input = reader.readLine();\n }\n elevatorController.configureNumberOfElevators(input);\n\n } catch (\n IOException e) {\n logger.error(e);\n }\n\n }",
"private void prepareUserFields(String fieldInput) throws AutomicException {\n String[] fields = fieldInput.split(\",\");\n userInputFields = new ArrayList<String>(fields.length);\n uniqueFields = new HashSet<String>(fields.length);\n for (String field : fields) {\n String temp = field.trim();\n if (CommonUtil.checkNotEmpty(temp)) {\n userInputFields.add(temp);\n uniqueFields.add(temp.toLowerCase());\n }\n }\n if (uniqueFields.isEmpty()) {\n throw new AutomicException(String.format(\"Invalid Fields have been provided [%s] \", fieldInput));\n }\n }",
"String getVariableInput() {\n return (variableInput.getText());\n }",
"public void setUserinput(String userinput){\n String[] inputs = userinput.split(\" \");\n if(inputs.length > 1){\n this.userinput_var = inputs[1];\n }\n this.userinput_command = inputs[0];\n }",
"String getField();",
"public void get_UserInput(){\r\n\t Scanner s = new Scanner(System.in);\r\n\t // get User inputs \r\n\t System.out.println(\"Please enter a number for Dry (double):\");\r\n\t DRY = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wet (double):\");\r\n\t WET = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for ISNOW (double):\");\r\n\t ISNOW = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wind(double):\");\r\n\t WIND = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for BUO (double):\");\r\n\t BUO = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Iherb (int):\");\r\n\t IHERB = s.nextInt(); \r\n\t System.out.println(\"****Data for parameters are collected****.\");\r\n\t System.out.println(\"Data for parameters are collected.\");\r\n\t dry=DRY;\r\n\t wet=WET;\r\n}",
"public void getInfo() {\n Scanner scanner = new Scanner(System.in);\n //get values from the user using scanner and sets class variables appropriately\n System.out.print(\"Enter the first name: \");\n setFirstName(scanner.nextLine());\n\n System.out.print(\"Enter the last name: \");\n setLastName(scanner.nextLine());\n\n System.out.print(\"Enter the ZIP code: \");\n setZipcode(scanner.nextLine());\n\n System.out.print(\"Enter the employee ID: \");\n setEmployeeID(scanner.next());\n }",
"InputsType getInputs();",
"private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"static void gatherInfo() {\n Scanner keyboard = new Scanner(System.in);\n System.out.print(\"Enter the type of measurement (inches, feet, etc.). >> \");\n measurementType = keyboard.nextLine();\n System.out.print(\"Enter the rectangle width. >> \");\n height = keyboard.nextDouble();\n System.out.print(\"Enter the rectangle height. >> \");\n width = keyboard.nextDouble();\n }",
"R extractRawInputs(I input);",
"public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"String searchBoxUserRecordSelected();",
"public void getInput(){\n\t\tScanner scan= new Scanner(System.in);\n\t\t//Get the range\n\t\tif(scan.hasNext()){\n\t\t\tcount=Integer.parseInt(scan.nextLine()); \n\t\t}\n\t\t//Initialize the array\n\t\tpeople = new People[count];\n\t\t//Get the array elements\n\t\tint i=0;\n\t\twhile(i<count){\n\t\t\tString lin[] = scan.nextLine().split(\" \");\n\t\t\tpeople[i] = new People(Integer.parseInt(lin[0]), Double.parseDouble(lin[1]));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t\n\t}",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"abstract public String getValue(String fieldname);",
"public String Get_Input()throws IOException{\r\n\t\tString input=\"\";\r\n\t\tInputStreamReader converter = new InputStreamReader(System.in);\r\n\t\tBufferedReader in = new BufferedReader(converter);\r\n\t\t\r\n\t\tinput = in.readLine();\r\n\t\t\r\n\t\treturn input;\r\n\t}",
"public String getUser2()\n {\n return userInput2;\n }",
"public void input() {\r\n System.out.print(\"Enter your employee ID number: \");\r\n ID = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Gross Pay: \");\r\n grosspay = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your State Tax: \");\r\n Statetax = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Federal Tax: \");\r\n Fedtax = enter.nextDouble(); }",
"public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }",
"protected abstract ContentValues getDataFromInput();",
"public String getInput() {\n return input;\n }",
"String getUserInput(String prompt) {\r\n System.out.print(prompt);\r\n try {\r\n return rdr.readLine();\r\n }\r\n catch (IOException ex) {\r\n return null;\r\n }\r\n }",
"private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}",
"String askForData();",
"public void processUser(){\n Scanner sc = new Scanner(System.in);\n\n InputNote inputNote = new InputNote(view, sc, note);\n inputNote.inputNote();\n\n notebook.addNote(note);\n note.formLastNameAndFirstLetterOfName();\n System.out.println(note.toString());\n }",
"public static void getPropertyInfo(){\n\t\tSystem.out.println(\"Please enter a property id: \");\n\t\tpropertyId = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter the principle amount: \");\n\t\tString principleInput = scanner.nextLine();\n\t\tprinciple = Integer.parseInt(principleInput);\n\t\tSystem.out.println(\"Please enter the interest rate: \");\n\t\tString interestInput = scanner.nextLine();\n\t\tinterestRate = Double.parseDouble(interestInput)*.01;\n\t\tSystem.out.println(\"Please enter the term in months: \");\n\t\tString termInput = scanner.nextLine();\n\t\ttermInMonths = Integer.parseInt(termInput);\n\t\t\n\t}",
"@Override\n public String readUserInput() {\n while (true) {\n System.out.println(\"\");\n System.out.print(\"Enter Information: \");\n Scanner in = new Scanner(System.in);\n String userInput = in.nextLine();\n\n if (!userInput.equals(\"0\")) {\n String[] parts = userInput.split(\",\");\n if (parts.length == 5) {\n if (DateSorting.isDateValid(\"dd-MM-yyyy\", parts[2])) {\n if (TodoList.tasks.get(parts[0]) == null) {\n return userInput;\n } else {\n System.out.println(\"A task with this ID already exists, try again: \");\n }\n } else {\n System.out.println(\"The date entered is invalid, try again: \");\n }\n } else {\n System.out.println(\"Please follow instructions, try again: \");\n }\n } else {\n return userInput;\n }\n }\n }",
"public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}",
"Input createInput();",
"public String getInput() {\r\n return getText();\r\n }",
"public String inputForm() {\n return inputDataTraveler.validateData();\n }",
"public static String GetInput() {\r\n\t\t// Scanner is created and a value is set for input\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString input = in.nextLine();\r\n\t\treturn input;\r\n\r\n\t}",
"public String getUserStringInput(String tips)\n {\n Scanner console = new Scanner(System.in);\n System.out.println(tips);\n return console.nextLine();\n }",
"private String getUserInput(Scanner sc) {\n\t\t\n\t\tif (sc == null) {\n\t\t\treturn null;\n\t\t}\n\n\t System.out.print(\"\\nctransfer > \");\n\t return sc.nextLine();\n\t}",
"public String inputName() {\n String name = editTextName.getText().toString();\n return name;\n }",
"protected SelectionText input() {\n return inputter;\n }",
"public static String getString(){\n Scanner in = new Scanner(System.in); //scanner variable to take input\n return in.nextLine().trim();\n }",
"@Override\n public T getData() {\n Scanner scanner = new Scanner(System.in);\n return (T) scanner.next();\n }",
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"public static String getArgs(String userInput) throws EmptyTaskException {\n String[] components = userInput.split(\" \", 2);\n if (components.length == 1) {\n throw new EmptyTaskException();\n } else {\n return components[1];\n }\n }",
"private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }",
"public static Input getInput() {\r\n return input;\r\n }",
"public void getData(AccessInputMeta in)\n\t{\n\t\tif (in.getFileName() !=null) \n\t\t{\n\t\t\twFilenameList.removeAll();\n\n\t\t\tfor (int i=0;i<in.getFileName().length;i++) \n\t\t\t{\n\t\t\t\twFilenameList.add(new String[] { in.getFileName()[i], in.getFileMask()[i] , in.getExludeFileMask()[i],in.getRequiredFilesDesc(in.getFileRequired()[i]), in.getRequiredFilesDesc(in.getIncludeSubFolders()[i])} );\n\t\t\t}\t\n\t\t\twFilenameList.removeEmptyRows();\n\t\t\twFilenameList.setRowNums();\n\t\t\twFilenameList.optWidth(true);\n\t\t}\n\t\twInclFilename.setSelection(in.includeFilename());\n\t\twInclTablename.setSelection(in.includeTablename());\n\t\twInclRownum.setSelection(in.includeRowNumber());\n\t\twAddResult.setSelection(in.isAddResultFile());\n\t\t\n\t\twFileField.setSelection(in.isFileField());\n\t\t\n\t\tif (in.getTableName()!=null) wTable.setText(in.getTableName());\n\t\tif (in.getFilenameField()!=null) wInclFilenameField.setText(in.getFilenameField());\n\t\tif (in.getDynamicFilenameField()!=null) wFilenameField.setText(in.getDynamicFilenameField());\n\t\t\n\t\t\n\t\tif (in.gettablenameField()!=null) wInclTablenameField.setText(in.gettablenameField());\n\t\tif (in.getRowNumberField()!=null) wInclRownumField.setText(in.getRowNumberField());\n\t\twResetRownum.setSelection(in.resetRowNumber());\n\t\twLimit.setText(\"\"+in.getRowLimit());\n\n\t\tlogDebug(BaseMessages.getString(PKG, \"AccessInputDialog.Log.GettingFieldsInfo\"));\n\t\tfor (int i=0;i<in.getInputFields().length;i++)\n\t\t{\n\t\t AccessInputField field = in.getInputFields()[i];\n\t\t \n if (field!=null)\n {\n \t\t\tTableItem item = wFields.table.getItem(i);\n \t\t\tString name = field.getName();\n \t\t\tString xpath\t= field.getColumn();\n \t\t\tString type = field.getTypeDesc();\n \t\t\tString format = field.getFormat();\n \t\t\tString length = \"\"+field.getLength();\n \t\t\tString prec = \"\"+field.getPrecision();\n \t\t\tString curr = field.getCurrencySymbol();\n \t\t\tString group = field.getGroupSymbol();\n \t\t\tString decim = field.getDecimalSymbol();\n \t\t\tString trim = field.getTrimTypeDesc();\n \t\t\tString rep = field.isRepeated()?BaseMessages.getString(PKG, \"System.Combo.Yes\"):BaseMessages.getString(PKG, \"System.Combo.No\");\n \t\t\t\n if (name !=null) item.setText( 1, name);\n if (xpath !=null) item.setText( 2, xpath);\n \t\t\tif (type !=null) item.setText( 3, type);\n \t\t\tif (format !=null) item.setText( 4, format);\n \t\t\tif (length !=null && !\"-1\".equals(length)) item.setText( 5, length);\n \t\t\tif (prec !=null && !\"-1\".equals(prec)) item.setText( 6, prec);\n \t\t\tif (curr !=null) item.setText( 7, curr);\n \t\t\tif (decim !=null) item.setText( 8, decim);\n \t\t\tif (group !=null) item.setText( 9, group);\n \t\t\tif (trim !=null) item.setText(10, trim);\n \t\t\tif (rep !=null) item.setText(11, rep); \n }\n\t\t}\n \n wFields.removeEmptyRows();\n wFields.setRowNums();\n wFields.optWidth(true);\n if(in.getShortFileNameField()!=null) wShortFileFieldName.setText(in.getShortFileNameField());\n if(in.getPathField()!=null) wPathFieldName.setText(in.getPathField());\n if(in.isHiddenField()!=null) wIsHiddenName.setText(in.isHiddenField());\n if(in.getLastModificationDateField()!=null) wLastModificationTimeName.setText(in.getLastModificationDateField());\n if(in.getUriField()!=null) wUriName.setText(in.getUriField());\n if(in.getRootUriField()!=null) wRootUriName.setText(in.getRootUriField());\n if(in.getExtensionField()!=null) wExtensionFieldName.setText(in.getExtensionField());\n if(in.getSizeField()!=null) wSizeFieldName.setText(in.getSizeField());\n\n\n\t\tsetIncludeFilename();\n\t\tsetIncludeTablename();\n\t\tsetIncludeRownum();\n\n\t\twStepname.selectAll();\n\t}",
"@Override\r\n public String[] getInputs() {\n String[] inputs = new String[1];\r\n\r\n // display the text of the main menu\r\n System.out.println(\"Main Menu\"\r\n + \"N - start new game\"\r\n + \"\\nS - Save Game\"\r\n + \"\\nG - Get and resume saved game\"\r\n + \"\\nH - Help\"\r\n + \"\\nQ - Quit\");\r\n \r\n // prompt for and get the menu input by the end user\r\n String value = this.getInput(\"Enter one of the menu options.\");\r\n \r\n // asssign the value input to the first position in the inputs array\r\n inputs[0] = value;\r\n return inputs;\r\n }",
"void requestInput();",
"public String getInput1() {\n return input1;\n }",
"private static String getInputQuery() throws IOException {\n\n String inputQuery = \"\";\n\n System.out.print(\"Please enter a search term: \");\n BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));\n inputQuery = bReader.readLine();\n\n if (inputQuery.length() < 1) {\n // Use the string \"YouTube Developers Live\" as a default.\n inputQuery = \"YouTube Developers Live\";\n }\n return inputQuery;\n }",
"public void readInput()\n\t{\n\t\tString userInput;\n\t\tChoices choice;\n\t\t\n\t\tdo {\n\t\t\tlog.log(Level.INFO, \"Please give the inputs as:\\n\"\n\t\t\t\t\t+ \"ADDACCOUNT to add the account\\n\" \n\t\t\t\t\t+ \"DISPLAYALL to display all accounts\\n\"\n\t\t\t\t\t+ \"SEARCHBYACCOUNT to search by account\\n\"\n\t\t\t\t\t+ \"DEPOSIT to deposit into account\\n\"\n\t\t\t\t\t+ \"WITHDRAW to withdraw from the account\\n\"\n\t\t\t\t\t+ \"EXIT to end the application\"\n\t\t\t\t\t);\n userInput = scan.next();\n choice = Choices.valueOf(userInput);\n\n switch (choice) {\n case ADDACCOUNT : \taddAccount();\n \t\t\t\t\t\tbreak;\n \n case DISPLAYALL :\t\tdisplayAll();\n \t\t\t\t\t\tbreak;\n\n case SEARCHBYACCOUNT :\tsearchByAccount();\n \t\t\t\t\t\tbreak;\n \n case DEPOSIT :\t\t\tdepositAmount();\n \t\t\t\t\t\tbreak;\n \n case WITHDRAW :\t\t\twithDrawAmount();\n \t\t\t\t\t\tbreak;\n \n case EXIT:\t\t\t\tlog.log(Level.INFO, \"Application has ended successfully\");\n \t\t\t\t\t\tbreak;\n \n default: break;\n }\n } while(choice != Choices.EXIT);\n\t\t\n\t\tscan.close();\n\t}",
"public String getUserDecision(){\n return input.nextLine();\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"java.lang.String getField1333();",
"public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }",
"public String getFieldText(String fieldName);",
"private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }",
"private static String getUserPage() \n\t{\n\t\tString userInput = \"\";\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"What page?\");\n\t\t\tSystem.out.print(\"-> \");\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tuserInput = scanner.nextLine();\n\t\t\t\n\t\t\t// Check to see if their input is greater than the maxLength.\n\t\t\t// Error and quit with the message below if it is.\n\t\t\tif(userInput.length() > maxLength)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Please request a page with fewer characters.\");\n\t\t\t}\n\t\t} catch (Exception e) \n\t\t{\n\t\t\terrorQuit(e.getMessage());\n\t\t}\t\t\n\t\treturn userInput;\n\t\t\t \n\t}",
"public Account getInputOfUsersAccount() {\n\n\t\tString accountNumber = InputsValidator.getAccountFromPerson(\"Enter account:\");\n\n\t\tif (!log.isAccountInList(accountNumber)) {\n\t\t\tSystem.out.println(\"Account \" + accountNumber + \" dosn't exist!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\tAccount accountForEditOrDelete = infos.getAccount(accountNumber);\n\t\treturn accountForEditOrDelete;\n\t}",
"public void input() throws ParseException {\r\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter id: \");\r\n\t\tString idSt = scn.nextLine();\r\n\t\tid = Integer.parseInt(idSt);\r\n\t\tSystem.out.println(\"Please enter title: \");\r\n\t\ttitle = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter authors name: \");\r\n\t\tauthor = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter date (dd.MM.yyyy): \");\r\n\t\tString scnDate = scn.nextLine();\r\n\t\tdateOfPublication = stringToDate(scnDate);\r\n\t}",
"private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}",
"private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }"
] | [
"0.70368624",
"0.6782668",
"0.65853",
"0.65673774",
"0.6430418",
"0.6375313",
"0.6355768",
"0.63478225",
"0.62743306",
"0.608286",
"0.59767306",
"0.5962887",
"0.5958919",
"0.5954374",
"0.59331095",
"0.5923627",
"0.5882358",
"0.58822435",
"0.5866794",
"0.5865213",
"0.58627737",
"0.58541113",
"0.58457184",
"0.58436644",
"0.5838599",
"0.5828134",
"0.58185047",
"0.5818399",
"0.5802515",
"0.5801121",
"0.5790189",
"0.57758546",
"0.5774764",
"0.57500964",
"0.5746294",
"0.5742413",
"0.5737977",
"0.5702702",
"0.56997067",
"0.56882215",
"0.56860894",
"0.56780595",
"0.56633997",
"0.56539744",
"0.5624883",
"0.5602326",
"0.56002635",
"0.55913097",
"0.55830383",
"0.5568204",
"0.5563991",
"0.5561622",
"0.55557644",
"0.555499",
"0.55538404",
"0.5527232",
"0.55258745",
"0.55257773",
"0.55257773",
"0.55257773",
"0.55207866",
"0.5517936",
"0.55135554",
"0.5513333",
"0.5498048",
"0.5486633",
"0.5480934",
"0.5478327",
"0.54779065",
"0.5473949",
"0.54694176",
"0.54626197",
"0.54620165",
"0.5448466",
"0.5444329",
"0.54314655",
"0.5427509",
"0.5422921",
"0.541931",
"0.54149264",
"0.54040366",
"0.54035604",
"0.5367311",
"0.5361007",
"0.5355567",
"0.5346166",
"0.5337935",
"0.53334403",
"0.53249943",
"0.53246623",
"0.53184193",
"0.53168285",
"0.53052026",
"0.53014654",
"0.52977395",
"0.52917266",
"0.52910817",
"0.5282646",
"0.52812487",
"0.5278408",
"0.5277738"
] | 0.0 | -1 |
/ GET INPUT FROM USER FIELDS | @Override
public void onClick(View v) {
String username = edtUsername.getText().toString();
String password = edtPassword.getText().toString();
int usertype = spnUsertype.getSelectedItemPosition();
/* CHECK IF FIELDS ARE BLANK */
if (areFieldsBlank(username, password)) {
return;
}
else {
/* REDIRECT TO FREELANCE SIGNUP ACTIVITY */
if (usertype == 0) {
if (!app.isFreelancerUsernameTaken(username)) {
Intent launchFreelanceSignupActivity = new Intent(LoginActivity.this,
FreelanceSignupActivity.class);
launchFreelanceSignupActivity.putExtra("F_USERNAME", username);
launchFreelanceSignupActivity.putExtra("F_PASSWORD", password);
startActivity(launchFreelanceSignupActivity);
finish();
return;
}
else {
Toast.makeText(LoginActivity.this,
"ERROR: Freelance username already taken.",
Toast.LENGTH_SHORT).show();
return;
}
}
/* REDIRECT TO CLIENT SIGNUP ACTIVITY */
else if (usertype == 1) {
if (!app.isClientUsernameTaken(username)) {
Intent launchClientSignupActivity = new Intent(LoginActivity.this,
ClientSignupActivity.class);
launchClientSignupActivity.putExtra("C_USERNAME", username);
launchClientSignupActivity.putExtra("C_PASSWORD", password);
startActivity(launchClientSignupActivity);
finish();
return;
}
else {
Toast.makeText(LoginActivity.this,
"ERROR: Client username already taken.",
Toast.LENGTH_SHORT).show();
}
}
/* ERROR TOAST MESSAGE FOR ADMIN SIGNUPS */
else if (usertype == 2) {
Toast.makeText(LoginActivity.this,
"ERROR: You may not signup as an administrator.",
Toast.LENGTH_SHORT).show();
return;
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getTextFromInput() {\n firstName = firstNameField.getText();\n lastName = lastNameField.getText();\n age = ageField.getText();\n email = emailField.getText().toLowerCase();\n }",
"String getUserInput();",
"String getUsersInput(String outForUser) throws IOException;",
"String getInput();",
"private void getUserInput() {\n getUserTextInput();\n getUserPhotoChoice();\n getUserRoomChoice();\n getUserBedroomsChoice();\n getUserBathroomsChoice();\n getUserCoownerChoice();\n getUserIsSoldChoice();\n getUserTypeChoice();\n mAmenitiesInput = Utils.getUserAmenitiesChoice(mBinding.chipGroupAmenities.chipSchool,\n mBinding.chipGroupAmenities.chipShop, mBinding.chipGroupAmenities.chipTransport,\n mBinding.chipGroupAmenities.chipGarden);\n }",
"Input getInputs();",
"Inputs getInputs();",
"List<String> getListInput(String fieldName);",
"private void getUserTextInput() {\n if (!TextUtils.isEmpty(mBinding.fragmentSearchZipcodeTxt.getText()))\n mZipcodeInput = Integer.parseInt(mBinding.fragmentSearchZipcodeTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchCityTxt.getText()))\n mCityInput = mBinding.fragmentSearchCityTxt.getText().toString().trim();\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinSurfaceTxt.getText()))\n mMinSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMinSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxSurfaceTxt.getText()))\n mMaxSurfaceInput = Utils.convertAreaAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxSurfaceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinPriceTxt.getText()))\n mMinPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMinPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMaxPriceTxt.getText()))\n mMaxPriceInput = Utils.convertPriceAccordingToPreferences(mActivity, mBinding.fragmentSearchMaxPriceTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchMinFloorsTxt.getText()))\n mFloorsInput = Integer.parseInt(mBinding.fragmentSearchMinFloorsTxt.getText().toString().trim());\n if (!TextUtils.isEmpty(mBinding.fragmentSearchForSaleTxt.getText()))\n mForSaleDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchForSaleTxt.getText().toString().trim()));\n if (!TextUtils.isEmpty(mBinding.fragmentSearchSoldTxt.getText()))\n mSoldDate = Converters.dateToTimestamp(Utils.convertStringToDate(mBinding.fragmentSearchSoldTxt.getText().toString().trim()));\n }",
"public String getInputUser() {\n return inputUser;\n }",
"private String getClientInput() {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String input = null;\n try {\n input = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return input;\n }",
"public void takeUserInput() {\n\t\t\r\n\t}",
"public static String getStringInput() {\n Scanner in = new Scanner(System.in);\n return in.next();\n }",
"private static String inputStringHelper(Scanner scanner, String field) {\n System.out.println(\"Type in your new friend's \" + field + \": \");\n return scanner.nextLine();\n }",
"public String getUserInput(String question) {\r\n System.out.print(question);\r\n return scanner.next();\r\n }",
"private static String getUserText()\n {\n\t// Reads the users input.\n\tBufferedReader optionReader = new BufferedReader(new InputStreamReader(System.in));\n\n\ttry\n\t {\n\t\treturn(optionReader.readLine());\n\t }\n\tcatch(Exception ex)\n\t {\n\t\treturn(null);\n\t }\n }",
"public String getUser1()\n {\n return userInput1;\n }",
"String userInputFromTextArea();",
"public String readCommand() {\n sc = new Scanner(System.in);\n userInput = new TextField();\n return userInput.getText();\n }",
"public abstract Object getInput ();",
"INPUT createINPUT();",
"Input getObjetivo();",
"public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }",
"protected abstract void getInput();",
"public static String readUserInput() {\n return in.nextLine();\n }",
"public static String getUserInput() {\n\t\tif (testType == null) {\n\t\t\tuserInput = inputScanner.nextLine();\n\t\t} else if (testType.equalsIgnoreCase(\"makeReady\")) {\n\t\t\tcreateEnterTestSet();\n\t\t\tif (enterTestCount < enterCount)\n\t\t\t\tuserInput = (String) makeReadyEnters.get(enterTestCount++);\n\t\t}else if (testType.equalsIgnoreCase(\"sequenceTest\")) {\n\t\t\tcreateWrongSequenceTestSet();\n\t\t\tif (sequenceTestCount<wrongSeqCount)\n\t\t\t\tuserInput = (String) wrongSequenceAnswers.get(sequenceTestCount++);\n\t\t}\n\t\telse if (testType.equalsIgnoreCase(\"randomKeyPress\")) {\n\t\t\tcreatePlayfulSet();\n\t\t\tif (randomTestCount<randomCount)\n\t\t\t\tuserInput = (String) randomKeys.get(randomTestCount++);\n\t\t}\n\n\t\treturn userInput;\n\t}",
"public static String getInput() {\n\t\tScanner inputReader = new Scanner(System.in);\n\t\tString userInput;\n\t\tuserInput = inputReader.nextLine();\n\t\treturn userInput;\n\t}",
"String userInput(String question);",
"public org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput getGetInput()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput target = null;\n target = (org.oasis_open.docs.ns.bpel4people.ws_humantask.api._200803.GetInputDocument.GetInput)get_store().find_element_user(GETINPUT$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String searchBoxUserRecord();",
"public String getInputBy() {\n return inputBy;\n }",
"public String getUserInput(String prompt) {\n Scanner scanner = new Scanner(System.in);\n\n // prompt for the user's name\n System.out.print(prompt);\n\n // get their input as a String\n String userInput = scanner.next();\n\n return userInput;\n }",
"public static String getInput(String arg1, String arg2, String arg3)\n\t{\n\t\tString input;\n\t\tdo\n\t\t{\n\t\t\tSystem.out.println(\"Select: \");\n\t\t\tSystem.out.println(\"1. \" + arg1);\n\t\t\tSystem.out.println(\"2. \" + arg2);\n\t\t\tSystem.out.println(\"3. \" + arg3);\n\t\t\tinput = scn.nextLine();\n\t\t} while(!(input.equals(\"1\") || input.equals(\"2\") || input.equals(\"3\")));\n\t\treturn input;\n\t}",
"public interface UsersInput {\n\n /**\n * Return user's input on a given line.\n * @param outForUser given line.\n * @return user's input.\n * @throws IOException IOException.\n */\n String getUsersInput(String outForUser) throws IOException;\n}",
"public void readUserInput(){\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try {\n String input = reader.readLine();\n while (!userValidation.validateUserInput(input)){\n input = reader.readLine();\n }\n elevatorController.configureNumberOfElevators(input);\n\n } catch (\n IOException e) {\n logger.error(e);\n }\n\n }",
"private void prepareUserFields(String fieldInput) throws AutomicException {\n String[] fields = fieldInput.split(\",\");\n userInputFields = new ArrayList<String>(fields.length);\n uniqueFields = new HashSet<String>(fields.length);\n for (String field : fields) {\n String temp = field.trim();\n if (CommonUtil.checkNotEmpty(temp)) {\n userInputFields.add(temp);\n uniqueFields.add(temp.toLowerCase());\n }\n }\n if (uniqueFields.isEmpty()) {\n throw new AutomicException(String.format(\"Invalid Fields have been provided [%s] \", fieldInput));\n }\n }",
"String getVariableInput() {\n return (variableInput.getText());\n }",
"public void setUserinput(String userinput){\n String[] inputs = userinput.split(\" \");\n if(inputs.length > 1){\n this.userinput_var = inputs[1];\n }\n this.userinput_command = inputs[0];\n }",
"String getField();",
"public void get_UserInput(){\r\n\t Scanner s = new Scanner(System.in);\r\n\t // get User inputs \r\n\t System.out.println(\"Please enter a number for Dry (double):\");\r\n\t DRY = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wet (double):\");\r\n\t WET = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for ISNOW (double):\");\r\n\t ISNOW = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Wind(double):\");\r\n\t WIND = s.nextDouble(); \r\n\t System.out.println(\"Please enter a number for BUO (double):\");\r\n\t BUO = s.nextDouble();\r\n\t System.out.println(\"Please enter a number for Iherb (int):\");\r\n\t IHERB = s.nextInt(); \r\n\t System.out.println(\"****Data for parameters are collected****.\");\r\n\t System.out.println(\"Data for parameters are collected.\");\r\n\t dry=DRY;\r\n\t wet=WET;\r\n}",
"public void getInfo() {\n Scanner scanner = new Scanner(System.in);\n //get values from the user using scanner and sets class variables appropriately\n System.out.print(\"Enter the first name: \");\n setFirstName(scanner.nextLine());\n\n System.out.print(\"Enter the last name: \");\n setLastName(scanner.nextLine());\n\n System.out.print(\"Enter the ZIP code: \");\n setZipcode(scanner.nextLine());\n\n System.out.print(\"Enter the employee ID: \");\n setEmployeeID(scanner.next());\n }",
"InputsType getInputs();",
"private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }",
"public static void getInput() {\n\t\tSystem.out.print(\"Expression y=? \");\n\t\tScanner s = new Scanner(System.in);\n\t\texpression = s.nextLine();\n\t\texpression.toLowerCase();\n\t\tSystem.out.print(\"x? \");\n\t\tx = s.nextDouble();\n\t}",
"static void gatherInfo() {\n Scanner keyboard = new Scanner(System.in);\n System.out.print(\"Enter the type of measurement (inches, feet, etc.). >> \");\n measurementType = keyboard.nextLine();\n System.out.print(\"Enter the rectangle width. >> \");\n height = keyboard.nextDouble();\n System.out.print(\"Enter the rectangle height. >> \");\n width = keyboard.nextDouble();\n }",
"R extractRawInputs(I input);",
"public String getInput()\t\n\t{\t//start of getInput method\n\t\treturn inputMsg;\n\t}",
"public String userInputString() {\n Scanner scanner = new Scanner(System.in);\n return scanner.nextLine();\n }",
"private static String getUserInput(String prompt){ \r\n Scanner in = new Scanner(System.in);\r\n System.out.print(prompt);\r\n return in.nextLine();\r\n }",
"String searchBoxUserRecordSelected();",
"public void getInput(){\n\t\tScanner scan= new Scanner(System.in);\n\t\t//Get the range\n\t\tif(scan.hasNext()){\n\t\t\tcount=Integer.parseInt(scan.nextLine()); \n\t\t}\n\t\t//Initialize the array\n\t\tpeople = new People[count];\n\t\t//Get the array elements\n\t\tint i=0;\n\t\twhile(i<count){\n\t\t\tString lin[] = scan.nextLine().split(\" \");\n\t\t\tpeople[i] = new People(Integer.parseInt(lin[0]), Double.parseDouble(lin[1]));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t\n\t}",
"public void getGamerInput() {\n\t\ttry {\n\t\t\tsCurrentCharInput = String.format(\"%s\", (consoleInput.readLine())).toUpperCase(Locale.getDefault());\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/* ************************************* */\n\t\tconsoleLog.println(\" \");\n\t\t// System.out.println(\" Quit readline \");\n\t\t/* ************************************* */\n\t\t// if (sCurrentCharInput.length() == 0)\n\t\t// continue;\n\n\t\t// if (sCurrentCharInput.contains(sAskedWord))\n\t\t// continue;\n\n\t}",
"abstract public String getValue(String fieldname);",
"public String Get_Input()throws IOException{\r\n\t\tString input=\"\";\r\n\t\tInputStreamReader converter = new InputStreamReader(System.in);\r\n\t\tBufferedReader in = new BufferedReader(converter);\r\n\t\t\r\n\t\tinput = in.readLine();\r\n\t\t\r\n\t\treturn input;\r\n\t}",
"public String getUser2()\n {\n return userInput2;\n }",
"public void input() {\r\n System.out.print(\"Enter your employee ID number: \");\r\n ID = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Gross Pay: \");\r\n grosspay = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your State Tax: \");\r\n Statetax = enter.nextDouble();\r\n \r\n System.out.print(\"Enter your Federal Tax: \");\r\n Fedtax = enter.nextDouble(); }",
"public String getUserInput() {\n\t\tString input;\n\t\tinput = this.console.next();\n\t\treturn input;\n\t}",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public String[] getUserField()\n {\n return this.userField;\n }",
"public void inputInformation() throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n System.out.println(\"Please enter shape: \");\n shape = input.readLine();\n\n System.out.println(\"Please enter color\");\n color = input.readLine();\n\n System.out.println(\"Please enter name: \");\n name = input.readLine();\n\n System.out.println(\"Please enter weight: \");\n weight = Double.parseDouble(input.readLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Error: \" + e.toString());\n }\n }",
"protected abstract ContentValues getDataFromInput();",
"public String getInput() {\n return input;\n }",
"String getUserInput(String prompt) {\r\n System.out.print(prompt);\r\n try {\r\n return rdr.readLine();\r\n }\r\n catch (IOException ex) {\r\n return null;\r\n }\r\n }",
"private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}",
"String askForData();",
"public void processUser(){\n Scanner sc = new Scanner(System.in);\n\n InputNote inputNote = new InputNote(view, sc, note);\n inputNote.inputNote();\n\n notebook.addNote(note);\n note.formLastNameAndFirstLetterOfName();\n System.out.println(note.toString());\n }",
"public static void getPropertyInfo(){\n\t\tSystem.out.println(\"Please enter a property id: \");\n\t\tpropertyId = scanner.nextLine();\n\t\tSystem.out.println(\"Please enter the principle amount: \");\n\t\tString principleInput = scanner.nextLine();\n\t\tprinciple = Integer.parseInt(principleInput);\n\t\tSystem.out.println(\"Please enter the interest rate: \");\n\t\tString interestInput = scanner.nextLine();\n\t\tinterestRate = Double.parseDouble(interestInput)*.01;\n\t\tSystem.out.println(\"Please enter the term in months: \");\n\t\tString termInput = scanner.nextLine();\n\t\ttermInMonths = Integer.parseInt(termInput);\n\t\t\n\t}",
"@Override\n public String readUserInput() {\n while (true) {\n System.out.println(\"\");\n System.out.print(\"Enter Information: \");\n Scanner in = new Scanner(System.in);\n String userInput = in.nextLine();\n\n if (!userInput.equals(\"0\")) {\n String[] parts = userInput.split(\",\");\n if (parts.length == 5) {\n if (DateSorting.isDateValid(\"dd-MM-yyyy\", parts[2])) {\n if (TodoList.tasks.get(parts[0]) == null) {\n return userInput;\n } else {\n System.out.println(\"A task with this ID already exists, try again: \");\n }\n } else {\n System.out.println(\"The date entered is invalid, try again: \");\n }\n } else {\n System.out.println(\"Please follow instructions, try again: \");\n }\n } else {\n return userInput;\n }\n }\n }",
"public void input()\n\t{\n\t\t// this facilitates the output\n\t\tScanner sc = new Scanner(System.in) ; \n\t\tSystem.out.print(\"The Bike Number:- \") ;\n\t \tthis.bno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The Biker Name:- \") ; \n\t \tthis.name = new Scanner(System.in).nextLine() ; \t\n\t\tSystem.out.print(\"The Phone number:- \") ; \n\t \tthis.phno = sc.nextInt() ; \t\n\t\tSystem.out.print(\"The number of days:- \") ; \n\t \tthis.days = sc.nextInt() ; \t\n\t}",
"Input createInput();",
"public String getInput() {\r\n return getText();\r\n }",
"public String inputForm() {\n return inputDataTraveler.validateData();\n }",
"public static String GetInput() {\r\n\t\t// Scanner is created and a value is set for input\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\tString input = in.nextLine();\r\n\t\treturn input;\r\n\r\n\t}",
"public String getUserStringInput(String tips)\n {\n Scanner console = new Scanner(System.in);\n System.out.println(tips);\n return console.nextLine();\n }",
"private String getUserInput(Scanner sc) {\n\t\t\n\t\tif (sc == null) {\n\t\t\treturn null;\n\t\t}\n\n\t System.out.print(\"\\nctransfer > \");\n\t return sc.nextLine();\n\t}",
"public String inputName() {\n String name = editTextName.getText().toString();\n return name;\n }",
"protected SelectionText input() {\n return inputter;\n }",
"public static String getString(){\n Scanner in = new Scanner(System.in); //scanner variable to take input\n return in.nextLine().trim();\n }",
"@Override\n public T getData() {\n Scanner scanner = new Scanner(System.in);\n return (T) scanner.next();\n }",
"private String getAndClrInput(){\n\t\tString theReturn = userInput.getText();\n\t\tuserInput.setText(\"\");\n\t\treturn theReturn;\n\t}",
"public static String getArgs(String userInput) throws EmptyTaskException {\n String[] components = userInput.split(\" \", 2);\n if (components.length == 1) {\n throw new EmptyTaskException();\n } else {\n return components[1];\n }\n }",
"private void RetrieveEditTextData() {\n\n strFirstName = etFirstName.getText().toString();\n strMiddleName = etMiddleName.getText().toString();\n strLastName = etLastName.getText().toString();\n strEmployId = etEmployId.getText().toString();\n strDesignation = etDesignation.getText().toString();\n strCompName = etCompName.getText().toString();\n strCategory = etCategory.getText().toString();\n strDOB = etDOB.getText().toString();\n\n }",
"public static Input getInput() {\r\n return input;\r\n }",
"public void getData(AccessInputMeta in)\n\t{\n\t\tif (in.getFileName() !=null) \n\t\t{\n\t\t\twFilenameList.removeAll();\n\n\t\t\tfor (int i=0;i<in.getFileName().length;i++) \n\t\t\t{\n\t\t\t\twFilenameList.add(new String[] { in.getFileName()[i], in.getFileMask()[i] , in.getExludeFileMask()[i],in.getRequiredFilesDesc(in.getFileRequired()[i]), in.getRequiredFilesDesc(in.getIncludeSubFolders()[i])} );\n\t\t\t}\t\n\t\t\twFilenameList.removeEmptyRows();\n\t\t\twFilenameList.setRowNums();\n\t\t\twFilenameList.optWidth(true);\n\t\t}\n\t\twInclFilename.setSelection(in.includeFilename());\n\t\twInclTablename.setSelection(in.includeTablename());\n\t\twInclRownum.setSelection(in.includeRowNumber());\n\t\twAddResult.setSelection(in.isAddResultFile());\n\t\t\n\t\twFileField.setSelection(in.isFileField());\n\t\t\n\t\tif (in.getTableName()!=null) wTable.setText(in.getTableName());\n\t\tif (in.getFilenameField()!=null) wInclFilenameField.setText(in.getFilenameField());\n\t\tif (in.getDynamicFilenameField()!=null) wFilenameField.setText(in.getDynamicFilenameField());\n\t\t\n\t\t\n\t\tif (in.gettablenameField()!=null) wInclTablenameField.setText(in.gettablenameField());\n\t\tif (in.getRowNumberField()!=null) wInclRownumField.setText(in.getRowNumberField());\n\t\twResetRownum.setSelection(in.resetRowNumber());\n\t\twLimit.setText(\"\"+in.getRowLimit());\n\n\t\tlogDebug(BaseMessages.getString(PKG, \"AccessInputDialog.Log.GettingFieldsInfo\"));\n\t\tfor (int i=0;i<in.getInputFields().length;i++)\n\t\t{\n\t\t AccessInputField field = in.getInputFields()[i];\n\t\t \n if (field!=null)\n {\n \t\t\tTableItem item = wFields.table.getItem(i);\n \t\t\tString name = field.getName();\n \t\t\tString xpath\t= field.getColumn();\n \t\t\tString type = field.getTypeDesc();\n \t\t\tString format = field.getFormat();\n \t\t\tString length = \"\"+field.getLength();\n \t\t\tString prec = \"\"+field.getPrecision();\n \t\t\tString curr = field.getCurrencySymbol();\n \t\t\tString group = field.getGroupSymbol();\n \t\t\tString decim = field.getDecimalSymbol();\n \t\t\tString trim = field.getTrimTypeDesc();\n \t\t\tString rep = field.isRepeated()?BaseMessages.getString(PKG, \"System.Combo.Yes\"):BaseMessages.getString(PKG, \"System.Combo.No\");\n \t\t\t\n if (name !=null) item.setText( 1, name);\n if (xpath !=null) item.setText( 2, xpath);\n \t\t\tif (type !=null) item.setText( 3, type);\n \t\t\tif (format !=null) item.setText( 4, format);\n \t\t\tif (length !=null && !\"-1\".equals(length)) item.setText( 5, length);\n \t\t\tif (prec !=null && !\"-1\".equals(prec)) item.setText( 6, prec);\n \t\t\tif (curr !=null) item.setText( 7, curr);\n \t\t\tif (decim !=null) item.setText( 8, decim);\n \t\t\tif (group !=null) item.setText( 9, group);\n \t\t\tif (trim !=null) item.setText(10, trim);\n \t\t\tif (rep !=null) item.setText(11, rep); \n }\n\t\t}\n \n wFields.removeEmptyRows();\n wFields.setRowNums();\n wFields.optWidth(true);\n if(in.getShortFileNameField()!=null) wShortFileFieldName.setText(in.getShortFileNameField());\n if(in.getPathField()!=null) wPathFieldName.setText(in.getPathField());\n if(in.isHiddenField()!=null) wIsHiddenName.setText(in.isHiddenField());\n if(in.getLastModificationDateField()!=null) wLastModificationTimeName.setText(in.getLastModificationDateField());\n if(in.getUriField()!=null) wUriName.setText(in.getUriField());\n if(in.getRootUriField()!=null) wRootUriName.setText(in.getRootUriField());\n if(in.getExtensionField()!=null) wExtensionFieldName.setText(in.getExtensionField());\n if(in.getSizeField()!=null) wSizeFieldName.setText(in.getSizeField());\n\n\n\t\tsetIncludeFilename();\n\t\tsetIncludeTablename();\n\t\tsetIncludeRownum();\n\n\t\twStepname.selectAll();\n\t}",
"@Override\r\n public String[] getInputs() {\n String[] inputs = new String[1];\r\n\r\n // display the text of the main menu\r\n System.out.println(\"Main Menu\"\r\n + \"N - start new game\"\r\n + \"\\nS - Save Game\"\r\n + \"\\nG - Get and resume saved game\"\r\n + \"\\nH - Help\"\r\n + \"\\nQ - Quit\");\r\n \r\n // prompt for and get the menu input by the end user\r\n String value = this.getInput(\"Enter one of the menu options.\");\r\n \r\n // asssign the value input to the first position in the inputs array\r\n inputs[0] = value;\r\n return inputs;\r\n }",
"void requestInput();",
"public String getInput1() {\n return input1;\n }",
"private static String getInputQuery() throws IOException {\n\n String inputQuery = \"\";\n\n System.out.print(\"Please enter a search term: \");\n BufferedReader bReader = new BufferedReader(new InputStreamReader(System.in));\n inputQuery = bReader.readLine();\n\n if (inputQuery.length() < 1) {\n // Use the string \"YouTube Developers Live\" as a default.\n inputQuery = \"YouTube Developers Live\";\n }\n return inputQuery;\n }",
"public void readInput()\n\t{\n\t\tString userInput;\n\t\tChoices choice;\n\t\t\n\t\tdo {\n\t\t\tlog.log(Level.INFO, \"Please give the inputs as:\\n\"\n\t\t\t\t\t+ \"ADDACCOUNT to add the account\\n\" \n\t\t\t\t\t+ \"DISPLAYALL to display all accounts\\n\"\n\t\t\t\t\t+ \"SEARCHBYACCOUNT to search by account\\n\"\n\t\t\t\t\t+ \"DEPOSIT to deposit into account\\n\"\n\t\t\t\t\t+ \"WITHDRAW to withdraw from the account\\n\"\n\t\t\t\t\t+ \"EXIT to end the application\"\n\t\t\t\t\t);\n userInput = scan.next();\n choice = Choices.valueOf(userInput);\n\n switch (choice) {\n case ADDACCOUNT : \taddAccount();\n \t\t\t\t\t\tbreak;\n \n case DISPLAYALL :\t\tdisplayAll();\n \t\t\t\t\t\tbreak;\n\n case SEARCHBYACCOUNT :\tsearchByAccount();\n \t\t\t\t\t\tbreak;\n \n case DEPOSIT :\t\t\tdepositAmount();\n \t\t\t\t\t\tbreak;\n \n case WITHDRAW :\t\t\twithDrawAmount();\n \t\t\t\t\t\tbreak;\n \n case EXIT:\t\t\t\tlog.log(Level.INFO, \"Application has ended successfully\");\n \t\t\t\t\t\tbreak;\n \n default: break;\n }\n } while(choice != Choices.EXIT);\n\t\t\n\t\tscan.close();\n\t}",
"public String getUserDecision(){\n return input.nextLine();\n }",
"public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}",
"java.lang.String getField1333();",
"public static String getString (String ask)\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.print(ask + \" -> \");\r\n String input = keyboard.nextLine();\r\n return input;\r\n }",
"public String getFieldText(String fieldName);",
"private String getInput(String prompt) throws IOException {\n System.out.print(prompt);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(System.in));\n return in.readLine();\n }",
"private static String getUserPage() \n\t{\n\t\tString userInput = \"\";\n\t\ttry \n\t\t{\n\t\t\tSystem.out.println(\"What page?\");\n\t\t\tSystem.out.print(\"-> \");\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\tuserInput = scanner.nextLine();\n\t\t\t\n\t\t\t// Check to see if their input is greater than the maxLength.\n\t\t\t// Error and quit with the message below if it is.\n\t\t\tif(userInput.length() > maxLength)\n\t\t\t{\n\t\t\t\tthrow new Exception(\"Please request a page with fewer characters.\");\n\t\t\t}\n\t\t} catch (Exception e) \n\t\t{\n\t\t\terrorQuit(e.getMessage());\n\t\t}\t\t\n\t\treturn userInput;\n\t\t\t \n\t}",
"public Account getInputOfUsersAccount() {\n\n\t\tString accountNumber = InputsValidator.getAccountFromPerson(\"Enter account:\");\n\n\t\tif (!log.isAccountInList(accountNumber)) {\n\t\t\tSystem.out.println(\"Account \" + accountNumber + \" dosn't exist!\");\n\t\t\tAdminMenu.getAdminMenu();\n\t\t}\n\t\tAccount accountForEditOrDelete = infos.getAccount(accountNumber);\n\t\treturn accountForEditOrDelete;\n\t}",
"public void input() throws ParseException {\r\n\t\tScanner scn = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Please enter id: \");\r\n\t\tString idSt = scn.nextLine();\r\n\t\tid = Integer.parseInt(idSt);\r\n\t\tSystem.out.println(\"Please enter title: \");\r\n\t\ttitle = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter authors name: \");\r\n\t\tauthor = scn.nextLine();\r\n\t\tSystem.out.println(\"Please enter date (dd.MM.yyyy): \");\r\n\t\tString scnDate = scn.nextLine();\r\n\t\tdateOfPublication = stringToDate(scnDate);\r\n\t}",
"private static String getPhraseInput() {\n\t\treturn getQuery(\"Query Phrase\");\n\t}",
"private static String getUserName(){\r\n Scanner in = new Scanner(System.in);\r\n System.out.print(\"What is your character's name?\");\r\n return in.nextLine();\r\n }"
] | [
"0.70368624",
"0.6782668",
"0.65853",
"0.65673774",
"0.6430418",
"0.6375313",
"0.6355768",
"0.63478225",
"0.62743306",
"0.608286",
"0.59767306",
"0.5962887",
"0.5958919",
"0.5954374",
"0.59331095",
"0.5923627",
"0.5882358",
"0.58822435",
"0.5866794",
"0.5865213",
"0.58627737",
"0.58541113",
"0.58457184",
"0.58436644",
"0.5838599",
"0.5828134",
"0.58185047",
"0.5818399",
"0.5802515",
"0.5801121",
"0.5790189",
"0.57758546",
"0.5774764",
"0.57500964",
"0.5746294",
"0.5742413",
"0.5737977",
"0.5702702",
"0.56997067",
"0.56882215",
"0.56860894",
"0.56780595",
"0.56633997",
"0.56539744",
"0.5624883",
"0.5602326",
"0.56002635",
"0.55913097",
"0.55830383",
"0.5568204",
"0.5563991",
"0.5561622",
"0.55557644",
"0.555499",
"0.55538404",
"0.5527232",
"0.55258745",
"0.55257773",
"0.55257773",
"0.55257773",
"0.55207866",
"0.5517936",
"0.55135554",
"0.5513333",
"0.5498048",
"0.5486633",
"0.5480934",
"0.5478327",
"0.54779065",
"0.5473949",
"0.54694176",
"0.54626197",
"0.54620165",
"0.5448466",
"0.5444329",
"0.54314655",
"0.5427509",
"0.5422921",
"0.541931",
"0.54149264",
"0.54040366",
"0.54035604",
"0.5367311",
"0.5361007",
"0.5355567",
"0.5346166",
"0.5337935",
"0.53334403",
"0.53249943",
"0.53246623",
"0.53184193",
"0.53168285",
"0.53052026",
"0.53014654",
"0.52977395",
"0.52917266",
"0.52910817",
"0.5282646",
"0.52812487",
"0.5278408",
"0.5277738"
] | 0.0 | -1 |
Default tags that will be use for writes by Point and POJO. | @Nonnull
public PointSettings getPointSettings() {
return pointSettings;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Tags() {\n set (\"\");\n }",
"public Tag addDefaultTag(){\n StringProperty tagName = new SimpleStringProperty();\n tagName.setValue(\"New Tag\");\n Tag newTag = new Tag(tagName);\n\n\n /* verify if id is integer or string, we handle just strings here\n newTag.setIdProperty(0);\n */\n\n addTag(newTag);\n\n System.out.println(contentFromTags(tags));\n\n return newTag;\n }",
"@Nullable\r\n default Map<String, String> getTags() {\r\n throw new IllegalArgumentException(\"getTags is unsupported\");\r\n }",
"public interface XmlProjectTags {\r\n\r\n\tpublic static String SVG = \"svg\";\r\n\tpublic static final String GROUP = \"g\";\r\n\tpublic static final String RECT = \"rect\";\r\n\tpublic static final String PATH = \"path\";\r\n\tpublic static final String ELLIPSE = \"ellipse\";\r\n\tpublic static final String LINE = \"line\";\r\n\tpublic static final String IMAGE = \"image\";\r\n\tpublic static final String METADATA = \"metadata\";\r\n\r\n\tpublic static final String TITULO = \"id\";\r\n\tpublic static final String VIEWBOX = \"viewBox\";\r\n\tpublic static final String XMLNS = \"xmlns\";\r\n\tpublic static final String XMLNS_XLINK = \"xmlns:xlink\";\r\n\tpublic static final String ID = \"id\";\r\n\tpublic static final String FILL = \"fill\";\r\n\tpublic static final String FILL_OPACITY = \"fill-opacity\";\r\n\tpublic static final String POINTER_EVENTS = \"pointer-events\";\r\n\tpublic static final String STROKE = \"stroke\";\r\n\tpublic static final String STROKE_DASHARRAY = \"stroke-dasharray\";\r\n\tpublic static final String STROKE_OPACITY = \"stroke-opacity\";\r\n\tpublic static final String STROKE_WIDTH = \"stroke-width\";\r\n\tpublic static final String D = \"d\";\r\n\tpublic static final String OPACITY = \"opacity\";\r\n\tpublic static final String X = \"x\";\r\n\tpublic static final String Y = \"y\";\r\n\tpublic static final String WIDTH = \"width\";\r\n\tpublic static final String HEIGHT = \"height\";\r\n\tpublic static final String CX = \"cx\";\r\n\tpublic static final String CY = \"cy\";\r\n\tpublic static final String RX = \"rx\";\r\n\tpublic static final String RY = \"ry\";\r\n\tpublic static final String X1 = \"x1\";\r\n\tpublic static final String X2 = \"x2\";\r\n\tpublic static final String Y1 = \"y1\";\r\n\tpublic static final String Y2 = \"y2\";\r\n\tpublic static final String POINTS = \"points\";\r\n\tpublic static final String POLYLINE = \"polyline\";\r\n\tpublic static final String POLYGON = \"polygon\";\r\n\tpublic static final String STR = \"str\";\r\n\tpublic static final String TEXT = \"text\";\r\n\tpublic static final String FONTFAMILY = \"font-family\";\r\n\tpublic static final String FONTSIZE = \"font-size\";\r\n\tpublic static final String XLINKHREF = \"xlink:href\";\r\n\r\n}",
"public Tags() {\n\t\t\n\t}",
"@Override\n\tpublic Tag getPosTag() {\n\t\treturn null;\n\t}",
"@Override\r\n protected IntermediateData generateTaggedMapOutput(Object o)\r\n {\n TaggedWritable value = new TaggedWritable((Text) o);\r\n value.setTag(inputTag);\r\n return value;\r\n }",
"@Override\n public String getDescription() {\n return \"Tagged data extend\";\n }",
"public void setIdTagsOff () {\n\t\tidTags = false;\n\t}",
"public Map getUserDefinedTags()\n {\n return m_Tags;\n }",
"public Map<String, Object> getTagMap();",
"public String getStandardTag();",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }",
"@Override\n protected void paintDataTags(Painter aPntr)\n {\n _pointPainter.paintTags(aPntr);\n }",
"protected void setupTags() {\r\n\t\t// Dataset information: one per file\r\n\t\tmetaTags.put(\"^dataset\", \"id\");\r\n\t\tmetaTags.put(\"!dataset_title\", \"title\");\r\n\t\tmetaTags.put(\"!dataset_update_date\", \"date\");\r\n\t\tmetaTags.put(\"!dataset_pubmed_id\", \"pmid\");\r\n\t\tmetaTags.put(\"!dataset_description\", \"description\");\r\n\t\tmetaTags.put(\"!dataset_sample_count\", \"sampleCount\");\r\n\r\n\t\t// Platform information: possibly multiple per file\r\n\t\tmetaTags.put(\"!dataset_platform_organism\", \"organisms\");\r\n\t\tmetaTags.put(\"!dataset_sample_organism\", \"organisms\");\r\n\t\tmetaTags.put(\"!dataset_platform\", \"platformIDs\");\t\t\t\r\n\t\tmetaTags.put(\"!dataset_platform_technology_type\", \"platformTitles\");\r\n\t\tmetaTags.put(\"!dataset_feature_count\", \"rowCounts\");\r\n\r\n\t\t// Sample information: possibly multiple per file\r\n\t\tmetaTags.put(\"!subset_sample_id\", \"sampleIDs\");\r\n\t\tmetaTags.put(\"!subset_description\", \"sampleTitles\");\t\t \r\n\t\tmetaTags.put(\"!dataset_channel_count\", \"channelCounts\");\r\n\t\tmetaTags.put(\"!dataset_value_type\", \"valueTypes\");\r\n\r\n\t\tif (! checkTags()) {\r\n\t\t\tthrow new RuntimeException(\"Tags not initialized properly\");\r\n\t\t}\r\n\t}",
"public HDict createCustomTags(BComponent comp)\r\n {\r\n return HDict.EMPTY;\r\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags.\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(Map<String, String> tags);\n }",
"@Override\n\tpublic String getTagName() {\n\t\treturn null;\n\t}",
"@Override\n public String getDescription() {\n return \"Tagged data upload\";\n }",
"public String [] getTags() {\n\t\treturn null;\n\t}",
"public int tag () { return MyTag; }",
"interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n Update withTags(List<String> tags);\n }",
"@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }",
"interface WithTags {\n /**\n * Specifies tags.\n * @param tags The tags that will be assigned to the secret\n * @return the next definition stage\n */\n WithCreate withTags(Map<String, String> tags);\n }",
"@JsonSetter(\"tags\")\n public void setTags (Object value) { \n this.tags = value;\n }",
"public static Map<String, Property> getDefaultMapping() {\n\t\tMap<String, Property> props = new HashMap<String, Property>();\n\t\tprops.put(\"nstd\", Property.of(p -> p.nested(n -> n.enabled(true))));\n\t\tprops.put(\"properties\", Property.of(p -> {\n\t\t\t\tif (nestedMode()) {\n\t\t\t\t\tp.nested(n -> n.enabled(true));\n\t\t\t\t} else {\n\t\t\t\t\tp.object(n -> n.enabled(true));\n\t\t\t\t}\n\t\t\t\treturn p;\n\t\t\t}\n\t\t));\n\t\tprops.put(\"latlng\", Property.of(p -> p.geoPoint(n -> n.nullValue(v -> v.text(\"0,0\")))));\n\t\tprops.put(\"_docid\", Property.of(p -> p.long_(n -> n.index(false))));\n\t\tprops.put(\"updated\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\t\tprops.put(\"timestamp\", Property.of(p -> p.date(n -> n.format(DATE_FORMAT))));\n\n\t\tprops.put(\"tag\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"id\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"key\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"name\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"type\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"tags\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"token\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"email\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"appid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"groups\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"password\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"parentid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"creatorid\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\tprops.put(\"identifier\", Property.of(p -> p.keyword(n -> n.index(true))));\n\t\treturn props;\n\t}",
"public Tag(Property.Name value) {\n\t}",
"@javax.annotation.Nullable\n @ApiModelProperty(value = \"Add tags attached to this object\")\n\n public List<String> getTags() {\n return tags;\n }",
"@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }",
"interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tid.write(out);\n\t\ttag.write(out);\n\t}",
"@Override\n public String toString() {\n return tags.toString();\n }",
"public String[] getAutoGeneratedTags()\r\n {\r\n return TagManager.AUTO_GEN_TAGS;\r\n }",
"public Tag() {\n\t}",
"public Tag() {\n\t}",
"public interface IBoatsXmlDefaults {\n\n int getVersion();\n\n\n String getRaceBoatType();\n\n\n double getBoatLength();\n\n\n double getHullLength();\n\n\n double getMarkZoneSize();\n\n\n double getCourseZoneSize();\n\n\n double getLimit1();\n\n\n double getLimit2();\n\n\n double getLimit3();\n\n\n double getLimit4();\n\n\n double getLimit5();\n\n\n double getGpsX();\n\n\n double getGpsY();\n\n\n double getGpsZ();\n\n\n double getFlagX();\n\n\n double getFlagY();\n\n\n double getFlagZ();\n}",
"public void setTags(String tags) {\n this.tags = tags;\n }",
"public Tags (String tags) {\n set (tags);\n }",
"public void setTags(List<Tag> tags) {\n this.tags = tags;\n }",
"@Override\n\tprotected void writeEntityToNBT(NBTTagCompound tag) {\n\t\ttag.setByte(\"Fuse\", (byte)this.fuse);\n\t\ttag.setByte(\"Variant\", (byte)this.variant);\n\t}",
"@Override\n public String getXMLTag() {\n return XMLTAG;\n }",
"public interface TAGS\n{\n String TAG_LOGGED = \"LogStatus\",\n TAG_USER_ID_TASK = \"UserID\",\n TAG_ID=\"ID\",\n TAG_LON=\"Lon\",\n TAG_LAT=\"Lat\",\n TAG_NAME = \"Name\",\n TAG_PWORD = \"Password\",\n TAG_START = \"Start\",\n TAG_STOP = \"Stop\",\n TAG_EXPLANATION = \"Explanation\",\n TAG_DESCRIPTION = \"Description\",\n TAG_PLACE = \"Place\",\n REQUESTING_LOCATION_UPDATES_KEY = \"requesting-location-updates\",\n LOCATION_KEY =\"location-key\",\n LAST_UPDATED_TIME_STRING_KEY = \"last-updated-time-string-key\";\n int MY_PERMISSIONS_REQUEST_LOCATION = 99;\n int MY_PERMISSIONS_REQUEST_VIBRATION = 100;\n\n}",
"@Override\r\n public String getXMLTag() {\r\n return XMLTAG;\r\n }",
"WithCreate withTags(Object tags);",
"Tag createTag();",
"public void setTags(java.util.Map<String, String> tags) {\n this.tags = tags;\n }",
"public void setTags(java.util.Map<String, String> tags) {\n this.tags = tags;\n }",
"public void setTags(java.util.Map<String, String> tags) {\n this.tags = tags;\n }",
"public void setTags(java.util.Map<String, String> tags) {\n this.tags = tags;\n }",
"UniqueTagList getTags();",
"interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job.\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n Update withTags(Object tags);\n }",
"public static void registerTags() {\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_RELAYS)\n\t\t\t.add(AllBlocks.SHAFT)\n\t\t\t.add(AllBlocks.COGWHEEL)\n\t\t\t.add(AllBlocks.LARGE_COGWHEEL)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.GEARBOX)\n\t\t\t.add(AllBlocks.CLUTCH)\n\t\t\t.add(AllBlocks.GEARSHIFT)\n\t\t\t.add(AllBlocks.ENCASED_CHAIN_DRIVE)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CHAIN_GEARSHIFT)\n\t\t\t.add(AllBlocks.SEQUENCED_GEARSHIFT)\n\t\t\t.add(AllBlocks.ROTATION_SPEED_CONTROLLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_SOURCES)\n\t\t\t.add(AllBlocks.HAND_CRANK)\n\t\t\t.add(AllBlocks.COPPER_VALVE_HANDLE)\n\t\t\t.add(AllBlocks.WATER_WHEEL)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.FURNACE_ENGINE)\n\t\t\t.add(AllBlocks.FLYWHEEL)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.KINETIC_APPLIANCES)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.TURNTABLE)\n\t\t\t.add(AllBlocks.ENCASED_FAN)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.MECHANICAL_PRESS)\n\t\t\t.add(AllBlocks.MECHANICAL_MIXER)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.GANTRY_SHAFT)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.FLUIDS)\n\t\t\t.add(AllBlocks.FLUID_PIPE)\n\t\t\t.add(AllBlocks.MECHANICAL_PUMP)\n\t\t\t.add(AllBlocks.FLUID_VALVE)\n\t\t\t.add(AllBlocks.SMART_FLUID_PIPE)\n\t\t\t.add(AllBlocks.HOSE_PULLEY)\n\t\t\t.add(AllBlocks.ITEM_DRAIN)\n\t\t\t.add(AllBlocks.SPOUT)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.ARM_TARGETS)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.BASIN)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.MECHANICAL_CRAFTER)\n\t\t\t.add(AllBlocks.MILLSTONE)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.BLAZE_BURNER)\n\t\t\t.add(AllBlocks.CRUSHING_WHEEL)\n\t\t\t.add(Blocks.COMPOSTER)\n\t\t\t.add(Blocks.JUKEBOX);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.LOGISTICS)\n\t\t\t.add(AllItems.BELT_CONNECTOR)\n\t\t\t.add(AllItems.FILTER)\n\t\t\t.add(AllItems.ATTRIBUTE_FILTER)\n\t\t\t.add(AllBlocks.CHUTE)\n\t\t\t.add(AllBlocks.SMART_CHUTE)\n\t\t\t.add(AllBlocks.DEPOT)\n\t\t\t.add(AllBlocks.WEIGHTED_EJECTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_ARM)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.ANDESITE_TUNNEL)\n\t\t\t.add(AllBlocks.BRASS_TUNNEL)\n\t\t\t.add(AllBlocks.CONTENT_OBSERVER)\n\t\t\t.add(AllBlocks.STOCKPILE_SWITCH)\n\t\t\t.add(AllBlocks.ADJUSTABLE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.DECORATION)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.CUCKOO_CLOCK)\n\t\t\t.add(AllBlocks.WOODEN_BRACKET)\n\t\t\t.add(AllBlocks.METAL_BRACKET)\n\t\t\t.add(AllBlocks.ANDESITE_CASING)\n\t\t\t.add(AllBlocks.BRASS_CASING)\n\t\t\t.add(AllBlocks.COPPER_CASING);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CREATIVE)\n\t\t\t.add(AllBlocks.CREATIVE_CRATE)\n\t\t\t.add(AllBlocks.CREATIVE_FLUID_TANK)\n\t\t\t.add(AllBlocks.CREATIVE_MOTOR);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.SAILS)\n\t\t\t.add(AllBlocks.SAIL)\n\t\t\t.add(AllBlocks.SAIL_FRAME)\n\t\t\t.add(Blocks.WHITE_WOOL);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.REDSTONE)\n\t\t\t.add(AllBlocks.NIXIE_TUBE)\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(AllBlocks.ANALOG_LEVER)\n\t\t\t.add(AllBlocks.REDSTONE_LINK)\n\t\t\t.add(AllBlocks.ADJUSTABLE_REPEATER)\n\t\t\t.add(AllBlocks.PULSE_REPEATER)\n\t\t\t.add(AllBlocks.ADJUSTABLE_PULSE_REPEATER)\n\t\t\t.add(AllBlocks.POWERED_LATCH)\n\t\t\t.add(AllBlocks.POWERED_TOGGLE_LATCH);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.MOVEMENT_ANCHOR)\n\t\t\t.add(AllBlocks.MECHANICAL_PISTON)\n\t\t\t.add(AllBlocks.WINDMILL_BEARING)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.CLOCKWORK_BEARING)\n\t\t\t.add(AllBlocks.ROPE_PULLEY)\n\t\t\t.add(AllBlocks.GANTRY_CARRIAGE)\n\t\t\t.add(AllBlocks.CART_ASSEMBLER);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ASSEMBLY)\n\t\t\t.add(AllBlocks.LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.SECONDARY_LINEAR_CHASSIS)\n\t\t\t.add(AllBlocks.RADIAL_CHASSIS)\n\t\t\t.add(AllItems.SUPER_GLUE)\n\t\t\t.add(AllBlocks.STICKER)\n\t\t\t.add(Blocks.SLIME_BLOCK)\n\t\t\t.add(Blocks.HONEY_BLOCK);\n\n\t\tPonderRegistry.tags.forTag(PonderTag.CONTRAPTION_ACTOR)\n\t\t\t.add(AllBlocks.MECHANICAL_HARVESTER)\n\t\t\t.add(AllBlocks.MECHANICAL_PLOUGH)\n\t\t\t.add(AllBlocks.MECHANICAL_DRILL)\n\t\t\t.add(AllBlocks.MECHANICAL_SAW)\n\t\t\t.add(AllBlocks.DEPLOYER)\n\t\t\t.add(AllBlocks.PORTABLE_STORAGE_INTERFACE)\n\t\t\t.add(AllBlocks.PORTABLE_FLUID_INTERFACE)\n\t\t\t.add(AllBlocks.MECHANICAL_BEARING)\n\t\t\t.add(AllBlocks.ANDESITE_FUNNEL)\n\t\t\t.add(AllBlocks.BRASS_FUNNEL)\n\t\t\t.add(AllBlocks.SEATS[0])\n\t\t\t.add(AllBlocks.REDSTONE_CONTACT)\n\t\t\t.add(Blocks.BELL)\n\t\t\t.add(Blocks.DISPENSER)\n\t\t\t.add(Blocks.DROPPER);\n\n\t}",
"public Set<String> getTags(){return tags;}",
"public NBTTagCompound writeToNBT(NBTTagCompound nbt)\n {\n nbt.setDouble(\"x\", this.x);\n nbt.setDouble(\"y\", this.y);\n nbt.setDouble(\"z\", this.z);\n return nbt;\n }",
"public void setCreationDefaultValues()\n {\n this.setDescription(this.getPropertyID()); // Warning: will be lower-case\n this.setDataType(\"\"); // defaults to \"String\"\n this.setValue(\"\"); // clear value\n //super.setRuntimeDefaultValues();\n }",
"public ITag[] getTags() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}",
"public Object getTags() {\n return this.tags;\n }",
"public void setTags(String tags) {\n\t\tthis.tags = tags;\n\t}",
"Tag(String name){\r\n this.tagName = name;\r\n }",
"public void generateTags(Vector tagList)\n {\n defs.generateTags(tagList);\n }",
"public TagRecord() {\n super(Tag.TAG);\n }",
"public void setTagProperty(String tagProperty);",
"@AutoEscape\n\tpublic String getTagProperty();",
"public String getTags() {\n return tags;\n }",
"public String getTags() {\n return tags;\n }",
"@Updatable\n public Map<String, String> getTags() {\n if (tags == null) {\n tags = new HashMap<>();\n }\n return tags;\n }",
"@Override\n default String getTs() {\n return null;\n }",
"public String getTags() {\n\t\treturn tags;\n\t}",
"public String getTags() {\n\t\treturn tags;\n\t}",
"public void setTag(String tag);",
"default String tagsString() {\n final StringBuffer buffer = new StringBuffer();\n final String separator = \", \";\n getTags().forEach(tag -> buffer.append(tag).append(separator));\n if (buffer.length() == 0) {\n return \"\";\n } else {\n return buffer.substring(0, buffer.length() - separator.length());\n }\n }",
"public DefaultTip(String name, Object tip)\n/* */ {\n/* 39 */ this.name = name;\n/* 40 */ this.tip = tip;\n/* */ }",
"public abstract String getTag();",
"public NBTTagCompound writeToNBT(NBTTagCompound tag)\r\n/* 158: */ {\r\n/* 159:159 */ tag.setByte(\"Id\", (byte)getID());\r\n/* 160:160 */ tag.setByte(\"Amplifier\", (byte)getAmplifier());\r\n/* 161:161 */ tag.setInt(\"Duration\", getDuration());\r\n/* 162:162 */ tag.setBoolean(\"Ambient\", getAmbient());\r\n/* 163:163 */ tag.setBoolean(\"ShowParticles\", getShowParticles());\r\n/* 164:164 */ return tag;\r\n/* 165: */ }",
"public String getTags() {\n return this.tags;\n }",
"@ApiModelProperty(value = \"A comma-separated values list of tags to add to the package.\")\n public String getTags() {\n return tags;\n }",
"@JsonSetter(\"tags\")\n public void setTags (String value) { \n this.tags = value;\n }",
"public String getTag();",
"public DefaultXmlMerge()\n {\n m_rootMergeAction.setActionFactory(new StaticOperationFactory(new FullMergeAction()));\n m_rootMergeAction.setMapperFactory(new StaticOperationFactory(new IdentityMapper()));\n m_rootMergeAction.setMatcherFactory(new StaticOperationFactory(new AttributeMatcher()));\n }",
"public interface GeoTouchSensor extends X3DTouchSensorNode\n{\n\t// ==== Accessor methods: strongly typed get/set methods for compile-time strictness\n\n\t/**\n\t * Provide String value from inputOutput SFString field named <i>description</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> &\n\t * @return value of description field\n\t */\n\t@Override\n\tpublic String getDescription();\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>description</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> &\n\t * @param newValue is new value for the description field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setDescription(String newValue);\n\n\t/**\n\t * Provide boolean value from inputOutput SFBool field named <i>enabled</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Enables/disables node operation.\n\t * @return value of enabled field\n\t */\n\t@Override\n\tpublic boolean getEnabled();\n\n\t/**\n\t * Assign boolean value to inputOutput SFBool field named <i>enabled</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Enables/disables node operation.\n\t * @param newValue is new value for the enabled field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setEnabled(boolean newValue);\n\n\t/**\n\t * Provide GeoOrigin instance (using a properly typed node) (deprecated node, optional) from initializeOnly SFNode field <i>geoOrigin</i>.\n\t * @return value of geoOrigin field\n\t */\n\tpublic GeoOrigin getGeoOrigin(); // acceptable node types: GeoOrigin\n\n\t/**\n\t * Assign GeoOrigin instance (using a properly typed node) (deprecated node, optional) to initializeOnly SFNode field <i>geoOrigin</i>.\n\t * @param newValue is new value for the geoOrigin field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\tpublic GeoTouchSensor setGeoOrigin(GeoOrigin newValue); // acceptable node types: GeoOrigin\n\n\t/**\n\t * Provide array of String results from initializeOnly MFString field named <i>geoSystem</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Identifies spatial reference frame: Geodetic (GD), Geocentric (GC), Universal Transverse Mercator (UTM). Supported values: \"GD\" \"UTM\" or \"GC\" followed by additional quoted string parameters as appropriate for the type. Hint: see X3D Specification 25.2.2 Spatial reference frames http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Spatialreferenceframes Hint: see X3D Specification 25.2.4 Specifying geospatial coordinates http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Specifyinggeospatialcoords Hint: UTM is Universal Transverse Mercator coordinate system https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system Warning: deprecated values are GDC (use GD) and GCC (use GC).\n\t * @return value of geoSystem field\n\t */\n\tpublic String[] getGeoSystem();\n\n\t/**\n\t * Assign String array to initializeOnly MFString field named <i>geoSystem</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Identifies spatial reference frame: Geodetic (GD), Geocentric (GC), Universal Transverse Mercator (UTM). Supported values: \"GD\" \"UTM\" or \"GC\" followed by additional quoted string parameters as appropriate for the type. Hint: see X3D Specification 25.2.2 Spatial reference frames http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Spatialreferenceframes Hint: see X3D Specification 25.2.4 Specifying geospatial coordinates http://www.web3d.org/documents/specifications/19775-1/V3.3/Part01/components/geodata.html#Specifyinggeospatialcoords Hint: UTM is Universal Transverse Mercator coordinate system https://en.wikipedia.org/wiki/Universal_Transverse_Mercator_coordinate_system Warning: deprecated values are GDC (use GD) and GCC (use GC).\n\t * @param newValue is new value for the geoSystem field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\tpublic GeoTouchSensor setGeoSystem(String[] newValue);\n\n\t/**\n\t * Provide array of 3-tuple double results from outputOnly SFVec3d field named <i>hitGeoCoord_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing 3D point on surface of underlying geometry, given in GeoTouchSensor's local coordinate system.\n\t * @return value of hitGeoCoord_changed field\n\t */\n\tpublic double[] getHitGeoCoord();\n\t/**\n\t * Provide array of 3-tuple float results from outputOnly SFVec3f field named <i>hitNormal_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing surface normal vector at the hitGeoCoordinate.\n\t * @return value of hitNormal_changed field\n\t */\n\tpublic float[] getHitNormal();\n\t/**\n\t * Provide array of 3-tuple float results from outputOnly SFVec3f field named <i>hitPoint_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing 3D point on surface of underlying geometry, given in geometry coordinates (not geographic coordinates).\n\t * @return value of hitPoint_changed field\n\t */\n\tpublic float[] getHitPoint();\n\t/**\n\t * Provide array of 2-tuple float results from outputOnly SFVec2f field named <i>hitTexCoord_changed</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Output event containing texture coordinates of surface at the hitGeoCoordinate.\n\t * @return value of hitTexCoord_changed field\n\t */\n\tpublic float[] getHitTexCoord();\n\t/**\n\t * Provide boolean value from outputOnly SFBool field named <i>isActive</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Select geometry by activating the pointing device (e.g. clicking the mouse) to generate isActive events. Output event isActive=true is sent when geometry is selected (e.g. when primary mouse button is pressed), output event isActive=false is sent when geometry is deselected (e.g. when primary mouse button is released).\n\t * @return value of isActive field\n\t */\n\t@Override\n\tpublic boolean getIsActive();\n\t/**\n\t * Provide boolean value from outputOnly SFBool field named <i>isOver</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Is pointing device over sensor's geometry?.\n\t * @return value of isOver field\n\t */\n\t@Override\n\tpublic boolean getIsOver();\n\t/**\n\t * Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field <i>metadata</i>.\n\t * @see <a href=\"http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata\">X3D Scene Authoring Hints: Metadata Nodes</a>\n\t * @return value of metadata field\n\t */\n\t@Override\n\tpublic X3DMetadataObject getMetadata(); // acceptable node types: X3DMetadataObject\n\n\t/**\n\t * Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field <i>metadata</i>.\n\t * @see <a href=\"http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#Metadata\">X3D Scene Authoring Hints: Metadata Nodes</a>\n\t * @param newValue is new value for the metadata field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setMetadata(X3DMetadataObject newValue); // acceptable node types: X3DMetadataObject\n\n\t/**\n\t * Provide double value in seconds from outputOnly SFTime field named <i>touchTime</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> Time event generated when touched. Hint: touchTime event is generated when following three conditions are all met: (a) pointing device was pointing towards geometry when initially activated (isActive=true), (b) pointing device is currently pointing towards the geometry (isOver=true), and (c) pointing device selection is deactivated/deselected by user (isActive=false event is also generated).\n\t * @return value of touchTime field\n\t */\n\t@Override\n\tpublic double getTouchTime();\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>DEF</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> DEF defines a unique ID name for this node, referenceable by other nodes. Hint: descriptive DEF names improve clarity and help document a model. Hint: well-defined names can simplify design and debugging through improved author understanding. Hint: X3D Scene Authoring Hints, Naming Conventions http://www.web3d.org/x3d/content/examples/X3dSceneAuthoringHints.html#NamingConventions.\n\t * <br><br>\n\t * Note that setting the DEF value clears the USE value.\n\t * @param newValue is new value for the DEF field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setDEF(String newValue);\n\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>USE</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> USE means reuse an already DEF-ed node ID, excluding all child nodes and all other attributes (except for containerField, which can have a different value). Hint: USE references to previously defined DEF geometry (instead of duplicating nodes) can improve performance. Warning: do NOT include any child nodes, a DEF attribute, or any other attribute values (except for containerField) when defining a USE attribute. Warning: each USE value must match a corresponding DEF value that is defined earlier in the scene.\n\t * <br><br>\n\t * <i>Note:</i> each <code>USE</code> node is still an independent object, with the <code>USE</code> value matching the <code>DEF</code> value in the preceding object. \n\t * <br><br>\n\t * <i>WARNING:</i> invoking the <code>setUSE()</code> method resets all other fields to their default values and also releases all child nodes.<br><br>\n\t * <i>WARNING:</i> no other operations can be performed to modify a USE node other than setting an alternate containerField value.\n\t * @param newValue is new value for the USE field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setUSE(String newValue);\n\n\n\t/**\n\t * Assign String value to inputOutput SFString field named <i>class</i>.\n\t * <br><br>\n\t * <i>Tooltip:</i> The class attribute is a space-separated list of classes, reserved for use by CSS cascading stylesheets. Warning: currently the class attribute is only supported in XML encoding of X3D scenes. Hint: W3C Cascading Style Sheets https://www.w3.org/Style/CSS.\n\t * @param newValue is new value for the class field.\n\t * @return {@link GeoTouchSensor} - namely <i>this</i> same object to allow sequential method pipelining (i.e. consecutive method invocations on the same node object).\n\t */\n\t@Override\n\tpublic GeoTouchSensor setCssClass(String newValue);\n\n}",
"public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {\n return internalGetTags().getMap();\n }",
"public PointSET() {\n pointSet = new SET<Point2D>();\n }",
"private String tagKey() {\n return tags.values().toString();\n }",
"public void buildClassTagInfo() {\n\t\twriter.writeClassTagInfo();\n\t}",
"@Override\n public String toString()\n {\n return TAG + \"[x:\" + x + \",y:\" + y + \"]\";\n }",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"Map<String, String> tags();",
"public java.util.Map<java.lang.String, java.lang.String> getTagsMap() {\n return internalGetTags().getMap();\n }",
"public DiscreteTag(){}",
"public void setTags(List<Tag> tags) {\n this.tags.clear();\n if (tags != null) {\n this.tags.addAll(tags);\n }\n }",
"TaxonomyCoordinate createDefaultInferredTaxonomyCoordinate();",
"@Override\n public void save(NBTTagCompound nbt)\n {\n \n }"
] | [
"0.585316",
"0.57152116",
"0.5669884",
"0.54547906",
"0.5343675",
"0.5327424",
"0.5286326",
"0.52255714",
"0.5213499",
"0.51833004",
"0.514551",
"0.5136106",
"0.51336306",
"0.5122921",
"0.51205355",
"0.5111237",
"0.5094389",
"0.5094389",
"0.5094389",
"0.5081085",
"0.5060694",
"0.5034205",
"0.50206554",
"0.5019166",
"0.50142527",
"0.49762556",
"0.49741873",
"0.49739757",
"0.49369827",
"0.4936096",
"0.49210984",
"0.49171552",
"0.4911566",
"0.49069113",
"0.4905649",
"0.48978785",
"0.48945034",
"0.48945034",
"0.4872127",
"0.48718268",
"0.48585144",
"0.48496756",
"0.48443216",
"0.48263252",
"0.4822779",
"0.4817712",
"0.48083195",
"0.48011318",
"0.4790339",
"0.4790339",
"0.4790339",
"0.4790339",
"0.4789972",
"0.47898436",
"0.47853777",
"0.47847286",
"0.47807834",
"0.47778228",
"0.47762737",
"0.4769944",
"0.4769013",
"0.47522417",
"0.47503144",
"0.47496468",
"0.4749394",
"0.47332418",
"0.47226667",
"0.47226667",
"0.47210866",
"0.4705245",
"0.4703055",
"0.4703055",
"0.46959957",
"0.46897283",
"0.46886894",
"0.468633",
"0.46784586",
"0.46745166",
"0.46726957",
"0.46724817",
"0.4661747",
"0.465996",
"0.46521416",
"0.4643461",
"0.46393153",
"0.46380097",
"0.46342486",
"0.46336988",
"0.4633146",
"0.4633146",
"0.4633146",
"0.4633146",
"0.4633146",
"0.4633146",
"0.4633146",
"0.4633146",
"0.46329322",
"0.46258274",
"0.46253994",
"0.4620655",
"0.4615105"
] | 0.0 | -1 |
Creates a builder instance. | @Nonnull
public static InfluxDBClientOptions.Builder builder() {
return new InfluxDBClientOptions.Builder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Builder builder(){ return new Builder(); }",
"public Builder() { }",
"public Builder() {\n\t\t}",
"private Builder() {}",
"public Builder() {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public Builder(){\n }",
"private Builder() {\n\t\t}",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"private Builder()\n {\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public static LinkBuilder builder() {\n return new LinkBuilder();\n }",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public static Builder builder() {\n return new Report.Builder();\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder()\n {\n this(\"\", \"\");\n }",
"public static ApiRequest.ApiRequestBuilder builder() {\n final ApiRequest.ApiRequestBuilder builder = new ApiRequestBuilderCustom();\n return builder\n .requestStartTime(Instant.now().toEpochMilli())\n .requestId(UUID.randomUUID().toString());\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"@Inject\n public Builder() {\n }",
"public static FXMLLoaderBuilder builder() {\n return new FXMLLoaderBuilder();\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"public static Builder builder(Context context){\n return new Builder(context);\n }",
"private Construct(Builder builder) {\n super(builder);\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"@Incubating\n interface Builder {\n\n /**\n * Sets the root project directory for this Gradle Build.\n *\n * @param projectDir root project directory.\n * @return this\n */\n Builder forProjectDirectory(File projectDir);\n\n /**\n * Specifies the Gradle distribution described in the build should be used.\n *\n * @return this\n */\n Builder useBuildDistribution();\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleHome The Gradle installation directory.\n * @return this\n */\n Builder useInstallation(File gradleHome);\n\n /**\n * Specifies the version of Gradle to use.\n *\n * @param gradleVersion The version to use.\n * @return this\n */\n Builder useGradleVersion(String gradleVersion);\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleDistribution The distribution to use.\n *\n * @return this\n */\n Builder useDistribution(URI gradleDistribution);\n\n /**\n * Creates an immutable GradleBuild instance based on this builder.\n *\n * @return a new instance, never null.\n */\n GradleBuild create();\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Object builder() {\n\t\treturn null;\n\t}",
"@FunctionalInterface\n public interface Builder {\n BuildingModel build(int x, int y, int angle, int floor);\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"public interface Builder<T> {\n /**\n * Builds final object.\n * @return object of type {@link T}\n */\n @SuppressWarnings(\"unused\")\n T create();\n}",
"public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }",
"public Builder() {\n this.obj = new RwjlTmTjmx();\n }",
"public static DummyBuilder fromInstance(Object instance) {\n return new DummyBuilder(instance);\n }",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"public Builder() {\n this.obj = new Yhzh();\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }"
] | [
"0.834676",
"0.834676",
"0.8243299",
"0.823171",
"0.823171",
"0.823171",
"0.8197563",
"0.8197563",
"0.8197563",
"0.8197563",
"0.81888056",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.81887025",
"0.8052299",
"0.8052299",
"0.8052299",
"0.799899",
"0.7873715",
"0.7811106",
"0.77209896",
"0.7710597",
"0.7680757",
"0.7680757",
"0.7636889",
"0.7636889",
"0.7636889",
"0.7636889",
"0.76346123",
"0.76346123",
"0.76346123",
"0.7616165",
"0.7612391",
"0.7583912",
"0.7574428",
"0.7560865",
"0.752639",
"0.744513",
"0.744513",
"0.7407324",
"0.7407324",
"0.7387701",
"0.72971267",
"0.72427744",
"0.72427744",
"0.72427744",
"0.72427744",
"0.7232099",
"0.721149",
"0.7086266",
"0.70476997",
"0.70153487",
"0.6994169",
"0.6982051",
"0.69492364",
"0.6905242",
"0.6905242",
"0.6905242",
"0.6905242",
"0.6905242",
"0.6905242",
"0.6905242",
"0.6857338",
"0.6804406",
"0.680266",
"0.68014663",
"0.67623305",
"0.6759008",
"0.6750769",
"0.6702079",
"0.6667227",
"0.6664676",
"0.66511726",
"0.6629916",
"0.66233844",
"0.66019666",
"0.65600187",
"0.6527862",
"0.6498547",
"0.6491901",
"0.64747584",
"0.6464353",
"0.6451951",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687",
"0.644687"
] | 0.0 | -1 |
Reservation res = (Reservation)reservation; | @RequestMapping(value="/add", method = RequestMethod.POST)
public void addAction(@RequestBody Reservation reservation){
reservationService.create(reservation);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Reservation createReservation();",
"public Reservation getTheObject(){\n return this;\n }",
"CurrentReservation createCurrentReservation();",
"PastReservation createPastReservation();",
"public int getReservationId() { return reservationId; }",
"private ReservationDTO parseReservation(Reservation reservation) {\n ReservationDTO dto = new ReservationDTO();\n dto.buildFromEntity(reservation);\n return dto;\n }",
"ReservationPackage getReservationPackage();",
"public void makeBooking (Object booking);",
"public Long getReservationroomid()\n {\n return reservationroomid; \n }",
"@SuppressWarnings({ \"unchecked\" })\n \t/** Clones a reservation and sets new ids for all appointments and the reservation itsel\n \t */\n \tprivate Reservation cloneReservation(Entity<Reservation> obj)\n \t\t\tthrows RaplaException {\n \t\tReservation clone = ((Mementable<Reservation>) obj).deepClone();\n \t\tHashMap<Allocatable, Appointment[]> restrictions = new HashMap<Allocatable, Appointment[]>();\n \t\tAllocatable[] allocatables = clone.getAllocatables();\n \n \t\tfor (Allocatable allocatable:allocatables) {\n \t\t\trestrictions.put(allocatable, clone.getRestriction(allocatable));\n \t\t}\n \n \t\t// then we set new ids for all appointments\n \t\tAppointment[] clonedAppointments = clone.getAppointments();\n \t\tsetNew(Arrays.asList(clonedAppointments),Appointment.TYPE, this.workingUser);\n \t\t\n \t\tfor (Appointment clonedAppointment:clonedAppointments) {\n \t\t\tclone.removeAppointment(clonedAppointment);\n \t\t}\n \n \t\t// and now a new id for the reservation\n \t\tsetNew((RefEntity<Reservation>) clone, this.workingUser);\n \t\tfor (Appointment clonedAppointment:clonedAppointments) {\n \t\t\tclone.addAppointment(clonedAppointment);\n \t\t}\n \n \t\tfor (Allocatable allocatable:allocatables) {\n \t\t\tclone.addAllocatable( allocatable);\n \t\t\tAppointment[] appointments = restrictions.get(allocatable);\n \t\t\tif (appointments != null) {\n \t\t\t\tclone.setRestriction(allocatable, appointments);\n \t\t\t}\n \t\t}\n \n \t\treturn clone;\n \t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}",
"public ArrayList<Reservation> getReservation() {\n return reservations;\n }",
"@Override\r\n\tpublic Reservation modifierUneReservation(Reservation r) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void cast() {\n\r\n\t}",
"private ReservationDAO getReservationDAO() {\r\n return this.reservationDAO;\r\n }",
"@Override\n\tpublic int update(Reservation objet) {\n\t\treturn 0;\n\t}",
"void storeReservation(Reservation reservation) throws DataAccessException;",
"void realizarReserva(Reserva reserva) throws OperationNotSupportedException;",
"@Override\r\n\tpublic List<Reservation> rechercherReservation(Voyage v, Client c) {\n\t\treturn null;\r\n\t}",
"BookReservationDao getBookReservationDao();",
"FutureReservation createFutureReservation();",
"public Reserva(){super();}",
"private SiteReservation save(SiteReservation reservation){\n try {\n reservation = repo.save(reservation);\n }\n catch (RuntimeException e){\n throw new DayReservedException();\n }\n return reservation;\n }",
"Reservation loadReservation(int id) throws DataAccessException;",
"void addReservation(ReservationDto reservationDto) ;",
"AllocationPolicy getAllocationPolicy(ReservationDAO reservations);",
"void Planificar(Reserva unaReserva);",
"@Override\r\n\tpublic Reservation faireUneDemandeAnnulation(Reservation r) {\n\t\treturn null;\r\n\t}",
"@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }",
"public CalendarioFecha obtenerPorEvento(Reservacion reservacion) throws Exception { \n\t \n\t\t CalendarioFecha datos = new CalendarioFecha(); \n\t\t Session em = sesionPostgres.getSessionFactory().openSession(); \t\n\t try { \t\n\t\t datos = (CalendarioFecha) em.createCriteria(CalendarioFecha.class).add(Restrictions.eq(\"reservacion\", reservacion))\n\t\t \t\t.add(Restrictions.eq(\"activo\", true)).uniqueResult(); \n\t } catch (Exception e) { \n\t \n\t throw new Exception(e.getMessage(),e.getCause());\n\t } finally { \n\t em.close(); \n\t } \n\t \n\t return datos; \n\t}",
"public Reservation cancelAndReassign(Reservation res){\n\t\tint room = res.getRoomNumber();\n\t\t//if any names are stored in waitList, remove the first name\n\t\t//and create a Reservation for this person in the room reserved by res;\n\t\t//return that newReservation\n\t\tif (!waitList.isEmpty()){\n\t\t\tString newGuest = waitList.get(0);\n\t\t\twaitList.remove(0);\n\t\t\trooms[room] = new Reservation(newGuest, room);\n\t\t\treturn rooms[room];\n\t\t}\t\n\t\t//if waitlList is empty, mark the room specified by res as empty and return null\n\t\t//precondition: res is a valid reservation for some room in this hotel \n\t\telse if (waitList.isEmpty()){\n\t\t\trooms[room] = null;\n\t\t}\n\t\t\treturn null;\n\t}",
"ObligacionDeber createObligacionDeber();",
"public PaymentDetails(Reservation res) {\n\t\tthis.value = res.getTotalPrice();\n\t\tthis.reference = MockPayment.generateMockReference ();\n\t\tthis.entity = MockPayment.generateMockEntity ();\n\t}",
"Collection<Reservation> getReservations() throws DataAccessException;",
"@Override\r\n\tpublic Reservation traiterDemandeAnnulationReservation(\r\n\t\t\tInteger numReservation) {\n\t\treturn null;\r\n\t}",
"@Override\r\n\tpublic void cancelReservation(Reservation r) {\n\t\tentityManager.remove(entityManager.merge(r));\r\n\t\t\r\n\r\n\t}",
"private void toRent() {\n }",
"public Address getAddress() { return address; }",
"public void readReservation(Reservation r) {\n\n\t\tif (r != null){\n\t\t\tSystem.out.println(\"\\nDisplaying Reservation No. \" + r.getResvNo() + \": \\n\");\n\t\t\tSystem.out.format(\"%-15s%-15s%-15s%-15s%-25s%-15s%-15s%-15s%-15s\\n\", \"Guest ID\", \"Num Adult\",\n\t\t\t\t\t\"Num Kid\", \"Room No.\", \"Reservation Status\", \"Check in\", \"Check out\", \"Num of nights\", \"Reservation time\");\n\n\t\t\t\tSystem.out.format(\"%-15d%-15s%-15s%-15s%-25s%-15s%-15s%-15s%-15.8s\\n\", r.getGuestID(),\n\t\t\t\t\t\tr.getAdultNo(), r.getKidNo(), r.getRoomNo(), r.getResvStatus(), r.getDateCheckIn(), r.getDateCheckOut(),\n\t\t\t\t\t\tr.getRoomDays(), r.getResvTime());\n\t\t}\n\t}",
"public interface ICheckInBusinessWithReservation extends ICheckInBusiness {\r\n\r\n\r\n boolean setReservationOrder(long reservationOrderID);\r\n\r\n}",
"RentalObject createRentalObject();",
"public void setReservationId(int i) { reservationId = i; }",
"public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}",
"public abstract org.omg.CORBA.Object read_Object();",
"@Override\r\n\t\tpublic boolean isStuff(Reservation reservation) {\n\t\t\treturn false;\r\n\t\t}",
"public Reservation makeReservation(Reservation trailRes){\n //Using a for each loop to chekc to see if a reservation can be made or not\n if(trailRes.getName().equals(\"\")) {\n System.out.println(\"Not a valid name\");\n return null;\n }\n \n \n for(Reservation r: listR){\n if(trailRes.getReservationTime() == r.getReservationTime()){\n System.out.println(\"Could not make the Reservation\");\n System.out.println(\"Reservation has already been made by someone else\");\n return null;\n }\n }\n\n //if the time slot is greater than 10 or less than 0, the reservation cannot be made\n if(trailRes.getReservationTime() > 10 || trailRes.getReservationTime() < 0){\n System.out.println(\"Time slot not available\");\n return null;\n }\n\n //check to see if the reservable list is empty or not\n if(listI.isEmpty())\n {\n System.out.println(\"No reservation available\");\n return null;\n }\n\n //find the item and fitnessValue that will most fit our reservation\n Reservable item = listI.get(0);\n int fitnessValue = item.findFitnessValue(trailRes);\n\n //loop through the table list and find the best fit for our reservation\n for(int i = 0; i < listI.size() ; i++){\n if(listI.get(i).findFitnessValue(trailRes) > fitnessValue){\n item = listI.get(i);\n fitnessValue = item.findFitnessValue(trailRes);\n }\n }\n //if we have found a table that works, then we can make our reservation\n if(fitnessValue > 0){\n //add reservation to our internal list\n //point our reservable to the appropriate reservation\n //set the reservable \n //print out the message here not using the iterator\n listR.add(trailRes);\n item.addRes(trailRes);\n trailRes.setMyReservable(item);\n System.out.println(\"Reservation made for \" + trailRes.getName() + \" at time \" + trailRes.getReservationTime() + \", \" + item.getId());\n return trailRes;\n }\n System.out.println(\"No reservation available, number of people in party may be too large\");\n return null; \n }",
"public interface BookingResponse {\n}",
"protected Reservation factory(int id, Reservation entry) {\r\n \t\treturn new Reservation(id, entry.customer, entry.period, entry.vehicle);\r\n \t}",
"public Prenotazione getReservation(int id)\n {\n Prenotazione Reservation = null;\n final String sql = \"SELECT id, data_p, ora_inizio, ora_fine, clienti, ufficio_id, utente_id FROM prenotazioni WHERE id = ?\";\n\n try {\n Connection conn = DBConnect.getInstance().getConnection();\n PreparedStatement st = conn.prepareStatement(sql);\n st.setInt(1, id);\n\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n Reservation = new Prenotazione(id, rs.getString(\"data_p\"), rs.getInt(\"ora_inizio\"), rs.getInt(\"ora_fine\"), rs.getInt(\"clienti\"),rs.getInt(\"ufficio_id\"),rs.getString(\"utente_id\"));\n }\n\n conn.close();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return Reservation;\n }",
"TicketDTO ticketToTicketDTO(Ticket ticket);",
"public VehicleTypeTO()\r\n {\r\n }",
"public Reserve getReserve() {\n return reserve;\n }",
"@RequestMapping(value = \"/Reservation\", method = RequestMethod.POST)\n\t@ResponseBody\n\tpublic Reservation newReservation(@RequestBody Reservation reservation) {\n\t\treservationService.saveReservation(reservation);\n\t\treturn reservationDAO.findReservationByPrimaryKey(reservation.getReservationId());\n\t}",
"private Reservation(Integer id, Person person, Seat seat, Showing showing, boolean objectOnly)\n throws PersistenceException{\n super();\n this.setId(id);\n personReservationSupervisor.getInstance().set(this, person);\n reservationSeatSupervisor.getInstance().set(this, seat);\n if(objectOnly) return;\n try{reservationShowingSupervisor.getInstance().add(showing,this);}catch(ConstraintViolation cv){}// Ok, because consistency is guaranteed with this statement\n }",
"void cancelReservation(String reservationId) throws ObjectNotFoundException;",
"public List<Boardreservation> getBoardReservations(int boardID);",
"public int getReservationId() {\n\t\treturn reservationId;\n\t}",
"@Override\n\tpublic Reserve getReserveById(int rid) {\n\t\treturn reserveDao.getReserveById(rid);\n\t}",
"@Override\n\tpublic Reservation getById(Long id) {\n\t\treturn reservationRepository.findById(id).get();\n\t}",
"public interface DetailVO {\n}",
"public int getArrivalTime(){return arrivalTime;}",
"public boolean unreserve(Reservation res){\n //remove from internal lists\n listR.remove(res);\n //set that to null\n res = null;\n\n //return true if res is null\n if(res == null){\n return true;\n }\n return false;\n }",
"public DDetRetContrArtEscenicsAttTO() { }",
"List<Reservation> trouverlisteDeReservationAyantUneDateDenvoieDeMail();",
"Sporthall() {\n reservationsList = new ArrayList<>();\n }",
"@Override\n public Reservation call() throws ReservationNotCreatedException {\n return reservationService.create(reservation);\n }",
"public String getReservationTime() {\n return reservationTime;\n }",
"public List<Reservation> findByReservationUser_Id(@Param(\"id\") int id);",
"Ticket ticketDTOToTicket(TicketDTO ticketDTO);",
"public SyncMessage recoit ( Door d ) {\n\nSyncMessage sm = (SyncMessage)receive( d );\nreturn sm;\n}",
"Restaurant getRestaurant();",
"@Override\n\tpublic Reservation findById(Integer id) {\n\t\treturn null;\n\t}",
"Object decodeObject(Object value);",
"public interface ReservationDao extends Dao<Reservation> {\n\n void addReservation(Reservation reservation);\n\n void removeReservation(Reservation reservation);\n\n Reservation getReservation(int userId, int bookId);\n}",
"public interface ReservationFactory extends EFactory {\n\t/**\n\t * The singleton instance of the factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tReservationFactory eINSTANCE = com.tum.vsms.Reservation.Reservation.impl.ReservationFactoryImpl.init();\n\n\t/**\n\t * Returns a new object of class '<em>Reservation</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Reservation</em>'.\n\t * @generated\n\t */\n\tReservation createReservation();\n\n\t/**\n\t * Returns a new object of class '<em>Past Reservation</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Past Reservation</em>'.\n\t * @generated\n\t */\n\tPastReservation createPastReservation();\n\n\t/**\n\t * Returns a new object of class '<em>Current Reservation</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Current Reservation</em>'.\n\t * @generated\n\t */\n\tCurrentReservation createCurrentReservation();\n\n\t/**\n\t * Returns a new object of class '<em>Future Reservation</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Future Reservation</em>'.\n\t * @generated\n\t */\n\tFutureReservation createFutureReservation();\n\n\t/**\n\t * Returns a new object of class '<em>Addon</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Addon</em>'.\n\t * @generated\n\t */\n\tAddon createAddon();\n\n\t/**\n\t * Returns a new object of class '<em>Customer</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Customer</em>'.\n\t * @generated\n\t */\n\tCustomer createCustomer();\n\n\t/**\n\t * Returns a new object of class '<em>Vehicle</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Vehicle</em>'.\n\t * @generated\n\t */\n\tVehicle createVehicle();\n\n\t/**\n\t * Returns a new object of class '<em>Location</em>'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return a new object of class '<em>Location</em>'.\n\t * @generated\n\t */\n\tLocation createLocation();\n\n\t/**\n\t * Returns the package supported by this factory.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the package supported by this factory.\n\t * @generated\n\t */\n\tReservationPackage getReservationPackage();\n\n}",
"Vehicle createVehicle();",
"Vehicle createVehicle();",
"@RequestMapping(value = \"/Reservation\", method = RequestMethod.PUT)\n\t@ResponseBody\n\tpublic Reservation saveReservation(@RequestBody Reservation reservation) {\n\t\treservationService.saveReservation(reservation);\n\t\treturn reservationDAO.findReservationByPrimaryKey(reservation.getReservationId());\n\t}",
"Booking createBooking(Booking newBooking) throws Exception;",
"public <T> T cast();",
"public Collection<ReservationHistoryDTO> getReservationsHistory() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightReservationId(flightReservation.getId());\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\treservationDTO.setRoomReservationId(roomReservation.getId());\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t\t//Long hotelId videcemo kako\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\treservationDTO.setVehicleReservationId(vehicleReservation.getId());\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}",
"public JSONResponse offline(HashMap<String, String> parameters) {\n\t\tString pos = parameters.get(\"pos\"); \t\t\t\t\t// the point of sale code.\n\t\tString id = parameters.get(\"id\"); \t\t\t\t\t\t// the number of the reservation\n\t\tString quote = parameters.get(\"quote\"); \t\t\t\t// the quoted price of the reservation\n\t\tString cost = parameters.get(\"cost\"); \t\t\t\t\t// the STO cost of the reservation\n\t\tString deposit = parameters.get(\"deposit\"); \t\t\t// the deposit % to confirm the reservation\n\t\tString termsaccepted = parameters.get(\"termsaccepted\"); // true if the reservation is accepted\n\t\tString notes = parameters.get(\"notes\"); \t\t\t\t// the reservation notes\n\n\t\tif (id == null || id.isEmpty() || id.length() > 10) {throw new ServiceException(Error.reservation_id, id);}\n\n\t\tSqlSession sqlSession = RazorServer.openSession();\n\t\tReservationWidgetItem result = new ReservationWidgetItem();\n\t\ttry {\n\t\t\tParty organization = JSONService.getParty(sqlSession, pos);\n\t\t\tReservation reservation = new Reservation();\n\t\t\treservation.setOrganizationid(organization.getId());\n\t\t\treservation.setId(id);\n\t\t\treservation = sqlSession.getMapper(ReservationMapper.class).readbyorganization(reservation);\n\t\t\tif (reservation == null || !organization.hasId(reservation.getOrganizationid())) {throw new ServiceException(Error.reservation_bad, id);}\n\t\t\t//if (reservation == null) {throw new ServiceException(Error.reservation_id, id);}\n\t\t\treservation.setQuote(Double.valueOf(quote));\n\t\t\treservation.setCost(Double.valueOf(cost));\n\t\t\treservation.setDeposit(Double.valueOf(deposit));\n\t\t\treservation.setNotes(notes);\n\t\t\treservation.setState(Boolean.valueOf(termsaccepted) ? Reservation.State.Confirmed.name() : Reservation.State.Final.name());\n\t\t\tReservationService.offline(sqlSession, reservation, Boolean.valueOf(termsaccepted));\n\t\t\tresult.setOrganizationid(organization.getId());\n\t\t\tresult.setId(id);\n\t\t\tresult.setState(reservation.getState()); //TODO handle in offline.js\n\t\t}\n\t\tcatch (Throwable x) {result.setMessage(x.getMessage());}\n\t\treturn result;\n\t}",
"TypeAssociation getEstRapporteeParRapport();",
"public static void convertBookToBookVO() {\n\t\t// TODDO\n\t}",
"public List<TblReservation>getAllDataReservationByPeriode(Date startDate,Date endDate,\r\n RefReservationStatus reservationStatus,\r\n TblTravelAgent travelAgent,\r\n RefReservationOrderByType reservationType,\r\n TblReservation reservation);",
"public int getNumeroReservation() {\n\t\treturn numeroReservation;\n\t}",
"@Override\n public T getItemVO() {\n return this.itemVO;\n }",
"@Test\n public void testReservationFactoryGetReservation() {\n ReservationController reservationController = reservationFactory.getReservationController();\n Customer customer = new Customer(CUSTOMER_NAME, CUSTOMER_CONTACT, false);\n Calendar date = Calendar.getInstance();\n // create a 2 seater table // default is vacant\n tableFactory.getTableController().addTable(2);\n Table table = tableFactory.getTableController().getTable(1);\n reservationController.addReservation(date, customer, 2, table);\n assertEquals(1, reservationController.getReservationList().size());\n assertEquals(CUSTOMER_NAME, reservationController.getReservation(1).getCustomer().getName());\n assertEquals(CUSTOMER_CONTACT, reservationController.getReservation(1).getCustomer().getContactNo());\n assertEquals(1, reservationController.getReservation(1).getTable().getTableId());\n assertEquals(2, reservationController.getReservation(1).getTable().getNumSeats());\n assertEquals(date, reservationController.getReservation(1).getReservationDate());\n }",
"public void addReservation(Reservation reservation) {\n reservations.add(reservation);\n }",
"public Room getTheObject(){\n return this;\n }",
"public String getAddress()\n{\n return this.address;\n}",
"public Collection<ReservationHistoryDTO> getCurrentReservations() throws ResourceNotFoundException{\n\t\tRegisteredUser currentUser = (RegisteredUser) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\t\t\n\t\t\n\t\tRegisteredUser currentUserFromBase = registeredUserRepository.getOne(currentUser.getId());\n\t\t\n\t\tCollection<Reservation> reservations = currentUserFromBase.getReservations();\n\t\t\n\t\tif(reservations==null) {\n\t\t\tthrow new ResourceNotFoundException(\"User \"+currentUserFromBase.getUsername()+\" made non reservation!\");\n\t\t}\n\n\t\tHashSet<ReservationHistoryDTO> reservationsDTO = new HashSet<ReservationHistoryDTO>();\n\t\t\n\t\t\n\t\t\n\t\tfor(Reservation reservation : reservations) {\n\t\t\tif(!reservation.getHasPassed()) {\n\t\t\t\n\t\t\t\tReservationHistoryDTO reservationDTO = new ReservationHistoryDTO();\n\t\t\t\t\n\t\t\t\tFlightReservation flightReservation = reservation.getFlightReservation();\n\t\t\t\tRoomReservation roomReservation = reservation.getRoomReservation();\n\t\t\t\tVehicleReservation vehicleReservation = reservation.getVehicleReservation();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tFlight flight = flightReservation.getSeat().getFlight();\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLong reservationId = reservation.getId();\n\t\t\t\tLong flightId = flight.getId();\n\t\t\t\tString departureName = flight.getDeparture().getName();\n\t\t\t\tString destinationName = flight.getDestination().getName();\n\t\t\t\tDate departureDate = flight.getDepartureDate();\n\t\t\t\tLong airlineId = flight.getAirline().getId();\n\t\t\t\t\n\t\t\t\treservationDTO.setReservationId(reservationId);\n\t\t\t\t\n\t\t\t\treservationDTO.setFlightId(flightId);\n\t\t\t\treservationDTO.setDepartureName(departureName);\n\t\t\t\treservationDTO.setDestinationName(destinationName);\n\t\t\t\treservationDTO.setDepartureDate(departureDate);\n\t\t\t\treservationDTO.setAirlineId(airlineId);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(roomReservation != null) {\n\t\t\t\t\tRoomType roomType = reservation.getRoomReservation().getRoom().getRoomType();\n\t\t\t\t\tif(roomType!= null) {\n\t\t\t\t\t\treservationDTO.setRoomTypeId(roomType.getId());\n\t\t\t\t\t\treservationDTO.setHotelId(roomReservation.getRoom().getHotel().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(vehicleReservation != null) {\n\t\t\t\t\tVehicle vehicle = reservation.getVehicleReservation().getReservedVehicle();\n\t\t\t\t\tif(vehicle != null) {\n\t\t\t\t\t\treservationDTO.setVehicleId(vehicle.getId());\n\t\t\t\t\t\treservationDTO.setRentACarId(vehicle.getBranchOffice().getMainOffice().getId());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\treservationsDTO.add(reservationDTO);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn reservationsDTO;\n\t\t\n\t}",
"public interface ReservationDao {\n Reservation getReservation(int reservationId);\n void updateReservation(Reservation reservation);\n void deleteReservation(Reservation reservation);\n void insertReservation(Reservation reservation);\n}",
"public RMShapeEventAdapter getEventAdapter(boolean doCreate)\n{\n RMShapeEventAdapter sea = (RMShapeEventAdapter)get(\"EventAdapter\");\n if(sea==null && doCreate)\n put(\"EventAdapter\", sea = new RMShapeEventAdapter(this));\n return sea;\n}",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"void decodeObject();",
"public interface HotelReservations {\n\n void lookupHotels();\n Hotel getSelectedHotel();\n \n void destroy();\n}",
"public RentalResponse createReservation(Reservation argRequest) {\r\n\t\t\r\n\t\tRentalResponse response = service.processRequest(argRequest);\r\n\t\t\r\n\t\treturn response;\r\n\t\t\r\n\t}",
"public Booking saveBooking(Booking booking);"
] | [
"0.67905784",
"0.66209626",
"0.63198376",
"0.6208411",
"0.61448634",
"0.6037663",
"0.58777887",
"0.5863228",
"0.5854836",
"0.58166426",
"0.5809719",
"0.5809719",
"0.5809719",
"0.5794054",
"0.57632625",
"0.57394826",
"0.56649256",
"0.56501323",
"0.56314623",
"0.56236476",
"0.5589808",
"0.55821484",
"0.55338717",
"0.5518618",
"0.5499724",
"0.5479578",
"0.54615",
"0.5448623",
"0.5402691",
"0.5365878",
"0.5289232",
"0.52701044",
"0.52531934",
"0.52406126",
"0.52334875",
"0.5219382",
"0.5216847",
"0.5201965",
"0.51694405",
"0.51387644",
"0.5137549",
"0.513131",
"0.51081496",
"0.50967234",
"0.50928396",
"0.5064225",
"0.50404525",
"0.5040005",
"0.5039142",
"0.5031103",
"0.50254154",
"0.50248826",
"0.50019985",
"0.50002414",
"0.49985835",
"0.49930578",
"0.49886194",
"0.4983501",
"0.49822283",
"0.49745592",
"0.49640647",
"0.49638522",
"0.4963408",
"0.49567822",
"0.4955536",
"0.49502945",
"0.4948572",
"0.49477097",
"0.49468356",
"0.49453166",
"0.49406463",
"0.49358696",
"0.49357995",
"0.49272868",
"0.4927182",
"0.49251583",
"0.49250305",
"0.49127463",
"0.49127463",
"0.49120027",
"0.48970443",
"0.48967364",
"0.48884407",
"0.48869514",
"0.48859087",
"0.48758674",
"0.48722225",
"0.48699784",
"0.48637262",
"0.48591495",
"0.48479307",
"0.48422185",
"0.48401418",
"0.48342",
"0.48339796",
"0.48277438",
"0.48273614",
"0.48247072",
"0.48160917",
"0.4814589",
"0.48126757"
] | 0.0 | -1 |
daqui para baixo comeca o controlller do evento// | @RequestMapping("/cadastrodeevento")
public ModelAndView cadastroevento() {
ModelAndView mv = new ModelAndView("CadastroEvento");
mv.addObject(new Evento());
return mv;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"@Override\n\tprotected void onEventComming(EventCenter eventCenter) {\n\t}",
"public void TopDreiEvent();",
"@Override\r\n\tpublic void onEvent(Object e) {\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t\t \n\t\t\t}",
"@Override\n\tpublic void processEvent(Event e) {\n\n\t}",
"@Override\r\n\tpublic void onEvent(Event arg0) {\n\r\n\t}",
"@Override\r\n\tprotected void initEvents() {\n\t\t\r\n\t}",
"private void createEvents() {\n\t}",
"public void onDocumentoSubidoEventListener(DocumentoSubidoEvent event){}",
"@Override\n public void eventoCargarData() {\n }",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\n\t\t\t}",
"@Override\r\n public void processEvent(IAEvent e) {\n\r\n }",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\n\t\t\tpublic void handleEvent(Event event) {\n\t\t\t}",
"@Override\r\n\tpublic void handleEvent(Event event) {\n\r\n\t}",
"public void crear_un_evento_recurrente_para_el_dia_de_hoy() {\n\t\t\n\t}",
"private void doEvents() {\n\t\tapplyEvents(generateEvents());\t\t\n\t}",
"Event () {\n // Nothing to do here.\n }",
"public void eventos()\n\t{\n\t\tvuelos.addActionListener(new ActionListener()\n\t\t{\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0)\n\t\t\t{\n\t\t\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\t\t\tif(v!=null)\n\t\t\t\t{\n\t\t\t\t\tllenarPasabordos(v.getId());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}",
"public void controlloEventiGestione() {\n\t\t/**\n\t\t * Evento eliminazione Versamento \n\t\t */\n\t\tviewGestione.getBtnElimina().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (JOptionPane.showConfirmDialog(null, \"Eliminare la quota?\") == 0\n\t\t\t\t\t\t&& viewGestione.getTable().getSelectedRow() != -1) {\n\t\t\t\t\tboolean esito = model.deleteQuota(quote.get(viewGestione.getTable().getSelectedRow()).getId());\n\t\t\t\t\tquote.remove(viewGestione.getTable().getSelectedRow());\n\t\t\t\t\tif (esito) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewGestione.getFrameGestQuote().getContentPane(),\n\t\t\t\t\t\t\t\t\"Versamento eliminato\");\n\t\t\t\t\t\tviewGestione.getFrameGestQuote().dispose();\n\t\t\t\t\t\tmostraGestioneQuote();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewGestione.getFrameGestQuote().getContentPane(),\n\t\t\t\t\t\t\t\t\"Versamento non eliminato\");\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 *Evento ritorno all'AdminView\n\t\t */\n\t\tviewGestione.getBtnDashboard().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tAdminController adminController = new AdminController();\n\t\t\t\tadminController.controlloEvento();\n\t\t\t\tviewGestione.getFrameGestQuote().dispose();\n\t\t\t}\n\t\t});\n\t}",
"private void configurarEventos() {\n\n btnVoltar.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //OBJETIVO: fecha a tela atual\n VerPessoaActivity.this.finish();\n }\n });\n }",
"public void eventos() {\n btnAbrir.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent evt) {\n btnAbrirActionPerformed(evt);\n }\n });\n }",
"private void eventhandler() {\n\r\n\t}",
"private void initializeEvents() {\r\n\t}",
"public void actionPerformed(ActionEvent evento){//este es el unico metodo que hay que implementer de la interfaz actionlistener\n\t\t\t//lo siguiente es el evento que se desencadena cada ves que se cumpla e tiempo del temporizador\n\t\t\tDate hora=new Date();//se crea un objeto de tipo date\n\t\t\t\n\t\t\tSystem.out.println(\"la hora del sistema es: \" + hora);\n\t\t\t\n\t\t\tif(sonido){//se evalua el valor de la variable booleana, no es necesario realizar comparacion en las variables booleanas\n\t\t\t\t\n\t\t\t\tToolkit.getDefaultToolkit().beep(); //esta metodo ejecuta un bip\n\t\t\t}\n\t\t}",
"protected void CriarEventos(){\n ListMenu.setOnItemClickListener(new AdapterView.OnItemClickListener() {\n @Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String opcMenu = ((TextView) view).getText().toString();\n\n RedirecionaTela(opcMenu);\n }\n });\n }",
"@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\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\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}",
"protected void CriarEventos() {\r\n\r\n\r\n //CRIANDO EVENTO NO BOTÃO SALVAR\r\n buttonSalvar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Salvar_onClick();\r\n }\r\n });\r\n\r\n //CRIANDO EVENTO NO BOTÃO VOLTAR\r\n buttonVoltar.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View v) {\r\n\r\n Intent intentMainActivity = new Intent(getApplicationContext(), CadastrarActivity.class);\r\n startActivity(intentMainActivity);\r\n finish();\r\n }\r\n });\r\n }",
"@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}",
"@Override\n protected void initEventAndData() {\n }",
"@Override\n\t\tprotected void onEvent(DivRepEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void handleEvent(Event arg0) {\n\t\t\n\t}",
"public LecturaPorEvento() \r\n {\r\n }",
"private void onDepoisAbrirArquivo() {\n\t\tAACDepoisArquivoEventObject e = new AACDepoisArquivoEventObject(this);\n\t\tnotifyListeners(\"onDepoisAbrirArquivo\", e);\n\t}",
"public Evento getEvento() { \n\t\t Evento evento = new Evento();\n\t\t List<Prenda> Lprendas = new ArrayList<Prenda>();\n\t\t Sugerencia sug = new Sugerencia();\n\t Prenda prend = new Prenda();\n Categoria categoria = new Categoria();\n\n categoria.setCodCategoria(1);\n categoria.setDescripcion(\"Zapatillas\");\n TipoPrenda tp = new TipoPrenda();\n tp.setDescripcion(\"lalal\");\n tp.setCategoria(categoria);\n tp.setCodTipoPrenda(1);\n \n \n Guardarropa guard = new Guardarropa();\n guard.setCompartido(false);\n guard.setDescripcion(\"guardarropa\");\n guard.setId(0); \n prend.setGuardarropa(guard);\n prend.setColorPrimario(\"rojo\");\n prend.setTipoPrenda(tp);\n prend.setColorSecundario(\"azul\");\n prend.setDescripcion(\"prenda 1\");\n prend.setNumeroDeCapa(EnumCapa.Primera);\n \tfor( int i = 0 ; i <= 4; i++) {\n prend.setCodPrenda(i);\n\t\t\tLprendas.add(prend);\t\t\t\n\t\t}\n \tsug.setIdSugerencia(1);\n \tsug.setMaxCapaInferior(0);\n \tsug.setMaxCapaSuperior(2);\t\n \tsug.setUsuario(new Usuario());\n \tsug.setListaPrendasSugeridas(Lprendas);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n \tevento.AgregarSugerenciaAEvento(sug);\n\n \t return evento;\n\t }",
"@Override\n\t\t\t\t\t\tpublic void onInvateComplet() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void execute(LiftEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"public interface RehaTPEventListener extends EventListener {\npublic void rehaTPEventOccurred(RehaTPEvent evt );\n/*public void RehaTPEventOccurred(TerminFenster evt );\npublic void RehaTPEventOccurred(Container evt );\npublic void RehaTPEventOccurred(Object evt );\npublic void RehaTPEventOccurred(SystemLookAndFeel evt );\n*/\n}",
"@Override\n protected void initializeEventList()\n {\n }",
"public void calendarListener(CalendarEvent ce){\n Date triggerDate = (Date)ce.getTriggerDate().clone();\n setInicioRegistrar(triggerDate);\n setFinRegistrar(triggerDate);\n }",
"@Override\n\tpublic void handleEvent(Event event) {\n\t\t\n\t\tSystem.out.println(\"NOMBRE EVENTO RECIBIDO : \" + event.getProperty(\"TITLE\"));\n\t\tSystem.out.println(\"RECIBIDO EVENTO \"+event.getTopic() + \"en tiempo = \" + event.getProperty(\"TIME\")+\"\");\n\t\tSystem.out.println(\"PROPERTIES LUZ = \"+ event.getProperty(\"LUZ\") +\"\");\n\t\tString luz = (String) event.getProperty(\"LUZ\");\n\t\tSystem.out.println(\"MI STRING DE LUZ VALOR =\"+ luz);\n\t\t\n\t\tboolean favs_recibidos_emisor_evento = false;\n\t\t\n\t\tif(luz.equals(\"true\")){\n\t\t\tfavs_recibidos_emisor_evento = true;\n\t\t}else if(luz.equals(\"false\")){\n\t\t favs_recibidos_emisor_evento = false;\n\t\t}else{\n\t\t\tSystem.out.println(\"VALOR RARO EN LUZ PROPERTIES ¿?¿???¿??¿?¿?¿?\");\n\t\t}\n\t\t\n\t//favs_recibidos_emisor_evento = (boolean) event.getProperty(\"LUZ\");\n\n\t\tif(favs_recibidos_emisor_evento == true){\n\t\t\tSystem.out.println(\"Se recibio el evento con LUZ = TRUE\");\n\t\t\t\n\t\t\t//LED ,, LED.ENCENDER\n\t\t\tLeds tuiter_on = new Leds();\n\t\t\t//azul 59 131 189\n\t\t\ttuiter_on.setColorPlug(59,'r');\n\t\t\ttuiter_on.setColorPlug(131,'g');\n\t\t\ttuiter_on.setColorPlug(189.0,'b');\n\t\t\tdouble rold,gold,bold;\n\t\t\trold = tuiter_on.getColorPLug('r');\n\t\t\tgold = tuiter_on.getColorPLug('g');\n\t\t\tbold = tuiter_on.getColorPLug('b');\n\t\t\tSystem.out.println(\"ENCIENDO LED TUITER ------> AZUL \");\n\t\t\ttuiter_on.EncenderRGB2(0, 59, 131, 189, tuiter_on.getIntensidad());\n\t\t\ttry {\n\t\t\t\tThread.currentThread().sleep(2500);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\ttuiter_on.EncenderRGB2(0, rold, gold, bold, tuiter_on.getIntensidad());\n\n\n\n\t\t}else if(favs_recibidos_emisor_evento == false){\n\t\t\tSystem.out.println(\" SE HA RECIBIDO EL EVENTO CON LUZ = FALSE , NO CAMBIOS\");\n\t\t}else{\n\t\t\tSystem.out.println(\" SE HA RECIBIDO EL EVENTO CON LUZ = ¿?¿?¿? --> EXCEPCION \");\n\t\t}\n\t\t\n\t}",
"private void initEvent() {\n\t\tmScrollView.setOnTouchListener(new OnTouchListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic boolean onTouch(View v, MotionEvent event) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tswitch (event.getAction()) {\n\t\t\t\t/*case MotionEvent.ACTION_UP:\n\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\n\t\t\t\t\tbreak;*/\n\t\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\t\t//判断是否滑动到底部\n\t\t\t\t\tif(mScrollView.getChildAt(0).getMeasuredHeight()<=mScrollView.getHeight()+mScrollView.getScrollY()){\n\t\t\t\t\t\tToast.makeText(getActivity(), \"已经到底部了,去留下你的足迹吧\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t}",
"public DetalleEvento(String titulo, int duracion, int borrado, int evento, int bloequeo) {\n this.titulo = titulo;\n this.duracion = duracion;\n this.borrado = borrado;\n this.evento = evento;\n this.bloequeo = bloequeo;\n }",
"public void runEvent();",
"@Override\r\n public void onEvent(FlowableEvent event) {\n }",
"@Override\n\tpublic void loadEvents() {\n\t\t\n\t}",
"protected ICEvent() {}",
"@Override\n public void pulsarRaton(MouseEvent e) {\n pararCancion();\n //CAMBIAMOS LA PANTALLA\n PantallaNivel1 pantallaJuego = new PantallaNivel1(p);\n pantallaJuego.inicializarPantalla();\n p.cambiarPantalla(pantallaJuego);\n \n }",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void bindEvents() {\n\t\t\r\n\t}",
"private void createEvents() {\n\t\tbtnRetour.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tdispose();\r\n\t\t\t\tDashboard_Preteur dashboard_Preteur = new Dashboard_Preteur(currentPreteur);\r\n\t\t\t\tdashboard_Preteur.setVisible(true);\r\n\t\t\t\tdashboard_Preteur.setResizable(false);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent event) {\n\t\t\t\tgetControleur(). saisirOuvrage() ;}",
"EventManager()\n {\n }",
"@Override\n public boolean usesEvents()\n {\n return false;\n }",
"@Override\n\tpublic void handleEvent(EnOceanMessage data) {\n\t}",
"BasicEvents createBasicEvents();",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"private void createEvents() {\n\t\tbtnPushTheButton.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t\n\t\t\tprivate List<String> b;\n\n\t\n\t\t\t//@SuppressWarnings(\"unchecked\")\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tact = true;\n\t\t\t\t\n//\t\t\t\tb = new ArrayList<String>();\n//\t\t\t\t\n//\t\t\t\tthis.b= (List<String>) ((List<Object>) (agent.v.getData())).stream().map(item -> {\n//\t\t\t\t\treturn (String) item;\n//\t\t\t\t});\n//\t\t\t\tString c = String.join(\", \", b);\n//\t\t\t\tclassTextArea.setText(c);\n//\t\t\t\n//\t\t\t\tclassTextArea.setText(b.toString());\n//\t\t\t\t\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t});\n\t\t\n\t}",
"@Override\n\tpublic void eventSelectTracker() {\n\t\t\n\t}",
"@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tobjGestorConjunto = new GestorConjuntos();\t\t\t\n\t\t\tobjFecha = new Fecha(currentYear, currentMonth+1, valueInCell);\t\t\t\t\t\n\t\t\tboolean semaforo = objGestorConjunto.anyadriFechaCalendario(objFecha.getAño(), objFecha.getMes(), objFecha.getDia());\n\t\t\t\n\t\t\tif(semaforo==true) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Conjunto añadido al calendario con éxito\",\"Correcto\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t//frmMain.dispatchEvent(new WindowEvent(frmMain, WindowEvent.WINDOW_CLOSING));\n\t\t\t\t\t//frmMain.dispose(); //Destroy the JFrame object\t\t\n\t\t\t} else {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"El conjunto no ha podido ser añadido al calendario, vuelva a intentarlo. \",\"Incorrecto\",JOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirPeriodique() ;}",
"private void onDepoisGravarArquivo() {\n\t\tAACDepoisArquivoEventObject e = new AACDepoisArquivoEventObject(this);\n\t\tnotifyListeners(\"onDepoisGravarArquivo\", e);\n\t}",
"public void onConsultarEvent() {\r\n\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent()]...\");\r\n\r\n\t\ttry {\r\n\t\t\tif (permitirBuscar) {\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(1)]...\");\r\n\t\t\t\tvisualizarColumnas();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(2)]...\");\r\n\t\t\t\tonMostrarListboxConsulta();\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(3)]...\");\r\n\t\t\t\tonConsultar(idMCRZTbxCriterio.getValue(), false);\r\n\t\t\t\tlog.info(\"Ejecutando el mEtodo [onConsultarEvent(4)]...\");\r\n\t\t\t} else {\r\n\t\t\t\tNotificaciones.mostrarNotificacionAlerta(tituloMensajeExtra,\r\n\t\t\t\t\t\tmensajeExtra, 7000);\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tlog.info(\"Eroor.......................\"+e);\r\n\t\t}\r\n\t}",
"private void defineBotonBuscar() {\r\n tf_buscar.setVisible(false); //establece el textField como oculto al iniciarse la Pantalla\r\n //Manejador del Evento\r\n \r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //SI es presionado ENTER o TAB entonces\r\n if (ke.getCode().equals(KeyCode.ENTER) || ke.getCode().equals(KeyCode.TAB)){ \r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_buscar\")){ \r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_caja(tf_buscar.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_buscar.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. Guia NO existe en la \" + ScreenName, \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n tf_buscar.setVisible(false); //establece el textField como oculto al finalizar\r\n }\r\n }\r\n }\r\n };\r\n //Se asigna el manejador a ejecutarse cuando se suelta una tecla\r\n tf_buscar.setOnKeyReleased(eh);\r\n }",
"public void actionPerformed( ActionEvent evento ) {\r\n esquema.setAlignment( FlowLayout.CENTER );\r\n \r\n // realinea los componentes adjuntos\r\n esquema.layoutContainer( contenedor );\r\n }",
"public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }",
"public void eventManager(Event event){\n\t\tif(event.type == Event.Type.CLOSED){\n\t\t\t//System.out.println(\"The user pressed the close button!\");\n\t\t\tLightCore.window.close();\n\t\t}\n\t\telse if(event.type == Event.Type.MOUSE_BUTTON_PRESSED){\n\t\t\t\n\t\t\tJFileChooser dialog;\n\t\t\tLoadSaveFilter filter;\n\t\t\tMouseButtonEvent mouse = event.asMouseButtonEvent();\n \t \tCellPosition pos = isInside(mouse.position);\n \t \t\n \t \tif(mouse.button == Mouse.Button.LEFT){\n\t \t \tif(LightCore.soundButton.isInside(mouse.position)){\n\t\t\t\t\tif(LightCore.sound.getStatus() == SoundSource.Status.PLAYING)\n\t\t\t\t\t\tLightCore.sound.pause();\n\t\t\t\t\telse\n\t\t\t\t\t\tLightCore.sound.play();\n\t\t\t\t\tLightCore.soundButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(LightCore.soundButton.getId(), LightCore.soundButton.getSprite());\n\t\t\t\t}\n \t \t}\n \t \t\n \t \tswitch(getEvent(mouse)){\n\t\t\t\tcase GRID_ADD:\n\t\t\t\t\tif(pos.isFound()){\n\t\t\t\t\t\tif(robot){\n\t\t\t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell))\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t//System.out.println(\"Add cube on : \\t\\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t\t \t \t\t\tif(light){\n\t\t \t \t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel());\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\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\tLightableCell cell = new LightableCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\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 if(teleport){\n\t\t \t \t\t\t\tif(nextColour != null){\n\t\t \t \t\t\t\t\tif(!(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof TeleportCell) \n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell)\n\t\t \t \t\t\t\t\t\t\t&& !(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof LightableCell)){\n\t\t\t\t\t \t \t\t\tif(!firstTeleport){\n\t\t\t\t\t\t\t\t \t \tdisableAllButton();\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport1 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\tteleport2 = null;\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\t\tif(pos.getLevel() > -1){\n\t\t\t\t\t \t \t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel(), -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t}\n\t\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t\t \t \t\t\t\t\tTeleportCell cell = new TeleportCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, -1, -1, nextColour);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\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\tif(!firstTeleport)\n\t\t\t\t\t \t \t\t\t\tfirstTeleport = true;\n\t\t\t\t\t \t \t\t\telse if(firstTeleport && (pos.getLine() != teleport1.getX() || pos.getColumn() != teleport1.getY())){\n\t\t\t\t\t \t \t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t \t \t\tfirstTeleport = false;\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleport2 = new Position(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\t// Get teleport cells\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell1 = (TeleportCell)display.gridDisplay.grid.getCell(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\tTeleportCell teleportCell2 = (TeleportCell)display.gridDisplay.grid.getCell(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tteleportCell1.setDestXY(teleport2.getX(), teleport2.getY());\n\t\t\t\t\t\t\t \t \t\tteleportCell2.setDestXY(teleport1.getX(), teleport1.getY());\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell1);\n\t\t\t\t\t\t\t \t \t\tdisplay.gridDisplay.grid.setCell(teleportCell2);\n\t\t\t\t\t\t\t \t \t\t\n\t\t\t\t\t\t\t \t \t\tusedColour.add(nextColour);\n\t\t\t\t\t\t\t \t \t\tnextColour();\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\telse{\n\t\t\t \t \t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof NormalCell \n\t\t\t \t \t\t\t\t\t|| display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell\n\t\t\t \t \t\t\t\t\t|| (display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof ColoredCell && (blue || orange || purple || red))){\n\t\t\t \t \t\t\t\tif(blue || orange || purple || red){\n\t\t\t\t \t \t\t\t\tif(pos.getLevel() > -1){\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel(), colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t}\n\t\t\t\t \t \t\t\t\telse{\n\t\t\t\t \t \t\t\t\t\tColoredCell cell = new ColoredCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1, colour);\n\t\t\t\t \t \t\t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t\t \t \t\t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\t\t\n\t\t\t \t \t\t\t\t}\n\t\t\t \t \t\t\t\telse{\n\t\t\t \t \t\t\t\t\tNormalCell cell = new NormalCell(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t\t\t\t \t \t\t\t\tdisplay.gridDisplay.addCube(cell);\n\t\t\t\t \t \t\t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1, true, false);\n\t\t\t \t \t\t\t\t}\t\t\t \t \t\t\t\t\n\t\t\t \t \t\t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t \t \t\t\t}\n\t\t \t \t\t\t}\n\t\t \t \t\t\t\n\t\t \t \t\t\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine() && pos.getLevel() > -1)\n\t\t \t \t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase GRID_DELETE:\n\t\t\t\t\tif(pos.isFound() && pos.getLevel() > -1){\n\t\t\t\t\t\tCell cell = display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//System.out.println(\"Remove cube on : \\tLine : \" + pos.getLine() + \", column : \" + pos.getColumn() + \", level : \" + pos.getLevel());\n\t \t \t\t\tdisplay.anim.addRemoveCube(pos.getLine(), pos.getColumn(), pos.getLevel(), false, false);\n\t \t \t\t\tdisplay.gridDisplay.removeCube(pos.getLine(), pos.getColumn(), pos.getLevel()+1);\n\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t \t \t\t\t\n\t\t\t\t\t\tif(cell instanceof TeleportCell){\n\t\t\t\t\t\t\tTeleportColour currentTeleportColour = ((TeleportCell)cell).getColour();\n\t\t\t\t\t\t\tif(firstTeleport && currentTeleportColour.equals(nextColour)){\n\t\t\t\t\t\t\t\tfirstTeleport = false;\n\t\t\t\t\t\t\t\tenableAllButton();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(((TeleportCell)cell).getDestX() != -1 && ((TeleportCell)cell).getDestY() != -1){\n\t\t\t\t\t\t\t\tTeleportCell newCell = (TeleportCell)display.gridDisplay.grid.getCell(((TeleportCell)cell).getDestX(), ((TeleportCell)cell).getDestY());\n\t\t\t\t\t\t\t\tdisplay.anim.addRemoveCube(newCell.getX(), newCell.getY(), newCell.getHeight(), false, false);\n\t\t\t \t \t\t\tdisplay.gridDisplay.removeCube(newCell.getX(), newCell.getY(), newCell.getHeight()+1);\n\t\t\t \t \t\t\tdisplay.anim.updateSprite(display.gridDisplay.getGridSprites());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tusedColour.remove(currentTeleportColour);\n\t\t\t\t\t\t\tif(currentTeleportColour.equals(nextColour))\n\t\t\t\t\t\t\t\tnextColour();\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(pos.getColumn() == Robot.wheatley.getColumn() && pos.getLine() == Robot.wheatley.getLine())\n\t\t\t\t\t\t\tif(display.gridDisplay.grid.getCell(pos.getLine(), pos.getColumn()) instanceof EmptyCell)\n\t\t\t\t\t\t\t\tdisplay.deleteRobot();\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tdisplay.displayRobot(pos.getLine(), pos.getColumn(), originX, originY);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LIGHT:\n\t\t\t\t\tlightButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(lightButton.getId(), lightButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.LIGHT);\n \t \t\t\t\n\t \t \t\tlight = !light;\n\t \t \t\tif(!light)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SAVE:\n\t\t\t\t\tif(display.robotIsDisplayed){\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\t\tdisplay();\n\t\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\t\n\t\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\t\n\t\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (dialog.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t\t \n\t\t\t\t\t\t String fileName = file.getAbsolutePath();\n\t\t\t\t\t\t \n\t\t\t\t\t\t int i = fileName.lastIndexOf(\".\");\n\t\t\t\t\t\t if(i != -1 && fileName.charAt(i-1) != '/'){\n\t\t\t\t\t\t\t fileName = fileName.substring(0, i); \n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t // Print a selection menu for list of actions\n\t\t\t\t\t\t ActionSelector selec = new ActionSelector();\n\t\t\t\t\t\t while(!selec.isValid && !selec.isAborted){\n\t\t\t\t\t\t\t System.out.print(\"\");\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(selec.isValid){\n\t\t\t\t\t\t\t ArrayList<_Executable> listOfActions = new ArrayList<_Executable>();\n\t\t\t\t\t\t\t if(selec.checkForward.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Forward());\n\t\t\t\t\t\t\t if(selec.checkJump.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Jump());\n\t\t\t\t\t\t\t if(selec.checkTurnRight.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.RIGHT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkTurnLeft.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Turn(RelativeDirection.LEFT, Colour.WHITE));\n\t\t\t\t\t\t\t if(selec.checkWash.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Wash());\n\t\t\t\t\t\t\t if(selec.checkClone.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Clone());\n\t\t\t\t\t\t\t if(selec.checkBreak.getState())\n\t\t\t\t\t\t\t\t listOfActions.add(new Break());\n\t\t\t\t\t\t\t listOfActions.add(new Light());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t int numbOfMain = (selec.mainLimit.getText().equals(\"\"))? 12 : Integer.parseInt(selec.mainLimit.getText());\n\t\t\t\t\t\t\t int numbOfProc1 = (selec.p1Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p1Limit.getText());\n\t\t\t\t\t\t\t int numbOfProc2 = (selec.p2Limit.getText().equals(\"\"))? 0 : Integer.parseInt(selec.p2Limit.getText());\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Level level = new Level(display.gridDisplay.grid, listOfActions, selec.checkP1.getState(), selec.checkP2.getState(), numbOfMain, numbOfProc1, numbOfProc2);\n\t\t\t\t\t\t\t ParserJSON.serialize(fileName+\".json\", level);\n\t\t\t\t\t\t\t display.gridDisplay.grid.printGrid();\n\t\t\t\t\t\t }\n\t\t\t\t\t\t \n\t\t\t\t\t\t selec.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsaveButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(saveButton.getId(), saveButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Le robot n'est pas affiché, impossible de sauvegarder.\", \"Erreur\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase LOAD:\n\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\tLightCore.window.clear(Color.WHITE);\n\t\t\t\t\tdisplay();\n\t\t\t\t\tLightCore.window.display();\n\t\t\t\t\t\n\t\t\t\t\tdialog = new JFileChooser();\n\t\t\t\t\t\n\t\t\t\t\tfilter = new LoadSaveFilter(new String[]{\"json\"}, \"Fichier texte au format JSON (*.json)\");\n\t\t\t\t\tdialog.setAcceptAllFileFilterUsed(false);\n\t\t\t\t\tdialog.addChoosableFileFilter(filter);\n\t\t\t\t\t\n\t\t\t\t\tif (dialog.showOpenDialog(null) == JFileChooser.APPROVE_OPTION) {\n\t\t\t\t\t File file = dialog.getSelectedFile();\n\t\t\t\t\t Grid toOpen = ParserJSON.deserialize(file.getAbsolutePath()).getGrid();\n\t\t\t\t\t originX = (GRID_DISPLAY_SIZE/2)+MARGIN_LEFT;\n\t\t\t\t\t originY = (WINDOW_HEIGHT/2-MARGIN_LEFT-(toOpen.getSize()*Textures.cellTexture.getSize().y)/2);\n\t\t\t\t\t display.reinit(toOpen, originX, originY);\n\t\t\t\t\t toDisplay = new ArrayList<Drawable>();\n\t\t\t\t\t canva = new CanvaDisplay(toOpen.getSize(), originX, originY);\n\t\t\t\t\t initConstantDisplay();\n\t\t\t\t\t \n\t\t\t\t\t //System.out.println(file.getAbsolutePath());\n\t\t\t\t\t}else{\n\t\t\t\t\t\tloadButton.changeTexture();\n\t\t\t\t\t\ttoDisplay.set(loadButton.getId(), loadButton.getSprite());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase ROBOT:\n\t\t\t\t\trobotButton.changeTexture();\n \t \t\t\t\ttoDisplay.set(robotButton.getId(), robotButton.getSprite());\n \t \t\t\t\t\n \t \t\t\t\tresetButton(EditorEvent.ROBOT);\n\t\t\t\t \t\n\t \t \t\trobot = !robot;\n\t \t \t\tif(!robot)\n\t \t \t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase HOME:\n\t\t\t\t\tLightCore.menu = true;\n\t\t\t\t\tLightCore.editor = false;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_LEFT:\n\t\t\t\t\tdisplay.rotate(0);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TURN_RIGHT:\n\t\t\t\t\tdisplay.rotate(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_LEFT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.LEFT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TURN_ROBOT_RIGHT:\n\t\t\t\t\tdisplay.rotateRobot(RelativeDirection.RIGHT);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_BLUE:\n\t\t\t\t\tblueSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(blueSplash.getId(), blueSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.BLUE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_BLUE);\n\t\t\t\t\t\n\t\t\t\t\tblue = !blue;\n\t\t\t\t\tif(!blue)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_ORANGE:\n\t\t\t\t\torangeSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(orangeSplash.getId(), orangeSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.ORANGE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_ORANGE);\n\t\t\t\t\t\n\t\t\t\t\torange = !orange;\n\t\t\t\t\tif(!orange)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_PURPLE:\n\t\t\t\t\tpurpleSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(purpleSplash.getId(), purpleSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.PURPLE;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_PURPLE);\n\t\t\t\t\t\n\t\t\t\t\tpurple = !purple;\n\t\t\t\t\tif(!purple)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SPLASH_RED:\n\t\t\t\t\tredSplash.changeTexture();\n\t\t\t\t\ttoDisplay.set(redSplash.getId(), redSplash.getSprite());\n\t\t\t\t\t\n\t\t\t\t\tcolour = Colour.RED;\n\t\t\t\t\tresetButton(EditorEvent.SPLASH_RED);\n\t\t\t\t\t\n\t\t\t\t\tred = !red;\n\t\t\t\t\tif(!red)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TELEPORT:\n\t\t\t\t\tteleportButton.changeTexture();\n\t \t\t\t\ttoDisplay.set(teleportButton.getId(), teleportButton.getSprite());\n\t \t\t\t\t\n\t \t \t\tresetButton(EditorEvent.TELEPORT);\n\t \t \t\t\n\t\t \t \tteleport = !teleport;\n\t\t \t \tif(!teleport)\n\t\t\t\t\t\tcolour = Colour.WHITE;\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n \t \t}\n\t\t}\n\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"protected void onEvent(DivRepEvent e) {\n\t\t}",
"public void onApplicationEvent(final ZeitPuls event) {\n if(! init){\n init();\n init = true;\n }\n \n this.jetzt = event;\n \n if (this.countdown != null) {\n this.countdown.signalTime(event.getSpielZeit());\n }\n \n if (this.countdownToStart != null) {\n this.countdownToStart.signalTime(event.getSpielZeit());\n }\n \n if (this.business.getSpielEinstellungen().getPhase().equals(SpielPhasenEnum.F_SPIELEN)) {\n \n prepare_1_wartend();\n \n prepare_2_zum_vorbereiten();\n \n prepare_3_warten_auf_start();\n \n prepare_4_spielend();\n \n checkSpielende();\n \n }\n \n \n }",
"@Override\r\n\tpublic void initEvent() {\n\r\n\t}",
"@Override\r\n\tpublic void onAyuda() {\n\t\t\r\n\t}",
"public void fijarControlador(EventListener controlador) {\n\t\tthis.jButtonVolver.addActionListener((ActionListener) controlador);\n\t\tthis.jButtonConfirmar.addActionListener((ActionListener) controlador);\n\t}",
"public ManipularEstudiantes() {\n initComponents();\n cme = new Control_Mantenimiento_Estudiante(this);\n this.gUI_botones2.agregar_eventos(cme);\n }",
"public void actionPerformed(ActionEvent evento) {\n\t\tif (evento.getSource() == janelaBanList.getMenuSair()) {\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Configurações.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuAlternarConta()) {\r\n\t\t\tnew JanelaAlternarConta(janelaBanList);\r\n\t\t}\r\n\r\n\t\t// Caso o evento tenha ocorrido no botao Banir.\r\n\t\telse if (evento.getSource() == janelaBanList.getBotaoBanir()) {\r\n\t\t\tbanirUsuario();\r\n\t\t}\r\n\t\t\r\n\t\t// Caso o evento tenha ocorrido no menu Desbanir.\r\n\t\telse if (evento.getSource() == janelaBanList.getMenuDesbanir()) {\r\n\t\t\tdesbanirUsuario();\r\n\t\t}\r\n\t}",
"public void setOnActionClic(EventHandler<ActionEvent> evt){\n this.contarClic();\n\n //Ejecutar el evento del usuario\n }",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void chocarOvos() {\n\t\t\r\n\t}",
"@Override\n\tpublic void update(Event e) {\n\t}",
"@Override\n public void preceedEvent(EventDelegate obj) {\n //System.out.println(\"AbstractEvent preceedEvent: \" + this + \" with engine \" + engine);\n\n if (engine != null) {\n engine.preceedEvent(this, getEventScheduler(), obj);\n }\n\n }",
"@Override\n public void onEvent(Event t) throws CSenseException {\n }",
"public VBusqueda() {\n initComponents();\n buscador= new Buscador(new InvocadorEventoSwing());\n buscador.addListener(this);\n }",
"@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}",
"private void initEvents(){\n ArrayList<Event> en = new ArrayList();\n en.add(new Event_MessangerOfGods(this.village));\n en.add(new Event_PaganPriest(this.village));\n this.events = en;\n }",
"@Override\r\n\tpublic void voar() {\n\t\t\r\n\t}",
"void eventChanged();",
"private void comerComestible(Celda c) {\n // TODO implement here\n }",
"public void controlloEventiInserimento() {\n\t\t/**\n\t\t * Riempimento form informativo riguardo\n\t\t * all'ultima quota inserita per un determinato\n\t\t * tipo di socio\n\t\t */ \n\t\tviewInserimento.getCmbbxTipologia().addItemListener(new ItemListener() {\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif (viewInserimento.getCmbbxTipologia().getSelectedIndex() != -1) {\n\t\t\t\t\tquotapre = model.getQuotaPrecendente(viewInserimento.getCmbbxTipologia()\n\t\t\t\t\t\t\t.getItemAt(viewInserimento.getCmbbxTipologia().getSelectedIndex()));\n\t\t\t\t\tif (quotapre != null) {\n\t\t\t\t\t\tviewInserimento.getTxtFieldDataIPre().setText(quotapre.getDataI().toString());\n\t\t\t\t\t\tviewInserimento.getTxtFieldValorePre().setText(String.valueOf(quotapre.getValore()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (viewInserimento.getCmbbxTipologia().getSelectedIndex() == -1 || quotapre == null) {\n\t\t\t\t\tviewInserimento.getTxtFieldDataIPre().setText(\"\");\n\t\t\t\t\tviewInserimento.getTxtFieldValorePre().setText(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento inserimento quota \n\t\t */\n\t\tviewInserimento.getBtnInserisci().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tif (validatorForm()) {\n\t\t\t\t\tboolean esito = false;\n\t\t\t\t\tQuota quota = null;\n\t\t\t\t\tquota = new Quota(Float.valueOf(viewInserimento.getTxtFieldValore().getText()).floatValue(),\n\t\t\t\t\t\t\tviewInserimento.getCmbbxTipologia().getSelectedItem().toString(),\n\t\t\t\t\t\t\tDate.valueOf(viewInserimento.getTxtFieldDataI().getText() + \"-01\"));\n\t\t\t\t\tesito = model.insertQuota(quota);\n\t\t\t\t\tif (esito) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(), \"Quota inserita\");\n\t\t\t\t\t\tazzeraInsertForm();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(),\n\t\t\t\t\t\t\t\t\"Inserimento non effettuato\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tJOptionPane.showMessageDialog(viewInserimento.getFrame().getContentPane(),\n\t\t\t\t\t\t\t\"Campi non validi, modificare i campi contrassegnati in rosso\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento azzeramento form \n\t\t */\n\t\tviewInserimento.getBtnAzzera().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tazzeraInsertForm();\n\t\t\t}\n\t\t});\n\n\t\t/**\n\t\t * Evento ritorno all'AdminView \n\t\t */\n\t\tviewInserimento.getBtnDashboard().addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tAdminController adminController = new AdminController();\n\t\t\t\tadminController.controlloEvento();\n\t\t\t\tviewInserimento.getFrame().dispose();\n\t\t\t}\n\t\t});\n\t}",
"@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}",
"@Override\r\n public void notifyEvent(ControllerEvent event) {\n \r\n }"
] | [
"0.7589339",
"0.72540927",
"0.6977595",
"0.69434774",
"0.68911916",
"0.6700212",
"0.6700212",
"0.667741",
"0.65899944",
"0.65384495",
"0.6483947",
"0.6476122",
"0.6454731",
"0.642151",
"0.642151",
"0.6410684",
"0.6410684",
"0.6410684",
"0.6410684",
"0.6410684",
"0.63544935",
"0.6353767",
"0.6353767",
"0.6353767",
"0.6307023",
"0.62881505",
"0.6287753",
"0.6281505",
"0.6274993",
"0.62319344",
"0.6173942",
"0.6165459",
"0.6162837",
"0.6148288",
"0.61457664",
"0.6144362",
"0.6130675",
"0.6102109",
"0.60824746",
"0.6076896",
"0.6071009",
"0.60631955",
"0.60426164",
"0.6029757",
"0.60274965",
"0.60270303",
"0.60162264",
"0.60162264",
"0.60139173",
"0.59991497",
"0.59805727",
"0.5972286",
"0.5961982",
"0.5956183",
"0.5952514",
"0.59488124",
"0.59483474",
"0.5946149",
"0.5937527",
"0.59339875",
"0.59339875",
"0.5929403",
"0.5903449",
"0.5902923",
"0.5901224",
"0.589991",
"0.5874597",
"0.58704966",
"0.5867179",
"0.58589524",
"0.58578104",
"0.5854691",
"0.58544827",
"0.5846042",
"0.58279896",
"0.582671",
"0.5823589",
"0.58207977",
"0.58169675",
"0.58169675",
"0.58139324",
"0.5809705",
"0.58086973",
"0.5805303",
"0.58035696",
"0.5802733",
"0.5798468",
"0.5798288",
"0.5798288",
"0.5796289",
"0.5778838",
"0.5770116",
"0.5767944",
"0.5764563",
"0.57567114",
"0.5755791",
"0.5748211",
"0.5746903",
"0.57404226",
"0.5737171",
"0.5727693"
] | 0.0 | -1 |
/ 73: / 74: | public int getId()
/* 75: */ {
/* 76:110 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 77: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21782G() {\n }",
"private void m50366E() {\n }",
"public void mo21779D() {\n }",
"public void mo21877s() {\n }",
"public void mo21785J() {\n }",
"public void mo21794S() {\n }",
"public void mo38117a() {\n }",
"public void mo21787L() {\n }",
"public void mo21879u() {\n }",
"public void mo3749d() {\n }",
"public void mo9233aH() {\n }",
"public void mo21783H() {\n }",
"public void mo21792Q() {\n }",
"public void mo3376r() {\n }",
"public void mo21793R() {\n }",
"public void mo21789N() {\n }",
"public void mo21780E() {\n }",
"public void mo21781F() {\n }",
"public void mo21786K() {\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo21791P() {\n }",
"public void skystonePos6() {\n }",
"public void mo23813b() {\n }",
"private void kk12() {\n\n\t}",
"public void mo44053a() {\n }",
"public void mo21878t() {\n }",
"public void mo6944a() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo56167c() {\n }",
"public void mo21784I() {\n }",
"public void mo12628c() {\n }",
"public void mo97908d() {\n }",
"public void mo21795T() {\n }",
"public void mo2740a() {\n }",
"void mo72113b();",
"public void m23075a() {\n }",
"public void skystonePos4() {\n }",
"void mo57277b();",
"private void m50367F() {\n }",
"public void mo55254a() {\n }",
"public void mo2471e() {\n }",
"public void mo21825b() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void method_191() {}",
"public void mo9848a() {\n }",
"public void mo12930a() {\n }",
"public void mo115188a() {\n }",
"public void mo3370l() {\n }",
"public void mo21788M() {\n }",
"void m1864a() {\r\n }",
"public void mo9137b() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"private void level7() {\n }",
"public void mo115190b() {\n }",
"public abstract String mo13682d();",
"C2841w mo7234g();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo6081a() {\n }",
"long getUnknown72();",
"public void mo8738a() {\n }",
"void mo72114c();",
"public void method_192() {}",
"public void mo5382o() {\n }",
"private void a(java.lang.String r6, java.lang.StringBuilder r7) {\n /*\n r5 = this;\n r0 = F;\n r1 = J;\n r2 = 35;\n r1 = r1[r2];\n r1 = r6.indexOf(r1);\n if (r1 <= 0) goto L_0x0057;\n L_0x000e:\n r2 = J;\n r3 = 38;\n r2 = r2[r3];\n r2 = r2.length();\n r2 = r2 + r1;\n r3 = r6.charAt(r2);\n r4 = 43;\n if (r3 != r4) goto L_0x0039;\n L_0x0021:\n r3 = 59;\n r3 = r6.indexOf(r3, r2);\n if (r3 <= 0) goto L_0x0032;\n L_0x0029:\n r3 = r6.substring(r2, r3);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r3);\t Catch:{ RuntimeException -> 0x0072 }\n if (r0 == 0) goto L_0x0039;\n L_0x0032:\n r2 = r6.substring(r2);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r2);\t Catch:{ RuntimeException -> 0x0072 }\n L_0x0039:\n r2 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r3 = 37;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r6.indexOf(r2);\t Catch:{ RuntimeException -> 0x0074 }\n r3 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r4 = 36;\n r3 = r3[r4];\t Catch:{ RuntimeException -> 0x0074 }\n r3 = r3.length();\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r2 + r3;\n r1 = r6.substring(r2, r1);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r1);\t Catch:{ RuntimeException -> 0x0074 }\n if (r0 == 0) goto L_0x005e;\n L_0x0057:\n r0 = l(r6);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r0);\t Catch:{ RuntimeException -> 0x0074 }\n L_0x005e:\n r0 = J;\n r1 = 39;\n r0 = r0[r1];\n r0 = r7.indexOf(r0);\n if (r0 <= 0) goto L_0x0071;\n L_0x006a:\n r1 = r7.length();\t Catch:{ RuntimeException -> 0x0076 }\n r7.delete(r0, r1);\t Catch:{ RuntimeException -> 0x0076 }\n L_0x0071:\n return;\n L_0x0072:\n r0 = move-exception;\n throw r0;\n L_0x0074:\n r0 = move-exception;\n throw r0;\n L_0x0076:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.StringBuilder):void\");\n }",
"public final void mo51373a() {\n }",
"public abstract int mo8526p();",
"void mo41083a();",
"void mo21073d();",
"void mo21074e();",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void mo5248a() {\n }",
"void mo57278c();",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"void mo21076g();",
"public int method_6437() {\r\n return this.field_6227;\r\n }",
"public void mo97906c() {\n }",
"public abstract String mo118046b();",
"public abstract String mo9751p();",
"public void mo2470d() {\n }",
"public void mo4359a() {\n }",
"void mo119582b();",
"public int method_113() {\r\n return 0;\r\n }",
"void mo56163g();",
"public abstract String mo41079d();",
"void mo41086b();",
"public abstract int mo9754s();",
"public abstract void mo27385c();",
"public void mo23438b() {\n }",
"protected void mo6255a() {\n }",
"public void mo1405e() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public abstract String mo9239aw();",
"public abstract String mo41086i();",
"public abstract void mo2624j();"
] | [
"0.6956221",
"0.66851795",
"0.66098905",
"0.6554185",
"0.6531153",
"0.6515332",
"0.65074813",
"0.6491724",
"0.6490964",
"0.6483824",
"0.6471957",
"0.64671934",
"0.64283305",
"0.6417651",
"0.640286",
"0.63848376",
"0.6379954",
"0.6371833",
"0.6353902",
"0.63429826",
"0.63394177",
"0.63147455",
"0.63067096",
"0.63046336",
"0.63003594",
"0.6290112",
"0.62857556",
"0.6282343",
"0.62722784",
"0.6270338",
"0.6269133",
"0.62680244",
"0.6242328",
"0.62387973",
"0.623744",
"0.62324655",
"0.6229976",
"0.6229085",
"0.62215364",
"0.62013143",
"0.61793655",
"0.61787903",
"0.6174948",
"0.6159121",
"0.6146913",
"0.6136324",
"0.6130545",
"0.612881",
"0.6127451",
"0.6115678",
"0.61126953",
"0.61106974",
"0.6102647",
"0.61001384",
"0.6096307",
"0.60954225",
"0.6091142",
"0.6091113",
"0.6091113",
"0.6091113",
"0.6091113",
"0.6091113",
"0.6091113",
"0.6091113",
"0.6090324",
"0.6079145",
"0.60779035",
"0.6077467",
"0.6071887",
"0.6050899",
"0.60502565",
"0.6049252",
"0.6044297",
"0.6043823",
"0.6039406",
"0.6038128",
"0.6037429",
"0.6034713",
"0.60308635",
"0.60294473",
"0.602533",
"0.6024824",
"0.6023504",
"0.60230666",
"0.59820545",
"0.59571946",
"0.59517837",
"0.59483236",
"0.59438336",
"0.59422785",
"0.5935374",
"0.59334356",
"0.59328955",
"0.5918871",
"0.5914217",
"0.59134895",
"0.5911611",
"0.5907862",
"0.5907656",
"0.5905026",
"0.5903321"
] | 0.0 | -1 |
/ 78: / 79: | public int getIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI()
/* 80: */ {
/* 81:114 */ return this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 82: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21782G() {\n }",
"public void mo21779D() {\n }",
"public void mo38117a() {\n }",
"public void mo21877s() {\n }",
"public void mo21787L() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo21879u() {\n }",
"private void m50366E() {\n }",
"public void mo21792Q() {\n }",
"private void kk12() {\n\n\t}",
"public void mo21794S() {\n }",
"public void mo21789N() {\n }",
"public void mo21781F() {\n }",
"public void mo97908d() {\n }",
"public abstract int mo8526p();",
"public void mo3749d() {\n }",
"public void mo9233aH() {\n }",
"public void mo23813b() {\n }",
"public void mo21780E() {\n }",
"public void mo2740a() {\n }",
"public void mo21791P() {\n }",
"public void mo3376r() {\n }",
"public void mo21785J() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"private void m50367F() {\n }",
"public void mo21793R() {\n }",
"public void mo21786K() {\n }",
"public void mo21878t() {\n }",
"public void mo21783H() {\n }",
"public void mo9848a() {\n }",
"public void mo56167c() {\n }",
"public void mo8738a() {\n }",
"public void mo12930a() {\n }",
"public void mo6944a() {\n }",
"void mo57277b();",
"public void mo9137b() {\n }",
"public void mo21788M() {\n }",
"public int method_113() {\r\n return 0;\r\n }",
"public void mo6081a() {\n }",
"public void mo44053a() {\n }",
"public void mo97906c() {\n }",
"public void m23075a() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo21795T() {\n }",
"public void mo12628c() {\n }",
"public void method_193() {}",
"public int method_209() {\r\n return 0;\r\n }",
"public void method_191() {}",
"public void mo4683c() {\n mo4679a(3);\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"public void mo55254a() {\n }",
"public void mo21784I() {\n }",
"private void level7() {\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"C2841w mo7234g();",
"void mo72113b();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo21825b() {\n }",
"public void mo23438b() {\n }",
"public void mo115190b() {\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public abstract int mo9754s();",
"public void mo4359a() {\n }",
"public int F()\r\n/* 24: */ {\r\n/* 25: 39 */ return aqt.a(0.5D, 1.0D);\r\n/* 26: */ }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public void mo115188a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo5248a() {\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"public void mo5097b() {\n }",
"void mo57278c();",
"void mo1943l();",
"C7904c mo24084a();",
"public int method_2031() {\r\n return this.field_1790;\r\n }",
"public final void mo7892a() {\n m7043b();\n }",
"void mo41083a();",
"void m1864a() {\r\n }",
"public void mo2471e() {\n }",
"public abstract String mo13682d();",
"public void mo9241ay() {\n }",
"public abstract String mo118046b();",
"public abstract int mo9797a();",
"public void mo3370l() {\n }",
"public void m3288a() {\n mo855a(this.f2272b);\n }",
"void mo119581a();",
"public abstract String mo9239aw();",
"public abstract int mo9749n();",
"public abstract void mo2624j();",
"public void mo21800a() {\n }",
"void mo119582b();",
"public int method_51() {\n return 1;\n }",
"void mo21076g();"
] | [
"0.67917466",
"0.63505256",
"0.63470733",
"0.6314228",
"0.6313831",
"0.62887365",
"0.62793195",
"0.6269475",
"0.62659353",
"0.6260518",
"0.62264603",
"0.6226195",
"0.62204564",
"0.62178564",
"0.62123585",
"0.6199271",
"0.6198202",
"0.6187192",
"0.6186396",
"0.61801577",
"0.61789757",
"0.61712843",
"0.6170159",
"0.61625296",
"0.61489534",
"0.6147892",
"0.614329",
"0.61420757",
"0.6138487",
"0.61353636",
"0.6134568",
"0.6103719",
"0.6097813",
"0.60971576",
"0.60813403",
"0.60677594",
"0.60529935",
"0.60407615",
"0.60397655",
"0.603149",
"0.60213554",
"0.60196114",
"0.6012116",
"0.59974",
"0.5996458",
"0.59820515",
"0.59699804",
"0.59609556",
"0.59608936",
"0.59511113",
"0.59500355",
"0.59403634",
"0.5936235",
"0.5935121",
"0.59268415",
"0.59135544",
"0.59111667",
"0.59083927",
"0.5905655",
"0.5905655",
"0.5905655",
"0.5905655",
"0.5905655",
"0.5905655",
"0.5905655",
"0.59043306",
"0.58945423",
"0.5890699",
"0.5883256",
"0.588078",
"0.58759815",
"0.58758503",
"0.5872047",
"0.5863813",
"0.5859937",
"0.58574283",
"0.58555424",
"0.58524376",
"0.5847481",
"0.5841582",
"0.5837989",
"0.58377004",
"0.5837368",
"0.5831083",
"0.58302677",
"0.58232605",
"0.5820904",
"0.5813553",
"0.5806461",
"0.58051205",
"0.5802678",
"0.58002406",
"0.5799001",
"0.57960236",
"0.5795166",
"0.57944417",
"0.5791618",
"0.57856345",
"0.5784985",
"0.5783017",
"0.5770926"
] | 0.0 | -1 |
/ 83: / 84: | public void setIdAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI(int idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI)
/* 85: */ {
/* 86:118 */ this.idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI = idAutorizacionDocumentoPuntoDeVentaAutoimpresorSRI;
/* 87: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"C1458cs mo7613iS();",
"public void mo21783H() {\n }",
"public void mo12628c() {\n }",
"void mo33732Px();",
"C2841w mo7234g();",
"public void skystonePos4() {\n }",
"public void mo6081a() {\n }",
"public void mo21782G() {\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public static int m8655e() {\n return 8;\n }",
"public void mo21794S() {\n }",
"void mo12637b();",
"public int arn() {\n return 383;\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"long getUnknown72();",
"public void mo21786K() {\n }",
"public void mo21879u() {\n }",
"public void mo21880v() {\n }",
"public int mo36g() {\n return 8;\n }",
"public int mo3384v() {\n return 0;\n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"public void mo3376r() {\n }",
"public void mo9233aH() {\n }",
"public void mo21784I() {\n }",
"void mo21076g();",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"void mo1943l();",
"public final void mo92083O() {\n }",
"void mo8280a(int i, int i2, C1207m c1207m);",
"byte mo30283c();",
"void mo4874b(C4718l c4718l);",
"public void mo21787L() {\n }",
"public void mo21781F() {\n }",
"public void skystonePos6() {\n }",
"public void mo21780E() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"C7904c mo24084a();",
"public static asw m47155c() {\n return zzfkz;\n }",
"public final void mo92082N() {\n }",
"void mo72113b();",
"void mo1507n();",
"void mo88524c();",
"public void mo21779D() {\n }",
"public void mo3370l() {\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 }",
"void mo4873a(C4718l c4718l);",
"public void mo21785J() {\n }",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"public final void mo92084P() {\n }",
"public abstract int mo8526p();",
"public void mo115190b() {\n }",
"public void mo2470d() {\n }",
"C2451d mo3408a(C2457e c2457e);",
"void mo4833b();",
"static int SC(int db) {\n return (int) (db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST;\n }",
"public void mo21877s() {\n }",
"public void mo55254a() {\n }",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public void mo38117a() {\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public void mo21789N() {\n }",
"bdm mo1784a(akh akh);",
"public void mo3749d() {\n }",
"void mo304a(C0366h c0366h);",
"public int mo9232aG() {\n return 0;\n }",
"public void mo9137b() {\n }",
"public abstract String mo118046b();",
"void mo57278c();",
"public abstract String mo41086i();",
"public final void mo7596sH(String str) {\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"C4945r5 mo19056B();",
"public final void mo1285b() {\n }",
"public abstract int mo13680b();",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"static void feladat8() {\n\t}",
"public void mo44053a() {\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"C7716a mo24085b();",
"public void mo9848a() {\n }",
"void mo41086b();",
"public int mo36g() {\n return 4;\n }",
"void mo84a();",
"String mo21078i();",
"public void mo21878t() {\n }",
"public void mo21791P() {\n }",
"void mo27575a();",
"public void mo21788M() {\n }",
"private void m50367F() {\n }",
"void m8368b();",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"int getLatE6();"
] | [
"0.5680791",
"0.566645",
"0.56338835",
"0.56084865",
"0.5595498",
"0.5574926",
"0.55568415",
"0.55449283",
"0.55381113",
"0.54939204",
"0.547932",
"0.54283553",
"0.54282093",
"0.54174024",
"0.5416922",
"0.5413567",
"0.54042387",
"0.5402546",
"0.53902173",
"0.53796357",
"0.5377817",
"0.53732675",
"0.5367406",
"0.5356011",
"0.5336515",
"0.5330719",
"0.5330193",
"0.53258455",
"0.5310805",
"0.53101474",
"0.5306416",
"0.5303506",
"0.5300768",
"0.53007454",
"0.52939963",
"0.52899295",
"0.5289073",
"0.52883196",
"0.5284625",
"0.5261636",
"0.52610785",
"0.5259129",
"0.5258565",
"0.5257647",
"0.52554214",
"0.525111",
"0.5249104",
"0.5249104",
"0.5249104",
"0.5249104",
"0.5249104",
"0.5249104",
"0.5249104",
"0.52451503",
"0.5242597",
"0.524243",
"0.5241611",
"0.52397686",
"0.52349544",
"0.52302617",
"0.5226778",
"0.5222672",
"0.5219725",
"0.521869",
"0.5216207",
"0.5212258",
"0.5205995",
"0.51987624",
"0.51936805",
"0.5187266",
"0.51855826",
"0.51839036",
"0.5181942",
"0.5180674",
"0.5175646",
"0.5171831",
"0.51704454",
"0.51660264",
"0.5165506",
"0.51654875",
"0.51631933",
"0.5163126",
"0.5162303",
"0.51595306",
"0.5157839",
"0.5153742",
"0.514935",
"0.51475966",
"0.5147498",
"0.5146458",
"0.51449436",
"0.5143873",
"0.51433533",
"0.51428294",
"0.5140871",
"0.5138744",
"0.51379335",
"0.5133645",
"0.51331055",
"0.51328534",
"0.51317286"
] | 0.0 | -1 |
/ 88: / 89: | public int getIdOrganizacion()
/* 90: */ {
/* 91:122 */ return this.idOrganizacion;
/* 92: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"String mo38971b();",
"private static String m11988a(String str) {\n return C3171d.m11992a(str);\n }",
"String mo21078i();",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"void mo5875b(String str, long j);",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"public final void mo1308a() {\n int i = this.f2309d;\n int i2 = i != Integer.MIN_VALUE ? i + this.f2308c : this.f2307b;\n this.f2309d = i2;\n String str = this.f2306a;\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11);\n sb.append(str);\n sb.append(i2);\n this.f2310e = sb.toString();\n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"int mo5882g(String str);",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"String mo30285c(long j);",
"String mo2801a(String str);",
"public int mo34973b() {\n return 48;\n }",
"C2841w mo7234g();",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"String mo20730b();",
"public final void mo7596sH(String str) {\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"C1111j mo5881f(String str);",
"C12000e mo41087c(String str);",
"java.lang.String getS8();",
"String mo20731c();",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"@Test(timeout = 4000)\n public void test086() throws Throwable {\n String string0 = SQLUtil.normalize(\"aT:7W`oI)N(jLl^oF<HQ\", false);\n assertEquals(\"aT : 7W ` oI) N (jLl ^ oF < HQ\", string0);\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"void mo8713dV(String str);",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }",
"public static String m3984tk(String str) {\n AppMethodBeat.m2504i(93204);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n String trim;\n if (lastIndexOf > 0) {\n trim = str.substring(lastIndexOf + 6).trim();\n AppMethodBeat.m2505o(93204);\n return trim;\n }\n trim = \"\";\n AppMethodBeat.m2505o(93204);\n return trim;\n }",
"@Test(timeout = 4000)\n public void test018() throws Throwable {\n byte[] byteArray0 = new byte[6];\n byteArray0[0] = (byte)43;\n byteArray0[1] = (byte) (-110);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"+\", token0.toString());\n }",
"public static String m3982ti(String str) {\n AppMethodBeat.m2504i(93202);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n str = str.substring(0, lastIndexOf);\n AppMethodBeat.m2505o(93202);\n return str;\n }\n AppMethodBeat.m2505o(93202);\n return str;\n }",
"private byte m1653f() {\n char charAt;\n int i = this.f2519d;\n do {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n charAt = charSequence.charAt(i3);\n this.f2520e = charAt;\n if (charAt == '&') {\n return 12;\n }\n } while (charAt != ';');\n this.f2519d = i;\n this.f2520e = ';';\n return 13;\n }",
"C0139e mo89b();",
"void mo1329d(String str, String str2);",
"public abstract String mo24851a(String str);",
"public static long m3983tj(String str) {\n AppMethodBeat.m2504i(93203);\n int lastIndexOf = str.lastIndexOf(\";?enc=\");\n if (lastIndexOf > 0) {\n long anl = C5046bo.anl(str.substring(lastIndexOf + 6));\n AppMethodBeat.m2505o(93203);\n return anl;\n }\n AppMethodBeat.m2505o(93203);\n return 0;\n }",
"private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"void mo304a(C0366h c0366h);",
"C8325a mo21498a(String str);",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"void mo8280a(int i, int i2, C1207m c1207m);",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"bdm mo1784a(akh akh);",
"void mo64942a(String str, long j, long j2);",
"dkj mo4367a(dkk dkk);",
"int mo23349e(String str, String str2);",
"int mo23353w(String str, String str2);",
"public static int m8668h() {\n return 8;\n }",
"int mo5885j(String str);",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"@Test(timeout = 4000)\n public void test077() throws Throwable {\n String string0 = SQLUtil.normalize(\"^`-{}\\\"8M,,3\", true);\n assertEquals(\"^ ` - { } \\\"8M,,3\\\"\", string0);\n }",
"void mo1582a(String str, C1329do c1329do);",
"static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }",
"void mo9075h(String str, int i, int i2);",
"public static int m8655e() {\n return 8;\n }",
"void mo88522a(String str);",
"long getUnknown72();",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"byte mo30283c();",
"void mo12637b();",
"int mo5867a(String str, long j);",
"public void mo9258g() {\n this.f1301l = EncodingUtils.m1912b(this.f1301l, 0);\n }",
"@JvmName(name = \"ι\")\n /* renamed from: ι reason: contains not printable characters */\n public final void m3581(C2288 r4) {\n this.f2894.m2404(this, f2885[0], r4);\n }",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"public void mo13882d(String str) {\n this.f5082h = str;\n }",
"C1458cs mo7613iS();",
"public int mo36g() {\n return 8;\n }",
"public void mo9233aH() {\n }",
"public static String romaCoding(String s){\n s = s.toLowerCase().replaceAll(\" \", \"\");\n StringBuffer sb = new StringBuffer(s);\n System.out.println(s);\n /**\n * Step1: Reverse the string\n */\n String step1 = sb.reverse().toString();\n System.out.println(step1);\n\n /**\n * Step2: Rail Fence Cipher Coding\n */\n String step2 = RailFenceCipher.railFenceCipherCoding(step1);\n System.out.println(step2);\n\n /**\n * Step3: Computer Key Board Coding\n */\n String step3 = \"\";\n Map<Character, Character> map = KeyBoard.getCodingMap();\n for(int i = 0; i < step2.length(); i++){\n step3 = step3 + map.get(step2.charAt(i));\n }\n System.out.println(step3);\n\n /**\n * Step4: Covert string to numbers with Nokia phone keyboard\n */\n String step4 = \"\";\n Map nokiaMap = KeyBoard.getNokiaCodingMap();\n for(int i = 0; i < step3.length(); i++){\n step4 = step4 + nokiaMap.get(step3.charAt(i)) + \"\";\n }\n System.out.println(step4);\n\n /**\n * Step5: Convert string to morse code\n */\n String step5 = \"\";\n Map morseMap = MorseCode.getMorseMap();\n for(int i = 0; i < step4.length(); i++){\n Character c = step4.charAt(i);\n step5 = step5 + morseMap.get(c) + \"/\";\n }\n System.out.println(step5);\n return step5;\n }",
"public void mo13890h(String str) {\n this.f5088n = str;\n }",
"String mo131984a();",
"int mo23351i(String str, String str2);",
"int mo23352v(String str, String str2);",
"int mo23347d(String str, String str2);",
"C15430g mo56154a();",
"public abstract C0690a mo9258k(String str);",
"public static int m22583h(long j) {\n return 8;\n }",
"public String mo38887b() {\n String trim = this.f30736g0.getText().toString().trim();\n if (trim.length() < 2) {\n return \"\";\n }\n return trim.substring(0, 2);\n }",
"C2451d mo3408a(C2457e c2457e);",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.adjustBeginLineColumn((-1), 4093);\n assertEquals(4093, javaCharStream0.getBeginColumn());\n }",
"void mo85415a(String str);",
"@Test(expected=MalformedNumberException.class)\n public void spacesInWeirdPlaces() throws MalformedNumberException {\n new RomanArabicConverter(\"1 4\");\n }",
"@Test\n public void testLatestCodeExtraction() {\n String normalText = \"§8> §b§o@YourTwitter\";\n String cutText = \"§8> §b§o@YourTwitterAccount\";\n Assert.assertEquals(\"§b§o\", stringUtils.lastFormattingCodesOf(normalText));\n Assert.assertEquals(\"§b§o\", stringUtils.lastFullFormattingCodesOf(cutText));\n }",
"void mo1934b(String str);",
"@Test(timeout = 4000)\n public void test019() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 91, 91);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn((-366), 1);\n int int0 = javaCharStream0.getLine();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals((-366), int0);\n }",
"private static String m60359b(String str, String str2, String str3) {\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 4 + String.valueOf(str2).length() + String.valueOf(str3).length());\n sb.append(str);\n sb.append(\"|T|\");\n sb.append(str2);\n sb.append(\"|\");\n sb.append(str3);\n return sb.toString();\n }",
"public void mo12310b(String str) {\n int a = m14928a();\n int d = C3205z0.INFO.mo12550d();\n }",
"C5727e mo33224a();",
"int getMid(int s, int e) {\n return s + (e - s) / 2;\n }",
"public char captureCodeFragment09(String s) {\r\n int charNum = 0;\r\n for (int i = 0; i < s.length(); i++) {\r\n charNum += s.charAt(i);\r\n }\r\n return s.length() == 0 ? '\\0' : (char) (charNum / s.length());\r\n }",
"public static String m151984a(C32890w wVar) {\n String i = wVar.mo132849i();\n String l = wVar.mo132852l();\n if (l == null) {\n return i;\n }\n return i + '?' + l;\n }",
"void mo5871a(String str);",
"public String mo38889c() {\n String trim = this.f30736g0.getText().toString().trim();\n return trim.length() == 5 ? trim.substring(3, 5) : \"\";\n }"
] | [
"0.5484231",
"0.544037",
"0.5397333",
"0.53771204",
"0.5343506",
"0.53121394",
"0.5307166",
"0.5289758",
"0.52786124",
"0.52604496",
"0.52574205",
"0.5253081",
"0.5251409",
"0.5244889",
"0.523923",
"0.5217615",
"0.521584",
"0.52144367",
"0.520983",
"0.52094036",
"0.52002454",
"0.51927036",
"0.51917464",
"0.5155836",
"0.51522255",
"0.51296246",
"0.5101315",
"0.50961506",
"0.507599",
"0.50749415",
"0.5073963",
"0.5068409",
"0.506818",
"0.50671476",
"0.50638163",
"0.50578326",
"0.5050676",
"0.50485563",
"0.5044913",
"0.50432724",
"0.5042176",
"0.5042134",
"0.50256395",
"0.5023086",
"0.50226307",
"0.5022414",
"0.5022349",
"0.5016256",
"0.50119716",
"0.50102645",
"0.499669",
"0.49929166",
"0.4989839",
"0.49884057",
"0.4978746",
"0.49777165",
"0.49751213",
"0.49666387",
"0.49645945",
"0.49639115",
"0.4962466",
"0.49597186",
"0.4956025",
"0.49552327",
"0.49534318",
"0.49437046",
"0.49423897",
"0.4935846",
"0.49328384",
"0.49324027",
"0.49314174",
"0.4931266",
"0.4930147",
"0.49298763",
"0.49252403",
"0.49222082",
"0.49217412",
"0.49183637",
"0.4914838",
"0.4910088",
"0.4908054",
"0.49036154",
"0.49031493",
"0.49019343",
"0.49012086",
"0.4896095",
"0.48943186",
"0.48924002",
"0.48866925",
"0.48822603",
"0.48819387",
"0.48787045",
"0.48762065",
"0.4872139",
"0.4867635",
"0.48673394",
"0.4867063",
"0.486621",
"0.4854156",
"0.48473537",
"0.4842431"
] | 0.0 | -1 |
/ 93: / 94: | public void setIdOrganizacion(int idOrganizacion)
/* 95: */ {
/* 96:126 */ this.idOrganizacion = idOrganizacion;
/* 97: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo9233aH() {\n }",
"public void method_4270() {}",
"public void mo21794S() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo21782G() {\n }",
"public void mo21786K() {\n }",
"public void mo21879u() {\n }",
"public void mo21789N() {\n }",
"public void mo21783H() {\n }",
"public void mo12628c() {\n }",
"public void mo21787L() {\n }",
"public void mo21779D() {\n }",
"public void mo21793R() {\n }",
"public void mo21780E() {\n }",
"public void mo21785J() {\n }",
"public void mo3749d() {\n }",
"private void m50366E() {\n }",
"public void mo2740a() {\n }",
"public void mo21795T() {\n }",
"public void mo21877s() {\n }",
"public void mo44053a() {\n }",
"private void kk12() {\n\n\t}",
"public void mo21792Q() {\n }",
"public void mo23813b() {\n }",
"public void mo21791P() {\n }",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public void mo21878t() {\n }",
"public void mo21788M() {\n }",
"public void mo3376r() {\n }",
"public void mo12930a() {\n }",
"C2841w mo7234g();",
"public void mo56167c() {\n }",
"public void mo97908d() {\n }",
"public void mo115190b() {\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public void mo38117a() {\n }",
"public void mo9848a() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo6944a() {\n }",
"public void mo9137b() {\n }",
"public void mo5097b() {\n }",
"public void mo97906c() {\n }",
"public void mo5099c() {\n }",
"public void mo23438b() {\n }",
"public void mo21781F() {\n }",
"public void mo8738a() {\n }",
"@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }",
"public void mo115188a() {\n }",
"public void mo55254a() {\n }",
"int getUnknown13();",
"dkj mo4367a(dkk dkk);",
"C1458cs mo7613iS();",
"void mo1943l();",
"public abstract String mo41086i();",
"public void mo21825b() {\n }",
"void mo12637b();",
"public void m23075a() {\n }",
"void mo57277b();",
"public final void mo7596sH(String str) {\n }",
"public void mo21784I() {\n }",
"public void mo4359a() {\n }",
"void mo57278c();",
"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 }",
"void mo3194r();",
"public void mo21800a() {\n }",
"public abstract int mo8526p();",
"void mo1493c();",
"public abstract C0690a mo9258k(String str);",
"void mo41086b();",
"public abstract String mo9239aw();",
"@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }",
"void mo41083a();",
"public void mo5248a() {\n }",
"public abstract CharSequence mo2161g();",
"abstract String mo1748c();",
"void mo9075h(String str, int i, int i2);",
"public abstract String mo118046b();",
"public void mo6081a() {\n }",
"public void mo3370l() {\n }",
"public abstract String mo13682d();",
"public void mo9241ay() {\n }",
"static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"@Override\n\tpublic void challenge9() {\n\n\t}",
"public void mo21880v() {\n }",
"C3579d mo19708e(String str) throws IOException;",
"C5727e mo33224a();",
"static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"public abstract String mo41079d();",
"private void m50367F() {\n }",
"public final void mo92082N() {\n }",
"public void mo2471e() {\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }",
"public void mo1403c() {\n }"
] | [
"0.62181723",
"0.61741114",
"0.608693",
"0.60841054",
"0.6036582",
"0.5991595",
"0.59792614",
"0.5979204",
"0.5967368",
"0.59491295",
"0.5947058",
"0.59424436",
"0.59405184",
"0.592786",
"0.5906787",
"0.5902277",
"0.58972645",
"0.5871897",
"0.58712167",
"0.5870962",
"0.5853541",
"0.58434826",
"0.58349794",
"0.5831486",
"0.58229405",
"0.5816122",
"0.5811192",
"0.57889855",
"0.57867944",
"0.57796746",
"0.5773195",
"0.5768326",
"0.576449",
"0.5759",
"0.5756856",
"0.57308793",
"0.57270515",
"0.5726298",
"0.5723287",
"0.5714904",
"0.56935865",
"0.5691751",
"0.5678429",
"0.5675017",
"0.56658435",
"0.5665583",
"0.56621575",
"0.56538093",
"0.564917",
"0.56407344",
"0.56318915",
"0.5622074",
"0.5620296",
"0.5599592",
"0.55922604",
"0.559205",
"0.55886376",
"0.5586749",
"0.5584118",
"0.558174",
"0.55772555",
"0.5575878",
"0.55754405",
"0.55754405",
"0.55754405",
"0.55754405",
"0.55754405",
"0.55754405",
"0.55754405",
"0.5573811",
"0.5568815",
"0.5567969",
"0.556597",
"0.55657625",
"0.5565547",
"0.55583894",
"0.5556391",
"0.5555991",
"0.5554202",
"0.55536675",
"0.55519354",
"0.55477667",
"0.5545385",
"0.5545239",
"0.55262095",
"0.5525429",
"0.5520874",
"0.55183405",
"0.5516661",
"0.55160403",
"0.55103636",
"0.55101466",
"0.55053955",
"0.55053836",
"0.55030286",
"0.55018044",
"0.5501726",
"0.55010873",
"0.55010706",
"0.54987687",
"0.54961777"
] | 0.0 | -1 |
/ 98: / 99: | public int getIdSucursal()
/* 100: */ {
/* 101:130 */ return this.idSucursal;
/* 102: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"int mo5882g(String str);",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public final void mo7596sH(String str) {\n }",
"void mo9075h(String str, int i, int i2);",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"String mo20731c();",
"int mo23349e(String str, String str2);",
"public static void main(String[] args) {\n\t\tDivideRepeatNumbr.divide(229, 990);\n\t\tSystem.out.println(DivideRepeatNumbr.perfectSubstring(\"1\", 1));\n\t}",
"Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"void mo1329d(String str, String str2);",
"String mo2801a(String str);",
"public String digit(String digit);",
"String divideAtWhite()[]{ return null; }",
"C12000e mo41087c(String str);",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"String mo21078i();",
"private String convert999(int num) {\r\n \t//return a number which is in 100th position\r\n \tStringBuilder str1= new StringBuilder(lowNames[num / ONE_HUNDRED]);\r\n \tstr1.append(SPACE);\r\n \tstr1.append(bigNames[0]);\r\n \tstr1.append(AND);\r\n \t\r\n \tStringBuilder str2=new StringBuilder(convert99(num % ONE_HUNDRED));\r\n \t\r\n\t\tif(num <= TWO_DIGIT_MAX_VALUE) {//check if number is lessthan or equal 99\r\n\t\t\treturn str2.toString();\r\n\t\t}else if(num % ONE_HUNDRED == ZERO) { //check if number is divisible by 100 and remainder is zero\r\n\t\t\treturn str1.toString();\r\n\t\t}\r\n\t\t\r\n\t\treturn str1.append(str2).toString();\r\n\t\t\r\n\t}",
"int mo54403a(String str, String str2);",
"public static void main(String[] args) {\n int a,b,c;\n int data;\n for (int i = 100; i < 999; i++) {\n\t\t\ta=i/100;//百位\n\t\t\tb=(i-a*100)/10;//十位\n\t\t\tc=i-100*a-10*b;//个位\n\t\t\tdata=a*a*a+b*b*b+c*c*c;\n\t\t\tif(data==i){\n\t\t\t\tSystem.out.println(\"水鲜花数字:\"+i);\n\t\t\t}\n\t\t}\n\t}",
"void mo5875b(String str, long j);",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"public abstract String mo24851a(String str);",
"void mo1935c(String str);",
"int mo23351i(String str, String str2);",
"int getAlphaMod(){\n return getPercentageValue(\"alphaMod\");\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"@Test(timeout = 4000)\n public void test086() throws Throwable {\n String string0 = SQLUtil.normalize(\"aT:7W`oI)N(jLl^oF<HQ\", false);\n assertEquals(\"aT : 7W ` oI) N (jLl ^ oF < HQ\", string0);\n }",
"int mo23353w(String str, String str2);",
"@Test\n public void NineAndMissExpected_90(){\n String input = \"9-9-9-9-9-9-9-9-9-9-\";\n assertEquals(game.scoreOfGame(input),90);\n }",
"public abstract C0690a mo9258k(String str);",
"void mo41089d(String str);",
"void mo12635a(String str);",
"private static boolean isHangulWithoutJamoT(char paramChar)\n/* */ {\n/* 324 */ paramChar = (char)(paramChar - 44032);\n/* 325 */ return (paramChar < '⮤') && (paramChar % '\\034' == 0);\n/* */ }",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }",
"int mo23347d(String str, String str2);",
"@Test\n public void allSpareAndLast_2_Expected_111(){\n String input = \"1/1/1/1/1/1/1/1/1/1/2\";\n assertEquals(game.scoreOfGame(input),111);\n }",
"String mo20730b();",
"C1111j mo5881f(String str);",
"public int mo36g() {\n return 4;\n }",
"int mo5885j(String str);",
"void mo5871a(String str);",
"Rule IndentChar() {\n return FirstOf(Letter(), Digit(), \".\", \"_\");\n }",
"private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }",
"C2841w mo7234g();",
"public int mo36g() {\n return 8;\n }",
"C0139e mo89b();",
"String mo38971b();",
"public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n XPathLexer xPathLexer0 = new XPathLexer(\":_]J_/L!uFQ7%)BrL\");\n Token token0 = xPathLexer0.minus();\n assertEquals(\":\", token0.getTokenText());\n assertEquals(6, token0.getTokenType());\n \n Token token1 = xPathLexer0.nextToken();\n assertEquals(\"_\", token1.getTokenText());\n assertEquals(15, token1.getTokenType());\n }",
"void mo88522a(String str);",
"void mo9697a(String str);",
"@Test\n public void testComp2()\n {\n System.out.println(\"comp\");\n String compString = \"D+M\";\n assertEquals(\"1000010\", N2TCode.comp(compString));\n }",
"void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }",
"public char get_floating_suffix();",
"public String toString(){ return \"DIV\";}",
"int mo23352v(String str, String str2);",
"String mo150a(String str);",
"void mo64942a(String str, long j, long j2);",
"void mo34677H(String str, int i, int i2);",
"private String m20344d(String str) {\n String valueOf = String.valueOf(Math.abs(str.hashCode() % 100));\n return this.f17416e + File.separator + valueOf;\n }",
"public int mo36g() {\n return 2;\n }",
"public abstract String division();",
"public void mo9233aH() {\n }",
"public static void main(String[] args) \n\t{\n\t\tString str = \"647mahesh\";\n\t\tint size = str.length();\n\t\tint i;\n\t\tfor (i = 0; i < size ; i++)\n\t\t{\n\t\t\tchar split = str.charAt(i);\n\t\t\tif ('0'<=split && split<='8')\n\t\t\tbreak;\n\t\t}\n\t\tString numeric = str.substring(0,i);\n\t\tString alphabets = str.substring(i);\n\t\tSystem.out.println(numeric);\n\t\tSystem.out.println(alphabets);\n\t}",
"public int mo80c() {\n return 7;\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"void mo37759a(String str);",
"java.lang.String getS9();",
"C8325a mo21498a(String str);",
"C3579d mo19708e(String str) throws IOException;",
"void mo3768a(String str);",
"private static String m31929a(String str) {\n String[] split = str.split(\"\\\\.\");\n String str2 = split.length > 0 ? split[split.length - 1] : \"\";\n return str2.length() > 100 ? str2.substring(0, 100) : str2;\n }",
"public int mo34973b() {\n return 48;\n }",
"int getNumCyc();",
"void mo87a(String str);",
"private String coreSet(String input)\n \t{\n \t\tString output=input+\"%20(M\"+input.substring(input.length()-2)+\")\";\n \t\treturn output;\n \t}",
"int mo5867a(String str, long j);",
"void mo85415a(String str);",
"public static void m10() {\r\n\tint size =4;\r\n\tfor(int i =size;i>=-size;i--) {\r\n\t\tchar ch ='A';\r\n\t\tfor(int j =size;j>=Math.abs(i);j-- ) {\r\n\t\t\tSystem.out.print(ch);\r\n\t\t\tch++;\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}\r\n}",
"public void mo23438b() {\n }",
"void mo13161c(String str, String str2);",
"String mo38972c();",
"String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }",
"void mo9058ad(String str, int i);",
"int lower();",
"public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}",
"C12000e mo41091f(String str);",
"void mo11024a(int i, int i2, String str);",
"String mo3176a(String str, String str2);",
"int mo9702b(String str, String str2, float f);",
"public abstract int mo9736c(int i);",
"@Test\n public void testLatestCodeExtraction() {\n String normalText = \"§8> §b§o@YourTwitter\";\n String cutText = \"§8> §b§o@YourTwitterAccount\";\n Assert.assertEquals(\"§b§o\", stringUtils.lastFormattingCodesOf(normalText));\n Assert.assertEquals(\"§b§o\", stringUtils.lastFullFormattingCodesOf(cutText));\n }",
"@Test(timeout = 4000)\n public void test05() throws Throwable {\n String string0 = SQLUtil.normalize(\" Y*-X>Nz.q@~K^o8Z]v\", true);\n assertEquals(\"Y * - X > Nz.q @ ~ K ^ o8Z ] v\", string0);\n }",
"public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n sb.append(1);\n sb.append(\"00\");\n sb.append(\"%\");\n sb.append(' ');\n sb.append('P');\n \n String createdString = sb.toString();\n System.out.println(\"createdString = \" + createdString);\n\n }",
"dkj mo4367a(dkk dkk);",
"public void mo23980a(int i, String str) {\n }",
"public void mo9848a() {\n }"
] | [
"0.5628288",
"0.56273305",
"0.5611604",
"0.55347496",
"0.55297834",
"0.5511033",
"0.5477421",
"0.5458874",
"0.5451964",
"0.5409967",
"0.54018193",
"0.5385784",
"0.5385181",
"0.53776425",
"0.5370743",
"0.53645456",
"0.5363271",
"0.53480506",
"0.5309513",
"0.52991766",
"0.5295091",
"0.5279172",
"0.52683526",
"0.52468497",
"0.52430373",
"0.5240907",
"0.52386475",
"0.52381665",
"0.5227871",
"0.522781",
"0.5223702",
"0.52140975",
"0.5207703",
"0.5203386",
"0.519753",
"0.51948434",
"0.5192691",
"0.51832616",
"0.5182514",
"0.5171588",
"0.5162781",
"0.515369",
"0.51530343",
"0.51508546",
"0.5136536",
"0.5136517",
"0.5130748",
"0.5128496",
"0.5118604",
"0.5115821",
"0.51070297",
"0.51063085",
"0.5099617",
"0.5094211",
"0.50893015",
"0.50857955",
"0.50815946",
"0.508074",
"0.5076788",
"0.5074584",
"0.5070896",
"0.5070767",
"0.50693184",
"0.50679815",
"0.50663686",
"0.5064439",
"0.50619084",
"0.50585985",
"0.50524205",
"0.5048319",
"0.50462204",
"0.5042597",
"0.5039027",
"0.5031969",
"0.5028582",
"0.5026201",
"0.5020282",
"0.50190216",
"0.5018777",
"0.50174004",
"0.50129",
"0.5005813",
"0.499981",
"0.4997494",
"0.49971846",
"0.49956203",
"0.49954912",
"0.49948558",
"0.4994626",
"0.49741405",
"0.4972912",
"0.49697086",
"0.49687663",
"0.49656364",
"0.49640882",
"0.49606216",
"0.49543127",
"0.49521774",
"0.49473035",
"0.49462846",
"0.4945596"
] | 0.0 | -1 |
/ 103: / 104: | public void setIdSucursal(int idSucursal)
/* 105: */ {
/* 106:134 */ this.idSucursal = idSucursal;
/* 107: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String mo20731c();",
"int getUnknown13();",
"public void method_4270() {}",
"String mo10312id();",
"String mo131984a();",
"public interface C0939c {\n }",
"public void mo12628c() {\n }",
"void mo303a(C0237a c0237a, String str, String str2, String str3);",
"public abstract String mo11611b();",
"String mo20730b();",
"abstract String mo1748c();",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public abstract String mo118046b();",
"String mo20732d();",
"void mo3314b(String str);",
"private static int m14200a(String str, String str2, String str3) {\n if (\"ver\".equals(str)) {\n return m14199a(str2, str3);\n }\n if (\"datetime\".equals(str)) {\n return m14203b(str2, str3);\n }\n return -100;\n }",
"public abstract String mo41079d();",
"void mo8713dV(String str);",
"public abstract String mo41086i();",
"java.lang.String getField1697();",
"public int arn() {\n return 383;\n }",
"public void mo12306a(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"C2451d mo3408a(C2457e c2457e);",
"String mo21078i();",
"String mo2801a(String str);",
"C12000e mo41087c(String str);",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"void mo1582a(String str, C1329do c1329do);",
"long getUnknown72();",
"private static int m28711a(C9572w wVar) {\n int i = -1;\n int i2 = 0;\n while (i == -1) {\n i2 = wVar.mo24688c();\n String k = wVar.mo24700k();\n i = k == null ? 0 : \"STYLE\".equals(k) ? 2 : k.startsWith(\"NOTE\") ? 1 : 3;\n }\n wVar.mo24693e(i2);\n return i;\n }",
"String mo38971b();",
"public static int getOrdinal() {\n\treturn 3;\n }",
"void mo1935c(String str);",
"include<stdio.h>\nint main()\n{\n printf(\"5103\");\n return 0;\n}",
"public abstract String mo10149a();",
"public void mo91713c(String str) {\n super.mo91713c(str);\n mo92080L();\n m116772S();\n }",
"static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }",
"void mo1934b(String str);",
"public static asw m47155c() {\n return zzfkz;\n }",
"public void mo21879u() {\n }",
"java.lang.String getField1096();",
"byte mo30283c();",
"public int getExtendedID()\r\n/* 50: */ {\r\n/* 51: 39 */ return 0;\r\n/* 52: */ }",
"public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }",
"C8325a mo21498a(String str);",
"@Override\r\n\tprotected Integer deriveLower() {\r\n\t return 0;\r\n\t}",
"long getUnknown12();",
"void mo12635a(String str);",
"java.lang.String getField1696();",
"java.lang.String getField1028();",
"java.lang.String getField1904();",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo12930a() {\n }",
"void mo41089d(String str);",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"public static ald m2623b() {\n return zzffc;\n }",
"public abstract C14407a mo11606a(String str);",
"String mo42332a();",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }",
"String mo38972c();",
"java.lang.String getField1252();",
"java.lang.String getField1035();",
"String getCmt();",
"java.lang.String getField1665();",
"public int method_113() {\r\n return 0;\r\n }",
"void mo1507n();",
"protected int mo3987c() {\n return -1;\n }",
"String mo30285c(long j);",
"java.lang.String getField1297();",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public abstract String mo13682d();",
"static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }",
"C20241o mo54456u(int i);",
"C3579d mo19708e(String str) throws IOException;",
"java.lang.String getField1626();",
"void mo12637b();",
"public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }",
"java.lang.String getField1897();",
"public abstract int mo9732a();",
"public String mo1983z() throws cf {\r\n int E = m10257E();\r\n m10274f(E);\r\n if (E == 0) {\r\n return bi_常量类.f6358b_空串;\r\n }\r\n try {\r\n if (this.g.mo1996h() < E) {\r\n return new String(m10273e(E), \"UTF-8\");\r\n }\r\n String str = new String(this.g.mo1994f(), this.g.mo1995g(), E, \"UTF-8\");\r\n this.g.mo1993a(E);\r\n return str;\r\n } catch (UnsupportedEncodingException e) {\r\n throw new cf(\"UTF-8 not supported!\");\r\n }\r\n }",
"void mo4873a(C4718l c4718l);",
"java.lang.String getField1097();",
"abstract String mo1747a(String str);",
"java.lang.String getField1993();",
"java.lang.String getField1883();",
"java.lang.String getField1127();",
"java.lang.String getField1996();",
"java.lang.String getField1093();",
"public int method_2031() {\r\n return this.field_1790;\r\n }",
"public ahb method_408() {\r\n return this.field_2990;\r\n }",
"void mo1932a(String str);",
"java.lang.String getField1896();",
"public void mo1403c() {\n }",
"java.lang.String getField1637();",
"public void mo9233aH() {\n }",
"C2841w mo7234g();",
"C5727e mo33224a();",
"public abstract CharSequence mo2160e();",
"String mo1889a(String str, String str2, String str3, String str4);",
"java.lang.String getField1083();",
"java.lang.String getField1128();"
] | [
"0.58423746",
"0.5665333",
"0.5561753",
"0.55429715",
"0.5497892",
"0.5480745",
"0.54734147",
"0.54728633",
"0.54487705",
"0.5423911",
"0.5370942",
"0.53389233",
"0.5336923",
"0.5329684",
"0.53224355",
"0.5322351",
"0.531306",
"0.5310239",
"0.5308558",
"0.5297218",
"0.52928287",
"0.52919656",
"0.52803093",
"0.52795273",
"0.5266984",
"0.52659386",
"0.526099",
"0.52546203",
"0.52397484",
"0.52395886",
"0.5235134",
"0.5230519",
"0.5223075",
"0.52219206",
"0.522108",
"0.5218206",
"0.5212674",
"0.5209215",
"0.5195979",
"0.5195731",
"0.518294",
"0.51804936",
"0.51780695",
"0.5177213",
"0.5176187",
"0.5173021",
"0.5160358",
"0.51580805",
"0.5154887",
"0.5151254",
"0.5127961",
"0.51251495",
"0.51211464",
"0.5120758",
"0.51173687",
"0.5117185",
"0.51127905",
"0.51122206",
"0.51083326",
"0.5106789",
"0.5103986",
"0.51007974",
"0.5099858",
"0.5096347",
"0.50930154",
"0.50913346",
"0.50875884",
"0.50844306",
"0.50821817",
"0.50814337",
"0.5077978",
"0.50754064",
"0.5074483",
"0.5073921",
"0.5072618",
"0.50715524",
"0.5070187",
"0.5068351",
"0.50672984",
"0.5066933",
"0.50668365",
"0.5059376",
"0.5059132",
"0.50586563",
"0.50563407",
"0.50539476",
"0.5053186",
"0.5053103",
"0.5051374",
"0.5048655",
"0.5046761",
"0.50467604",
"0.5039625",
"0.5036195",
"0.50361776",
"0.50361645",
"0.50344354",
"0.5033548",
"0.5028183",
"0.5024579",
"0.50221026"
] | 0.0 | -1 |
/ 108: / 109: | public boolean isActivo()
/* 110: */ {
/* 111:138 */ return this.activo;
/* 112: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo36g() {\n return 8;\n }",
"public int mo36g() {\n return 4;\n }",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"public int mo36g() {\n return 2;\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"public void mo133108l() {\n mo133081a(1000);\n }",
"public static int m8668h() {\n return 8;\n }",
"public abstract Integer mo36210m();",
"long getUnknown72();",
"String mo30285c(long j);",
"public void mo12628c() {\n }",
"public void mo21783H() {\n }",
"public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }",
"public static int m22583h(long j) {\n return 8;\n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"private static String m10f() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n return stringBuilder.toString();\n }",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"public int mo9232aG() {\n return 0;\n }",
"public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }",
"public final void mo1308a() {\n int i = this.f2309d;\n int i2 = i != Integer.MIN_VALUE ? i + this.f2308c : this.f2307b;\n this.f2309d = i2;\n String str = this.f2306a;\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11);\n sb.append(str);\n sb.append(i2);\n this.f2310e = sb.toString();\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"long getUnknown12();",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public long mo9743h() {\n return mo9760w();\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public abstract long mo9229aD();",
"private final int m136460b() {\n return DisplayUtils.m87171b(getContext(), mo118763m() ? 20.0f : 12.0f);\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"C5727e mo33224a();",
"@Override // com.beloo.widget.chipslayoutmanager.p295d.AbstractLayouter\n /* renamed from: m */\n public void mo21685m() {\n int c = this.f10947d - mo21667c();\n this.f10948e = 0;\n for (Pair pair : this.f10944a) {\n Rect rect = (Rect) pair.first;\n rect.left -= c;\n rect.right -= c;\n this.f10948e = Math.max(rect.right, this.f10948e);\n this.f10946c = Math.min(this.f10946c, rect.top);\n this.f10945b = Math.max(this.f10945b, rect.bottom);\n }\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"public static int m8655e() {\n return 8;\n }",
"private static int m28711a(C9572w wVar) {\n int i = -1;\n int i2 = 0;\n while (i == -1) {\n i2 = wVar.mo24688c();\n String k = wVar.mo24700k();\n i = k == null ? 0 : \"STYLE\".equals(k) ? 2 : k.startsWith(\"NOTE\") ? 1 : 3;\n }\n wVar.mo24693e(i2);\n return i;\n }",
"public View mo15792hr() {\n return this.f3879JJ;\n }",
"C3676k mo12649b();",
"public abstract long mo9748m();",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"void mo304a(C0366h c0366h);",
"C7904c mo24084a();",
"public void mo6081a() {\n }",
"public long mo9743h() {\n return mo9773w();\n }",
"private int m9194b(ec ecVar, int i) {\n int i2 = 0;\n int largeurColonneZR = this.this$0.b.getLargeurColonneZR();\n if (!this.this$0.b.isHorizontale()) {\n return this.this$0.b.getLargeurColonneZR();\n }\n int i3;\n boolean z = this.f3906c;\n if (ecVar.m9111d()) {\n Integer num = (Integer) ecVar.m9123k(10);\n if (num != null) {\n i2 = num.intValue();\n i3 = 0;\n } else {\n boolean z2 = z;\n i2 = largeurColonneZR;\n }\n } else {\n i3 = 0;\n }\n int d = this.this$0.b.m1512d();\n if (d > 0 && i > d) {\n i2 = d;\n }\n m9195a(i2, i);\n if (i3 == 0) {\n return i2;\n }\n i3 = C1503b.m10444b(this.a, true) + this.this$0.b.m1515j();\n if (d <= 0 || i3 <= d) {\n d = i3;\n }\n i3 = this.this$0.b.getMinCellWidth();\n if (d >= i3) {\n i3 = d;\n }\n if (i3 == i2) {\n return i2;\n }\n m9195a(i3, i);\n return i3;\n }",
"public long mo9743h() {\n return mo9784w();\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"void mo1506m();",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public static String m13823m() {\n return f12476h;\n }",
"void mo33732Px();",
"public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }",
"public abstract long mo9755t();",
"public int mo12196h() {\n return this.f10961p.f11005m;\n }",
"void mo12637b();",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), this.f102568b.videoHeight());\n if (a) {\n i = this.f102568b.videoWidth();\n } else {\n int[] k = C36964i.m118935k();\n if (k != null) {\n i3 = k[0];\n } else {\n i3 = 720;\n }\n i = m125903a(C7551d.m23567d(this.f102568b.videoWidth(), i3));\n }\n this.f102569c = i;\n if (a) {\n i2 = this.f102568b.videoHeight();\n } else {\n double d = (double) this.f102569c;\n Double.isNaN(d);\n i2 = (int) (Math.ceil(d / 9.0d) * 16.0d);\n }\n this.f102570d = i2;\n return;\n }\n if (this.f102568b.mVideoCanvasWidth > 0) {\n i4 = this.f102568b.mVideoCanvasWidth;\n } else {\n i4 = this.f102568b.videoWidth();\n }\n this.f102569c = i4;\n if (this.f102568b.mVideoCanvasHeight > 0) {\n i5 = this.f102568b.mVideoCanvasHeight;\n } else {\n i5 = this.f102568b.videoHeight();\n }\n this.f102570d = i5;\n }",
"public void mo21787L() {\n }",
"private static int[] m10288a(C9383t tVar) {\n int intValue = ((Integer) LiveSettingKeys.STREAM_DEFINITION_LEVEL.mo10240a()).intValue();\n if (intValue > 0 && intValue <= f8023g.length) {\n return f8023g[intValue - 1];\n }\n return new int[]{tVar.mo23063c(), tVar.mo23064d(), tVar.mo23065e(), tVar.f25784h};\n }",
"public void mo21782G() {\n }",
"public void mo21786K() {\n }",
"public void mo12202n() {\n this.f10959n = -1;\n }",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"private void m3932O() {\n int e = mo4732e();\n for (int i = 0; i < e; i++) {\n C0780b bVar = (C0780b) mo4729d(i).getLayoutParams();\n int b = bVar.mo4772b();\n this.f3123L.put(b, bVar.mo4310h());\n this.f3124M.put(b, bVar.mo4309g());\n }\n }",
"public static int m22579g(long j) {\n return 8;\n }",
"public void mo21794S() {\n }",
"public void mo9769i(int r9) {\n /*\n r8 = this;\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r0 = r0 - r1\n if (r9 > r0) goto L_0x000e\n if (r9 < 0) goto L_0x000e\n int r1 = r1 + r9\n r8.f9082i = r1\n goto L_0x0097\n L_0x000e:\n if (r9 < 0) goto L_0x00a2\n int r0 = r8.f9084k\n int r1 = r8.f9082i\n int r2 = r0 + r1\n int r3 = r2 + r9\n int r4 = r8.f9085l\n if (r3 > r4) goto L_0x0098\n q.b.c.a.j0.a.k$c$a r0 = r8.f9086m\n r3 = 0\n if (r0 != 0) goto L_0x007d\n r8.f9084k = r2\n int r0 = r8.f9080g\n int r0 = r0 - r1\n r8.f9080g = r3\n r8.f9082i = r3\n r3 = r0\n L_0x002b:\n if (r3 >= r9) goto L_0x0075\n int r0 = r9 - r3\n java.io.InputStream r1 = r8.f9078e // Catch:{ all -> 0x006b }\n long r4 = (long) r0 // Catch:{ all -> 0x006b }\n long r0 = r1.skip(r4) // Catch:{ all -> 0x006b }\n r6 = 0\n int r2 = (r0 > r6 ? 1 : (r0 == r6 ? 0 : -1))\n if (r2 < 0) goto L_0x0046\n int r4 = (r0 > r4 ? 1 : (r0 == r4 ? 0 : -1))\n if (r4 > 0) goto L_0x0046\n if (r2 != 0) goto L_0x0043\n goto L_0x0075\n L_0x0043:\n int r0 = (int) r0 // Catch:{ all -> 0x006b }\n int r3 = r3 + r0\n goto L_0x002b\n L_0x0046:\n java.lang.IllegalStateException r9 = new java.lang.IllegalStateException // Catch:{ all -> 0x006b }\n java.lang.StringBuilder r2 = new java.lang.StringBuilder // Catch:{ all -> 0x006b }\n r2.<init>() // Catch:{ all -> 0x006b }\n java.io.InputStream r4 = r8.f9078e // Catch:{ all -> 0x006b }\n java.lang.Class r4 = r4.getClass() // Catch:{ all -> 0x006b }\n r2.append(r4) // Catch:{ all -> 0x006b }\n java.lang.String r4 = \"#skip returned invalid result: \"\n r2.append(r4) // Catch:{ all -> 0x006b }\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = \"\\nThe InputStream implementation is buggy.\"\n r2.append(r0) // Catch:{ all -> 0x006b }\n java.lang.String r0 = r2.toString() // Catch:{ all -> 0x006b }\n r9.<init>(r0) // Catch:{ all -> 0x006b }\n throw r9 // Catch:{ all -> 0x006b }\n L_0x006b:\n r9 = move-exception\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n throw r9\n L_0x0075:\n int r0 = r8.f9084k\n int r0 = r0 + r3\n r8.f9084k = r0\n r8.mo9764A()\n L_0x007d:\n if (r3 >= r9) goto L_0x0097\n int r0 = r8.f9080g\n int r1 = r8.f9082i\n int r1 = r0 - r1\n r8.f9082i = r0\n r0 = 1\n L_0x0088:\n r8.mo9768h(r0)\n int r2 = r9 - r1\n int r3 = r8.f9080g\n if (r2 <= r3) goto L_0x0095\n int r1 = r1 + r3\n r8.f9082i = r3\n goto L_0x0088\n L_0x0095:\n r8.f9082i = r2\n L_0x0097:\n return\n L_0x0098:\n int r4 = r4 - r0\n int r4 = r4 - r1\n r8.mo9769i(r4)\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8181h()\n throw r9\n L_0x00a2:\n q.b.c.a.j0.a.c0 r9 = p213q.p217b.p301c.p302a.p311j0.p312a.C3606c0.m8179f()\n throw r9\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3659c.mo9769i(int):void\");\n }",
"public void mo21877s() {\n }",
"public void mo21890a() {\n mo21891a(this.f24566d);\n }",
"public int mo34973b() {\n return 48;\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public void mo21788M() {\n }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"public abstract long mo9743h();",
"private void m20210g() {\n C8466a aVar = this.f18650f;\n if (aVar != null && this.f18666v > 0) {\n aVar.mo25957a(this.f18645a.mo25936a(), this.f18666v);\n this.f18666v = 0;\n }\n }",
"public void mo30767z() {\n C8178t3.m39123c(entrySet().iterator());\n }",
"public abstract long mo24409b();",
"private static int m31087b(zzss zzss) {\n int a = zzss.mo32193a(4);\n if (a == 15) {\n return zzss.mo32193a(24);\n }\n zzsk.m31080a(a < 13);\n return f29311b[a];\n }",
"public int mo80c() {\n return 7;\n }",
"public abstract long mo9746k();",
"public int writeTLB(int va){\n int sp = va >> 9;\n int result = buffer.lookup(sp);\n if(result==-1){\n result = write(va);\n if(result>0){\n buffer.addNew(sp, result-(va%(int)(Math.pow(2,9))));\n System.out.print(\"m \");\n } \n return result;\n }\n else{\n System.out.print(\"h \");\n return result + (va%(int)(Math.pow(2,9)));\n }\n }",
"private void normalGmtStringToMinutes() {\n int i = Integer.parseInt(gmtString.substring(4, 6));\n offsetMinutes = i * 60;\n i = Integer.parseInt(gmtString.substring(7));\n offsetMinutes += i;\n if (gmtString.charAt(3) == MINUS) {\n offsetMinutes *= -1;\n }\n }",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public final synchronized Map<String, String> m108w() {\n Map<String, String> map;\n if (this.f112Y.size() <= 0) {\n map = null;\n } else {\n map = new HashMap(this.f112Y);\n }\n return map;\n }",
"private float m4812h(int i, float f) {\n return (i == 8388613 || i == 3) ? (((float) this.f6612t) - f) - ((float) this.f6595c.getDrawable().getIntrinsicWidth()) : f;\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"public void mo21879u() {\n }",
"long mo20406a();",
"public abstract int mo9754s();",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"public void mo9233aH() {\n }",
"public void mo21878t() {\n }",
"C2841w mo7234g();",
"public int mo27008h() {\n TextView textView = this.f24577q;\n if (textView != null) {\n return textView.getCurrentTextColor();\n }\n return -1;\n }",
"public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }",
"public int m2706g() {\n return ((Integer) this.f2439a.m2666a(ea.bs)).intValue();\n }"
] | [
"0.6037383",
"0.57555765",
"0.5660305",
"0.5645482",
"0.55870074",
"0.55654705",
"0.5563369",
"0.5562695",
"0.5555647",
"0.55496514",
"0.5537882",
"0.5533073",
"0.5492722",
"0.5465368",
"0.54617906",
"0.5450966",
"0.5429601",
"0.542803",
"0.5392741",
"0.53878284",
"0.5384824",
"0.5384053",
"0.53737277",
"0.53695154",
"0.5364166",
"0.5352656",
"0.53498197",
"0.53463703",
"0.53443116",
"0.53386897",
"0.5323837",
"0.5322577",
"0.532222",
"0.531661",
"0.5315773",
"0.5315202",
"0.53135896",
"0.5313401",
"0.5308163",
"0.530422",
"0.5297389",
"0.5286723",
"0.5286076",
"0.52855",
"0.52838784",
"0.5277264",
"0.5272694",
"0.5272139",
"0.5268834",
"0.5268259",
"0.52559114",
"0.5253328",
"0.52452224",
"0.5242641",
"0.5241294",
"0.5240332",
"0.5239646",
"0.52296674",
"0.522862",
"0.5227579",
"0.52219164",
"0.5210157",
"0.5208867",
"0.5205952",
"0.52058655",
"0.52035475",
"0.52016836",
"0.520103",
"0.5198657",
"0.5197614",
"0.51956797",
"0.519339",
"0.5192414",
"0.51917124",
"0.5190208",
"0.5181303",
"0.51801854",
"0.5178358",
"0.5174508",
"0.5173356",
"0.5172791",
"0.5164993",
"0.5164689",
"0.51620066",
"0.5157339",
"0.5155772",
"0.5152687",
"0.51495737",
"0.51458573",
"0.51449776",
"0.51433045",
"0.5140737",
"0.51367664",
"0.5132474",
"0.51320696",
"0.5128923",
"0.5128589",
"0.51283437",
"0.5127627",
"0.51255023",
"0.5118242"
] | 0.0 | -1 |
/ 113: / 114: | public void setActivo(boolean activo)
/* 115: */ {
/* 116:142 */ this.activo = activo;
/* 117: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo12628c() {\n }",
"C2841w mo7234g();",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"C2451d mo3408a(C2457e c2457e);",
"C5727e mo33224a();",
"public void method_4270() {}",
"public void mo21782G() {\n }",
"C1458cs mo7613iS();",
"public abstract String mo11611b();",
"public int method_113() {\r\n return 0;\r\n }",
"public void mo21787L() {\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"String mo20731c();",
"C15430g mo56154a();",
"public void mo21794S() {\n }",
"public void mo21789N() {\n }",
"public void mo9233aH() {\n }",
"void mo12637b();",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void mo21786K() {\n }",
"public void mo21783H() {\n }",
"private void m50366E() {\n }",
"public void mo56167c() {\n }",
"public void mo38117a() {\n }",
"public abstract String mo118046b();",
"void mo57278c();",
"void mo4873a(C4718l c4718l);",
"private void kk12() {\n\n\t}",
"abstract String mo1748c();",
"public void mo12930a() {\n }",
"public void mo115190b() {\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"public void mo21779D() {\n }",
"public void mo21879u() {\n }",
"C7904c mo24084a();",
"public void mo21780E() {\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"void mo4874b(C4718l c4718l);",
"public int method_2436() {\r\n return 16;\r\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"C12017a mo41088c();",
"void mo304a(C0366h c0366h);",
"public abstract CharSequence mo2161g();",
"public void mo21785J() {\n }",
"public void mo9848a() {\n }",
"public void mo21877s() {\n }",
"public void mo115188a() {\n }",
"public final void mo11687c() {\n }",
"public void mo21791P() {\n }",
"public void mo21788M() {\n }",
"public void mo21793R() {\n }",
"public void mo2740a() {\n }",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"public void mo21792Q() {\n }",
"@Override\n\tpublic void challenge11() {\n\n\t}",
"void mo57277b();",
"C12000e mo41087c(String str);",
"private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }",
"public int mo9232aG() {\n return 0;\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public void mo3749d() {\n }",
"public void mo23813b() {\n }",
"void mo8712a(C9714a c9714a);",
"public void mo55254a() {\n }",
"private void a(String paramString, boolean paramBoolean)\r\n/* 282: */ {\r\n/* 283:293 */ for (int i1 = 0; i1 < paramString.length(); i1++)\r\n/* 284: */ {\r\n/* 285:294 */ char c1 = paramString.charAt(i1);\r\n/* 286: */ int i2;\r\n/* 287: */ int i3;\r\n/* 288:296 */ if ((c1 == '§') && (i1 + 1 < paramString.length()))\r\n/* 289: */ {\r\n/* 290:297 */ i2 = \"0123456789abcdefklmnor\".indexOf(paramString.toLowerCase().charAt(i1 + 1));\r\n/* 291:299 */ if (i2 < 16)\r\n/* 292: */ {\r\n/* 293:300 */ this.r = false;\r\n/* 294:301 */ this.s = false;\r\n/* 295:302 */ this.v = false;\r\n/* 296:303 */ this.u = false;\r\n/* 297:304 */ this.t = false;\r\n/* 298:305 */ if ((i2 < 0) || (i2 > 15)) {\r\n/* 299:306 */ i2 = 15;\r\n/* 300: */ }\r\n/* 301:309 */ if (paramBoolean) {\r\n/* 302:310 */ i2 += 16;\r\n/* 303: */ }\r\n/* 304:313 */ i3 = this.f[i2];\r\n/* 305:314 */ this.q = i3;\r\n/* 306:315 */ cjm.c((i3 >> 16) / 255.0F, (i3 >> 8 & 0xFF) / 255.0F, (i3 & 0xFF) / 255.0F, this.p);\r\n/* 307: */ }\r\n/* 308:316 */ else if (i2 == 16)\r\n/* 309: */ {\r\n/* 310:317 */ this.r = true;\r\n/* 311: */ }\r\n/* 312:318 */ else if (i2 == 17)\r\n/* 313: */ {\r\n/* 314:319 */ this.s = true;\r\n/* 315: */ }\r\n/* 316:320 */ else if (i2 == 18)\r\n/* 317: */ {\r\n/* 318:321 */ this.v = true;\r\n/* 319: */ }\r\n/* 320:322 */ else if (i2 == 19)\r\n/* 321: */ {\r\n/* 322:323 */ this.u = true;\r\n/* 323: */ }\r\n/* 324:324 */ else if (i2 == 20)\r\n/* 325: */ {\r\n/* 326:325 */ this.t = true;\r\n/* 327: */ }\r\n/* 328:326 */ else if (i2 == 21)\r\n/* 329: */ {\r\n/* 330:327 */ this.r = false;\r\n/* 331:328 */ this.s = false;\r\n/* 332:329 */ this.v = false;\r\n/* 333:330 */ this.u = false;\r\n/* 334:331 */ this.t = false;\r\n/* 335: */ \r\n/* 336:333 */ cjm.c(this.m, this.n, this.o, this.p);\r\n/* 337: */ }\r\n/* 338:336 */ i1++;\r\n/* 339: */ }\r\n/* 340: */ else\r\n/* 341: */ {\r\n/* 342:340 */ i2 = \"\".indexOf(c1);\r\n/* 343:342 */ if ((this.r) && (i2 != -1))\r\n/* 344: */ {\r\n/* 345: */ do\r\n/* 346: */ {\r\n/* 347:345 */ i3 = this.b.nextInt(this.d.length);\r\n/* 348:346 */ } while (this.d[i2] != this.d[i3]);\r\n/* 349:347 */ i2 = i3;\r\n/* 350: */ }\r\n/* 351:353 */ float f1 = this.k ? 0.5F : 1.0F;\r\n/* 352:354 */ int i4 = ((c1 == 0) || (i2 == -1) || (this.k)) && (paramBoolean) ? 1 : 0;\r\n/* 353:356 */ if (i4 != 0)\r\n/* 354: */ {\r\n/* 355:357 */ this.i -= f1;\r\n/* 356:358 */ this.j -= f1;\r\n/* 357: */ }\r\n/* 358:360 */ float f2 = a(i2, c1, this.t);\r\n/* 359:361 */ if (i4 != 0)\r\n/* 360: */ {\r\n/* 361:362 */ this.i += f1;\r\n/* 362:363 */ this.j += f1;\r\n/* 363: */ }\r\n/* 364:366 */ if (this.s)\r\n/* 365: */ {\r\n/* 366:367 */ this.i += f1;\r\n/* 367:368 */ if (i4 != 0)\r\n/* 368: */ {\r\n/* 369:369 */ this.i -= f1;\r\n/* 370:370 */ this.j -= f1;\r\n/* 371: */ }\r\n/* 372:372 */ a(i2, c1, this.t);\r\n/* 373:373 */ this.i -= f1;\r\n/* 374:374 */ if (i4 != 0)\r\n/* 375: */ {\r\n/* 376:375 */ this.i += f1;\r\n/* 377:376 */ this.j += f1;\r\n/* 378: */ }\r\n/* 379:378 */ f2 += 1.0F;\r\n/* 380: */ }\r\n/* 381: */ ckx localckx;\r\n/* 382: */ VertexBuffer localciv;\r\n/* 383:381 */ if (this.v)\r\n/* 384: */ {\r\n/* 385:382 */ localckx = ckx.getInstance();\r\n/* 386:383 */ localciv = localckx.getBuffer();\r\n/* 387:384 */ cjm.x();\r\n/* 388:385 */ localciv.begin();\r\n/* 389:386 */ localciv.addVertex(this.i, this.j + this.a / 2, 0.0D);\r\n/* 390:387 */ localciv.addVertex(this.i + f2, this.j + this.a / 2, 0.0D);\r\n/* 391:388 */ localciv.addVertex(this.i + f2, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 392:389 */ localciv.addVertex(this.i, this.j + this.a / 2 - 1.0F, 0.0D);\r\n/* 393:390 */ localckx.draw();\r\n/* 394:391 */ cjm.w();\r\n/* 395: */ }\r\n/* 396:394 */ if (this.u)\r\n/* 397: */ {\r\n/* 398:395 */ localckx = ckx.getInstance();\r\n/* 399:396 */ localciv = localckx.getBuffer();\r\n/* 400:397 */ cjm.x();\r\n/* 401:398 */ localciv.begin();\r\n/* 402:399 */ int i5 = this.u ? -1 : 0;\r\n/* 403:400 */ localciv.addVertex(this.i + i5, this.j + this.a, 0.0D);\r\n/* 404:401 */ localciv.addVertex(this.i + f2, this.j + this.a, 0.0D);\r\n/* 405:402 */ localciv.addVertex(this.i + f2, this.j + this.a - 1.0F, 0.0D);\r\n/* 406:403 */ localciv.addVertex(this.i + i5, this.j + this.a - 1.0F, 0.0D);\r\n/* 407:404 */ localckx.draw();\r\n/* 408:405 */ cjm.w();\r\n/* 409: */ }\r\n/* 410:408 */ this.i += (int)f2;\r\n/* 411: */ }\r\n/* 412: */ }\r\n/* 413: */ }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public abstract CharSequence mo2160e();",
"void mo12638c();",
"public abstract String mo13682d();",
"public int arn() {\n return 383;\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"String mo20730b();",
"int getUnknown13();",
"public abstract String mo41086i();",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"long mo1685a(C2369e c2369e);",
"void mo72114c();",
"public void mo21878t() {\n }",
"public int mo36g() {\n return 4;\n }",
"public int mo1534c() {\n return 2;\n }",
"C45321i mo90380a();",
"String mo30285c(long j);",
"public void mo1403c() {\n }",
"public abstract int mo8526p();",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n String string0 = SQLUtil.normalize(\"^PcBSW[==qn/g\", true);\n assertEquals(\"^ PcBSW [ = = qn / g\", string0);\n }",
"String mo21078i();",
"public void mo97906c() {\n }",
"public int mo36g() {\n return 2;\n }",
"public int mo36g() {\n return 8;\n }",
"String mo38971b();",
"public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }",
"public void mo8738a() {\n }"
] | [
"0.62958676",
"0.62438715",
"0.6053574",
"0.60032374",
"0.5927514",
"0.5924819",
"0.5890361",
"0.5885106",
"0.58790886",
"0.5878681",
"0.58437216",
"0.58148414",
"0.57902575",
"0.5783843",
"0.5774818",
"0.5770096",
"0.5767558",
"0.5760623",
"0.5732513",
"0.5719069",
"0.5717983",
"0.57158387",
"0.571507",
"0.57120013",
"0.57119554",
"0.57050973",
"0.5703986",
"0.56849295",
"0.56772906",
"0.5675864",
"0.5674067",
"0.56700116",
"0.5666482",
"0.56637627",
"0.56533545",
"0.5651584",
"0.5650458",
"0.56489956",
"0.56413233",
"0.56402475",
"0.56351393",
"0.56175107",
"0.561717",
"0.56077826",
"0.55997753",
"0.55928963",
"0.5591934",
"0.5591412",
"0.5591004",
"0.5589141",
"0.5582421",
"0.55777955",
"0.5572416",
"0.5566391",
"0.55648303",
"0.5562275",
"0.5562009",
"0.5558878",
"0.55532247",
"0.55528635",
"0.5549589",
"0.55460507",
"0.5538005",
"0.553771",
"0.55317664",
"0.5528808",
"0.5526612",
"0.5524405",
"0.55217826",
"0.55217826",
"0.55217826",
"0.55217826",
"0.55217826",
"0.55217826",
"0.55217826",
"0.5517048",
"0.55141443",
"0.5510518",
"0.5502635",
"0.5500357",
"0.5497083",
"0.54930496",
"0.5476247",
"0.54753137",
"0.5474218",
"0.5474094",
"0.54701406",
"0.5465071",
"0.54632443",
"0.54572004",
"0.5451393",
"0.5449827",
"0.54493445",
"0.5447091",
"0.54466677",
"0.544331",
"0.544027",
"0.54354817",
"0.5434087",
"0.5433163",
"0.5432501"
] | 0.0 | -1 |
/ 118: / 119: | public AutorizacionAutoimpresorSRI getAutorizacionAutoimpresorSRI()
/* 120: */ {
/* 121:146 */ return this.autorizacionAutoimpresorSRI;
/* 122: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"private void kk12() {\n\n\t}",
"public void mo12628c() {\n }",
"private void m50366E() {\n }",
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"public void mo21787L() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo21786K() {\n }",
"public void mo38117a() {\n }",
"public void mo21779D() {\n }",
"public void mo21789N() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo21785J() {\n }",
"public void mo21783H() {\n }",
"public void mo21793R() {\n }",
"public void mo21795T() {\n }",
"public void mo21791P() {\n }",
"public void mo12930a() {\n }",
"public void mo21878t() {\n }",
"public void mo21792Q() {\n }",
"void mo57277b();",
"public void mo21780E() {\n }",
"public void mo21879u() {\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void mo21788M() {\n }",
"public void mo3749d() {\n }",
"private void m50367F() {\n }",
"public void mo23813b() {\n }",
"public void mo115190b() {\n }",
"public void mo3376r() {\n }",
"public void func_70295_k_() {}",
"public void mo21880v() {\n }",
"public void mo4359a() {\n }",
"public void mo21784I() {\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"void mo57278c();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public void mo9233aH() {\n }",
"public abstract int mo8526p();",
"public void mo115188a() {\n }",
"void mo12637b();",
"void mo119582b();",
"public void m23075a() {\n }",
"public int method_209() {\r\n return 0;\r\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public abstract String mo118046b();",
"@Override\n public void func_104112_b() {\n \n }",
"public void mo56167c() {\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"void mo21076g();",
"public void mo9137b() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"C7904c mo24084a();",
"public void mo97908d() {\n }",
"public void mo55254a() {\n }",
"public int method_113() {\r\n return 0;\r\n }",
"public void mo21781F() {\n }",
"void mo119581a();",
"public void mo2740a() {\n }",
"public void mo21825b() {\n }",
"void mo41086b();",
"void mo41083a();",
"public abstract int mo9754s();",
"void mo1943l();",
"public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public void skystonePos4() {\n }",
"public abstract long mo9229aD();",
"public void mo44053a() {\n }",
"C2841w mo7234g();",
"public void mo6944a() {\n }",
"void mo12638c();",
"public abstract String mo13682d();",
"void mo1507n();",
"public void mo2471e() {\n }",
"public void mo9848a() {\n }",
"void m1864a() {\r\n }",
"public void mo1405e() {\n }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"void mo72113b();",
"void mo21073d();",
"public void mo8738a() {\n }",
"public void mo6081a() {\n }",
"public void mo1403c() {\n }",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"public int method_6437() {\r\n return this.field_6227;\r\n }",
"public void mo5248a() {\n }",
"public final void mo12688e_() {\n }",
"void mo72114c();",
"public abstract int mo9749n();"
] | [
"0.6339537",
"0.6154025",
"0.61451656",
"0.61087865",
"0.61070096",
"0.60882515",
"0.6062435",
"0.6051264",
"0.60507864",
"0.6040317",
"0.6031682",
"0.60074955",
"0.59818",
"0.5928441",
"0.591996",
"0.5914567",
"0.5898933",
"0.5869831",
"0.58619237",
"0.58616376",
"0.5860508",
"0.5856433",
"0.58260214",
"0.58162105",
"0.58129734",
"0.5810262",
"0.58091736",
"0.5796416",
"0.5772188",
"0.57646394",
"0.5761937",
"0.57536584",
"0.57366115",
"0.57357794",
"0.5721948",
"0.5714156",
"0.5704485",
"0.5702975",
"0.5701669",
"0.56958306",
"0.5687366",
"0.5684512",
"0.5676489",
"0.5674845",
"0.56711626",
"0.5655324",
"0.5654499",
"0.5653236",
"0.5651077",
"0.5650962",
"0.5649493",
"0.56480247",
"0.5645869",
"0.5639512",
"0.5636676",
"0.5636676",
"0.5636676",
"0.5636676",
"0.5636676",
"0.5636676",
"0.5636676",
"0.5632993",
"0.56301975",
"0.5629818",
"0.5624455",
"0.5620374",
"0.56161535",
"0.5614753",
"0.5611459",
"0.5609182",
"0.5606893",
"0.56014067",
"0.5591491",
"0.5586306",
"0.55819225",
"0.55790085",
"0.5574932",
"0.5573308",
"0.55711937",
"0.55698526",
"0.55698365",
"0.5568164",
"0.5567506",
"0.5563743",
"0.5558446",
"0.5558189",
"0.5553181",
"0.55505997",
"0.552239",
"0.55194414",
"0.55070895",
"0.55059135",
"0.55042183",
"0.5501137",
"0.5501015",
"0.549026",
"0.54899085",
"0.54841125",
"0.5484076",
"0.548221",
"0.5479897"
] | 0.0 | -1 |
/ 123: / 124: | public void setAutorizacionAutoimpresorSRI(AutorizacionAutoimpresorSRI autorizacionAutoimpresorSRI)
/* 125: */ {
/* 126:150 */ this.autorizacionAutoimpresorSRI = autorizacionAutoimpresorSRI;
/* 127: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"public String digit(String digit);",
"public void testNumberID() {\n String testID = generator.generatePrefixedIdentifier(\"123\");\n assertNotNull(testID);\n assertTrue(testID.matches(\"_123\" + ID_REGEX));\n }",
"void mo9058ad(String str, int i);",
"Rule Digit() {\n // No effect on value stack\n return CharRange('0', '9');\n }",
"void mo34677H(String str, int i, int i2);",
"void mo11024a(int i, int i2, String str);",
"void insertDigit(int digit);",
"public void testDIGITS2() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 239, \"12\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test\n public void testSeparateNumber131() { // FlairImage: 131\n java.util.concurrent.atomic.AtomicBoolean totuus = new java.util.concurrent.atomic.AtomicBoolean(false); \n StringBuilder testi = new StringBuilder(); \n assertEquals(\"From: FlairImage line: 135\", 0, separateNumber(testi,'-',totuus)); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd\"); \n assertEquals(\"From: FlairImage line: 139\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 140\", \"asdasd\", testi.toString()); \n assertEquals(\"From: FlairImage line: 141\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"123-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 145\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 146\", \"asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 147\", true, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-muumi\"); \n assertEquals(\"From: FlairImage line: 151\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 152\", \"asd-asdasd-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 153\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-asdasd-123\"); \n assertEquals(\"From: FlairImage line: 157\", 123, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 158\", \"asd-asdasd-123\", testi.toString()); \n assertEquals(\"From: FlairImage line: 159\", false, totuus.get()); \n totuus.set(false); \n testi = new StringBuilder(\"asd-123-muumi\"); \n assertEquals(\"From: FlairImage line: 163\", 0, separateNumber(testi,'-',totuus)); \n assertEquals(\"From: FlairImage line: 164\", \"asd-123-muumi\", testi.toString()); \n assertEquals(\"From: FlairImage line: 165\", false, totuus.get()); \n }",
"public String get_integer_part();",
"public void mo4509t(int i, String str) {\n }",
"short digits();",
"void mo4872a(int i, String str);",
"java.lang.String getNum2();",
"public int getNumero()\r\n/* 190: */ {\r\n/* 191:202 */ return this.numero;\r\n/* 192: */ }",
"public void testDIGITS3() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 240, \"1234567890\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test\n\tpublic void test1() {\n\t\tSystem.out.println(\"123123\");\n\t}",
"void mo64942a(String str, long j, long j2);",
"void mo1329d(String str, String str2);",
"@Test\r\n public void testRegexp() throws Exception {\n\r\n String a = \"a/b/100/test\";\r\n\r\n Pattern pattern = Pattern.compile(\".+/(\\\\d+)/test\");\r\n\r\n System.out.println(parseIdFromUriPath(a, pattern));\r\n\r\n }",
"@Test\n\tpublic void test_doubleANumber() {\n\t\t\n\t}",
"@Test\n public void shouldRetainDigitsAndWhiteSpace() {\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE)\n .retainFrom(\"123TT T4\"),is(\"123 4\"));\n }",
"String mo10312id();",
"void mo1334i(String str, String str2);",
"public static void main(String[] args) {\n\t\tDivideRepeatNumbr.divide(229, 990);\n\t\tSystem.out.println(DivideRepeatNumbr.perfectSubstring(\"1\", 1));\n\t}",
"public static void main(String[] args) {\n String idNum = \"410326880818551\";\n System.out.println(verify15(idNum));\n// String idNum2 = \"411111198808185510\";\n String idNum2 = \"410326198808185515\";\n System.out.println(verify(idNum2));\n }",
"void mo5875b(String str, long j);",
"void mo9075h(String str, int i, int i2);",
"public void testDIGITS1() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 238, \"1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.OK, retval);\n\t\tObject expecting = \"OK\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }",
"public static void main(String[] args) {\n\t\tint N = 234;\n\t\tint times=N%10;\n\t\tN/=10;\n\t\tint temp=N/10,sum=0;\n\t\twhile(times>0)\n\t\t{\n\t\t\tint rem=N%10;\n\t\t\tsum=temp+rem;\n\t\t\ttemp=sum;\n\t\t\ttimes--;\n\t\t}\n\t\tSystem.out.println(temp);\n\t\n\t}",
"@Test\n public void maskedpanTest() {\n assertEquals(\"400000******0002\", authResponse.getMaskedpan());\n }",
"@Test\n public void Keypad() {\n Assert.assertEquals(11, Computation.keypadTime(\"91566165\",\"639485712\"));\n Assert.assertEquals(1, Computation.keypadTime(\"5111\",\"752961348\"));\n }",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println(removeKdigits(\"12305607890\", 4));\n\t}",
"public static void main(String[] args) {\n var number = 12345;\n var text = \"The number is...\";\n //\n System.out.println(text + number + \"!!!\");\n }",
"public void handleNumbers() {\n // TODO handle \"one\", \"two\", \"three\", etc.\n }",
"java.lang.String getNum1();",
"@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }",
"public static void main(String[] args) \n\t{\n\t\tString str = \"647mahesh\";\n\t\tint size = str.length();\n\t\tint i;\n\t\tfor (i = 0; i < size ; i++)\n\t\t{\n\t\t\tchar split = str.charAt(i);\n\t\t\tif ('0'<=split && split<='8')\n\t\t\tbreak;\n\t\t}\n\t\tString numeric = str.substring(0,i);\n\t\tString alphabets = str.substring(i);\n\t\tSystem.out.println(numeric);\n\t\tSystem.out.println(alphabets);\n\t}",
"@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }",
"private int queryNumberChar() throws IOException {\n\t\tbrin.mark(2);\n\t\treturn brin.read();\n\t}",
"@Test\n public void shouldMatchDigitsWithSpace() {\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAllOf(\"123T TT4\"),is(false));\n Assert.assertThat(\"match any digits with space\",CharMatcher.DIGIT.matchesAnyOf(\"123 TTT4\"),is(true));\n }",
"static void separateNumbers(String s) {\n \tlong flag = 0;\n \tif(s.charAt(0) == '0') {\n \t\tflag = -1;\n \t}\n\t\tif (flag == 0) {\n\t\t\tfor (int length = 1; length * 2 <= s.length(); length++) {\n\t\t\t\tlong firstNumber = Long.parseLong(s.substring(0, length));\n\n\t\t\t\tStringBuilder sequence = new StringBuilder();\n\t\t\t\tlong number = firstNumber;\n\t\t\t\twhile (sequence.length() < s.length()) {\n\t\t\t\t\tsequence.append(number);\n\t\t\t\t\tnumber++;\n\t\t\t\t}\n\t\t\t\tif (sequence.toString().equals(s)) {\n\t\t\t\t\tflag = firstNumber;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n \tif(flag <= 0 ) {\n \t\tSystem.out.println(\"NO\");\n \t}\n \telse {\n \t\tSystem.out.println(\"YES \"+flag);\n \t}\n \t\n }",
"@Test\n public void testShouldString123WhenInputIsInteger123() {\n int given = 123;\n\n // When: Call numberToString method\n String actual = Kata.numberToString(given);\n\n // Then:\n assertEquals(\"123\", actual);\n }",
"@Test\n\tpublic void repeatingIndexOfLastDigitTest() {\n\t\tAssert.assertTrue(ifn.repeatingIndexOfLastDigit() == 60);\n\t}",
"private void nextNumber() {\n\t\tint old=pos;\n\t\tmany(digits);\n\t\ttoken=new Token(\"num\",program.substring(old,pos));\n }",
"public static void main(String[] args) {\n String num = \"102030\"; int k = 3;\r\n System.out.println(removeKdigits(num, k));\r\n }",
"String d(String paramString, int paramInt)\r\n/* 613: */ {\r\n/* 614:609 */ int i1 = e(paramString, paramInt);\r\n/* 615:610 */ if (paramString.length() <= i1) {\r\n/* 616:611 */ return paramString;\r\n/* 617: */ }\r\n/* 618:614 */ String str1 = paramString.substring(0, i1);\r\n/* 619: */ \r\n/* 620:616 */ int i2 = paramString.charAt(i1);\r\n/* 621:617 */ int i3 = (i2 == 32) || (i2 == 10) ? 1 : 0;\r\n/* 622:618 */ String str2 = b(str1) + paramString.substring(i1 + (i3 != 0 ? 1 : 0));\r\n/* 623: */ \r\n/* 624:620 */ return str1 + \"\\n\" + d(str2, paramInt);\r\n/* 625: */ }",
"public static void main(String[] args){\n\t\tSystem.out.println(atoi(\"-0\"));\n\t\tSystem.out.println(atoi(\"13434ag\"));\n\t\tSystem.out.println(atoi(\"-2343\"));\n\t\tSystem.out.println(atoi(\"-03435\"));\n\t\tSystem.out.println(atoi(\"-003435\"));//number starts with 0 is fine.\n\t\t\n\t}",
"String getIdNumber();",
"@Test\n public void shouldMatchDigits(){\n Assert.assertThat(\"match all digits\",CharMatcher.DIGIT.matchesAllOf(\"1234434\"),is(true));\n Assert.assertThat(\"match any digits \",CharMatcher.DIGIT.matchesAnyOf(\"123TTT4\"),is(true));\n }",
"public void testDIGITS6() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 243, \"one\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"@Test(timeout = 4000)\n public void test104() throws Throwable {\n int int0 = JavaCharStream.hexval('D');\n assertEquals(13, int0);\n }",
"public void test() {\n test(\"abcabcbb\", 3);\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public static void main(String[] args)\n\t{\n\t\tint num;\n\t\tnum = 1043;\n\t\tSystem.out.println(\"\\n The Number : num \");\n\t\tSystem.out.print(\"\\n The Number : \");\n\t\tSystem.out.println( num );\n\t\tSystem.out.println(\"\\n The Number : \" + num );\n\t}",
"int mo5867a(String str, long j);",
"@Test\n public void fixedTests() {\n assertEquals(69978 , Day02.parseInt(\"sixty nine thousand nine hundred seventy eight\"));\n }",
"@Test(timeout = 4000)\n public void test054() throws Throwable {\n StringReader stringReader0 = new StringReader(\"ri/eKZUUk8oH\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 66, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(\"ri\", token0.toString());\n }",
"void mo107677b(Integer num);",
"public static void main(String[] args) {\n int n = 2;\n thousandSeparator1556 tmp = new thousandSeparator1556();\n tmp.thousandSeparator(n);\n\n }",
"int mo23349e(String str, String str2);",
"@Test(timeout = 4000)\n public void test084() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n assertEquals(\"- 0\", string0);\n }",
"public void testDIGITS5() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 242, \"\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}",
"public abstract boolean mo53567k(int i, int i2, String str);",
"private void prepNumberKeys() {\r\n int numDigits = 10;\r\n for (int i = 0; i < numDigits; i++) {\r\n MAIN_PANEL.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT)\r\n .put(KeyStroke.getKeyStroke((char) ('0' + i)), \"key\" + i);\r\n MAIN_PANEL.getActionMap()\r\n .put(\"key\" + i, new KeyAction(String.valueOf(i)));\r\n } \r\n }",
"private int aleatorizarNumero() {\n\t\tint aux;\n\t\taux = r.getIntRand(13) + 1;\n\t\treturn aux;\n\t}",
"@Test\n public void shouldCollapseAllDigitsByX(){\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.replaceFrom(\"123TT T4\",\"x\"),is(\"xxxTT Tx\"));\n Assert.assertThat(\"match any digits\",CharMatcher.DIGIT.or(CharMatcher.WHITESPACE).replaceFrom(\"123TT T4\", \"x\"),is(\"xTTxTx\"));\n }",
"int main()\n{\n int num,rem;\n cin>>num;\n rem=num%10;\n cout<<rem+(num/1000);\n}",
"int mo23351i(String str, String str2);",
"public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(generateStringMixUpperAndNumber(12));\r\n\t\t\r\n\t}",
"public void mo23980a(int i, String str) {\n }",
"@Test\n public void lookAndSay_Test() {\n String start = \"11\";\n int n = 2;\n\n String result = LookAndSay(start, n);\n\n assertThat(result).isEqualTo(\"1211\");\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tString s = \"9123401\";\r\n\tint a =\tInteger.parseInt(String.valueOf(s.charAt(0)));\r\n\t\r\n\tint b = s.charAt(0) -'0';\r\n//\tSystem.out.println((int)'0');\r\n\tSystem.out.println(b);\r\n//\tSystem.out.println(a);\r\n\r\n\t}",
"private static Symbol number(String text, int base)\r\n\t{\r\n\t\tint linepos = line_;\r\n\t\tint charpos = char_;\r\n\t\tint colpos = col_;\r\n\t\tscan(text);\r\n\t\tToken token = new Token(fname, text, linepos, charpos, colpos);\r\n\t\ttoken.number = convertNumber(text, base);\r\n\t\treturn new Symbol(sym.NUMBER, linepos, colpos, token);\r\n\t}",
"int mo23347d(String str, String str2);",
"@Test\n public void delims() {\n }",
"@Test\n public void testShouldStringMinus123WhenInputIsIntegerMinus123() {\n int given = -123;\n\n // When: Call numberToString method\n String actual = Kata.numberToString(given);\n\n // Then:\n assertEquals(\"-123\", actual);\n }",
"@Override\n\tpublic void printLotteryNo() {\n\t\tint[] prefixNums = generateNumber(35, 5);\n\t\tint[] suffixNums = generateNumber(12, 2);\n\t\tSystem.out.println(\"本期大乐透前区号码是:\" + printNums(prefixNums));\n\t\tSystem.out.println(\"本期大乐透后区号码是:\" + printNums(suffixNums));\n\t}",
"public static void main(String[] args) {\nint t = 101010101;\n// koden begynner her\nString s = \"\";\nwhile ( t % 10 > 0 ) {\ns = t % 10 + s;\nt = t / 10;\n}\ns = \"s = \" + s;\nout.println(s);\n\n }",
"@Test\n public void testDigits() {\n final String result = calc.type(\"1 + 2 - 3\")\n .press_equalBtn()\n .result();\n\n Assert.assertEquals(result, \"0\");\n }",
"public static void main(String[] args) {\n Pattern MY_PATTERN = Pattern.compile(\"Content-Length: (\\\\d+)\");\n Matcher m = MY_PATTERN.matcher(\"hehe Content-Length: 234 asdf\");\n System.out.println(\"pattern: \" + MY_PATTERN + \", found: \" + m.find());\n System.out.println(\"length ne: \" + m.group(1));\n }",
"private static String digits(long val, int digits) {\n\tlong hi = 1L << (digits * 4);\n\treturn Long.toHexString(hi | (val & (hi - 1))).substring(1);\n }",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner (System.in);\n\t\t\n\t\tSystem.out.println(\"Please enter four digit number to be decrypted.\");\n\t\tString num = in.next();\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Your decrypted number is \" +num);\n\t\tSystem.out.print((((num.charAt(2)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(3)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(0)-48)+10)-7)%10);\n\t System.out.print((((num.charAt(1)-48)+10)-7)%10);\n\t\t\n\t\t\n\t\t\n\t}",
"public String getNumber(){return number;}",
"public static void main(String[] args) {\n System.out.println(removeKdigits(\"1432219\", 3));\n }",
"public int getE04(final int digitNumber);",
"public void mo44231a(int i) {\n }",
"List<C45111a> mo107675a(Integer num, Integer num2);",
"public void mo32111rr(int i) {\n }",
"private String trimNumber(String num){\n\t\tString incomingNumber = num;\n\t\tincomingNumber = incomingNumber.replaceAll(\"-\", \"\" );\n\t\tif(incomingNumber.startsWith(\"1\"))\n\t\t\tincomingNumber = incomingNumber.replaceFirst(\"1\", \"\");\n\t\tLog.d(TAG,\"trimnum: \" + num );\n\t\tLog.d(TAG,\"trimNumber: \" + incomingNumber);\n\t\treturn incomingNumber;\n\t}",
"@Test\n\tpublic void checkNumbersFollowedByExclamationMark() {\n\t\tString input = \"Five six SEVEN eiGHt!!\";\n\n\t\tStringUtility stringUtility = new StringUtility();\n\t\tString actualCastedString = stringUtility.castWordNumberToNumber(input);\n\n\t\tString correctlyCastedString = \"5 6 7 8!!\";\n\n\t\tAssert.assertEquals(actualCastedString, correctlyCastedString);\n\t}",
"public static void main002(String[] args) {\n\n\t\tint number\t= 20;\n\t\tSystem.out.println(\"Start = \" + number);\n\t\t\n\t\tnumber += 10;\t// number\t= number + 10;\n\t\tnumber -= 10;\t// number\t= number - 10\n\t\tnumber *= 10;\t// number\t= number * 10\n\t\tnumber /= 10;\t// number\t= number / 10\n\t\tnumber %= 10;\t// number\t= number % 10\n\t\tSystem.out.println(\"End = \" + number);\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tint num = 999;\n\t\tString numXXX = \"\";\n\t\t\n\t\tif ((num < 100) & (num >=10) ){\n\t\t\tnumXXX = \"0\" + num;\t\t\n\t\t} else if (num < 10) {\n\t\t\tnumXXX = \"00\" + num; \t\n\t\t} else {\n\t\t\tnumXXX = \"\" + num;\n\t\t}\n\t\t\n\t\tint hundred = Character.digit(numXXX.charAt(0),10);\n\t\tint ten = Character.digit(numXXX.charAt(1),10);\n\t\tint digit = Character.digit(numXXX.charAt(2),10);\n\t\t\n\t\t//System.out.println(numXXX + \":\" + hundred + ten + digit);\n\t\t\n\t\tString hundredStr = \"\";\n\t\tString tenStr = \"\";\n\t\tString digitStr = \"\";\n\t\t\n\t\tswitch (hundred) {\n\t\t\tcase 1: \n\t\t\t\thundredStr = \"one hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 2: \n\t\t\t\thundredStr = \"two hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 3: \n\t\t\t\thundredStr = \"three hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 4: \n\t\t\t\thundredStr = \"four hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 5: \n\t\t\t\thundredStr = \"five hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 6: \n\t\t\t\thundredStr = \"six hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 7: \n\t\t\t\thundredStr = \"seven hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 8: \n\t\t\t\thundredStr = \"eight hundred\";\n\t\t\t\tbreak;\n\t\t\tcase 9: \n\t\t\t\thundredStr = \"nine hundred\";\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\tswitch (ten) {\n\t\t\tcase 1:\n\t\t\t\tif (digit == 0){\n\t\t\t\t\ttenStr = \"ten\";\n\t\t\t\t} else {\n\t\t\t\t\tswitch (digit) {\n\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\ttenStr = \"eleven\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\ttenStr = \"twelve\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\ttenStr = \"thirteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\ttenStr = \"fourteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\ttenStr = \"fifteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\ttenStr = \"sixteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\ttenStr = \"seventeen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\ttenStr = \"eighteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 9:\n\t\t\t\t\t\t\ttenStr = \"nineteen\";\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n \t\t\tcase 2: \n \t\t\t\ttenStr = \"twenty\";\n \t\t\t\tbreak;\n \t\t\tcase 3: \n \t\t\t\ttenStr = \"thirty\";\n \t\t\t\tbreak;\n \t\t\tcase 4: \n \t\t\t\ttenStr = \"fourty\";\n \t\t\t\tbreak;\n \t\t\tcase 5: \n \t\t\t\ttenStr = \"fifty\";\n \t\t\t\tbreak;\n \t\t\tcase 6: \n \t\t\t\ttenStr = \"sixty\";\n \t\t\t\tbreak;\n \t\t\tcase 7: \n \t\t\t\ttenStr = \"seventy\";\n \t\t\t\tbreak;\n \t\t\tcase 8: \n \t\t\t\ttenStr = \"eighty\";\n \t\t\t\tbreak;\n \t\t\tcase 9: \n \t\t\t\ttenStr = \"ninety\";\n \t\t\t\tbreak;\t\n }\n\t\t\n\t\tif ((ten != 1) | (ten == 0)){\n\t\t\tswitch (digit) {\n\t\t\t\tcase 0:\n\t\t\t\t\tif ((ten == 0) & (hundred == 0)){\n\t\t\t\t\t\tdigitStr = \"zero\";\n\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tdigitStr = \"one\";\n\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tdigitStr = \"two\";\n\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tdigitStr = \"three\";\n\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tdigitStr = \"four\";\n\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tdigitStr = \"five\";\n\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\tdigitStr = \"six\";\n\t\t\t\tbreak;\n\t\t\t\tcase 7:\n\t\t\t\t\tdigitStr = \"seven\";\n\t\t\t\tbreak;\n\t\t\t\tcase 8:\n\t\t\t\t\tdigitStr = \"eight\";\n\t\t\t\tbreak;\n\t\t\t\tcase 9:\n\t\t\t\t\tdigitStr = \"nine\";\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (ten == 0){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + digitStr);\n\t\t} else if (ten == 1){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr);\n\t\t} else if ((ten != 1) & (digit == 0)){\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr);\n\t\t} else {\n\t\t\tSystem.out.println(num + \" => \" + hundredStr + \" \" + tenStr + \"-\" + digitStr);\n\t\t}\n\t\t\n\t}",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void setNUMSEC(int value) {\n this.numsec = value;\n }",
"public void testDIGITS4() throws Exception {\n\t\tObject retval = execLexer(\"DIGITS\", 241, \"0.1\", false);\n\t\tObject actual = examineExecResult(org.antlr.gunit.gUnitParser.FAIL, retval);\n\t\tObject expecting = \"FAIL\";\n\n\t\tassertEquals(\"testing rule \"+\"DIGITS\", expecting, actual);\n\t}"
] | [
"0.6133244",
"0.594692",
"0.5751824",
"0.5496412",
"0.54067886",
"0.5402204",
"0.5353008",
"0.53391564",
"0.53337115",
"0.5320511",
"0.5306252",
"0.5267958",
"0.5252301",
"0.52263373",
"0.5220291",
"0.5214855",
"0.5210412",
"0.52024406",
"0.51659715",
"0.51613164",
"0.51452464",
"0.51339835",
"0.5132253",
"0.5121915",
"0.5116958",
"0.51163965",
"0.5114572",
"0.51005316",
"0.5091753",
"0.5076676",
"0.5072449",
"0.50538546",
"0.5041089",
"0.50402474",
"0.50385225",
"0.50319564",
"0.5027949",
"0.5017086",
"0.50158376",
"0.5008147",
"0.5007517",
"0.49992463",
"0.49948013",
"0.4989323",
"0.49873614",
"0.498602",
"0.49843454",
"0.4975733",
"0.49674845",
"0.49516928",
"0.4947573",
"0.49430203",
"0.4940766",
"0.49404797",
"0.49370518",
"0.49303865",
"0.49301147",
"0.492974",
"0.49286163",
"0.49231547",
"0.49220926",
"0.4921711",
"0.4920159",
"0.49170825",
"0.49107236",
"0.49097562",
"0.49078766",
"0.49055243",
"0.4903871",
"0.489985",
"0.4895175",
"0.48946473",
"0.48920774",
"0.48896492",
"0.48874924",
"0.48851702",
"0.4882724",
"0.48820275",
"0.48807013",
"0.48710442",
"0.48702747",
"0.486683",
"0.48653087",
"0.48632157",
"0.48578906",
"0.4855082",
"0.48506376",
"0.4849415",
"0.48467317",
"0.4846518",
"0.4845722",
"0.48457193",
"0.48452687",
"0.48344228",
"0.48306435",
"0.48303825",
"0.48248193",
"0.48213392",
"0.48213392",
"0.48213392",
"0.48210844"
] | 0.0 | -1 |
/ 128: / 129: | public DocumentoBase getDocumentoBase()
/* 130: */ {
/* 131:154 */ return this.documentoBase;
/* 132: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void main(String args[]) {\n\n\n byte b = (byte) 128;\n System.out.println(b);\n byte b1 = (byte) 129;\n System.out.println(b1);\n byte b2 = (byte) -128;\n System.out.println(b2);\n byte b3 = (byte) 127;\n System.out.println(b3);\n }",
"public static void main(String[] args) {\n\t\tbyte a=(byte)130;\n\t\tSystem.out.println(\"128을 저장한 byte 값은 : \"+ a);\n\n\t}",
"public static void main(String[] args) {\n byte b1=125;\n System.out.println(b1);\n byte b2=(byte)129;\n System.out.println(b2);\t\t\n\t}",
"public static void main(String[] args) {\nshort i = 128;\r\nbyte shortToByte = (byte)i;\r\nSystem.out.println(shortToByte);\r\nbyte t = 127;\r\nt++;\r\nSystem.out.println(t);\r\nt++;\r\nSystem.out.println(t);\r\n\r\n\t}",
"public static void main(String args[]) {\n\n\tchar c1 = 'S';\n\tSystem.out.println(c1 + 2);\n\tSystem.out.println(c1 - 2);\n\tSystem.out.println(c1 * 2);\n\tSystem.out.println(c1 / 2);\n\tSystem.out.println(c1 << 2);\n\tSystem.out.println(c1 >>> 2);\n\tSystem.out.println(c1 >> 2);\n\tSystem.out.println(c1 | 2);\n\tSystem.out.println(c1 & 2);\n\tSystem.out.println(c1 ^ 2);\n\n\tbyte b1 = 127;\n\tSystem.out.println(b1 + 2);\n\tSystem.out.println(b1 - 2);\n\tSystem.out.println(b1 * 2);\n\tSystem.out.println(b1 / 2);\n\tSystem.out.println(b1 << 2);\n\tSystem.out.println(b1 >>> 2);\n\tSystem.out.println(b1 >> 2);\n\tSystem.out.println(b1 | 2);\n\tSystem.out.println(b1 & 2);\n\tSystem.out.println(b1 ^ 2);\n\n\n\tshort s1 = 127;\n\tSystem.out.println(s1 + 2);\n\tSystem.out.println(s1 - 2);\n\tSystem.out.println(s1 * 2);\n\tSystem.out.println(s1 / 2);\n\tSystem.out.println(s1 << 2);\n\tSystem.out.println(s1 >>> 2);\n\tSystem.out.println(s1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tint i1 = 127;\n\tSystem.out.println(i1 + 2);\n\tSystem.out.println(i1 - 2);\n\tSystem.out.println(i1 * 2);\n\tSystem.out.println(i1 / 2);\n\tSystem.out.println(i1 << 2);\n\tSystem.out.println(i1 >>> 2);\n\tSystem.out.println(i1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tlong l1 = 12345678910L;\n\tSystem.out.println(l1 + 2);\n\tSystem.out.println(l1 - 2);\n\tSystem.out.println(l1 * 2);\n\tSystem.out.println(l1 / 2);\n\tSystem.out.println(l1 << 2);\n\tSystem.out.println(l1 >>> 2);\n\tSystem.out.println(l1 >> 2);\n\tSystem.out.println(s1 | 2);\n\tSystem.out.println(s1 & 2);\n\tSystem.out.println(s1 ^ 2);\n\n\tfloat f1 = 667.123476F;\n\tSystem.out.println(f1 + 2);\n\tSystem.out.println(f1 - 2);\n\tSystem.out.println(f1 * 2);\n\tSystem.out.println(f1 / 2);\n\n\tdouble d1 = 32383.2345769172340;\n\tSystem.out.println(f1 + d1);\n\tSystem.out.println(f1 - d1);\n\tSystem.out.println(f1 * d1);\n\tSystem.out.println(f1 / d1);\n\n\n\n\tByte b2 = 127;\n\tSystem.out.println(b2 + 2);\n\tSystem.out.println(b2 - 2);\n\tSystem.out.println(b2 * 2);\n\tSystem.out.println(b2 / 2);\n\tSystem.out.println(b2 << 2);\n\tSystem.out.println(b2 >>> 2);\n\tSystem.out.println(b2 >> 2);\n\n\tShort s2 = 13245;\n\tSystem.out.println(s2 + 2);\n\tSystem.out.println(s2 - 2);\n\tSystem.out.println(s2 * 2);\n\tSystem.out.println(s2 / 2);\n\tSystem.out.println(s2 << 2);\n\tSystem.out.println(s2 >>> 2);\n\tSystem.out.println(s2 >> 2);\n\n\tCharacter c2 = 'C';\n\tSystem.out.println(c2 + 2);\n\tSystem.out.println(c2 - 2);\n\tSystem.out.println(c2 * 2);\n\tSystem.out.println(c2 / 2);\n\tSystem.out.println(c2 << 2);\n\tSystem.out.println(c2 >>> 2);\n\tSystem.out.println(c2 >> 2);\n\n\tInteger i2 = 127;\n\tSystem.out.println(i2 + 2);\n\tSystem.out.println(i2 - 2);\n\tSystem.out.println(i2 * 2);\n\tSystem.out.println(i2 / 2);\n\tSystem.out.println(i2 << 2);\n\tSystem.out.println(i2 >>> 2);\n\tSystem.out.println(i2 >> 2);\n\n\tLong l2 = 122273757L;\n\tSystem.out.println(l2 + 2);\n\tSystem.out.println(l2 - 2);\n\tSystem.out.println(l2 * 2);\n\tSystem.out.println(l2 / 2);\n\tSystem.out.println(l2 << 2);\n\tSystem.out.println(l2 >>> 2);\n\tSystem.out.println(l2 >> 2);\n\n\tFloat f2 = 123.44765896F;\n\tSystem.out.println(f2 + 2);\n\tSystem.out.println(f2 - 2);\n\tSystem.out.println(f2 * 2);\n\tSystem.out.println(f2 / 2);\n\n\tDouble d2 = 12322387.44765896;\n\tSystem.out.println(d2 + 2);\n\tSystem.out.println(d2 - 2);\n\tSystem.out.println(d2 * 2);\n\tSystem.out.println(d2 / 2);\n }",
"private boolean valid128bit(String input) {\n\t\treturn input.matches(\"[0-9A-F]{32}\");\n\t}",
"static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"ÒÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }",
"static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"byte mo30283c();",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"static void method_5904() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¡,´\u001a\u000béÜG°\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_5515 = (new String((char[])var4)).intern();\r\n String var2 = field_5515;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 91;\r\n break;\r\n case 1:\r\n var10009 = 111;\r\n break;\r\n case 2:\r\n var10009 = 241;\r\n break;\r\n case 3:\r\n var10009 = 6;\r\n break;\r\n case 4:\r\n var10009 = 168;\r\n break;\r\n case 5:\r\n var10009 = 185;\r\n break;\r\n default:\r\n var10009 = 41;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"static void method_2892() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Plf æ¤Ý\\\"\u0017\\f¢\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_2300 = (new String((char[])var4)).intern();\r\n String var2 = field_2300;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 87;\r\n break;\r\n case 1:\r\n var10009 = 100;\r\n break;\r\n case 2:\r\n var10009 = 125;\r\n break;\r\n case 3:\r\n var10009 = 212;\r\n break;\r\n case 4:\r\n var10009 = 146;\r\n break;\r\n case 5:\r\n var10009 = 208;\r\n break;\r\n default:\r\n var10009 = 169;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"public Add128(){\n key = new byte[128];\n Random rand = new Random();\n rand.nextBytes(key);\n }",
"public KMP(){\n this.R = 128;\n }",
"public Add128(byte[] bytekey) {\n key=bytekey;\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public void encodeChars() {\n encodedChars = new int[uniqueChars.size()];\n Iterator<Character> mover = uniqueChars.iterator();\n Iterator<Character> moverTwo = uniqueChars.iterator();\n System.out.print(\"\\nEncoding characters to its ASCII integer value:\");\n for(int a = 0; a < uniqueChars.size(); a++) {\n encodedChars[a] = (int)mover.next();\n encodedChars[a] = encodedChars[a] / encodedChars[a] + a - 1;\n System.out.print(moverTwo.next() + \" : \" + encodedChars[a] + \", \");\n }\n System.out.println(\"\\n\");\n }",
"byte[] mo38566a();",
"private void method_262(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16, int var17) {\n boolean var33 = field_759;\n int var21 = var13 >> 16 & 255;\n int var22 = var13 >> 8 & 255;\n int var23 = var13 & 255;\n int var24 = var14 >> 16 & 255;\n int var25 = var14 >> 8 & 255;\n int var26 = var14 & 255;\n\n try {\n int var27 = var5;\n int var28 = -var9;\n if(var33 || var28 < 0) {\n do {\n int var29 = (var6 >> 16) * var12;\n int var30 = var15 >> 16;\n int var31 = var8;\n int var32;\n if(var30 < this.field_745) {\n var32 = this.field_745 - var30;\n var31 = var8 - var32;\n var30 = this.field_745;\n var5 += var10 * var32;\n }\n\n if(var30 + var31 >= this.field_746) {\n var32 = var30 + var31 - this.field_746;\n var31 -= var32;\n }\n\n var17 = 1 - var17;\n if(var17 != 0) {\n var32 = var30;\n if(var33 || var30 < var30 + var31) {\n do {\n var4 = var2[(var5 >> 16) + var29] & 255;\n if(var4 != 0) {\n label69: {\n var4 = var3[var4];\n int var18 = var4 >> 16 & 255;\n int var19 = var4 >> 8 & 255;\n int var20 = var4 & 255;\n if(var18 == var19 && var19 == var20) {\n var1[var32 + var7] = (var18 * var21 >> 8 << 16) + (var19 * var22 >> 8 << 8) + (var20 * var23 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n if(var18 == 255 && var19 == var20) {\n var1[var32 + var7] = (var18 * var24 >> 8 << 16) + (var19 * var25 >> 8 << 8) + (var20 * var26 >> 8);\n if(!var33) {\n break label69;\n }\n }\n\n var1[var32 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var32;\n } while(var32 < var30 + var31);\n }\n }\n\n var6 += var11;\n var5 = var27;\n var7 += this.field_723;\n var15 += var16;\n ++var28;\n } while(var28 < 0);\n\n }\n } catch (Exception var34) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }",
"private void method_261(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14, int var15, int var16) {\n boolean var29 = field_759;\n int var20 = var13 >> 16 & 255;\n int var21 = var13 >> 8 & 255;\n int var22 = var13 & 255;\n\n try {\n int var23 = var5;\n int var24 = -var9;\n if(var29 || var24 < 0) {\n do {\n int var25 = (var6 >> 16) * var12;\n int var26 = var14 >> 16;\n int var27 = var8;\n int var28;\n if(var26 < this.field_745) {\n var28 = this.field_745 - var26;\n var27 = var8 - var28;\n var26 = this.field_745;\n var5 += var10 * var28;\n }\n\n if(var26 + var27 >= this.field_746) {\n var28 = var26 + var27 - this.field_746;\n var27 -= var28;\n }\n\n var16 = 1 - var16;\n if(var16 != 0) {\n var28 = var26;\n if(var29 || var26 < var26 + var27) {\n do {\n var4 = var2[(var5 >> 16) + var25] & 255;\n if(var4 != 0) {\n label33: {\n var4 = var3[var4];\n int var17 = var4 >> 16 & 255;\n int var18 = var4 >> 8 & 255;\n int var19 = var4 & 255;\n if(var17 == var18 && var18 == var19) {\n var1[var28 + var7] = (var17 * var20 >> 8 << 16) + (var18 * var21 >> 8 << 8) + (var19 * var22 >> 8);\n if(!var29) {\n break label33;\n }\n }\n\n var1[var28 + var7] = var4;\n }\n }\n\n var5 += var10;\n ++var28;\n } while(var28 < var26 + var27);\n }\n }\n\n var6 += var11;\n var5 = var23;\n var7 += this.field_723;\n var14 += var15;\n ++var24;\n } while(var24 < 0);\n\n }\n } catch (Exception var30) {\n System.out.println(\"error in transparent sprite plot routine\"); // authentic System.out.println\n }\n }",
"public boolean hasVar128() {\n return fieldSetFlags()[129];\n }",
"int decodeInt();",
"void mo12637b();",
"float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public static void main(String[] args) {\n\t\tbyte bs = -127;\n\t\t\n\t\tSystem.out.println(bs);\n\t\t\n\t\t//int iVal = 12345678900;\n\t\tlong lVal = 2147483647;\n\t\tlong lVal1 = 9999999999L; //기준 이상값을때는 L을 넣어주는것이 좋다.\n\t\t\n\t}",
"public void method_237(int var1, byte[] var2) {\n boolean var11 = field_759;\n int[] var3 = this.spritePixels[var1] = new int[10200];\n this.field_736[var1] = 255;\n this.field_737[var1] = 40;\n this.field_738[var1] = 0;\n this.field_739[var1] = 0;\n this.spriteWidthFull[var1] = 255;\n this.field_741[var1] = 40;\n this.field_742[var1] = false;\n int var4 = 0;\n int var5 = 1;\n int var6 = 0;\n int var7;\n int var8;\n if(var11 || var6 < 255) {\n do {\n var7 = var2[var5++] & 255;\n var8 = 0;\n if(var11) {\n var3[var6++] = var4;\n ++var8;\n }\n\n while(var8 < var7) {\n var3[var6++] = var4;\n ++var8;\n }\n\n var4 = 16777215 - var4;\n } while(var6 < 255);\n }\n\n var7 = 1;\n if(var11 || var7 < 40) {\n do {\n var8 = 0;\n if(!var11 && var8 >= 255) {\n ++var7;\n } else {\n do {\n int var9 = var2[var5++] & 255;\n int var10 = 0;\n if(var11) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n while(var10 < var9) {\n var3[var6] = var3[var6 - 255];\n ++var6;\n ++var8;\n ++var10;\n }\n\n if(var8 < 255) {\n var3[var6] = 16777215 - var3[var6 - 255];\n ++var6;\n ++var8;\n }\n } while(var8 < 255);\n\n ++var7;\n }\n } while(var7 < 40);\n\n }\n }",
"static int psw(){\n\t\tint psw = 0;\n\t\tpsw+=(CS?1:0);\n\t\tpsw+=(P?4:0);\n\t\tpsw+=(AC?16:0);\n\t\tpsw+=(Z?64:0);\n\t\tpsw+=(S?128:0);\n\t\treturn psw;\n\t}",
"@Test(timeout = 4000)\n public void test128() throws Throwable {\n StringReader stringReader0 = new StringReader(\"D!tcbD=EVjn`\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-7), 6);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"D\", token0.toString());\n assertEquals(74, token0.kind);\n }",
"private char toChar(int u)\r\n { \r\n return (char)(u + 64);\r\n }",
"private static int batoi(byte[] inp) {\n int len = inp.length>4?4:inp.length;\n int total = 0;\n for (int i = 0; i < len; i++) {\n total += (inp[i]<0?256+inp[i]:(int)inp[i]) << (((len - 1) - i) * 8);\n }\n return total;\n }",
"private short toDec(byte[] source, short index){\r\n \treturn (short)(source[index] - (short)48);\r\n }",
"public java.lang.Boolean getVar128() {\n return var128;\n }",
"public java.lang.Integer getVar127() {\n return var127;\n }",
"public java.lang.Boolean getVar128() {\n return var128;\n }",
"public byte[] initialValue() {\n return new byte[]{(byte) -1, (byte) -40, (byte) -1, (byte) -37, (byte) 0, (byte) 67, (byte) 0, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -1, (byte) -64, (byte) 0, (byte) 17, (byte) 8, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 3, (byte) 1, (byte) 34, (byte) 0, (byte) 2, (byte) 17, (byte) 0, (byte) 3, (byte) 17, (byte) 0, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 0, (byte) 0, (byte) 1, (byte) 5, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 16, (byte) 0, (byte) 2, (byte) 1, (byte) 3, (byte) 3, (byte) 2, (byte) 4, (byte) 3, (byte) 5, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 0, (byte) 1, (byte) 125, (byte) 1, (byte) 2, (byte) 3, (byte) 0, (byte) 4, (byte) 17, (byte) 5, (byte) 18, (byte) 33, (byte) 49, (byte) 65, (byte) 6, (byte) 19, (byte) 81, (byte) 97, (byte) 7, (byte) 34, (byte) 113, (byte) 20, (byte) 50, (byte) -127, (byte) -111, (byte) -95, (byte) 8, (byte) 35, (byte) 66, (byte) -79, (byte) -63, (byte) 21, (byte) 82, (byte) -47, (byte) -16, (byte) 36, (byte) 51, (byte) 98, (byte) 114, (byte) -126, (byte) 9, (byte) 10, (byte) 22, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 37, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 52, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -31, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -15, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -60, (byte) 0, (byte) 31, (byte) 1, (byte) 0, (byte) 3, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 1, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 4, (byte) 5, (byte) 6, (byte) 7, (byte) 8, (byte) 9, (byte) 10, (byte) 11, (byte) -1, (byte) -60, (byte) 0, (byte) -75, (byte) 17, (byte) 0, (byte) 2, (byte) 1, (byte) 2, (byte) 4, (byte) 4, (byte) 3, (byte) 4, (byte) 7, (byte) 5, (byte) 4, (byte) 4, (byte) 0, (byte) 1, (byte) 2, (byte) 119, (byte) 0, (byte) 1, (byte) 2, (byte) 3, (byte) 17, (byte) 4, (byte) 5, (byte) 33, (byte) 49, (byte) 6, (byte) 18, (byte) 65, (byte) 81, (byte) 7, (byte) 97, (byte) 113, (byte) 19, (byte) 34, (byte) 50, (byte) -127, (byte) 8, (byte) 20, (byte) 66, (byte) -111, (byte) -95, (byte) -79, (byte) -63, (byte) 9, (byte) 35, (byte) 51, (byte) 82, (byte) -16, (byte) 21, (byte) 98, (byte) 114, (byte) -47, (byte) 10, (byte) 22, (byte) 36, (byte) 52, (byte) -31, (byte) 37, (byte) -15, (byte) 23, (byte) 24, (byte) 25, (byte) 26, (byte) 38, (byte) 39, (byte) 40, (byte) 41, (byte) 42, (byte) 53, (byte) 54, (byte) 55, (byte) 56, (byte) 57, (byte) 58, (byte) 67, (byte) 68, (byte) 69, (byte) 70, (byte) 71, (byte) 72, (byte) 73, (byte) 74, (byte) 83, (byte) 84, (byte) 85, (byte) 86, (byte) 87, (byte) 88, (byte) 89, (byte) 90, (byte) 99, (byte) 100, (byte) 101, (byte) 102, (byte) 103, (byte) 104, (byte) 105, (byte) 106, (byte) 115, (byte) 116, (byte) 117, (byte) 118, (byte) 119, (byte) 120, (byte) 121, (byte) 122, (byte) -126, (byte) -125, (byte) -124, (byte) -123, (byte) -122, (byte) -121, (byte) -120, (byte) -119, (byte) -118, (byte) -110, (byte) -109, (byte) -108, (byte) -107, (byte) -106, (byte) -105, (byte) -104, (byte) -103, (byte) -102, (byte) -94, (byte) -93, (byte) -92, (byte) -91, (byte) -90, (byte) -89, (byte) -88, (byte) -87, (byte) -86, (byte) -78, (byte) -77, (byte) -76, (byte) -75, (byte) -74, (byte) -73, (byte) -72, (byte) -71, (byte) -70, (byte) -62, (byte) -61, (byte) -60, (byte) -59, (byte) -58, (byte) -57, (byte) -56, (byte) -55, (byte) -54, (byte) -46, (byte) -45, (byte) -44, (byte) -43, (byte) -42, (byte) -41, (byte) -40, (byte) -39, (byte) -38, (byte) -30, (byte) -29, (byte) -28, (byte) -27, (byte) -26, (byte) -25, (byte) -24, (byte) -23, (byte) -22, (byte) -14, (byte) -13, (byte) -12, (byte) -11, (byte) -10, (byte) -9, (byte) -8, (byte) -7, (byte) -6, (byte) -1, (byte) -38, (byte) 0, (byte) 12, (byte) 3, (byte) 1, (byte) 0, (byte) 2, (byte) 17, (byte) 3, (byte) 17, (byte) 0, (byte) 63, (byte) 0, (byte) -114, (byte) -118, (byte) 40, (byte) -96, (byte) 15, (byte) -1, (byte) -39};\n }",
"public static int offsetBits_sum_e() {\n return 104;\n }",
"public void m9128n() {\r\n this.f6011m = bw.m10080b(this.f6011m, 0);\r\n }",
"public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}",
"short decodeShort();",
"public void mo12628c() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"private void method_251(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11) {\n boolean var17 = field_759;\n int var12 = 256 - var11;\n int var13 = -var7;\n if(var17 || var13 < 0) {\n do {\n int var14 = -var6;\n if(!var17 && var14 >= 0) {\n var5 += var8;\n var4 += var9;\n var13 += var10;\n } else {\n do {\n label19: {\n byte var15 = var2[var4++];\n if(var15 != 0) {\n int var18 = var3[var15 & 255];\n int var16 = var1[var5];\n var1[var5++] = ((var18 & 16711935) * var11 + (var16 & 16711935) * var12 & -16711936) + ((var18 & '\\uff00') * var11 + (var16 & '\\uff00') * var12 & 16711680) >> 8;\n if(!var17) {\n break label19;\n }\n }\n\n ++var5;\n }\n\n ++var14;\n } while(var14 < 0);\n\n var5 += var8;\n var4 += var9;\n var13 += var10;\n }\n } while(var13 < 0);\n\n }\n }",
"public java.lang.Integer getVar127() {\n return var127;\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input ? ZZ_CMAP_BLOCKS[offset] : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"private void method_248(int[] var1, byte[] var2, int[] var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {\n boolean var16 = field_759;\n int var11 = -(var6 >> 2);\n var6 = -(var6 & 3);\n int var12 = -var7;\n if(var16 || var12 < 0) {\n do {\n int var13 = var11;\n byte var15;\n int var17;\n if(!var16 && var11 >= 0) {\n var17 = var6;\n if(var16 || var6 < 0) {\n do {\n label89: {\n var15 = var2[var4++];\n if(var15 != 0) {\n var1[var5++] = var3[var15 & 255];\n if(!var16) {\n break label89;\n }\n }\n\n ++var5;\n }\n\n ++var17;\n } while(var17 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n } else {\n do {\n byte var14;\n label69: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label69;\n }\n }\n\n ++var5;\n }\n\n label63: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label63;\n }\n }\n\n ++var5;\n }\n\n label57: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label57;\n }\n }\n\n ++var5;\n }\n\n label51: {\n var14 = var2[var4++];\n if(var14 != 0) {\n var1[var5++] = var3[var14 & 255];\n if(!var16) {\n break label51;\n }\n }\n\n ++var5;\n }\n\n ++var13;\n } while(var13 < 0);\n\n var17 = var6;\n if(var16 || var6 < 0) {\n do {\n label34: {\n var15 = var2[var4++];\n if(var15 != 0) {\n var1[var5++] = var3[var15 & 255];\n if(!var16) {\n break label34;\n }\n }\n\n ++var5;\n }\n\n ++var17;\n } while(var17 < 0);\n\n var5 += var8;\n var4 += var9;\n var12 += var10;\n } else {\n var5 += var8;\n var4 += var9;\n var12 += var10;\n }\n }\n } while(var12 < 0);\n\n }\n }",
"private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }",
"public byte getByteS() {\n\t\treturn (byte) (128 - get());\n\t}",
"public void setVar127(java.lang.Integer value) {\n this.var127 = value;\n }",
"private int getValueFromBase64Alphabet(char character)\r\n {\r\n if (character >= 'A' && character <= 'Z')\r\n {\r\n return character - 'A';\r\n }\r\n if (character >= 'a' && character <= 'z')\r\n {\r\n return character - 'a' + 26;\r\n }\r\n if (character >= '0' && character <= '9')\r\n {\r\n return character - '0' + 52;\r\n }\r\n if (character == '+')\r\n {\r\n return 62;\r\n }\r\n if (character == '/')\r\n {\r\n return 63;\r\n }\r\n if (character == '=')\r\n {\r\n return 0;\r\n }\r\n return -1;\r\n }",
"public static void main(String[] args) {\n byte a=25;\n short b=124;\n int c=200;\n long d=50000L+10L*(a+b+c);\n System.out.println (d);\n\n short az=(short)(1000+10*(a+b+c));\n System.out.println (az);\n\n\n\n }",
"static void cpi_with_acc(String passed){\n\t\tint val1 = hexa_to_deci(registers.get('A'));\n\t\tint val2 = hexa_to_deci(passed.substring(4));\n\t\tS = val1>=val2?false:true;\n\t\tval2 = 256-val2;\n\t\tval2%=256;\n\t\tval1+=val2;\n\t\tCS = val1>255?true:false;\n\t\tString b = Integer.toBinaryString(val1);\n\t\tint ones=0;\n\t\tfor(int i=0;i<b.length();i++)\n\t\t\tif(b.charAt(i)=='1')\n\t\t\t\tones++;\n\t\tZ = ones==0?true:false;\n\t\tP = ones%2==0?true:false;\n\t}",
"private static String m3267z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 89;\n break;\n case 1:\n i2 = 79;\n break;\n case 2:\n i2 = 63;\n break;\n case 3:\n i2 = 125;\n break;\n default:\n i2 = 18;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }",
"private static int zzCMap(int input) {\n int offset = input & 255;\n return offset == input\n ? ZZ_CMAP_BLOCKS[offset]\n : ZZ_CMAP_BLOCKS[ZZ_CMAP_TOP[input >> 8] | offset];\n }",
"protected void doPadding(byte[] paramArrayOfByte, int paramInt)\r\n/* 107: */ {\r\n/* 108:172 */ int i = flush();\r\n/* 109:173 */ this.tmpBuf[i] = Byte.MIN_VALUE;\r\n/* 110:174 */ for (int j = i + 1; j < 32; j++) {\r\n/* 111:175 */ this.tmpBuf[j] = 0;\r\n/* 112: */ }\r\n/* 113:176 */ update(this.tmpBuf, i, 32 - i);\r\n/* 114:177 */ for (j = 0; j < i + 1; j++) {\r\n/* 115:178 */ this.tmpBuf[j] = 0;\r\n/* 116: */ }\r\n/* 117:179 */ update(this.tmpBuf, 0, 32);\r\n/* 118:180 */ encodeBEInt(this.V00 ^ this.V10 ^ this.V20, paramArrayOfByte, paramInt + 0);\r\n/* 119:181 */ encodeBEInt(this.V01 ^ this.V11 ^ this.V21, paramArrayOfByte, paramInt + 4);\r\n/* 120:182 */ encodeBEInt(this.V02 ^ this.V12 ^ this.V22, paramArrayOfByte, paramInt + 8);\r\n/* 121:183 */ encodeBEInt(this.V03 ^ this.V13 ^ this.V23, paramArrayOfByte, paramInt + 12);\r\n/* 122:184 */ encodeBEInt(this.V04 ^ this.V14 ^ this.V24, paramArrayOfByte, paramInt + 16);\r\n/* 123:185 */ encodeBEInt(this.V05 ^ this.V15 ^ this.V25, paramArrayOfByte, paramInt + 20);\r\n/* 124:186 */ encodeBEInt(this.V06 ^ this.V16 ^ this.V26, paramArrayOfByte, paramInt + 24);\r\n/* 125:187 */ if (getDigestLength() == 32) {\r\n/* 126:188 */ encodeBEInt(this.V07 ^ this.V17 ^ this.V27, paramArrayOfByte, paramInt + 28);\r\n/* 127: */ }\r\n/* 128: */ }",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}",
"public Substitute(){\n key = new byte[256];\n inverse = new byte[256];\n int[] intermediate = new int[256];\n for(int i = 1; i < 257; i++){\n int index = (int) (Math.random() * 256); //Generate random index between 0 and 255\n while(intermediate[index] != 0) //If that index already has a value, generate another random index\n index = (int) (Math.random() * 256);\n intermediate[index] = i; //Place value of i into generated location\n }\n for(int i = 0; i < intermediate.length; i++)\n key[i] = (byte) (intermediate[i] - 129); //Subtract 129 from each location so all values are from -128 to 127\n\n for(int i = 0; i < key.length; i++){ //Create the inverse mapping\n int index = key[i] + 128; //Location is adding 128 to what's stored in key array\n inverse[index] = (byte) (i - 128); //What's placed in that location is the value of i subtracted by 128\n }\n }",
"private char toChar(int u) {\n\t\t \n\t\treturn (char)(u + 64);\n\t}",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Azy;\u001ftQF\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var3 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var4 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1678 = (new String((char[])var3)).intern();\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var3)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 229;\r\n break;\r\n case 1:\r\n var10009 = 210;\r\n break;\r\n case 2:\r\n var10009 = 203;\r\n break;\r\n case 3:\r\n var10009 = 146;\r\n break;\r\n case 4:\r\n var10009 = 172;\r\n break;\r\n case 5:\r\n var10009 = 142;\r\n break;\r\n default:\r\n var10009 = 179;\r\n }\r\n\r\n ((Object[])var3)[var0] = (char)(var10007 ^ var4 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"private int m10275g(int i) {\r\n return (i >>> 1) ^ (-(i & 1));\r\n }",
"short getDQ1( byte[] buffer, short offset );",
"@Test void byteSmall() {\n\t\tAztecCode marker = new AztecEncoder().\n\t\t\t\taddUpper(\"A\").addBytes(new byte[]{1, 100, (byte)200}, 0, 3).addLower(\"a\").fixate();\n\n\t\t// clear the old data\n\t\tclearMarker(marker);\n\n\t\tassertTrue(new AztecDecoder().process(marker));\n\n\t\tassertEquals('A', marker.message.charAt(0));\n\t\tassertEquals(1, (int)marker.message.charAt(1));\n\t\tassertEquals(100, (int)marker.message.charAt(2));\n\t\tassertEquals(200, (int)marker.message.charAt(3));\n\t\tassertEquals('a', marker.message.charAt(4));\n\t}",
"private String UTF8Encode(String s) {\n\n\n s = s.replace(\"\\r\\n\", \"\\n\");\n int[] utftext = new int[s.length() * 3];\n int utftextlen = 0;\n for (int n = 0; n < s.length(); n++) {\n int c = s.charAt(n);\n if (c < 128) {\n utftext[utftextlen++] = c;\n Log.e(\"utf\", n + \" try:\" + c);\n } else if ((c > 127) && (c < 2048)) {\n utftext[utftextlen++] = (c >> 6) | 192;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 6) | 192));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n } else {\n utftext[utftextlen++] = (c >> 12) | 224;\n utftext[utftextlen++] = ((c >> 6) & 63) | 128;\n utftext[utftextlen++] = (c & 63) | 128;\n Log.e(\"utf\", n + \" try:\" + ((c >> 12) | 224));\n Log.e(\"utf\", n + \" try:\" + (((c >> 6) & 63) | 128));\n Log.e(\"utf\", n + \" try:\" + ((c & 63) | 128));\n }\n\n }\n int i = 0;\n char chr1, chr2, chr3;\n int enc1, enc2, enc3, enc4;\n StringBuilder string = new StringBuilder();\n while (i < utftextlen) {\n chr1 = (char) utftext[i++];\n chr2 = (char) utftext[i++];\n chr3 = (char) utftext[i++];\n enc1 = chr1 >> 2;\n enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n string.append(_keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4));\n }\n string.append(\"\");\n return string.toString();\n }",
"private static String m2380a(byte[] bArr, byte[] bArr2) {\n byte[] bArr3 = new byte[(((bArr.length + 2) / 3) * 4)];\n int length = bArr.length - (bArr.length % 3);\n int i = 0;\n for (int i2 = 0; i2 < length; i2 += 3) {\n int i3 = i + 1;\n bArr3[i] = bArr2[(bArr[i2] & 255) >> 2];\n int i4 = i3 + 1;\n int i5 = i2 + 1;\n bArr3[i3] = bArr2[((bArr[i2] & 3) << 4) | ((bArr[i5] & 255) >> 4)];\n int i6 = i4 + 1;\n int i7 = i2 + 2;\n bArr3[i4] = bArr2[((bArr[i5] & 15) << 2) | ((bArr[i7] & 255) >> 6)];\n i = i6 + 1;\n bArr3[i6] = bArr2[bArr[i7] & 63];\n }\n switch (bArr.length % 3) {\n case 1:\n int i8 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i9 = i8 + 1;\n bArr3[i8] = bArr2[(bArr[length] & 3) << 4];\n int i10 = i9 + 1;\n bArr3[i9] = 61;\n bArr3[i10] = 61;\n break;\n case 2:\n int i11 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i12 = i11 + 1;\n int i13 = length + 1;\n bArr3[i11] = bArr2[((bArr[length] & 3) << 4) | ((bArr[i13] & 255) >> 4)];\n int i14 = i12 + 1;\n bArr3[i12] = bArr2[(bArr[i13] & 15) << 2];\n bArr3[i14] = 61;\n break;\n }\n try {\n return new String(bArr3, \"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n throw new AssertionError(e);\n }\n }",
"private static int base64toInt(char c, byte[] alphaToInt) {\r\n int result = alphaToInt[c];\r\n if (result < 0)\r\n throw new IllegalArgumentException(\"Illegal character \" + c);\r\n return result;\r\n }",
"@Test(timeout = 4000)\n public void test095() throws Throwable {\n Byte byte0 = new Byte((byte)122);\n Byte.toUnsignedLong((byte)122);\n Byte.toUnsignedInt((byte)122);\n Byte.toUnsignedInt((byte)122);\n Byte.toUnsignedInt((byte)122);\n HashMap<String, String> hashMap0 = new HashMap<String, String>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n Short short0 = new Short((short) (-1979));\n jSONObject0.put(\"\", (int) (short) (-1979));\n jSONObject0.optDouble(\"\", (double) 122);\n JSONObject.testValidity(hashMap0);\n assertEquals(0, hashMap0.size());\n }",
"private void m10265b(long j) throws cf {\r\n int i = 0;\r\n while ((-128 & j) != 0) {\r\n int i2 = i + 1;\r\n this.f6476b[i] = (byte) ((int) ((127 & j) | 128));\r\n j >>>= 7;\r\n i = i2;\r\n }\r\n int i3 = i + 1;\r\n this.f6476b[i] = (byte) ((int) j);\r\n this.g.mo1990b(this.f6476b, 0, i3);\r\n }",
"public static int m22576g(int i) {\n return (i & -128) == 0 ? 1 : (i & -16384) == 0 ? 2 : (-2097152 & i) == 0 ? 3 : (i & -268435456) == 0 ? 4 : 5;\n }",
"private static int base64toInt(char c, byte[] alphaToInt) {\n int result = alphaToInt[c];\n if (result < 0) {\n throw new IllegalArgumentException(\"Illegal character \" + c);\n }\n return result;\n }",
"String getIntegerEncoding();",
"private int m10266c(int i) {\r\n return (i << 1) ^ (i >> 31);\r\n }",
"public abstract void mo4360a(byte b);",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"@Test\n public void testSleb128Failure() {\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (129)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (130)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (135)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (151)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (199)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (247)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (136)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (142)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (143)), 17 });\n performFailureTest(new byte[]{ ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (128)), ((byte) (255)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (129)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (130)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (135)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (151)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (199)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (247)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (136)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (142)), 17 });\n performFailureTest(new byte[]{ ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), ((byte) (255)), 17 });\n }",
"public abstract void mo9798a(byte b);",
"private int m1283a(int i, int i2) {\r\n int i3 = 1;\r\n for (int i4 = 0; i4 < i2; i4++) {\r\n i3 *= i;\r\n }\r\n return i3;\r\n }",
"@Override // com.google.protobuf.Utf8.Processor\n public void encodeUtf8Direct(CharSequence in, ByteBuffer out) {\n char c;\n long j;\n long outIx;\n long outLimit;\n long outIx2;\n char c2;\n long address = addressOffset(out);\n long outIx3 = ((long) out.position()) + address;\n long outLimit2 = ((long) out.limit()) + address;\n int inLimit = in.length();\n if (((long) inLimit) <= outLimit2 - outIx3) {\n int inIx = 0;\n while (true) {\n c = 128;\n j = 1;\n if (inIx < inLimit) {\n char c3 = in.charAt(inIx);\n if (c3 >= 128) {\n break;\n }\n UNSAFE.putByte(outIx3, (byte) c3);\n inIx++;\n outIx3 = 1 + outIx3;\n } else {\n break;\n }\n }\n if (inIx == inLimit) {\n out.position((int) (outIx3 - address));\n return;\n }\n while (inIx < inLimit) {\n char c4 = in.charAt(inIx);\n if (c4 < c && outIx3 < outLimit2) {\n UNSAFE.putByte(outIx3, (byte) c4);\n outLimit = outLimit2;\n outIx3 += j;\n c2 = 128;\n outIx = 1;\n outIx2 = address;\n } else if (c4 >= 2048 || outIx3 > outLimit2 - 2) {\n outIx2 = address;\n if ((c4 < 55296 || 57343 < c4) && outIx3 <= outLimit2 - 3) {\n long outIx4 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> '\\f') | 480));\n long outIx5 = outIx4 + 1;\n UNSAFE.putByte(outIx4, (byte) (((c4 >>> 6) & 63) | 128));\n UNSAFE.putByte(outIx5, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n outIx3 = outIx5 + 1;\n c2 = 128;\n outIx = 1;\n } else if (outIx3 <= outLimit2 - 4) {\n if (inIx + 1 != inLimit) {\n inIx++;\n char low = in.charAt(inIx);\n if (Character.isSurrogatePair(c4, low)) {\n int codePoint = Character.toCodePoint(c4, low);\n outLimit = outLimit2;\n long outIx6 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((codePoint >>> 18) | PageId.FINGERPRINT_ENROLLING_VALUE));\n long outIx7 = outIx6 + 1;\n UNSAFE.putByte(outIx6, (byte) (((codePoint >>> 12) & 63) | 128));\n long outIx8 = outIx7 + 1;\n c2 = 128;\n UNSAFE.putByte(outIx7, (byte) (((codePoint >>> 6) & 63) | 128));\n outIx = 1;\n outIx3 = outIx8 + 1;\n UNSAFE.putByte(outIx8, (byte) ((codePoint & 63) | 128));\n }\n }\n throw new UnpairedSurrogateException(inIx - 1, inLimit);\n } else if (55296 > c4 || c4 > 57343 || (inIx + 1 != inLimit && Character.isSurrogatePair(c4, in.charAt(inIx + 1)))) {\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + c4 + \" at index \" + outIx3);\n } else {\n throw new UnpairedSurrogateException(inIx, inLimit);\n }\n } else {\n outIx2 = address;\n long outIx9 = outIx3 + 1;\n UNSAFE.putByte(outIx3, (byte) ((c4 >>> 6) | 960));\n outIx3 = outIx9 + 1;\n UNSAFE.putByte(outIx9, (byte) ((c4 & '?') | 128));\n outLimit = outLimit2;\n c2 = 128;\n outIx = 1;\n }\n inIx++;\n c = c2;\n address = outIx2;\n outLimit2 = outLimit;\n j = outIx;\n }\n out.position((int) (outIx3 - address));\n return;\n }\n throw new ArrayIndexOutOfBoundsException(\"Failed writing \" + in.charAt(inLimit - 1) + \" at index \" + out.limit());\n }",
"int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}",
"public long encode(long value) {\n\n return value ^ (value >> 1);\n }",
"protected abstract int decodeLength ();",
"public void setVar128(java.lang.Boolean value) {\n this.var128 = value;\n }",
"public static void populateValues()\n\t{\n\t\tvalues = new int[127];\n\t\tfor(int i = 0; i < 127; i++)\n\t\t{\n\t\t\tif(i < 64)\n\t\t\t\tvalues[i] = 1;\n\t\t\telse if (i < 96)\n\t\t\t\tvalues[i] = 2;\n\t\t\telse if (i < 112)\n\t\t\t\tvalues[i] = 4;\n\t\t\telse if (i < 120)\n\t\t\t\tvalues[i] = 8;\n\t\t\telse if (i < 124)\n\t\t\t\tvalues[i] = 16;\n\t\t\telse if (i < 126)\n\t\t\t\tvalues[i] = 32;\n\t\t\telse \n\t\t\t\tvalues[i] = 64;\n\t\t}\n\t}",
"public final void mo4383c(long j) {\n try {\n byte[] bArr = this.f20653b;\n int i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) j);\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 8));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 16));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 24));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 32));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 40));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 48));\n bArr = this.f20653b;\n i = this.f20656e;\n this.f20656e = i + 1;\n bArr[i] = (byte) ((int) (j >> 56));\n } catch (long j2) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), j2);\n }\n }",
"int mo27483b();",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"private void method_252(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14) {\n boolean var21 = field_759;\n int var15 = 256 - var14;\n\n try {\n int var16 = var4;\n int var17 = -var9;\n if(var21 || var17 < 0) {\n do {\n int var18 = (var5 >> 16) * var12;\n int var19 = -var8;\n if(!var21 && var19 >= 0) {\n var5 += var11;\n var4 = var16;\n var6 += var7;\n var17 += var13;\n } else {\n do {\n label23: {\n var3 = var2[(var4 >> 16) + var18];\n if(var3 != 0) {\n int var20 = var1[var6];\n var1[var6++] = ((var3 & 16711935) * var14 + (var20 & 16711935) * var15 & -16711936) + ((var3 & '\\uff00') * var14 + (var20 & '\\uff00') * var15 & 16711680) >> 8;\n if(!var21) {\n break label23;\n }\n }\n\n ++var6;\n }\n\n var4 += var10;\n ++var19;\n } while(var19 < 0);\n\n var5 += var11;\n var4 = var16;\n var6 += var7;\n var17 += var13;\n }\n } while(var17 < 0);\n\n }\n } catch (Exception var22) {\n System.out.println(\"error in tran_scale\"); // authentic System.out.println\n }\n }",
"private static String m6490z(char[] cArr) {\n int length = cArr.length;\n for (int i = 0; length > i; i++) {\n int i2;\n char c = cArr[i];\n switch (i % 5) {\n case 0:\n i2 = 79;\n break;\n case 1:\n i2 = 95;\n break;\n case 2:\n i2 = 53;\n break;\n case 3:\n i2 = 70;\n break;\n default:\n i2 = 108;\n break;\n }\n cArr[i] = (char) (i2 ^ c);\n }\n return new String(cArr).intern();\n }",
"public static void main(String[] args) {\n\n\n\n\n\n System.out.println((char) ('a' - 32));\n }",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"protected final int getBMPOffset(char paramChar) {\n/* 277 */ return (paramChar >= '?' && paramChar <= '?') ? \n/* */ \n/* 279 */ getRawOffset(320, paramChar) : \n/* 280 */ getRawOffset(0, paramChar);\n/* */ }",
"private void method_256(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10) {\n boolean var12 = field_759;\n int var11 = var9;\n if(var12 || var9 < 0) {\n do {\n label16: {\n var3 = var2[(var5 >> 17) + (var6 >> 17) * var10];\n if(var3 != 0) {\n this.pixels[var4++] = var3;\n if(!var12) {\n break label16;\n }\n }\n\n ++var4;\n }\n\n var5 += var7;\n var6 += var8;\n ++var11;\n } while(var11 < 0);\n\n }\n }",
"byte[] mo12209b(int i);",
"byte mo25264b(int i);",
"@Test\n public void testEncodingNegative()\n {\n byte[] orginalBytes = sensitiveString.getBytes();\n byte[] encoded = StateUtils.encode(orginalBytes);\n encoded[1] = (byte) 9;\n try\n {\n byte[] decoded = StateUtils.decode(encoded);\n Assertions.assertFalse(Arrays.equals(decoded, orginalBytes));\n }\n catch (Exception e)\n {\n // do nothing\n }\n }"
] | [
"0.68482375",
"0.6664651",
"0.64156026",
"0.6057379",
"0.60180706",
"0.58829564",
"0.5855996",
"0.58297247",
"0.5787686",
"0.5775992",
"0.57604235",
"0.57397",
"0.569753",
"0.56494874",
"0.56426114",
"0.56353205",
"0.56279075",
"0.5610336",
"0.56043893",
"0.56032044",
"0.55524206",
"0.5518257",
"0.55046123",
"0.54943776",
"0.54887044",
"0.54731405",
"0.5467162",
"0.546122",
"0.5456063",
"0.5447852",
"0.5438225",
"0.54334295",
"0.54192483",
"0.5415663",
"0.54139364",
"0.54043627",
"0.5385706",
"0.53851676",
"0.53808296",
"0.5377354",
"0.53725976",
"0.5359598",
"0.5357178",
"0.5351992",
"0.5346596",
"0.5339643",
"0.53392565",
"0.5335823",
"0.5335823",
"0.5335823",
"0.5327237",
"0.53154135",
"0.5284769",
"0.52811325",
"0.52811235",
"0.52802485",
"0.52790505",
"0.52693063",
"0.5264087",
"0.5258408",
"0.52562714",
"0.52494353",
"0.5245454",
"0.52385926",
"0.52357066",
"0.52326435",
"0.52282614",
"0.5222403",
"0.5219964",
"0.52161235",
"0.52109814",
"0.52055895",
"0.5202143",
"0.5199254",
"0.51933867",
"0.51899827",
"0.51895875",
"0.5188205",
"0.5184182",
"0.5183476",
"0.51803035",
"0.5176816",
"0.5176621",
"0.51681334",
"0.51654345",
"0.51626897",
"0.5160097",
"0.5157213",
"0.5156703",
"0.5156488",
"0.5154626",
"0.5150764",
"0.51425225",
"0.5139233",
"0.5138113",
"0.51296353",
"0.51290387",
"0.5126839",
"0.5120387",
"0.51182437",
"0.5113775"
] | 0.0 | -1 |
/ 133: / 134: | public void setDocumentoBase(DocumentoBase documentoBase)
/* 135: */ {
/* 136:158 */ this.documentoBase = documentoBase;
/* 137: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo21787L() {\n }",
"public void mo21794S() {\n }",
"public int mo3384v() {\n return 0;\n }",
"public void mo21789N() {\n }",
"protected int mo3987c() {\n return -1;\n }",
"public void mo133108l() {\n mo133081a(1000);\n }",
"void mo12637b();",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo1334a() {\n m18933c();\n }",
"void mo33732Px();",
"public void method_4270() {}",
"public void mo21786K() {\n }",
"public void mo12930a() {\n }",
"public void mo21785J() {\n }",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }",
"private void m50366E() {\n }",
"public void mo21792Q() {\n }",
"public void mo21783H() {\n }",
"static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public int mo13093a() {\n return this.f4233b;\n }",
"public void mo21788M() {\n }",
"public void mo21782G() {\n }",
"public final void mo12688e_() {\n }",
"public int mo1534c() {\n return 2;\n }",
"public void mo38117a() {\n }",
"public void mo3749d() {\n }",
"public void mo23813b() {\n }",
"public void mo21779D() {\n }",
"public void mo21877s() {\n }",
"public void mo21791P() {\n }",
"int getUnknown13();",
"public int mo3356c() {\n return 0;\n }",
"String mo30285c(long j);",
"C1458cs mo7613iS();",
"public void mo4683c() {\n mo4679a(3);\n }",
"public void mo1334a() {\n m18902c();\n }",
"public void mo3376r() {\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"public void mo33392b() {\n mo33395e();\n }",
"public abstract long mo13681c();",
"public void mo56167c() {\n }",
"public void mo1335b() {\n m18902c();\n }",
"public void mo9233aH() {\n }",
"public void mo21879u() {\n }",
"public void mo21780E() {\n }",
"public void mo9137b() {\n }",
"public java.lang.Integer getVar133() {\n return var133;\n }",
"static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"private int m3944c(C0820v vVar, C0788a0 a0Var, int i) {\n if (!a0Var.mo4536g()) {\n return this.f3125N.mo4307b(i);\n }\n int i2 = this.f3123L.get(i, -1);\n if (i2 != -1) {\n return i2;\n }\n int a = vVar.mo4796a(i);\n if (a != -1) {\n return this.f3125N.mo4307b(a);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Cannot find span size for pre layout position. It is not cached, not in the adapter. Pos:\");\n sb.append(i);\n Log.w(\"GridLayoutManager\", sb.toString());\n return 1;\n }",
"public short mo34e() {\n return 140;\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"public void mo12202n() {\n this.f10959n = -1;\n }",
"public int method_113() {\r\n return 0;\r\n }",
"void mo12638c();",
"static void m14938f(String str) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }",
"private void kk12() {\n\n\t}",
"public void mo12314c(String str) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }",
"public java.lang.Integer getVar133() {\n return var133;\n }",
"public static int m8655e() {\n return 8;\n }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public int mo36g() {\n return 8;\n }",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public int arn() {\n return 383;\n }",
"public void mo9848a() {\n }",
"public void func_70295_k_() {}",
"private void m50367F() {\n }",
"public void mo14476c() {\n super.mo14476c();\n this.f10138c = 0.0f;\n }",
"public abstract int mo9749n();",
"C2841w mo7234g();",
"public final void mo11687c() {\n }",
"static void m14941f(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }",
"@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }",
"public void mo3370l() {\n }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"public abstract int mo8526p();",
"public int mo36g() {\n return 4;\n }",
"public void mo21793R() {\n }",
"public int mo3361f() {\n return 1;\n }",
"public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"int mo13164g();",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo33394d() {\n mo33393c();\n mo33395e();\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"C3676k mo12649b();",
"public static int m8651d() {\n return 4;\n }",
"public void mo44053a() {\n }",
"void mo1507n();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
] | [
"0.6031323",
"0.59166425",
"0.58003706",
"0.5789848",
"0.57057375",
"0.56979513",
"0.56873953",
"0.56843996",
"0.56833106",
"0.56824654",
"0.56755435",
"0.5660506",
"0.5646113",
"0.562926",
"0.5625931",
"0.56065834",
"0.559312",
"0.5585119",
"0.55827093",
"0.5579499",
"0.55700773",
"0.55406255",
"0.5536177",
"0.55359244",
"0.553004",
"0.5522996",
"0.55229074",
"0.55213547",
"0.55208313",
"0.5513349",
"0.5505157",
"0.550431",
"0.5501339",
"0.5501116",
"0.5498484",
"0.5496256",
"0.5489916",
"0.54869413",
"0.545861",
"0.5458303",
"0.5453794",
"0.5452656",
"0.5452456",
"0.54523635",
"0.5450234",
"0.5445225",
"0.54441726",
"0.5444095",
"0.5431881",
"0.5429748",
"0.54264563",
"0.5424269",
"0.54130363",
"0.54128224",
"0.54127854",
"0.54108256",
"0.5409573",
"0.5407754",
"0.53990847",
"0.53900003",
"0.5383691",
"0.5379988",
"0.5378398",
"0.53780526",
"0.537765",
"0.53733736",
"0.5366708",
"0.53666025",
"0.53663164",
"0.53661215",
"0.5362771",
"0.536077",
"0.53605884",
"0.5358281",
"0.5354749",
"0.5351746",
"0.5350073",
"0.5344655",
"0.533662",
"0.5334387",
"0.5330781",
"0.53293383",
"0.5327271",
"0.53264666",
"0.5324615",
"0.53234345",
"0.53184414",
"0.5316144",
"0.53144825",
"0.53086716",
"0.5308024",
"0.53080124",
"0.5296823",
"0.529176",
"0.52872825",
"0.5287022",
"0.52853596",
"0.52847034",
"0.52847034",
"0.52847034",
"0.52847034"
] | 0.0 | -1 |
/ 138: / 139: | public PuntoDeVenta getPuntoDeVenta()
/* 140: */ {
/* 141:162 */ return this.puntoDeVenta;
/* 142: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"protected int mo3987c() {\n return -1;\n }",
"public void method_4270() {}",
"public void mo21794S() {\n }",
"private void m50366E() {\n }",
"public void mo23813b() {\n }",
"void mo12637b();",
"public void mo115190b() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo38117a() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void mo21782G() {\n }",
"static void m14937e(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public final void mo11687c() {\n }",
"public void mo9137b() {\n }",
"public void mo3749d() {\n }",
"public abstract long mo13681c();",
"int getUnknown13();",
"public void mo115188a() {\n }",
"public void mo21785J() {\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo21787L() {\n }",
"void mo1493c();",
"public void mo21783H() {\n }",
"public void mo21779D() {\n }",
"public void mo9848a() {\n }",
"public void mo21786K() {\n }",
"protected String[] mo1613b() {\r\n return f4638d;\r\n }",
"public void mo21792Q() {\n }",
"public void mo21780E() {\n }",
"public void mo21879u() {\n }",
"public void mo56167c() {\n }",
"public void mo21789N() {\n }",
"public void mo21795T() {\n }",
"static synchronized int[] zzeT(java.lang.String r13) {\n /*\n r8 = com.google.android.gms.internal.zzaqx.class;\n monitor-enter(r8);\n r1 = 0;\n r9 = r13.length();\t Catch:{ all -> 0x001c }\n r0 = 0;\n r6 = 0;\n r4 = 0;\n r3 = 0;\n r5 = r6;\n r6 = r0;\n L_0x000e:\n if (r1 >= r9) goto L_0x0205;\n L_0x0010:\n r0 = 2045; // 0x7fd float:2.866E-42 double:1.0104E-320;\n if (r6 <= r0) goto L_0x001f;\n L_0x0014:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Pattern is too large!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x001c:\n r0 = move-exception;\n monitor-exit(r8);\n throw r0;\n L_0x001f:\n r0 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r2 = 0;\n switch(r0) {\n case 42: goto L_0x00e1;\n case 43: goto L_0x0109;\n case 46: goto L_0x0131;\n case 91: goto L_0x0044;\n case 92: goto L_0x0143;\n case 93: goto L_0x0071;\n case 123: goto L_0x00a2;\n case 125: goto L_0x00ce;\n default: goto L_0x0027;\n };\t Catch:{ all -> 0x001c }\n L_0x0027:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n L_0x0030:\n if (r6 == 0) goto L_0x0191;\n L_0x0032:\n if (r0 == 0) goto L_0x015f;\n L_0x0034:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r0[r2] = r4;\t Catch:{ all -> 0x001c }\n r0 = 0;\n r2 = r3;\n L_0x003c:\n r2 = r2 + 1;\n r3 = r0;\n r4 = r5;\n r5 = r6;\n r6 = r1;\n r1 = r2;\n goto L_0x000e;\n L_0x0044:\n if (r5 == 0) goto L_0x0050;\n L_0x0046:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x0050:\n r0 = r1 + 1;\n r0 = r13.charAt(r0);\t Catch:{ all -> 0x001c }\n r2 = 94;\n if (r0 != r2) goto L_0x0069;\n L_0x005a:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -2;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n r1 = r1 + 1;\n L_0x0063:\n r1 = r1 + 1;\n r6 = 1;\n r5 = r6;\n r6 = r0;\n goto L_0x000e;\n L_0x0069:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -1;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n goto L_0x0063;\n L_0x0071:\n if (r5 != 0) goto L_0x007d;\n L_0x0073:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x007d:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r5 = r6 + -1;\n r3 = r3[r5];\t Catch:{ all -> 0x001c }\n r5 = -1;\n if (r3 == r5) goto L_0x0089;\n L_0x0086:\n r5 = -2;\n if (r3 != r5) goto L_0x0091;\n L_0x0089:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"You must define characters in a set.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0091:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r5 = -3;\n r3[r6] = r5;\t Catch:{ all -> 0x001c }\n r5 = 0;\n r3 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00a2:\n if (r5 != 0) goto L_0x021b;\n L_0x00a4:\n if (r6 == 0) goto L_0x00b2;\n L_0x00a6:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + -1;\n r4 = r4[r7];\t Catch:{ all -> 0x001c }\n r4 = zzjL(r4);\t Catch:{ all -> 0x001c }\n if (r4 == 0) goto L_0x00ba;\n L_0x00b2:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00ba:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r4 = r6 + 1;\n r10 = -5;\n r7[r6] = r10;\t Catch:{ all -> 0x001c }\n r6 = r1 + 1;\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r6;\n r6 = r5;\n r5 = r1;\n r1 = r2;\n r2 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x00ce:\n if (r4 == 0) goto L_0x021b;\n L_0x00d0:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r10 = -6;\n r4[r6] = r10;\t Catch:{ all -> 0x001c }\n r4 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00e1:\n if (r5 != 0) goto L_0x021b;\n L_0x00e3:\n if (r6 == 0) goto L_0x00f1;\n L_0x00e5:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x00f9;\n L_0x00f1:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00f9:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -7;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0109:\n if (r5 != 0) goto L_0x021b;\n L_0x010b:\n if (r6 == 0) goto L_0x0119;\n L_0x010d:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x0121;\n L_0x0119:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0121:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -8;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0131:\n if (r5 != 0) goto L_0x021b;\n L_0x0133:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -4;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0143:\n r0 = r1 + 1;\n if (r0 < r9) goto L_0x014f;\n L_0x0147:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Escape found at end of pattern!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x014f:\n r2 = r1 + 1;\n r0 = r13.charAt(r2);\t Catch:{ all -> 0x001c }\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x015f:\n r1 = r3 + 2;\n if (r1 >= r9) goto L_0x0182;\n L_0x0163:\n r1 = r3 + 1;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 45;\n if (r1 != r7) goto L_0x0182;\n L_0x016d:\n r1 = r3 + 2;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 93;\n if (r1 == r7) goto L_0x0182;\n L_0x0177:\n r0 = 1;\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3 + 1;\n goto L_0x003c;\n L_0x0182:\n r1 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r2 + 1;\n r1[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r7 + 1;\n r2[r7] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0191:\n if (r5 == 0) goto L_0x01fa;\n L_0x0193:\n r1 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r4 = r13.indexOf(r1, r3);\t Catch:{ all -> 0x001c }\n if (r4 >= 0) goto L_0x01a3;\n L_0x019b:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Range not ended with '}'\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x01a3:\n r1 = r13.substring(r3, r4);\t Catch:{ all -> 0x001c }\n r3 = 44;\n r7 = r1.indexOf(r3);\t Catch:{ all -> 0x001c }\n if (r7 >= 0) goto L_0x01c7;\n L_0x01af:\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r1;\n L_0x01b4:\n if (r3 <= r1) goto L_0x01e7;\n L_0x01b6:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ NumberFormatException -> 0x01be }\n r1 = \"Range quantifier minimum is greater than maximum\";\n r0.<init>(r1);\t Catch:{ NumberFormatException -> 0x01be }\n throw r0;\t Catch:{ NumberFormatException -> 0x01be }\n L_0x01be:\n r0 = move-exception;\n r1 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r2 = \"Range number format incorrect\";\n r1.<init>(r2, r0);\t Catch:{ all -> 0x001c }\n throw r1;\t Catch:{ all -> 0x001c }\n L_0x01c7:\n r3 = 0;\n r3 = r1.substring(r3, r7);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r1.length();\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r10 + -1;\n if (r7 != r10) goto L_0x01dc;\n L_0x01d8:\n r1 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n goto L_0x01b4;\n L_0x01dc:\n r7 = r7 + 1;\n r1 = r1.substring(r7);\t Catch:{ NumberFormatException -> 0x01be }\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n goto L_0x01b4;\n L_0x01e7:\n r7 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r2 + 1;\n r7[r2] = r3;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r2 = r10 + 1;\n r3[r10] = r1;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r0;\n r1 = r4;\n r4 = r5;\n r5 = r6;\n r6 = r2;\n goto L_0x000e;\n L_0x01fa:\n if (r1 == 0) goto L_0x0217;\n L_0x01fc:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0205:\n if (r5 == 0) goto L_0x020f;\n L_0x0207:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Set was not terminated!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x020f:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = java.util.Arrays.copyOf(r0, r6);\t Catch:{ all -> 0x001c }\n monitor-exit(r8);\n return r0;\n L_0x0217:\n r1 = r2;\n r2 = r3;\n goto L_0x003c;\n L_0x021b:\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaqx.zzeT(java.lang.String):int[]\");\n }",
"public int method_113() {\r\n return 0;\r\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public abstract String mo13682d();",
"C1458cs mo7613iS();",
"static void m14941f(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }",
"public void mo21791P() {\n }",
"public final void mo51373a() {\n }",
"void mo57278c();",
"void mo12638c();",
"public void mo12930a() {\n }",
"public void mo21793R() {\n }",
"public abstract int mo8526p();",
"public abstract String mo118046b();",
"public abstract void mo53562a(C18796a c18796a);",
"public void mo8738a() {\n }",
"public void mo9233aH() {\n }",
"public void mo2740a() {\n }",
"public void mo1403c() {\n }",
"void mo3194r();",
"public abstract long mo9229aD();",
"public void mo1405e() {\n }",
"public int method_209() {\r\n return 0;\r\n }",
"public void mo21788M() {\n }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public static int m8655e() {\n return 8;\n }",
"void mo72114c();",
"void mo57277b();",
"public final void mo1285b() {\n }",
"public void mo12627b() {\n try {\n this.f4764b.mo12945a(this.f4765c);\n } catch (IOException unused) {\n }\n }",
"public void mo44053a() {\n }",
"public void mo21877s() {\n }",
"void m63698a() {\n m63702c();\n m63701b();\n }",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public void mo21878t() {\n }",
"public void mo4359a() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public abstract long mo131997a() throws IOException;",
"public abstract void mo27385c();",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }",
"private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"int mo44965b();",
"public abstract String mo11611b();",
"public void mo33392b() {\n mo33395e();\n }",
"public void mo3946e() {\n m25427g();\n }",
"public abstract int mo13680b();",
"public final void mo12688e_() {\n }",
"void mo72113b();",
"public void mo21784I() {\n }",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }",
"static void m14933d(String str, Throwable th) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"void mo41086b();",
"public void mo12313b(String str, Throwable th) {\n int a = m14928a();\n int d = C3205z0.INFO.mo12550d();\n }",
"abstract String mo1748c();",
"public void mo97908d() {\n }",
"public void mo6944a() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"long getUnknown72();",
"static void m14938f(String str) {\n int b = m14929b();\n int d = C3205z0.DEBUG.mo12550d();\n }",
"int mo13164g();",
"public final void mo91715d() {\n }",
"public abstract long mo24410c();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }"
] | [
"0.6307385",
"0.6001657",
"0.59998816",
"0.59321904",
"0.58992887",
"0.5859617",
"0.5852623",
"0.58263165",
"0.5803636",
"0.5796897",
"0.57905525",
"0.57785636",
"0.57607466",
"0.57518065",
"0.5747104",
"0.57362986",
"0.5717662",
"0.5704895",
"0.5696163",
"0.5684736",
"0.5681409",
"0.56805253",
"0.56508344",
"0.56501335",
"0.5647402",
"0.5647143",
"0.56417763",
"0.5638333",
"0.56275284",
"0.5608856",
"0.56044173",
"0.55975604",
"0.5591298",
"0.5586722",
"0.55831724",
"0.5577816",
"0.5568891",
"0.5565365",
"0.55502075",
"0.5547096",
"0.55401784",
"0.5539197",
"0.55347663",
"0.5524352",
"0.5521906",
"0.551757",
"0.55161226",
"0.5514664",
"0.5510611",
"0.5509792",
"0.5507597",
"0.550689",
"0.55067533",
"0.55058825",
"0.5500234",
"0.549456",
"0.5493865",
"0.54912883",
"0.54882276",
"0.5484879",
"0.54752654",
"0.54696727",
"0.54584616",
"0.54571545",
"0.54529697",
"0.5451194",
"0.5445888",
"0.54458463",
"0.544438",
"0.543525",
"0.5434965",
"0.5429967",
"0.5429355",
"0.542751",
"0.5409961",
"0.5409775",
"0.54095525",
"0.54081404",
"0.54065406",
"0.5404084",
"0.5402274",
"0.5400494",
"0.5392154",
"0.53896856",
"0.53862417",
"0.5384923",
"0.5383483",
"0.53755677",
"0.5373657",
"0.5373436",
"0.53716916",
"0.53659487",
"0.53656214",
"0.5364901",
"0.5360063",
"0.53575903",
"0.5354365",
"0.5351239",
"0.5348562",
"0.5347146",
"0.5347146"
] | 0.0 | -1 |
/ 143: / 144: | public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)
/* 145: */ {
/* 146:166 */ this.puntoDeVenta = puntoDeVenta;
/* 147: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getMid();",
"long getMid();",
"void mo33732Px();",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }",
"private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }",
"public abstract long mo9748m();",
"int mo13164g();",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"String mo30285c(long j);",
"float mo56157b();",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"private final void m46511P() {\n C15593cd.m50346a(this.f40707H.f44224a, this.f40705F, \"aeh2\");\n }",
"public int mo36g() {\n return 8;\n }",
"Period mo20733e();",
"public int mo36g() {\n return 4;\n }",
"private void giveScords(){\n \t//bingo 題數, seconds花費秒數\n \tint totalSec = (int)seconds;\n \t\n \tif(correct){\n \t\tif(totalSec<=5){\n \t\t\tuserPoints = userPoints + 150;\n \t\t}else if(totalSec<=10){\n \t\t\tuserPoints = userPoints + 125;\n \t\t}else if(totalSec<=15){\n \t\t\tuserPoints = userPoints + 100;\n \t\t}else if(totalSec<=20){\n \t\t\tuserPoints = userPoints + 80;\n \t\t}\n \t}\n }",
"public abstract long mo24412e();",
"int getMid(int s, int e) {\n return s + (e - s) / 2;\n }",
"long mo1154d();",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"void mo25957a(long j, long j2);",
"public double getPauseBetweenMIDISends() \n {\n return 0.0;\n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"int getCurrentXOfSS();",
"float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }",
"public double pidGet () {\n return super.pidGet() % 360D;\n }",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }",
"@Test(timeout = 4000)\n public void test41() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickGeneric(13, 48, (-2212.2532659315993));\n assertEquals(\"id=13 RTVolume=-2212.2532659315993\", string0);\n }",
"public abstract long mo9755t();",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }",
"public abstract long mo9229aD();",
"long mo1685a(C2369e c2369e);",
"float mo106363e();",
"public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }",
"public static int m8655e() {\n return 8;\n }",
"public static void main(String[] args) {\n\t\tint lol = (int)(-1 % 6);\n\t\tint lol2 = (int)(-2 % 6);\n\t\tSystem.out.printf(\"%d %d\\n\", lol, lol2);\n\t\tVector3 megaCoords = Position.scaleToCoordinates(new Vector3(-200, 0, 5), CHUNK_MAX_SIZE);\n\t\tSystem.out.println(megaCoords);\n\t}",
"private int m5278d(int pos, int cmd) {\n int end;\n int start;\n for (int i = this.f3533c.size() - 1; i >= 0; i--) {\n C1070b postponed = (C1070b) this.f3533c.get(i);\n int i2 = postponed.f3539a;\n if (i2 == 8) {\n if (postponed.f3540b < postponed.f3542d) {\n start = postponed.f3540b;\n end = postponed.f3542d;\n } else {\n start = postponed.f3542d;\n end = postponed.f3540b;\n }\n if (pos < start || pos > end) {\n int i3 = postponed.f3540b;\n if (pos < i3) {\n if (cmd == 1) {\n postponed.f3540b = i3 + 1;\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3540b = i3 - 1;\n postponed.f3542d--;\n }\n }\n } else {\n int i4 = postponed.f3540b;\n if (start == i4) {\n if (cmd == 1) {\n postponed.f3542d++;\n } else if (cmd == 2) {\n postponed.f3542d--;\n }\n pos++;\n } else {\n if (cmd == 1) {\n postponed.f3540b = i4 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i4 - 1;\n }\n pos--;\n }\n }\n } else {\n int i5 = postponed.f3540b;\n if (i5 <= pos) {\n if (i2 == 1) {\n pos -= postponed.f3542d;\n } else if (i2 == 2) {\n pos += postponed.f3542d;\n }\n } else if (cmd == 1) {\n postponed.f3540b = i5 + 1;\n } else if (cmd == 2) {\n postponed.f3540b = i5 - 1;\n }\n }\n }\n for (int i6 = this.f3533c.size() - 1; i6 >= 0; i6--) {\n C1070b op = (C1070b) this.f3533c.get(i6);\n if (op.f3539a == 8) {\n int i7 = op.f3542d;\n if (i7 == op.f3540b || i7 < 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n } else if (op.f3542d <= 0) {\n this.f3533c.remove(i6);\n mo8470a(op);\n }\n }\n return pos;\n }",
"public void ex() {\n int inches = 86; \n int pie = 12; //1 pie = 12 inches \n //Operaciones para obtener la cantidad de pies e inches\n int cant = inches / pie; \n int res = inches % pie;\n //Muestra de resultados\n System.out.println(inches + \" pulgadas es equivalente a\\n \" + \n cant + \" pies \\n \" + res + \" pulgadas \");\n }",
"public static String m13823m() {\n return f12476h;\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int getPauseBetweenSysexFragments() \n { Some synths have small MIDI buffers and are so slow that you\n // cannot send large messages (that is, sysex) to them at full\n // speed without them dying. The Kawai K1 is an example of this.\n // The methods getPauseBetweenSysexFragments() and\n // getSysexFragmentSize() allow you to break large sysex messages\n // into multiple fragments, each with a pause between, in order\n // to send a message successfully.\n //\n // You can also manually break up a sysex message into fragments,\n // and manually insert whatever time you'd like between them.\n // This is done using the DividedSysex class.\n //\n return 0;\n }",
"public abstract Integer mo36210m();",
"long mo25074b();",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"public short mo34e() {\n return 140;\n }",
"long getUnknown72();",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"C1458cs mo7613iS();",
"@Test(timeout = 4000)\n public void test50() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickEFP((-2147), 10, 10, \".^|7={wR>bl,rlfYN\", 10, 484, \".^|7={wR>bl,rlfYN\", 484, 484);\n assertEquals(\"id=-2147 bidOptComp: basisPoints = 10.0/.^|7={wR>bl,rlfYN impliedFuture = 10.0 holdDays = 484 futureExpiry = .^|7={wR>bl,rlfYN dividendImpact = 484.0 dividends to expiry = 484.0\", string0);\n }",
"private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }",
"@Override\n\tpublic void teclaCorrigeDigitada() {\n\t\t\n\t}",
"long mo117970a();",
"@Test(timeout = 4000)\n public void test099() throws Throwable {\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 127L, 127L);\n Range range1 = Range.of(127L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(127L, long0);\n \n long long1 = range1.getBegin(range_CoordinateSystem0);\n assertEquals(128L, long1);\n }",
"@Test(timeout = 4000)\n public void test119() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n range0.equals(range_CoordinateSystem0);\n range0.toString(range_CoordinateSystem0);\n Range range1 = Range.parseRange(\"[ 0 .. 9223372036854775806 ]/SB\");\n range0.equals(range1);\n range1.equals(\"[ 0 .. 9223372036854775806 ]/SB\");\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-32768L), 2147484380L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-32768L), 2147484380L);\n range1.getEnd();\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(2147484379L, long0);\n \n Object object0 = new Object();\n range0.getEnd();\n long long1 = range0.getBegin();\n assertEquals((-32769L), long1);\n }",
"final int ec_decode(final int _fti) {// FIXME it is called with int _ft, result uses as int\r\n\t\tfinal long _ft = ((long)_fti & 0xffffffffL);// java\r\n\t\tthis.ext = ( this.rng / _ft );\r\n\t\tlong s = (this.val / this.ext);\r\n\t\t// return (int)(_ft - EC_MINI( s + 1L, _ft ));\r\n\t\ts++;\r\n\t\tlong b = _ft;\r\n\t\tb -= s;\r\n\t\tif( b > 0 ) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\t\ts += b;\r\n\t\treturn (int)(_ft - s);\r\n\t}",
"public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }",
"int minverse(int z)\n {\n int to,t1;\n int q,y;\n if(z<=1)\n return z;\n t1=0x10001/z;\n y=0x10001%z;\n if(y==1)\n return (0xffff&(1-t1));\n to=1;\n do\n {\n q=z/y;\n z=z%y;\n to+=q*t1;\n if(z==1)\n return to;\n q=y/z;\n y=y%z;\n t1+=q*to;\n }while(y!=1);\n return (0xffff&(1-t1));\n }",
"private int pasarMilisegundoASegundo( long milisegundos )\n {\n return (int)(milisegundos/MILISEGUNDOS_EN_SEGUNDO);\n }",
"public abstract long mo24409b();",
"long mo49a();",
"BigInteger getResolution();",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"void mo12637b();",
"@Test(timeout = 4000)\n public void test45() throws Throwable {\n String string0 = EWrapperMsgGenerator.updateMktDepthL2(2146794261, 927, \"@\", 2146889800, (-180), 2146794261, (-1940));\n assertEquals(\"updateMktDepth: 2146794261 927 @ 2146889800 -180 2.146794261E9 -1940\", string0);\n }",
"@Test(timeout = 4000)\n public void test120() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.ofLength(9223372036854775806L);\n range0.getBegin();\n Consumer<Object> consumer0 = (Consumer<Object>) mock(Consumer.class, new ViolatedAssumptionAnswer());\n boolean boolean0 = range0.equals(range_CoordinateSystem0);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem1);\n assertEquals(\"[ 1 .. 9223372036854775806 ]/RB\", string0);\n \n Range range1 = Range.parseRange(\"[ 1 .. 9223372036854775806 ]/RB\");\n boolean boolean1 = range0.equals(range1);\n assertTrue(boolean1 == boolean0);\n assertFalse(range1.equals((Object)range0));\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals(0L, long0);\n }",
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public int mo34973b() {\n return 48;\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"@Test(timeout = 4000)\n public void test063() throws Throwable {\n Range range0 = Range.of((-2147483632L), 2133L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem0, (-2147483632L), 2133L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range1.toString(range_CoordinateSystem1);\n assertEquals(\"[ -2147483632 .. 2132 ]/0B\", string0);\n \n boolean boolean0 = range1.equals(range0);\n assertFalse(boolean0);\n \n String string1 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ -2147483632 .. 2134 ]/SB\", string1);\n \n Range.Comparators.values();\n long long0 = range0.getBegin();\n assertEquals((-2147483632L), long0);\n }",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"public double CalcoloPerimetro () {\r\n \treturn 4*(base);\r\n }",
"long mo20406a();",
"private int convert(int x, int y) {\n\treturn (150 * y) + x;\n }",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"public void mo133108l() {\n mo133081a(1000);\n }",
"public int mo12195g() {\n return this.f10961p.f10999g;\n }",
"@org.junit.Test\n public void testTicksForDesiredAngle90From540() {\n int resultsTicks = SwerveDriveMath.ticksForDesiredAngle(testConfig,540, 90);\n\n // Shortest path is to go left 90 (360 + 90 = 460)\n assertEquals(450, resultsTicks);\n }",
"@Test(timeout = 4000)\n public void test117() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n range0.toString(range_CoordinateSystem1);\n range0.toString();\n Range range1 = Range.parseRange(\"[ 32729 .. 2147483646 ]/0B\", range_CoordinateSystem1);\n range1.equals(range0);\n Range.CoordinateSystem.values();\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }",
"public abstract float mo9744i();",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"public abstract long mo9743h();",
"public static void main(String[] args) {\r\n\t\tint e=437;\r\n\t\tint a=0;\r\n\t\twhile(e>0)\r\n\t\t{\r\n\t\t\ta=e%10;\r\n\t\tSystem.out.print(a);\r\n\t\t\ta=e/10;\r\n\t\t\t\r\n\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tdouble S = 6;\t\t// 6 영국 신발 사이즈 -> 255mm\n\t\tdouble P = 0.75;\t// 75% 히트할 확률\n\t\tdouble L = 200;\t\t// 200파운드 -> 1,787원 / 1파운드\n\t\tdouble T = 0;\t\t// 0년(올해 유행) 1년 전 유행\n\t\tdouble A = 1;\t\t// 음주량 0잔 -> 8.83cm 1잔 -> 4.42cm\n\t\tdouble Y = 2;\t\t// 착용년도\n\t\tdouble ups1 = P * L * (Y + 9);\n\t\tdouble downs = (T + 1) * (A + 1) * (Y + 10) * (L + 20);\n\t\tdouble ups2 = 12 + 3 * S / 8.0;\n\t\tdouble high = ups1 / downs * ups2; // 밝혀낸 식\n\t\tSystem.out.printf(\"적당한 하이힐 높이는 %1$.2fcm입니다.\", high);\n\t}",
"public final long mo14857i() {\n return this.f6605e;\n }",
"public long getMinFeePerByteNQT()\r\n/* 120: */ {\r\n/* 121:125 */ return this.minFeePerByteNQT;\r\n/* 122: */ }",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"public final int mo114176a() {\n return this.f118838f * 1000;\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"private final void m126208g() {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n if (!this.f102568b.mIsFromDraft || !this.f102568b.hasStickers()) {\n boolean a = C39804em.m127437a(this.f102568b.videoWidth(), this.f102568b.videoHeight());\n if (a) {\n i = this.f102568b.videoWidth();\n } else {\n int[] k = C36964i.m118935k();\n if (k != null) {\n i3 = k[0];\n } else {\n i3 = 720;\n }\n i = m125903a(C7551d.m23567d(this.f102568b.videoWidth(), i3));\n }\n this.f102569c = i;\n if (a) {\n i2 = this.f102568b.videoHeight();\n } else {\n double d = (double) this.f102569c;\n Double.isNaN(d);\n i2 = (int) (Math.ceil(d / 9.0d) * 16.0d);\n }\n this.f102570d = i2;\n return;\n }\n if (this.f102568b.mVideoCanvasWidth > 0) {\n i4 = this.f102568b.mVideoCanvasWidth;\n } else {\n i4 = this.f102568b.videoWidth();\n }\n this.f102569c = i4;\n if (this.f102568b.mVideoCanvasHeight > 0) {\n i5 = this.f102568b.mVideoCanvasHeight;\n } else {\n i5 = this.f102568b.videoHeight();\n }\n this.f102570d = i5;\n }",
"public int mo36g() {\n return 2;\n }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }",
"public static int m112616c() {\n return C34943c.f91121q;\n }",
"private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }",
"C15430g mo56154a();",
"long mo133613a();"
] | [
"0.5455764",
"0.5455764",
"0.5169187",
"0.51539874",
"0.5118921",
"0.5103021",
"0.50778306",
"0.50651634",
"0.50534",
"0.503916",
"0.50254166",
"0.49767992",
"0.4970816",
"0.49547777",
"0.49317572",
"0.4926713",
"0.49187177",
"0.49163088",
"0.49135503",
"0.4890635",
"0.4884045",
"0.4872907",
"0.48604035",
"0.48594075",
"0.48573777",
"0.48463523",
"0.48399082",
"0.48397785",
"0.48384377",
"0.483571",
"0.482181",
"0.48161367",
"0.4814175",
"0.48115587",
"0.48097143",
"0.48095274",
"0.48070788",
"0.47863236",
"0.47827658",
"0.47787136",
"0.477723",
"0.47752085",
"0.47688895",
"0.4767997",
"0.47677147",
"0.4751604",
"0.47487482",
"0.47390476",
"0.47262013",
"0.4723737",
"0.47206783",
"0.47191104",
"0.47124374",
"0.47060454",
"0.46904734",
"0.46859658",
"0.46840957",
"0.468313",
"0.46811777",
"0.46790165",
"0.46789905",
"0.46787944",
"0.46777406",
"0.4677671",
"0.46776596",
"0.46764827",
"0.46685144",
"0.4666061",
"0.4663984",
"0.46609434",
"0.4658958",
"0.46577832",
"0.46551764",
"0.46523297",
"0.4651991",
"0.46513468",
"0.4650522",
"0.46479142",
"0.46469438",
"0.46402362",
"0.46391326",
"0.46352595",
"0.46328425",
"0.4632089",
"0.46313456",
"0.46313336",
"0.46297854",
"0.46282065",
"0.4623231",
"0.46215287",
"0.46171293",
"0.46131212",
"0.4611833",
"0.46105993",
"0.46088314",
"0.4607214",
"0.46067452",
"0.46054202",
"0.46032703",
"0.4602064",
"0.45986214"
] | 0.0 | -1 |
/ 148: / 149: | public Date getFechaInclusion()
/* 150: */ {
/* 151:170 */ return this.fechaInclusion;
/* 152: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int getDuration()\r\n/* 70: */ {\r\n/* 71: 71 */ return this.duration;\r\n/* 72: */ }",
"public void mo21794S() {\n }",
"public void mo21783H() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"private void m4823s() {\n float f = this.f6613u;\n if (f > 100.0f || f < 0.0f) {\n throw new IllegalArgumentException(\"Invalid percentage.\");\n }\n float j = (float) m4814j();\n this.f6595c.setY((float) ((int) (j - ((f / 100.0f) * j))));\n }",
"public void mo12628c() {\n }",
"private static int m14929b() {\n return C3150p0.m15121Y();\n }",
"public void method_4270() {}",
"public void mo21787L() {\n }",
"public abstract long mo9229aD();",
"private void m50366E() {\n }",
"public void mo2470d() {\n }",
"public void mo21779D() {\n }",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"public int mo36g() {\n return 4;\n }",
"void find_it () {\n xt = 210; yt = 105; fact = 50.0;\n if (viewflg != VIEW_FORCES) zoom_slider_pos_y = 50;\n current_part.spanfac = (int)(2.0*fact*current_part.aspect_rat*.3535);\n xt1 = xt + current_part.spanfac;\n yt1 = yt - current_part.spanfac;\n xt2 = xt - current_part.spanfac;\n yt2 = yt + current_part.spanfac;\n \n }",
"public void mo3749d() {\n }",
"public int mo36g() {\n return 8;\n }",
"public void mo21878t() {\n }",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public void mo21795T() {\n }",
"public void mo21788M() {\n }",
"public void mo21786K() {\n }",
"public void mo23813b() {\n }",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"@Test\n public void test81() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(228.0, 0.0, 228.0, 0.0);\n LogAxis logAxis0 = new LogAxis(\"8dVi7isYx7'@IN\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logAxis0);\n combinedRangeCategoryPlot0.setAnchorValue((-725.5571138));\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"public abstract long mo9755t();",
"public void mo21780E() {\n }",
"public void mo1405e() {\n }",
"int getBaseline() {\n\treturn ascent;\n}",
"public void mo21879u() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"long getMid();",
"long getMid();",
"public void mo21792Q() {\n }",
"public void mo21785J() {\n }",
"private final void m119128e() {\n String image = ((OtherContentModel) mo108896M()).getImage();\n if (image == null || image.length() == 0) {\n this.f85358a.setVisibility(8);\n return;\n }\n C24380s.m119258a(this.f85359b, ((OtherContentModel) mo108896M()).getImage(), C24380s.m119245a(60, (Context) null, 1, (Object) null), (int) (((float) C24380s.m119245a(60, (Context) null, 1, (Object) null)) / ((OtherContentModel) mo108896M()).getImageRatio()));\n C24380s.m119258a(this.f85360c, ((OtherContentModel) mo108896M()).getLeftTopImage(), (int) (((float) C24380s.m119245a(17, (Context) null, 1, (Object) null)) * ((OtherContentModel) mo108896M()).getLeftTopRatio()), C24380s.m119245a(17, (Context) null, 1, (Object) null));\n C24380s.m119258a(this.f85361d, ((OtherContentModel) mo108896M()).getRightBottomImage(), (int) (((float) C24380s.m119245a(15, (Context) null, 1, (Object) null)) * ((OtherContentModel) mo108896M()).getRightBottomRatio()), C24380s.m119245a(15, (Context) null, 1, (Object) null));\n this.f85358a.setVisibility(0);\n }",
"void mo33732Px();",
"public abstract long mo24410c();",
"public abstract long mo24412e();",
"public void mo21791P() {\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"long getUnknown72();",
"public void mo2471e() {\n }",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"public int mo36g() {\n return 2;\n }",
"public void mo21793R() {\n }",
"public long getTotalTime() {\n/* 73 */ return this.totalTime;\n/* */ }",
"public void mo38117a() {\n }",
"@Test(timeout = 4000)\n public void test48() throws Throwable {\n String string0 = EWrapperMsgGenerator.realtimeBar(1, 845L, 251L, (-2474L), 1521.6451568161, 845L, 0L, 1, 3197);\n assertEquals(\"id=1 time = 845 open=251.0 high=-2474.0 low=1521.6451568161 close=845.0 volume=0 count=3197 WAP=1.0\", string0);\n }",
"public abstract long mo13681c();",
"void mo1506m();",
"public long calHurt() {\n/* 82 */ return 0L;\n/* */ }",
"void mo1943l();",
"public abstract int mo9754s();",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"@Test\n public void test79() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \"( Z?rh;q|PN\";\n Number[][] numberArray0 = new Number[0][4];\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(stringArray0, numberArray0, numberArray0);\n LogAxis logAxis0 = new LogAxis(\"9\\\"0-oMh}]m6e RZQxr\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) null, (ValueAxis) logAxis0, (CategoryItemRenderer) null);\n RectangleEdge rectangleEdge0 = categoryPlot0.getDomainAxisEdge(0);\n }",
"@Test(timeout = 4000)\n public void test39() throws Throwable {\n String string0 = EWrapperMsgGenerator.tickSnapshotEnd((-1165));\n assertEquals(\"id=-1165 =============== end ===============\", string0);\n }",
"public void mo3894j() {\n if (!this.af) {\n float w;\n m10357a(this.ae);\n float f = this.ae.left + 0.0f;\n float f2 = 0.0f + this.ae.top;\n float f3 = this.ae.right + 0.0f;\n float f4 = this.ae.bottom + 0.0f;\n if (this.f9051o.m15397N()) {\n f += this.f9051o.m15398a(this.f9053q.m10333a());\n }\n if (this.f9052p.m15397N()) {\n f3 += this.f9052p.m15398a(this.f9054r.m10333a());\n }\n if (this.H.A() && this.H.h()) {\n w = ((float) this.H.f13939E) + this.H.w();\n if (this.H.m15381B() == XAxisPosition.BOTTOM) {\n f4 += w;\n } else if (this.H.m15381B() == XAxisPosition.TOP) {\n f2 += w;\n } else if (this.H.m15381B() == XAxisPosition.BOTH_SIDED) {\n f4 += w;\n f2 += w;\n }\n }\n f2 += getExtraTopOffset();\n f3 += getExtraRightOffset();\n f4 += getExtraBottomOffset();\n f += getExtraLeftOffset();\n w = C3283i.m15928a(this.f9048l);\n this.Q.m15851a(Math.max(w, f), Math.max(w, f2), Math.max(w, f3), Math.max(w, f4));\n if (this.B) {\n Log.i(\"MPAndroidChart\", \"offsetLeft: \" + f + \", offsetTop: \" + f2 + \", offsetRight: \" + f3 + \", offsetBottom: \" + f4);\n Log.i(\"MPAndroidChart\", \"Content: \" + this.Q.m15874k().toString());\n }\n }\n m10364g();\n mo3893f();\n }",
"public void mo4359a() {\n }",
"public double getMakespan(){return makespan;}",
"public void mo21880v() {\n }",
"public void mo44053a() {\n }",
"public abstract long mo9743h();",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"public int mo9232aG() {\n return 0;\n }",
"public abstract long mo24409b();",
"public abstract String mo9751p();",
"public String mo9504h() {\n return this.f1518g;\n }",
"public int getExtendedID()\r\n/* 12: */ {\r\n/* 13:17 */ return 10;\r\n/* 14: */ }",
"private Bitmap m14718q() {\n Bitmap a = this.f10962q.mo12204a(this.f10968w, this.f10967v, this.f10969x ? Config.ARGB_8888 : Config.RGB_565);\n m14714a(a);\n return a;\n }",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"public void mo12930a() {\n }",
"public void mo21784I() {\n }",
"public void mo9848a() {\n }",
"void mo12650d();",
"void mo21073d();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo21789N() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic int getTimeLinePos() {\n\t\treturn 0;\n\t}",
"@Test(timeout = 4000)\n public void test49() throws Throwable {\n String string0 = EWrapperMsgGenerator.currentTime((-532L));\n assertEquals(\"current time = -532 (Dec 31, 1969 11:51:08 PM)\", string0);\n }",
"public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }",
"public String getName() {\n/* 50 */ return \"M\";\n/* */ }",
"public void mo21867i() {\n mo21877s();\n }",
"public static void main(String[] args) {\n\t\tSystem.out.println( getDurationString(61, 61));\r\n\t\t System.out.println(getDurationString(60, 59));\r\n\t\t System.out.println(getDurationString(-610, 9));\r\n\t\t System.out.println( getDurationString(1, 6));\r\n\t\t System.out.println( getDurationString(3722));\r\n\t\t\r\n\t\t\r\n\t}",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }"
] | [
"0.5637329",
"0.5535765",
"0.5488462",
"0.5469369",
"0.54356873",
"0.539732",
"0.53896374",
"0.5367094",
"0.5352267",
"0.5343283",
"0.5340354",
"0.5331528",
"0.5307855",
"0.530436",
"0.5289543",
"0.5284782",
"0.52758247",
"0.52751577",
"0.5273255",
"0.5268581",
"0.52679026",
"0.52608514",
"0.5259919",
"0.5256384",
"0.52525806",
"0.524157",
"0.52409947",
"0.5235175",
"0.5233381",
"0.5224889",
"0.52172184",
"0.52108425",
"0.5206791",
"0.5204299",
"0.5203617",
"0.52016926",
"0.5201342",
"0.5193862",
"0.5183616",
"0.5181793",
"0.5181793",
"0.518178",
"0.5176976",
"0.5175581",
"0.5174533",
"0.5164251",
"0.5154647",
"0.51535314",
"0.5152863",
"0.51498526",
"0.51473165",
"0.51440424",
"0.5139734",
"0.513801",
"0.5136378",
"0.51358104",
"0.51319855",
"0.512938",
"0.51287633",
"0.5127489",
"0.51239395",
"0.5120828",
"0.5118939",
"0.51181686",
"0.51167095",
"0.510215",
"0.5097218",
"0.5096063",
"0.50957197",
"0.5094701",
"0.5089157",
"0.50852567",
"0.5084559",
"0.50842524",
"0.50799024",
"0.5078079",
"0.5077517",
"0.50750285",
"0.50740415",
"0.50709707",
"0.5070862",
"0.5068338",
"0.50678724",
"0.50655997",
"0.50555813",
"0.50540537",
"0.50540537",
"0.50540537",
"0.50540537",
"0.50540537",
"0.50540537",
"0.50540537",
"0.50538903",
"0.504825",
"0.50470316",
"0.50445795",
"0.5042581",
"0.5042127",
"0.50397986",
"0.50385404",
"0.5038495"
] | 0.0 | -1 |
/ 153: / 154: | public void setFechaInclusion(Date fechaInclusion)
/* 155: */ {
/* 156:174 */ this.fechaInclusion = fechaInclusion;
/* 157: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"private int m15036d(C1085v vVar) {\n if (this.f13675n == 2) {\n return 0;\n }\n int d = this.f13674m.mo12697d(this.f13679r, vVar);\n int a = (this.f13674m.mo12721a(d, ViewCompat.m2862o(this.f13679r)) & 65280) >> 8;\n if (a == 0) {\n return 0;\n }\n int i = (d & 65280) >> 8;\n if (Math.abs(this.f13669h) > Math.abs(this.f13670i)) {\n int b = m15032b(vVar, a);\n if (b > 0) {\n return (i & b) == 0 ? C5319g.m15060b(b, ViewCompat.m2862o(this.f13679r)) : b;\n }\n int c = m15033c(vVar, a);\n if (c > 0) {\n return c;\n }\n } else {\n int c2 = m15033c(vVar, a);\n if (c2 > 0) {\n return c2;\n }\n int b2 = m15032b(vVar, a);\n if (b2 > 0) {\n if ((i & b2) == 0) {\n b2 = C5319g.m15060b(b2, ViewCompat.m2862o(this.f13679r));\n }\n return b2;\n }\n }\n return 0;\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"float mo56157b();",
"private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"public int mo36g() {\n return 4;\n }",
"private int m14928a() {\n return this.f11153a;\n }",
"public short mo34e() {\n return 140;\n }",
"void mo33732Px();",
"public int mo36g() {\n return 8;\n }",
"private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }",
"public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }",
"public int mo3384v() {\n return 0;\n }",
"public abstract Integer mo36210m();",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"private int m216e(float f) {\n int i = (int) (f + 0.5f);\n return i % 2 == 1 ? i - 1 : i;\n }",
"private static int m24353e(int i) {\n return i - (i >> 2);\n }",
"public static int method_2688(ahb var0, int var1, int var2, int var3, class_752 var4) {\r\n String[] var5 = class_752.method_4253();\r\n float var9;\r\n int var10000 = (var9 = class_1715.method_9564((float)var4.field_2994 - (float)var1) - 2.0F) == 0.0F?0:(var9 < 0.0F?-1:1);\r\n if(var5 != null) {\r\n label65: {\r\n if(var10000 < 0) {\r\n float var10;\r\n var10000 = (var10 = class_1715.method_9564((float)var4.field_2996 - (float)var3) - 2.0F) == 0.0F?0:(var10 < 0.0F?-1:1);\r\n if(var5 == null) {\r\n break label65;\r\n }\r\n\r\n if(var10000 < 0) {\r\n double var6 = var4.field_2995 + 1.82D - (double)var4.field_3013;\r\n double var11;\r\n var10000 = (var11 = var6 - (double)var2 - 2.0D) == 0.0D?0:(var11 < 0.0D?-1:1);\r\n if(var5 != null) {\r\n if(var10000 > 0) {\r\n return 1;\r\n }\r\n\r\n double var12;\r\n var10000 = (var12 = (double)var2 - var6 - 0.0D) == 0.0D?0:(var12 < 0.0D?-1:1);\r\n }\r\n\r\n if(var5 == null) {\r\n break label65;\r\n }\r\n\r\n if(var10000 > 0) {\r\n return 0;\r\n }\r\n }\r\n }\r\n\r\n var10000 = class_1715.method_9561((double)(var4.field_3000 * 4.0F / 360.0F) + 0.5D) & 3;\r\n }\r\n }\r\n\r\n int var8 = var10000;\r\n var10000 = var8;\r\n if(var5 != null) {\r\n if(var8 == 0) {\r\n var10000 = 2;\r\n return var10000;\r\n }\r\n\r\n var10000 = var8;\r\n }\r\n\r\n byte var10001 = 1;\r\n if(var5 != null) {\r\n if(var10000 == 1) {\r\n var10000 = 5;\r\n return var10000;\r\n }\r\n\r\n var10000 = var8;\r\n var10001 = 2;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var10000 == var10001) {\r\n var10000 = 3;\r\n return var10000;\r\n }\r\n\r\n var10000 = var8;\r\n if(var5 == null) {\r\n return var10000;\r\n }\r\n\r\n var10001 = 3;\r\n }\r\n\r\n var10000 = var10000 == var10001?4:0;\r\n return var10000;\r\n }",
"public static void main(String[] args) {\n\n\n\n System.out.println(4 * (1.0 - (1 / 3) + (1 / 5) - (1 / 7) + (1 / 9) - (1 / 11)));\n\n System.out.println(4 * (1.0 - (1/3) + (1/5) - (1/7)\n + (1 / 9) - (1/11) + (1/13)));\n }",
"public int mo9232aG() {\n return 0;\n }",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }",
"public int mo1534c() {\n return 2;\n }",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"private double normalizeImageValue(double value){\n return value/(31);\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"float mo106363e();",
"public String toString(){ return \"DIV\";}",
"public int mo36g() {\n return 2;\n }",
"public short mo34e() {\n return 15;\n }",
"@Test\n @Tag(\"bm1000\")\n public void testSC205() {\n CuteNetlibCase.doTest(\"SC205.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }",
"private void m20210g() {\n C8466a aVar = this.f18650f;\n if (aVar != null && this.f18666v > 0) {\n aVar.mo25957a(this.f18645a.mo25936a(), this.f18666v);\n this.f18666v = 0;\n }\n }",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"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 void mo4301a(C0820v vVar, C0788a0 a0Var, C0784c cVar, C0783b bVar) {\n int i;\n int i2;\n int i3;\n int i4;\n int i5;\n View a = cVar.mo4355a(vVar);\n if (a == null) {\n bVar.f3152b = true;\n return;\n }\n C0813p pVar = (C0813p) a.getLayoutParams();\n if (cVar.f3165k == null) {\n if (this.f3143x == (cVar.f3160f == -1)) {\n mo4716b(a);\n } else {\n mo4717b(a, 0);\n }\n } else {\n if (this.f3143x == (cVar.f3160f == -1)) {\n mo4690a(a);\n } else {\n mo4691a(a, 0);\n }\n }\n mo4692a(a, 0, 0);\n bVar.f3151a = this.f3140u.mo5113b(a);\n if (this.f3138s == 1) {\n if (mo4323M()) {\n i5 = mo4758r() - mo4756p();\n i4 = i5 - this.f3140u.mo5115c(a);\n } else {\n i4 = mo4754o();\n i5 = this.f3140u.mo5115c(a) + i4;\n }\n if (cVar.f3160f == -1) {\n int i6 = cVar.f3156b;\n i = i6;\n i2 = i5;\n i3 = i6 - bVar.f3151a;\n } else {\n int i7 = cVar.f3156b;\n i3 = i7;\n i2 = i5;\n i = bVar.f3151a + i7;\n }\n } else {\n int q = mo4757q();\n int c = this.f3140u.mo5115c(a) + q;\n if (cVar.f3160f == -1) {\n int i8 = cVar.f3156b;\n i2 = i8;\n i3 = q;\n i = c;\n i4 = i8 - bVar.f3151a;\n } else {\n int i9 = cVar.f3156b;\n i3 = q;\n i2 = bVar.f3151a + i9;\n i = c;\n i4 = i9;\n }\n }\n mo4693a(a, i4, i3, i2, i);\n if (pVar.mo4774d() || pVar.mo4773c()) {\n bVar.f3153c = true;\n }\n bVar.f3154d = a.hasFocusable();\n }",
"private static float m590o(Context context) {\r\n DisplayMetrics displayMetrics = context.getResources().getDisplayMetrics();\r\n Point point = new Point(displayMetrics.widthPixels, displayMetrics.heightPixels);\r\n return ((float) point.y) / ((float) point.x);\r\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"public int mo3360e() {\n return 0;\n }",
"private static int m3068c(int i, int i2) {\n return 255 - (((255 - i2) * (255 - i)) / NormalGiftView.ALPHA_255);\n }",
"public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }",
"public static int offset_sum_e() {\n return (104 / 8);\n }",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"private static int trailzerofun(int num) {\n\t\tint count=0;\n\t\tif(num<0)\n\t\t\treturn -1;\n\t\tfor(int i=5;num/i>=1;i*=5)\n\t\t{\n\t\t\tcount+=num/i;\n\t\t}\n\t\treturn count;\n\t}",
"void mo9696a(float f, float f2, int i);",
"public int mo9761x() {\n /*\n r5 = this;\n int r0 = r5.f9074i\n int r1 = r5.f9072g\n if (r1 != r0) goto L_0x0007\n goto L_0x006a\n L_0x0007:\n byte[] r2 = r5.f9070e\n int r3 = r0 + 1\n byte r0 = r2[r0]\n if (r0 < 0) goto L_0x0012\n r5.f9074i = 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.mo9763z()\n int r0 = (int) r0\n return r0\n L_0x0070:\n r5.f9074i = r1\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3658b.mo9761x():int\");\n }",
"float getKeliling() {\n\t\treturn super.sisi * 3;\n\t}",
"private float m87313a(float f) {\n float max = Math.max(0.0f, Math.min(this.f61212e + f, (float) (this.f61213f + this.f61214g)));\n float f2 = this.f61212e;\n if (max == f2) {\n return 0.0f;\n }\n float f3 = max - f2;\n int childCount = getChildCount();\n for (int i = 0; i < childCount; i++) {\n View childAt = getChildAt(i);\n if (!((C17366a) childAt.getLayoutParams()).f61235b) {\n childAt.offsetTopAndBottom((int) f3);\n }\n }\n int i2 = (this.f61212e > 0.0f ? 1 : (this.f61212e == 0.0f ? 0 : -1));\n this.f61212e = max;\n this.f61215h = (int) (((float) this.f61215h) + f3);\n int i3 = (max > 0.0f ? 1 : (max == 0.0f ? 0 : -1));\n ViewCompat.postInvalidateOnAnimation(this);\n AbstractC17368c cVar = this.f61224q;\n if (cVar != null) {\n cVar.mo84656a(max);\n }\n return f3;\n }",
"private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }",
"public short mo34e() {\n return 41;\n }",
"public void method_245(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_252(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"@Override\r\n\tpublic int div() {\n\t\treturn 0;\r\n\t}",
"private int abstToDeskX(float x)\n {\n return (int)(width*x);\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"private static int m14929b() {\n return C3150p0.m15121Y();\n }",
"@Override\r\n\tpublic double alapterulet() {\n\t\treturn 0;\r\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testSC105() {\n CuteNetlibCase.doTest(\"SC105.SIF\", \"-52.202061211707246\", \"0.0\", NumberContext.of(7, 4));\n }",
"public long calHurt() {\n/* 82 */ return 0L;\n/* */ }",
"@Test\n public void test81() throws Throwable {\n Line2D.Double line2D_Double0 = new Line2D.Double(228.0, 0.0, 228.0, 0.0);\n LogAxis logAxis0 = new LogAxis(\"8dVi7isYx7'@IN\");\n CombinedRangeCategoryPlot combinedRangeCategoryPlot0 = new CombinedRangeCategoryPlot((ValueAxis) logAxis0);\n combinedRangeCategoryPlot0.setAnchorValue((-725.5571138));\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void method_246(int var1, int var2, int var3, int var4, int var5, int var6) {\n try {\n int var7 = this.field_736[var5];\n int var8 = this.field_737[var5];\n int var9 = 0;\n int var10 = 0;\n int var11 = (var7 << 16) / var3;\n int var12 = (var8 << 16) / var4;\n int var13;\n int var14;\n if(this.field_742[var5]) {\n var13 = this.spriteWidthFull[var5];\n var14 = this.field_741[var5];\n var11 = (var13 << 16) / var3;\n var12 = (var14 << 16) / var4;\n var1 += (this.field_738[var5] * var3 + var13 - 1) / var13;\n var2 += (this.field_739[var5] * var4 + var14 - 1) / var14;\n if(this.field_738[var5] * var3 % var13 != 0) {\n var9 = (var13 - this.field_738[var5] * var3 % var13 << 16) / var3;\n }\n\n if(this.field_739[var5] * var4 % var14 != 0) {\n var10 = (var14 - this.field_739[var5] * var4 % var14 << 16) / var4;\n }\n\n var3 = var3 * (this.field_736[var5] - (var9 >> 16)) / var13;\n var4 = var4 * (this.field_737[var5] - (var10 >> 16)) / var14;\n }\n\n var13 = var1 + var2 * this.field_723;\n var14 = this.field_723 - var3;\n int var15;\n if(var2 < this.field_743) {\n var15 = this.field_743 - var2;\n var4 -= var15;\n var2 = 0;\n var13 += var15 * this.field_723;\n var10 += var12 * var15;\n }\n\n if(var2 + var4 >= this.field_744) {\n var4 -= var2 + var4 - this.field_744 + 1;\n }\n\n if(var1 < this.field_745) {\n var15 = this.field_745 - var1;\n var3 -= var15;\n var1 = 0;\n var13 += var15;\n var9 += var11 * var15;\n var14 += var15;\n }\n\n if(var1 + var3 >= this.field_746) {\n var15 = var1 + var3 - this.field_746 + 1;\n var3 -= var15;\n var14 += var15;\n }\n\n byte var17 = 1;\n if(this.interlace) {\n var17 = 2;\n var14 += this.field_723;\n var12 += var12;\n if((var2 & 1) != 0) {\n var13 += this.field_723;\n --var4;\n }\n }\n\n this.method_253(this.pixels, this.spritePixels[var5], 0, var9, var10, var13, var14, var3, var4, var11, var12, var7, var17, var6);\n } catch (Exception var16) {\n System.out.println(\"error in sprite clipping routine\"); // authentic System.out.println\n }\n }",
"public static void main(String[] args) {\n\t\tint orgnum1=1634,orgnum;\r\n\t\tfloat res=0,rem=0;\r\n\t\torgnum=orgnum1;\r\n\t\r\n\t\twhile(orgnum!=0)\r\n\t\t{\r\n\t\trem=(orgnum%10);\t\r\n\t\tres+=(rem*rem*rem);\r\n\t\torgnum/=10;\r\n\t\t}\r\n\t\tSystem.out.println(\"res\"+ res + \" \"+ orgnum+\" n value\"+orgnum1);\r\n if(orgnum1==res)\r\n \tSystem.out.println(\"arms strong\");\r\n else\r\n \t System.out.println(\"not arms strong\");\r\n \t \r\n\t}",
"private float deskXToAbst(int x)\n {\n return ((float)x/width);\n }",
"@Test\n public void testSixthNegativeRegionToPuncturePoint(){\n precisionAssertEquals(\n \"Test [x = -4.3]: sixth negative region\",\n -5.08678,\n systemFunctions.calculate(-4.3)\n );\n precisionAssertEquals(\n \"Test [x = -4.4]: sixth negative region\",\n -5.45166,\n systemFunctions.calculate(-4.4)\n );\n precisionAssertEquals(\n \"Test [x = -4.5]: sixth negative region\",\n -6.5621,\n systemFunctions.calculate(-4.5)\n );\n precisionAssertEquals(\n \"Test [x = -4.6]: sixth negative region\",\n -10.3553,\n systemFunctions.calculate(-4.6)\n );\n }",
"@Test\n public void testSixthNegativeRegionToPuncturePoint(){\n precisionAssertEquals(\n \"Test [x = -4.3]: sixth negative region\",\n -5.08678,\n systemFunctions.calculate(-4.3)\n );\n precisionAssertEquals(\n \"Test [x = -4.4]: sixth negative region\",\n -5.45166,\n systemFunctions.calculate(-4.4)\n );\n precisionAssertEquals(\n \"Test [x = -4.5]: sixth negative region\",\n -6.5621,\n systemFunctions.calculate(-4.5)\n );\n precisionAssertEquals(\n \"Test [x = -4.6]: sixth negative region\",\n -10.3553,\n systemFunctions.calculate(-4.6)\n );\n }",
"public int mo9785x() {\n /*\n r10 = this;\n long r0 = r10.f9091i\n long r2 = r10.f9090h\n int r2 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1))\n if (r2 != 0) goto L_0x000a\n goto L_0x0085\n L_0x000a:\n r2 = 1\n long r4 = r0 + r2\n byte r0 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r0)\n if (r0 < 0) goto L_0x0017\n r10.f9091i = r4\n return r0\n L_0x0017:\n long r6 = r10.f9090h\n long r6 = r6 - r4\n r8 = 9\n int r1 = (r6 > r8 ? 1 : (r6 == r8 ? 0 : -1))\n if (r1 >= 0) goto L_0x0021\n goto L_0x0085\n L_0x0021:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 7\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x002f\n r0 = r0 ^ -128(0xffffffffffffff80, float:NaN)\n goto L_0x008b\n L_0x002f:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r1 = r1 << 14\n r0 = r0 ^ r1\n if (r0 < 0) goto L_0x003e\n r0 = r0 ^ 16256(0x3f80, float:2.278E-41)\n L_0x003c:\n r6 = r4\n goto L_0x008b\n L_0x003e:\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n int r1 = r1 << 21\n r0 = r0 ^ r1\n if (r0 >= 0) goto L_0x004e\n r1 = -2080896(0xffffffffffe03f80, float:NaN)\n r0 = r0 ^ r1\n goto L_0x008b\n L_0x004e:\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n int r6 = r1 << 28\n r0 = r0 ^ r6\n r6 = 266354560(0xfe03f80, float:2.2112565E-29)\n r0 = r0 ^ r6\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n long r4 = r6 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r6)\n if (r1 >= 0) goto L_0x003c\n long r6 = r4 + r2\n byte r1 = p213q.p217b.p301c.p302a.p311j0.p312a.C3691q1.m8803a(r4)\n if (r1 >= 0) goto L_0x008b\n L_0x0085:\n long r0 = r10.mo9787z()\n int r0 = (int) r0\n return r0\n L_0x008b:\n r10.f9091i = r6\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p213q.p217b.p301c.p302a.p311j0.p312a.C3656k.C3661d.mo9785x():int\");\n }",
"@Test\n public void test3DigitalRootMethod() {\n final int expected = 6;\n final int number = 132189;\n assertEquals(expected, kata4.digitalRoot(number));\n }",
"void mo304a(C0366h c0366h);",
"@Test\n public void test79() throws Throwable {\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"\";\n stringArray0[1] = \"( Z?rh;q|PN\";\n Number[][] numberArray0 = new Number[0][4];\n DefaultIntervalCategoryDataset defaultIntervalCategoryDataset0 = new DefaultIntervalCategoryDataset(stringArray0, numberArray0, numberArray0);\n LogAxis logAxis0 = new LogAxis(\"9\\\"0-oMh}]m6e RZQxr\");\n CategoryPlot categoryPlot0 = new CategoryPlot((CategoryDataset) defaultIntervalCategoryDataset0, (CategoryAxis) null, (ValueAxis) logAxis0, (CategoryItemRenderer) null);\n RectangleEdge rectangleEdge0 = categoryPlot0.getDomainAxisEdge(0);\n }",
"int mo23521Ly();",
"public abstract int mo9754s();",
"int getBaseline() {\n\treturn ascent;\n}",
"public int mo5158c() {\n return this.f3124a;\n }",
"static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }",
"public void mo12628c() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public int mo3834s() {\n if (this.f1470as == 8) {\n return 0;\n }\n return this.f1431F;\n }",
"@Test\n public void test13() throws Throwable {\n Rectangle2D.Double rectangle2D_Double0 = new Rectangle2D.Double();\n int int0 = rectangle2D_Double0.outcode((-2387.0), (-2387.0));\n CategoryPlot categoryPlot0 = new CategoryPlot();\n CategoryItemRenderer categoryItemRenderer0 = categoryPlot0.getRenderer();\n }",
"C1458cs mo7613iS();",
"void mo1507n();",
"public abstract float mo9744i();",
"int mo1505l();",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public final int mo5177c() {\n return Math.round(this.f9483e);\n }",
"private View m3983O() {\n return mo4729d(this.f3143x ? 0 : mo4732e() - 1);\n }",
"private int m3936a(C0820v vVar, C0788a0 a0Var, int i) {\n if (!a0Var.mo4536g()) {\n return this.f3125N.mo4314b(i, this.f3120I);\n }\n int a = vVar.mo4796a(i);\n if (a != -1) {\n return this.f3125N.mo4314b(a, this.f3120I);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Cannot find span size for pre layout position. \");\n sb.append(i);\n Log.w(\"GridLayoutManager\", sb.toString());\n return 0;\n }",
"C15430g mo56154a();",
"static int m22556b(zzwt zzwt, cu cuVar) {\n zztw zztw = (zztw) zzwt;\n int d = zztw.mo4835d();\n if (d == -1) {\n d = cuVar.mo3068b(zztw);\n zztw.mo4833a(d);\n }\n return m22576g(d) + d;\n }",
"public int mo34973b() {\n return 48;\n }",
"public final int mo34009k() {\n return this.f7226f;\n }",
"public int mo9754s() {\n return mo9774x();\n }",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"private void method_253(int[] var1, int[] var2, int var3, int var4, int var5, int var6, int var7, int var8, int var9, int var10, int var11, int var12, int var13, int var14) {\n boolean var25 = field_759;\n int var15 = var14 >> 16 & 255;\n int var16 = var14 >> 8 & 255;\n int var17 = var14 & 255;\n\n try {\n int var18 = var4;\n int var19 = -var9;\n if(var25 || var19 < 0) {\n do {\n int var20 = (var5 >> 16) * var12;\n int var21 = -var8;\n if(!var25 && var21 >= 0) {\n var5 += var11;\n var4 = var18;\n var6 += var7;\n var19 += var13;\n } else {\n do {\n label30: {\n var3 = var2[(var4 >> 16) + var20];\n if(var3 != 0) {\n int var22 = var3 >> 16 & 255;\n int var23 = var3 >> 8 & 255;\n int var24 = var3 & 255;\n if(var22 == var23 && var23 == var24) {\n var1[var6++] = (var22 * var15 >> 8 << 16) + (var23 * var16 >> 8 << 8) + (var24 * var17 >> 8);\n if(!var25) {\n break label30;\n }\n }\n\n var1[var6++] = var3;\n if(!var25) {\n break label30;\n }\n }\n\n ++var6;\n }\n\n var4 += var10;\n ++var21;\n } while(var21 < 0);\n\n var5 += var11;\n var4 = var18;\n var6 += var7;\n var19 += var13;\n }\n } while(var19 < 0);\n\n }\n } catch (Exception var26) {\n System.out.println(\"error in plot_scale\"); // authentic System.out.println\n }\n }",
"int mo1756e(int i);",
"private static double FToC(double f) {\n\t\treturn (f-32)*5/9;\n\t}"
] | [
"0.6027904",
"0.59516627",
"0.5844907",
"0.57611907",
"0.57536817",
"0.55911297",
"0.55666345",
"0.55644184",
"0.5534809",
"0.5528563",
"0.5528323",
"0.55144995",
"0.5511626",
"0.55064523",
"0.550029",
"0.54842514",
"0.5476825",
"0.544728",
"0.54292977",
"0.54243547",
"0.54159266",
"0.5403921",
"0.53950435",
"0.5387902",
"0.5386734",
"0.5382834",
"0.5382315",
"0.5378411",
"0.5377542",
"0.5339533",
"0.53370756",
"0.53353757",
"0.532978",
"0.5328747",
"0.5312314",
"0.53019214",
"0.5301656",
"0.5296111",
"0.5291503",
"0.5291088",
"0.5285516",
"0.5284677",
"0.5279303",
"0.527883",
"0.5271635",
"0.52687377",
"0.5268628",
"0.52685446",
"0.526403",
"0.52472705",
"0.52432376",
"0.52415234",
"0.52395606",
"0.5235433",
"0.52333283",
"0.5231128",
"0.5228754",
"0.522188",
"0.52209985",
"0.5219067",
"0.52157396",
"0.52154815",
"0.52122307",
"0.5210214",
"0.52085376",
"0.51954603",
"0.5192243",
"0.51892215",
"0.5187086",
"0.5185169",
"0.5185169",
"0.51837516",
"0.51782185",
"0.51728547",
"0.51725876",
"0.51625955",
"0.5162492",
"0.51613957",
"0.51552504",
"0.51529926",
"0.5151625",
"0.51492333",
"0.5146703",
"0.514531",
"0.51425767",
"0.51407504",
"0.5139484",
"0.5136541",
"0.51363736",
"0.51347953",
"0.5132413",
"0.51321125",
"0.5130362",
"0.51281416",
"0.51279515",
"0.51263076",
"0.51243705",
"0.51238364",
"0.5123815",
"0.512227",
"0.5122032"
] | 0.0 | -1 |
/ 158: / 159: | public Date getFechaExclusion()
/* 160: */ {
/* 161:178 */ return this.fechaExclusion;
/* 162: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21786K() {\n }",
"public void method_4270() {}",
"public void mo21782G() {\n }",
"public void mo21793R() {\n }",
"public void mo21783H() {\n }",
"public void mo21879u() {\n }",
"public void mo21779D() {\n }",
"public void mo21795T() {\n }",
"public void mo21789N() {\n }",
"public void mo21792Q() {\n }",
"public void mo12628c() {\n }",
"public void mo21788M() {\n }",
"public void mo3749d() {\n }",
"public void mo38117a() {\n }",
"public void mo55254a() {\n }",
"public void mo21787L() {\n }",
"public void mo21878t() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo21791P() {\n }",
"public void mo21780E() {\n }",
"public void mo23813b() {\n }",
"public void mo56167c() {\n }",
"C1458cs mo7613iS();",
"public void mo12930a() {\n }",
"private void kk12() {\n\n\t}",
"public void mo21785J() {\n }",
"public void mo9848a() {\n }",
"public void mo115188a() {\n }",
"public void mo9233aH() {\n }",
"public void mo3376r() {\n }",
"public void mo21784I() {\n }",
"public void mo21880v() {\n }",
"private void m50366E() {\n }",
"public void mo4359a() {\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo97908d() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"void mo57278c();",
"void mo1507n();",
"public void mo44053a() {\n }",
"public void mo5248a() {\n }",
"public void mo115190b() {\n }",
"public void skystonePos4() {\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public void mo9137b() {\n }",
"public void mo6944a() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo1531a() {\n }",
"public void mo2740a() {\n }",
"public void mo97906c() {\n }",
"public void mo21825b() {\n }",
"public void mo21800a() {\n }",
"abstract String mo1748c();",
"public void skystonePos6() {\n }",
"public int mo1534c() {\n return 2;\n }",
"private void m50367F() {\n }",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"void mo3194r();",
"void mo1943l();",
"public void mo2471e() {\n }",
"public void func_70295_k_() {}",
"public abstract long mo9229aD();",
"public void mo2470d() {\n }",
"public void mo21781F() {\n }",
"void mo57277b();",
"public void m23075a() {\n }",
"C2841w mo7234g();",
"public void mo6081a() {\n }",
"void mo12638c();",
"public int mo36g() {\n return 4;\n }",
"public void mo1405e() {\n }",
"public abstract String mo9239aw();",
"C7904c mo24084a();",
"void mo56163g();",
"public void method_191() {}",
"public void mo1403c() {\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"public abstract String mo9238av();",
"public void mo5382o() {\n }",
"public int arn() {\n return 383;\n }",
"public void mo4683c() {\n mo4679a(3);\n }",
"public void mo5099c() {\n }",
"void mo1506m();",
"public int mo36g() {\n return 2;\n }",
"void mo67924c();",
"void mo17013d();",
"@Override\n\tpublic void challenge17() {\n\n\t}",
"void mo1501h();",
"public void mo8738a() {\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"void mo21073d();",
"public int method_1549() {\r\n return this.field_1434;\r\n }",
"public void mo5097b() {\n }"
] | [
"0.62317175",
"0.6138361",
"0.6102031",
"0.60929143",
"0.60242444",
"0.599451",
"0.5986301",
"0.59325415",
"0.59219944",
"0.59171575",
"0.5910267",
"0.59008193",
"0.58962893",
"0.5894904",
"0.58947784",
"0.58853716",
"0.58783317",
"0.5876436",
"0.5852379",
"0.58470213",
"0.58470213",
"0.58470213",
"0.58470213",
"0.58470213",
"0.58470213",
"0.58470213",
"0.58383024",
"0.5837185",
"0.5827161",
"0.5822063",
"0.58134115",
"0.5813033",
"0.58113337",
"0.5803695",
"0.5791979",
"0.5776631",
"0.57759315",
"0.57647747",
"0.57602566",
"0.5757258",
"0.57570416",
"0.57499367",
"0.57085156",
"0.57047063",
"0.5704091",
"0.5693499",
"0.5689337",
"0.5686269",
"0.5665014",
"0.56332725",
"0.5624514",
"0.5614055",
"0.56139857",
"0.561323",
"0.56035507",
"0.56002146",
"0.5592526",
"0.55814016",
"0.5574151",
"0.5571969",
"0.5570624",
"0.55648464",
"0.55642223",
"0.5552956",
"0.5536603",
"0.553418",
"0.5523285",
"0.55210143",
"0.5503225",
"0.5500007",
"0.5492183",
"0.54898727",
"0.5489769",
"0.54818666",
"0.5477693",
"0.5474747",
"0.5473686",
"0.5472656",
"0.5472158",
"0.54691595",
"0.5468611",
"0.5463938",
"0.5460567",
"0.54602337",
"0.54602194",
"0.54581463",
"0.54561454",
"0.5449837",
"0.5449484",
"0.54472274",
"0.5445492",
"0.54357344",
"0.543421",
"0.5432606",
"0.5426458",
"0.5423896",
"0.54212433",
"0.5420753",
"0.541276",
"0.5409412",
"0.54069555"
] | 0.0 | -1 |
/ 163: / 164: | public void setFechaExclusion(Date fechaExclusion)
/* 165: */ {
/* 166:182 */ this.fechaExclusion = fechaExclusion;
/* 167: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public void mo12628c() {\n }",
"private void m50366E() {\n }",
"public void mo21879u() {\n }",
"long getUnknown72();",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"public void mo21794S() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo21792Q() {\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public int arn() {\n return 383;\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21782G() {\n }",
"public abstract CharSequence mo2160e();",
"public short mo34e() {\n return 140;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public final void mo37836u_() {\n }",
"public void mo9233aH() {\n }",
"public void mo21877s() {\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public abstract CharSequence mo2161g();",
"public void mo12930a() {\n }",
"C2841w mo7234g();",
"public void mo21787L() {\n }",
"@Test(timeout = 4000)\n public void test53() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.stemString(\"The database key of the entry being cross referenced. Any fields that are missing from the current record are inherited from the field being cross referenced.\");\n assertEquals(\"th databas key of th entr being cros refer. any field that ar mis from th cur record ar inherit from th field being cros refer.\", string0);\n }",
"C2451d mo3408a(C2457e c2457e);",
"public int mo9232aG() {\n return 0;\n }",
"static void m14930d(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"public void mo3749d() {\n }",
"public void mo21779D() {\n }",
"private static int m1646b(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4452e();\n }",
"public void mo44053a() {\n }",
"public void mo21786K() {\n }",
"private void m50367F() {\n }",
"abstract String mo1748c();",
"public void mo38117a() {\n }",
"public void mo21783H() {\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"public void mo9848a() {\n }",
"public void mo21789N() {\n }",
"public final void mo12688e_() {\n }",
"public abstract String mo13682d();",
"int getUnknown13();",
"public void mo55254a() {\n }",
"public void mo21780E() {\n }",
"private static C2065a m7413d(C2063i c2063i) throws ParserException {\n if (c2063i.m7399a(24) != 5653314) {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"expected code book to start with [0x56, 0x43, 0x42] at \");\n stringBuilder.append(c2063i.m7401b());\n throw new ParserException(stringBuilder.toString());\n }\n int i;\n int i2;\n int a = c2063i.m7399a(16);\n int a2 = c2063i.m7399a(24);\n long[] jArr = new long[a2];\n boolean a3 = c2063i.m7400a();\n long j = 0;\n if (a3) {\n int a4 = c2063i.m7399a(5) + 1;\n i = 0;\n while (i < jArr.length) {\n int a5 = c2063i.m7399a(C2069k.m7403a(a2 - i));\n int i3 = i;\n for (i = 0; i < a5 && i3 < jArr.length; i++) {\n jArr[i3] = (long) a4;\n i3++;\n }\n a4++;\n i = i3;\n }\n } else {\n boolean a6 = c2063i.m7400a();\n for (i2 = 0; i2 < jArr.length; i2++) {\n if (!a6) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else if (c2063i.m7400a()) {\n jArr[i2] = (long) (c2063i.m7399a(5) + 1);\n } else {\n jArr[i2] = 0;\n }\n }\n }\n i2 = c2063i.m7399a(4);\n if (i2 > 2) {\n StringBuilder stringBuilder2 = new StringBuilder();\n stringBuilder2.append(\"lookup type greater than 2 not decodable: \");\n stringBuilder2.append(i2);\n throw new ParserException(stringBuilder2.toString());\n }\n if (i2 == 1 || i2 == 2) {\n c2063i.m7402b(32);\n c2063i.m7402b(32);\n i = c2063i.m7399a(4) + 1;\n c2063i.m7402b(1);\n if (i2 != 1) {\n j = (long) (a2 * a);\n } else if (a != 0) {\n j = C2069k.m7404a((long) a2, (long) a);\n }\n c2063i.m7402b((int) (j * ((long) i)));\n }\n return new C2065a(a, a2, jArr, i2, a3);\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 }",
"void mo12637b();",
"public abstract int mo9754s();",
"@Test(timeout = 4000)\n public void test078() throws Throwable {\n String string0 = SQLUtil.normalize(\"^PcBSW[==qn/g\", true);\n assertEquals(\"^ PcBSW [ = = qn / g\", string0);\n }",
"String mo30285c(long j);",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"C1458cs mo7613iS();",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"public abstract String mo118046b();",
"public void mo2740a() {\n }",
"public abstract void mo2153a(CharSequence charSequence);",
"public void mo56167c() {\n }",
"public abstract void incorrectlyParsedUtterance(long ms);",
"void mo33732Px();",
"public abstract long mo9229aD();",
"public abstract String mo9751p();",
"String mo20731c();",
"public final void mo7596sH(String str) {\n }",
"public void m23075a() {\n }",
"void mo1943l();",
"C5727e mo33224a();",
"void mo64942a(String str, long j, long j2);",
"void mo4873a(C4718l c4718l);",
"public void mo23813b() {\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"long mo1685a(C2369e c2369e);",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo115188a() {\n }",
"void mo3194r();",
"public int mo27483b() {\n return 0;\n }",
"public void mo21788M() {\n }",
"String mo21078i();",
"public int mo36g() {\n return 4;\n }",
"public abstract long mo13681c();",
"C15430g mo56154a();",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"static zzco m26829a() {\n return new zzco(\"While parsing a protocol message, the input ended unexpectedly in the middle of a field. This could mean either that the input has been truncated or that an embedded message misreported its own length.\");\n }",
"public void mo21791P() {\n }",
"void m1864a() {\r\n }",
"long mo20406a();",
"public void mo115190b() {\n }",
"void mo56163g();",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public short mo34e() {\n return 41;\n }",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"int mo13164g();"
] | [
"0.60391647",
"0.5954215",
"0.59297895",
"0.59277385",
"0.5907935",
"0.58423746",
"0.5825484",
"0.58039755",
"0.5777627",
"0.5762159",
"0.5755152",
"0.57333845",
"0.57066494",
"0.56967604",
"0.567206",
"0.56551695",
"0.56412715",
"0.56389576",
"0.56284684",
"0.5621621",
"0.5603008",
"0.5589647",
"0.5585492",
"0.55801576",
"0.5577164",
"0.55761486",
"0.5573128",
"0.557089",
"0.5567737",
"0.5567033",
"0.55536234",
"0.55481493",
"0.55472827",
"0.5540851",
"0.55403775",
"0.55355656",
"0.5528471",
"0.5525438",
"0.5521863",
"0.5521339",
"0.551408",
"0.55128086",
"0.5511938",
"0.55095774",
"0.5509203",
"0.55039185",
"0.5500782",
"0.5498563",
"0.5498215",
"0.5498215",
"0.5498215",
"0.5498215",
"0.5498215",
"0.5498215",
"0.5498215",
"0.5496915",
"0.54905736",
"0.54899913",
"0.54889",
"0.5487952",
"0.54855305",
"0.5475092",
"0.5474235",
"0.5472225",
"0.5471246",
"0.5468137",
"0.54664785",
"0.54645455",
"0.5464398",
"0.54606336",
"0.54511184",
"0.54506487",
"0.5443838",
"0.54430336",
"0.5441529",
"0.5439649",
"0.5437624",
"0.54358125",
"0.543254",
"0.5430804",
"0.5423245",
"0.54218614",
"0.5419169",
"0.54186416",
"0.5417528",
"0.5410154",
"0.5408735",
"0.5404544",
"0.5403872",
"0.5400789",
"0.53964174",
"0.5393162",
"0.5387841",
"0.5385956",
"0.5385362",
"0.5377615",
"0.5370124",
"0.53698355",
"0.5368894",
"0.5362169",
"0.5359654"
] | 0.0 | -1 |
/ 168: / 169: | public boolean isIndicadorImpreso()
/* 170: */ {
/* 171:186 */ return this.indicadorImpreso;
/* 172: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int method_2436() {\r\n return 16;\r\n }",
"private static String m21398d() {\n try {\n for (NetworkInterface networkInterface : Collections.list(NetworkInterface.getNetworkInterfaces())) {\n if (networkInterface.getName().equalsIgnoreCase(\"wlan0\")) {\n byte[] hardwareAddress = networkInterface.getHardwareAddress();\n if (hardwareAddress == null) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (byte valueOf : hardwareAddress) {\n sb.append(String.format(\"%02X:\", new Object[]{Byte.valueOf(valueOf)}));\n }\n if (sb.length() > 0) {\n sb.deleteCharAt(sb.length() - 1);\n }\n return sb.toString();\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return \"02:00:00:00:00:00\";\n }",
"int getS1Ip();",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"private String checkSegments(ArrayList<DataSegment> list, int start, int end) {\n if (list.isEmpty()) return \"38020\";\n if (list.get(0).getSegmentStart()!=start) return \"38021\";\n if (list.get(list.size()-1).getSegmentEnd()!=end) return \"38022\";\n int lastend=start-1; \n for (int i=0;i<list.size();i++) {\n DataSegment segment=list.get(i);\n if (segment.getSegmentStart()!=lastend+1) return \"38023[\"+(i+1)+\"/\"+(list.size())+\"]\";\n lastend=segment.getSegmentEnd();\n if (lastend>end) return \"38024[\"+(i+1)+\"/\"+(list.size())+\"]\";\n }\n return null;\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"long getUnknown72();",
"private static String m21400e() {\n try {\n return new BufferedReader(new FileReader(new File(\"/sys/class/net/wlan0/address\"))).readLine();\n } catch (Throwable th) {\n C5205o.m21464a(th);\n return \"02:00:00:00:00:00\";\n }\n }",
"private static String normalizeWWN(String unpaddedWWN) {\n String wwn = StringUtils.leftPad(unpaddedWWN, 16, '0');\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < wwn.length(); i += 2) {\n String slice = StringUtils.substring(wwn, i, i + 2);\n if (sb.length() > 0) {\n sb.append(':');\n }\n sb.append(slice);\n }\n return sb.toString();\n }",
"public int arn() {\n return 383;\n }",
"public static void main(String[] args) throws Exception{\n System.out.println(new Number164().maximumGap(new int[]{1,10000000}));\n }",
"public static void main(String[] args) {\n byte[] ip = new byte[]{(byte) 192, (byte) 168, 1, 2};\n byte[] mask = new byte[]{(byte) 255, (byte) 255, (byte) 254, 0};\n byte[] netAddress = getNetAddress(ip, mask);\n print(ip); //11000000 10101000 00000001 00000010\n print(mask); //11111111 11111111 11111110 00000000\n print(netAddress); //11000000 10101000 00000000 00000000\n }",
"private static String m21403f() {\n String str;\n String str2 = \"\";\n try {\n Enumeration networkInterfaces = NetworkInterface.getNetworkInterfaces();\n while (networkInterfaces.hasMoreElements()) {\n Enumeration inetAddresses = ((NetworkInterface) networkInterfaces.nextElement()).getInetAddresses();\n while (inetAddresses.hasMoreElements()) {\n InetAddress inetAddress = (InetAddress) inetAddresses.nextElement();\n if (!inetAddress.isLoopbackAddress()) {\n str2 = inetAddress.getHostAddress();\n }\n }\n }\n } catch (Throwable th) {\n C5205o.m21464a(th);\n }\n return str;\n }",
"public java.lang.Integer getVar172() {\n return var172;\n }",
"public int m224a() {\n return 1;\n }",
"public void setVar168(java.lang.Integer value) {\n this.var168 = value;\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint ip = sc.nextInt();\n\t\tsc.close();\n\t\tint op =1,i=0,mul=1,n=0,temp=0;\n\t\tint len = Integer.valueOf(String.valueOf(ip).length());\n\t\tfor(int j=0;j<len-1;j++){\n\t\t\ttemp=Integer.valueOf(String.valueOf(ip).charAt(j)-48);\n\t\t\tn=Integer.valueOf(String.valueOf(ip).charAt(j+1)-48);\n\t\t\ti=0;mul=1;\n\t\t\t\n\t\t\twhile(i<n){\n\t\t\t\tmul*=temp;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\top+=mul;\n\t\t\t\n\t\t}\n\t\tSystem.out.println(op);\n\n\t}",
"public java.lang.Integer getVar168() {\n return var168;\n }",
"public java.lang.Integer getVar168() {\n return var168;\n }",
"public java.lang.Integer getVar172() {\n return var172;\n }",
"public void setVar160(java.lang.Integer value) {\n this.var160 = value;\n }",
"public static int offset_group() {\n return (24 / 8);\n }",
"private static int compareIP(String ip1, String ip2) {\n\t\tlong[] ip11 = parseIp(ip1);\r\n\t\tlong[] ip22 = parseIp(ip2);\r\n\t\tlong ip1Result = 0, ip2Result = 0;\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tip1Result += (ip11[i] << (24 - i * 8));\r\n\t\t}\r\n\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\tip2Result += (ip22[i] << (24 - i * 8));\r\n\t\t}\r\n\t\tif (ip1Result - ip2Result > 0) {\r\n\t\t\treturn 1;\r\n\t\t} else if (ip1Result - ip2Result < 0) {\r\n\t\t\treturn -1;\r\n\t\t} else {\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t}",
"private String formatNumberForDotNet(String val)\n/* */ {\n/* 348 */ if (val == null)\n/* */ {\n/* 350 */ return \"-\";\n/* */ }\n/* */ \n/* 353 */ String ret = FormatUtil.formatNumber(val);\n/* 354 */ String troubleshootlink = com.adventnet.appmanager.util.OEMUtil.getOEMString(\"company.troubleshoot.link\");\n/* 355 */ if (ret.indexOf(\"-1\") != -1)\n/* */ {\n/* */ \n/* 358 */ return \"- <a class=\\\"staticlinks\\\" href=\\\"http://\" + troubleshootlink + \"#m44\\\" target=\\\"_blank\\\">\" + FormatUtil.getString(\"am.webclient.dotnet.troubleshoot\") + \"</a>\";\n/* */ }\n/* */ \n/* */ \n/* 362 */ return ret;\n/* */ }",
"public static int m8668h() {\n return 8;\n }",
"static boolean validateIP(String ip) {\n String[] ips = ip.split(\"\\\\.\");\n System.out.println(Arrays.toString(ips));\n if(ips.length != 4) return false;\n System.out.println(Arrays.toString(ips));\n \n for(String s : ips){\n int b;\n try{\n b = Integer.parseInt(s);\n if(b<0 || b> 255)return false;\n }catch(Exception e){\n return false;\n }\n }\n \n return true;\n\t}",
"static long m5599a(String str) {\n String[] split = str.split(\"\\\\:\");\n byte[] bArr = new byte[6];\n int i = 0;\n while (i < 6) {\n try {\n bArr[i] = (byte) Integer.parseInt(split[i], 16);\n i++;\n } catch (NumberFormatException unused) {\n return 0;\n }\n }\n return ((((long) bArr[0]) & 255) << 40) | ((((long) bArr[3]) & 255) << 16) | (((long) bArr[5]) & 255) | ((((long) bArr[4]) & 255) << 8) | ((((long) bArr[2]) & 255) << 24) | ((((long) bArr[1]) & 255) << 32);\n }",
"@SuppressLint(\"DefaultLocale\")\n private String formatIP(int ip) {\n return String.format(\n \"%d.%d.%d.%d\",\n (ip & 0xff),\n (ip >> 8 & 0xff),\n (ip >> 16 & 0xff),\n (ip >> 24 & 0xff)\n );\n }",
"private String formatNumberForDotNet(String val)\n/* */ {\n/* 342 */ if (val == null)\n/* */ {\n/* 344 */ return \"-\";\n/* */ }\n/* */ \n/* 347 */ String ret = FormatUtil.formatNumber(val);\n/* 348 */ String troubleshootlink = com.adventnet.appmanager.util.OEMUtil.getOEMString(\"company.troubleshoot.link\");\n/* 349 */ if (ret.indexOf(\"-1\") != -1)\n/* */ {\n/* */ \n/* 352 */ return \"- <a class=\\\"staticlinks\\\" href=\\\"http://\" + troubleshootlink + \"#m44\\\" target=\\\"_blank\\\">\" + FormatUtil.getString(\"am.webclient.dotnet.troubleshoot\") + \"</a>\";\n/* */ }\n/* */ \n/* */ \n/* 356 */ return ret;\n/* */ }",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"int getClientIpV4();",
"public static String decodeIp(int ip) {\r\n return (ip >> 24 & 0xff) + \".\" + (ip >> 16 & 0xff) + \".\" + (ip >> 8 & 0xff) + \".\" + (ip & 0xff);\r\n }",
"void mo1507n();",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"private String getIP() {\n\t\treturn getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE) + Constants.DOT\n\t\t\t\t+ getRandomArbitrary(Constants.MIN_IP_VALUE, Constants.MAX_IP_VALUE);\n\n\t}",
"private String formatNumberForDotNet(String val)\n/* */ {\n/* 339 */ if (val == null)\n/* */ {\n/* 341 */ return \"-\";\n/* */ }\n/* */ \n/* 344 */ String ret = FormatUtil.formatNumber(val);\n/* 345 */ String troubleshootlink = com.adventnet.appmanager.util.OEMUtil.getOEMString(\"company.troubleshoot.link\");\n/* 346 */ if (ret.indexOf(\"-1\") != -1)\n/* */ {\n/* */ \n/* 349 */ return \"- <a class=\\\"staticlinks\\\" href=\\\"http://\" + troubleshootlink + \"#m44\\\" target=\\\"_blank\\\">\" + FormatUtil.getString(\"am.webclient.dotnet.troubleshoot\") + \"</a>\";\n/* */ }\n/* */ \n/* */ \n/* 353 */ return ret;\n/* */ }",
"public String long_ip(long numero_ip){\n String str_num_ip=\"\";\n for(int i=3; i>=0; i--){\n str_num_ip += (0b1111_1111 & (numero_ip >> (i*8) )) + (i!=0? \".\": \"\");\n }\n return str_num_ip;\n }",
"public static int offset_offset_cmp() {\n return (168 / 8);\n }",
"public void setVar172(java.lang.Integer value) {\n this.var172 = value;\n }",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"public int mo36g() {\n return 8;\n }",
"private static String m21383C(Context context) {\n WifiInfo wifiInfo;\n String str = \"02:00:00:00:00:00\";\n if (context == null) {\n return str;\n }\n WifiManager wifiManager = (WifiManager) context.getApplicationContext().getSystemService(\"wifi\");\n if (wifiManager == null) {\n return str;\n }\n try {\n wifiInfo = wifiManager.getConnectionInfo();\n } catch (Exception e) {\n C5205o.m21464a((Throwable) e);\n wifiInfo = null;\n }\n if (wifiInfo == null) {\n return null;\n }\n String macAddress = wifiInfo.getMacAddress();\n if (!TextUtils.isEmpty(macAddress)) {\n macAddress = macAddress.toUpperCase(Locale.ENGLISH);\n }\n return macAddress;\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"public byte parseAPScale(){\n\t\treturn data[OFS_ARP_SCALE];\n\t}",
"int getInIp();",
"int getInIp();",
"String getPortRange();",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n String string0 = SQLUtil.normalize(\"b}v&-;$$:Hw1:\", false);\n assertEquals(\"b } v & - ; $ $ : Hw1 :\", string0);\n }",
"@Test(expected = IllegalArgumentException.class)\n public void testInvalidMakeTooLongMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(33);\n }",
"public void validateRpd8s22()\n {\n // Duplicate of 8s14\n }",
"private static int whtSpace(int Val){\n\t\tint i = Integer.parseInt(\"0020\", 16); \r\n\t\tchar c = (char)i;\r\n\t\tchar[] WhiteSpaceChars = {c, ',', '.', ';', ':', '?', '!', '<', '>', '{', '}', '-','_', '|' ,(char) 92/*(char) Integer.parseInt(\"5C\",16)*/, '[', ']', '(', ')', '*', '^', '%', '$', '#', '@', '+', '=', '`', '~', '\"' , (char) 10/*(char) Integer.parseInt(\"0A\",16)*/ , (char) 13/*(char) Integer.parseInt(\"0D\",16)*/};\r\n\t\t//\r\n\t\tfor(int W = 0; W<WhiteSpaceChars.length;W++){\r\n\t\t if (Val<-1||(char) Val == WhiteSpaceChars[W]){\r\n\t\t Val = 0x18;\r\n\t\t break;\r\n\t\t }\r\n\t\t}\r\n\t\treturn Val;\r\n\t}",
"public MacAddress(){\n super(MAC_DIGIT_COUNT);\n }",
"public void method_192() {}",
"private static String m21388a(WifiManager wifiManager) {\n String a = m21386a(wifiManager.getConnectionInfo().getIpAddress());\n return a != null ? a : \"\";\n }",
"String mo20732d();",
"String mo21078i();",
"private static int m25216a(Activity activity) {\n return ((activity.getWindow().getAttributes().flags & 1024) == 1024 ? true : null) != null ? 16973841 : 16973840;\n }",
"Uri mo1686a();",
"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 }",
"private String \\u02ca\\u0971() {\n int n2;\n LinkedHashMap linkedHashMap;\n int n3;\n Map<String, String> map;\n try {\n map = this.\\u02ca\\u0971;\n linkedHashMap = new LinkedHashMap();\n n2 = 0;\n }\n catch (Exception exception) {\n o.\\u02ce(exception);\n return \"\";\n }\n do {\n n3 = 0;\n if (n2 >= 8) break;\n StringBuilder stringBuilder = new StringBuilder(\"moatClientLevel\");\n stringBuilder.append(n2);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n ++n2;\n } while (true);\n do {\n if (n3 < 8) {\n StringBuilder stringBuilder = new StringBuilder(\"moatClientSlicer\");\n stringBuilder.append(n3);\n String string = stringBuilder.toString();\n if (map.containsKey((Object)string)) {\n linkedHashMap.put((Object)string, map.get((Object)string));\n }\n } else {\n Iterator iterator = map.keySet().iterator();\n do {\n if (!iterator.hasNext()) {\n String string = new JSONObject((Map)linkedHashMap).toString();\n StringBuilder stringBuilder = new StringBuilder(\"Parsed ad ids = \");\n stringBuilder.append(string);\n a.\\u02cf(3, \"NativeDisplayTracker\", this, stringBuilder.toString());\n StringBuilder stringBuilder2 = new StringBuilder(\"{\\\"adIds\\\":\");\n stringBuilder2.append(string);\n stringBuilder2.append(\", \\\"adKey\\\":\\\"\");\n stringBuilder2.append(this.\\u02cb);\n stringBuilder2.append(\"\\\", \\\"adSize\\\":\");\n stringBuilder2.append(this.\\u141d());\n stringBuilder2.append(\"}\");\n return stringBuilder2.toString();\n }\n String string = (String)iterator.next();\n if (linkedHashMap.containsKey((Object)string)) continue;\n linkedHashMap.put((Object)string, (Object)((String)map.get((Object)string)));\n } while (true);\n }\n ++n3;\n } while (true);\n }",
"public static String ip2id(InetAddress ip) {\n final char table[] = {'a', 'e', 'i', 'o', 'u', 'A', 'E', 'I', 'O', 'U'};\n byte bytes[] = ip.getAddress();\n int a;\n String id = \"\";\n for (int i = 0; i < 4; i++) {\n a = bytes[i] & 0xff;\n id += table[a/26];\n id += (char)('a'+a%26);\n }\n return id;\n }",
"String mo20731c();",
"public static void main(String[] args) {\n// String before1 = \"27e80000\";\n// String before1 = \"715b00000\";\n String before1 = \"715b00000\";\n\n long after1 = Long.parseLong(before1, 16);\n System.out.println(after1);\n\n// String before2 = \"28d80000\";\n// String before2 = \"7c0000000\";\n// String before2 = \"71db80000\";\n String before2 = \"720580000\";\n long after2 = Long.parseLong(before2, 16);\n System.out.println(after2);\n\n long size = (after2 - after1) / 1024 / 1024;\n System.out.println(\"Size: \" + size + \"M\");\n }",
"public interface Constants {\n public static final short NET_MASK_MAX_LENGTH = 32;\n}",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"public static long inetAton(String add) {\n long result = 0;\n // number between a dot\n long section = 0;\n // which digit in a number\n int times = 1;\n // which section\n int dots = 0;\n for (int i = add.length() - 1; i >= 0; --i) {\n if (add.charAt(i) == '.') {\n times = 1;\n section <<= dots * 8;\n result += section;\n section = 0;\n ++dots;\n } else {\n section += (add.charAt(i) - '0') * times;\n times *= 10;\n }\n }\n section <<= dots * 8;\n result += section;\n return result;\n }",
"public boolean hasVar168() {\n return fieldSetFlags()[169];\n }",
"C1458cs mo7613iS();",
"public static int m8655e() {\n return 8;\n }",
"private static String m11g() {\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"sh\");\n stringBuilder.append(\"el\");\n stringBuilder.append(\"la\");\n stringBuilder.append(\"_ve\");\n stringBuilder.append(\"rs\");\n stringBuilder.append(\"i\");\n stringBuilder.append(\"on\");\n return stringBuilder.toString();\n }",
"C15430g mo56154a();",
"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 }",
"private String coreSet(String input)\n \t{\n \t\tString output=input+\"%20(M\"+input.substring(input.length()-2)+\")\";\n \t\treturn output;\n \t}",
"void mo33732Px();",
"private void sumbit(String ip){\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public static void parseResponse(byte[] response) {\n int qr = ((response[2] & 0b10000000) >> 7);\n int opcode = ((response[2] & 0b01111000) >> 3);\n int aa = ((response[2] & 0b00000100) >> 2);\n int tc = ((response[2] & 0b00000010) >> 1);\n int rd = (response[2] & 0b00000001);\n int ra = ((response[3] & 0b10000000) >> 7);\n int res1 = ((response[3] & 0b01000000) >> 6);\n int res2 = ((response[3] & 0b00100000) >> 5);\n int res3 = ((response[3] & 0b00010000) >> 4);\n int rcode = (response[3] & 0b00001111);\n int qdcount = (response[4] << 8 | response[5]);\n int ancount = (response[6] << 8 | response[7]);\n int nscount = (response[8] << 8 | response[9]);\n int arcount = (response[10] << 8 | response[11]);\n/*\n System.out.println(\"QR: \" + qr);\n System.out.println(\"OPCODE: \"+ opcode);\n System.out.println(\"AA: \" + aa);\n System.out.println(\"TC: \" + tc);\n System.out.println(\"RD: \" + rd);\n System.out.println(\"RA: \" + ra);\n System.out.println(\"RES1: \" + res1);\n System.out.println(\"RES2: \" + res2);\n System.out.println(\"RES3: \" + res3);\n System.out.println(\"RCODE: \" + rcode);\n System.out.println(\"QDCOUNT: \" + qdcount);\n System.out.println(\"ANCOUNT: \" + ancount);\n System.out.println(\"NSCOUNT: \" + nscount);\n System.out.println(\"ARCOUNT: \" + arcount);\n*/\n // WHO DESIGNED THE DNS PACKET FORMAT AND WHY DID THEY ADD POINTERS?!?\n HashMap<Integer, String> foundLabels = new HashMap<>();\n\n int curByte = 12;\n for(int i = 0; i < qdcount; i++) {\n ArrayList<Integer> currentLabels = new ArrayList<>();\n while(true) {\n if((response[curByte] & 0b11000000) != 0) {\n // Labels have a length value, the first two bits have to be 0.\n System.out.println(\"ERROR\\tInvalid label length in response.\");\n System.exit(1);\n }\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n currentLabels.add(pntr);\n for(Integer n : currentLabels) {\n if(foundLabels.containsKey(n)) {\n foundLabels.put(n, foundLabels.get(n) + \".\" + working.toString());\n } else {\n foundLabels.put(n, working.toString());\n }\n }\n }\n\n // Increment curByte every time we use it, meaning it always points to the byte we haven't used.\n short qtype = (short) ((response[curByte++] << 8) | response[curByte++]);\n short qclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n }\n\n // This for loop handles all the Answer section parts.\n for(int i = 0; i < ancount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n // If it is an A record\n if(type == 1) {\n\n // If it is an invalid length\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n\n // Output the IP record\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tnonauth\");\n }\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte++] & 0xFF;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte] & 0xff;\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tnonauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tnonauth\");\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tnonauth\");\n }\n }\n\n for(int i = 0; i < nscount; i++) {\n StringBuilder recordName = new StringBuilder();\n while(true) {\n if((response[curByte] & 0b11000000) == 0b11000000) {\n recordName.append(foundLabels.get(((response[curByte++] & 0b00111111) << 8) | response[curByte++]));\n break;\n } else if ((response[curByte] & 0b11000000) == 0) {\n StringBuilder working = new StringBuilder();\n int labelLen = response[curByte];\n int pntr = curByte++;\n if(labelLen == 0) {\n break;\n }\n for(int j = 0; j < labelLen; j++, curByte++) {\n working.append((char) response[curByte]);\n }\n recordName.append(working.toString());\n foundLabels.put(pntr, working.toString());\n } else {\n System.out.println(\"ERROR\\tInvalid label.\");\n System.exit(1);\n }\n }\n short type = (short) ((response[curByte++] << 8) | response[curByte++]);\n short dnsclass = (short) ((response[curByte++] << 8) | response[curByte++]);\n int ttl = ((response[curByte++] << 24) | (response[curByte++] << 16) | (response[curByte++] << 8) | response[curByte++]);\n short rdlength = (short) ((response[curByte++] << 8) | response[curByte++]);\n\n if(type == 1) {\n if(rdlength != 4) {\n System.out.println(\"ERROR\\tA records should only have a 4 byte RDATA\");\n System.exit(1);\n }\n System.out.println(\"IP\\t\" + (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \".\" +\n (response[curByte++] & 0xff) + \".\" + (response[curByte++] & 0xff) + \"\\tauth\");\n }\n // If CNAME\n else if(type == 5){\n\n // Creates string to hold combined record\n String cnameRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n cnameRecord += \".\";\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n cnameRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n cnameRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n cnameRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"CNAME\\t\" + cnameRecord + \"\\tauth\");\n }\n else if(type == 2){\n\n // Creates string to hold combined record\n String nsRecord = \"\";\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n nsRecord += \".\";\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n nsRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n nsRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n nsRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"NS\\t\" + nsRecord + \"\\tauth\");\n\n }\n else if(type == 15){\n\n // Creates string to hold combined record\n String mxRecord = \"\";\n\n curByte ++;\n\n // Gets the preference number of the given mail server\n int preference = (int) response[curByte];\n\n curByte++;\n\n // Gets length of subsection of CNAME record\n int curLength = (int) response[curByte];\n\n curByte++;\n\n int totalLength = 0;\n\n // While there are still chars to be read\n while(totalLength != rdlength){\n\n // If the current subsection has no more chars\n if(curLength == 0){\n\n // Sets length of next subsection\n curLength = (int) response[curByte];\n\n // If this subsection was the last\n if(curLength == 0){\n\n curByte++;\n\n // Breaks out of loop\n break;\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curLength = (int) (response[curByte++] << 8) | response[curByte];\n mxRecord += \".\";\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte++;\n break;\n }\n\n // Adds period to divide subsections\n mxRecord += \".\";\n\n } else if((curLength & 0b11000000) == 0b11000000) {\n // It's a pointer.\n curByte++;\n curLength = (int) ((response[curByte++] << 8) | response[curByte]);\n mxRecord += foundLabels.get(curLength & 0b0011111111111111);\n\n // Pointers are always the END of a label.\n curByte--;\n break;\n }\n // Otherwise adds next char to string\n else{\n mxRecord += (char) response[curByte];\n\n // Decreases size of current subsection\n curLength--;\n\n }\n\n // Increases total length of CNAME record\n totalLength++;\n\n // Increments the currently selected byte\n curByte++;\n\n }\n System.out.println(\"MX\\t\" + mxRecord + \"\\t\" + preference + \"\\tauth\");\n }\n }\n }",
"public static byte[] parseIPv6Literal(String s) {\n s = s != null ? s.trim() : \"\";\n if (s.length() > 0 && s.charAt(0) == '[' && s.charAt(s.length() - 1) == ']') {\n s = s.substring(1, s.length() - 1).trim();\n }\n int x = s.lastIndexOf(':');\n int y = s.indexOf('.');\n // Contains a dot! Look for IPv4 literal suffix.\n if (x >= 0 && y > x) {\n byte[] ip4Suffix = parseIPv4Literal(s.substring(x + 1));\n if (ip4Suffix == null) {\n return null;\n }\n s = s.substring(0, x) + \":\" + ip4ToHex(ip4Suffix);\n }\n\n // Check that we only have a single occurence of \"::\".\n x = s.indexOf(\"::\");\n if (x >= 0 && s.indexOf(\"::\", x + 1) >= 0) {\n return null;\n }\n\n // This array helps us expand the \"::\" into the zeroes it represents.\n String[] raw = new String[]{\"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\", \"0000\"};\n if (s.indexOf(\"::\") >= 0) {\n String[] split = s.split(\"::\", -1);\n String[] prefix = splitOnColon(split[0]);\n String[] suffix = splitOnColon(split[1]);\n\n // Make sure the \"::\" zero-expander has some room to expand!\n if (prefix.length + suffix.length > 7) {\n return null;\n }\n for (int i = 0; i < prefix.length; i++) {\n raw[i] = prependZeroes(prefix[i]);\n }\n int startPos = raw.length - suffix.length;\n for (int i = 0; i < suffix.length; i++) {\n raw[startPos + i] = prependZeroes(suffix[i]);\n }\n } else {\n // Okay, whew, no \"::\" zero-expander, but we still have to make sure\n // each element contains 4 hex characters.\n raw = splitOnColon(s);\n if (raw.length != 8) {\n return null;\n }\n for (int i = 0; i < raw.length; i++) {\n raw[i] = prependZeroes(raw[i]);\n }\n }\n\n byte[] ip6 = new byte[16];\n int i = 0;\n for (String tok : raw) {\n if (tok.length() > 4) {\n return null;\n }\n String prefix = tok.substring(0, 2);\n String suffix = tok.substring(2, 4);\n try {\n ip6[i++] = (byte) Integer.parseInt(prefix, 16);\n ip6[i++] = (byte) Integer.parseInt(suffix, 16);\n } catch (NumberFormatException nfe) {\n return null;\n }\n }\n return ip6;\n }",
"public void mo6081a() {\n }",
"@Test\n public void testMakeMaskPrefixIPv4() {\n Ip4Address ipAddress;\n\n ipAddress = Ip4Address.makeMaskPrefix(25);\n assertThat(ipAddress.toString(), is(\"255.255.255.128\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(0);\n assertThat(ipAddress.toString(), is(\"0.0.0.0\"));\n\n ipAddress = Ip4Address.makeMaskPrefix(32);\n assertThat(ipAddress.toString(), is(\"255.255.255.255\"));\n }",
"public void mo55254a() {\n }",
"int getI16();",
"public void setIp(String value) {\n set(24, value);\n }",
"java.lang.String getField1280();",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public AI_SPAC(String [] args){\n\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testADLITTLE() {\n CuteNetlibCase.doTest(\"ADLITTLE.SIF\", \"225494.96316238036\", null, NumberContext.of(7, 4));\n }",
"public byte parseRPScale(){\n\t\treturn data[OFS_ARP_SCALE];\n\t}",
"public static void main(String[] args) {\n\t\tString s = \"9999\"; int k =2 ;\n\t\tSystem.out.println(findMaxSegment(s, k));\n\n\t}",
"@Test\n @Tag(\"bm1000\")\n public void testBEACONFD() {\n CuteNetlibCase.doTest(\"BEACONFD.SIF\", \"33592.4858072\", null, NumberContext.of(7, 4));\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"static com.tencent.mm.plugin.appbrand.jsapi.b.a.a nI(java.lang.String r4) {\n /*\n r0 = 0;\n r1 = r4.length();\n r2 = 5;\n r1 = java.lang.Math.min(r1, r2);\n r1 = java.lang.Math.max(r0, r1);\n r1 = r4.substring(r0, r1);\n r2 = r1.toLowerCase();\n r1 = -1;\n r3 = r2.hashCode();\n switch(r3) {\n case 99228: goto L_0x003a;\n case 3704893: goto L_0x0025;\n case 104080000: goto L_0x002f;\n default: goto L_0x001e;\n };\n L_0x001e:\n r0 = r1;\n L_0x001f:\n switch(r0) {\n case 0: goto L_0x0045;\n case 1: goto L_0x0048;\n case 2: goto L_0x004b;\n default: goto L_0x0022;\n };\n L_0x0022:\n r0 = MONTH;\n L_0x0024:\n return r0;\n L_0x0025:\n r3 = \"year\";\n r2 = r2.equals(r3);\n if (r2 == 0) goto L_0x001e;\n L_0x002e:\n goto L_0x001f;\n L_0x002f:\n r0 = \"month\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0038:\n r0 = 1;\n goto L_0x001f;\n L_0x003a:\n r0 = \"day\";\n r0 = r2.equals(r0);\n if (r0 == 0) goto L_0x001e;\n L_0x0043:\n r0 = 2;\n goto L_0x001f;\n L_0x0045:\n r0 = YEAR;\n goto L_0x0024;\n L_0x0048:\n r0 = MONTH;\n goto L_0x0024;\n L_0x004b:\n r0 = DAY;\n goto L_0x0024;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.jsapi.b.a.a.nI(java.lang.String):com.tencent.mm.plugin.appbrand.jsapi.b.a$a\");\n }",
"long getUnknown12();",
"String mo20730b();"
] | [
"0.5292165",
"0.5116829",
"0.5104743",
"0.50601125",
"0.50137687",
"0.49755737",
"0.49730736",
"0.49262866",
"0.49120483",
"0.4890374",
"0.48630473",
"0.4848078",
"0.48404142",
"0.4835439",
"0.48347503",
"0.481245",
"0.47968426",
"0.47949582",
"0.47937638",
"0.47912472",
"0.4775683",
"0.4759008",
"0.47528094",
"0.47477973",
"0.4745565",
"0.4722502",
"0.47132003",
"0.4697761",
"0.4697475",
"0.4695254",
"0.46932927",
"0.46906874",
"0.46863487",
"0.46709454",
"0.4665222",
"0.46624127",
"0.46573234",
"0.46510157",
"0.46489626",
"0.46385068",
"0.46352705",
"0.46244723",
"0.46190855",
"0.4609671",
"0.46094063",
"0.46094063",
"0.46067265",
"0.45999908",
"0.4592259",
"0.45917177",
"0.45874158",
"0.45873144",
"0.45770076",
"0.45733893",
"0.4571401",
"0.45636004",
"0.4559417",
"0.45574158",
"0.45495954",
"0.45495954",
"0.45495954",
"0.45495954",
"0.45495954",
"0.45495954",
"0.45495954",
"0.45230743",
"0.45145524",
"0.45142204",
"0.45110074",
"0.4504815",
"0.4502694",
"0.45013726",
"0.44900143",
"0.44816035",
"0.44813058",
"0.447917",
"0.44787553",
"0.44761333",
"0.44731674",
"0.4469125",
"0.446765",
"0.44640195",
"0.44621396",
"0.44610402",
"0.4460949",
"0.44571966",
"0.44510671",
"0.44464734",
"0.4440719",
"0.44363922",
"0.4436017",
"0.44311222",
"0.44291165",
"0.44285852",
"0.44274613",
"0.44265658",
"0.4426315",
"0.4426001",
"0.44253412",
"0.4424227",
"0.44239146"
] | 0.0 | -1 |
/ 173: / 174: | public void setIndicadorImpreso(boolean indicadorImpreso)
/* 175: */ {
/* 176:190 */ this.indicadorImpreso = indicadorImpreso;
/* 177: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"long getUnknown72();",
"int getLngE6();",
"int getLngE6();",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21877s() {\n }",
"public void mo21794S() {\n }",
"public void mo12628c() {\n }",
"public abstract long mo9746k();",
"private void m50366E() {\n }",
"public void mo21786K() {\n }",
"public static asw m47155c() {\n return zzfkz;\n }",
"public void mo21787L() {\n }",
"public abstract long mo13681c();",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"public void skystonePos4() {\n }",
"public void mo21782G() {\n }",
"public abstract long mo9229aD();",
"public void method_4270() {}",
"public void mo38117a() {\n }",
"int getLatE6();",
"int getLatE6();",
"public void mo21879u() {\n }",
"public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}",
"public void mo6081a() {\n }",
"public void mo21878t() {\n }",
"public static int m8655e() {\n return 8;\n }",
"public void skystonePos6() {\n }",
"void mo33732Px();",
"void m1864a() {\r\n }",
"public int arn() {\n return 383;\n }",
"long getUnknown12();",
"public void method_192() {}",
"public abstract long mo24410c();",
"public abstract long mo9743h();",
"public void mo21783H() {\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"public int mo36g() {\n return 8;\n }",
"void mo1943l();",
"String mo30285c(long j);",
"void m63698a() {\n m63702c();\n m63701b();\n }",
"Info mo7564ix();",
"public abstract long mo24412e();",
"private void kk12() {\n\n\t}",
"private void m81855s() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA1BAF209420E2\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58082n = Integer.parseInt(c);\n }\n } catch (Throwable th) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), th.getMessage());\n this.f58082n = 0;\n }\n if (this.f58082n == 0 && C6969H.m41409d(\"G7E94C254A538A221F3409347FF\").equals(this.f58071c.getHost())) {\n this.f58082n = AppIdRouterHelper.m81728a(this.f58072d.getPath());\n }\n }",
"long mo20406a();",
"public int mo36g() {\n return 4;\n }",
"public abstract long mo9755t();",
"public void method_191() {}",
"public int mo9232aG() {\n return 0;\n }",
"public abstract long mo24409b();",
"static synchronized int[] zzeT(java.lang.String r13) {\n /*\n r8 = com.google.android.gms.internal.zzaqx.class;\n monitor-enter(r8);\n r1 = 0;\n r9 = r13.length();\t Catch:{ all -> 0x001c }\n r0 = 0;\n r6 = 0;\n r4 = 0;\n r3 = 0;\n r5 = r6;\n r6 = r0;\n L_0x000e:\n if (r1 >= r9) goto L_0x0205;\n L_0x0010:\n r0 = 2045; // 0x7fd float:2.866E-42 double:1.0104E-320;\n if (r6 <= r0) goto L_0x001f;\n L_0x0014:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Pattern is too large!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x001c:\n r0 = move-exception;\n monitor-exit(r8);\n throw r0;\n L_0x001f:\n r0 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r2 = 0;\n switch(r0) {\n case 42: goto L_0x00e1;\n case 43: goto L_0x0109;\n case 46: goto L_0x0131;\n case 91: goto L_0x0044;\n case 92: goto L_0x0143;\n case 93: goto L_0x0071;\n case 123: goto L_0x00a2;\n case 125: goto L_0x00ce;\n default: goto L_0x0027;\n };\t Catch:{ all -> 0x001c }\n L_0x0027:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n L_0x0030:\n if (r6 == 0) goto L_0x0191;\n L_0x0032:\n if (r0 == 0) goto L_0x015f;\n L_0x0034:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r0[r2] = r4;\t Catch:{ all -> 0x001c }\n r0 = 0;\n r2 = r3;\n L_0x003c:\n r2 = r2 + 1;\n r3 = r0;\n r4 = r5;\n r5 = r6;\n r6 = r1;\n r1 = r2;\n goto L_0x000e;\n L_0x0044:\n if (r5 == 0) goto L_0x0050;\n L_0x0046:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x0050:\n r0 = r1 + 1;\n r0 = r13.charAt(r0);\t Catch:{ all -> 0x001c }\n r2 = 94;\n if (r0 != r2) goto L_0x0069;\n L_0x005a:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -2;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n r1 = r1 + 1;\n L_0x0063:\n r1 = r1 + 1;\n r6 = 1;\n r5 = r6;\n r6 = r0;\n goto L_0x000e;\n L_0x0069:\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = r6 + 1;\n r5 = -1;\n r2[r6] = r5;\t Catch:{ all -> 0x001c }\n goto L_0x0063;\n L_0x0071:\n if (r5 != 0) goto L_0x007d;\n L_0x0073:\n r2 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x007d:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r5 = r6 + -1;\n r3 = r3[r5];\t Catch:{ all -> 0x001c }\n r5 = -1;\n if (r3 == r5) goto L_0x0089;\n L_0x0086:\n r5 = -2;\n if (r3 != r5) goto L_0x0091;\n L_0x0089:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"You must define characters in a set.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0091:\n r3 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r5 = -3;\n r3[r6] = r5;\t Catch:{ all -> 0x001c }\n r5 = 0;\n r3 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00a2:\n if (r5 != 0) goto L_0x021b;\n L_0x00a4:\n if (r6 == 0) goto L_0x00b2;\n L_0x00a6:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + -1;\n r4 = r4[r7];\t Catch:{ all -> 0x001c }\n r4 = zzjL(r4);\t Catch:{ all -> 0x001c }\n if (r4 == 0) goto L_0x00ba;\n L_0x00b2:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00ba:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r4 = r6 + 1;\n r10 = -5;\n r7[r6] = r10;\t Catch:{ all -> 0x001c }\n r6 = r1 + 1;\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r6;\n r6 = r5;\n r5 = r1;\n r1 = r2;\n r2 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x00ce:\n if (r4 == 0) goto L_0x021b;\n L_0x00d0:\n r4 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r10 = -6;\n r4[r6] = r10;\t Catch:{ all -> 0x001c }\n r4 = 0;\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x00e1:\n if (r5 != 0) goto L_0x021b;\n L_0x00e3:\n if (r6 == 0) goto L_0x00f1;\n L_0x00e5:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x00f9;\n L_0x00f1:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x00f9:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -7;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0109:\n if (r5 != 0) goto L_0x021b;\n L_0x010b:\n if (r6 == 0) goto L_0x0119;\n L_0x010d:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r10 = r6 + -1;\n r7 = r7[r10];\t Catch:{ all -> 0x001c }\n r7 = zzjL(r7);\t Catch:{ all -> 0x001c }\n if (r7 == 0) goto L_0x0121;\n L_0x0119:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Modifier must follow a token.\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x0121:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -8;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0131:\n if (r5 != 0) goto L_0x021b;\n L_0x0133:\n r10 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r6 + 1;\n r11 = -4;\n r10[r6] = r11;\t Catch:{ all -> 0x001c }\n r6 = r5;\n r5 = r4;\n r4 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r7;\n goto L_0x0030;\n L_0x0143:\n r0 = r1 + 1;\n if (r0 < r9) goto L_0x014f;\n L_0x0147:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Escape found at end of pattern!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x014f:\n r2 = r1 + 1;\n r0 = r13.charAt(r2);\t Catch:{ all -> 0x001c }\n r1 = 1;\n r12 = r0;\n r0 = r3;\n r3 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n L_0x015f:\n r1 = r3 + 2;\n if (r1 >= r9) goto L_0x0182;\n L_0x0163:\n r1 = r3 + 1;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 45;\n if (r1 != r7) goto L_0x0182;\n L_0x016d:\n r1 = r3 + 2;\n r1 = r13.charAt(r1);\t Catch:{ all -> 0x001c }\n r7 = 93;\n if (r1 == r7) goto L_0x0182;\n L_0x0177:\n r0 = 1;\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3 + 1;\n goto L_0x003c;\n L_0x0182:\n r1 = zzbip;\t Catch:{ all -> 0x001c }\n r7 = r2 + 1;\n r1[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r7 + 1;\n r2[r7] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0191:\n if (r5 == 0) goto L_0x01fa;\n L_0x0193:\n r1 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r4 = r13.indexOf(r1, r3);\t Catch:{ all -> 0x001c }\n if (r4 >= 0) goto L_0x01a3;\n L_0x019b:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Range not ended with '}'\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x01a3:\n r1 = r13.substring(r3, r4);\t Catch:{ all -> 0x001c }\n r3 = 44;\n r7 = r1.indexOf(r3);\t Catch:{ all -> 0x001c }\n if (r7 >= 0) goto L_0x01c7;\n L_0x01af:\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r1;\n L_0x01b4:\n if (r3 <= r1) goto L_0x01e7;\n L_0x01b6:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ NumberFormatException -> 0x01be }\n r1 = \"Range quantifier minimum is greater than maximum\";\n r0.<init>(r1);\t Catch:{ NumberFormatException -> 0x01be }\n throw r0;\t Catch:{ NumberFormatException -> 0x01be }\n L_0x01be:\n r0 = move-exception;\n r1 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r2 = \"Range number format incorrect\";\n r1.<init>(r2, r0);\t Catch:{ all -> 0x001c }\n throw r1;\t Catch:{ all -> 0x001c }\n L_0x01c7:\n r3 = 0;\n r3 = r1.substring(r3, r7);\t Catch:{ NumberFormatException -> 0x01be }\n r3 = java.lang.Integer.parseInt(r3);\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r1.length();\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r10 + -1;\n if (r7 != r10) goto L_0x01dc;\n L_0x01d8:\n r1 = 2147483647; // 0x7fffffff float:NaN double:1.060997895E-314;\n goto L_0x01b4;\n L_0x01dc:\n r7 = r7 + 1;\n r1 = r1.substring(r7);\t Catch:{ NumberFormatException -> 0x01be }\n r1 = java.lang.Integer.parseInt(r1);\t Catch:{ NumberFormatException -> 0x01be }\n goto L_0x01b4;\n L_0x01e7:\n r7 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r10 = r2 + 1;\n r7[r2] = r3;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = zzbip;\t Catch:{ NumberFormatException -> 0x01be }\n r2 = r10 + 1;\n r3[r10] = r1;\t Catch:{ NumberFormatException -> 0x01be }\n r3 = r0;\n r1 = r4;\n r4 = r5;\n r5 = r6;\n r6 = r2;\n goto L_0x000e;\n L_0x01fa:\n if (r1 == 0) goto L_0x0217;\n L_0x01fc:\n r7 = zzbip;\t Catch:{ all -> 0x001c }\n r1 = r2 + 1;\n r7[r2] = r4;\t Catch:{ all -> 0x001c }\n r2 = r3;\n goto L_0x003c;\n L_0x0205:\n if (r5 == 0) goto L_0x020f;\n L_0x0207:\n r0 = new java.lang.IllegalArgumentException;\t Catch:{ all -> 0x001c }\n r1 = \"Set was not terminated!\";\n r0.<init>(r1);\t Catch:{ all -> 0x001c }\n throw r0;\t Catch:{ all -> 0x001c }\n L_0x020f:\n r0 = zzbip;\t Catch:{ all -> 0x001c }\n r0 = java.util.Arrays.copyOf(r0, r6);\t Catch:{ all -> 0x001c }\n monitor-exit(r8);\n return r0;\n L_0x0217:\n r1 = r2;\n r2 = r3;\n goto L_0x003c;\n L_0x021b:\n r12 = r0;\n r0 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r6;\n r6 = r5;\n r5 = r4;\n r4 = r12;\n goto L_0x0030;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.zzaqx.zzeT(java.lang.String):int[]\");\n }",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"void mo72114c();",
"public void mo21880v() {\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public void mo23813b() {\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 }",
"private void m50367F() {\n }",
"public abstract int mo9754s();",
"public void mo12930a() {\n }",
"void mo4873a(C4718l c4718l);",
"public void mo55254a() {\n }",
"C1458cs mo7613iS();",
"static int SC(int db) {\n return (int) (db * ((3 / EG_STEP) * (1 << ENV_BITS))) + EG_DST;\n }",
"public void mo21792Q() {\n }",
"public void mo21779D() {\n }",
"void mo21076g();",
"public void skystonePos5() {\n }",
"@Test(timeout = 4000)\n public void test065() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-32768L), 2147484379L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.equals(range_CoordinateSystem1);\n Range range1 = Range.of(range_CoordinateSystem1, (-32768L), 2147484379L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem2);\n assertEquals(\"[ -32769 .. 2147484379 ]/SB\", string0);\n \n long long0 = range0.getBegin();\n assertEquals((-32769L), long0);\n }",
"public void mo21785J() {\n }",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public void mo21795T() {\n }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"public void mo21780E() {\n }",
"C2841w mo7234g();",
"public void mo21867i() {\n mo21877s();\n }",
"private final com.google.android.gms.internal.p000firebaseperf.zzbu zzw() {\n /*\n r15 = this;\n java.lang.String r0 = \"FirebasePerformance\"\n r1 = 0\n java.io.BufferedReader r2 = new java.io.BufferedReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.io.FileReader r3 = new java.io.FileReader // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.lang.String r4 = r15.zzba // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r3.<init>(r4) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n r2.<init>(r3) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n java.util.concurrent.TimeUnit r3 = java.util.concurrent.TimeUnit.MILLISECONDS // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r4 = java.lang.System.currentTimeMillis() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r3 = r3.toMicros(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r5 = r2.readLine() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n java.lang.String r6 = \" \"\n java.lang.String[] r5 = r5.split(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r6 = 13\n r6 = r5[r6] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = java.lang.Long.parseLong(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r8 = 15\n r8 = r5[r8] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r8 = java.lang.Long.parseLong(r8) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r10 = 14\n r10 = r5[r10] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = java.lang.Long.parseLong(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r12 = 16\n r5 = r5[r12] // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r12 = java.lang.Long.parseLong(r5) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r5 = com.google.android.gms.internal.p000firebaseperf.zzbu.zzdl() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r5.zzu(r3) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r10 = r10 + r12\n long r4 = r15.zzd(r10) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzw(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n long r6 = r6 + r8\n long r4 = r15.zzd(r6) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu$zza r3 = r3.zzv(r4) // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzga r3 = r3.zzhr() // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzep r3 = (com.google.android.gms.internal.p000firebaseperf.zzep) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n com.google.android.gms.internal.firebase-perf.zzbu r3 = (com.google.android.gms.internal.p000firebaseperf.zzbu) r3 // Catch:{ Throwable -> 0x006c, all -> 0x0069 }\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n return r3\n L_0x0069:\n r3 = move-exception\n r4 = r1\n goto L_0x0072\n L_0x006c:\n r3 = move-exception\n throw r3 // Catch:{ all -> 0x006e }\n L_0x006e:\n r4 = move-exception\n r14 = r4\n r4 = r3\n r3 = r14\n L_0x0072:\n if (r4 == 0) goto L_0x007d\n r2.close() // Catch:{ Throwable -> 0x0078 }\n goto L_0x0080\n L_0x0078:\n r2 = move-exception\n com.google.android.gms.internal.p000firebaseperf.zzak.zza(r4, r2) // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n goto L_0x0080\n L_0x007d:\n r2.close() // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0080:\n throw r3 // Catch:{ IOException -> 0x00a4, ArrayIndexOutOfBoundsException -> 0x0085, NumberFormatException -> 0x0083, NullPointerException -> 0x0081 }\n L_0x0081:\n r2 = move-exception\n goto L_0x0086\n L_0x0083:\n r2 = move-exception\n goto L_0x0086\n L_0x0085:\n r2 = move-exception\n L_0x0086:\n java.lang.String r3 = \"Unexpected '/proc/[pid]/stat' file format encountered: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x009b\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00a0\n L_0x009b:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00a0:\n android.util.Log.w(r0, r2)\n goto L_0x00c2\n L_0x00a4:\n r2 = move-exception\n java.lang.String r3 = \"Unable to read 'proc/[pid]/stat' file: \"\n java.lang.String r2 = r2.getMessage()\n java.lang.String r2 = java.lang.String.valueOf(r2)\n int r4 = r2.length()\n if (r4 == 0) goto L_0x00ba\n java.lang.String r2 = r3.concat(r2)\n goto L_0x00bf\n L_0x00ba:\n java.lang.String r2 = new java.lang.String\n r2.<init>(r3)\n L_0x00bf:\n android.util.Log.w(r0, r2)\n L_0x00c2:\n return r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.p000firebaseperf.zzap.zzw():com.google.android.gms.internal.firebase-perf.zzbu\");\n }",
"public void mo56167c() {\n }",
"void mo56163g();",
"private void m14721t() {\n if (this.f10951f <= this.f10952g) {\n if (this.f10950e == null) {\n this.f10950e = this.f10962q.mo12209b(16384);\n }\n this.f10952g = 0;\n this.f10951f = Math.min(this.f10948c.remaining(), 16384);\n this.f10948c.get(this.f10950e, 0, this.f10951f);\n }\n }",
"public void mo21788M() {\n }",
"public static int m8651d() {\n return 4;\n }",
"public static int offset_infos_log_src() {\n return (16 / 8);\n }",
"void mo12637b();",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"static void m14934e(String str) {\n int b = m14929b();\n int d = C3205z0.INFO.mo12550d();\n }",
"void m8367a();",
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"public final int mo6465d() {\n return 19729000;\n }",
"public abstract String mo118046b();",
"abstract String mo1748c();",
"void mo12638c();",
"void m8368b();",
"public void mo115188a() {\n }"
] | [
"0.5993378",
"0.5873376",
"0.5873376",
"0.5806754",
"0.56074244",
"0.5594833",
"0.5563248",
"0.55571127",
"0.5528682",
"0.55253625",
"0.55137515",
"0.55098367",
"0.55083597",
"0.54982203",
"0.5495292",
"0.5465675",
"0.5460454",
"0.5455141",
"0.5445136",
"0.5424993",
"0.5424993",
"0.5419806",
"0.54174966",
"0.5414824",
"0.5401137",
"0.539571",
"0.53904474",
"0.53865075",
"0.53804445",
"0.53769124",
"0.5376028",
"0.5358684",
"0.53555226",
"0.5353723",
"0.53489405",
"0.53483266",
"0.534488",
"0.53383785",
"0.53277665",
"0.5325007",
"0.53106976",
"0.53081423",
"0.53032553",
"0.5298134",
"0.52893144",
"0.5289079",
"0.52839315",
"0.52789634",
"0.5271109",
"0.5260211",
"0.5259516",
"0.5250736",
"0.524294",
"0.5241572",
"0.52405035",
"0.5237913",
"0.5237759",
"0.52354616",
"0.52354616",
"0.52354616",
"0.52354616",
"0.52354616",
"0.52354616",
"0.52354616",
"0.52322316",
"0.52257216",
"0.5223047",
"0.5220782",
"0.5220519",
"0.52197474",
"0.5214416",
"0.5214293",
"0.52114064",
"0.52113944",
"0.5210051",
"0.52069694",
"0.520164",
"0.51934993",
"0.51905847",
"0.51886535",
"0.5185958",
"0.5180038",
"0.517931",
"0.5175262",
"0.5173528",
"0.51729584",
"0.5170456",
"0.5168613",
"0.51668656",
"0.5164143",
"0.5162896",
"0.5155621",
"0.5154145",
"0.5153034",
"0.51502526",
"0.5148628",
"0.51477957",
"0.5147643",
"0.51471347",
"0.5147008",
"0.514505"
] | 0.0 | -1 |
/ 178: / 179: | public int getNumeroInicial()
/* 180: */ {
/* 181:194 */ return this.numeroInicial;
/* 182: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void mo12628c() {\n }",
"public void method_4270() {}",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"long getUnknown72();",
"private void m50366E() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"private void m50367F() {\n }",
"protected int mo3987c() {\n return -1;\n }",
"public void mo21787L() {\n }",
"public void mo23813b() {\n }",
"public abstract long mo9229aD();",
"public void mo21782G() {\n }",
"public void mo38117a() {\n }",
"public void mo21879u() {\n }",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"void m1864a() {\r\n }",
"public abstract long mo13681c();",
"public int arn() {\n return 383;\n }",
"public void mo115190b() {\n }",
"public void mo21794S() {\n }",
"void mo1943l();",
"public void mo12202n() {\n this.f10959n = -1;\n }",
"public void mo21786K() {\n }",
"public int method_209() {\r\n return 0;\r\n }",
"public long calHurt() {\n/* 82 */ return 0L;\n/* */ }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"public void mo21877s() {\n }",
"public void mo21783H() {\n }",
"public void mo21878t() {\n }",
"public int mo9232aG() {\n return 0;\n }",
"public abstract long mo24409b();",
"public abstract long mo24410c();",
"private View m3984P() {\n return mo4729d(this.f3143x ? mo4732e() - 1 : 0);\n }",
"public void mo21809a(android.view.LayoutInflater r13, android.view.ViewGroup r14, android.os.Bundle r15, p256e.p258b.C6977a r16, android.view.SurfaceHolder r17) {\n /*\n r12 = this;\n r0 = r12\n r16.mo21761L_()\n int r1 = r16.mo21764b()\n r0.f24533e = r1\n int r1 = r16.mo21765c()\n r0.f24534f = r1\n float r1 = r16.mo21766d()\n r0.f24539k = r1\n r12.mo21870l()\n int r1 = r0.f24531c\n r2 = 0\n r3 = 1\n r4 = -1\n if (r1 != r4) goto L_0x0035\n boolean r1 = r0.f24519V\n if (r1 != 0) goto L_0x002c\n int r1 = r0.f24537i\n if (r1 == r4) goto L_0x002c\n int r1 = r0.f24538j\n if (r1 != r4) goto L_0x0042\n L_0x002c:\n int r1 = r0.f24533e\n r0.f24537i = r1\n int r1 = r0.f24534f\n r0.f24538j = r1\n goto L_0x0042\n L_0x0035:\n boolean r1 = r0.f24519V\n if (r1 != 0) goto L_0x0044\n int r1 = r0.f24537i\n if (r1 == r4) goto L_0x0044\n int r1 = r0.f24538j\n if (r1 != r4) goto L_0x0042\n goto L_0x0044\n L_0x0042:\n r8 = 0\n goto L_0x004b\n L_0x0044:\n r1 = 100\n r0.f24537i = r1\n r0.f24538j = r1\n r8 = 1\n L_0x004b:\n int r1 = r0.f24537i\n int r5 = r0.f24540l\n int r1 = r1 * r5\n r0.f24541m = r1\n int r1 = r0.f24538j\n int r5 = r0.f24540l\n int r1 = r1 * r5\n r0.f24542n = r1\n java.lang.String r1 = r12.mo21873o()\n int r5 = r0.f24537i\n int r6 = r0.f24538j\n e.c.c r1 = r12.mo21799a(r5, r6, r1, r3)\n r0.f24532d = r1\n e.c.c r1 = r0.f24532d\n r5 = r16\n r6 = r17\n e.c.i r1 = r1.mo21705a(r5, r6, r2)\n r0.f24530b = r1\n int r1 = r0.f24531c\n if (r1 != r4) goto L_0x0086\n r12.m36394W()\n e.c.i r1 = r0.f24530b\n int r4 = r0.f24537i\n int r5 = r0.f24538j\n r1.mo22056a(r4, r5)\n goto L_0x0092\n L_0x0086:\n e.c.i r5 = r0.f24530b\n int r6 = r0.f24537i\n int r7 = r0.f24538j\n r9 = r13\n r10 = r14\n r11 = r15\n r5.mo22057a(r6, r7, r8, r9, r10, r11)\n L_0x0092:\n r0.f24515R = r2\n r0.f24512O = r3\n r0.f24513P = r3\n e.c.i r1 = r0.f24530b\n java.io.File r1 = r1.mo22067h()\n java.lang.String r1 = r1.getAbsolutePath()\n r0.f24535g = r1\n e.c.i r1 = r0.f24530b\n r1.mo22069j()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p256e.p259c.C6982a.mo21809a(android.view.LayoutInflater, android.view.ViewGroup, android.os.Bundle, e.b.a, android.view.SurfaceHolder):void\");\n }",
"public void mo3749d() {\n }",
"public void mo21779D() {\n }",
"public void mo21880v() {\n }",
"public void mo6081a() {\n }",
"void mo12637b();",
"public void mo115188a() {\n }",
"private void m20210g() {\n C8466a aVar = this.f18650f;\n if (aVar != null && this.f18666v > 0) {\n aVar.mo25957a(this.f18645a.mo25936a(), this.f18666v);\n this.f18666v = 0;\n }\n }",
"public void mo21781F() {\n }",
"private int m14928a() {\n return this.f11153a;\n }",
"void mo4873a(C4718l c4718l);",
"private final com.google.android.play.p179a.p352a.ae m28545b(com.google.protobuf.nano.a r8) {\n /*\n r7 = this;\n r6 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n L_0x0002:\n r0 = r8.a();\n switch(r0) {\n case 0: goto L_0x000f;\n case 8: goto L_0x0010;\n case 18: goto L_0x001d;\n case 24: goto L_0x002a;\n case 34: goto L_0x0037;\n case 42: goto L_0x0044;\n case 50: goto L_0x0051;\n case 58: goto L_0x005e;\n case 66: goto L_0x006b;\n case 74: goto L_0x0078;\n case 82: goto L_0x0086;\n case 90: goto L_0x0094;\n case 98: goto L_0x00a2;\n case 106: goto L_0x00b0;\n case 114: goto L_0x00be;\n case 122: goto L_0x00cc;\n case 130: goto L_0x00dc;\n case 138: goto L_0x00eb;\n case 144: goto L_0x00fa;\n case 152: goto L_0x0108;\n case 160: goto L_0x0117;\n case 168: goto L_0x0126;\n default: goto L_0x0009;\n };\n L_0x0009:\n r0 = super.m4918a(r8, r0);\n if (r0 != 0) goto L_0x0002;\n L_0x000f:\n return r7;\n L_0x0010:\n r0 = r8.j();\n r7.f30754b = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x001d:\n r0 = r8.f();\n r7.f30755c = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x002a:\n r0 = r8.i();\n r7.f30757e = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0037:\n r0 = r8.f();\n r7.f30758f = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0044:\n r0 = r8.f();\n r7.f30759g = r0;\n r0 = r7.f30753a;\n r0 = r0 | 32;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0051:\n r0 = r8.f();\n r7.f30762j = r0;\n r0 = r7.f30753a;\n r0 = r0 | 256;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x005e:\n r0 = r8.f();\n r7.f30763k = r0;\n r0 = r7.f30753a;\n r0 = r0 | 512;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x006b:\n r0 = r8.f();\n r7.f30760h = r0;\n r0 = r7.f30753a;\n r0 = r0 | 64;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0078:\n r0 = r8.f();\n r7.f30761i = r0;\n r0 = r7.f30753a;\n r0 = r0 | 128;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0086:\n r0 = r8.f();\n r7.f30764l = r0;\n r0 = r7.f30753a;\n r0 = r0 | 1024;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0094:\n r0 = r8.f();\n r7.f30765m = r0;\n r0 = r7.f30753a;\n r0 = r0 | 2048;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00a2:\n r0 = r8.f();\n r7.f30766n = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4096;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00b0:\n r0 = r8.f();\n r7.f30767o = r0;\n r0 = r7.f30753a;\n r0 = r0 | 8192;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00be:\n r0 = r8.f();\n r7.f30768p = r0;\n r0 = r7.f30753a;\n r0 = r0 | 16384;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00cc:\n r0 = r8.f();\n r7.f30769q = r0;\n r0 = r7.f30753a;\n r1 = 32768; // 0x8000 float:4.5918E-41 double:1.61895E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00dc:\n r0 = r8.f();\n r7.f30770r = r0;\n r0 = r7.f30753a;\n r1 = 65536; // 0x10000 float:9.18355E-41 double:3.2379E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00eb:\n r0 = r8.f();\n r7.f30771s = r0;\n r0 = r7.f30753a;\n r1 = 131072; // 0x20000 float:1.83671E-40 double:6.47582E-319;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x00fa:\n r0 = r8.j();\n r7.f30756d = r0;\n r0 = r7.f30753a;\n r0 = r0 | 4;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0108:\n r0 = r8.i();\n r7.f30772t = r0;\n r0 = r7.f30753a;\n r1 = 262144; // 0x40000 float:3.67342E-40 double:1.295163E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0117:\n r0 = r8.e();\n r7.f30773u = r0;\n r0 = r7.f30753a;\n r1 = 524288; // 0x80000 float:7.34684E-40 double:2.590327E-318;\n r0 = r0 | r1;\n r7.f30753a = r0;\n goto L_0x0002;\n L_0x0126:\n r1 = r7.f30753a;\n r1 = r1 | r6;\n r7.f30753a = r1;\n r1 = r8.o();\n r2 = r8.i();\t Catch:{ IllegalArgumentException -> 0x0151 }\n switch(r2) {\n case 0: goto L_0x015a;\n case 1: goto L_0x015a;\n case 2: goto L_0x015a;\n default: goto L_0x0136;\n };\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0136:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = 48;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r4 = \" is not a valid enum PairedDeviceType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0151 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0151 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0151 }\n L_0x0151:\n r2 = move-exception;\n r8.e(r1);\n r7.m4918a(r8, r0);\n goto L_0x0002;\n L_0x015a:\n r7.f30774v = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r7.f30753a;\t Catch:{ IllegalArgumentException -> 0x0151 }\n r2 = r2 | r6;\n r7.f30753a = r2;\t Catch:{ IllegalArgumentException -> 0x0151 }\n goto L_0x0002;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.play.a.a.ae.b(com.google.protobuf.nano.a):com.google.android.play.a.a.ae\");\n }",
"long getUnknown12();",
"public void mo12930a() {\n }",
"public abstract void mo53562a(C18796a c18796a);",
"public void mo21890a() {\n mo21891a(this.f24566d);\n }",
"public void mo4361Y() {\n this.f3169c = -1;\n }",
"void mo57278c();",
"public void mo5833c(android.content.Context r7) {\n /*\n r6 = this;\n r0 = 2\n java.lang.String r1 = m3302v() // Catch:{ a -> 0x0097, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0097, IOException -> 0x008a }\n L_0x0008:\n r0 = 1\n java.lang.String r1 = m3304x() // Catch:{ a -> 0x0094, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x0094, IOException -> 0x008a }\n L_0x0010:\n java.lang.Long r0 = m3303w() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r2 = 25\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r2 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r4 = 0\n int r2 = (r2 > r4 ? 1 : (r2 == r4 ? 0 : -1))\n if (r2 == 0) goto L_0x0034\n r2 = 17\n long r3 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n long r0 = r0 - r3\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r0 = 23\n long r1 = startTime // Catch:{ a -> 0x0092, IOException -> 0x008a }\n r6.mo5829a(r0, r1) // Catch:{ a -> 0x0092, IOException -> 0x008a }\n L_0x0034:\n android.view.MotionEvent r0 = r6.f2852jY // Catch:{ a -> 0x0090, IOException -> 0x008a }\n android.util.DisplayMetrics r1 = r6.f2853jZ // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.util.ArrayList r1 = m3296a(r0, r1) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 14\n r0 = 0\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 15\n r0 = 1\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r3 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r3) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n int r0 = r1.size() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r2 = 3\n if (r0 < r2) goto L_0x0073\n r2 = 16\n r0 = 2\n java.lang.Object r0 = r1.get(r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n java.lang.Long r0 = (java.lang.Long) r0 // Catch:{ a -> 0x0090, IOException -> 0x008a }\n long r0 = r0.longValue() // Catch:{ a -> 0x0090, IOException -> 0x008a }\n r6.mo5829a(r2, r0) // Catch:{ a -> 0x0090, IOException -> 0x008a }\n L_0x0073:\n r0 = 27\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008e, IOException -> 0x008a }\n java.lang.String r1 = m3295a(r7, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008e, IOException -> 0x008a }\n L_0x007e:\n r0 = 29\n com.google.android.gms.internal.n r1 = r6.f2854ka // Catch:{ a -> 0x008c, IOException -> 0x008a }\n java.lang.String r1 = m3298b(r7, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n r6.mo5830a(r0, r1) // Catch:{ a -> 0x008c, IOException -> 0x008a }\n L_0x0089:\n return\n L_0x008a:\n r0 = move-exception\n goto L_0x0089\n L_0x008c:\n r0 = move-exception\n goto L_0x0089\n L_0x008e:\n r0 = move-exception\n goto L_0x007e\n L_0x0090:\n r0 = move-exception\n goto L_0x0073\n L_0x0092:\n r0 = move-exception\n goto L_0x0034\n L_0x0094:\n r0 = move-exception\n goto L_0x0010\n L_0x0097:\n r0 = move-exception\n goto L_0x0008\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.C1107j.mo5833c(android.content.Context):void\");\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"void m8368b();",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"private void m5296a() {\n C2261g.m9760a(1052673, \"Android \" + VERSION.RELEASE);\n C2261g.m9760a(1052674, Build.BRAND);\n C2261g.m9760a(1052675, Build.MODEL);\n C2261g.m9760a(1056769, getResources().getConfiguration().locale.getCountry());\n C2261g.m9760a(1056770, getResources().getConfiguration().locale.getLanguage());\n C2261g.m9760a(1060865, m5297b());\n }",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"public final void mo37836u_() {\n }",
"public void mo21793R() {\n }",
"void mo72113b();",
"public void mo21792Q() {\n }",
"void mo4874b(C4718l c4718l);",
"private static int m14929b() {\n return C3150p0.m15121Y();\n }",
"void mo12638c();",
"private void kk12() {\n\n\t}",
"protected String[] mo1613b() {\r\n return f4638d;\r\n }",
"public void mo21780E() {\n }",
"public abstract int mo9754s();",
"public void mo44053a() {\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 }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"public void mo3376r() {\n }",
"void mo21073d();",
"void mo17023d();",
"public void mo21785J() {\n }",
"private View m3983O() {\n return mo4729d(this.f3143x ? 0 : mo4732e() - 1);\n }",
"void mo17013d();",
"public abstract int mo9747l();",
"public void mo55254a() {\n }",
"void mo72114c();",
"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 }",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"void mo119582b();",
"public void mo4359a() {\n }",
"public void mo21791P() {\n }",
"public void mo21795T() {\n }",
"public void mo9137b() {\n }",
"public abstract long mo24412e();",
"public abstract long mo9746k();",
"void mo21076g();",
"void mo17012c();",
"public void mo21825b() {\n }",
"public void mo1531a() {\n }",
"void mo57277b();",
"public abstract void mo27385c();"
] | [
"0.59851056",
"0.59829897",
"0.59362906",
"0.5883662",
"0.58259505",
"0.5819958",
"0.5798275",
"0.57568157",
"0.575204",
"0.5750321",
"0.57495743",
"0.57337487",
"0.57160825",
"0.5690691",
"0.5689241",
"0.5685898",
"0.56727684",
"0.5670687",
"0.56630266",
"0.5662103",
"0.56605923",
"0.5655025",
"0.5628772",
"0.5626076",
"0.5624498",
"0.562311",
"0.5617134",
"0.56090665",
"0.5607817",
"0.55933666",
"0.5589308",
"0.55891836",
"0.5577865",
"0.5571866",
"0.55705",
"0.5569195",
"0.5568753",
"0.55589",
"0.5555345",
"0.5553655",
"0.5552471",
"0.5547973",
"0.55445564",
"0.55412185",
"0.55402714",
"0.55402416",
"0.5536235",
"0.5530029",
"0.5527303",
"0.5523497",
"0.5519441",
"0.5515274",
"0.5507351",
"0.5504348",
"0.55003035",
"0.5498265",
"0.5493991",
"0.54934025",
"0.54911",
"0.5487969",
"0.5484423",
"0.54825944",
"0.5480153",
"0.54801524",
"0.5477348",
"0.5469385",
"0.5467444",
"0.54624695",
"0.5462095",
"0.5458859",
"0.5458859",
"0.5458859",
"0.5458859",
"0.5458859",
"0.5458859",
"0.5458859",
"0.5450313",
"0.54500985",
"0.54456294",
"0.5445384",
"0.54446954",
"0.544468",
"0.5442646",
"0.5441141",
"0.54377717",
"0.54367393",
"0.5435478",
"0.5433186",
"0.54290044",
"0.54236215",
"0.54233027",
"0.5418794",
"0.5416062",
"0.54153347",
"0.5414624",
"0.54146045",
"0.54142666",
"0.541181",
"0.5411583",
"0.54113555",
"0.54107565"
] | 0.0 | -1 |
/ 183: / 184: | public void setNumeroInicial(int numeroInicial)
/* 185: */ {
/* 186:198 */ this.numeroInicial = numeroInicial;
/* 187: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"public final void mo14764a() {\n /*\n r9 = this;\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r2 = r9.f10846a\n monitor-enter(r2)\n int r3 = r9.f10847b // Catch:{ all -> 0x004d }\n int r4 = com.google.android.gms.internal.ads.C2349r5.f10765b // Catch:{ all -> 0x004d }\n if (r3 != r4) goto L_0x002c\n long r5 = r9.f10848c // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzaaq<java.lang.Long> r3 = com.google.android.gms.internal.ads.zzabf.zzcwh // Catch:{ all -> 0x004d }\n com.google.android.gms.internal.ads.zzabb r7 = com.google.android.gms.internal.ads.zzwq.zzqe() // Catch:{ all -> 0x004d }\n java.lang.Object r3 = r7.zzd(r3) // Catch:{ all -> 0x004d }\n java.lang.Long r3 = (java.lang.Long) r3 // Catch:{ all -> 0x004d }\n long r7 = r3.longValue() // Catch:{ all -> 0x004d }\n long r5 = r5 + r7\n int r3 = (r5 > r0 ? 1 : (r5 == r0 ? 0 : -1))\n if (r3 > 0) goto L_0x002c\n int r0 = com.google.android.gms.internal.ads.C2349r5.f10764a // Catch:{ all -> 0x004d }\n r9.f10847b = r0 // Catch:{ all -> 0x004d }\n L_0x002c:\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n com.google.android.gms.common.util.Clock r0 = com.google.android.gms.ads.internal.zzp.zzkx()\n long r0 = r0.currentTimeMillis()\n java.lang.Object r3 = r9.f10846a\n monitor-enter(r3)\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n r5 = 2\n if (r2 == r5) goto L_0x003f\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x003f:\n r2 = 3\n r9.f10847b = r2 // Catch:{ all -> 0x004a }\n int r2 = r9.f10847b // Catch:{ all -> 0x004a }\n if (r2 != r4) goto L_0x0048\n r9.f10848c = r0 // Catch:{ all -> 0x004a }\n L_0x0048:\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n return\n L_0x004a:\n r0 = move-exception\n monitor-exit(r3) // Catch:{ all -> 0x004a }\n throw r0\n L_0x004d:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x004d }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.C2386s5.mo14764a():void\");\n }",
"public abstract long mo13681c();",
"private void m14721t() {\n if (this.f10951f <= this.f10952g) {\n if (this.f10950e == null) {\n this.f10950e = this.f10962q.mo12209b(16384);\n }\n this.f10952g = 0;\n this.f10951f = Math.min(this.f10948c.remaining(), 16384);\n this.f10948c.get(this.f10950e, 0, this.f10951f);\n }\n }",
"private void m20210g() {\n C8466a aVar = this.f18650f;\n if (aVar != null && this.f18666v > 0) {\n aVar.mo25957a(this.f18645a.mo25936a(), this.f18666v);\n this.f18666v = 0;\n }\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"public void mo130017a() {\n this.f109119k = 0;\n mo130020b();\n }",
"public abstract long mo9746k();",
"public long calHurt() {\n/* 82 */ return 0L;\n/* */ }",
"private void m27469e() {\n int i;\n int i2 = this.f25262I * this.f25259F;\n if (this.f25281ae) {\n i = Integer.MIN_VALUE;\n } else {\n i = ((-this.f25259F) * (this.f25301p.size() - 1)) + i2;\n }\n this.f25264K = i;\n if (this.f25281ae) {\n i2 = Integer.MAX_VALUE;\n }\n this.f25265L = i2;\n }",
"public int mo3384v() {\n return 0;\n }",
"@Test(timeout = 4000)\n public void test086() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32729L, 2147483647L);\n Object object0 = new Object();\n long long0 = range0.getBegin();\n assertEquals(32729L, long0);\n \n Object object1 = new Object();\n boolean boolean0 = range0.equals((Object) null);\n assertFalse(boolean0);\n }",
"@Test(timeout = 4000)\n public void test026() throws Throwable {\n Range range0 = Range.ofLength(0L);\n long long0 = range0.getLength();\n assertEquals(0L, long0);\n \n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n long long1 = range0.getEnd(range_CoordinateSystem0);\n assertEquals(0L, long1);\n }",
"long getUnknown72();",
"public long mo9228aC() {\n return 0;\n }",
"public abstract long mo24409b();",
"public long method_4106() {\n return 0L;\n }",
"@Test(timeout = 4000)\n public void test081() throws Throwable {\n Range range0 = Range.ofLength(9223372036854775535L);\n Range range1 = Range.ofLength(9223372032559808557L);\n range1.getLength();\n Long long0 = new Long(9223372032559808557L);\n range0.equals(\"0RukBJI?a<f|+(VQV\");\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Object object0 = new Object();\n range0.equals((Object) null);\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n assertEquals(3, range_CoordinateSystemArray0.length);\n }",
"private void m27464b() {\n this.f25306u = 0;\n this.f25307v = 0;\n if (this.f25277aa) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(0)));\n } else if (m27462a(this.f25273T)) {\n this.f25306u = (int) this.f25288c.measureText(String.valueOf(this.f25301p.get(this.f25273T)));\n } else if (!TextUtils.isEmpty(this.f25302q)) {\n this.f25306u = (int) this.f25288c.measureText(this.f25302q);\n } else {\n for (Object valueOf : this.f25301p) {\n this.f25306u = Math.max(this.f25306u, (int) this.f25288c.measureText(String.valueOf(valueOf)));\n }\n }\n FontMetrics fontMetrics = this.f25288c.getFontMetrics();\n this.f25307v = (int) (fontMetrics.bottom - fontMetrics.top);\n }",
"@Test(timeout = 4000)\n public void test065() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-32768L), 2147484379L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.ZERO_BASED;\n range0.equals(range_CoordinateSystem1);\n Range range1 = Range.of(range_CoordinateSystem1, (-32768L), 2147484379L);\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n Range.CoordinateSystem range_CoordinateSystem2 = Range.CoordinateSystem.SPACE_BASED;\n String string0 = range0.toString(range_CoordinateSystem2);\n assertEquals(\"[ -32769 .. 2147484379 ]/SB\", string0);\n \n long long0 = range0.getBegin();\n assertEquals((-32769L), long0);\n }",
"private long m18341d(long frameCount) {\n return (1000000 * frameCount) / ((long) this.f16625s);\n }",
"public long method_4107() {\n return 0L;\n }",
"public abstract long mo9229aD();",
"protected float l()\r\n/* 72: */ {\r\n/* 73: 84 */ return 0.0F;\r\n/* 74: */ }",
"@Override\n protected int func_150123_b(int p_150123_1_)\n {\n return 60;\n }",
"public final long mo20953WW() {\n AppMethodBeat.m2504i(60318);\n if (fXT <= 0) {\n fXT = ((ActivityManager) C4996ah.getContext().getSystemService(\"activity\")).getLargeMemoryClass();\n }\n if (fXT >= 512) {\n AppMethodBeat.m2505o(60318);\n return 41943040;\n }\n AppMethodBeat.m2505o(60318);\n return 20971520;\n }",
"public void mo12202n() {\n this.f10959n = -1;\n }",
"public abstract long mo24410c();",
"private void m50366E() {\n }",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public void m6606W() {\n /*\n r17 = this;\n r0 = r17\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 != 0) goto L_0x0007\n return\n L_0x0007:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"<updateTimerView>,mState = \"\n r1.append(r2)\n int r2 = r0.f5435p\n r1.append(r2)\n java.lang.String r1 = r1.toString()\n java.lang.String r2 = \"SR/SoundRecorder\"\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n com.android.service.RecordService$b r1 = r0.f5401U\n long r3 = r1.mo6348i()\n r5 = 1000(0x3e8, double:4.94E-321)\n long r7 = r3 / r5\n r0.f5420ha = r7\n com.android.service.RecordService$b r1 = r0.f5401U\n long r9 = r1.mo6346g()\n int r1 = r0.f5435p\n r11 = 3\n r12 = 4\n r13 = 1\n r14 = 2\n r5 = 0\n if (r1 == 0) goto L_0x009a\n if (r1 == r13) goto L_0x0043\n if (r1 == r14) goto L_0x0055\n if (r1 == r11) goto L_0x0045\n if (r1 == r12) goto L_0x00a1\n L_0x0043:\n r7 = r5\n goto L_0x00a1\n L_0x0045:\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x004b\n r7 = r5\n goto L_0x004d\n L_0x004b:\n r0.f5451x = r5\n L_0x004d:\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n goto L_0x00a1\n L_0x0055:\n r0.f5449w = r3\n int r1 = r0.f5439r\n if (r1 != r12) goto L_0x006b\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r15 = 1000(0x3e8, double:4.94E-321)\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n goto L_0x007f\n L_0x006b:\n r15 = 1000(0x3e8, double:4.94E-321)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n long r7 = r0.f5451x\n r12 = 1\n long r7 = r7 + r12\n r0.f5451x = r7\n long r7 = r7 * r15\n long r12 = r0.f5449w\n long r7 = r7 - r12\n r1.postDelayed(r3, r7)\n L_0x007f:\n long r7 = r0.f5449w\n r12 = 500(0x1f4, double:2.47E-321)\n long r7 = r7 + r12\n long r7 = r7 / r15\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,currentTime = \"\n r1.append(r3)\n r1.append(r7)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n goto L_0x00a1\n L_0x009a:\n r0.f5451x = r5\n r7 = -1000(0xfffffffffffffc18, double:NaN)\n r0.f5449w = r7\n goto L_0x0043\n L_0x00a1:\n java.lang.Object[] r1 = new java.lang.Object[r11]\n r3 = 0\n r11 = 3600(0xe10, double:1.7786E-320)\n long r15 = r7 / r11\n java.lang.Long r13 = java.lang.Long.valueOf(r15)\n r1[r3] = r13\n long r11 = r7 % r11\n r15 = 60\n long r11 = r11 / r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r11 = 1\n r1[r11] = r3\n long r11 = r7 % r15\n java.lang.Long r3 = java.lang.Long.valueOf(r11)\n r1[r14] = r3\n java.lang.String r3 = \"%02d:%02d:%02d\"\n java.lang.String r1 = java.lang.String.format(r3, r1)\n r0.f5413e = r1\n int r1 = r0.f5435p\n if (r1 == r14) goto L_0x00d1\n r3 = 4\n if (r1 != r3) goto L_0x00d6\n L_0x00d1:\n com.android.view.timeview.TimeView r1 = r0.f5387G\n r1.setCurrentTime(r7)\n L_0x00d6:\n int r1 = r0.f5435p\n r0.f5439r = r1\n com.android.service.RecordService$b r1 = r0.f5401U\n if (r1 == 0) goto L_0x012f\n boolean r1 = r0.f5425k\n if (r1 != 0) goto L_0x012f\n boolean r1 = r0.f5421i\n if (r1 == 0) goto L_0x012f\n int r1 = (r9 > r5 ? 1 : (r9 == r5 ? 0 : -1))\n if (r1 > 0) goto L_0x012f\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>,mHasFileSizeLimitation : \"\n r1.append(r3)\n boolean r3 = r0.f5421i\n r1.append(r3)\n java.lang.String r3 = \",mRecorder.getRemainingTime(): \"\n r1.append(r3)\n r1.append(r9)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n android.os.Handler r1 = r0.f5394N\n java.lang.Runnable r3 = r0.f5446ua\n r1.removeCallbacks(r3)\n r1 = 1\n r0.f5425k = r1\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r3 = \"<updateTimerView>, mState = \"\n r1.append(r3)\n int r3 = r0.f5435p\n r1.append(r3)\n java.lang.String r1 = r1.toString()\n p050c.p051a.p058e.p059a.C0938a.m5002a(r2, r1)\n int r1 = r0.f5435p\n if (r1 != r14) goto L_0x012f\n r17.m6604U()\n L_0x012f:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.activity.SoundRecorder.m6606W():void\");\n }",
"public long mo41169e() {\n return (this.f25419a + this.f25420b) - 1;\n }",
"private int m20203b(C8489j dataSpec) {\n if (this.f18652h && this.f18664t) {\n return 0;\n }\n if (!this.f18653i || dataSpec.f18720g != -1) {\n return -1;\n }\n return 1;\n }",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"public void mo105475a() {\n this.f83728b = null;\n this.f83729c = 0;\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void mo1063a() {\n C0253b.m1817c(C0253b.f1698b);\n }",
"@Test(timeout = 4000)\n public void test084() throws Throwable {\n Range range0 = Range.of((-32768L));\n range0.equals((Object) null);\n Long long0 = new Long((-32768L));\n assertEquals((-32768L), (long)long0);\n }",
"private void m15042i() {\n C5322h hVar = this.f13658A;\n if (hVar != null) {\n hVar.mo12738a();\n this.f13658A = null;\n }\n if (this.f13687z != null) {\n this.f13687z = null;\n }\n }",
"long getUnknown12();",
"@Test(timeout = 4000)\n public void test085() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 32767L, 9223372036854775554L);\n Object object0 = new Object();\n range0.toString();\n range0.equals(object0);\n range0.getEnd();\n range0.getLength();\n Range.CoordinateSystem[] range_CoordinateSystemArray0 = Range.CoordinateSystem.values();\n range0.equals((Object) null);\n Range.CoordinateSystem[] range_CoordinateSystemArray1 = Range.CoordinateSystem.values();\n assertNotSame(range_CoordinateSystemArray1, range_CoordinateSystemArray0);\n }",
"@Test(timeout = 4000)\n public void test005() throws Throwable {\n Range range0 = Range.ofLength(0L);\n long long0 = range0.getEnd();\n assertEquals(4294967294L, long0);\n \n Range.ofLength(0L);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n long long1 = range0.getBegin(range_CoordinateSystem0);\n assertEquals(0L, long1);\n }",
"public void mo12628c() {\n }",
"private long m18344e(long frameCount) {\n return (1000000 * frameCount) / ((long) this.f16624r);\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-32768L), 2147484380L);\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-32768L), 2147484380L);\n range1.getEnd();\n boolean boolean0 = range0.equals(range1);\n assertFalse(boolean0);\n \n long long0 = range1.getEnd();\n assertEquals(2147484379L, long0);\n \n Object object0 = new Object();\n range0.getEnd();\n long long1 = range0.getBegin();\n assertEquals((-32769L), long1);\n }",
"public final void mo28214a() {\n this.f18634d = -1;\n }",
"private void c() {\n /*\n r14 = this;\n r12 = android.os.SystemClock.elapsedRealtime();\n r8 = r14.d();\n r0 = r14.t;\n if (r0 == 0) goto L_0x007a;\n L_0x000c:\n r0 = 1;\n r7 = r0;\n L_0x000e:\n r0 = r14.r;\n r0 = r0.a();\n if (r0 != 0) goto L_0x0018;\n L_0x0016:\n if (r7 == 0) goto L_0x007d;\n L_0x0018:\n r0 = 1;\n r10 = r0;\n L_0x001a:\n if (r10 != 0) goto L_0x0095;\n L_0x001c:\n r0 = r14.d;\n r0 = r0.b;\n if (r0 != 0) goto L_0x0028;\n L_0x0022:\n r0 = -1;\n r0 = (r8 > r0 ? 1 : (r8 == r0 ? 0 : -1));\n if (r0 != 0) goto L_0x0032;\n L_0x0028:\n r0 = r14.p;\n r0 = r12 - r0;\n r2 = 2000; // 0x7d0 float:2.803E-42 double:9.88E-321;\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 <= 0) goto L_0x0095;\n L_0x0032:\n r14.p = r12;\n r0 = r14.d;\n r1 = r14.f;\n r1 = r1.size();\n r0.a = r1;\n r0 = r14.c;\n r1 = r14.f;\n r2 = r14.o;\n r4 = r14.m;\n r6 = r14.d;\n r0.getChunkOperation(r1, r2, r4, r6);\n r0 = r14.d;\n r0 = r0.a;\n r0 = r14.a(r0);\n r1 = r14.d;\n r1 = r1.b;\n if (r1 != 0) goto L_0x0080;\n L_0x0059:\n r4 = -1;\n L_0x005b:\n r0 = r14.b;\n r2 = r14.m;\n r1 = r14;\n r6 = r10;\n r0 = r0.update(r1, r2, r4, r6);\n if (r7 == 0) goto L_0x0087;\n L_0x0067:\n r0 = r14.v;\n r0 = r12 - r0;\n r2 = r14.u;\n r2 = (long) r2;\n r2 = r14.c(r2);\n r0 = (r0 > r2 ? 1 : (r0 == r2 ? 0 : -1));\n if (r0 < 0) goto L_0x0079;\n L_0x0076:\n r14.e();\n L_0x0079:\n return;\n L_0x007a:\n r0 = 0;\n r7 = r0;\n goto L_0x000e;\n L_0x007d:\n r0 = 0;\n r10 = r0;\n goto L_0x001a;\n L_0x0080:\n if (r0 == 0) goto L_0x0095;\n L_0x0082:\n r4 = r14.d();\n goto L_0x005b;\n L_0x0087:\n r1 = r14.r;\n r1 = r1.a();\n if (r1 != 0) goto L_0x0079;\n L_0x008f:\n if (r0 == 0) goto L_0x0079;\n L_0x0091:\n r14.f();\n goto L_0x0079;\n L_0x0095:\n r4 = r8;\n goto L_0x005b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.exoplayer.chunk.ChunkSampleSource.c():void\");\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int method_2436() {\r\n return 16;\r\n }",
"void mo33732Px();",
"public int mo27483b() {\n return 0;\n }",
"public void mo12203o() {\n this.f10960o = 0;\n }",
"public abstract long mo9755t();",
"private long m18337c(long durationUs) {\n return (((long) this.f16625s) * durationUs) / 1000000;\n }",
"public void mo133108l() {\n mo133081a(1000);\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"long mo20406a();",
"@Test(timeout = 4000)\n public void test094() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-4L), 9223372036854775554L);\n Object object0 = new Object();\n range0.equals((Object) null);\n range0.getEnd();\n range0.toString(range_CoordinateSystem0);\n Range.Comparators[] range_ComparatorsArray0 = Range.Comparators.values();\n assertEquals(4, range_ComparatorsArray0.length);\n }",
"private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }",
"private int micRecTime(long freeSpace) {\n\n return (int) (freeSpace / 5898240);\n }",
"void mo1943l();",
"public abstract long mo24412e();",
"private void m50367F() {\n }",
"public int mo12191c() {\n return this.f10948c.limit() + this.f10957l.length + (this.f10958m.length * 4);\n }",
"public void mo21880v() {\n }",
"public void mo21890a() {\n mo21891a(this.f24566d);\n }",
"public int mo12720a() {\n return 0;\n }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }",
"private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}",
"public void mo21786K() {\n }",
"void m1864a() {\r\n }",
"private void m43017g() {\n try {\n this.f40245p = this.f40244o + Long.valueOf(this.f40240k.getHeaderField(\"Content-Length\")).longValue();\n } catch (Exception e) {\n this.f40245p = -1;\n }\n }",
"public int mo9232aG() {\n return 0;\n }",
"public int mo4318H() {\n View a = mo4328a(0, mo4732e(), true, false);\n if (a == null) {\n return -1;\n }\n return mo4749l(a);\n }",
"private long m18329a(long positionUs) {\n return m18341d(this.f16610d.mo25074b()) + positionUs;\n }",
"@Test(timeout = 4000)\n public void test040() throws Throwable {\n String string0 = JSONObject.doubleToString((-0.80100864F));\n assertEquals(\"-0.8010086417198181\", string0);\n }",
"public final int mo13053s() {\n return this.zzb;\n }",
"public abstract long mo9743h();",
"public static int offset_cost() {\n return (56 / 8);\n }",
"public void mo21787L() {\n }",
"private int m18349l() {\n if (this.f16622p) {\n int minBufferSize = AudioTrack.getMinBufferSize(this.f16625s, this.f16626t, this.f16627u);\n C8514e.m20490b(minBufferSize != -2);\n return C8509F.m20433a(minBufferSize * 4, ((int) m18337c(250000)) * this.f16589I, (int) Math.max((long) minBufferSize, m18337c(750000) * ((long) this.f16589I)));\n }\n int rate = m18332b(this.f16627u);\n if (this.f16627u == 5) {\n rate *= 2;\n }\n return (int) ((((long) rate) * 250000) / 1000000);\n }",
"public int mo27480a() {\n return 0;\n }",
"public final int mo6465d() {\n return 19729000;\n }",
"@Test(timeout = 4000)\n public void test102() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n Object object0 = new Object();\n Range range1 = Range.of(range_CoordinateSystem0, 2465L, 2465L);\n range1.getBegin();\n range0.equals(range1);\n long long0 = range0.getEnd();\n assertEquals(2464L, long0);\n }",
"public void mo4361Y() {\n this.f3169c = -1;\n }",
"public int mo1980w() throws cf {\r\n return m10275g(m10257E());\r\n }",
"private int m14720s() {\n try {\n m14721t();\n byte[] bArr = this.f10950e;\n int i = this.f10952g;\n this.f10952g = i + 1;\n return bArr[i] & 255;\n } catch (Exception unused) {\n this.f10965t = 1;\n return 0;\n }\n }",
"public final float mo115218k() {\n return this.f119292k - this.f119301u;\n }",
"private int m3944c(C0820v vVar, C0788a0 a0Var, int i) {\n if (!a0Var.mo4536g()) {\n return this.f3125N.mo4307b(i);\n }\n int i2 = this.f3123L.get(i, -1);\n if (i2 != -1) {\n return i2;\n }\n int a = vVar.mo4796a(i);\n if (a != -1) {\n return this.f3125N.mo4307b(a);\n }\n StringBuilder sb = new StringBuilder();\n sb.append(\"Cannot find span size for pre layout position. It is not cached, not in the adapter. Pos:\");\n sb.append(i);\n Log.w(\"GridLayoutManager\", sb.toString());\n return 1;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"private final void m711f() {\n /*\n r25 = this;\n r6 = r25\n long r7 = android.os.SystemClock.uptimeMillis()\n awv r0 = r6.f534s\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r14 = 1\n r15 = 0\n if (r0 != 0) goto L_0x0013\n goto L_0x0224\n L_0x0013:\n int r1 = r6.f511B\n if (r1 > 0) goto L_0x0221\n akn r0 = r6.f531p\n long r1 = r6.f513D\n r0.mo453a(r1)\n akn r0 = r6.f531p\n akl r1 = r0.f603f\n if (r1 != 0) goto L_0x0025\n goto L_0x0041\n L_0x0025:\n akm r2 = r1.f582f\n boolean r2 = r2.f597g\n if (r2 != 0) goto L_0x00e4\n boolean r1 = r1.mo441b()\n if (r1 == 0) goto L_0x00e4\n akl r1 = r0.f603f\n akm r1 = r1.f582f\n long r1 = r1.f595e\n int r3 = (r1 > r11 ? 1 : (r1 == r11 ? 0 : -1))\n if (r3 == 0) goto L_0x00e4\n int r0 = r0.f604g\n r1 = 100\n if (r0 >= r1) goto L_0x00e4\n L_0x0041:\n akn r0 = r6.f531p\n long r1 = r6.f513D\n akp r3 = r6.f533r\n akl r4 = r0.f603f\n if (r4 == 0) goto L_0x0050\n akm r0 = r0.mo449a(r4, r1)\n goto L_0x005a\n L_0x0050:\n awt r1 = r3.f612b\n long r4 = r3.f614d\n long r2 = r3.f613c\n akm r0 = r0.mo451a(r1, r2)\n L_0x005a:\n if (r0 == 0) goto L_0x00c8\n akn r1 = r6.f531p\n aky[] r2 = r6.f519d\n bgq r3 = r6.f520e\n akk r4 = r6.f522g\n ajd r4 = (p000.ajd) r4\n bhz r4 = r4.f433a\n awv r5 = r6.f534s\n bgr r13 = r6.f521f\n akl r9 = r1.f603f\n if (r9 == 0) goto L_0x007e\n long r11 = r9.f586j\n akm r9 = r9.f582f\n long r9 = r9.f595e\n long r11 = r11 + r9\n long r9 = r0.f592b\n long r9 = r11 - r9\n r18 = r9\n goto L_0x0086\n L_0x007e:\n awt r9 = r0.f591a\n boolean r9 = r9.mo1504a()\n r18 = 0\n L_0x0086:\n akl r9 = new akl\n r16 = r9\n r17 = r2\n r20 = r3\n r21 = r4\n r22 = r5\n r23 = r0\n r24 = r13\n r16.<init>(r17, r18, r20, r21, r22, r23, r24)\n akl r2 = r1.f603f\n if (r2 == 0) goto L_0x00a1\n r2.mo439a(r9)\n goto L_0x00a5\n L_0x00a1:\n r1.f601d = r9\n r1.f602e = r9\n L_0x00a5:\n r2 = 0\n r1.f605h = r2\n r1.f603f = r9\n int r2 = r1.f604g\n int r2 = r2 + r14\n r1.f604g = r2\n aws r1 = r9.f577a\n long r2 = r0.f592b\n r1.mo1483a(r6, r2)\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 != r9) goto L_0x00c3\n long r0 = r9.mo434a()\n r6.m691a(r0)\n L_0x00c3:\n r6.m706b(r15)\n goto L_0x00e4\n L_0x00c8:\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n if (r0 == 0) goto L_0x00df\n akx[] r0 = r6.f535t\n int r1 = r0.length\n r2 = 0\n L_0x00d2:\n if (r2 >= r1) goto L_0x00df\n r3 = r0[r2]\n boolean r3 = r3.mo359g()\n if (r3 == 0) goto L_0x00e4\n int r2 = r2 + 1\n goto L_0x00d2\n L_0x00df:\n awv r0 = r6.f534s\n r0.mo1494d()\n L_0x00e4:\n boolean r0 = r6.f539x\n if (r0 == 0) goto L_0x00f2\n boolean r0 = r25.m717l()\n r6.f539x = r0\n r25.m718m()\n goto L_0x00f5\n L_0x00f2:\n r25.m716k()\n L_0x00f5:\n akn r0 = r6.f531p\n akl r0 = r0.f602e\n if (r0 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n if (r1 != 0) goto L_0x012b\n akm r1 = r0.f582f\n boolean r1 = r1.f597g\n if (r1 != 0) goto L_0x0107\n goto L_0x01ba\n L_0x0107:\n r1 = 0\n L_0x0109:\n akx[] r2 = r6.f518c\n int r3 = r2.length\n if (r1 >= r3) goto L_0x0129\n r2 = r2[r1]\n axx[] r3 = r0.f579c\n r3 = r3[r1]\n if (r3 != 0) goto L_0x0117\n goto L_0x0126\n L_0x0117:\n axx r4 = r2.mo358f()\n if (r4 != r3) goto L_0x0126\n boolean r3 = r2.mo359g()\n if (r3 == 0) goto L_0x0126\n r2.mo361i()\n L_0x0126:\n int r1 = r1 + 1\n goto L_0x0109\n L_0x0129:\n goto L_0x01ba\n L_0x012b:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x01ba\n akl r1 = r0.f583g\n boolean r1 = r1.f580d\n if (r1 == 0) goto L_0x01ba\n bgr r0 = r0.f585i\n akn r1 = r6.f531p\n akl r2 = r1.f602e\n if (r2 == 0) goto L_0x0147\n akl r2 = r2.f583g\n if (r2 == 0) goto L_0x0145\n r2 = 1\n goto L_0x0148\n L_0x0145:\n L_0x0147:\n r2 = 0\n L_0x0148:\n p000.bks.m3512b(r2)\n akl r2 = r1.f602e\n akl r2 = r2.f583g\n r1.f602e = r2\n akl r1 = r1.f602e\n bgr r2 = r1.f585i\n aws r3 = r1.f577a\n long r3 = r3.mo1486c()\n r9 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r3 > r9 ? 1 : (r3 == r9 ? 0 : -1))\n if (r5 == 0) goto L_0x016a\n r25.m715j()\n r0 = 0\n goto L_0x01bb\n L_0x016a:\n r3 = 0\n L_0x016b:\n akx[] r4 = r6.f518c\n int r5 = r4.length\n if (r3 >= r5) goto L_0x01b9\n r4 = r4[r3]\n boolean r5 = r0.mo1867a(r3)\n if (r5 != 0) goto L_0x0179\n goto L_0x01b6\n L_0x0179:\n boolean r5 = r4.mo362j()\n if (r5 != 0) goto L_0x01b6\n bgm r5 = r2.f3835c\n bgl r5 = r5.mo1861a(r3)\n boolean r9 = r2.mo1867a(r3)\n aky[] r10 = r6.f519d\n r10 = r10[r3]\n int r10 = r10.mo344a()\n akz[] r11 = r0.f3834b\n r11 = r11[r3]\n akz[] r12 = r2.f3834b\n r12 = r12[r3]\n if (r9 == 0) goto L_0x01b3\n boolean r9 = r12.equals(r11)\n if (r9 == 0) goto L_0x01b3\n r9 = 6\n if (r10 != r9) goto L_0x01a5\n goto L_0x01b3\n L_0x01a5:\n akh[] r5 = m701a(r5)\n axx[] r9 = r1.f579c\n r9 = r9[r3]\n long r10 = r1.f586j\n r4.mo353a(r5, r9, r10)\n goto L_0x01b6\n L_0x01b3:\n r4.mo361i()\n L_0x01b6:\n int r3 = r3 + 1\n goto L_0x016b\n L_0x01b9:\n L_0x01ba:\n r0 = 0\n L_0x01bb:\n boolean r1 = r6.f537v\n if (r1 == 0) goto L_0x0224\n akn r1 = r6.f531p\n akl r2 = r1.f601d\n if (r2 == 0) goto L_0x0224\n akl r3 = r2.f583g\n if (r3 == 0) goto L_0x0224\n akl r1 = r1.f602e\n if (r2 == r1) goto L_0x01ce\n goto L_0x01d4\n L_0x01ce:\n boolean r1 = r25.m714i()\n if (r1 == 0) goto L_0x0224\n L_0x01d4:\n long r1 = r6.f513D\n long r3 = r3.mo434a()\n int r5 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r5 < 0) goto L_0x0224\n if (r0 != 0) goto L_0x01e1\n goto L_0x01e4\n L_0x01e1:\n r25.m703b()\n L_0x01e4:\n akn r0 = r6.f531p\n akl r9 = r0.f601d\n akl r0 = r0.f602e\n if (r9 == r0) goto L_0x01ed\n goto L_0x01f0\n L_0x01ed:\n r25.m715j()\n L_0x01f0:\n akn r0 = r6.f531p\n akl r0 = r0.mo448a()\n r6.m693a(r9)\n akm r0 = r0.f582f\n awt r1 = r0.f591a\n long r2 = r0.f592b\n r4 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n r0 = r25\n akp r0 = r0.m686a(r1, r2, r4)\n r6.f533r = r0\n akm r0 = r9.f582f\n boolean r0 = r0.f596f\n if (r0 != 0) goto L_0x0214\n r0 = 3\n goto L_0x0216\n L_0x0214:\n r0 = 0\n L_0x0216:\n akc r1 = r6.f529n\n r1.mo409b(r0)\n r25.m710e()\n r0 = 1\n goto L_0x01bb\n L_0x0221:\n r0.mo1494d()\n L_0x0224:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r14) goto L_0x022c\n goto L_0x03b3\n L_0x022c:\n r1 = 4\n if (r0 == r1) goto L_0x03b3\n akn r0 = r6.f531p\n akl r0 = r0.f601d\n if (r0 == 0) goto L_0x03ad\n java.lang.String r4 = \"doSomeWork\"\n p000.blk.m3619a(r4)\n r25.m710e()\n boolean r4 = r0.f580d\n r9 = 1000(0x3e8, double:4.94E-321)\n if (r4 == 0) goto L_0x02b5\n long r4 = android.os.SystemClock.elapsedRealtime()\n long r4 = r4 * r9\n aws r11 = r0.f577a\n akp r12 = r6.f533r\n long r12 = r12.f623m\n long r14 = r6.f527l\n long r12 = r12 - r14\n r11.mo1489d(r12)\n r11 = 0\n r12 = 1\n r14 = 1\n L_0x0258:\n akx[] r13 = r6.f518c\n int r15 = r13.length\n if (r11 >= r15) goto L_0x02b2\n r13 = r13[r11]\n int r15 = r13.mo356d()\n if (r15 == 0) goto L_0x02ad\n long r2 = r6.f513D\n r13.mo484a(r2, r4)\n if (r12 == 0) goto L_0x0275\n boolean r2 = r13.mo486w()\n if (r2 == 0) goto L_0x0274\n r12 = 1\n goto L_0x0276\n L_0x0274:\n L_0x0275:\n r12 = 0\n L_0x0276:\n axx[] r2 = r0.f579c\n r2 = r2[r11]\n axx r3 = r13.mo358f()\n if (r2 != r3) goto L_0x028c\n akl r15 = r0.f583g\n if (r15 == 0) goto L_0x028c\n boolean r15 = r13.mo359g()\n if (r15 == 0) goto L_0x028c\n r15 = 1\n goto L_0x028d\n L_0x028c:\n r15 = 0\n L_0x028d:\n if (r2 == r3) goto L_0x0291\n L_0x028f:\n r2 = 1\n goto L_0x02a0\n L_0x0291:\n if (r15 != 0) goto L_0x028f\n boolean r2 = r13.mo485v()\n if (r2 != 0) goto L_0x028f\n boolean r2 = r13.mo486w()\n if (r2 != 0) goto L_0x028f\n r2 = 0\n L_0x02a0:\n if (r14 != 0) goto L_0x02a4\n L_0x02a2:\n r14 = 0\n goto L_0x02a7\n L_0x02a4:\n if (r2 == 0) goto L_0x02a2\n r14 = 1\n L_0x02a7:\n if (r2 != 0) goto L_0x02ad\n r13.mo363k()\n goto L_0x02ae\n L_0x02ad:\n L_0x02ae:\n int r11 = r11 + 1\n goto L_0x0258\n L_0x02b2:\n r16 = r12\n goto L_0x02be\n L_0x02b5:\n aws r2 = r0.f577a\n r2.mo1482a()\n r14 = 1\n r16 = 1\n L_0x02be:\n akm r2 = r0.f582f\n long r2 = r2.f595e\n r4 = 2\n if (r16 != 0) goto L_0x02c6\n goto L_0x02e9\n L_0x02c6:\n boolean r5 = r0.f580d\n if (r5 == 0) goto L_0x02e9\n r11 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 == 0) goto L_0x02db\n akp r5 = r6.f533r\n long r11 = r5.f623m\n int r5 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r5 > 0) goto L_0x02e9\n L_0x02db:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 == 0) goto L_0x02e9\n r6.m690a(r1)\n r25.m709d()\n goto L_0x036b\n L_0x02e9:\n akp r0 = r6.f533r\n int r2 = r0.f615e\n if (r2 == r4) goto L_0x02f0\n goto L_0x034c\n L_0x02f0:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x02fc\n boolean r0 = r25.m712g()\n if (r0 == 0) goto L_0x034c\n goto L_0x033f\n L_0x02fc:\n if (r14 == 0) goto L_0x034c\n boolean r0 = r0.f617g\n if (r0 == 0) goto L_0x033f\n akn r0 = r6.f531p\n akl r0 = r0.f603f\n boolean r2 = r0.mo441b()\n if (r2 != 0) goto L_0x030d\n L_0x030c:\n goto L_0x0314\n L_0x030d:\n akm r0 = r0.f582f\n boolean r0 = r0.f597g\n if (r0 != 0) goto L_0x033f\n goto L_0x030c\n L_0x0314:\n akk r0 = r6.f522g\n long r2 = r25.m719n()\n ajf r5 = r6.f528m\n akq r5 = r5.mo376Q()\n float r5 = r5.f625b\n boolean r11 = r6.f538w\n long r2 = p000.blm.m3661b(r2, r5)\n if (r11 == 0) goto L_0x032f\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f438f\n goto L_0x0333\n L_0x032f:\n ajd r0 = (p000.ajd) r0\n long r11 = r0.f437e\n L_0x0333:\n r15 = 0\n int r0 = (r11 > r15 ? 1 : (r11 == r15 ? 0 : -1))\n if (r0 <= 0) goto L_0x033f\n int r0 = (r2 > r11 ? 1 : (r2 == r11 ? 0 : -1))\n if (r0 >= 0) goto L_0x033f\n goto L_0x034c\n L_0x033f:\n r0 = 3\n r6.m690a(r0)\n boolean r0 = r6.f537v\n if (r0 == 0) goto L_0x036b\n r25.m707c()\n goto L_0x036b\n L_0x034c:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 != r2) goto L_0x036b\n akx[] r0 = r6.f535t\n int r0 = r0.length\n if (r0 != 0) goto L_0x035f\n boolean r0 = r25.m712g()\n if (r0 != 0) goto L_0x036b\n goto L_0x0361\n L_0x035f:\n if (r14 != 0) goto L_0x036b\n L_0x0361:\n boolean r0 = r6.f537v\n r6.f538w = r0\n r6.m690a(r4)\n r25.m709d()\n L_0x036b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x037f\n akx[] r0 = r6.f535t\n int r2 = r0.length\n r3 = 0\n L_0x0375:\n if (r3 >= r2) goto L_0x037f\n r5 = r0[r3]\n r5.mo363k()\n int r3 = r3 + 1\n goto L_0x0375\n L_0x037f:\n boolean r0 = r6.f537v\n if (r0 != 0) goto L_0x0384\n goto L_0x038b\n L_0x0384:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n r2 = 3\n if (r0 == r2) goto L_0x0391\n L_0x038b:\n akp r0 = r6.f533r\n int r0 = r0.f615e\n if (r0 != r4) goto L_0x0392\n L_0x0391:\n goto L_0x03a4\n L_0x0392:\n akx[] r2 = r6.f535t\n int r2 = r2.length\n if (r2 != 0) goto L_0x0398\n goto L_0x039e\n L_0x0398:\n if (r0 == r1) goto L_0x039e\n r6.m692a(r7, r9)\n goto L_0x03a9\n L_0x039e:\n bkp r0 = r6.f516a\n r0.mo2044a()\n goto L_0x03a9\n L_0x03a4:\n r0 = 10\n r6.m692a(r7, r0)\n L_0x03a9:\n p000.blk.m3618a()\n return\n L_0x03ad:\n r0 = 10\n r6.m692a(r7, r0)\n return\n L_0x03b3:\n bkp r0 = r6.f516a\n r0.mo2044a()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p000.ake.m711f():void\");\n }",
"private MapFieldLite<String, Integer> m18037b() {\n return this.f18304h;\n }",
"static void m13382a(Context context) {\n if (TimeUnit.MILLISECONDS.toMinutes(System.currentTimeMillis() - bh.m7116b()) >= 10) {\n C3550e.m13381a(System.currentTimeMillis(), ((float) C1942d.m6822a(context)) / 100.0f);\n bh.m7117b(System.currentTimeMillis());\n C3550e.m13385d();\n }\n }",
"public final long mo15021d() {\n if (this.f11892g != -9223372036854775807L) {\n return Math.min(this.f11894i, this.f11893h + ((((SystemClock.elapsedRealtime() * 1000) - this.f11892g) * ((long) this.f11888c)) / 1000000));\n }\n int playState = this.f11886a.getPlayState();\n if (playState == 1) {\n return 0;\n }\n long playbackHeadPosition = 4294967295L & ((long) this.f11886a.getPlaybackHeadPosition());\n if (this.f11887b) {\n if (playState == 2 && playbackHeadPosition == 0) {\n this.f11891f = this.f11889d;\n }\n playbackHeadPosition += this.f11891f;\n }\n if (this.f11889d > playbackHeadPosition) {\n this.f11890e++;\n }\n this.f11889d = playbackHeadPosition;\n return playbackHeadPosition + (this.f11890e << 32);\n }",
"public static void m119218c() {\n m119221d(0);\n m119221d(1);\n }",
"public void mo21794S() {\n }",
"private void m15513b(long j) {\n if (mo9140c() != null) {\n this.f13396d.f11688z = System.currentTimeMillis();\n int intValue = ((Integer) this.f13396d.get(\"data_pk_anchor_score\")).intValue();\n int intValue2 = ((Integer) this.f13396d.get(\"data_pk_guest_score\")).intValue();\n if (intValue > intValue2) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.LEFT_WON);\n } else if (intValue < intValue2) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.RIGHT_WON);\n } else {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_result\", PkResult.EVEN);\n }\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.PENAL);\n if (j <= 0) {\n this.f13396d.lambda$put$1$DataCenter(\"data_pk_state\", PkState.FINISHED);\n }\n int i = (int) (j / 1000);\n int i2 = (int) (j % 1000);\n if (this.f13399i != null) {\n this.f13399i.dispose();\n this.f13399i = null;\n }\n this.f13399i = C9057b.m27050a(0, 1, TimeUnit.SECONDS).mo19305c((long) (i + 1)).mo19320e((long) i2, TimeUnit.MILLISECONDS).mo19317d((C7327h<? super T, ? extends R>) new C4703fw<Object,Object>(i)).mo19294a(C47549a.m148327a()).mo19280a((C7326g<? super T>) new C4704fx<Object>(this), (C7326g<? super Throwable>) new C4705fy<Object>(this));\n }\n }",
"public long getLUC() {\r\n/* 180 */ return this._LUC;\r\n/* */ }",
"public void mo115190b() {\n }",
"C7904c mo24084a();"
] | [
"0.5945401",
"0.56839633",
"0.5676048",
"0.5641897",
"0.5637808",
"0.5623673",
"0.5620594",
"0.56061643",
"0.5592153",
"0.55883884",
"0.558096",
"0.5545265",
"0.55403376",
"0.55401057",
"0.5528888",
"0.5528056",
"0.5527753",
"0.55146515",
"0.5504566",
"0.55003595",
"0.54906094",
"0.54888636",
"0.5472702",
"0.545737",
"0.54482865",
"0.5446766",
"0.5439762",
"0.5434662",
"0.5428727",
"0.54230964",
"0.54228926",
"0.5414311",
"0.5408265",
"0.53947604",
"0.5390324",
"0.53837526",
"0.5383356",
"0.5380795",
"0.53740937",
"0.53723025",
"0.5369153",
"0.53622526",
"0.5356724",
"0.535426",
"0.53535646",
"0.5353554",
"0.53484136",
"0.5344277",
"0.5336664",
"0.53355044",
"0.5332395",
"0.5329163",
"0.5326335",
"0.53215665",
"0.53172666",
"0.5313805",
"0.53137046",
"0.5307369",
"0.53039306",
"0.53019965",
"0.5295333",
"0.52901626",
"0.52890867",
"0.52888215",
"0.5281663",
"0.5279107",
"0.52750015",
"0.5272325",
"0.527046",
"0.5261638",
"0.525647",
"0.52534413",
"0.52527267",
"0.5252651",
"0.5249415",
"0.5249062",
"0.5248932",
"0.52448237",
"0.52438235",
"0.5243564",
"0.52420366",
"0.52348566",
"0.5227873",
"0.5225987",
"0.52258015",
"0.5219105",
"0.52166444",
"0.5216413",
"0.52075905",
"0.52071023",
"0.52070796",
"0.52017623",
"0.52004564",
"0.5199461",
"0.5197266",
"0.5194376",
"0.51941556",
"0.5193589",
"0.5193328",
"0.51899886",
"0.51894337"
] | 0.0 | -1 |
/ 188: / 189: | public int getNumero()
/* 190: */ {
/* 191:202 */ return this.numero;
/* 192: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String processBytes(String bytes){\n Pattern p = Pattern.compile(\"170-180\");\r\n Matcher m = p.matcher(bytes);\r\n //find two bounds\r\n int posi[] = new int[2];\r\n for(int i=0;i<2;i++){\r\n if(m.find()) posi[i] = m.start();\r\n }\r\n //Cut string\r\n return bytes.substring(posi[0], posi[1]);\r\n }",
"@Test(timeout = 4000)\n public void test029() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n int int0 = javaCharStream0.getBeginLine();\n assertEquals((-2818), int0);\n }",
"C12000e mo41087c(String str);",
"void circulardecode()\n{\nfor(i=0;i<s.length();i++)\n{\nc=s.charAt(i);\nk=(int)c;\nif(k==90)\nk1=65;\nelse\nif(k==122)\nk1=97;\nelse\nk1=k+1;\nc1=caseconverter(k,k1);\nSystem.out.print(c1);\n}\n}",
"@Test(timeout = 4000)\n public void test056() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.backup(416);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn(416, 416);\n assertEquals(3680, javaCharStream0.bufpos);\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"private static char[] m6491z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 108);\n }\n return toCharArray;\n }",
"@Test(timeout = 4000)\n public void test019() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 91, 91);\n javaCharStream0.BeginToken();\n javaCharStream0.adjustBeginLineColumn((-366), 1);\n int int0 = javaCharStream0.getLine();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals((-366), int0);\n }",
"private byte m1654g() {\n char charAt;\n do {\n int i = this.f2519d;\n if (i >= this.f2518c) {\n return 12;\n }\n CharSequence charSequence = this.f2516a;\n this.f2519d = i + 1;\n charAt = charSequence.charAt(i);\n this.f2520e = charAt;\n } while (charAt != ';');\n return 12;\n }",
"private C0024a m184a(CharSequence charSequence, ParsePosition parsePosition) {\n String obj;\n ParsePosition parsePosition2 = parsePosition != null ? parsePosition : new ParsePosition(0);\n C0051d.C0053a b = m187b(charSequence, parsePosition2);\n if (b != null && parsePosition2.getErrorIndex() < 0 && (parsePosition != null || parsePosition2.getIndex() >= charSequence.length())) {\n return b.mo211b();\n }\n if (charSequence.length() > 64) {\n obj = charSequence.subSequence(0, 64).toString() + \"...\";\n } else {\n obj = charSequence.toString();\n }\n if (parsePosition2.getErrorIndex() >= 0) {\n throw new C0054e(\"Text '\" + obj + \"' could not be parsed at index \" + parsePosition2.getErrorIndex(), charSequence, parsePosition2.getErrorIndex());\n }\n throw new C0054e(\"Text '\" + obj + \"' could not be parsed, unparsed text found at index \" + parsePosition2.getIndex(), charSequence, parsePosition2.getIndex());\n }",
"private byte m1656i() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 < this.f2518c) {\n CharSequence charSequence = this.f2516a;\n this.f2519d = i2 + 1;\n char charAt2 = charSequence.charAt(i2);\n this.f2520e = charAt2;\n if (charAt2 == '>') {\n return 12;\n }\n if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i3 = this.f2519d;\n if (i3 >= this.f2518c) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n this.f2519d = i3 + 1;\n charAt = charSequence2.charAt(i3);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n } else {\n this.f2519d = i;\n this.f2520e = '<';\n return 13;\n }\n }\n }",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"@Test(timeout = 4000)\n public void test021() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 0, 0, 1847);\n javaCharStream0.adjustBeginLineColumn((-2819), 2281);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getEndLine();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals((-2818), int0);\n }",
"private static String decodeStringFromBuffer(StringBuffer buf)\n {\n String returnValue = null;\n\n if (buf != null)\n {\n StringBuffer decodedBuffer = new StringBuffer();\n char[] pair = new char[2];\n\n // get the char equivelant of each number pair + 32\n for (int numberPair = 0; numberPair < buf.length() - 1;\n numberPair += 2)\n {\n buf.getChars(numberPair, numberPair + 2, pair, 0);\n int ascii;\n\n try\n {\n ascii = Integer.valueOf(new String(pair)).intValue() + 32;\n }\n catch (NumberFormatException e)\n {\n return null;\n }\n decodedBuffer.append((char) ascii);\n }\n returnValue = decodedBuffer.toString();\n }\n return returnValue;\n }",
"@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }",
"public static String decodeAscii(String in, String key) {\r\n String ts = \"\", result = \"\", m = \"\";\r\n char tmp = 0;\r\n\r\n for (int i = 0; i < in.length(); i += 3) {\r\n ts = in.substring(i, i + 3);\r\n tmp = (char) (Integer.parseInt(ts) - 288 - (i / 3));\r\n\r\n m += String.valueOf(tmp);\r\n }\r\n for (int i = 0; i < m.length(); i += 2) {\r\n result += String\r\n .valueOf((char) (Integer\r\n .parseInt(String\r\n .valueOf((m.charAt(i) - (i + 2) / 2 - 64) / 10)\r\n + String.valueOf((m.charAt(i + 1) - (i + 2)\r\n / 2 - 67) % 10)\r\n + String\r\n .valueOf((m.charAt(i) - (i + 2) / 2 - 64) % 10)) - 18 - key\r\n .charAt((key.length() % ((i + 2) / 2) == 0) ? 0\r\n : key.length() % ((i + 2) / 2) - 1)));\r\n\r\n }\r\n return result;\r\n }",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"@Test(timeout = 4000)\n public void test38() throws Throwable {\n PipedReader pipedReader0 = new PipedReader();\n StreamTokenizer streamTokenizer0 = new StreamTokenizer(pipedReader0);\n streamTokenizer0.nval = 744.4583836715912;\n String string0 = SQLUtil.renderNumber(streamTokenizer0);\n streamTokenizer0.ordinaryChar((-45));\n String string1 = SQLUtil.normalize(\"744.4583836715912\", false);\n assertTrue(string1.equals((Object)string0));\n }",
"@Test(timeout = 4000)\n public void test018() throws Throwable {\n byte[] byteArray0 = new byte[6];\n byteArray0[0] = (byte)43;\n byteArray0[1] = (byte) (-110);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"+\", token0.toString());\n }",
"String mo21078i();",
"public abstract void mo2157b(CharSequence charSequence);",
"abstract public int get(int codePoint);",
"String mo38971b();",
"void mo1934b(String str);",
"C12000e mo41091f(String str);",
"@Test(timeout = 4000)\n public void test087() throws Throwable {\n String string0 = SQLUtil.normalize(\"Wk-M{)u04i&=ml]M\", false);\n assertEquals(\"Wk - M {) u04i & = ml ] M\", string0);\n }",
"public static String canonicalDecomposeWithSingleQuotation(String paramString)\n/* */ {\n/* 2506 */ char[] arrayOfChar1 = paramString.toCharArray();\n/* 2507 */ int i = 0;\n/* 2508 */ int j = arrayOfChar1.length;\n/* 2509 */ Object localObject1 = new char[arrayOfChar1.length * 3];\n/* 2510 */ int k = 0;\n/* 2511 */ int m = localObject1.length;\n/* */ \n/* 2513 */ char[] arrayOfChar2 = new char[3];\n/* */ \n/* */ \n/* */ \n/* 2517 */ int i2 = 4;\n/* */ \n/* */ \n/* 2520 */ int i6 = (char)indexes[8];\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 2527 */ int i1 = 0xFF00 | i2;\n/* 2528 */ int i3 = 0;\n/* 2529 */ int i8 = 0;\n/* 2530 */ long l = 0L;\n/* 2531 */ int i5 = 0;\n/* 2532 */ int i10 = 0;\n/* */ int i9;\n/* 2534 */ int i7 = i9 = -1;\n/* */ for (;;) {\n/* 2536 */ int n = i;\n/* */ \n/* 2538 */ while ((i != j) && (((i5 = arrayOfChar1[i]) < i6) || \n/* */ \n/* 2540 */ (((l = getNorm32(i5)) & i1) == 0L) || ((i5 >= 44032) && (i5 <= 55203))))\n/* */ {\n/* */ \n/* 2543 */ i8 = 0;\n/* 2544 */ i++;\n/* */ }\n/* */ \n/* */ int i4;\n/* 2548 */ if (i != n) {\n/* 2549 */ i4 = i - n;\n/* 2550 */ if (k + i4 <= m) {\n/* 2551 */ System.arraycopy(arrayOfChar1, n, localObject1, k, i4);\n/* */ }\n/* */ \n/* 2554 */ k += i4;\n/* 2555 */ i3 = k;\n/* */ }\n/* */ \n/* */ \n/* 2559 */ if (i == j) {\n/* */ break;\n/* */ }\n/* */ \n/* 2563 */ i++;\n/* */ char c2;\n/* 2565 */ if (isNorm32Regular(l)) {\n/* 2566 */ c2 = '\\000';\n/* 2567 */ i4 = 1;\n/* */ \n/* */ }\n/* 2570 */ else if ((i != j) && \n/* 2571 */ (Character.isLowSurrogate(c2 = arrayOfChar1[i]))) {\n/* 2572 */ i++;\n/* 2573 */ i4 = 2;\n/* 2574 */ l = getNorm32FromSurrogatePair(l, c2);\n/* */ } else {\n/* 2576 */ c2 = '\\000';\n/* 2577 */ i4 = 1;\n/* 2578 */ l = 0L;\n/* */ }\n/* */ \n/* */ char[] arrayOfChar3;\n/* */ char c1;\n/* 2583 */ if ((l & i2) == 0L)\n/* */ {\n/* 2585 */ i7 = i9 = (int)(0xFF & l >> 8);\n/* 2586 */ arrayOfChar3 = null;\n/* 2587 */ i10 = -1;\n/* */ } else {\n/* 2589 */ localObject2 = new DecomposeArgs(null);\n/* */ \n/* */ \n/* 2592 */ i10 = decompose(l, i2, (DecomposeArgs)localObject2);\n/* 2593 */ arrayOfChar3 = extraData;\n/* 2594 */ i4 = ((DecomposeArgs)localObject2).length;\n/* 2595 */ i7 = ((DecomposeArgs)localObject2).cc;\n/* 2596 */ i9 = ((DecomposeArgs)localObject2).trailCC;\n/* 2597 */ if (i4 == 1)\n/* */ {\n/* 2599 */ c1 = arrayOfChar3[i10];\n/* 2600 */ c2 = '\\000';\n/* 2601 */ arrayOfChar3 = null;\n/* 2602 */ i10 = -1;\n/* */ }\n/* */ }\n/* */ \n/* 2606 */ if (k + i4 * 3 >= m)\n/* */ {\n/* 2608 */ localObject2 = new char[m * 2];\n/* 2609 */ System.arraycopy(localObject1, 0, localObject2, 0, k);\n/* 2610 */ localObject1 = localObject2;\n/* 2611 */ m = localObject1.length;\n/* */ }\n/* */ \n/* */ \n/* 2615 */ Object localObject2 = k;\n/* 2616 */ if (arrayOfChar3 == null)\n/* */ {\n/* 2618 */ if (needSingleQuotation(c1))\n/* */ {\n/* */ \n/* 2621 */ localObject1[(k++)] = 39;\n/* 2622 */ localObject1[(k++)] = c1;\n/* 2623 */ localObject1[(k++)] = 39;\n/* 2624 */ i9 = 0;\n/* 2625 */ } else if ((i7 != 0) && (i7 < i8))\n/* */ {\n/* */ \n/* 2628 */ k += i4;\n/* 2629 */ i9 = insertOrdered((char[])localObject1, i3, localObject2, k, c1, c2, i7);\n/* */ }\n/* */ else\n/* */ {\n/* 2633 */ localObject1[(k++)] = c1;\n/* 2634 */ if (c2 != 0) {\n/* 2635 */ localObject1[(k++)] = c2;\n/* */ }\n/* */ \n/* */ }\n/* */ \n/* */ }\n/* 2641 */ else if (needSingleQuotation(arrayOfChar3[i10])) {\n/* 2642 */ localObject1[(k++)] = 39;\n/* 2643 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2644 */ localObject1[(k++)] = 39;\n/* 2645 */ i4--;\n/* */ do {\n/* 2647 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2648 */ i4--; } while (i4 > 0);\n/* */ }\n/* 2650 */ else if ((i7 != 0) && (i7 < i8)) {\n/* 2651 */ k += i4;\n/* 2652 */ i9 = mergeOrdered((char[])localObject1, i3, localObject2, arrayOfChar3, i10, i10 + i4);\n/* */ }\n/* */ else\n/* */ {\n/* */ do {\n/* 2657 */ localObject1[(k++)] = arrayOfChar3[(i10++)];\n/* 2658 */ i4--; } while (i4 > 0);\n/* */ }\n/* */ \n/* */ \n/* 2662 */ i8 = i9;\n/* 2663 */ if (i8 == 0) {\n/* 2664 */ i3 = k;\n/* */ }\n/* */ }\n/* 2667 */ return new String((char[])localObject1, 0, k);\n/* */ }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"private static char[] m3268z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 18);\n }\n return toCharArray;\n }",
"int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}",
"private static char[] m619z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 20);\n }\n return toCharArray;\n }",
"private byte m1655h() {\n char charAt;\n int i = this.f2519d;\n while (true) {\n int i2 = this.f2519d;\n if (i2 <= 0) {\n break;\n }\n CharSequence charSequence = this.f2516a;\n int i3 = i2 - 1;\n this.f2519d = i3;\n char charAt2 = charSequence.charAt(i3);\n this.f2520e = charAt2;\n if (charAt2 == '<') {\n return 12;\n }\n if (charAt2 == '>') {\n break;\n } else if (charAt2 == '\\\"' || charAt2 == '\\'') {\n do {\n int i4 = this.f2519d;\n if (i4 <= 0) {\n break;\n }\n CharSequence charSequence2 = this.f2516a;\n int i5 = i4 - 1;\n this.f2519d = i5;\n charAt = charSequence2.charAt(i5);\n this.f2520e = charAt;\n } while (charAt != charAt2);\n }\n }\n this.f2519d = i;\n this.f2520e = '>';\n return 13;\n }",
"@Test(timeout = 4000)\n public void test069() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.BeginToken();\n javaCharStream0.GetSuffix(416);\n assertEquals(1, javaCharStream0.getBeginColumn());\n }",
"public double getBKC099() {\n return BKC099;\n }",
"String mo20730b();",
"private static char[] m7947z(String str) {\n char[] toCharArray = str.toCharArray();\n if (toCharArray.length < 2) {\n toCharArray[0] = (char) (toCharArray[0] ^ 16);\n }\n return toCharArray;\n }",
"@Test(timeout = 4000)\n public void test024() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 12, (-1783), 1289);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getEndColumn();\n assertEquals(12, javaCharStream0.getBeginLine());\n assertEquals((-1783), int0);\n }",
"static StringBuffer convert(String conv_Number){\r\n StringBuffer obj = new StringBuffer(conv_Number);\r\n for (int i=0 ; i<obj.length();i++){\r\n if(obj.charAt(i)<48 || obj.charAt(i)>57){\r\n obj.deleteCharAt(i);\r\n }}\r\n return obj;\r\n//* aurther=====================================================================@Wajaht Masood_003_assign\r\n }",
"void mo5875b(String str, long j);",
"public String getBKC097() {\n return BKC097;\n }",
"@Test(timeout = 4000)\n public void test092() throws Throwable {\n StringReader stringReader0 = new StringReader(\"s15IMZA$C/uXdG]R\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0, 0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(13, javaCharStream0.bufpos);\n assertEquals(\"uXdG\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test059() throws Throwable {\n StringReader stringReader0 = new StringReader(\".`BW=S&r<Py\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1, 1);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\".\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test158() throws Throwable {\n StringReader stringReader0 = new StringReader(\".0*yBK7wQ\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1997, 1997);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals(1998, javaCharStream0.getEndColumn());\n }",
"public static String convertText(String s) {\r\n StringCharacterIterator stringcharacteriterator = new StringCharacterIterator(s);\r\n StringBuffer stringbuffer = new StringBuffer();\r\n int ai[] = new int[s.length()];\r\n int i = 0;\r\n int j = 0;\r\n for(char c = stringcharacteriterator.first(); c != '\\uFFFF'; c = stringcharacteriterator.next())\r\n if(c == '%')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c != '%')\r\n {\r\n stringbuffer.append('%');\r\n c = stringcharacteriterator.previous();\r\n } else\r\n {\r\n c = stringcharacteriterator.next();\r\n switch(c)\r\n {\r\n case 37: // '%'\r\n stringbuffer.append('%');\r\n break;\r\n\r\n case 80: // 'P'\r\n case 112: // 'p'\r\n stringbuffer.append('\\361');\r\n break;\r\n\r\n case 67: // 'C'\r\n case 99: // 'c'\r\n stringbuffer.append('\\355');\r\n break;\r\n\r\n case 68: // 'D'\r\n case 100: // 'd'\r\n stringbuffer.append('\\u00b0');\r\n break;\r\n\r\n case 85: // 'U'\r\n case 117: // 'u'\r\n ai[stringbuffer.length()] ^= 1;\r\n i++;\r\n break;\r\n\r\n case 79: // 'O'\r\n case 111: // 'o'\r\n ai[stringbuffer.length()] ^= 2;\r\n j++;\r\n break;\r\n\r\n default:\r\n if(c >= '0' && c <= '9')\r\n {\r\n int k = 3;\r\n char c1 = (char)(c - 48);\r\n for(c = stringcharacteriterator.next(); c >= '0' && c <= '9' && --k > 0; c = stringcharacteriterator.next())\r\n c1 = (char)(10 * c1 + (c - 48));\r\n\r\n stringbuffer.append(c1);\r\n }\r\n c = stringcharacteriterator.previous();\r\n break;\r\n }\r\n }\r\n } else\r\n if(c == '^')\r\n {\r\n c = stringcharacteriterator.next();\r\n if(c == ' ')\r\n stringbuffer.append('^');\r\n } else\r\n {\r\n stringbuffer.append(c);\r\n }\r\n s = Unicode.char2DOS437(stringbuffer, 2, '?');\r\n\r\n\t\tString ss = s;\r\n\t\treturn ss;\r\n\t}",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"C3579d mo19708e(String str) throws IOException;",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"private void m81856t() {\n try {\n String c = m81844c(C6969H.m41409d(\"G738BEA0DBA32BD20E319AF5CEBF5C6\"));\n if (!TextUtils.isEmpty(c)) {\n this.f58084p = Integer.parseInt(c);\n }\n } catch (Exception e) {\n WebUtil.m68654a(C6969H.m41409d(\"G5C91D93EBA3CAE2EE71A95\"), e.getMessage());\n }\n }",
"@Test\n public void Test8484()\n {\n String s = \"\\u9FE1\\uCEF3\\u2798\\uAAB6\\uDA7C\";\n Collator coll = Collator.getInstance();\n CollationKey collKey = coll.getCollationKey(s); \n logln(\"Pass: \" + collKey.toString() + \" generated OK.\");\n }",
"@Test(timeout = 4000)\n public void test108() throws Throwable {\n StringReader stringReader0 = new StringReader(\"^z{b>wblu8^IJ+?\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 21, 47, 21);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(47, javaCharStream0.getColumn());\n }",
"public static void main(String[] args) throws Exception {\n String s;\n// s = \"0000000000000\";\n s = \"000000-123456\";\n// s = \"000000123456\";\n if (s.matches(\"^0+$\")) {\n s = \"0\";\n }else{\n s = s.replaceFirst(\"^0+\",\"\");\n }\n System.out.println(s);\n\n\n// System.out.println(StringUtils.addRight(s,'A',mod));\n// String s = \"ECPay thong bao: Tien dien T11/2015 cua Ma KH PD13000122876, la 389.523VND. Truy cap www.ecpay.vn hoac lien he 1900561230 de biet them chi tiet.\";\n// Pattern pattern = Pattern.compile(\"^(.+)[ ](\\\\d+([.]\\\\d+)*)+VND[.](.+)$\");\n// Matcher matcher = pattern.matcher(s);\n// if(matcher.find()){\n// System.out.println(matcher.group(2));\n// }\n }",
"public static String encodeAscii(String in, String key) {\r\n String m = \"\", ts = \"\";\r\n String result = \"\";\r\n int tmp;\r\n for (int i = 0; i < in.length(); i++) {\r\n tmp = (int) (in.charAt(i) + key\r\n .charAt((key.length() % (i + 1) == 0) ? 0\r\n : (key.length() % (i + 1)) - 1)) + 18;\r\n m += String.valueOf((char) (tmp / 100 * 10 + tmp % 10 + 65 + i))\r\n + String\r\n .valueOf((char) (tmp / 100 * 10\r\n + (tmp - tmp / 100 * 100 - tmp % 10) / 10\r\n + 68 + i));\r\n }\r\n\r\n for (int i = 0; i < m.length(); i++) {\r\n ts = String.valueOf((int) m.charAt(i) + 288 + i);\r\n tmp = 3 - ts.length();\r\n for (int j = 0; j < tmp; j++) {\r\n ts = \"0\" + ts;\r\n }\r\n result += ts;\r\n }\r\n return result;\r\n }",
"void mo8713dV(String str);",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n StringReader stringReader0 = new StringReader(\";{\\\"9n/s(2C'#tQX*\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n byte[] byteArray0 = new byte[8];\n byteArray0[0] = (byte)115;\n byteArray0[1] = (byte)93;\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n javaCharStream0.ReInit((InputStream) byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"s\", token0.toString());\n }",
"public abstract CharSequence mo2160e();",
"protected abstract int decodeLength ();",
"@Test(timeout = 4000)\n public void test000() throws Throwable {\n StringReader stringReader0 = new StringReader(\"+%WC\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.adjustBeginLineColumn((-1), 4093);\n assertEquals(4093, javaCharStream0.getBeginColumn());\n }",
"public static void main(String[] args) {\n String key = \"4071321\";\n String strToDecode = \"Li, ailu jw au facntll\";\n StringBuilder ES = new StringBuilder();\n long spCount = 0;\n for(int i= 0;i<strToDecode.length();i++)\n {\n int ascii = strToDecode.charAt(i);\n\n if((ascii<65 || ascii>122) || (ascii > 90 && ascii < 97))\n {\n char a = strToDecode.charAt(i);\n System.out.println(a);\n ES.append(a);\n spCount++;\n }\n else\n {\n int keyPos = (int)(i - spCount)%7;\n int subKey = Character.getNumericValue(key.charAt(keyPos));\n long strAscii = ascii - subKey;\n\n if(strAscii<65)\n {\n strAscii = 91-(65- strAscii);\n }\n\n if(ascii >=97 && strAscii< 97) {\n strAscii = 123 - (97 - strAscii);\n }\n ES.append((char)strAscii);\n }\n\n }\n System.out.println(ES);\n\n }",
"public abstract void mo2153a(CharSequence charSequence);",
"int getUnknown13();",
"String mo20731c();",
"@Test(timeout = 4000)\n public void test059() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Z[^o)j]BO6Ns,$`3$e\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n javaCharStream0.GetSuffix(22);\n assertEquals((-1), javaCharStream0.bufpos);\n }",
"@Test(timeout = 4000)\n public void test009() throws Throwable {\n StringReader stringReader0 = new StringReader(\"kE4X 9\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-1), 66, 1279);\n char char0 = javaCharStream0.readChar();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals('k', char0);\n }",
"public static String decodeLocation(int val) {\n return \"\" + ((double) val / (double) 1E6);\n }",
"public final void mo7596sH(String str) {\n }",
"@Test(timeout = 4000)\n public void test038() throws Throwable {\n StringReader stringReader0 = new StringReader(\"trUansient\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(9, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }",
"public void mo9258g() {\n this.f1301l = EncodingUtils.m1912b(this.f1301l, 0);\n }",
"public void mo1949a(String str) throws cf {\r\n try {\r\n byte[] bytes = str.getBytes(\"UTF-8\");\r\n m10262a(bytes, 0, bytes.length);\r\n } catch (UnsupportedEncodingException e) {\r\n throw new cf(\"UTF-8 not supported!\");\r\n }\r\n }",
"void mo1935c(String str);",
"public final void mo1308a() {\n int i = this.f2309d;\n int i2 = i != Integer.MIN_VALUE ? i + this.f2308c : this.f2307b;\n this.f2309d = i2;\n String str = this.f2306a;\n StringBuilder sb = new StringBuilder(String.valueOf(str).length() + 11);\n sb.append(str);\n sb.append(i2);\n this.f2310e = sb.toString();\n }",
"private int decode(int index) {\n return (encoded[index] - 32) & 0x3F;\n }",
"@Test\n public void formatBytesReturnBytesTest() {\n assertEquals(\"-20 Bytes\", Format.formatBytes(-20));\n long almostOneKbyte = 1023L;\n assertEquals(\"1,023 Bytes\", Format.formatBytes(almostOneKbyte));\n }",
"@Test(timeout = 4000)\n public void test157() throws Throwable {\n StringReader stringReader0 = new StringReader(\"gR39:};Az,EeQ2PLmLM\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 84, 84, 84);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(3, javaCharStream0.bufpos);\n assertEquals(\"gR39\", token0.toString());\n }",
"@Test(timeout = 4000)\n public void test159() throws Throwable {\n StringReader stringReader0 = new StringReader(\"x/C9mX)\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-2632), (-2632));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n javaParserTokenManager0.getNextToken();\n javaParserTokenManager0.getNextToken();\n assertEquals(1, javaCharStream0.bufpos);\n assertEquals((-2631), javaCharStream0.getEndColumn());\n }",
"public static int numDecodings2(String s) {\r\n\t\tif(s == null || s.length() == 0)\r\n\t\t\treturn 0;\r\n\t\tint len = s.length();\r\n\t\tint prev1 = 1;\r\n\t\tint prev2 = s.charAt(0) == '0' ? 0 : 1;\r\n\t\t\r\n\t\tfor(int i = 2; i <= len; i++) {\r\n\t\t\tint code1 = Integer.valueOf(s.substring(i - 1, i)); // 1 digit\r\n\t\t\tint code2 = Integer.valueOf(s.substring(i - 2, i)); // 2 digit\r\n\t\t\tint temp = prev2;\r\n\t\t\tprev2 = (code1 != 0 ? prev2 : 0) + (code2 <= 26 && code2 > 9 ? prev1 : 0);\r\n\t\t\tprev1 = temp;\r\n\t\t}\r\n\t\t\r\n\t\treturn prev2;\r\n\t}",
"@Test(timeout = 4000)\n public void test136() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n stringReader0.read();\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\":\", token0.toString());\n }",
"private static int m1646b(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4452e();\n }",
"public static String b(String paramString)\r\n/* 690: */ {\r\n/* 691:682 */ String str = \"\";\r\n/* 692:683 */ int i1 = -1;\r\n/* 693:684 */ int i2 = paramString.length();\r\n/* 694:686 */ while ((i1 = paramString.indexOf('§', i1 + 1)) != -1) {\r\n/* 695:687 */ if (i1 < i2 - 1)\r\n/* 696: */ {\r\n/* 697:688 */ char c1 = paramString.charAt(i1 + 1);\r\n/* 698:690 */ if (c(c1)) {\r\n/* 699:691 */ str = \"§\" + c1;\r\n/* 700:692 */ } else if (d(c1)) {\r\n/* 701:693 */ str = str + \"§\" + c1;\r\n/* 702: */ }\r\n/* 703: */ }\r\n/* 704: */ }\r\n/* 705:698 */ return str;\r\n/* 706: */ }",
"@Test(timeout = 4000)\n public void test058() throws Throwable {\n StringReader stringReader0 = new StringReader(\"b|}T=mM,PuM8AP|}\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 10, 0, 0);\n assertEquals((-1), javaCharStream0.bufpos);\n \n char[] charArray0 = javaCharStream0.GetSuffix(0);\n assertEquals(0, charArray0.length);\n }",
"public int mo34973b() {\n return 48;\n }",
"@Test(timeout = 4000)\n public void test027() throws Throwable {\n StringReader stringReader0 = new StringReader(\"GD}>zPHIT2VcF.\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 1225, 754, 1225);\n javaCharStream0.backup(1);\n javaCharStream0.adjustBeginLineColumn(1, (-1));\n int int0 = javaCharStream0.getColumn();\n assertEquals(1223, javaCharStream0.bufpos);\n assertEquals((-1), int0);\n }",
"long getUnknown72();",
"private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }",
"private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}",
"@Test(expected=MalformedNumberException.class)\n public void spacesInWeirdPlaces() throws MalformedNumberException {\n new RomanArabicConverter(\"1 4\");\n }",
"String mo2801a(String str);",
"public static void main(String[] args) {\n\t\tchar aa = '\\u0000';\r\n\t\tchar a = '\\u0041';\r\n\t\tchar b = '\\u0042';\r\n\t\tchar c = '\\u0043';\r\n\t\tchar d = '\\u0044';\r\n\t\tchar e = '\\u0045';\r\n\t\tchar f = '\\u0046';\r\n\t\tchar g = '\\u0047';\r\n\t\tchar h = '\\u0048';\r\n\t\tchar i = '\\u0049';\r\n\t\tchar j = '\\u004A';\r\n\t\tchar k = '\\u004B';\r\n\t\tchar l = '\\u004C';\r\n\t\tchar m = '\\u004D';\r\n\t\tchar n = '\\u004E';\r\n\t\tchar o = '\\u004F';\r\n\t\tchar p = '\\u0051';\r\n\t\tchar q = '\\u0051';\r\n\t\tchar r = '\\u0052';\r\n\t\tchar s = '\\u0053';\r\n\t\tchar t = '\\u0054';\r\n\t\tchar u = '\\u0055';\r\n\t\tchar v = '\\u0056';\r\n\t\tchar w = '\\u0057';\r\n\t\tchar x = '\\u0058';\r\n\t\tchar y = '\\u0059';\r\n\t\tchar z = '\\u0060';\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(+i+\"\"+aa+\"\"+w+\"\"+i+\"\"+s+\"\"+h+\"\"+aa+\"\"+t+\"\"+o+\"\"+aa+\"\"+p+\"\"+e+\"\"+r+\"\"+i+\"\"+s+\"\"+h);\r\n\t}",
"private static String loadConvert(String str) {\n\t\tint off = 0;\n\t\tint len = str.length();\n\t\tchar[] in = str.toCharArray();\n\t\tchar[] convtBuf = new char[1024];\n\t\tif (convtBuf.length < len) {\n\t\t\tint newLen = len * 2;\n\t\t\tif (newLen < 0) {\n\t\t\t\tnewLen = Integer.MAX_VALUE;\n\t\t\t}\n\t\t\tconvtBuf = new char[newLen];\n\t\t}\n\t\tchar aChar;\n\t\tchar[] out = convtBuf;\n\t\tint outLen = 0;\n\t\tint end = off + len;\n\n\t\twhile (off < end) {\n\t\t\taChar = in[off++];\n\t\t\tif (aChar == '\\\\') {\n\t\t\t\taChar = in[off++];\n\t\t\t\tif (aChar == 'u') {\n\t\t\t\t\t// Read the xxxx\n\t\t\t\t\tint value = 0;\n\t\t\t\t\tfor (int i = 0; i < 4; i++) {\n\t\t\t\t\t\taChar = in[off++];\n\t\t\t\t\t\tswitch (aChar) {\n\t\t\t\t\t\tcase '0':\n\t\t\t\t\t\tcase '1':\n\t\t\t\t\t\tcase '2':\n\t\t\t\t\t\tcase '3':\n\t\t\t\t\t\tcase '4':\n\t\t\t\t\t\tcase '5':\n\t\t\t\t\t\tcase '6':\n\t\t\t\t\t\tcase '7':\n\t\t\t\t\t\tcase '8':\n\t\t\t\t\t\tcase '9':\n\t\t\t\t\t\t\tvalue = (value << 4) + aChar - '0';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'a':\n\t\t\t\t\t\tcase 'b':\n\t\t\t\t\t\tcase 'c':\n\t\t\t\t\t\tcase 'd':\n\t\t\t\t\t\tcase 'e':\n\t\t\t\t\t\tcase 'f':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'a';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase 'A':\n\t\t\t\t\t\tcase 'B':\n\t\t\t\t\t\tcase 'C':\n\t\t\t\t\t\tcase 'D':\n\t\t\t\t\t\tcase 'E':\n\t\t\t\t\t\tcase 'F':\n\t\t\t\t\t\t\tvalue = (value << 4) + 10 + aChar - 'A';\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tthrow new IllegalArgumentException(\"Malformed \\\\uxxxx encoding.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tout[outLen++] = (char) value;\n\t\t\t\t} else {\n\t\t\t\t\tif (aChar == 't')\n\t\t\t\t\t\taChar = '\\t';\n\t\t\t\t\telse if (aChar == 'r')\n\t\t\t\t\t\taChar = '\\r';\n\t\t\t\t\telse if (aChar == 'n')\n\t\t\t\t\t\taChar = '\\n';\n\t\t\t\t\telse if (aChar == 'f')\n\t\t\t\t\t\taChar = '\\f';\n\t\t\t\t\tout[outLen++] = aChar;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tout[outLen++] = aChar;\n\t\t\t}\n\t\t}\n\t\treturn new String(out, 0, outLen);\n\t}",
"@Test(timeout = 4000)\n public void test017() throws Throwable {\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)120;\n byteArray0[1] = (byte) (-68);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }",
"@Test(timeout = 4000)\n public void test097() throws Throwable {\n Range range0 = Range.ofLength(9223372032559808565L);\n long long0 = range0.getLength();\n assertEquals(9223372032559808565L, long0);\n \n range0.equals(\"]?&0A@\");\n Range range1 = Range.of(9223372032559808565L);\n List<Range> list0 = range0.complement(range1);\n assertTrue(list0.contains(range0));\n \n boolean boolean0 = range0.equals(\"]?&0A@\");\n assertFalse(boolean0);\n \n range0.getEnd();\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.RESIDUE_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 1 .. 9223372032559808565 ]/RB\", string0);\n \n Range.CoordinateSystem.values();\n range1.complement(range0);\n List<Range> list1 = range1.complement(range0);\n assertTrue(list1.contains(range1));\n assertFalse(list1.equals((Object)list0));\n assertEquals(1, list1.size());\n }",
"private static void convertAlphaToNumeric(StringBuffer buf)\n {\n byte byteLetter = 0;\n\n for (int letter = 0; letter < buf.length(); letter++)\n {\n\n // get the index value of 1 to 26 of the letter and then take the modulo of 10\n byteLetter = (byte) (buf.charAt(letter) - 96);\n byteLetter = (byte) (byteLetter % 10);\n buf.setCharAt(letter, (char) (byteLetter + 48));\n }\n }",
"static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n StringReader stringReader0 = new StringReader(\"Gnzd86`;Gs=\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 14, 4094, 4075);\n javaCharStream0.BeginToken();\n int int0 = javaCharStream0.getEndColumn();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(4094, int0);\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 }",
"@Test(timeout = 4000)\n public void test096() throws Throwable {\n StringReader stringReader0 = new StringReader(\"q,rv8PAfKjbSw`H(r\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, (-3465), (-2086));\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(\"q\", token0.toString());\n assertEquals(74, token0.kind);\n }",
"private static final int m40100b(String str) {\n int length = str.length();\n int i = 0;\n while (true) {\n if (i >= length) {\n i = -1;\n break;\n } else if (!C12798a.m40012a(str.charAt(i))) {\n break;\n } else {\n i++;\n }\n }\n return i == -1 ? str.length() : i;\n }",
"private static String m11988a(String str) {\n return C3171d.m11992a(str);\n }",
"@Test(timeout = 4000)\n public void test086() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~:}LC@A$L'2q+~$ja\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(90, token0.kind);\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n StringReader stringReader0 = new StringReader(\"~\\\"Py BTn?,~tnf\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 15, 15);\n javaCharStream0.bufpos = (-1396);\n javaCharStream0.backup((-1396));\n javaCharStream0.adjustBeginLineColumn((-1396), 76);\n assertEquals(0, javaCharStream0.bufpos);\n }",
"@Test(timeout = 4000)\n public void test068() throws Throwable {\n StringReader stringReader0 = new StringReader(\"%Jo{\\\"m8'0fuS\");\n JavaCharStream javaCharStream0 = new JavaCharStream(stringReader0, 77, 77);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(\"%\", token0.toString());\n }",
"@Test\n public void test039() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n Any any0 = (Any)errorPage0.base((CharSequence) \"Esp3eO'v(-`fg\\\"S\");\n }"
] | [
"0.59551954",
"0.55867106",
"0.5543647",
"0.5460517",
"0.5428644",
"0.54250795",
"0.5386577",
"0.53071225",
"0.5300438",
"0.529753",
"0.529679",
"0.52706295",
"0.52660006",
"0.524721",
"0.52413046",
"0.52401686",
"0.5233437",
"0.5218408",
"0.52081907",
"0.5194199",
"0.518668",
"0.5175041",
"0.5172512",
"0.5168295",
"0.5167844",
"0.51675653",
"0.5151733",
"0.5150924",
"0.5141259",
"0.5120742",
"0.51083624",
"0.5103252",
"0.509807",
"0.5087376",
"0.508531",
"0.5080924",
"0.5075501",
"0.5075289",
"0.5074696",
"0.5069523",
"0.50634664",
"0.5047982",
"0.50475425",
"0.50465614",
"0.5044853",
"0.5044799",
"0.5041327",
"0.5039943",
"0.50350225",
"0.50321096",
"0.50227886",
"0.50224215",
"0.5021435",
"0.5013271",
"0.5012293",
"0.5008978",
"0.50086194",
"0.50077343",
"0.50058234",
"0.5005761",
"0.5000356",
"0.49994424",
"0.49957377",
"0.49932733",
"0.49910894",
"0.4990057",
"0.4982369",
"0.4976551",
"0.49734187",
"0.49710482",
"0.49705738",
"0.49687922",
"0.49665558",
"0.49647254",
"0.49602717",
"0.49596888",
"0.4949581",
"0.49479562",
"0.49447623",
"0.49428868",
"0.49407762",
"0.4931213",
"0.49182558",
"0.4915431",
"0.4912223",
"0.4908181",
"0.49057937",
"0.49045655",
"0.49019837",
"0.48977885",
"0.48907644",
"0.48884332",
"0.4887553",
"0.4886629",
"0.48865348",
"0.48832113",
"0.48763967",
"0.48756918",
"0.4869976",
"0.4869626",
"0.48677662"
] | 0.0 | -1 |
/ 193: / 194: | public void setNumero(int numero)
/* 195: */ {
/* 196:206 */ this.numero = numero;
/* 197: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo12637b();",
"public void mo12628c() {\n }",
"public void mo115190b() {\n }",
"public void mo21879u() {\n }",
"public void method_4270() {}",
"void m5768b() throws C0841b;",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"@Test(timeout = 4000)\n public void test04() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[9];\n defaultNucleotideCodec0.getUngappedLength(byteArray0);\n byteArray0[0] = (byte)60;\n byteArray0[1] = (byte)82;\n byte byte0 = (byte) (-73);\n byteArray0[2] = (byte) (-73);\n byteArray0[3] = (byte)86;\n defaultNucleotideCodec0.iterator(byteArray0);\n byteArray0[4] = (byte)8;\n // Undeclared exception!\n try { \n defaultNucleotideCodec0.decode(byteArray0, 3555L);\n fail(\"Expecting exception: IndexOutOfBoundsException\");\n \n } catch(IndexOutOfBoundsException e) {\n //\n // index 3555 corresponds to encodedIndex 1781 encodedglyph length is 9\n //\n verifyException(\"org.jcvi.jillion.core.residue.nt.DefaultNucleotideCodec\", e);\n }\n }",
"private byte[] m1034b(java.lang.String r8) {\n /*\n r7 = this;\n r6 = 2\n r4 = 6\n r2 = 0\n java.lang.String r0 = \":\"\n java.lang.String[] r0 = r8.split(r0)\n byte[] r1 = new byte[r4]\n if (r0 == 0) goto L_0x0010\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 == r4) goto L_0x001e\n L_0x0010:\n r0 = 6\n java.lang.String[] r0 = new java.lang.String[r0] // Catch:{ Throwable -> 0x0043 }\n r3 = r2\n L_0x0014:\n int r4 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r3 >= r4) goto L_0x001e\n java.lang.String r4 = \"0\"\n r0[r3] = r4 // Catch:{ Throwable -> 0x0043 }\n int r3 = r3 + 1\n goto L_0x0014\n L_0x001e:\n int r3 = r0.length // Catch:{ Throwable -> 0x0043 }\n if (r2 >= r3) goto L_0x0041\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n int r3 = r3.length() // Catch:{ Throwable -> 0x0043 }\n if (r3 <= r6) goto L_0x0033\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 0\n r5 = 2\n java.lang.String r3 = r3.substring(r4, r5) // Catch:{ Throwable -> 0x0043 }\n r0[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n L_0x0033:\n r3 = r0[r2] // Catch:{ Throwable -> 0x0043 }\n r4 = 16\n int r3 = java.lang.Integer.parseInt(r3, r4) // Catch:{ Throwable -> 0x0043 }\n byte r3 = (byte) r3 // Catch:{ Throwable -> 0x0043 }\n r1[r2] = r3 // Catch:{ Throwable -> 0x0043 }\n int r2 = r2 + 1\n goto L_0x001e\n L_0x0041:\n r0 = r1\n L_0x0042:\n return r0\n L_0x0043:\n r0 = move-exception\n java.lang.String r1 = \"Req\"\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"getMacBa \"\n java.lang.StringBuilder r2 = r2.append(r3)\n java.lang.StringBuilder r2 = r2.append(r8)\n java.lang.String r2 = r2.toString()\n com.amap.loc.C0310c.m956a(r0, r1, r2)\n java.lang.String r0 = \"00:00:00:00:00:00\"\n byte[] r0 = r7.m1034b(r0)\n goto L_0x0042\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.amap.loc.C0321cj.m1034b(java.lang.String):byte[]\");\n }",
"String mo38971b();",
"byte mo30283c();",
"public void mo23813b() {\n }",
"public void mo21782G() {\n }",
"@Override\n public void func_104112_b() {\n \n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo1976s() throws cf {\r\n }",
"public abstract void mo4360a(byte b);",
"void m5770d() throws C0841b;",
"void mo3194r();",
"public abstract void mo53562a(C18796a c18796a);",
"C3579d mo19708e(String str) throws IOException;",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"public void mo1966i() throws cf {\r\n }",
"private void m50366E() {\n }",
"public abstract String mo118046b();",
"public void mo21781F() {\n }",
"public void mo21787L() {\n }",
"public void mo2740a() {\n }",
"public void mo1961d() throws cf {\r\n m10263b((byte) 0);\r\n }",
"C2841w mo7234g();",
"public abstract String mo11611b();",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"public void mo21780E() {\n }",
"C2451d mo3408a(C2457e c2457e);",
"void mo72113b();",
"public void mo9233aH() {\n }",
"public void method_193() {}",
"String mo20730b();",
"public void mo38117a() {\n }",
"void m5771e() throws C0841b;",
"C5727e mo33224a();",
"public void mo9137b() {\n }",
"byte[] mo38566a();",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"public void mo21794S() {\n }",
"public final void mo12688e_() {\n }",
"public void mo21783H() {\n }",
"void mo41086b();",
"int mo27483b();",
"void mo1943l();",
"public static void main(String[] args){\n \tbyte[] bytes = {90, -103};\n \tfor(byte by:bytes){\n \t\tif(Instruction.HEAD[0]!=by&&ESCAPE!=by&&Instruction.TAIL[0]!=by){\n \t\t\tSystem.out.println(\"escape code error.\"+by);\n \t\t}\n \t}\n \t\n \tSystem.out.println(Instruction.HEAD[0]);\n \tSystem.out.println(Instruction.HEAD[0]==0x5a);\n }",
"void mo57277b();",
"protected String[] mo1613b() {\r\n return f4638d;\r\n }",
"public void mo21779D() {\n }",
"public void mo21786K() {\n }",
"void mo5290b(C5102c c5102c);",
"void m8368b();",
"void m5769c() throws C0841b;",
"void mo30633b(int i, String str, byte[] bArr);",
"public abstract void mo2157b(CharSequence charSequence);",
"public void mo21825b() {\n }",
"public void mo1964g() throws cf {\r\n }",
"void mo119582b();",
"public void method_191() {}",
"@Override\n\tpublic void interpretBytes() {\n\t\t\n\t}",
"public abstract int mo13680b();",
"public void mo12930a() {\n }",
"int mo44965b();",
"C3676k mo12649b();",
"final com.google.bV a(java.util.Map r14) {\n /*\n r13_this = this;\n r6 = f;\n if (r14 == 0) goto L_0x013c;\n L_0x0004:\n r0 = com.google.fm.TRY_HARDER;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x013c;\n L_0x000c:\n r0 = 1;\n r2 = r0;\n L_0x000e:\n if (r14 == 0) goto L_0x0140;\n L_0x0010:\n r0 = com.google.fm.PURE_BARCODE;\n r0 = r14.containsKey(r0);\n if (r0 == 0) goto L_0x0140;\n L_0x0018:\n r0 = 1;\n L_0x0019:\n r1 = r13.b;\n r7 = r1.f();\n r1 = r13.b;\n r8 = r1.b();\n r1 = r7 * 3;\n r1 = r1 / 228;\n r3 = 3;\n if (r1 < r3) goto L_0x002e;\n L_0x002c:\n if (r2 == 0) goto L_0x002f;\n L_0x002e:\n r1 = 3;\n L_0x002f:\n r2 = 0;\n r3 = 5;\n r9 = new int[r3];\n r4 = r1 + -1;\n r5 = r1;\n L_0x0036:\n if (r4 >= r7) goto L_0x0127;\n L_0x0038:\n if (r2 != 0) goto L_0x0127;\n L_0x003a:\n r1 = 0;\n r3 = 0;\n r9[r1] = r3;\n r1 = 1;\n r3 = 0;\n r9[r1] = r3;\n r1 = 2;\n r3 = 0;\n r9[r1] = r3;\n r1 = 3;\n r3 = 0;\n r9[r1] = r3;\n r1 = 4;\n r3 = 0;\n r9[r1] = r3;\n r1 = 0;\n r3 = 0;\n L_0x0050:\n if (r3 >= r8) goto L_0x010d;\n L_0x0052:\n r10 = r13.b;\n r10 = r10.a(r3, r4);\n if (r10 == 0) goto L_0x0069;\n L_0x005a:\n r10 = r1 & 1;\n r11 = 1;\n if (r10 != r11) goto L_0x0061;\n L_0x005f:\n r1 = r1 + 1;\n L_0x0061:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0069:\n r10 = r1 & 1;\n if (r10 != 0) goto L_0x0103;\n L_0x006d:\n r10 = 4;\n if (r1 != r10) goto L_0x00f9;\n L_0x0070:\n r1 = a(r9);\n if (r1 == 0) goto L_0x015f;\n L_0x0076:\n r1 = r13.a(r9, r4, r3, r0);\n if (r1 == 0) goto L_0x0159;\n L_0x007c:\n r5 = 2;\n r1 = r13.a;\n if (r1 == 0) goto L_0x0156;\n L_0x0081:\n r1 = r13.b();\n if (r6 == 0) goto L_0x00c2;\n L_0x0087:\n r2 = r13.c();\n r10 = 2;\n r10 = r9[r10];\n if (r2 <= r10) goto L_0x0152;\n L_0x0090:\n r3 = 2;\n r3 = r9[r3];\n r2 = r2 - r3;\n r2 = r2 - r5;\n r3 = r4 + r2;\n r2 = r8 + -1;\n L_0x0099:\n if (r6 == 0) goto L_0x014e;\n L_0x009b:\n r4 = r5;\n r12 = r3;\n r3 = r1;\n r1 = r2;\n r2 = r12;\n L_0x00a0:\n r5 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r5] = r10;\n r5 = 3;\n r10 = 1;\n r9[r5] = r10;\n r5 = 4;\n r10 = 0;\n r9[r5] = r10;\n r5 = 3;\n if (r6 == 0) goto L_0x0147;\n L_0x00bd:\n r5 = r4;\n r4 = r2;\n r12 = r3;\n r3 = r1;\n r1 = r12;\n L_0x00c2:\n r2 = 0;\n r10 = 0;\n r11 = 0;\n r9[r10] = r11;\n r10 = 1;\n r11 = 0;\n r9[r10] = r11;\n r10 = 2;\n r11 = 0;\n r9[r10] = r11;\n r10 = 3;\n r11 = 0;\n r9[r10] = r11;\n r10 = 4;\n r11 = 0;\n r9[r10] = r11;\n if (r6 == 0) goto L_0x0143;\n L_0x00d9:\n r2 = 0;\n r10 = 2;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 1;\n r10 = 3;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 2;\n r10 = 4;\n r10 = r9[r10];\n r9[r2] = r10;\n r2 = 3;\n r10 = 1;\n r9[r2] = r10;\n r2 = 4;\n r10 = 0;\n r9[r2] = r10;\n r2 = 3;\n if (r6 == 0) goto L_0x0143;\n L_0x00f6:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n L_0x00f9:\n r1 = r1 + 1;\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n if (r6 == 0) goto L_0x0109;\n L_0x0103:\n r10 = r9[r1];\n r10 = r10 + 1;\n r9[r1] = r10;\n L_0x0109:\n r3 = r3 + 1;\n if (r6 == 0) goto L_0x0050;\n L_0x010d:\n r1 = a(r9);\n if (r1 == 0) goto L_0x0124;\n L_0x0113:\n r1 = r13.a(r9, r4, r8, r0);\n if (r1 == 0) goto L_0x0124;\n L_0x0119:\n r1 = 0;\n r5 = r9[r1];\n r1 = r13.a;\n if (r1 == 0) goto L_0x0124;\n L_0x0120:\n r2 = r13.b();\n L_0x0124:\n r4 = r4 + r5;\n if (r6 == 0) goto L_0x0036;\n L_0x0127:\n r0 = r13.a();\n com.google.bm.a(r0);\n r1 = new com.google.bV;\n r1.<init>(r0);\n r0 = com.google.gC.a;\n if (r0 == 0) goto L_0x013b;\n L_0x0137:\n r0 = r6 + 1;\n f = r0;\n L_0x013b:\n return r1;\n L_0x013c:\n r0 = 0;\n r2 = r0;\n goto L_0x000e;\n L_0x0140:\n r0 = 0;\n goto L_0x0019;\n L_0x0143:\n r12 = r2;\n r2 = r1;\n r1 = r12;\n goto L_0x0109;\n L_0x0147:\n r12 = r1;\n r1 = r5;\n r5 = r4;\n r4 = r2;\n r2 = r3;\n r3 = r12;\n goto L_0x0109;\n L_0x014e:\n r4 = r3;\n r3 = r2;\n goto L_0x00c2;\n L_0x0152:\n r2 = r3;\n r3 = r4;\n goto L_0x0099;\n L_0x0156:\n r1 = r2;\n goto L_0x0087;\n L_0x0159:\n r1 = r3;\n r3 = r2;\n r2 = r4;\n r4 = r5;\n goto L_0x00a0;\n L_0x015f:\n r1 = r2;\n goto L_0x00d9;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.bj.a(java.util.Map):com.google.bV\");\n }",
"public void mo21785J() {\n }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"void mo4874b(C4718l c4718l);",
"public void mo5097b() {\n }",
"public abstract void mo9798a(byte b);",
"public final void mo92082N() {\n }",
"C4932q5 mo19394a(byte[] bArr) throws zzfn;",
"@Test(timeout = 4000)\n public void test017() throws Throwable {\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)120;\n byteArray0[1] = (byte) (-68);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }",
"public final void mo1285b() {\n }",
"void m1864a() {\r\n }",
"public static void main(String[] args) {\n byte b1=125;\n System.out.println(b1);\n byte b2=(byte)129;\n System.out.println(b2);\t\t\n\t}",
"public void mo6081a() {\n }",
"C7904c mo24084a();",
"public void mo115188a() {\n }",
"void mo12638c();",
"public void mo8738a() {\n }",
"void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);",
"public abstract void mo27385c();",
"C1529a mo17019b();",
"private oa a(int paramInt)\r\n/* 185: */ {\r\n/* 186:195 */ if (c[paramInt] == null) {\r\n/* 187:196 */ c[paramInt] = new oa(String.format(\"textures/font/unicode_page_%02x.png\", new Object[] { Integer.valueOf(paramInt) }));\r\n/* 188: */ }\r\n/* 189:199 */ return c[paramInt];\r\n/* 190: */ }",
"public void mo1972o() throws cf {\r\n }",
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"void mo57278c();",
"public void mo23438b() {\n }",
"public void mo12627b() {\n try {\n this.f4764b.mo12945a(this.f4765c);\n } catch (IOException unused) {\n }\n }",
"static String m3302v() throws C1108a {\n if (f3067ki != null) {\n return f3067ki;\n }\n throw new C1108a();\n }",
"private static int m1646b(CharSequence charSequence) {\n return new C0510a(charSequence, false).mo4452e();\n }",
"void mo4873a(C4718l c4718l);",
"public abstract void mo4380b(byte[] bArr, int i, int i2);",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int method_2436() {\r\n return 16;\r\n }"
] | [
"0.61515886",
"0.61209524",
"0.60874486",
"0.60346764",
"0.60144466",
"0.5958108",
"0.58955836",
"0.589272",
"0.5889686",
"0.5874775",
"0.58719546",
"0.5851818",
"0.5795395",
"0.57854944",
"0.5782934",
"0.5778938",
"0.5776883",
"0.5774254",
"0.577381",
"0.5765931",
"0.57632786",
"0.57599294",
"0.57534105",
"0.57477033",
"0.5721422",
"0.5716958",
"0.57112855",
"0.5709823",
"0.5707164",
"0.570327",
"0.57028157",
"0.57019347",
"0.5701131",
"0.5701065",
"0.5700086",
"0.5698118",
"0.56909084",
"0.5689437",
"0.56879675",
"0.5685585",
"0.567901",
"0.56720114",
"0.56714255",
"0.56700695",
"0.566982",
"0.5669496",
"0.5662784",
"0.5662084",
"0.566174",
"0.56612736",
"0.56604326",
"0.5654221",
"0.56525797",
"0.56495523",
"0.5636928",
"0.56361353",
"0.56320196",
"0.5623112",
"0.562139",
"0.56156313",
"0.5608339",
"0.5606402",
"0.56026894",
"0.559127",
"0.5590225",
"0.5588987",
"0.55877846",
"0.55863804",
"0.5580018",
"0.55776703",
"0.55768514",
"0.5571697",
"0.55699354",
"0.55639046",
"0.555965",
"0.5556168",
"0.55538255",
"0.55526716",
"0.55486035",
"0.5545932",
"0.554066",
"0.5531756",
"0.5530603",
"0.5526406",
"0.5522372",
"0.55144334",
"0.551119",
"0.5505328",
"0.55047965",
"0.55009186",
"0.55002624",
"0.5495561",
"0.5483604",
"0.548278",
"0.5477141",
"0.54768926",
"0.54762465",
"0.5473674",
"0.54727995",
"0.5472102",
"0.54707605"
] | 0.0 | -1 |
/ 198: / 199: | public int getNumeroAnterior()
/* 200: */ {
/* 201:210 */ return this.numeroAnterior;
/* 202: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int mo1980w() throws cf {\r\n return m10275g(m10257E());\r\n }",
"private int m10257E() throws cf {\r\n int i = 0;\r\n int i2;\r\n if (this.g.mo1996h() >= 5) {\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n i2 = 0;\r\n int i3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n i3 |= (b & 127) << i2;\r\n if ((b & 128) != 128) {\r\n this.g.mo1993a(i + 1);\r\n return i3;\r\n }\r\n i2 += 7;\r\n i++;\r\n }\r\n } else {\r\n i2 = 0;\r\n while (true) {\r\n byte u = mo1978u();\r\n i2 |= (u & 127) << i;\r\n if ((u & 128) != 128) {\r\n return i2;\r\n }\r\n i += 7;\r\n }\r\n }\r\n }",
"int mo23521Ly();",
"void mo1943l();",
"long getMid();",
"long getMid();",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public long mo1981x() throws cf {\r\n return m10270d(m10258F());\r\n }",
"private static byte[] m17790a(Bitmap bitmap) {\n int i;\n int i2;\n int i3;\n int width = bitmap.getWidth();\n int height = bitmap.getHeight();\n OutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n for (i = 0; i < 32; i++) {\n byteArrayOutputStream.write(0);\n }\n int[] iArr = new int[(width - 2)];\n bitmap.getPixels(iArr, 0, width, 1, 0, width - 2, 1);\n Object obj = iArr[0] == -16777216 ? 1 : null;\n Object obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n int length = iArr.length;\n width = 0;\n int i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n int i5 = i4;\n int i6 = i5 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i3 = i - 1;\n } else {\n i3 = i;\n }\n iArr = new int[(height - 2)];\n bitmap.getPixels(iArr, 0, 1, 0, 1, 1, height - 2);\n obj = iArr[0] == -16777216 ? 1 : null;\n obj2 = iArr[iArr.length + -1] == -16777216 ? 1 : null;\n length = iArr.length;\n width = 0;\n i4 = 0;\n for (i2 = 0; i2 < length; i2++) {\n if (width != iArr[i2]) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, i2);\n width = iArr[i2];\n }\n }\n if (obj2 != null) {\n i4++;\n C5225r.m17788a(byteArrayOutputStream, length);\n }\n i6 = i4 + 1;\n if (obj != null) {\n i = i6 - 1;\n } else {\n i = i6;\n }\n if (obj2 != null) {\n i--;\n }\n for (i6 = 0; i6 < i3 * i; i6++) {\n C5225r.m17788a(byteArrayOutputStream, 1);\n }\n byte[] toByteArray = byteArrayOutputStream.toByteArray();\n toByteArray[0] = (byte) 1;\n toByteArray[1] = (byte) i5;\n toByteArray[2] = (byte) i4;\n toByteArray[3] = (byte) (i * i3);\n C5225r.m17787a(bitmap, toByteArray);\n return toByteArray;\n }",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"int getBaseline() {\n\treturn ascent;\n}",
"public void copiedMeasureDecoder(Integer chordNote,Integer[]previousChord, Integer[] playedChord){\n /* int c=0;\n int a=0;\n int b=0;\n int x0=0;\n int x1=0;*/\n int d1=0;\n int d2=0;\n\n\n\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==chordNote)\n d1=i;\n }\n for (int i=0;i<melodyNotes.length;i++){\n if(melodyNotes[i]==melody.get(melodyCounter))\n d2=i;\n /* if(melodyNotes[i]==playedChord[1])\n a=i;\n if(melodyNotes[i]==previousChord[1])\n b=i;*/\n }\n /*if(a<b){\n x0=a-b;\n x1=7+x1;\n }else{\n x0=a-b;\n x1=x0-7;\n }*/\n if(d1>d2) {\n binaryOutput += \"0\";\n }else {\n binaryOutput += \"1\";\n }\n for(int i = 0;i<4;i++){\n for(int j =0; j < rhytm.get(beatCounter).length;j++){\n if(rhytm.get(beatCounter)[j]!=null)\n if ((!rhytm.get(beatCounter)[j].equals(\"Ri\")) && (!rhytm.get(beatCounter)[j].equals(\"Rs\"))) {\n melodyCounter++;\n }\n }\n beatCounter++;\n }\n\n\n}",
"private static int m36201b(Rect rect) {\n return rect.width() * rect.height();\n }",
"private void m27468d() {\n switch (this.f25258E) {\n case 1:\n this.f25270Q = this.f25294i.left;\n break;\n case 2:\n this.f25270Q = this.f25294i.right;\n break;\n default:\n this.f25270Q = this.f25268O;\n break;\n }\n this.f25271R = (int) (((float) this.f25269P) - ((this.f25288c.ascent() + this.f25288c.descent()) / 2.0f));\n }",
"private BigInteger divideWords(int w)\n {\n int n = magnitude.length;\n if (w >= n)\n {\n return ZERO;\n }\n int[] mag = new int[n - w];\n System.arraycopy(magnitude, 0, mag, 0, n - w);\n return new BigInteger(sign, mag);\n }",
"void mo1942k();",
"private int m2013i() {\n return C0962e0.m5566x(this.f1288Z) == 1 ? 0 : 1;\n }",
"int main()\n{\n cin>>a.h>>a.m>>a.s>>b.h>>b.m>>b.s;\n int x=a.s-b.s;\n int y=a.m-b.m;\n int z=a.h-b.h;\n if(y<0){\n y+=60;\n z--;\n }\n if(x<0){\n x+=60;\n y--;\n }\n cout<<z<<\":\"<<y<<\":\"<<x;\n}",
"private long m10258F() throws cf {\r\n long j = null;\r\n long j2 = 0;\r\n if (this.g.mo1996h() >= 10) {\r\n int i;\r\n byte[] f = this.g.mo1994f();\r\n int g = this.g.mo1995g();\r\n long j3 = 0;\r\n while (true) {\r\n byte b = f[g + i];\r\n j2 |= ((long) (b & 127)) << j3;\r\n if ((b & 128) != 128) {\r\n break;\r\n }\r\n j3 += 7;\r\n i++;\r\n }\r\n this.g.mo1993a(i + 1);\r\n } else {\r\n while (true) {\r\n byte u = mo1978u();\r\n j2 |= ((long) (u & 127)) << j;\r\n if ((u & 128) != 128) {\r\n break;\r\n }\r\n j += 7;\r\n }\r\n }\r\n return j2;\r\n }",
"private static int m18332b(int encoding) {\n if (encoding == 5) {\n return 80000;\n }\n if (encoding == 6) {\n return 768000;\n }\n if (encoding == 7) {\n return 192000;\n }\n if (encoding == 8) {\n return 2250000;\n }\n if (encoding == 14) {\n return 3062500;\n }\n throw new IllegalArgumentException();\n }",
"private double normalizeImageValue(double value){\n return value/(31);\n }",
"long mo20406a();",
"bdm mo1784a(akh akh);",
"private static String m2380a(byte[] bArr, byte[] bArr2) {\n byte[] bArr3 = new byte[(((bArr.length + 2) / 3) * 4)];\n int length = bArr.length - (bArr.length % 3);\n int i = 0;\n for (int i2 = 0; i2 < length; i2 += 3) {\n int i3 = i + 1;\n bArr3[i] = bArr2[(bArr[i2] & 255) >> 2];\n int i4 = i3 + 1;\n int i5 = i2 + 1;\n bArr3[i3] = bArr2[((bArr[i2] & 3) << 4) | ((bArr[i5] & 255) >> 4)];\n int i6 = i4 + 1;\n int i7 = i2 + 2;\n bArr3[i4] = bArr2[((bArr[i5] & 15) << 2) | ((bArr[i7] & 255) >> 6)];\n i = i6 + 1;\n bArr3[i6] = bArr2[bArr[i7] & 63];\n }\n switch (bArr.length % 3) {\n case 1:\n int i8 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i9 = i8 + 1;\n bArr3[i8] = bArr2[(bArr[length] & 3) << 4];\n int i10 = i9 + 1;\n bArr3[i9] = 61;\n bArr3[i10] = 61;\n break;\n case 2:\n int i11 = i + 1;\n bArr3[i] = bArr2[(bArr[length] & 255) >> 2];\n int i12 = i11 + 1;\n int i13 = length + 1;\n bArr3[i11] = bArr2[((bArr[length] & 3) << 4) | ((bArr[i13] & 255) >> 4)];\n int i14 = i12 + 1;\n bArr3[i12] = bArr2[(bArr[i13] & 15) << 2];\n bArr3[i14] = 61;\n break;\n }\n try {\n return new String(bArr3, \"US-ASCII\");\n } catch (UnsupportedEncodingException e) {\n throw new AssertionError(e);\n }\n }",
"void mo304a(C0366h c0366h);",
"public void mo9824b(String str) {\n int i;\n int i2;\n try {\n int length = str.length() * 3;\n int i3 = C3670m.m8671i(length);\n int i4 = i3 + length;\n if (i4 > this.f9107e) {\n byte[] bArr = new byte[length];\n int a = C3700r1.m8885a(str, bArr, 0, length);\n mo9814c(a);\n mo9826b(bArr, 0, a);\n return;\n }\n if (i4 > this.f9107e - this.f9108f) {\n mo9827i();\n }\n int i5 = C3670m.m8671i(str.length());\n i = this.f9108f;\n if (i5 == i3) {\n int i6 = i + i5;\n this.f9108f = i6;\n int a2 = C3700r1.m8885a(str, this.f9106d, i6, this.f9107e - i6);\n this.f9108f = i;\n i2 = (a2 - i) - i5;\n mo9820l(i2);\n this.f9108f = a2;\n } else {\n i2 = C3700r1.m8884a((CharSequence) str);\n mo9820l(i2);\n this.f9108f = C3700r1.m8885a(str, this.f9106d, this.f9108f, i2);\n }\n this.f9109g += i2;\n } catch (C3703c e) {\n this.f9109g -= this.f9108f - i;\n this.f9108f = i;\n throw e;\n } catch (ArrayIndexOutOfBoundsException e2) {\n throw new C3674d(e2);\n } catch (C3703c e3) {\n mo9808a(str, e3);\n }\n }",
"private int m14719r() {\n int s = m14720s();\n if (s > 0) {\n try {\n if (this.f10949d == null) {\n this.f10949d = this.f10962q.mo12209b(255);\n }\n int i = this.f10951f - this.f10952g;\n if (i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, s);\n this.f10952g += s;\n } else if (this.f10948c.remaining() + i >= s) {\n System.arraycopy(this.f10950e, this.f10952g, this.f10949d, 0, i);\n this.f10952g = this.f10951f;\n m14721t();\n int i2 = s - i;\n System.arraycopy(this.f10950e, 0, this.f10949d, i, i2);\n this.f10952g += i2;\n } else {\n this.f10965t = 1;\n }\n } catch (Exception e) {\n C3111h1.m14932d(f10944y, \"Error Reading Block\", e);\n this.f10965t = 1;\n }\n }\n return s;\n }",
"private static double fds_h(Vec v) { return 2*ASTMad.mad(new Frame(v), null, 1.4826)*Math.pow(v.length(),-1./3.); }",
"final int ec_decode(final int _fti) {// FIXME it is called with int _ft, result uses as int\r\n\t\tfinal long _ft = ((long)_fti & 0xffffffffL);// java\r\n\t\tthis.ext = ( this.rng / _ft );\r\n\t\tlong s = (this.val / this.ext);\r\n\t\t// return (int)(_ft - EC_MINI( s + 1L, _ft ));\r\n\t\ts++;\r\n\t\tlong b = _ft;\r\n\t\tb -= s;\r\n\t\tif( b > 0 ) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\t\ts += b;\r\n\t\treturn (int)(_ft - s);\r\n\t}",
"private static int m3068c(int i, int i2) {\n return 255 - (((255 - i2) * (255 - i)) / NormalGiftView.ALPHA_255);\n }",
"void mo3194r();",
"public void m9739h() {\r\n this.f6261j = bw.m10080b(this.f6261j, 1);\r\n }",
"static int getYear(byte[] bytes) {\n return readBits(bytes, YEAR_POS, YEAR_BITS) - YEAR_EXCESS;\n }",
"String mo38971b();",
"private int K(int t)\n {\n if(t<=19)\n return 0x5a827999;\n else if(t<=39)\n return 0x6ed9eba1;\n else if(t<=59)\n return 0x8f1bbcdc;\n else \n return 0xca62c1d6;\n }",
"public abstract long mo9748m();",
"public abstract long mo24409b();",
"public static void main(String[] args) throws UnsupportedEncodingException {\n var res2 = old.MD4.MD4.hash(\"The quick brown fox jumps over the lazy dogshdkasjhflksdjhflkasjhdflkjshdfkljasdhlfkjajhjhhldfkjashldf\".getBytes());\n// var res1 = cyph.digest(\"\".getBytes());\n\n System.out.println(encodeHexString(res2));\n// System.out.println(new BitUtils(res1).getNextLong(25) + \"\\n\");\n\n System.exit(0);\n\n var secPreimg8 = secondPreimage(\"test\", 8, 1000);\n System.out.println(\"Second preimage avg over 8 bits: \" + secPreimg8);\n dumpData(\"preimg.txt\", true, \"8 \" + secPreimg8 + \"\\n\");\n\n var secPreimg12 = secondPreimage(\"test\", 12, 1000);\n System.out.println(\"Second preimage avg over 12 bits: \" + secPreimg12);\n dumpData(\"preimg.txt\", false, \"12 \" + secPreimg12 + \"\\n\");\n\n var secPreimg16 = secondPreimage(\"test\", 16, 500);\n System.out.println(\"Second preimage avg over 16 bits: \" + secPreimg16);\n dumpData(\"preimg.txt\", false, \"16 \" + secPreimg16 + \"\\n\");\n\n var secPreimg20 = secondPreimage(\"test\", 20, 50);\n System.out.println(\"Second preimage avg over 20 bits: \" + secPreimg20);\n dumpData(\"preimg.txt\", false, \"20 \" + secPreimg20 + \"\\n\");\n\n var secPreimg24 = secondPreimage(\"test\", 24, 10);\n System.out.println(\"Second preimage avg over 24 bits: \" + secPreimg24);\n dumpData(\"preimg.txt\", false, \"24 \" + secPreimg24 + \"\\n\");\n\n var coll8 = collisions(8, 1000);\n System.out.println(\"\\nCollisions for 8 bits: \" + coll8);\n dumpData(\"coll.txt\", true, \"8 \" + coll8 + \"\\n\");\n\n var coll12 = collisions(12, 1000);\n System.out.println(\"Collisions for 12 bits: \" + coll12);\n dumpData(\"coll.txt\", false, \"12 \" + coll12 + \"\\n\");\n\n var coll16 = collisions(16, 1000);\n System.out.println(\"Collisions for 16 bits: \" + coll16);\n dumpData(\"coll.txt\", false, \"16 \" + coll16 + \"\\n\");\n\n var coll20 = collisions(20, 1000);\n System.out.println(\"Collisions for 20 bits: \" + coll20);\n dumpData(\"coll.txt\", false, \"20 \" + coll20 + \"\\n\");\n\n var coll24 = collisions(24, 1000);\n System.out.println(\"Collisions for 24 bits: \" + coll24);\n dumpData(\"coll.txt\", false, \"24 \" + coll24 + \"\\n\");\n }",
"public int getSecondR() {\n/* 48 */ return this.secondR;\n/* */ }",
"public final void mo9819k(int i) {\n byte[] bArr = this.f9106d;\n int i2 = this.f9108f;\n int i3 = i2 + 1;\n this.f9108f = i3;\n bArr[i2] = (byte) (i & 255);\n int i4 = i3 + 1;\n this.f9108f = i4;\n bArr[i3] = (byte) ((i >> 8) & 255);\n int i5 = i4 + 1;\n this.f9108f = i5;\n bArr[i4] = (byte) ((i >> 16) & 255);\n this.f9108f = i5 + 1;\n bArr[i5] = (byte) ((i >> 24) & 255);\n this.f9109g += 4;\n }",
"String mo20730b();",
"String mo30285c(long j);",
"public int arn() {\n return 383;\n }",
"C4945r5 mo19056B();",
"private static int m3066a(int i, int i2, int i3, int i4, int i5) {\n if (i5 == 0) {\n return 0;\n }\n return (((i * NormalGiftView.ALPHA_255) * i2) + ((i3 * i4) * (255 - i2))) / (i5 * NormalGiftView.ALPHA_255);\n }",
"public int mo36g() {\n return 4;\n }",
"public int mo12196h() {\n return this.f10961p.f11005m;\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"void mo1970b();",
"abstract public int getIncomeSegment( int hhIncomeInDollars );",
"public abstract long mo9229aD();",
"public int mo163c() {\n int size = this.f1963b.size();\n if (size < 1) {\n return 0;\n }\n int i = f1962a;\n return ((size / i) * (Lca.m828b(i) + 4)) + 4 + Lca.m828b(size % i);\n }",
"public int mo36g() {\n return 8;\n }",
"C1458cs mo7613iS();",
"private void m3935R() {\n int i;\n int i2;\n if (mo4322L() == 1) {\n i2 = mo4758r() - mo4756p();\n i = mo4754o();\n } else {\n i2 = mo4741h() - mo4752n();\n i = mo4757q();\n }\n m3945n(i2 - i);\n }",
"private static int m14929b() {\n return C3150p0.m15121Y();\n }",
"float compress(){\n float lower = mp.get(sequence.charAt(0)).lowRange;\n float upper = mp.get(sequence.charAt(0)).upperRange;\n for (int i = 1; i < sequence.length(); i++) {\n float newLower = lower + (upper - lower)*mp.get(sequence.charAt(i)).lowRange;\n float newUpper = lower + (upper - lower)*mp.get(sequence.charAt(i)).upperRange;\n lower = newLower;\n upper = newUpper;\n }\n ///picking value between final lower and upper\n float compressionCode = (float)(Math.floor(upper * 1000.0) / 1000.0);\n return compressionCode;\n }",
"private void m214b(Rect rect) {\n float f = this.f410k * 1.5f;\n this.f406g.set(((float) rect.left) + this.f410k, ((float) rect.top) + f, ((float) rect.right) - this.f410k, ((float) rect.bottom) - f);\n m217f();\n }",
"String mo21078i();",
"public abstract Integer mo36210m();",
"private static int m31084a(zzss zzss) {\n int a = zzss.mo32193a(5);\n if (a == 31) {\n return zzss.mo32193a(6) + 32;\n }\n return a;\n }",
"protected long m8217a(long j) {\n return (j * 1000000) / ((long) this.f7048i);\n }",
"public int mo1950a() {\n return this.f1924a;\n }",
"int getMid(int s, int e) {\n return s + (e - s) / 2;\n }",
"int regionSplitBits4DownSampledTable();",
"public final void mo12412a() {\n long j = -1;\n this.f1569g = this.f1564b - this.f1563a;\n this.f1570h = this.f1565c - this.f1564b;\n this.f1571i = this.f1566d - this.f1565c;\n this.f1572j = this.f1567e - this.f1566d;\n this.f1573k = this.f1568f - this.f1567e;\n long j2 = this.f1569g;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1569g = j2;\n j2 = this.f1570h;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1570h = j2;\n j2 = this.f1571i;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1571i = j2;\n j2 = this.f1572j;\n if (j2 < 0) {\n j2 = -1;\n }\n this.f1572j = j2;\n j2 = this.f1573k;\n if (j2 >= 0) {\n j = j2;\n }\n this.f1573k = j;\n }",
"public final void mo9764A() {\n int i = this.f9080g + this.f9081h;\n this.f9080g = i;\n int i2 = this.f9084k + i;\n int i3 = this.f9085l;\n if (i2 > i3) {\n int i4 = i2 - i3;\n this.f9081h = i4;\n this.f9080g = i - i4;\n return;\n }\n this.f9081h = 0;\n }",
"int mo44965b();",
"private int m514b(int i, int i2) {\n return ((i + 7) + (i2 - 1)) / 7;\n }",
"protected static void endPartial(long[] h) {\n h[11] += h[1]; \n h[2] ^= h[11]; \n h[1] = (h[1] << 44) | (h[1] >>> 20);\n h[0] += h[2]; \n h[3] ^= h[0]; \n h[2] = (h[2] << 15) | (h[2] >>> 49);\n h[1] += h[3]; \n h[4] ^= h[1]; \n h[3] = (h[3] << 34) | (h[3] >>> 30);\n h[2] += h[4]; \n h[5] ^= h[2]; \n h[4] = (h[4] << 21) | (h[4] >>> 43);\n h[3] += h[5]; \n h[6] ^= h[3]; \n h[5] = (h[5] << 38) | (h[5] >>> 26);\n h[4] += h[6]; \n h[7] ^= h[4]; \n h[6] = (h[6] << 33) | (h[6] >>> 31);\n h[5] += h[7]; \n h[8] ^= h[5]; \n h[7] = (h[7] << 10) | (h[7] >>> 54);\n h[6] += h[8]; \n h[9] ^= h[6]; \n h[8] = (h[8] << 13) | (h[8] >>> 51);\n h[7] += h[9]; \n h[10] ^= h[7]; \n h[9] = (h[9] << 38) | (h[9] >>> 26);\n h[8] += h[10]; \n h[11] ^= h[8]; \n h[10] = (h[10] << 53) | (h[10] >>> 11);\n h[9] += h[11]; \n h[0] ^= h[9]; \n h[11] = (h[11] << 42) | (h[11] >>> 22);\n h[10] += h[0]; \n h[1] ^= h[10]; \n h[0] = (h[0] << 54) | (h[0] >>> 10);\t\t\n\t}",
"private static int getPrevCC(PrevArgs paramPrevArgs)\n/* */ {\n/* 574 */ return (int)(0xFF & getPrevNorm32(paramPrevArgs, 768, 65280) >> 8);\n/* */ }",
"private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }",
"static double mediaAritmetica (double c, int e, int f) {\n return (c+e+f)/3;\n }",
"private int[] m7231g() {\n this.f5577B[0] = this.f5594p;\n this.f5577B[1] = this.f5600v - this.f5594p;\n return this.f5577B;\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"void mo1931a(C2848p c2848p);",
"byte[] mo38566a();",
"float mo56157b();",
"private void mo1986b(int i) throws cf {\r\n int i2 = 0;\r\n while ((i & -128) != 0) {\r\n int i3 = i2 + 1;\r\n this.f6475a[i2] = (byte) ((i & 127) | 128);\r\n i >>>= 7;\r\n i2 = i3;\r\n }\r\n int i4 = i2 + 1;\r\n this.f6475a[i2] = (byte) i;\r\n this.g.mo1990b(this.f6475a, 0, i4);\r\n }",
"public abstract long mo9750o();",
"public String mo1983z() throws cf {\r\n int E = m10257E();\r\n m10274f(E);\r\n if (E == 0) {\r\n return bi_常量类.f6358b_空串;\r\n }\r\n try {\r\n if (this.g.mo1996h() < E) {\r\n return new String(m10273e(E), \"UTF-8\");\r\n }\r\n String str = new String(this.g.mo1994f(), this.g.mo1995g(), E, \"UTF-8\");\r\n this.g.mo1993a(E);\r\n return str;\r\n } catch (UnsupportedEncodingException e) {\r\n throw new cf(\"UTF-8 not supported!\");\r\n }\r\n }",
"String mo20731c();",
"public void setDimensionRatio(java.lang.String r9) {\n /*\n r8 = this;\n r0 = 0;\n if (r9 == 0) goto L_0x008e;\n L_0x0003:\n r1 = r9.length();\n if (r1 != 0) goto L_0x000b;\n L_0x0009:\n goto L_0x008e;\n L_0x000b:\n r1 = -1;\n r2 = r9.length();\n r3 = 44;\n r3 = r9.indexOf(r3);\n r4 = 0;\n r5 = 1;\n if (r3 <= 0) goto L_0x0037;\n L_0x001a:\n r6 = r2 + -1;\n if (r3 >= r6) goto L_0x0037;\n L_0x001e:\n r6 = r9.substring(r4, r3);\n r7 = \"W\";\n r7 = r6.equalsIgnoreCase(r7);\n if (r7 == 0) goto L_0x002c;\n L_0x002a:\n r1 = 0;\n goto L_0x0035;\n L_0x002c:\n r4 = \"H\";\n r4 = r6.equalsIgnoreCase(r4);\n if (r4 == 0) goto L_0x0035;\n L_0x0034:\n r1 = 1;\n L_0x0035:\n r4 = r3 + 1;\n L_0x0037:\n r3 = 58;\n r3 = r9.indexOf(r3);\n if (r3 < 0) goto L_0x0075;\n L_0x003f:\n r2 = r2 - r5;\n if (r3 >= r2) goto L_0x0075;\n L_0x0042:\n r2 = r9.substring(r4, r3);\n r3 = r3 + r5;\n r9 = r9.substring(r3);\n r3 = r2.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0051:\n r3 = r9.length();\n if (r3 <= 0) goto L_0x0084;\n L_0x0057:\n r2 = java.lang.Float.parseFloat(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n r3 = (r2 > r0 ? 1 : (r2 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0063:\n r3 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r3 <= 0) goto L_0x0084;\n L_0x0067:\n if (r1 != r5) goto L_0x006f;\n L_0x0069:\n r9 = r9 / r2;\n r9 = java.lang.Math.abs(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x006f:\n r2 = r2 / r9;\n r9 = java.lang.Math.abs(r2);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0075:\n r9 = r9.substring(r4);\n r2 = r9.length();\n if (r2 <= 0) goto L_0x0084;\n L_0x007f:\n r9 = java.lang.Float.parseFloat(r9);\t Catch:{ NumberFormatException -> 0x0084 }\n goto L_0x0085;\n L_0x0084:\n r9 = 0;\n L_0x0085:\n r0 = (r9 > r0 ? 1 : (r9 == r0 ? 0 : -1));\n if (r0 <= 0) goto L_0x008d;\n L_0x0089:\n r8.mDimensionRatio = r9;\n r8.mDimensionRatioSide = r1;\n L_0x008d:\n return;\n L_0x008e:\n r8.mDimensionRatio = r0;\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.support.constraint.solver.widgets.ConstraintWidget.setDimensionRatio(java.lang.String):void\");\n }",
"C3197iu mo30281b(long j);",
"private static double m1936a(double d) {\n if (d > 6.26d) {\n return 100.0d;\n }\n if (d < 0.01d) {\n return 0.0d;\n }\n return ((d - 0.01d) * 100.0d) / 6.25d;\n }",
"BigInteger getWidth();",
"@Test\n public void testTakeNumberFromString224() { // FlairImage: 224\n assertEquals(\"From: FlairImage line: 225\", 123, takeNumberFromString(\"123\")); \n assertEquals(\"From: FlairImage line: 226\", 0, takeNumberFromString(\"123a\")); \n assertEquals(\"From: FlairImage line: 227\", -123, takeNumberFromString(\"-123\")); \n assertEquals(\"From: FlairImage line: 228\", 0, takeNumberFromString(\"--123\")); \n assertEquals(\"From: FlairImage line: 229\", 0, takeNumberFromString(\"pz4\")); \n }",
"static public double m2yard(double m){\n\t\treturn m*1.0936;\n\t}",
"C2841w mo7234g();",
"private static int m24353e(int i) {\n return i - (i >> 2);\n }",
"public int mo9232aG() {\n return 0;\n }",
"void mo25957a(long j, long j2);",
"public void mo12189b() {\n this.f10961p = null;\n byte[] bArr = this.f10957l;\n if (bArr != null) {\n this.f10962q.mo12206a(bArr);\n }\n int[] iArr = this.f10958m;\n if (iArr != null) {\n this.f10962q.mo12207a(iArr);\n }\n Bitmap bitmap = this.f10963r;\n if (bitmap != null) {\n this.f10962q.mo12205a(bitmap);\n }\n this.f10963r = null;\n this.f10948c = null;\n this.f10969x = false;\n byte[] bArr2 = this.f10949d;\n if (bArr2 != null) {\n this.f10962q.mo12206a(bArr2);\n }\n byte[] bArr3 = this.f10950e;\n if (bArr3 != null) {\n this.f10962q.mo12206a(bArr3);\n }\n }",
"int mo98209b();",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"public static asw m47155c() {\n return zzfkz;\n }",
"void mo1940i();",
"public int getEncPosition() {\n //System.out.println(this.EncX.getRaw() + \"raw\");\n return (int) (1000 * this.EncX.getDistance());\n //return (int)(1000 * this.EncX.getRaw() / 8.6);\n \n }",
"public void EasterMath(int year)\n {\n a = year%19;\n b = Math.floor(year/100);\n c = year%100;\n d = Math.floor((b/4));\n e = b%4;\n f = Math.floor((b+8)/25);\n g = Math.floor((b-f+1)/3);\n h = (19*a+b-d-g+15)%30;\n i = Math.floor(c/4);\n k = c%4;\n l = (32 + 2* e + 2 * i - h - k)%7;\n m = Math.floor((a+11*h+22*l)/451);\n month = (int) Math.floor((h+l-7*m+114)/31);\n day = (int) (((h+l-7*m+114)%31)+1);\n }",
"int toHashKey(String s)\n\t{\n\t\tint A = 1952786893;\n\t\tint B = 367257;\n\t\tint v = B;\n\t\tfor (int j = 0; j < s.length(); j++)\n\t\t{\n\t\t\tchar c = s.charAt(j);\n\t\t\tv = A * (v + (int) c + j) + B;\n\t\t}\n\n\t\tif (v < 0) v = -v;\n\t\treturn v;\n\t}",
"void milestone2(double num){\n System.out.println(\"Integer part: \" + (int)num);\n double fractionPart = num - (int)num;\n fractionPart *= 100;\n System.out.println(\"Fractional part: \" + (int)fractionPart);\n }"
] | [
"0.5269912",
"0.52335095",
"0.50285834",
"0.5020964",
"0.49913698",
"0.49913698",
"0.49756283",
"0.4960104",
"0.4943738",
"0.4900818",
"0.48994172",
"0.48913372",
"0.48868635",
"0.48732013",
"0.48657703",
"0.4861443",
"0.48611066",
"0.48596743",
"0.48493832",
"0.48468706",
"0.48436457",
"0.48433945",
"0.48433736",
"0.48390213",
"0.48363268",
"0.4826222",
"0.48231006",
"0.48218432",
"0.48070985",
"0.48018005",
"0.47962552",
"0.47920954",
"0.47839752",
"0.4781651",
"0.47735777",
"0.47732365",
"0.4765115",
"0.47639462",
"0.47619906",
"0.47576597",
"0.47528517",
"0.47453165",
"0.47395608",
"0.4730608",
"0.471808",
"0.47065917",
"0.47038722",
"0.47036904",
"0.46994483",
"0.46937203",
"0.46861634",
"0.4684737",
"0.46808544",
"0.46741384",
"0.46731952",
"0.46703565",
"0.46696207",
"0.4665375",
"0.46648186",
"0.46632278",
"0.46555892",
"0.46536186",
"0.464453",
"0.4639994",
"0.4637303",
"0.46344653",
"0.4632832",
"0.4632727",
"0.46266276",
"0.46242473",
"0.46241093",
"0.46238488",
"0.46236715",
"0.46196488",
"0.46195117",
"0.46140566",
"0.46120194",
"0.4610582",
"0.46103624",
"0.46059668",
"0.4603585",
"0.46026677",
"0.46018803",
"0.45970204",
"0.45930934",
"0.4591612",
"0.45891213",
"0.45825922",
"0.45823687",
"0.4581681",
"0.45814508",
"0.45789543",
"0.45768112",
"0.45724478",
"0.45647478",
"0.45636415",
"0.45629498",
"0.4560976",
"0.45576307",
"0.45567796",
"0.45543957"
] | 0.0 | -1 |
/ 203: / 204: | public void setNumeroAnterior(int numeroAnterior)
/* 205: */ {
/* 206:214 */ this.numeroAnterior = numeroAnterior;
/* 207: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_204() {}",
"@Test\n void incorrectDeletePathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }",
"@Test\n public void delete01(){\n Response responseGet=given().\n spec(spec03).\n when().\n get(\"/198\");\n responseGet.prettyPrint();\n //delete islemi\n Response responseDel =given().\n spec(spec03).\n when().\n delete(\"/198\");\n responseDel.prettyPrint();\n //responseDel yazdirildiginda \"Not Found\" cevabi gelirse status code 404 ile test edilir. Eger bos bir\n // satir donerse Ststus code 200 ile test edilir.\n responseDel.then().assertThat().statusCode(200);\n // Hard assert\n assertTrue(responseDel.getBody().asString().contains(\"\"));\n //softAssertion\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\"\"));\n softAssert.assertAll();\n\n\n }",
"@Test\n public void delete01() {\n Response responseGet = given().\n spec(spec03).\n when().\n get(\"/3\");\n responseGet.prettyPrint();\n\n Response responseDel = given().\n spec(spec03).\n when().\n delete(\"/3\");\n responseDel.prettyPrint();\n\n\n // responseDel yazdirildiginda not found cevabi gelirse status code 404 ile test edilir.\n // Eger bos bir satir donerse status code 200 ile test edilir.\n\n responseDel.\n then().\n statusCode(200);\n\n\n // hard assert\n\n assertTrue(responseDel.getBody().asString().contains(\" \"));\n\n // soft assertion\n\n SoftAssert softAssert = new SoftAssert();\n softAssert.assertTrue(responseDel.getBody().asString().contains(\" \"));\n softAssert.assertAll();\n }",
"@Test\n\tpublic void testStatusCode() {\n\t\tassertEquals(\"404\", myReply.getStatusCode());\n\t}",
"@Test\n public void removeAll_204_empty() throws Exception {\n\n // PREPARE THE DATABASE\n // Database is empty\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }",
"public void test_03() {\n\n\t\tResponse reponse = given().\n\t\t\t\twhen().\n\t\t\t\tdelete(\"http://localhost:3000/posts/_3cYk0W\");\n\n\t\tSystem.out.println(\"updated response data \"+ reponse.asString());\t\t\n\t}",
"@Test\n public void negativeScenario(){\n // when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\")\n // .then().statusCode(404);\n Response response = when().get(\"http://34.223.219.142:1212/ords/hr/employees/1234\");\n assertEquals(response.statusCode(),404);\n assertTrue(response.asString().contains(\"Not Found\"));\n response.prettyPrint();\n\n }",
"@Test\n public void removeAll_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }",
"Response mo35726n0() throws IOException;",
"public void method_200() {}",
"@Test\n void deleteTest() {\n URI uri = URI.create(endBody + \"/delete\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.delete(uri);\n\n assertEquals(200, response.statusCode());\n }",
"private String httpNotOk() {\n return \"HTTP/1.1 404 not Found\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\"\n + \"<!DOCTYPE html>\\n\"\n + \"<html>\\n\"\n + \"<head>\\n\"\n + \"<meta charset=\\\"UTF-8\\\">\\n\"\n + \"<title>Error</title>\\n\"\n + \"</head>\\n\"\n + \"<body>\\n\"\n + \"<h1>There is an error</h1>\\n\"\n + \"</body>\\n\"\n + \"</html>\\n\";\n }",
"public java.lang.Integer getVar204() {\n return var204;\n }",
"@Test\n public void testFailureWithDrawInSufficientFund() throws IOException, URISyntaxException {\n URI uri = builder.setPath(\"/accounts/2/withdraw/1000\").build();\n\n HttpPut request = new HttpPut(uri);\n request.setHeader(\"Content-type\", \"application/json\");\n HttpResponse response = client.execute(request);\n int statusCode = response.getStatusLine().getStatusCode();\n assertTrue(statusCode == 500);\n }",
"@Override\r\n protected Response<JSONObject> parseNetworkResponse(NetworkResponse response) {\r\n try {\r\n if (response.data.length == 0) {\r\n byte[] responseData = \"{}\".getBytes(\"UTF8\");\r\n response = new NetworkResponse(response.statusCode, responseData, response.headers, response.notModified);\r\n }\r\n } catch (UnsupportedEncodingException e) {\r\n e.printStackTrace();\r\n }\r\n return super.parseNetworkResponse(response);\r\n }",
"public java.lang.Integer getVar204() {\n return var204;\n }",
"public void method_203() {}",
"void envoiReponseSansDonnees(HttpServletResponse reponse);",
"public void method_206() {}",
"Http.Status status();",
"private int processPUT() throws ServerException {\r\n\t\tint statusCode;\r\n\t\tFile document = new File( request.getURI() );\r\n\t\tsynchronized ( this ) {\r\n\t\t\tif ( !document.exists() ) {\r\n\t\t\t\tBufferedOutputStream out = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tout = new BufferedOutputStream( new FileOutputStream( document ) );\r\n\t\t\t\t\tout.write( request.getParameterByteArray() );\r\n\t\t\t\t\tstatusCode = ResponseTable.CREATED;\r\n\t\t\t\t} catch ( IOException ioe ) {\r\n\t\t\t\t\tioe.printStackTrace();\r\n\t\t\t\t\tthrow new ServerException( ResponseTable.INTERNAL_SERVER_ERROR );\r\n\t\t\t\t} finally {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tout.close();\r\n\t\t\t\t\t} catch ( Exception e ) {\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tstatusCode = ResponseTable.NO_CONTENT;\r\n\t\t\t}\r\n\t\t}\r\n\t\tString headerMessage = createBasicHeaderMessage( statusCode ).toString();\r\n\t\twriteHeaderMessage( headerMessage );\r\n\t\treturn statusCode;\r\n\r\n\t}",
"@Override\n\t\t\t\t\t\t\tpublic void HttpFail(int ErrCode) {\n\n\t\t\t\t\t\t\t}",
"public boolean hasVar204() {\n return fieldSetFlags()[205];\n }",
"@Test \n public void testReperimentoNumeroInesistente() {\n Response rDelete = rubrica.path(nome+cognome).path(nome+cognome).request().delete();\n \n // Verifica che la risposta sia 404 Not Found\n assertEquals(Response.Status.NOT_FOUND.getStatusCode(),rDelete.getStatus());\n }",
"@Test\n public void testNoIfModifiedSinceHeader() throws Exception\n {\n HttpAction<HttpGet> first = get(\"/test.txt\");\n assertEquals(200, first.getResponse().getStatusLine().getStatusCode());\n assertEquals(\"SOMETHING\", first.getResponseContent());\n }",
"@Override\n public RestStatus status() {\n return response.status();\n }",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"@Override\r\n\tprotected void processRespond() {\n\r\n\t}",
"private String httpOk() {\n return \"HTTP/1.1 200 OK\\r\\n\"\n + \"Content-Type: text/html\\r\\n\"\n + \"\\r\\n\";\n }",
"int getStatusCode( );",
"@Test\n void incorrectGetPathTest() {\n URI uri = URI.create(endBody + \"/dummy\");\n\n // get the response\n HttpResponse<String> response = HttpMethods.get(uri);\n\n // it should receive 404\n assertNotEquals(200, response.statusCode());\n assertEquals(404, response.statusCode());\n }",
"abstract Integer getStatusCode();",
"public void setVar204(java.lang.Integer value) {\n this.var204 = value;\n }",
"@Test\n public void removeWorkflow_400() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n addMOToDb(2);\n addMOToDb(3);\n\n // PREPARE THE TEST\n String badId = \"bad_id\";\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\" + badId, null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(400, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }",
"private static boolean canResponseHaveBody(int status) {\n LOG.trace(\"enter HttpMethodBase.canResponseHaveBody(int)\");\n\n boolean result = true;\n\n if ((status >= 100 && status <= 199) || (status == 204)\n || (status == 304)) { // NOT MODIFIED\n result = false;\n }\n\n return result;\n }",
"public String badOrMissingResponseData();",
"@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenHttpMethodIncorrect() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(400).when().put(\n getBaseTestUrl() + \"/1/category/get/json/1\");\n }",
"@Override\n\t\t\t\t\tpublic void httpFail(String response) {\n\t\t\t\t\t}",
"public void method_201() {}",
"@Test\n public void testStatusCode(){\n Assert.assertEquals(resp.getStatusCode(),200, \"Status code does not match\");\n }",
"public void sendNotModified(ChannelHandlerContext ctx) {\r\n FullHttpResponse response = new DefaultFullHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.NOT_MODIFIED);\r\n setDateHeader(response);\r\n\r\n // Close the connection as soon as the error message is sent.\r\n ctx.writeAndFlush(response).addListener(ChannelFutureListener.CLOSE);\r\n }",
"protected void nop() throws Exception {\n reply_ok();\n }",
"int getStatusCode();",
"int getStatusCode();",
"private void clearHeartBeatRes() {\n if (rspCase_ == 5) {\n rspCase_ = 0;\n rsp_ = null;\n }\n }",
"@Override\n public void setStatus(int arg0) {\n\n }",
"@Test\n public void testAccountDelete() {\n Response response = webTarget\n .path(\"account/1\")\n .request(APPLICATION_JSON)\n .delete();\n assertThat(response.getStatus(), anyOf(is(200), is(202), is(204)));\n }",
"void faild_response();",
"@Test\n public void shouldGive404ResponseCodeIfAttemptIsMadeToDeleteNonExistentPayment() throws Exception {\n ResponseEntity<String> deleteResponse = restTemplate.exchange(paymentsUrl + \"/nonexistentPayment\", HttpMethod.DELETE, null, String.class);\n //then: the response should be 404 'not found':\n assertEquals(HttpStatus.NOT_FOUND, deleteResponse.getStatusCode());\n }",
"public abstract int statusCode();",
"@Test\n public void listAll_404() throws Exception {\n\n // PREPARE THE DATABASE\n // No data needed in database\n\n // PREPARE THE TEST\n // No preparation needed\n\n // DO THE TEST\n Response response = callAPI(VERB.GET, \"/mo/\", null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n }",
"@Test\n public void testClientPostsNoBody() throws Exception {\n sendSimplePostRequest(3, null, false);\n\n // Headers\n parser.readFrame();\n output.clearTrace();\n\n parser.readFrame();\n\n Assert.assertEquals(\"3-RST-[11]\\n\", output.getTrace());\n }",
"@Override\n\t\tpublic int getStatus() {\n\t\t\treturn 0;\n\t\t}",
"@Test\n public void testClientPostsNoParameters() throws Exception {\n sendParameterPostRequest(3, null, null, 10, false);\n\n // Headers\n parser.readFrame();\n output.clearTrace();\n\n parser.readFrame();\n\n Assert.assertEquals(\"3-RST-[11]\\n\", output.getTrace());\n }",
"@Test\n public void removeWorkflow_204() throws Exception {\n\n // PREPARE THE DATABASE\n // Fill in the workflow db\n addMOToDb(1);\n Integer id = addMOToDb(2).getId();\n addMOToDb(3);\n\n // PREPARE THE TEST\n // Nothing to do\n\n // DO THE TEST\n Response response = callAPI(VERB.DELETE, \"/mo/\" + id.toString(), null);\n\n // CHECK RESULTS\n int status = response.getStatus();\n assertEquals(204, status);\n\n String body = response.readEntity(String.class);\n assertEquals(\"\", body);\n\n response = callAPI(VERB.GET, \"/mo/\", null);\n List<Workflow> readMacroOpList = response.readEntity(new GenericType<List<Workflow>>() {\n });\n assertEquals(2, readMacroOpList.size());\n }",
"public int method_209() {\r\n return 0;\r\n }",
"@Test\n public void testSend200OkResponseWithoutBody() {\n String expected = \"RTSP/1.0 200 OK\\r\\n\" + (((\"server: Testserver\\r\\n\" + \"cseq: 1\\r\\n\") + \"session: 2547019973447939919\\r\\n\") + \"\\r\\n\");\n HttpResponse response = new io.netty.handler.codec.http.DefaultHttpResponse(RTSP_1_0, OK);\n response.headers().add(SERVER, \"Testserver\");\n response.headers().add(CSEQ, \"1\");\n response.headers().add(SESSION, \"2547019973447939919\");\n EmbeddedChannel ch = new EmbeddedChannel(new RtspEncoder());\n ch.writeOutbound(response);\n ByteBuf buf = ch.readOutbound();\n String actual = buf.toString(UTF_8);\n buf.release();\n Assert.assertEquals(expected, actual);\n }",
"public HttpResponse(int status, String method, String protocolVersion){\r\n ResourceManager manager = new ResourceManager();\r\n File res = manager.getResourceFor(status);\r\n header = new HttpHeader(status, res.getPath(), protocolVersion);\r\n if (method.equals(\"HEAD\"))\r\n resource = null;\r\n else \r\n resource = res;\r\n \r\n }",
"public HttpResponse(int status, String resource, String method, String protocolVersion) {\r\n \r\n ResourceManager manager = new ResourceManager();\r\n this.resource = manager.getResource(resource);\r\n header = new HttpHeader(status, resource, protocolVersion);\r\n if (method.equals(\"HEAD\"))\r\n this.resource = null;\r\n }",
"@GET\n @StatusCodes ({\n @ResponseCode ( code = 200, condition = \"Upon a successful read.\"),\n @ResponseCode( code = 204, condition = \"Upon a successful query with no results.\"),\n @ResponseCode( code = 404, condition = \"The specified entity has been moved, deleted, or otherwise not found.\")\n })\n Response get();",
"private boolean m43013b(int responseCode) {\n if (responseCode == 200 || responseCode == 202 || responseCode == 206) {\n return true;\n }\n return false;\n }",
"@Test(priority=1)\n\tpublic void teststatuscode() {\n\t\t\n\t\twhen()\n\t\t\t.get(\"http://jsonplaceholder.typicode.com/posts/1\")\n\t\t.then()\n\t\t\t.statusCode(200);\n\t\t\t//.log().all();\n\t}",
"@Test\n public void teststatusCode() {\n\t \n\t given().\n\t \tget(\"https://reqres.in/api/unknown\").\n\t then().\t\t\n\t \tstatusCode(200);\n\t \n }",
"@Test\n\tpublic void testDeleteIncorrectParam() {\n\n\t\tResponse response = piiController.delete(null);\n\t\t\n\t\tverifyZeroInteractions(mPiiService);\n\t\tverifyZeroInteractions(mPuidDao);\n\t\tassertEquals(400, response.getStatus());\n\t\t\n\t\tObject entity = response.getEntity();\n\t\tassertNull(entity);\n\t}",
"public void reset() {\n this.statusCode = 0;\n this.body = \"\";\n this.headers = null;\n }",
"@DELETE\n\tResponse delete();",
"@Test\n\tpublic void testIncorrectStatusCode() {\n\t\tgiven().\n\t\tget(Endpoint.GET_COUNTRY_invalid).then().statusCode(404);\n\t}",
"private void apiVersion(RoutingContext context) {\n context.response()\n .end(new JsonObject().put(\"version\", \"v1\").encodePrettily());\n }",
"@Override\n protected Response doDelete(Long id) {\n return null;\n }",
"@Override\n protected Response doDelete(Long id) {\n return null;\n }",
"private void discoverDelete(RoutingContext rctx) {\n rctx.response().end(new ObjectBuilder().build());\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder setVar204(java.lang.Integer value) {\n validate(fields()[205], value);\n this.var204 = value;\n fieldSetFlags()[205] = true;\n return this;\n }",
"@Test\n public void deletePerson_ShouldReturnUpdatedRecordAnd_NO_CONTENT() {\n ResponseEntity<Person> response = personController.deletePerson(3L);\n\n //assert\n Mockito.verify(personService).deletePerson(3L);\n assertEquals(null, response.getBody());\n assertEquals(HttpStatus.NO_CONTENT, response.getStatusCode());\n }",
"public ServiceResponse<Void> delete204Succeeded() throws CloudException, IOException, InterruptedException {\n Response<ResponseBody> result = service.delete204Succeeded(this.client.acceptLanguage(), this.client.userAgent()).execute();\n return client.getAzureClient().getPostOrDeleteResult(result, new TypeToken<Void>() { }.getType());\n }",
"public com.dj.model.avro.LargeObjectAvro.Builder clearVar204() {\n var204 = null;\n fieldSetFlags()[205] = false;\n return this;\n }",
"@Test\n\tpublic void testVersion() {\n\t\tassertEquals(\"HTTP/1.0\", myReply.getVersion());\n\t}",
"public BadRequestResponse()\n {\n super();\n codeSubfield = 0;\n payload = \"Bad Request\";\n }",
"@Test\n void testGivenFaultyRequestWithNoQueryString_thenSuccess() throws Exception {\n URL u = new URL(\"http://localhost:8080/sentry-servlet/fault\");\n HttpURLConnection conn = (HttpURLConnection)u.openConnection();\n int rc = conn.getResponseCode();\n assertThat(rc)\n .isEqualTo(200);\n }",
"@Test\n\tpublic void verifyStatusCode() {\n\t\tAssert.assertEquals(response.getStatusCode(), 200);\n\t}",
"@Test(description = \"TC004 - Validate returned response body is not empty\")\n public void validateResponseIsNotEmpty() {\n\tRestActions apiObject = new RestActions(\"https://alexwohlbruck.github.io/cat-facts\");\n\tResponse catFact = apiObject.performRequest(RequestType.GET, 200, \"/\");\n\tAssertions.assertNull(RestActions.getResponseBody(catFact), AssertionType.NEGATIVE, \"Will pass only if Response body is not empty!\");\n }",
"@Test\r\n\tpublic void testResponseCode(){\r\n\t\t\r\n\t\tint code = get(api1).getStatusCode();\r\n\t\tSystem.out.println(\"Code: \"+code);\r\n\t\tAssert.assertEquals(code, 200);\r\n\t}",
"protected StatusLine createStatusLine(ProtocolVersion ver, int status, String reason) {\n/* 422 */ return new BasicStatusLine(ver, status, reason);\n/* */ }",
"public abstract Response delete(Request request, Response response);",
"@Test\n public void testHttp400EmptyProtocolBody() {\n final NioEventLoopGroup bootGroup = new NioEventLoopGroup();\n final NioEventLoopGroup processGroup = new NioEventLoopGroup();\n final ByteBuf content = Unpooled.buffer(0);\n\n final ChannelFuture serverChannel = runServer(bootGroup, processGroup);\n runClient(HttpMethod.POST, content, uri);\n\n serverChannel.awaitUninterruptibly();\n bootGroup.shutdownGracefully();\n processGroup.shutdownGracefully();\n\n final String expected = \"{\\\"action\\\":\\\"error\\\",\\\"content\\\":\\\"Ping Pong server can not parse protocol of the request\\\",\\\"status\\\":\\\"400 Bad Request\\\"}\";\n final String actual = buffer.toString();\n logger.info(\"Expected result: {}\", expected);\n logger.info(\"Actual result: {}\", actual);\n Assert.assertEquals(\"Hadn't processed the request: 400 Bad Request\", expected, actual);\n }",
"public void get(HttpRequest request, HttpResponse response) {\n\t\tresponse.setStatus(HttpStatus.SERVER_ERROR_NOT_IMPLEMENTED);\n\t\tresponse.write(\" \");\n\t}",
"private void badRequest(Exception exception, Request req, Response res) {\n res.status(HttpStatus.SC_BAD_REQUEST);\n res.body(\"\");\n }",
"@GET\n @Path(\"image\")\n @Produces(MediaType.TEXT_PLAIN)\n public Response voidImage() {\n return Response.status(Response.Status.NOT_FOUND).build();\n }",
"@Test\n public void testFDoTest14973() throws Exception {\n final HttpURLConnection hc = createConnection(\"/ws/dal/Product/1000004\", \"DELETE\");\n hc.connect();\n assertEquals(500, hc.getResponseCode());\n }",
"@Test\n public void testHttp200AuthorRequest() {\n final NioEventLoopGroup bootGroup = new NioEventLoopGroup(1);\n final NioEventLoopGroup processGroup = new NioEventLoopGroup();\n final String json = \"{\\\"action\\\":\\\"ping\\\"}\";\n final ByteBuf content = Unpooled.copiedBuffer(json, StandardCharsets.UTF_8);\n\n final ChannelFuture serverChannel = runServer(bootGroup, processGroup);\n runClient(HttpMethod.POST, content, \"/author\");\n\n serverChannel.awaitUninterruptibly();\n bootGroup.shutdownGracefully();\n processGroup.shutdownGracefully();\n\n final String expected = \"{\\\"action\\\":\\\"author\\\",\\\"content\\\":\\\"Dmitriy Shishmakov, https://github.com/DmitriySh\\\",\\\"status\\\":\\\"200 OK\\\"}\";\n final String actual = buffer.toString();\n logger.info(\"Expected result: {}\", expected);\n logger.info(\"Actual result: {}\", actual);\n Assert.assertEquals(\"Haven't received info about author\", expected, actual);\n }",
"@Test\n public void testIfModifiedSinceHeaderInTheFuture() throws Exception\n {\n HttpAction<HttpGet> second = get(new DefaultHttpClient(), \"/test.txt\", ifModifiedSinceHeaderNowPlusHours(1));\n assertEquals(304, second.getResponse().getStatusLine().getStatusCode());\n }",
"protected int getRequestContentLength() {\n return 0;\n }",
"@Override\n\tprotected Response doDelete(Long id) {\n\t\treturn null;\n\t}",
"private static void sendNotModified(HttpResponse response) throws ForceCloseConnection {\n\t\tresponse.setStatus(HttpResponseStatus.NOT_MODIFIED);\n\t\tsetDateHeader(response);\n\n\t\t// Close the connection as soon as the error message is sent.\n\t\tthrow new ForceCloseConnection();\n\t}",
"@Test\n @OperateOnDeployment(\"server\")\n public void shouldFailToGetResourceWhenIncorrectScopeForEndpoint() {\n given().header(\"Authorization\", \"Bearer access_token\").expect().statusCode(403).when().delete(\n getBaseTestUrl() + \"/1/category/delete/json/1\");\n }",
"@Test\n public void testDeleteCartsIdAction() throws ClientException, IOException, ProcessingException {\n CloudResponse response = this.actions.deleteCartsIdAction(\"{id}\", \"{customerId}\");\n List<Integer> expectedResults = Arrays.asList(200, 400, 403, 404);\n LOG.info(\"Got status {}\", response.getStatusLine());\n Assert.assertTrue(expectedResults.contains(response.getStatusLine().getStatusCode()));\n\n if(response.getStatusLine().getStatusCode() == 200) {\n this.actions.checkResponseJSONSchema(\"#/definitions/Cart\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 400) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 403) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n if(response.getStatusLine().getStatusCode() == 404) {\n this.actions.checkResponseJSONSchema(\"#/definitions/ErrorResponse\", response.getContent());\n }\n \n }",
"@Override\n\tpublic boolean isResponseExpected() {\n\t\treturn false;\n\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"@Test(priority=1)\r\n\tpublic void validateStatusCode()\r\n\t{\r\n\t\tgiven()\r\n\t\t.get(\"https://reqres.in/api/users/2\")\r\n\t\t.then()\r\n\t\t.statusCode(200);\r\n\t\t\r\n\t}",
"private void badMove(HttpServletResponse response) throws IOException {\r\n // Handle a bad request\r\n response.setStatus(400);\r\n try (PrintWriter out = response.getWriter()) {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Tic Tac Toe</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>400 Bad Request</h1>\");\r\n out.println(\"</html>\"); \r\n }\r\n }",
"@Test\n void getRequest_noParams_SuccessfullyReturns204Code() throws Exception {\n when(autosService.getAutos()).thenReturn(new AutosList());\n\n mockMvc.perform(get(\"/api/autos\"))\n .andDo(print())\n .andExpect(status().isNoContent());\n }"
] | [
"0.7724344",
"0.5819433",
"0.581816",
"0.5816096",
"0.5749596",
"0.5712729",
"0.57057947",
"0.5703663",
"0.55832225",
"0.5565878",
"0.5559082",
"0.5535366",
"0.55129606",
"0.5470185",
"0.5430394",
"0.5424576",
"0.5417043",
"0.5390752",
"0.5389587",
"0.5379315",
"0.53706676",
"0.53510857",
"0.53426516",
"0.5334267",
"0.53303015",
"0.52965635",
"0.52771276",
"0.52735686",
"0.52735686",
"0.5267904",
"0.5267356",
"0.52663815",
"0.5227183",
"0.5217812",
"0.52170837",
"0.5208243",
"0.5199772",
"0.5195882",
"0.518937",
"0.51886725",
"0.51858175",
"0.5179861",
"0.51788837",
"0.5173638",
"0.5173638",
"0.51657563",
"0.5161153",
"0.51451343",
"0.5142673",
"0.5141779",
"0.514097",
"0.5138134",
"0.513768",
"0.51274323",
"0.51265395",
"0.51201147",
"0.5119633",
"0.5114397",
"0.5106167",
"0.50876683",
"0.50840163",
"0.508393",
"0.50814664",
"0.5078371",
"0.5078367",
"0.50765",
"0.50725347",
"0.5069302",
"0.50672096",
"0.50608295",
"0.50608295",
"0.50467056",
"0.5020675",
"0.50189084",
"0.50183046",
"0.5014244",
"0.50105673",
"0.50049144",
"0.5002586",
"0.50000745",
"0.5000032",
"0.4993773",
"0.4991947",
"0.4990007",
"0.4985388",
"0.49850565",
"0.49849454",
"0.49839094",
"0.49794796",
"0.49790093",
"0.49781188",
"0.49726197",
"0.49660474",
"0.49605542",
"0.4959399",
"0.4946843",
"0.49407956",
"0.4936948",
"0.49368832",
"0.49363762",
"0.49358475"
] | 0.0 | -1 |
/ 208: / 209: | public boolean isIndicadorNuevo()
/* 210: */ {
/* 211:218 */ return this.indicadorNuevo;
/* 212: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void method_4270() {}",
"public void mo21786K() {\n }",
"public void mo21794S() {\n }",
"public void mo21877s() {\n }",
"public void mo21782G() {\n }",
"private void kk12() {\n\n\t}",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void mo12628c() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21783H() {\n }",
"public void mo21789N() {\n }",
"public void mo21779D() {\n }",
"private void m50366E() {\n }",
"public void mo21880v() {\n }",
"public void mo21780E() {\n }",
"public void mo21788M() {\n }",
"public void mo21793R() {\n }",
"public int method_209() {\r\n return 0;\r\n }",
"public void mo21785J() {\n }",
"public void mo21879u() {\n }",
"public void mo21795T() {\n }",
"public void mo21787L() {\n }",
"public void mo3749d() {\n }",
"public void mo38117a() {\n }",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"private void m50367F() {\n }",
"public int arn() {\n return 383;\n }",
"public void mo21791P() {\n }",
"public void mo21784I() {\n }",
"public void func_70295_k_() {}",
"public void mo21878t() {\n }",
"protected void method_4160() {\r\n String[] var10000 = class_752.method_4253();\r\n ++this.field_3416;\r\n String[] var1 = var10000;\r\n int var7 = this.field_3416;\r\n if(var1 != null) {\r\n label96: {\r\n if(this.field_3416 >= 180) {\r\n var7 = this.field_3416;\r\n if(var1 == null) {\r\n break label96;\r\n }\r\n\r\n if(this.field_3416 <= 200) {\r\n float var2 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n float var3 = (this.field_3028.nextFloat() - 0.5F) * 4.0F;\r\n float var4 = (this.field_3028.nextFloat() - 0.5F) * 8.0F;\r\n String[] var10001 = field_3418;\r\n this.field_2990.method_2087(\"hugeexplosion\", this.field_2994 + (double)var2, this.field_2995 + 2.0D + (double)var3, this.field_2996 + (double)var4, 0.0D, 0.0D, 0.0D);\r\n }\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n }\r\n\r\n int var5;\r\n int var6;\r\n class_715 var9;\r\n ahb var10;\r\n label101: {\r\n short var8;\r\n label102: {\r\n if(var1 != null) {\r\n label85: {\r\n if(var7 == 0) {\r\n var7 = this.field_3416;\r\n var8 = 150;\r\n if(var1 != null) {\r\n label80: {\r\n if(this.field_3416 > 150) {\r\n var7 = this.field_3416 % 5;\r\n if(var1 == null) {\r\n break label80;\r\n }\r\n\r\n if(var7 == 0) {\r\n var5 = 1000;\r\n\r\n while(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break label85;\r\n }\r\n\r\n if(var1 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n var8 = 1;\r\n }\r\n\r\n if(var1 == null) {\r\n break label102;\r\n }\r\n\r\n if(var7 == var8) {\r\n this.field_2990.method_2209(1018, (int)this.field_2994, (int)this.field_2995, (int)this.field_2996, 0);\r\n }\r\n }\r\n\r\n this.method_3864(0.0D, 0.10000000149011612D, 0.0D);\r\n this.field_3330 = this.field_3000 += 20.0F;\r\n }\r\n\r\n var7 = this.field_3416;\r\n }\r\n\r\n if(var1 == null) {\r\n break label101;\r\n }\r\n\r\n var8 = 200;\r\n }\r\n\r\n if(var7 != var8) {\r\n return;\r\n }\r\n\r\n var7 = this.field_2990.field_1832;\r\n }\r\n\r\n if(var1 != null) {\r\n if(var7 != 0) {\r\n return;\r\n }\r\n\r\n var7 = 2000;\r\n }\r\n\r\n var5 = var7;\r\n\r\n while(true) {\r\n if(var5 > 0) {\r\n var6 = class_715.method_4090(var5);\r\n var5 -= var6;\r\n var10 = this.field_2990;\r\n var9 = new class_715;\r\n var9.method_4087(this.field_2990, this.field_2994, this.field_2995, this.field_2996, var6);\r\n var10.method_2089(var9);\r\n if(var1 == null) {\r\n break;\r\n }\r\n\r\n if(var1 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_4325(class_1715.method_9561(this.field_2994), class_1715.method_9561(this.field_2996));\r\n break;\r\n }\r\n\r\n this.method_3851();\r\n }",
"public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }",
"public void mo12930a() {\n }",
"public void mo23813b() {\n }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"public void mo3376r() {\n }",
"protected void method_4157() {\r\n super.method_4157();\r\n this.method_4211(class_1840.field_9390).method_390(200.0D);\r\n }",
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"C2841w mo7234g();",
"public void skystonePos4() {\n }",
"public void mo21792Q() {\n }",
"public void mo9233aH() {\n }",
"public void mo9848a() {\n }",
"public void mo21825b() {\n }",
"void mo57278c();",
"void mo33732Px();",
"public void mo56167c() {\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public void mo97908d() {\n }",
"public void method_206() {}",
"public void mo21781F() {\n }",
"public void method_191() {}",
"public void mo115190b() {\n }",
"public static void listing5_16() {\n }",
"public void skystonePos6() {\n }",
"void mo304a(C0366h c0366h);",
"public void mo2740a() {\n }",
"public void mo2470d() {\n }",
"public void mo55254a() {\n }",
"public void mo115188a() {\n }",
"C1458cs mo7613iS();",
"C7904c mo24084a();",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public int method_2031() {\r\n return this.field_1790;\r\n }",
"void mo1943l();",
"public void mo4359a() {\n }",
"public void m23075a() {\n }",
"void mo21076g();",
"private void ncpStep(double height) {\n/* 56 */ double posX = mc.field_71439_g.field_70165_t;\n/* 57 */ double posZ = mc.field_71439_g.field_70161_v;\n/* 58 */ double y = mc.field_71439_g.field_70163_u;\n/* 59 */ if (height >= 1.1D) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 80 */ if (height < 1.6D) {\n/* */ double[] offset;\n/* 82 */ for (double off : offset = new double[] { 0.42D, 0.33D, 0.24D, 0.083D, -0.078D }) {\n/* 83 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y += off, posZ, false));\n/* */ }\n/* 85 */ } else if (height < 2.1D) {\n/* */ double[] heights;\n/* 87 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D }) {\n/* 88 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false));\n/* */ }\n/* */ } else {\n/* */ double[] heights;\n/* 92 */ for (double off : heights = new double[] { 0.425D, 0.821D, 0.699D, 0.599D, 1.022D, 1.372D, 1.652D, 1.869D, 2.019D, 1.907D })\n/* 93 */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + off, posZ, false)); \n/* */ } \n/* */ return;\n/* */ } \n/* */ double first = 0.42D;\n/* */ double d1 = 0.75D;\n/* */ if (height != 1.0D) {\n/* */ first *= height;\n/* */ d1 *= height;\n/* */ if (first > 0.425D)\n/* */ first = 0.425D; \n/* */ if (d1 > 0.78D)\n/* */ d1 = 0.78D; \n/* */ if (d1 < 0.49D)\n/* */ d1 = 0.49D; \n/* */ } \n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + first, posZ, false));\n/* */ if (y + d1 < y + height)\n/* */ mc.field_71439_g.field_71174_a.func_147297_a((Packet)new CPacketPlayer.Position(posX, y + d1, posZ, false)); \n/* */ }",
"public void method_192() {}",
"public static void listing5_14() {\n }",
"void mo3194r();",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"void mo1507n();",
"public void mo44053a() {\n }",
"public int method_6437() {\r\n return this.field_6227;\r\n }",
"public void mo21867i() {\n mo21877s();\n }",
"public int mo36g() {\n return 8;\n }",
"void mo12638c();",
"public abstract int mo8526p();",
"public int mo36g() {\n return 4;\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"void mo88524c();",
"public void mo6081a() {\n }",
"void mo21072c();",
"public void mo21800a() {\n }",
"public void mo2471e() {\n }",
"public void method_264(String var1, int var2, int var3, int var4, int var5) {\n this.drawString(var1, var2 - this.method_271(var1, var4), var3, var4, var5);\n }",
"public abstract Integer mo36210m();",
"protected float j()\r\n/* 67: */ {\r\n/* 68: 80 */ return 1.5F;\r\n/* 69: */ }",
"void mo21073d();",
"void mo57277b();"
] | [
"0.6070099",
"0.59103113",
"0.5909211",
"0.58932114",
"0.58269143",
"0.5806681",
"0.57706225",
"0.576613",
"0.57351",
"0.5721793",
"0.5712166",
"0.5693846",
"0.5665776",
"0.56454283",
"0.5633649",
"0.5624437",
"0.56058776",
"0.5598013",
"0.55846345",
"0.55844104",
"0.55822575",
"0.5567633",
"0.5559939",
"0.55537564",
"0.5549581",
"0.55466276",
"0.5544163",
"0.55441517",
"0.55407166",
"0.5524995",
"0.5510444",
"0.5488599",
"0.5480953",
"0.54804283",
"0.5467675",
"0.5464596",
"0.5448487",
"0.54438925",
"0.5443355",
"0.5437762",
"0.54374427",
"0.5434176",
"0.54313755",
"0.54132813",
"0.54092634",
"0.5391602",
"0.5390183",
"0.5385787",
"0.5382614",
"0.5380797",
"0.53788084",
"0.5373011",
"0.53650755",
"0.53517735",
"0.5347138",
"0.5342669",
"0.5341985",
"0.53383523",
"0.5335957",
"0.53315336",
"0.5330303",
"0.5327766",
"0.53199816",
"0.5316797",
"0.5316797",
"0.5316797",
"0.5316797",
"0.5316797",
"0.5316797",
"0.5316797",
"0.53135043",
"0.5308582",
"0.5302437",
"0.5299991",
"0.5298497",
"0.52954286",
"0.5285353",
"0.52835476",
"0.52830815",
"0.5282175",
"0.5281192",
"0.52783585",
"0.5278312",
"0.527802",
"0.52751446",
"0.52734894",
"0.5272106",
"0.52712435",
"0.52711",
"0.52690625",
"0.5266824",
"0.5264654",
"0.5261387",
"0.52562064",
"0.52526385",
"0.5252216",
"0.524642",
"0.52451617",
"0.5243864",
"0.5243138",
"0.52429813"
] | 0.0 | -1 |
/ 213: / 214: | public void setIndicadorNuevo(boolean indicadorNuevo)
/* 215: */ {
/* 216:222 */ this.indicadorNuevo = indicadorNuevo;
/* 217: */ } | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int n_()\r\n/* 429: */ {\r\n/* 430:442 */ return this.a.length + 4;\r\n/* 431: */ }",
"public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }",
"public void method_4270() {}",
"public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }",
"private void m50366E() {\n }",
"public void mo21877s() {\n }",
"public void mo21794S() {\n }",
"public void mo21786K() {\n }",
"public int method_2436() {\r\n return 16;\r\n }",
"public void mo21782G() {\n }",
"public void mo21779D() {\n }",
"public void mo21783H() {\n }",
"public void mo21789N() {\n }",
"public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }",
"private void m50367F() {\n }",
"public void mo9233aH() {\n }",
"public void mo21788M() {\n }",
"public void mo3749d() {\n }",
"public void mo21787L() {\n }",
"dkj mo4367a(dkk dkk);",
"public int arn() {\n return 383;\n }",
"protected float m()\r\n/* 234: */ {\r\n/* 235:247 */ return 0.03F;\r\n/* 236: */ }",
"public int a(char paramChar)\r\n/* 484: */ {\r\n/* 485:481 */ if (paramChar == '§') {\r\n/* 486:482 */ return -1;\r\n/* 487: */ }\r\n/* 488:485 */ if (paramChar == ' ') {\r\n/* 489:486 */ return 4;\r\n/* 490: */ }\r\n/* 491:489 */ int i1 = \"\".indexOf(paramChar);\r\n/* 492:490 */ if ((paramChar > 0) && (i1 != -1) && (!this.k)) {\r\n/* 493:491 */ return this.d[i1];\r\n/* 494: */ }\r\n/* 495:495 */ if (this.e[paramChar] != 0)\r\n/* 496: */ {\r\n/* 497:496 */ int i2 = this.e[paramChar] >>> 4;\r\n/* 498:497 */ int i3 = this.e[paramChar] & 0xF;\r\n/* 499:499 */ if (i3 > 7)\r\n/* 500: */ {\r\n/* 501:500 */ i3 = 15;\r\n/* 502:501 */ i2 = 0;\r\n/* 503: */ }\r\n/* 504:503 */ i3++;\r\n/* 505: */ \r\n/* 506:505 */ return (i3 - i2) / 2 + 1;\r\n/* 507: */ }\r\n/* 508:508 */ return 0;\r\n/* 509: */ }",
"public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }",
"public int mo36g() {\n return 4;\n }",
"public int method_1143(int var1) {\r\n return this.height / 4 + 0 + (24 * var1 - 24) + this.field_987;\r\n }",
"public void mo23813b() {\n }",
"private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }",
"public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }",
"public void mo21879u() {\n }",
"public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }",
"C2841w mo7234g();",
"public void mo12628c() {\n }",
"private void kk12() {\n\n\t}",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void mo21878t() {\n }",
"public static int i()\r\n/* 25: */ {\r\n/* 26: 48 */ return 9;\r\n/* 27: */ }",
"public void mo21785J() {\n }",
"public void mo21780E() {\n }",
"public void mo21793R() {\n }",
"public void mo21792Q() {\n }",
"public void mo21791P() {\n }",
"public void mo12930a() {\n }",
"static int size_of_ani(String passed){\n\t\treturn 2;\n\t}",
"public void mo56167c() {\n }",
"public void mo21795T() {\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"public void mo97908d() {\n }",
"public void m23075a() {\n }",
"public int mo36g() {\n return 8;\n }",
"@Override\n protected long advanceH(final long k) {\n return 5 * k - 2;\n }",
"void mo33732Px();",
"C5727e mo33224a();",
"public int method_6437() {\r\n return this.field_6227;\r\n }",
"public void mo44053a() {\n }",
"public int mo36g() {\n return 2;\n }",
"private final java.lang.String m14284g() {\n /*\n r3 = this;\n b.h.b.a.b.b.ah r0 = r3.f8347b\n b.h.b.a.b.b.m r0 = r0.mo7065b()\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5339d\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x0056\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e\n if (r1 == 0) goto L_0x0056\n b.h.b.a.b.j.a.a.e r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2608e) r0\n b.h.b.a.b.e.a$c r0 = r0.mo9643H()\n b.h.b.a.b.g.i$c r0 = (p073b.p085h.p087b.p088a.p090b.p117g.C2383i.C2387c) r0\n b.h.b.a.b.g.i$f<b.h.b.a.b.e.a$c, java.lang.Integer> r1 = p073b.p085h.p087b.p088a.p090b.p112e.p114b.C2330b.f7137i\n java.lang.String r2 = \"JvmProtoBuf.classModuleName\"\n p073b.p079e.p081b.C1489j.m6969a(r1, r2)\n java.lang.Object r0 = p073b.p085h.p087b.p088a.p090b.p112e.p113a.C2288f.m11197a(r0, r1)\n java.lang.Integer r0 = (java.lang.Integer) r0\n if (r0 == 0) goto L_0x003e\n b.h.b.a.b.e.a.c r1 = r3.f8350e\n java.lang.Number r0 = (java.lang.Number) r0\n int r0 = r0.intValue()\n java.lang.String r0 = r1.mo8811a(r0)\n if (r0 == 0) goto L_0x003e\n goto L_0x0040\n L_0x003e:\n java.lang.String r0 = \"main\"\n L_0x0040:\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n java.lang.String r0 = p073b.p085h.p087b.p088a.p090b.p116f.C2361g.m11709a(r0)\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0056:\n b.h.b.a.b.b.ah r1 = r3.f8347b\n b.h.b.a.b.b.az r1 = r1.mo7077p()\n b.h.b.a.b.b.az r2 = p073b.p085h.p087b.p088a.p090b.p094b.C1710ay.f5336a\n boolean r1 = p073b.p079e.p081b.C1489j.m6971a(r1, r2)\n if (r1 == 0) goto L_0x00a0\n boolean r0 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p094b.C1680ab\n if (r0 == 0) goto L_0x00a0\n b.h.b.a.b.b.ah r0 = r3.f8347b\n if (r0 == 0) goto L_0x0098\n b.h.b.a.b.j.a.a.j r0 = (p073b.p085h.p087b.p088a.p090b.p127j.p128a.p129a.C2638j) r0\n b.h.b.a.b.j.a.a.f r0 = r0.mo9635N()\n boolean r1 = r0 instanceof p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i\n if (r1 == 0) goto L_0x00a0\n b.h.b.a.b.d.b.i r0 = (p073b.p085h.p087b.p088a.p090b.p100d.p110b.C2129i) r0\n b.h.b.a.b.i.d.b r1 = r0.mo8045e()\n if (r1 == 0) goto L_0x00a0\n java.lang.StringBuilder r1 = new java.lang.StringBuilder\n r1.<init>()\n java.lang.String r2 = \"$\"\n r1.append(r2)\n b.h.b.a.b.f.f r0 = r0.mo8042b()\n java.lang.String r0 = r0.mo9039a()\n r1.append(r0)\n java.lang.String r0 = r1.toString()\n return r0\n L_0x0098:\n b.u r0 = new b.u\n java.lang.String r1 = \"null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor\"\n r0.<init>(r1)\n throw r0\n L_0x00a0:\n java.lang.String r0 = \"\"\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: p073b.p085h.p087b.p088a.C3008g.C3011c.m14284g():java.lang.String\");\n }",
"public void mo21784I() {\n }",
"public abstract CharSequence mo2161g();",
"public int getMobCap()\r\n/* 24: */ {\r\n/* 25:41 */ return this.f;\r\n/* 26: */ }",
"static int getNumPatterns() { return 64; }",
"C7904c mo24084a();",
"public void mo3376r() {\n }",
"private void m81850n() {\n m81843b(m81844c(C6969H.m41409d(\"G738BEA12B634AE16F20F9277F0E4D1\")));\n }",
"C2451d mo3408a(C2457e c2457e);",
"public void mo38117a() {\n }",
"public void mo6944a() {\n }",
"public void mo2740a() {\n }",
"public int getLine()\n/* */ {\n/* 1312 */ return this.line;\n/* */ }",
"public void func_70295_k_() {}",
"public void mo55254a() {\n }",
"public abstract String mo13682d();",
"public void mo2471e() {\n }",
"public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }",
"public abstract long mo9229aD();",
"void mo57277b();",
"public void mo21825b() {\n }",
"public int func_70297_j_()\n/* */ {\n/* 71 */ return 64;\n/* */ }",
"public void mo21781F() {\n }",
"public void mo5248a() {\n }",
"private static String m21386a(int i) {\n StringBuilder sb = new StringBuilder();\n sb.append(i & 255);\n String str = \".\";\n sb.append(str);\n sb.append((i >> 8) & 255);\n sb.append(str);\n sb.append((i >> 16) & 255);\n sb.append(str);\n sb.append((i >> 24) & 255);\n return sb.toString();\n }",
"void mo1507n();",
"void mo34684de(int i, int i2);",
"C20259y mo54455t(int i);",
"void mo7445h(int i, int i2);",
"public void mo4683c() {\n mo4679a(3);\n }",
"public void mo97906c() {\n }",
"public void mo5365c(int i, int i2) {\n }",
"public void mo1405e() {\n }",
"public void mo9137b() {\n }",
"public void mo21800a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo5369d(int i, int i2) {\n }",
"int getUnknown13();",
"public abstract int mo9749n();"
] | [
"0.60815597",
"0.59355235",
"0.5891955",
"0.5862677",
"0.5730288",
"0.57225823",
"0.5661414",
"0.56546926",
"0.5628764",
"0.5617255",
"0.5615247",
"0.56130445",
"0.5600004",
"0.55690813",
"0.55671746",
"0.554174",
"0.5534147",
"0.55188906",
"0.5514317",
"0.5504219",
"0.549897",
"0.5473519",
"0.54734147",
"0.5454658",
"0.54507935",
"0.5449274",
"0.5440695",
"0.5437054",
"0.543515",
"0.54252946",
"0.5417945",
"0.54088193",
"0.5402983",
"0.5401583",
"0.5401012",
"0.53977466",
"0.5397369",
"0.5397042",
"0.53918755",
"0.5380472",
"0.5376809",
"0.5376493",
"0.535519",
"0.5344975",
"0.53370684",
"0.53321844",
"0.5328764",
"0.53227764",
"0.5315824",
"0.5308297",
"0.53049785",
"0.53030145",
"0.5302344",
"0.52906233",
"0.5286909",
"0.52779526",
"0.526438",
"0.5251974",
"0.5249859",
"0.5242315",
"0.5239262",
"0.5239049",
"0.5235007",
"0.52342445",
"0.52336246",
"0.52307",
"0.5229403",
"0.5214324",
"0.5212613",
"0.52079415",
"0.52005106",
"0.51948076",
"0.51934516",
"0.5192514",
"0.5189859",
"0.51870847",
"0.5183661",
"0.51814395",
"0.51808244",
"0.5179697",
"0.517933",
"0.51776165",
"0.51766986",
"0.5174445",
"0.5173773",
"0.51493937",
"0.5148787",
"0.5147449",
"0.5145427",
"0.51446635",
"0.5143803",
"0.5143286",
"0.5143286",
"0.5143286",
"0.5143286",
"0.5143286",
"0.5143286",
"0.5143286",
"0.51429963",
"0.5142776",
"0.51377845"
] | 0.0 | -1 |
number of Nodes in the subtree | private Node() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }",
"public int countNodes(){\r\n \treturn count(root);\r\n }",
"public int countNodes()\r\n {\r\n return countNodes(root);\r\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"public int countNodes()\n {\n return countNodes(root);\n }",
"int getNodeCount();",
"int getNodeCount();",
"public int numberOfNodes() {\n return numberOfNodes(root);\n }",
"int getNodesCount();",
"int getNodesCount();",
"@Override\n public int getNumberOfNodes() {\n int numNodes = 0;\n\n if (!isEmpty()) {\n numNodes = root.getNumberOfNodes();\n }\n\n return numNodes;\n }",
"public int numberOfNodes() {\r\n\t\tBinaryNode<AnyType> t = root;\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfNodes(root.left) + numberOfNodes(root.right) + 1;\r\n\t}",
"int nodeCount();",
"public int numNodes() {\r\n\t\treturn numNodes(root);\r\n\t}",
"public static int countNodes() {\n\t\treturn count_nodes;\n\t}",
"public int getNodeCount() {\n return dataTree.getNodeCount();\n }",
"public int getNodeCount() {\n resetAllTouched();\n return recurseNodeCount();\n }",
"public int getNumOfNodes() {\n\t\treturn getNumOfNodes(this);\n\t}",
"@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}",
"private int countNodes(Node n) {\n int count = 1;\n if (n==null) return 0;\n\n for (int i = 0; i < n.getSubtreesSize(); i++) {\n count = count + countNodes(n.getSubtree(i));\n }\n\n return count;\n }",
"public int my_node_count();",
"protected int numNodes() {\n\t\treturn nodes.size();\n\t}",
"public int getNodeCount() {\n return node_.size();\n }",
"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 }",
"public int size() {\n return tree.count();\n }",
"public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }",
"public int nodesCount() {\n return nodes.size();\n }",
"public int countNodes() {\n int leftCount = left == null ? 0 : left.countNodes();\n int rightCount = right == null ? 0 : right.countNodes();\n return 1 + leftCount + rightCount;\n }",
"public int nodeCount(){\r\n\t\treturn size;\r\n\t}",
"public int size(){\n if(root!=null){ // มี node ใน tree\n return size(root);\n }\n else{\n return 0; // tree เปล่า size 0\n }\n }",
"int totalNumberOfNodes();",
"public int nodeCount() {\n return this.root.nodeCount();\n }",
"public int getNodeCount() {\n return nodeCount;\n }",
"int NoOfNodes() {\r\n return noOfNodes;\r\n }",
"private int numNodes()\r\n\t{\r\n\t return nodeMap.size();\r\n\t}",
"private int numberOfNodes(Node root){\n if(root==null){\n return 0;\n }\n return 1 + numberOfNodes(root.getLeft()) + numberOfNodes(root.getRight());\n }",
"public int getNodeCount() {\n if (nodeBuilder_ == null) {\n return node_.size();\n } else {\n return nodeBuilder_.getCount();\n }\n }",
"@Override\r\n\tpublic int getNumberOfNodes() {\n\t\tint leftNumber=0;\r\n\t\tint rightNumber=0;\r\n\t\tif(left!=null){\r\n\t\t\tleftNumber=left.getNumberOfNodes();\r\n\t\t}\r\n\t\tif(right!=null)\r\n\t\t\trightNumber=right.getNumberOfNodes();\r\n\t\treturn leftNumber+rightNumber+1;\r\n\t}",
"public int getNumNodes() {\n\t\treturn nodes.size();\n\t}",
"public int nodeSize()\n{\n\treturn getNodes().size();\n}",
"private int nodeCount(BinaryNode<AnyType> t)\r\n\t{\r\n\t\tif(t==null)\r\n\t\t\treturn 0;\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn 1+nodeCount(t.left)+nodeCount(t.right);\r\n\t\t}\r\n\t}",
"public static int getNumberOfNodes() {\n return(numberOfNodes);\n\t }",
"private int countNodes(BTNode r)\r\n {\r\n if (r == null)\r\n return 0;\r\n else\r\n {\r\n int l = 1;\r\n l += countNodes(r.getLeft());\r\n l += countNodes(r.getRight());\r\n return l;\r\n }\r\n }",
"public int totalNumNodes () { throw new RuntimeException(); }",
"public int getNodesCount() {\n if (nodesBuilder_ == null) {\n return nodes_.size();\n } else {\n return nodesBuilder_.getCount();\n }\n }",
"@java.lang.Override\n public int getNodesCount() {\n return nodes_.size();\n }",
"@Override\n\tpublic long numNodes() {\n\t\treturn numNodes;\n\t}",
"public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }",
"public int numberOfFullNodes() {\r\n\t\tif (root == null) {\r\n\t\t\treturn 0;\r\n\t\t} // if\r\n\t\treturn numberOfFullNodes(root);\r\n\t}",
"public int size() {\r\n int count = 0;\r\n for (int i = 0; i < SIZE; i++) {\r\n if (tree[i] != null) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }",
"public int totalNodes(Node<T> n)\n\t{\n\t\tif (n == null) \n return 0; \n else \n { \n \t\n int lTotal = totalNodes(n.left); \n int rTotal = totalNodes(n.right); \n \n return (lTotal + rTotal + 1); \n \n \n \n } \n\t}",
"private int countNodes(BSTNode r) {\r\n \r\n // if the node is null, return 0\r\n if (r == null) {\r\n \r\n return 0;\r\n }\r\n \r\n // if node is NOT null, execute\r\n else {\r\n \r\n // initialize count to 1\r\n int countN = 1;\r\n \r\n // increment count for each child node\r\n countN += countNodes(r.getLeft());\r\n countN += countNodes(r.getRight());\r\n \r\n // return the count\r\n return countN;\r\n }\r\n }",
"public int size() {\n return root.getNumberOfTerminalsInSubTree();\n }",
"public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}",
"public int my_leaf_count();",
"int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}",
"public abstract int getNumChildren();",
"int getChildCount();",
"private int getVariablesNumberInTree() {\n\t\tList<Node> l = getFirstLevelSubnodes();\n\n\t\treturn l != null ? l.size() : 0;\n\t}",
"private static int countNodes(TreeNode node) {\n if (node == null) {\n // Tree is empty, so it contains no nodes.\n return 0;\n } else {\n // Add up the root node and the nodes in its two subtrees.\n int leftCount = countNodes(node.left);\n int rightCount = countNodes(node.right);\n return 1 + leftCount + rightCount;\n }\n }",
"private int Nodes(BTNode n){\r\n if (n == null)\r\n return 0;\r\n else {\r\n return ( (n.left == null? 0 : Nodes(n.left)) + (n.right == null? 0 : Nodes(n.right)) + 1 );\r\n }\r\n }",
"public int size() {\r\n\t\treturn size(rootNode);\r\n\t}",
"public int numNodes() {\n\t\treturn numNodes;\n\t}",
"public int size()\r\n\t {\r\n\t\t if(root == null)\r\n\t\t {\r\n\t\t\t return 0;\r\n\t\t }\r\n\t\t return root.getSubTreeSize();\r\n\t }",
"public int countNodes() {\n\t\t\n\t\tif(isEmpty()==false){\n\t\t\tint count =1;\n\t\t\tDoubleNode temp=head;\n\t\t\twhile(temp.getNext()!=null){\n\t\t\t\tcount++;\n\t\t\t\ttemp=temp.getNext();\n\t\t}\n\t\treturn count;\n\t\t}\n\t\telse{\n\t\t\treturn 0;\n\t\t}\n\t}",
"public int nodesInTree() \n { \n return nodesInTree(header.rightChild); \n }",
"public int size(){\n return size(root);\n }",
"public int getChildCount();",
"int numNodes() {\n\t\treturn num_nodes;\n\t}",
"public int size(){\n return nodes.size();\n }",
"private int countNodes(TreeNode root) {\n int count = 1;\n if (root.left != null) {\n count += countNodes(root.left);\n }\n if (root.right != null) {\n count += countNodes(root.right);\n }\n return count;\n }",
"public int size() {\n if (root == null) return 0;\n if (root.left == null && root.right == null) return 1;\n else {\n int treeSize = 0;\n treeSize = size(root, treeSize);\n return treeSize;\n }\n }",
"int size() \n { \n return size(root); \n }",
"int nbNode() {\n switch (type) {\n\n case EDGE:\n case PATH:\n case EVAL:\n if (edge.getEdgeVariable() == null) {\n return edge.nbNode();\n } else {\n return edge.nbNode() + 1;\n }\n\n case OPT_BIND:\n return size();\n }\n\n return 0;\n }",
"public int size() \n\t {\n\t\t return size(root);\n\t }",
"public int size()\n {\n return nodes.size();\n }",
"public static void main(String args[]) \r\n {\n BinaryTree tree = new BinaryTree();\r\n tree.root = new Node(20);\r\n tree.root.left = new Node(8);\r\n tree.root.right = new Node(22);\r\n tree.root.left.left = new Node(4);\r\n tree.root.left.right = new Node(12);\r\n tree.root.left.right.left = new Node(10);\r\n tree.root.left.right.right = new Node(14);\r\n \r\n System.out.println(\"No. of nodes in the tree is : \"+ nodeCount(tree.root));\r\n \r\n }",
"public int countLeaves(){\n return countLeaves(root);\n }",
"public int size() // return the number of nodes in the tree\r\n {\r\n return root.sizen;\r\n }",
"public int countNodes(Node N) {\n if(N != null){\n int left = countNodes(N.getLeft());\n int right = countNodes(N.getRight());\n return left+right+1;\n } else {\n return 0;\n }\n }",
"@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n\t\treturn size(root);\n\t}",
"public int size() \n {\n return size(root);\n }",
"public int getSize(){\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE NUMBER OF NODES IN THE TREE AND STORE THE VALUE IN CLASS VARIABLE \"size\"\n * RETURN THE \"size\" VALUE\n *\n * HINT: THE NMBER OF NODES CAN BE UPDATED IN THE \"size\" VARIABLE EVERY TIME A NODE IS INSERTED OR DELETED FROM THE TREE.\n */\n\n return size;\n }",
"int getNodeCount() {\n\t\treturn m_list_nodes.size();\n\t}",
"@Override\r\n\tpublic int size() {\r\n\t\treturn size(root);\r\n\t}",
"public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}",
"@Override\n public int nodeSize() {\n return this.nodes.size();\n }",
"public int size()\r\n { \r\n return numNodes;\r\n }",
"@Override\n\tpublic int size() {\n\t\treturn size(root);\n\t}",
"public int size() {\n return nodes.size();\n }",
"public int size() {\n\t\treturn nodes.size();\n\t}",
"public int numTrees () { throw new RuntimeException(); }",
"public int size() {\n if(root == null){\n return 0;\n }\n else{\n return 1 + size(root.lc) + size(root.rc);\n }\n }",
"public int numNodes() {\n return nodeVector.size();\n }",
"public int size()\n {\n return _root.size();\n }",
"@Override\n public int size() {\n return size(root); }",
"public final int size() {\n return nNodes;\n }",
"@Override\n public int nodeCount() {\n return graphNodes.size();\n }",
"public int size() {\n\t\treturn root.count();\n\t}"
] | [
"0.8550759",
"0.852612",
"0.83994687",
"0.83339375",
"0.83339375",
"0.82514197",
"0.82514197",
"0.8227664",
"0.813227",
"0.813227",
"0.81259996",
"0.81203395",
"0.8004685",
"0.8001473",
"0.79698986",
"0.7964003",
"0.7938558",
"0.79365855",
"0.79269856",
"0.7891468",
"0.7886568",
"0.788358",
"0.7863528",
"0.78438765",
"0.7836681",
"0.78212935",
"0.78141165",
"0.7785871",
"0.778429",
"0.77649665",
"0.7761045",
"0.7759064",
"0.7756915",
"0.7721361",
"0.76903206",
"0.76880467",
"0.768364",
"0.7677418",
"0.7660857",
"0.76307756",
"0.7627594",
"0.76266325",
"0.76247716",
"0.76031065",
"0.76016027",
"0.7598937",
"0.75895154",
"0.75832",
"0.75801224",
"0.75710756",
"0.75580424",
"0.7550789",
"0.75490093",
"0.75460863",
"0.75435424",
"0.75400287",
"0.753662",
"0.7528169",
"0.752505",
"0.7515724",
"0.7498849",
"0.7492273",
"0.74884284",
"0.748712",
"0.74709696",
"0.7470249",
"0.7464241",
"0.7463262",
"0.7460692",
"0.74569833",
"0.74302804",
"0.74233896",
"0.7422657",
"0.742203",
"0.7408793",
"0.74055713",
"0.7404652",
"0.74028265",
"0.74004954",
"0.7398878",
"0.73966575",
"0.73863995",
"0.73863995",
"0.7384672",
"0.73837394",
"0.73813075",
"0.73809713",
"0.73794526",
"0.73793674",
"0.7367011",
"0.736569",
"0.7355246",
"0.7353396",
"0.7349686",
"0.73424584",
"0.7325578",
"0.73154116",
"0.731135",
"0.7310879",
"0.7306158",
"0.7291919"
] | 0.0 | -1 |
initsialize old message lists | public void MakeOldMessageList(){
byte[] nb = new byte[]{1};
ArrayList<Integer> Ids = catalogue.getmasID();
ArrayList<byte[]> names = catalogue.getCNameMessages();
for(int b = 0; b < Ids.size(); b++){
OldMessagesIDs.add(0);
}
for(int b = 0; b < names.size(); b++){
OldMessages.add(nb);
}
for(int b = 0; b < Ids.size(); b++){
OldMessagesIDs.set(b,Ids.get(b));
}
for(int b = 0; b < names.size(); b++){
OldMessages.set(b,names.get(b));
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void initMsgs() {\n }",
"private void initMsgs() {\n }",
"public ListeMessage() {\n\t\tmessagesEntrant = new ArrayList<Message>();\n\t\tmessagesSortant = new ArrayList<Message>();\n\t\tmessages = new ArrayList<Message>();\n\t}",
"@SuppressWarnings({ \"rawtypes\" })\n @Override\n public void init(MsgList providedMsgList) {\n \n }",
"void resetMessages() {\n this.messageListExpected = new ArrayList<>();\n indexExpected = 0;\n }",
"public messageList()\n {\n\n }",
"public MessageManager() {\n this.messageList = new HashMap<>();\n }",
"private void setMessages(ArrayListLock messages) {\n this.messages = messages;\n }",
"private static void reloadMessages() {\n\t\tinitializeMessages(BUNDLE_NAME, Messages.class);\n\t}",
"private void initLisiData() {\n\t\tif (isKefu) {\n\t\t\tlist = dbinstance.queryOtherChatRecord(page * a + \"\", b + \"\");\n\t\t} else {\n\t\t\tlist = dbinstance.queryPrivateChatRecord(\n\t\t\t\t\tUserInfoBean.getUserInfo(ChatPersonActivity.this).getUid(),\n\t\t\t\t\ttargetId, page * a + \"\", b + \"\");\n\t\t}\n\n\t\tif (list.size() > 0) {\n\t\t\tfor (PrivateChatMessagesEntity entity : list) {\n\n\t\t\t\tmDataArrays.add(0, entity);\n\t\t\t}\n\t\t\t// Collections.reverse(mDataArrays);\n\t\t}\n\t\tmAdapter = new PrivateChatMessagesAdapter(this, mDataArrays);\n\t\tmListView.setAdapter(mAdapter);\n\t\tmListView.setSelection(mAdapter.getCount() - 1);\n\t}",
"public void loadMessages() {\n\t\tList<Message> messages = null;\n\t\ttry {\n\t\t\tmessages = msgHelper.getMessages();\n\t\t} catch (URLException e) {\n\t\t\tLog.d(\"MESSAGE\", \"Tried loading messages without a URL configured.\");\n\t\t\tcancelTask();\n\t\t}\n\t\tif (messages == null) {\n\t\t\treturn;\n\t\t}\n\t\tLog.d(\"MESSAGE\", \"Adding messages: \" + messages.size());\n\t\tif (messages.size() > 0) {\n\t\t\taddMessages(messages);\n\t\t}\n\t\t//pruneMessages(messageList, MAX_MESSAGES);\n\t\tupdateHandler.post(updateRunner);\n\t}",
"public List init(Map map) {\n\t\treturn apMessageDao.init(map);\r\n\t}",
"public void init() {\r\n\t\ttry {\r\n\t\t\tmessages = new ConcurrentLinkedDeque<>();\r\n\t\t\tout = sock.getOutputStream();\r\n\t\t\tin = sock.getInputStream();\t\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tstartMessageThread();\r\n\t}",
"public MatchMessages() {\n messages = new ArrayList<>();\n }",
"public LQT_Message_Queue() {\n\ta_list = new LinkedList<LQT_Message>();\n }",
"private void initMessageBoard() {\n RecyclerView msgBoard = findViewById(R.id.home_MsgBoard);\n msgBoard.setLayoutManager(new LinearLayoutManager(this));\n ArrayList<UserAccount> temp = new ArrayList<UserAccount>();\n if (user.getFriendMatches() == null) {\n user.setFriendMatches(temp);\n Log.e(\"HomeView\", \"friendMatches was null\");\n }\n MessageBoardAdapter msgBoardAdapter =\n new MessageBoardAdapter(this, user.getFriendMatches(), user);\n msgBoard.setAdapter(msgBoardAdapter);\n }",
"private void initList() {\n\n }",
"private void hookUpMessageListAdapter(){\n DeviceSingleton deviceSingleton = DeviceSingleton.getInstance();\n this.arrayAdapter = new ArrayAdapter<String>(\n this,\n android.R.layout.simple_list_item_1,\n deviceSingleton.getTempTextArray() );\n// messageList.setAdapter(arrayAdapter);\n\n\n //ADD MessageAdapter here to replace above stuff\n messageObjectList = deviceSingleton.getMessages();\n messageList = (ListView) findViewById(R.id.listView);\n messageObjectAdapter = new MessageAdapter(this, R.layout.single_row, messageObjectList);\n messageList.setAdapter(messageObjectAdapter);\n ///////////////////////////////////////////\n }",
"private MQTTopicManager() {\n for(Integer counter=1;counter!=Short.MAX_VALUE;counter++){\n messageIdList.add(counter);\n }\n }",
"@Override\n\t\tpublic void initList() {\n\t\t\tadapter = new MsgItemAdapter(context);\n\t\t\tArrayList<MsgBean> datas = getData();\n\t\t\tadapter.setData(datas);\n\t\t\tmListView.setAdapter(adapter);\n\t\t\tmListView.setViewMode(true, true);\n\t\t\tif(!DataValidate.checkDataValid(datas)){\n\t\t\t\tpageView.setDefaultPage().setVisibility(View.VISIBLE);\n\t\t\t}\n\t\t}",
"private void fillConversationList()\n\t{\n\t\tbasicConversations.add(\"how are you?\");\n\t\tbasicConversations.add(\"how do you do?\");\n\t\tbasicConversations.add(\"how are you feeling?\");\n\t\tbasicConversations.add(\"what is your current status?\");\n\t\tbasicConversations.add(\"how are you feeling?\");\n\t\tbasicConversations.add(\"are you feeling well?\");\n\t\tbasicConversations.add(\"how's life?\");\n\t\tbasicConversations.add(\"how's it going?\");\n\t\tbasicConversations.add(\"how art thou?\");\n\t}",
"protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}",
"public void initWithCachedInAppMessages() {\n }",
"public void initializeList() {\n listitems.clear();\n int medicationsSize = Medications.length;\n for(int i =0;i<medicationsSize;i++){\n Medication Med = new Medication(Medications[i]);\n listitems.add(Med);\n }\n\n }",
"private static void initializeMessages() {\n messages = ResourceBundle.getBundle(\"org.apache.ws.commons.tcpmon.tcpmon\");\n }",
"@Override\n\tprotected void initData() {\n\t\tSharedPreferences sharedPref=PreferenceManager.getDefaultSharedPreferences(this);\n\t\ttoken=sharedPref.getString(\"token\", null);\t\n\t\tmAdapter=new MessageListViewAdapter(this);\n\t\tdatas=new ArrayList<String>();\n\t\tfor(int i=0;i<5;i++)\n\t\t\tdatas.add(\"消息标题 \"+i);\n\t\tmAdapter.setDatas(datas);\n\t\tlvMsg.setAdapter(mAdapter);\n\t}",
"public void init() {\n l0 = new EmptyList();\n l1 = FListInteger.add(l0, new Integer(5));\n l2 = FListInteger.add(l1, new Integer(4));\n l3 = FListInteger.add(l2, new Integer(7));\n l4 = new EmptyList();\n l5 = FListInteger.add(l2, new Integer(7));\n }",
"public void init(){\n\t\tm_Folders = new ArrayList<Folder>();\n\t\n\t\tm_Folders.add(new Folder(\"Inbox\"));\n\t\tm_Folders.add(new Folder(\"Today\"));\n\t\tm_Folders.add(new Folder(\"Next\"));\n\t\tm_Folders.add(new Folder(\"Someday/Maybe\"));\t\t\n\t}",
"private void clearMsg() {\n msg_ = emptyProtobufList();\n }",
"private void clearMsg() {\n msg_ = emptyProtobufList();\n }",
"private void initLists() {\r\n listPanel.removeAll();\r\n\r\n memoryLists = new JList[this.memoryBlocks.size()];\r\n memoryUpdateState = new boolean[this.memoryBlocks.size()];\r\n this.lastChanged = new int[this.memoryBlocks.size()];\r\n\r\n for (int i = 0; i < this.memoryBlocks.size(); i++) {\r\n this.lastChanged[i] = -1;\r\n memoryLists[i] = this.addList((MemoryBlock) memoryBlocks.get(i));\r\n\r\n // redraw first time\r\n memoryUpdateState[i] = true;\r\n }\r\n\r\n this.updateLists();\r\n }",
"private void initPullToRefreshListView(PullToRefreshListView msgList,\n BaseAdapter adapter) {\n Log.d(\"info\", \"create list\");\n msgList.setMode(PullToRefreshBase.Mode.BOTH);\n msgList.setOnRefreshListener(new MyOnRefreshListener2(msgList));\n msgList.setAdapter(adapter);\n loadData();\n }",
"public void init() {\n Set<JobNotification> existing = projectBean.getJobConfiguration().getNotifications();\n this.notifications = new ArrayList<JobNotification>();\n if (existing != null) {\n for (JobNotification n : existing) {\n n.initTransient();\n notifications.add(n);\n }\n }\n }",
"private void initMessages() {\n\t\tthis.languagesMessagesMap = new HashMap<String, Map<String, String>>();\n\n\t\tBufferedReader reader = null;\n\t\treader = initMessagesReader(reader);\n\t\tif (reader == null) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tList<Map<String, String>> languagesMessagesList = readMessagesHeaderWithLanguages(reader);\n\n\t\t\tStringTokenizer st;\n\t\t\tString line;\n\n\t\t\t// load all messages\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t// skip empty line\n\t\t\t\tif (line.trim().length() == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tline = line.replace(\"\\\";\\\"\", \"\\\"\\t\\\"\").replaceFirst(\";$\", \"\");\n\t\t\t\tst = new StringTokenizer(line, \"\\t\");\n\n\t\t\t\t// read key\n\t\t\t\tString key = Tools.removeQuotas(st.nextToken());\n\t\t\t\tint index = 0;\n\n\t\t\t\t// read all messages for the key\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\tif (index == languagesMessagesList.size()) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tString message = Tools.removeQuotas(st.nextToken());\n\t\t\t\t\tlanguagesMessagesList.get(index).put(key, message);\n\t\t\t\t\tindex++;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tlog.error(\"Error reading messages file\", e);\n\t\t} finally {\n\t\t\tIOUtils.closeQuietly(reader);\n\t\t}\n\t}",
"public static void intialize_notice() {\r\n mNotice_info = new ArrayList<>();\r\n }",
"private void initialize() {\n chatLayoutManager = new LinearLayoutManager(this);\n chatView.setLayoutManager(chatLayoutManager);\n for (int i = 0; i < chatMessages.size() - 1; i++) {\n Message currentMsg = chatMessages.get(i);\n Message nextMsg = chatMessages.get(i + 1);\n nextMsg.showMessageTime = nextMsg.getTimestamp() - currentMsg.getTimestamp() >= Message.GROUP_TIME_THRESHOLD;\n nextMsg.showMessageSender = nextMsg.showMessageTime || !nextMsg.getSenderId().equals(currentMsg.getSenderId());\n }\n chatRoomAdapter = new ChatRoomAdapter(this, myId, chatMessages);\n chatView.setAdapter(chatRoomAdapter);\n\n //check if user self has been dropped from chat\n if (!chat.getAttendeeIdList().contains(myId)) {\n Toast.makeText(this, R.string.dropped_from_chat, Toast.LENGTH_LONG).show();\n }\n updateChatAttendeeIdList = new ArrayList<>();\n\n //set up listener for attendee list check boxes\n checkedChangeListener = new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton checkBox, boolean isChecked) {\n String id = (String) checkBox.getTag();\n if (isChecked) {\n if (!updateChatAttendeeIdList.contains(id))\n updateChatAttendeeIdList.add(id);\n } else {\n updateChatAttendeeIdList.remove(id);\n }\n }\n };\n\n //set up contact input and contact picker\n View contactPicker = findViewById(R.id.contact_picker);\n contactPicker.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n Intent intent = new Intent(ChatRoomActivity.this, ContactsActivity.class);\n intent.putExtra(ContactsActivity.EXTRA_MODE, ContactsActivity.MODE_PICKER);\n startActivityForResult(intent, EventDetailsActivity.REQUEST_CONTACT_PICKER);\n }\n });\n\n //\n final LinearLayout messagesLayout = (LinearLayout) findViewById(R.id.all_messages_linearlayout);\n if (messagesLayout != null) {\n messagesLayout.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {\n @Override\n public void onGlobalLayout() {\n messagesLayout.getViewTreeObserver().removeOnGlobalLayoutListener(this);\n\n int size = chatMessages.size();\n if (chatLayoutManager.findLastCompletelyVisibleItemPosition() < size-1) {\n chatLayoutManager.scrollToPosition(size - 1);\n }\n }\n });\n }\n\n conversationManager.addBroadcastListner(this);\n }",
"private void updateNewsMessages() {\n getNewsMessages().clear();\n getNewsMessages().addAll(getNewsMap().values());\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 }",
"private void initializeLists() {\n this.sensorsPm10 = new ArrayList<>();\n this.sensorsTempHumid = new ArrayList<>();\n }",
"public static void reloadMessages() {\n\t\tNLS.initializeMessages(BUNDLE_NAME, Messages.class);\n\t}",
"public void initMessagesIfNeeded() {\n\t\tif (this.i18nFile.lastModified() != this.lastModified) {\n\t\t\tinitMessages();\n\t\t\tthis.lastModified = this.i18nFile.lastModified();\n\t\t}\n\t}",
"private void initEventList(){\r\n\t\t/*\r\n\t\t * we save a valid event list in internal storage so we can load them in\r\n\t\t * our main activity. So we make sure there is either a valid one alreay in storage\r\n\t\t * or we get a fresh one from our server and save it in storage.\r\n\t\t */\r\n\t\t\r\n\t\t// first try to get an existing eventlist from storage\r\n\t\tJSONObject eventList = FileUtils.readEventListFromStorage(this);\r\n\t\t\r\n\t\tif(eventList != null) {\r\n\t\t\tif(eventListIsValid(eventList)){\r\n\t\t\t\tstartMuseek();\r\n\t\t\t} else {\r\n\t\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tServerConnector.getEventListFromServer(mServerListener, mLocation);\r\n\t\t}\r\n\t\t\r\n\t}",
"void setupExternalMessages();",
"public messages() {\n }",
"private Messages() {\n\t}",
"public void setMessageList(List<Object> message)\r\n\t{\r\n\t\tthis.messageList = message;\r\n\t}",
"private void initializeNextItem() {\n while (!messagesToReturn.hasNext() && dbCursor.hasNext()) {\n messagesToReturn = storageStrategy.extractEventMessages(dbCursor.next(), actualAggregateIdentifier,\n eventSerializer, upcasterChain).iterator();\n }\n next = messagesToReturn.hasNext() ? messagesToReturn.next() : null;\n }",
"@Override\n\tpublic void setInitialMessage(String message) {\n\t\tlinkedList.setToString(message);\n\t\tcurMessage = linkedList.toString();\n\t}",
"public void init() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\tpageLists.add(new Page(i));\n\t\t}\n\t}",
"void initListRemainingId();",
"public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}",
"public void fillList(ADSBMessage message) {\n boolean found = false;\n for (int i = 0; i < ActiveAircraftList.size(); i++) {\n if (ActiveAircraftList.elementAt(i).getICAO().equals(message.getIcao())) {\n ActiveAircraftList.elementAt(i).updateMessage(message);\n found = true;\n }\n }\n\n if (!found) {\n ActiveAircraftList.add(0,new Aircraft(message));\n }\n\n String myClass = message.getClass().toString();\n // Append the Message to the correct List, append to the top.\n switch (myClass) {\n case \"class messer.ADSBAirbornePositionMessage\":\n\n PositionMassageList.add(0,(ADSBAirbornePositionMessage) message);\n break;\n case \"class messer.ADSBAirborneVelocityMessage\":\n VelocityMessageList.add(0,(ADSBAirborneVelocityMessage) message);\n break;\n\n case \"class messer.ADSBAircraftIdentMessage\":\n IdentificationMessageList.add(0,(ADSBAircraftIdentMessage) message);\n break;\n\n case\"class messer.ADSBMessage\":\n // Branch for all other Message types, this branch should catch all \"other\" messages\n break;\n\n default:\n // this branch should NEVER be reached\n JOptionPane.showMessageDialog(null, \"Ich bin der Defaultzweig, und ich will niemals was tun! Also tu du was!\", \"Hilfe!\", JOptionPane.OK_CANCEL_OPTION);\n }\n\n\n // go through the ActiveAircraftList and search for inactive Aircrafts\n ArrayList<Integer> toDelete = new ArrayList<>();\n\n for (int i = 0; i < ActiveAircraftList.size(); i++) {\n if (!ActiveAircraftList.elementAt(i).isActive())\n toDelete.add(i);\n }\n\n if (toDelete.size() > 0) {\n for (int i = ActiveAircraftList.size(); i > 0; i--) {\n ActiveAircraftList.remove(i);\n\n }\n }\n }",
"protected void init() {\n\n List<ApplicationEntry> result;\n //we want to exclude duplicate apps by using ApplicationEntry#hashCode() and we don't care about sorting\n Set<ApplicationEntry> setOfItems = new HashSet<>();\n\n //we have a hacky hashcode implementation for ApplicationEntry\n //so that ApplicationEntry for the same app is only added ONCE.\n // some ApplicationEntries have the same app, but different action, so we want to avoid duplicates.\n // that is implementation specific - you may solve the problem of duplicate apps the other way.\n //so just notice this: mail sharing actions are added first.\n setOfItems.addAll(mailSharingActions.getMailActions());\n setOfItems.addAll(messengerSharingActions.getMessengerActions());\n\n\n result = new ArrayList<>(setOfItems);\n adapter.setItems(result);\n }",
"public void initialize() {\n\n list.add(user1);\n list.add(user2);\n list.add(user3);\n }",
"public Person() {\n\t\tmessagesReceived = new ArrayList<Message>();\n\t\tmessagesSent = new ArrayList<Message>();\n\t}",
"private void loadConversationList()\n\t{\n\t\tParseQuery<ParseObject> q = ParseQuery.getQuery(discussionTableName);\n\t\tif (messagesList.size() != 0)\n\t\t{\n//\t\t\t// load all messages...\n//\t\t\tArrayList<String> al = new ArrayList<String>();\n//\t\t\tal.add(discussionTopic);\n//\t\t\tal.add(MainActivity.user.getParseID());\n//\t\t\tq.whereContainedIn(\"sender\", al);\n//\t\t}\n//\t\telse {\n\t\t\t// load only newly received message..\n\t\t\tif (lastMsgDate != null)\n\t\t\t\t// Load only new messages, that weren't send by me\n\t\t\t\tq.whereGreaterThan(Const.COL_MESSAGE_CREATED_AT, lastMsgDate);\n\t\t\t\tq.whereNotEqualTo(Const.COL_MESSAGE_SENDER_ID, MainActivity.user.getParseID());\n\t\t}\n\t\tq.orderByDescending(Const.COL_MESSAGE_CREATED_AT);\n\t\tq.setLimit(100);\n\t\tq.findInBackground(new FindCallback<ParseObject>() {\n\n\t\t\t@Override\n\t\t\tpublic void done(List<ParseObject> li, ParseException e) {\n\t\t\t\tif (li != null && li.size() > 0) {\n\t\t\t\t\tfor (int i = li.size() - 1; i >= 0; i--) {\n\t\t\t\t\t\tParseObject po = li.get(i);\n\n\t\t\t\t\t\tMessage message = new Message(po.getString(\n\t\t\t\t\t\t\t\tConst.COL_MESSAGE_CONTENT),\n\t\t\t\t\t\t\t\tpo.getCreatedAt(),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_ID),\n\t\t\t\t\t\t\t\tpo.getString(Const.COL_MESSAGE_SENDER_NAME));\n\n\t\t\t\t\t\tmessage.setStatus(MessageStatus.STATUS_SENT);\n\t\t\t\t\t\tmessagesList.add(message);\n\n\t\t\t\t\t\tif (lastMsgDate == null || lastMsgDate.before(message.getDate())) {\n\t\t\t\t\t\t\tlastMsgDate = message.getDate();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tchatAdapter.notifyDataSetChanged();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\thandler.postDelayed(new Runnable() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tif (isRunning)\n\t\t\t\t\t\t\tloadConversationList();\n\t\t\t\t\t}\n\t\t\t\t}, 1000);\n\t\t\t}\n\t\t});\n\n\t}",
"protected void clearMessages(){\n\t\twMessages.clear();\n\t}",
"public void setMessages(ArrayList<Message> messages) {\n\t\t\n\t\t//Check messages is not null\n\t\tif (messages == null) { System.out.println(\"could not set messages, null\"); return; } \n\t\t\n\t\t//Set messages in network\n\t\tthis.messages = messages;\n\t\t\n\t\t//return\n\t\treturn;\n\t\t\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public void createList() {\r\n items = new int[MAX_LIST];\r\n NumItems = 0;\r\n }",
"public void initBMessageReceipts(){\n List<BUser> readers;\n readers = getBThreadUsers();\n\n // Do not init for public threads.\n if(this.getThread().getType() == com.braunster.chatsdk.dao.BThread.Type.Public\n || this.getThread().getType() == com.braunster.chatsdk.dao.BThread.Type.PublicPrivate) return;\n\n // If no readers, why should there be receipts?\n if (readers.isEmpty()){ return; }\n\n // add all users in the chat other than yourself\n for (BUser reader : readers) {\n if (getBUserSender().equals(reader)) continue;\n createUserReadReceipt(reader, none);\n }\n this.update();\n }",
"private ManualMessage() {\n initFields();\n }",
"public void initialize()\r\n {\n \t\tSystem.out.println(\"*** Initializing asserted list ...\");\r\n \t\treload();\r\n \t\tSystem.out.println(\"*** ... List loaded\");\r\n }",
"private void init(Bundle savedInstanceState) {\n messageManager = new MessageManager();\n }",
"private void initList() {\n long now = System.nanoTime();\n loadConfig();\n SlogEx.d(TAG, \"load config use:\" + (System.nanoTime() - now));\n }",
"@Override\n\tpublic void onMessageReceived(List<EMMessage> messages) {\n\t\tsuper.onMessageReceived(messages);\n\t\tconversationListFragment = new ConversationListFragment();\n\t\tconversationListFragment.refresh();\n\t}",
"private void afficher_les_messages() {\n List<Message> liste_message = ticket_courant.getMessage();\n String texte = \"\";\n for(Message mess: liste_message){\n texte += mess.getExpediteur()+ \" : \"+mess.getTexte()+\"\\n\";\n }\n aff_message.setText(texte);\n /*String[] tab_messages_brut = {\"\"};\n int incr = 0;\n for (Message message : liste_message) {\n tab_messages_brut[incr] = message.getTexte();\n incr++;\n }\n /*JList<String> Liste_messages = new JList<>(tab_messages_brut);\n Conteneur_liste.removeAll();\n Conteneur_liste.add(Liste_messages);\n Liste_messages.setVisible(true);\n Conteneur_liste.updateUI();*/\n }",
"public synchronized void resetBMessageReceiptList() {\n bMessageReceiptList = null;\n }",
"public void updateMessageList(Message[] messages) {\r\n\t\tif (!SwingUtilities.isEventDispatchThread()) {\r\n\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tlistMessages.setListData(messages);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\tSystem.out.println(\"UI: Messages updated\");\r\n\t}",
"public static void initializeClientList() {\r\n\t\tClient newClient1 = new Client(1, \"Bob Jones\", \"Brokerage\");\r\n\t\tclientList.add(newClient1);\r\n\t\t\r\n\t\tClient newClient2 = new Client(2, \"Sarah Davis\", \"Retirement\");\r\n\t\tclientList.add(newClient2);\r\n\t\t\r\n\t\tClient newClient3 = new Client(3, \"Amy Friendly\", \"Brokerage\");\r\n\t\tclientList.add(newClient3);\r\n\t\t\r\n\t\tClient newClient4 = new Client(4, \"Johnny Smith\", \"Brokerage\");\r\n\t\tclientList.add(newClient4);\r\n\t\t\r\n\t\tClient newClient5 = new Client(5, \"Carol Spears\", \"Retirement\");\r\n\t\tclientList.add(newClient5);\r\n\t}",
"static\tprivate void setMessageAdapter(ArrayList<messagewrapper> messageList) {\n\t\tmAdapter = new MessageListAdapter(context, messageList);\n\t\tlstv.setAdapter(mAdapter);\n\t\t\n\t\tcheckedCount=0;\n\t\t\n\t\t\n\t\t\n\t\tCollections.sort(messageList, new Comparator<messagewrapper>()\n\t\t\t\t{\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(messagewrapper lhs, messagewrapper rhs) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn rhs.get_id()-lhs.get_id();\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t});\n\t\t\n\t\t\n\t}",
"private static void init() {\n Friend friend0 = new Friend(\"Arne\", \"Andersen\", \"95123900\", \"Postveien 0\");\n Friend friend1 = new Friend(\"Berit\", \"Bertnsen\", \"95123901\", \"Postveien 1\");\n Friend friend2 = new Friend(\"Carl\", \"Carlsen\", \"95123902\", \"Postveien 2\");\n Friend friend3 = new Friend(\"Dora\", \"Danielsen\", \"95123903\", \"Postveien 3\");\n Friend friend4 = new Friend(\"Erik\", \"Erickson\", \"95123904\", \"Postveien 4\");\n Friend friend5 = new Friend(\"Fred\", \"Freddson\", \"95123905\", \"Postveien 5\");\n\n friendList.addFirst(friend1);\n friendList.addFirst(friend5);\n friendList.addFirst(friend3);\n friendList.addFirst(friend0);\n friendList.addFirst(friend2);\n friendList.addFirst(friend4);\n }",
"void removeAll(){\n\t\tmessages.clear();\n\t}",
"public abstract void initialize(P msg);",
"private void init() {\n\t\thead = -1;\n\t\tnumElements = 0;\n\t}",
"public void initialize() {\n grow(0);\n }",
"private void initList(CartInfo ci) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"private void initList() {\n\n\t\tfor (int i = 0; i < lstPool.size(); i++) {\n\t\t\tpoolList.add(createPool(\"nomPool\", lstPool.get(i).getNomPool()));\n\t\t}\n\t}",
"protected void newPlayerList() {\n int len = getPlayerCount();\n mPlayerStartList = new PlayerStart[ len ];\n for(int i = 0; i < len; i++) {\n mPlayerStartList[i] = new PlayerStart( 0.f, 0.f );\n }\n }",
"public void initQueue() {\n ListEntry defaultEntry = new ListEntry(0, 0);\n accumulate.add(defaultEntry);\n\n }",
"public void init() {\r\n\t\tcards = new ArrayList<Card>();\r\n\t\tfor(Card card : Card.values()) {\r\n\t\t\tcards.add(card);\r\n\t\t}\r\n\t}",
"private void clearMessageId() {\n messageId_ = emptyLongList();\n }",
"private void init() {\n articleList = new ArrayList<>();\n newsAdapter = new NewsAdapter(getContext(), articleList, mListener, this);\n\n recyclerViewNews.setHasFixedSize(false);\n RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getContext());\n\n recyclerViewNews.setLayoutManager(layoutManager);\n recyclerViewNews.setAdapter(newsAdapter);\n }",
"private ChatAdministration(){\n\t\troomlist = new ChatRoomTableModel();\n\t\tfilelist = new ChatFileTableModel();\n\t\tchatConnection = ChatConnection.getInstance();\n\t\tconnectionconfig = loadConnectionConfiguration();\n\t}",
"private SocketMessage() {\n initFields();\n }",
"public MessageListBean(String account, ChatManager chatManager) {\n accountOther = account;\n messageBeanList = new ArrayList<>();\n\n List<RtmMessage> messageList = chatManager.getAllOfflineMessages(account);\n for (RtmMessage m : messageList) {\n // All offline messages are from peer users\n MessageBean bean = new MessageBean(account, m, false);\n messageBeanList.add(bean);\n }\n }",
"public SimpleDataStore () {\n\t\tmessageMap = new HashMap<String , List<Message>>() ;\n\t}",
"public void readMessagingNodesList() {\n\t\tiStream = new ByteArrayInputStream(marshalledBytes);\t\n\t\tdin = new DataInputStream(new BufferedInputStream(iStream));\n\t\ttry {\n\t\t\tint totalCr = din.readInt();\n\t\t\tint nNeededConnections = din.readInt();\n\t\t\tint listByteLength = din.readInt();\n\t\t\tbyte[] listBytes = new byte[listByteLength];\n\t\t\tdin.readFully(listBytes);\n\n\t\t\tMessagingNodesList newList = new MessagingNodesList();\n\t\t\t//Unmarshall object of Messaging Nodes in list\n\t\t\tByteArrayInputStream bis = new ByteArrayInputStream(listBytes);\n\t\t\tDataInputStream dis = new DataInputStream(bis);\n\n\t\t\tint nLength, nLPort; byte[] nodeLinkBytes; String nIP;\n\t\t\tfor (int i=0; i< nNeededConnections; i++ ) {\n\t\t\t\tnLength = dis.readInt();\n\t\t\t\tnodeLinkBytes = new byte[nLength];\n\t\t\t\tdis.readFully(nodeLinkBytes);\n\t\t\t\tnIP= new String(nodeLinkBytes);\n\t\t\t\tnLPort = dis.readInt();\n\t\t\t\tnewList.addNode(nIP, nLPort);\n\t\t\t}\n\t\t\tiStream.close(); din.close();\n\t\t\t\n\t\t\tnode.setMessagingNodesList(newList,totalCr);\n\t\t\tnode.setPeerNumber(totalCr+node.getNumberNeededPeers());\n\t\t\tif(node.getNumberNeededPeers() ==0 ) System.out.println(\"All connections are established. Number of connections: \"+(node.getCurrentMessagingNodesList().getSize()));\n\n\t\t\t// Creating a registration message for each node in the messagingNodesList\n\t\t\tfor(int i=0; i<node.getFutureMessagingNodesList().getSize(); i++) {\n\t\t\t\tMessage message = new RegisterMessage(node.ipAddr, node.portNum);\n\t\t\t\tString friendIP = node.getFutureMessagingNodesList().getNodeAtIndex(i).ipAddress;\n\t\t\t\tint friendPort = node.getFutureMessagingNodesList().getNodeAtIndex(i).port;\n\n\t\t\t\t// Creating a socket that connects directly to the registry.\n\t\t\t\tSocket senderSocket = new Socket(friendIP, friendPort );\n\t\t\t\tnode.getConnections().addConnection(friendIP, senderSocket);\n\t\t\t\tnew TCPSender(senderSocket, message);\n\t\t\t}\n\t\t} catch (IOException e) {System.out.println(\"Failed to read message. \"); }\n\t}",
"private void init()\n {\n List<Integer> hourList = new ArrayList<>();\n for (int i = 0; i < 24; i++)\n hourList.add(i);\n ObservableList hourObList = FXCollections.observableList(hourList);\n eventHour.getItems().clear();\n eventHour.setItems(hourObList);\n\n List<Integer> minList = new ArrayList<>();\n for (int i = 0; i < 60; i++)\n minList.add(i);\n ObservableList minObList = FXCollections.observableList(minList);\n eventMinute.getItems().clear();\n eventMinute.setItems(minObList);\n }",
"public lostFoundList() {\n\tsuper((StringBuilder)null);\n\tinitHeaders();\n\t}",
"private void initializeLists() {\n\t\tif (tiles == null) {\n\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t} else {\n\t\t\t// Be sure to clean up old tiles\n\t\t\tfor (int i = 0; i < tiles.size(); i++) {\n\t\t\t\ttiles.get(i).freeBitmap();\n\t\t\t\ttiles = new ArrayList<Tile>(gridSize * gridSize);\n\t\t\t}\n\t\t}\n\t\ttileViews = new ArrayList<TileView>(gridSize * gridSize);\n\t\ttableRow = new ArrayList<TableRow>(gridSize);\n\n\t\tfor (int row = 0; row < gridSize; row++) {\n\t\t\ttableRow.add(new TableRow(context));\n\t\t}\n\n\t}",
"public FeedbackMessages()\n\t{\n\t}",
"@Override\n public void initialize(URL location, ResourceBundle resources) {\n ObservableList<String> list = FXCollections.observableArrayList(\"ALL\");\n contactList.setItems(list);\n contactList.getSelectionModel().select(0);\n this.chatMessageService = new ChatMessageService(this);\n }",
"int reInitializeCommunities();",
"public AssemblingMessageListPanel()\n {\n //initComponents();\n }",
"public void init() {\n\t\tList<Order> entries = new ArrayList<>();\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tentries.add(new Order(entries.size(), null, \"Bryce\", Statuses.IN_QUEUE, new java.util.Date(System.currentTimeMillis())));\n\t\tgetServletContext().setAttribute(\"entries\", entries);\n\t}",
"private void initChildList() {\n if (childList == null) {\n childList = new ArrayList<>();\n }\n }",
"private void sortMessages() {\n if (sendloadSuccess && recievedloadSuccess) {\n\n Collections.sort(chatMessages, new Comparator<ChatMessage>() {\n @Override\n public int compare(ChatMessage msg1, ChatMessage msg2) {\n\n return msg1.getMessageTime().compareTo(msg2.getMessageTime());\n }\n });\n\n saveChatMessagesInFile();\n updateListAdapter();\n }\n }",
"public LCAmsg2 () { }",
"private void loadLists() {\n }",
"private HeartBeatMessage() {\n initFields();\n }"
] | [
"0.74094045",
"0.74094045",
"0.7402052",
"0.7115848",
"0.68194926",
"0.6612953",
"0.65616",
"0.65312225",
"0.65309805",
"0.6501535",
"0.65015304",
"0.6493245",
"0.6485545",
"0.6420438",
"0.63949865",
"0.6393523",
"0.6384545",
"0.63304955",
"0.6313698",
"0.63006705",
"0.6292288",
"0.6255406",
"0.6250532",
"0.62397224",
"0.6202126",
"0.61838585",
"0.6182841",
"0.61134684",
"0.61044484",
"0.61044484",
"0.6083781",
"0.6082136",
"0.60787106",
"0.60748386",
"0.60719794",
"0.606609",
"0.6050897",
"0.6040866",
"0.6025224",
"0.6020903",
"0.6018766",
"0.5965011",
"0.5895447",
"0.58903855",
"0.588718",
"0.5885141",
"0.5857116",
"0.5852564",
"0.5850595",
"0.5833725",
"0.58330077",
"0.58226097",
"0.5799634",
"0.579214",
"0.578466",
"0.57810533",
"0.57807285",
"0.5773207",
"0.5766548",
"0.5729615",
"0.572859",
"0.572743",
"0.5726596",
"0.5716179",
"0.5704728",
"0.57046795",
"0.57004666",
"0.5696172",
"0.568892",
"0.5687078",
"0.56857675",
"0.5641576",
"0.5637781",
"0.56354016",
"0.56321704",
"0.56248194",
"0.56206936",
"0.56199765",
"0.561784",
"0.55975306",
"0.559132",
"0.55863345",
"0.55810696",
"0.5580102",
"0.5577128",
"0.55763084",
"0.55751485",
"0.5564966",
"0.55632716",
"0.55542564",
"0.5549676",
"0.5544833",
"0.55446017",
"0.55359155",
"0.553293",
"0.5532621",
"0.5532378",
"0.55306387",
"0.55299515",
"0.5527868"
] | 0.74856174 | 0 |
Creates a new completion stage which uses a fallback stage in case the primary stage completes exceptionally. | public static <T> CompletionStage<T> withFallback(final CompletionStage<T> stage,
final BiFunction<CompletionStage<T>, Throwable, ? extends CompletionStage<T>> fallback) {
return stage.handle((response, error) -> error)
.thenCompose(error -> error != null ? fallback.apply(stage, error) : stage);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public CompletionStage<T> minimalCompletionStage() {\n return context.withContextCapture(f.minimalCompletionStage());\n }",
"public Builder newStage() {\n closeStage();\n currentStage = ImmutableSet.builder();\n return this;\n }",
"private Output newStage(Output finalOutput, int level) {\n Output out = new MappingChainOutput(chain[level], finalOutput);\n\n if (level == 0) {\n /* At the top level, we're done */\n return out;\n } else {\n /* Pass this Output for the previous stage to write to */\n return newStage(out, level - 1);\n }\n }",
"@Override\n public Promise<T> exceptionallyCompose(Function<Throwable, ? extends CompletionStage<T>> fn) {\n return cast(super.exceptionallyCompose(fn));\n }",
"abstract Resource<Controller> setupStage(Stage stage);",
"public static IBuildingJob createFallback() {\n\t\tSimpleBuildingJob wait = new SimpleBuildingJob(EBuildingJobType.WAIT, 1000);\n\t\tSimpleBuildingJob hide = new SimpleBuildingJob(EBuildingJobType.HIDE, 0);\n\t\twait.successJob = wait;\n\t\twait.failJob = wait;\n\t\thide.successJob = wait;\n\t\thide.failJob = wait;\n\t\treturn hide;\n\t}",
"public abstract Stage getNextStage(int score);",
"@Override\n public Promise<T> exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> fn) {\n return cast(super.exceptionallyComposeAsync(fn));\n }",
"public static Stage initial( int count )\n\t\t{ return new InitialStage( count ); }",
"private static URI findCancelableLeafStage(StageInfo stage)\n {\n if (stage.getLatestAttemptExecutionInfo().getState().isDone()) {\n return null;\n }\n\n // attempt to find a cancelable sub stage\n // check in reverse order since build side of a join will be later in the list\n for (StageInfo subStage : Lists.reverse(stage.getSubStages())) {\n URI leafStage = findCancelableLeafStage(subStage);\n if (leafStage != null) {\n return leafStage;\n }\n }\n\n // no matching sub stage, so return this stage\n return stage.getSelf();\n }",
"@Override\r\n public StageDto updateStage(StageDto stageDto) {\n return null;\r\n }",
"public void addNewStage() {\n\t\tif (stage != 0 && getCurrentActions().isEmpty()) { // This should be validated by the command\n\t\t\tthrow new IllegalStateException(\"Cannot progress stage without actions\");\n\t\t}\n\n\t\tstage = amountOfStages\n\t\t\t\t+ 1; // The stage that is being edited may not be the latest so make sure not to duplicate\n\t\tamountOfStages++;\n\t\tstagesOfActions.putIfAbsent(stage, new LinkedHashMap<>());\n\t\tstageJsons.putIfAbsent(stage, new JsonObject());\n\t}",
"public final EObject entryRuleFinalStage() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleFinalStage = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:1305:51: (iv_ruleFinalStage= ruleFinalStage EOF )\r\n // InternalEsportDsl.g:1306:2: iv_ruleFinalStage= ruleFinalStage EOF\r\n {\r\n newCompositeNode(grammarAccess.getFinalStageRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleFinalStage=ruleFinalStage();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleFinalStage; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }",
"private Optional<List<Stage>> toStages(Holder.Stage stage) {\n if (stage.isSyntheticStage()) {\n log.debug(\"Discarding synthetic stage\");\n return Optional.empty();\n }\n\n Status stageStatus =\n Status.valueOf(parseEnum(Status.getDescriptor(), stage.getStatus().toUpperCase()));\n Stage.Builder stageBuilder = Stage.newBuilder().setType(stage.getType()).setStatus(stageStatus);\n\n List<Stage> returnList = new ArrayList<>();\n String cloudProvider = stage.getContext().getCloudProvider();\n if (StringUtils.isNotEmpty(cloudProvider)) {\n stageBuilder.setCloudProvider(toCloudProvider(cloudProvider));\n returnList.add(stageBuilder.build());\n } else if (StringUtils.isNotEmpty(stage.getContext().getNewState().getCloudProviders())) {\n // Create and Update Application operations can specify multiple cloud providers in 1\n // operation.\n String[] cloudProviders = stage.getContext().getNewState().getCloudProviders().split(\",\");\n for (String cp : cloudProviders) {\n returnList.add(stageBuilder.clone().setCloudProvider(toCloudProvider(cp)).build());\n }\n } else {\n returnList.add(stageBuilder.build());\n }\n\n return Optional.of(returnList);\n }",
"@NonNull\n @Override\n public Observable<Trio<String, String, String>> useFirstStageDuringRegistration() {\n return d2.programModule().programs().uid(programUid).get()\n .flatMap(program -> d2.programModule().programStages().byProgramUid().eq(programUid).get()\n .map(programStages -> {\n Collections.sort(programStages, (ps1, ps2) -> {\n Integer priority1 = ps1.sortOrder();\n Integer priority2 = ps2.sortOrder();\n if (priority1 != null && priority2 != null)\n return priority1.compareTo(priority2);\n else if (priority1 != null)\n return -1;\n else if (priority2 != null)\n return 1;\n else\n return 0;\n });\n return programStages;\n })\n .map(programStages ->\n Trio.create(program.useFirstStageDuringRegistration(), programStages, program.trackedEntityType())))\n .map(data -> {\n ProgramStage stageToOpen = null;\n if (data.val0() && !data.val1().isEmpty()) {\n stageToOpen = data.val1().get(0);\n } else if (!data.val1().isEmpty()) {\n for (ProgramStage programStage : data.val1()) {\n if (programStage.openAfterEnrollment() && stageToOpen == null)\n stageToOpen = programStage;\n }\n }\n\n if (stageToOpen != null) { //we should check if event exist (if not create) and open\n List<Event> event = d2.eventModule().events().byProgramStageUid().eq(stageToOpen.uid()).byEnrollmentUid().eq(enrollmentUid).blockingGet();\n\n if (event != null && !event.isEmpty()) {\n String eventUid = event.get(0).uid();\n return Trio.create(getTeiUid(), programUid, eventUid);\n } else {\n Enrollment enrollment = d2.enrollmentModule().enrollments().uid(enrollmentUid).blockingGet();\n\n if (enrollment != null) {\n Date createdDate = DateUtils.getInstance().getCalendar().getTime();\n Event eventToCreate = Event.builder()\n .uid(codeGenerator.generate())\n .created(createdDate)\n .lastUpdated(createdDate)\n .eventDate(createdDate)\n .enrollment(enrollmentUid)\n .program(stageToOpen.program().uid())\n .programStage(stageToOpen.uid())\n .organisationUnit(enrollment.organisationUnit())\n .status(EventStatus.ACTIVE)\n .state(State.TO_POST)\n .build();\n\n if (briteDatabase.insert(\"Event\", eventToCreate.toContentValues()) < 0) {\n throw new OnErrorNotImplementedException(new Throwable(\"Unable to store event:\" + eventToCreate));\n }\n\n return Trio.create(getTeiUid(), programUid, eventToCreate.uid());//teiUid, programUio, eventUid\n } else\n throw new IllegalArgumentException(\"Can't create event in enrollment with null organisation unit\");\n\n }\n } else { //open Dashboard\n Enrollment enrollment = d2.enrollmentModule().enrollments().uid(enrollmentUid).blockingGet();\n\n String programUid = \"\";\n String teiUid = \"\";\n if (enrollment != null) {\n programUid = enrollment.program();\n teiUid = enrollment.trackedEntityInstance();\n }\n return Trio.create(teiUid, programUid, \"\");\n\n }\n }).toObservable();\n\n }",
"interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }",
"public void launch(String stage) {\n\t\tnew JFXPanel();\n\t\tresult = new FutureTask(new Callable(){\n \n @Override\n public Object call() throws Exception {\n StagedProduction prod=(StagedProduction)Class.forName(stage).getConstructor().newInstance();\n return (prod.produce());\n }\n \n \n });\n Platform.runLater(result);\n\t}",
"public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}",
"public static <T> CompletionStage<T> exceptionallyCompleted(Exception e) {\n CompletableFuture<T> result = new CompletableFuture<T>();\n result.completeExceptionally(e);\n return result;\n }",
"public Builder clearStage() {\n bitField0_ = (bitField0_ & ~0x00000010);\n stage_ = 0;\n onChanged();\n return this;\n }",
"@Override\n\tpublic void start(Stage primaryStage) throws IOException{\n\t\tstage = new Stage();\n\n\t\tstage.setScene(ClientEntranceController.getEntranceScene());\n\t\tstage.setTitle(\"Archive\");\n\t\tstage.show();\n\t\t\n\t\t\n\t\tstage.setOnCloseRequest(new EventHandler<WindowEvent>() {\n\t\t\tpublic void handle(WindowEvent we) {\n\t\t\t\tPlatform.exit();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t}",
"private void closeStage() {\n ImmutableSet<FlowTableOperation> stage = currentStage.build();\n if (!stage.isEmpty()) {\n listBuilder.add(stage);\n }\n }",
"public CreateUAV(){\n createStage = new Stage();\n createStage.setTitle(\"UAV Setup\");\n createStage.initModality(Modality.APPLICATION_MODAL);\n setupOverwriteDialog();\n }",
"private void analyzeRegistrationStages(final RegistrationFlowResponse newFlowResponse) {\n mSupportedStages.clear();\n mRequiredStages.clear();\n mOptionalStages.clear();\n\n boolean canCaptchaBeMissing = false;\n boolean canTermsBeMissing = false;\n boolean canPhoneBeMissing = false;\n boolean canEmailBeMissing = false;\n\n // Add all supported stage and check if some stage can be missing\n for (LoginFlow loginFlow : newFlowResponse.flows) {\n mSupportedStages.addAll(loginFlow.stages);\n\n if (!loginFlow.stages.contains(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n canCaptchaBeMissing = true;\n }\n\n if (!loginFlow.stages.contains(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n canTermsBeMissing = true;\n }\n\n if (!loginFlow.stages.contains(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)) {\n canPhoneBeMissing = true;\n }\n\n if (!loginFlow.stages.contains(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n canEmailBeMissing = true;\n }\n }\n\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA)) {\n if (canCaptchaBeMissing) {\n mOptionalStages.add(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA);\n } else {\n mRequiredStages.add(LoginRestClient.LOGIN_FLOW_TYPE_RECAPTCHA);\n }\n }\n\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_TERMS)) {\n if (canTermsBeMissing) {\n mOptionalStages.add(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n } else {\n mRequiredStages.add(LoginRestClient.LOGIN_FLOW_TYPE_TERMS);\n }\n }\n\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY)) {\n if (canEmailBeMissing) {\n mOptionalStages.add(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n } else {\n mRequiredStages.add(LoginRestClient.LOGIN_FLOW_TYPE_EMAIL_IDENTITY);\n }\n }\n\n if (supportStage(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN)) {\n if (canPhoneBeMissing) {\n mOptionalStages.add(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n } else {\n mRequiredStages.add(LoginRestClient.LOGIN_FLOW_TYPE_MSISDN);\n }\n }\n }",
"final Stage getLocalStage() {\n\t\t// retrnamos la etapa actual\n\t\treturn this.localStage;\n\t}",
"@Override\n public Promise<T> exceptionallyComposeAsync(Function<Throwable, ? extends CompletionStage<T>> fn, Executor executor) {\n return cast(super.exceptionallyComposeAsync(fn, executor));\n }",
"private void ensureFinalState() {\n if (!isComplete() && !isPaused() && getInternalState() != INTERNAL_STATE_QUEUED) {\n // we first try to complete a cancel operation and if that fails, we just fail\n // the operation.\n if (!tryChangeState(INTERNAL_STATE_CANCELED, false)) {\n tryChangeState(INTERNAL_STATE_FAILURE, false);\n }\n }\n }",
"private PublisherBuilder<JobDetails> handleExistingJob(JobDetails job) {\n return ReactiveStreams.fromCompletionStage(jobRepository.get(job.getId()))\n //handle scheduled and retry cases\n .flatMap(\n j -> {\n switch (j.getStatus()) {\n case SCHEDULED:\n return handleExpirationTime(j)\n .map(scheduled -> jobWithStatus(scheduled, JobStatus.CANCELED))\n .map(CompletableFuture::completedFuture)\n .flatMapCompletionStage(this::cancel)\n .map(deleted -> j);\n case RETRY:\n return handleRetry(CompletableFuture.completedFuture(j))\n .flatMap(retryJob -> ReactiveStreams.empty());\n default:\n //empty to break the stream processing\n return ReactiveStreams.empty();\n }\n })\n .onErrorResumeWith(t -> ReactiveStreams.empty());\n }",
"@Override\n\tpublic void start(Stage arg0) throws Exception \n\t{\t\t\n\n\t}",
"@Override\r\n\tpublic Node visitStages(StagesContext ctx) {\n\t\treturn super.visitStages(ctx);\r\n\t}",
"@Override\n\tprotected Object entryInitialFlow() {\n\t\treturn null;\n\t}",
"private Output initChainOutput(Output finalOutput) {\n\n if (chain.length == 0) {\n return finalOutput;\n } else {\n return newStage(finalOutput, chain.length - 1);\n }\n }",
"private Stage getPriorityStage(ArrayList<Transition> transitions, Stage ownerStage){\r\n\t\t\r\n\t\tStage prioritySettings = new Stage();\r\n\t\tprioritySettings.setTitle(\"Priority Settings\");\r\n\t\tprioritySettings.initOwner(ownerStage);\r\n\t\tprioritySettings.setWidth(400.0);\r\n\r\n\t\tVBox priorityContainer = new VBox(20);\r\n\t\tpriorityContainer.setAlignment(Pos.CENTER);\r\n\t\t\r\n\t\tGridPane transitionSettings = new GridPane();\r\n\t\ttransitionSettings.setAlignment(Pos.CENTER);\r\n\t\ttransitionSettings.setHgap(50.0);\r\n\t\ttransitionSettings.setVgap(10.0);\r\n\t\t\r\n\t\ttransitionSettings.addRow(0, new Text(\"Name\"), new Text(\"Transition Priority\"));\r\n\t\t\r\n\t\t\r\n\t\t//display rows with transition name a TextField for each transition\r\n\t\tfor(int i = 0; i < transitions.size(); i++)\r\n\t\t\ttransitionSettings.addRow(i+1, new Text(transitions.get(i).getName()),\r\n\t\t\t\t\t\t\t\t new TextField(\"\" + transitions.get(i).getPriority()));\r\n\t\t\r\n\t\t//center all nodes and set TextField sizes\r\n\t\tfor(Node node : transitionSettings.getChildren()){\r\n\t\t\tGridPane.setHalignment(node, HPos.CENTER);\r\n\t\t\t\r\n\t\t\tif((GridPane.getColumnIndex(node)!=0)&&(GridPane.getRowIndex(node)!=0))\r\n\t\t\t\t//contains TextField\r\n\t\t\t\t((TextField)node).setPrefColumnCount(5);\r\n\t\t}\r\n\t\t\r\n\t\tButton okButton = new Button(\"OK\");\r\n\t\t\r\n\t\t\r\n\t\tokButton.setOnAction(e ->{\r\n\t\t\tfor(Node node : transitionSettings.getChildren()){\r\n\t\t\t\tif((GridPane.getColumnIndex(node)!=0)&&(GridPane.getRowIndex(node)!=0)){\r\n\t\t\t\t\t\r\n\t\t\t\t\t//index of transition\r\n\t\t\t\t\tint transNum = GridPane.getRowIndex(node) - 1;\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//set priority of current transition\r\n\t\t\t\t\t\tif((Integer.parseInt(((TextField)node).getText())) > 0)\r\n\t\t\t\t\t\t\ttransitions.get(transNum).setPriority(Integer.parseInt(((TextField)node).getText()));\r\n\t\t\t\t\t\telse{\r\n\t\t\t\t\t\t\t//display error, invalid priority input entered\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tprioritySimulation = false;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tStage priorityError = new Stage();\r\n\t\t\t\t\t\t\tpriorityError.initOwner(prioritySettings);\r\n\t\t\t\t\t\t\tpriorityError.setTitle(\"Invalid Priority Number\");\r\n\t\t\t\t\t\t\tBorderPane errorPane = new BorderPane();\r\n\t\t\t\t\t\t\terrorPane.setPrefWidth(600.0);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tButton errorOK = new Button(\"OK\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\terrorOK.setOnAction(t -> {\r\n\t\t\t\t\t\t\t\tpriorityError.close();\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\terrorPane.setTop(new Label(\"Invalid priority input: Transition \" + transitions.get(transNum).getName() + \" priority not changed\"));\r\n\t\t\t\t\t\t\tBorderPane.setAlignment(errorPane.getTop(), Pos.CENTER);\r\n\t\t\t\t\t\t\terrorPane.setCenter(new Label(\"Priority number must be set to integer between 1 and 10000.\"));\r\n\t\t\t\t\t\t\terrorPane.setBottom(errorOK);\r\n\t\t\t\t\t\t\tBorderPane.setAlignment(errorOK, Pos.CENTER);\r\n\t\t\t\t\t\t\tBorderPane.setMargin(errorPane.getCenter(), new Insets(20, 0, 20, 0));\r\n\t\t\t\r\n\t\t\t\t\t\t\tpriorityError.setScene(new Scene(errorPane));\r\n\t\t\t\t\t\t\tpriorityError.show();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch(NumberFormatException x)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//display error, invalid priority input entered\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tprioritySimulation = false;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tStage priorityError = new Stage();\r\n\t\t\t\t\t\tpriorityError.initOwner(prioritySettings);\r\n\t\t\t\t\t\tpriorityError.setTitle(\"Invalid Priority Number\");\r\n\t\t\t\t\t\tBorderPane errorPane = new BorderPane();\r\n\t\t\t\t\t\terrorPane.setPrefWidth(600.0);\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tButton errorOK = new Button(\"OK\");\r\n\t\t\t\t\t\r\n\t\t\t\t\t\terrorOK.setOnAction(t -> {\r\n\t\t\t\t\t\t\tpriorityError.close();\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\terrorPane.setTop(new Label(\"Invalid priority input: Transition \" + transitions.get(transNum).getName() + \" priority not changed\"));\r\n\t\t\t\t\t\tBorderPane.setAlignment(errorPane.getTop(), Pos.CENTER);\r\n\t\t\t\t\t\terrorPane.setCenter(new Label(\"Priority number must be set to integer greater than 0.\"));\r\n\t\t\t\t\t\terrorPane.setBottom(errorOK);\r\n\t\t\t\t\t\tBorderPane.setAlignment(errorOK, Pos.CENTER);\r\n\t\t\t\t\t\tBorderPane.setMargin(errorPane.getCenter(), new Insets(20, 0, 20, 0));\r\n\t\t\r\n\t\t\t\t\t\tpriorityError.setScene(new Scene(errorPane));\r\n\t\t\t\t\t\tpriorityError.show();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(prioritySimulation)\r\n\t\t\t\t//simulation not postponed due to invalid input\r\n\t\t\t\tprioritySettings.close();\r\n\t\t\telse{\r\n\t\t\t\t//invalid input, restore previous settings to TextField text\r\n\t\t\t\tfor(Node node : transitionSettings.getChildren()){\r\n\t\t\t\t\tGridPane.setHalignment(node, HPos.CENTER);\r\n\t\t\t\t\tif((GridPane.getColumnIndex(node)!=0)&&(GridPane.getRowIndex(node)!=0)){\r\n\t\t\t\t\t\tint transNum = GridPane.getRowIndex(node) - 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\tif((Integer.parseInt(((TextField)node).getText())) < 1)\r\n\t\t\t\t\t\t\t\t((TextField)node).setText(\"\" + transitions.get(transNum).getPriority());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcatch(NumberFormatException x){\r\n\t\t\t\t\t\t\t((TextField)node).setText(\"\" + transitions.get(transNum).getPriority());\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\tprioritySimulation = true;\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tpriorityContainer.getChildren().addAll(transitionSettings, okButton);\r\n\t\t\r\n\t\tprioritySettings.setScene(new Scene(priorityContainer));\r\n\t\t\r\n\t\treturn prioritySettings;\r\n\t}",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\tnew VoogaChooser(primaryStage);\n\t}",
"@Override\r\n\tpublic ConventionStage update(ConventionStage obj) {\n\t\treturn null;\r\n\t}",
"private ResultStage createResultStage(RDD<?> rdd,\n JobAction<?, ?> jobAction,\n List<Integer> partitions,\n int jobId,\n CallSite callSite) {\n // step1: 计算final rdd依赖的所有ShuffleDependency\n // step2: 计算ShuffleDependency依赖的ShuffleMapStage\n // 调用链:\n // DAGScheduler.getOrCreateParentStages(rdd)[final rdd ==> ResultStage]\n // |\n // +---> DAGScheduler.getShuffleDependencies(rdd)[final rdd ==> Set<ShuffleDependency>]\n // |\n // +---> DAGScheduler.getOrCreateShuffleMapStage(shuffleId, jobId)[ShuffleDependency ==> List<ShuffleMapStage>]\n // |\n // +---> DAGScheduler.createShuffleMapStage(shuffleDep, jobId)[ShuffleDependency ==> ShuffleMapStage]\n List<Stage> parents = getOrCreateParentStages(rdd, jobId);\n int id = nextStageId.getAndIncrement();\n ResultStage stage = new ResultStage(id,\n rdd,\n jobAction,\n partitions,\n parents,\n jobId,\n callSite);\n stageIdToStage.put(id, stage);\n updateJobIdStageIdMaps(jobId, Lists.newArrayList(stage));\n return stage;\n }",
"public ObjectiveDeployedTriggerAction(final PhysicalCard objective) {\n super(objective, objective.getCardId());\n _that = this;\n setPerformingPlayer(objective.getOwner());\n skipInitialMessageAndAnimation();\n\n // Insert an after effect that if any required effects fail, the Objective is placed out of play and any other cards\n // (except Starting Effect) are placed back in Reserve Deck\n insertAfterEffect(\n new PassthruEffect(_that) {\n @Override\n protected void doPlayEffect(SwccgGame game) {\n if (_that.isAnyCostFailed()) {\n game.getGameState().sendMessage(GameUtils.getCardLink(objective) + \" did not satisfy its deployment requirements, so it will be placed out of play\");\n // Insert so it happens before any other after effects\n insertAfterEffect(\n new IllegalObjectiveEffect(_that, objective));\n }\n }\n }\n );\n }",
"public static Stage getPrimaryStage() {\n return pStage;\n }",
"@Test\n\tpublic void testStageProceed() {\n\t\t\n\t\tSystem.out.println(\"\\nTest case : Next stage\");\n\t\t\n\t\tStageScene test = new StageScene() ;\n\t\t\n\t\tassertEquals(0 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 1's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal1 = new Goal(10,105) ;\n\t\t\n\t\tAnimal animal = new Animal(\"file:Resources/Frog/frogUp1.png\") ;\n\t\tanimal.setX(10) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal1) ;\n\t\ttest.add(animal) ;\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\ttest.createStageTimer();\n\t\t\n\t\tassertEquals(1 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 1's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 1 is completed , proceed to stage 2\") ;\n\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 2's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal2 = new Goal(140,105) ;\n\t\t\n\t\tanimal.setX(140) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal2);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(2 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 2's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 2 is completed , proceed to stage 3\") ;\n\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 3's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal3 = new Goal(265,105) ;\n\t\t\n\t\tanimal.setX(265) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal3);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(3 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 3's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 3 is completed , proceed to stage 4\") ;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 4's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal4 = new Goal(393,105) ;\n\t\t\n\t\tanimal.setX(393) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal4);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(4 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 4's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 4 is completed , proceed to stage 5\") ;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 5's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal5 = new Goal(520,105) ;\n\t\t\n\t\tanimal.setX(520) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal5);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(5 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 5's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 5 is completed , end game\") ;\n\t}",
"private void enterSequence_mainRegion_State2_default() {\n\t\tenterSequence_mainRegion_State2__region0_default();\n\t}",
"public void endCurrentStage() {\n \n stages.getItem(currentStage - 1).setIsFinished(true);\n stages.getItem(currentStage - 1).setEndDate(super.getTimeFormat().format(LocalDateTime.now()));\n if (stages.getItem(currentStage - 1).isFinished()) {\n currentStage++;\n } else {\n System.out.println(\"Por favor, revise y emprenda acciones en su producción \" +\n \"para cumplir con los estándares de calidad, tome nuevos datos e intente de nuevo.\");\n }\n }",
"@Override\r\n\tpublic void setStage(int stage) {\n\r\n\t}",
"@Override\n public CompletionStage<T> α() {\n CompletionStage<T> p = delegate;\n if (p instanceof Decorator) {\n return decorator(p).α();\n } else {\n // Default path -- unroll\n while (p instanceof AbstractCompletionStageDecorator) {\n @SuppressWarnings(\"unchecked\")\n AbstractCompletionStageDecorator<T, ? extends CompletionStage<T>> ap = \n (AbstractCompletionStageDecorator<T, ? extends CompletionStage<T>>)p;\n p = ap.delegate;\n if (p instanceof Decorator) {\n return decorator(p).α();\n }\n }\n return p;\n }\n }",
"interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }",
"protected final void emitLowLevel() {\n preAllocationStage();\n allocationStage();\n postAllocationStage();\n }",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\ttry {\n\t\t\tStartFactory start = new StartFactory(primaryStage);\n\t\t\tstart.init();\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public static Stage getPrimarystage() {\n return primarystage;\n }",
"interface DefinitionStages {\n /** The first stage of the JobResponse definition. */\n interface Blank extends WithResourceGroup {\n }\n /** The stage of the JobResponse definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the user\n * subscription.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the JobResponse definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }\n /** The stage of the JobResponse definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n /** The stage of the JobResponse definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }\n /** The stage of the JobResponse definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }\n /** The stage of the JobResponse definition allowing to specify clientTenantId. */\n interface WithClientTenantId {\n /**\n * Specifies the clientTenantId property: The tenant ID of the client making the request..\n *\n * @param clientTenantId The tenant ID of the client making the request.\n * @return the next definition stage.\n */\n WithCreate withClientTenantId(String clientTenantId);\n }\n }",
"public void add_stage() {\r\n\t\tif (this.controller.getSelectedCatagory() == null)\r\n\t\t\treturn;\r\n\t\tString name = JOptionPane.showInputDialog(this,\r\n\t \t\"Choose a name for the stage\",\r\n\t \"Name Stage\", 1);\r\n\t if (name == null) {\r\n\t \treturn;\r\n\t }\r\n\t // If the stage cannot be added, inform the user\r\n\t\tif (!controller.addStage(name)) {\r\n\t\t\tJOptionPane.showMessageDialog(this, \"A Stage with that name already exists\");\r\n\t\t}\r\n\t}",
"@Override\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\n\t}",
"private void evaluateStage(){\n switch (currentStage){\n case EGG: if (getLifetime() >= ModelSettings.brood_lifetime_egg)\n currentStage = LARVAE;\n break;\n case LARVAE: if (getLifetime() >= ModelSettings.brood_lifetime_larvae)\n currentStage = PUPAE;\n break;\n case PUPAE: if (getLifetime() >= ModelSettings.brood_lifetime_pupae)\n System.out.println(\"This pupae is now an adult!\");\n //TODO trigger manager\n break;\n }\n }",
"@Override\n public void \n buildPhase()\n throws PipelineException\n {\n pLog.log(LogMgr.Kind.Ops, LogMgr.Level.Fine, \"Checking Out: \" + pSubmitNode);\n frozenStomp(pSubmitNode);\n\n pLog.log(LogMgr.Kind.Ops, LogMgr.Level.Fine, \"Checking Out: \" + pApproveNode);\n pClient.checkOut(getAuthor(), getView(), pApproveNode, null, \n CheckOutMode.KeepModified, CheckOutMethod.PreserveFrozen);\n \n pFinalizeStages = new LinkedList<FinalizableStage>();\n \n String type = TaskType.Lighting.toString();\n \n \n String textureNode = pShotNamer.getLightingTextureNode();\n String textureProduct = pShotNamer.getLightingTextureProductNode();\n NodeID finalTexID = new NodeID(getAuthor(), getView(), textureProduct);\n NodeMod texMod = pClient.getWorkingVersion(getAuthor(), getView(), textureNode);\n NodeMod finalTexMod = pClient.getWorkingVersion(finalTexID);\n \n for (String source : finalTexMod.getSourceNames()) {\n pClient.unlink(finalTexID, source);\n }\n for (LinkMod link : texMod.getSources()) {\n pClient.link(finalTexID, link);\n }\n \n \n String prelgtNode = pShotNamer.getPreLightScene();\n NodeMod preLgtMod = pClient.getWorkingVersion(getAuthor(), getView(), prelgtNode);\n BaseAction preLgtAct = preLgtMod.getAction();\n \n TreeSet<String> lgtModels = new TreeSet<String>();\n for (String source : preLgtMod.getSourceNames()) {\n String sceneType = (String) preLgtAct.getSourceParamValue(source, \"SceneType\");\n if (sceneType != null && sceneType.equals(\"Model\")) {\n lgtModels.add(source);\n }\n }\n \n String lightingScene = pShotNamer.getLightingEditScene();\n String lightingProduct = pShotNamer.getLightingProductScene();\n \n StageInformation stageInfo = getStageInformation();\n stageInfo.setActionOnExistence(ActionOnExistence.Conform);\n {\n String script = pProjectNamer.getLightingProductMEL();\n LightingProductStage stage = \n new LightingProductStage\n (stageInfo, pContext, pClient,\n lightingProduct, lightingScene, script, lgtModels, textureProduct );\n addTaskAnnotation(stage, NodePurpose.Product, pProjectName, pTaskName, type);\n if (stage.build()) \n pFinalizeStages.add(stage);\n }\n\n addToQueueList(pApproveNode);\n addToCheckInList(pApproveNode);\n }",
"public final EObject entryRuleGroupStage() throws RecognitionException {\r\n EObject current = null;\r\n\r\n EObject iv_ruleGroupStage = null;\r\n\r\n\r\n try {\r\n // InternalEsportDsl.g:1462:51: (iv_ruleGroupStage= ruleGroupStage EOF )\r\n // InternalEsportDsl.g:1463:2: iv_ruleGroupStage= ruleGroupStage EOF\r\n {\r\n newCompositeNode(grammarAccess.getGroupStageRule()); \r\n pushFollow(FOLLOW_1);\r\n iv_ruleGroupStage=ruleGroupStage();\r\n\r\n state._fsp--;\r\n\r\n current =iv_ruleGroupStage; \r\n match(input,EOF,FOLLOW_2); \r\n\r\n }\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }",
"interface WithBasicEdition extends SqlElasticPoolOperations.DefinitionStages.WithCreate {\n /**\n * Sets the total shared eDTU for the SQL Azure Database Elastic Pool.\n *\n * @param eDTU total shared eDTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withReservedDtu(SqlElasticPoolBasicEDTUs eDTU);\n\n /**\n * Sets the maximum number of eDTU a database in the pool can consume.\n *\n * @param eDTU maximum eDTU a database in the pool can consume\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withDatabaseDtuMax(SqlElasticPoolBasicMaxEDTUs eDTU);\n\n /**\n * Sets the minimum number of eDTU for each database in the pool are regardless of its activity.\n *\n * @param eDTU minimum eDTU for all SQL Azure databases\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithBasicEdition withDatabaseDtuMin(SqlElasticPoolBasicMinEDTUs eDTU);\n }",
"private boolean isStageRequired(final String stage) {\n return mRegistrationResponse != null\n && isRequired(stage)\n && !isCompleted(stage);\n }",
"private void enterSequence_mainRegion_State1_default() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.mainRegion_State1;\n\t}",
"private void react_mainRegion_State2__region0_State4__region0_State7__region0__entry_Default() {\n\t\tenterSequence_mainRegion_State2__region0_State4__region0_State7__region0_State8_default();\n\t}",
"interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next update stage\n */\n Update withPriority(Integer priority);\n }",
"private static void decodeStage()\n\t{\n\t\tif (isValidSource)\n\t\t{\n\t\t\tif (latches.containsKey(\"F\") && !latches.get(\"F\").isNOP())\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tlatches.put(\"F\", getSRCFromRegister(latches.get(\"F\")));\n\t\t\t\t} catch (Exception e)\n\t\t\t\t{\n\t\t\t\t\tSystem.err.println(\"Error while reading values from Registers in Decode function\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tmoveInstruction(\"D\", \"F\");\n\t\t} else\n\t\t{\n\t\t\tlatches.put(\"D\", new Instruction());\n\t\t}\n\t}",
"public ProcessingStage getStage();",
"@Override\n\tpublic void bibliographyObjectNotFound() {\n\t\t_completionCallback.notifyStageCompletion();\n\t}",
"interface WithStandardEdition extends SqlElasticPoolOperations.DefinitionStages.WithCreate {\n /**\n * Sets the total shared eDTU for the SQL Azure Database Elastic Pool.\n *\n * @param eDTU total shared eDTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withReservedDtu(SqlElasticPoolStandardEDTUs eDTU);\n\n /**\n * Sets the maximum number of eDTU a database in the pool can consume.\n *\n * @param eDTU maximum eDTU a database in the pool can consume\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withDatabaseDtuMax(SqlElasticPoolStandardMaxEDTUs eDTU);\n\n /**\n * Sets the minimum number of eDTU for each database in the pool are regardless of its activity.\n *\n * @param eDTU minimum eDTU for all SQL Azure databases\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withDatabaseDtuMin(SqlElasticPoolStandardMinEDTUs eDTU);\n\n /**\n * Sets the storage capacity for the SQL Azure Database Elastic Pool.\n *\n * @param storageCapacity storage capacity for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithStandardEdition withStorageCapacity(SqlElasticPoolStandardStorage storageCapacity);\n }",
"@Override\r\n\tpublic void start(Stage primaryStage) throws Exception {\n\t\t\r\n\t}",
"CustomRollout.DefinitionStages.Blank define(String name);",
"@Override \n public void start(Stage stage) throws Exception {\n \tBeanContext.getStage(\"a\").show();\n }",
"@Override\n\tpublic void buildStageByStyle(Stage stage, BaseController root) {\n\t\t\n\t}",
"SqlElasticPoolOperations.DefinitionStages.WithCreate withExistingDatabase(String databaseName);",
"protected synchronized static UResourceBundle instantiateBundle(String baseName, String localeID,\n ClassLoader root, boolean disableFallback){\n ULocale defaultLocale = ULocale.getDefault();\n String localeName = localeID;\n if(localeName.indexOf('@')>0){\n localeName = ULocale.getBaseName(localeID);\n }\n String fullName = \"NULL\";\n //String fullName = ICUResourceBundleReader.getFullName(baseName, localeName);\n ICUResourceBundle b = (ICUResourceBundle)loadFromCache(root, fullName, defaultLocale);\n\n // here we assume that java type resource bundle organization\n // is required then the base name contains '.' else\n // the resource organization is of ICU type\n // so clients can instantiate resources of the type\n // com.mycompany.data.MyLocaleElements_en.res and\n // com.mycompany.data.MyLocaleElements.res\n //\n final String rootLocale = (baseName.indexOf('.')==-1) ? \"root\" : \"\";\n final String defaultID = ULocale.getDefault().toString();\n\n if(localeName.equals(\"\")){\n localeName = rootLocale;\n }\n if(DEBUG) System.out.println(\"Creating \"+fullName+ \" currently b is \"+b);\n if (b == null) {\n b = ICUResourceBundle.createBundle(baseName, localeName, root);\n\n if(DEBUG)System.out.println(\"The bundle created is: \"+b+\" and disableFallback=\"+disableFallback+\" and bundle.getNoFallback=\"+(b!=null && b.getNoFallback()));\n if(disableFallback || (b!=null && b.getNoFallback())){\n addToCache(root, fullName, defaultLocale, b);\n // no fallback because the caller said so or because the bundle says so\n return b;\n }\n\n // fallback to locale ID parent\n if(b == null){\n int i = localeName.lastIndexOf('_');\n if (i != -1) {\n String temp = localeName.substring(0, i);\n b = (ICUResourceBundle)instantiateBundle(baseName, temp, root, disableFallback);\n if(b!=null && b.getULocale().equals(temp)){\n b.setLoadingStatus(ICUResourceBundle.FROM_FALLBACK);\n }\n }else{\n if(defaultID.indexOf(localeName)==-1){\n b = (ICUResourceBundle)instantiateBundle(baseName, defaultID, root, disableFallback);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_DEFAULT);\n }\n }else if(rootLocale.length()!=0){\n b = ICUResourceBundle.createBundle(baseName, rootLocale, root);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_ROOT);\n }\n }\n }\n }else{\n UResourceBundle parent = null;\n localeName = b.getLocaleID();\n int i = localeName.lastIndexOf('_');\n\n addToCache(root, fullName, defaultLocale, b);\n\n if (i != -1) {\n parent = instantiateBundle(baseName, localeName.substring(0, i), root, disableFallback);\n }else if(!localeName.equals(rootLocale)){\n parent = instantiateBundle(baseName, rootLocale, root, true);\n }\n\n if(!b.equals(parent)){\n b.setParent(parent);\n }\n }\n }\n return b;\n }",
"public void setStageProgression(float stageProgression)\n\t{\n\t\tthis.stageProgression = stageProgression;\n\t}",
"public void removeLatestStage() {\n\t\tamountOfStages--;\n\t\tstage = amountOfStages; // Prevent editing a removed stage\n\n\t\tint removedStage = amountOfStages + 1;\n\t\tstageJsons.remove(removedStage);\n\t\tstagesOfActions.remove(removedStage);\n\t}",
"void createStage(Stage stage){\n\t\tstage.setHeight(background.getHeight()+25);//displays full image (1)\r\n\t\tstage.setWidth(background.getWidth());\r\n\t\tshowBackground.setFitWidth(stage.getWidth());\r\n\t\tshowBackground.setFitHeight(stage.getHeight()-23);//displays full image (1)\r\n\t\r\n\t\tstage.setAlwaysOnTop(true);\r\n\t\tstage.setResizable(false);\r\n\t\t\r\n\t\t//launches first window in center of screen. \r\n\t\tstage.centerOnScreen();\r\n\t\tstage.setScene(mainScene);\r\n\t\tstage.setTitle(\"Don't Play Games in Class\");\r\n\t\t//supposed to prevent window from being moved\r\n\t\t\r\n\t\t//removes minimize, maximize and close buttons\r\n\t\t//unused because replacing the \r\n\t\t//stage.initStyle(StageStyle.UNDECORATED);\r\n\t\t\r\n\t\t//removes minimize and maximize button\r\n\t\tstage.initStyle(StageStyle.UTILITY);\r\n\t\t\r\n\t\t//replaces the closed window in the center of the screen.\r\n\t\tRespawn launch = new Respawn();\r\n\t\tstage.setOnCloseRequest(launch);\r\n\t}",
"interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }",
"private interface WorkPlan {\n Stage PREINIT = new Stage(Messages.LaunchInitializationProcedure_UPDATE_DEBUGGER_STATE, 0.1f);\n Stage SET_OPTIONS = new Stage(Messages.LaunchInitializationProcedure_SET_OPTIONS, 1f);\n Stage LOAD_SCRIPTS = new Stage(Messages.LaunchInitializationProcedure_LOAD_SCRIPTS, 1f);\n Stage SYNCHRONIZE_BREAKPOINTS =\n new Stage(Messages.LaunchInitializationProcedure_SYNCHRONIZE_BREAKPOINTS, 1f);\n\n boolean IS_INITIZALIZED = ProgressUtil.layoutProgressPlan(PREINIT, SET_OPTIONS, LOAD_SCRIPTS,\n SYNCHRONIZE_BREAKPOINTS);\n }",
"private void react_mainRegion__entry_Default() {\n\t\tenterSequence_mainRegion_State1_default();\n\t}",
"public MutablePipeline() {\r\n\t\tstages = new ArrayList<>();\r\n\r\n\t\tname = \"Unnamed Pipeline\";\r\n\t}",
"public static Stage getPrimaryStage() {\r\n return primaryStage;\r\n }",
"public static Stage getPrimaryStage() {\r\n return primaryStage;\r\n }",
"interface DefinitionStages {\n /** The first stage of the Account definition. */\n interface Blank extends WithResourceGroup {\n }\n\n /** The stage of the Account definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n\n /**\n * The stage of the Account definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithKind,\n DefinitionStages.WithSku,\n DefinitionStages.WithIdentity,\n DefinitionStages.WithProperties {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Account create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Account create(Context context);\n }\n\n /** The stage of the Account definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n\n /** The stage of the Account definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n\n /** The stage of the Account definition allowing to specify kind. */\n interface WithKind {\n /**\n * Specifies the kind property: The Kind of the resource..\n *\n * @param kind The Kind of the resource.\n * @return the next definition stage.\n */\n WithCreate withKind(String kind);\n }\n\n /** The stage of the Account definition allowing to specify sku. */\n interface WithSku {\n /**\n * Specifies the sku property: The resource model definition representing SKU.\n *\n * @param sku The resource model definition representing SKU.\n * @return the next definition stage.\n */\n WithCreate withSku(Sku sku);\n }\n\n /** The stage of the Account definition allowing to specify identity. */\n interface WithIdentity {\n /**\n * Specifies the identity property: Identity for the resource..\n *\n * @param identity Identity for the resource.\n * @return the next definition stage.\n */\n WithCreate withIdentity(Identity identity);\n }\n\n /** The stage of the Account definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }\n }",
"private <E, F extends ITaskObject> IStatusTask createInitTask(F taskObject) {\n ITaskObjectManager<E, F> taskObjectManager = getTaskManagerConfiguration().getTaskObjectManagerRegistry().getTaskObjectManager(taskObject);\n Class<F> taskObjectClass = taskObjectManager.getTaskObjectClass();\n\n E currentStatus = taskObjectManager.getInitialStatus(taskObject);\n\n // Create a first task, it does nothing\n return getTaskManagerConfiguration().getTaskFactory().newStatusTask(null, taskObjectClass, currentStatus);\n }",
"private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}",
"final void setLocalStage(final Stage newStage) {\n\t\t// almacenamos la nueva etapa\n\t\tthis.localStage = newStage;\n\t\t// mostramos un mensaje\n\t\tthis.getLogger().debug(\"Changing Local Stage to: \" + this.getLocalStage());\n\t}",
"public void setStage(Stage currStage) \n\t{\n\t\t// We do not create a new stage because we want to reference of the stage being passed in\n\t\tcurrentStage = currStage;\n\t}",
"interface WithPremiumEdition extends SqlElasticPoolOperations.DefinitionStages.WithCreate {\n /**\n * Sets the total shared eDTU for the SQL Azure Database Elastic Pool.\n *\n * @param eDTU total shared eDTU for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withReservedDtu(SqlElasticPoolPremiumEDTUs eDTU);\n\n /**\n * Sets the maximum number of eDTU a database in the pool can consume.\n *\n * @param eDTU maximum eDTU a database in the pool can consume\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withDatabaseDtuMax(SqlElasticPoolPremiumMaxEDTUs eDTU);\n\n /**\n * Sets the minimum number of eDTU for each database in the pool are regardless of its activity.\n *\n * @param eDTU minimum eDTU for all SQL Azure databases\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withDatabaseDtuMin(SqlElasticPoolPremiumMinEDTUs eDTU);\n\n /**\n * Sets the storage capacity for the SQL Azure Database Elastic Pool.\n *\n * @param storageCapacity storage capacity for the SQL Azure Database Elastic Pool\n * @return The next stage of the definition.\n */\n @Beta(Beta.SinceVersion.V1_7_0)\n SqlElasticPoolOperations.DefinitionStages.WithPremiumEdition withStorageCapacity(SqlElasticPoolPremiumSorage storageCapacity);\n }",
"@SafeVarargs\n private VirtualFile priorizedLookup(Supplier<VirtualFile>... lookups) {\n for (Supplier<VirtualFile> lookup : lookups) {\n VirtualFile result = lookup.get();\n if (result != null) {\n return result;\n }\n }\n\n return null;\n }",
"public final EObject ruleFinalStage() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Token otherlv_1=null;\r\n Token otherlv_2=null;\r\n Token otherlv_4=null;\r\n Token otherlv_6=null;\r\n Token otherlv_8=null;\r\n Token otherlv_9=null;\r\n Token otherlv_10=null;\r\n Token otherlv_12=null;\r\n Token otherlv_14=null;\r\n AntlrDatatypeRuleToken lv_maxNbGames_3_0 = null;\r\n\r\n EObject lv_matchs_11_0 = null;\r\n\r\n EObject lv_matchs_13_0 = null;\r\n\r\n\r\n\r\n \tenterRule();\r\n\r\n try {\r\n // InternalEsportDsl.g:1318:2: ( ( () otherlv_1= 'FinalStage' otherlv_2= ':' ( (lv_maxNbGames_3_0= ruleEInt ) ) otherlv_4= '(' ( ( ruleEString ) ) (otherlv_6= ',' ( ( ruleEString ) ) )* otherlv_8= ')' (otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')' )? ) )\r\n // InternalEsportDsl.g:1319:2: ( () otherlv_1= 'FinalStage' otherlv_2= ':' ( (lv_maxNbGames_3_0= ruleEInt ) ) otherlv_4= '(' ( ( ruleEString ) ) (otherlv_6= ',' ( ( ruleEString ) ) )* otherlv_8= ')' (otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')' )? )\r\n {\r\n // InternalEsportDsl.g:1319:2: ( () otherlv_1= 'FinalStage' otherlv_2= ':' ( (lv_maxNbGames_3_0= ruleEInt ) ) otherlv_4= '(' ( ( ruleEString ) ) (otherlv_6= ',' ( ( ruleEString ) ) )* otherlv_8= ')' (otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')' )? )\r\n // InternalEsportDsl.g:1320:3: () otherlv_1= 'FinalStage' otherlv_2= ':' ( (lv_maxNbGames_3_0= ruleEInt ) ) otherlv_4= '(' ( ( ruleEString ) ) (otherlv_6= ',' ( ( ruleEString ) ) )* otherlv_8= ')' (otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')' )?\r\n {\r\n // InternalEsportDsl.g:1320:3: ()\r\n // InternalEsportDsl.g:1321:4: \r\n {\r\n\r\n \t\t\t\tcurrent = forceCreateModelElement(\r\n \t\t\t\t\tgrammarAccess.getFinalStageAccess().getFinalStageAction_0(),\r\n \t\t\t\t\tcurrent);\r\n \t\t\t\r\n\r\n }\r\n\r\n otherlv_1=(Token)match(input,24,FOLLOW_5); \r\n\r\n \t\t\tnewLeafNode(otherlv_1, grammarAccess.getFinalStageAccess().getFinalStageKeyword_1());\r\n \t\t\r\n otherlv_2=(Token)match(input,12,FOLLOW_11); \r\n\r\n \t\t\tnewLeafNode(otherlv_2, grammarAccess.getFinalStageAccess().getColonKeyword_2());\r\n \t\t\r\n // InternalEsportDsl.g:1335:3: ( (lv_maxNbGames_3_0= ruleEInt ) )\r\n // InternalEsportDsl.g:1336:4: (lv_maxNbGames_3_0= ruleEInt )\r\n {\r\n // InternalEsportDsl.g:1336:4: (lv_maxNbGames_3_0= ruleEInt )\r\n // InternalEsportDsl.g:1337:5: lv_maxNbGames_3_0= ruleEInt\r\n {\r\n\r\n \t\t\t\t\tnewCompositeNode(grammarAccess.getFinalStageAccess().getMaxNbGamesEIntParserRuleCall_3_0());\r\n \t\t\t\t\r\n pushFollow(FOLLOW_6);\r\n lv_maxNbGames_3_0=ruleEInt();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFinalStageRule());\r\n \t\t\t\t\t}\r\n \t\t\t\t\tset(\r\n \t\t\t\t\t\tcurrent,\r\n \t\t\t\t\t\t\"maxNbGames\",\r\n \t\t\t\t\t\tlv_maxNbGames_3_0,\r\n \t\t\t\t\t\t\"org.xtext.example.mydsl1.EsportDsl.EInt\");\r\n \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n otherlv_4=(Token)match(input,13,FOLLOW_4); \r\n\r\n \t\t\tnewLeafNode(otherlv_4, grammarAccess.getFinalStageAccess().getLeftParenthesisKeyword_4());\r\n \t\t\r\n // InternalEsportDsl.g:1358:3: ( ( ruleEString ) )\r\n // InternalEsportDsl.g:1359:4: ( ruleEString )\r\n {\r\n // InternalEsportDsl.g:1359:4: ( ruleEString )\r\n // InternalEsportDsl.g:1360:5: ruleEString\r\n {\r\n\r\n \t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getFinalStageRule());\r\n \t\t\t\t\t}\r\n \t\t\t\t\r\n\r\n \t\t\t\t\tnewCompositeNode(grammarAccess.getFinalStageAccess().getTeamsTeamCrossReference_5_0());\r\n \t\t\t\t\r\n pushFollow(FOLLOW_8);\r\n ruleEString();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // InternalEsportDsl.g:1374:3: (otherlv_6= ',' ( ( ruleEString ) ) )*\r\n loop24:\r\n do {\r\n int alt24=2;\r\n int LA24_0 = input.LA(1);\r\n\r\n if ( (LA24_0==14) ) {\r\n alt24=1;\r\n }\r\n\r\n\r\n switch (alt24) {\r\n \tcase 1 :\r\n \t // InternalEsportDsl.g:1375:4: otherlv_6= ',' ( ( ruleEString ) )\r\n \t {\r\n \t otherlv_6=(Token)match(input,14,FOLLOW_4); \r\n\r\n \t \t\t\t\tnewLeafNode(otherlv_6, grammarAccess.getFinalStageAccess().getCommaKeyword_6_0());\r\n \t \t\t\t\r\n \t // InternalEsportDsl.g:1379:4: ( ( ruleEString ) )\r\n \t // InternalEsportDsl.g:1380:5: ( ruleEString )\r\n \t {\r\n \t // InternalEsportDsl.g:1380:5: ( ruleEString )\r\n \t // InternalEsportDsl.g:1381:6: ruleEString\r\n \t {\r\n\r\n \t \t\t\t\t\t\tif (current==null) {\r\n \t \t\t\t\t\t\t\tcurrent = createModelElement(grammarAccess.getFinalStageRule());\r\n \t \t\t\t\t\t\t}\r\n \t \t\t\t\t\t\r\n\r\n \t \t\t\t\t\t\tnewCompositeNode(grammarAccess.getFinalStageAccess().getTeamsTeamCrossReference_6_1_0());\r\n \t \t\t\t\t\t\r\n \t pushFollow(FOLLOW_8);\r\n \t ruleEString();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\t\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop24;\r\n }\r\n } while (true);\r\n\r\n otherlv_8=(Token)match(input,15,FOLLOW_24); \r\n\r\n \t\t\tnewLeafNode(otherlv_8, grammarAccess.getFinalStageAccess().getRightParenthesisKeyword_7());\r\n \t\t\r\n // InternalEsportDsl.g:1400:3: (otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')' )?\r\n int alt26=2;\r\n int LA26_0 = input.LA(1);\r\n\r\n if ( (LA26_0==25) ) {\r\n alt26=1;\r\n }\r\n switch (alt26) {\r\n case 1 :\r\n // InternalEsportDsl.g:1401:4: otherlv_9= 'matchs' otherlv_10= '(' ( (lv_matchs_11_0= ruleMatch ) ) (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )* otherlv_14= ')'\r\n {\r\n otherlv_9=(Token)match(input,25,FOLLOW_6); \r\n\r\n \t\t\t\tnewLeafNode(otherlv_9, grammarAccess.getFinalStageAccess().getMatchsKeyword_8_0());\r\n \t\t\t\r\n otherlv_10=(Token)match(input,13,FOLLOW_25); \r\n\r\n \t\t\t\tnewLeafNode(otherlv_10, grammarAccess.getFinalStageAccess().getLeftParenthesisKeyword_8_1());\r\n \t\t\t\r\n // InternalEsportDsl.g:1409:4: ( (lv_matchs_11_0= ruleMatch ) )\r\n // InternalEsportDsl.g:1410:5: (lv_matchs_11_0= ruleMatch )\r\n {\r\n // InternalEsportDsl.g:1410:5: (lv_matchs_11_0= ruleMatch )\r\n // InternalEsportDsl.g:1411:6: lv_matchs_11_0= ruleMatch\r\n {\r\n\r\n \t\t\t\t\t\tnewCompositeNode(grammarAccess.getFinalStageAccess().getMatchsMatchParserRuleCall_8_2_0());\r\n \t\t\t\t\t\r\n pushFollow(FOLLOW_8);\r\n lv_matchs_11_0=ruleMatch();\r\n\r\n state._fsp--;\r\n\r\n\r\n \t\t\t\t\t\tif (current==null) {\r\n \t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFinalStageRule());\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tadd(\r\n \t\t\t\t\t\t\tcurrent,\r\n \t\t\t\t\t\t\t\"matchs\",\r\n \t\t\t\t\t\t\tlv_matchs_11_0,\r\n \t\t\t\t\t\t\t\"org.xtext.example.mydsl1.EsportDsl.Match\");\r\n \t\t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t\t\t\t\t\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // InternalEsportDsl.g:1428:4: (otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) ) )*\r\n loop25:\r\n do {\r\n int alt25=2;\r\n int LA25_0 = input.LA(1);\r\n\r\n if ( (LA25_0==14) ) {\r\n alt25=1;\r\n }\r\n\r\n\r\n switch (alt25) {\r\n \tcase 1 :\r\n \t // InternalEsportDsl.g:1429:5: otherlv_12= ',' ( (lv_matchs_13_0= ruleMatch ) )\r\n \t {\r\n \t otherlv_12=(Token)match(input,14,FOLLOW_25); \r\n\r\n \t \t\t\t\t\tnewLeafNode(otherlv_12, grammarAccess.getFinalStageAccess().getCommaKeyword_8_3_0());\r\n \t \t\t\t\t\r\n \t // InternalEsportDsl.g:1433:5: ( (lv_matchs_13_0= ruleMatch ) )\r\n \t // InternalEsportDsl.g:1434:6: (lv_matchs_13_0= ruleMatch )\r\n \t {\r\n \t // InternalEsportDsl.g:1434:6: (lv_matchs_13_0= ruleMatch )\r\n \t // InternalEsportDsl.g:1435:7: lv_matchs_13_0= ruleMatch\r\n \t {\r\n\r\n \t \t\t\t\t\t\t\tnewCompositeNode(grammarAccess.getFinalStageAccess().getMatchsMatchParserRuleCall_8_3_1_0());\r\n \t \t\t\t\t\t\t\r\n \t pushFollow(FOLLOW_8);\r\n \t lv_matchs_13_0=ruleMatch();\r\n\r\n \t state._fsp--;\r\n\r\n\r\n \t \t\t\t\t\t\t\tif (current==null) {\r\n \t \t\t\t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getFinalStageRule());\r\n \t \t\t\t\t\t\t\t}\r\n \t \t\t\t\t\t\t\tadd(\r\n \t \t\t\t\t\t\t\t\tcurrent,\r\n \t \t\t\t\t\t\t\t\t\"matchs\",\r\n \t \t\t\t\t\t\t\t\tlv_matchs_13_0,\r\n \t \t\t\t\t\t\t\t\t\"org.xtext.example.mydsl1.EsportDsl.Match\");\r\n \t \t\t\t\t\t\t\tafterParserOrEnumRuleCall();\r\n \t \t\t\t\t\t\t\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n\r\n\r\n \t }\r\n \t break;\r\n\r\n \tdefault :\r\n \t break loop25;\r\n }\r\n } while (true);\r\n\r\n otherlv_14=(Token)match(input,15,FOLLOW_2); \r\n\r\n \t\t\t\tnewLeafNode(otherlv_14, grammarAccess.getFinalStageAccess().getRightParenthesisKeyword_8_4());\r\n \t\t\t\r\n\r\n }\r\n break;\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n \tleaveRule();\r\n\r\n }\r\n\r\n catch (RecognitionException re) {\r\n recover(input,re);\r\n appendSkippedTokens();\r\n }\r\n finally {\r\n }\r\n return current;\r\n }",
"@Override\n\tpublic Integer getPriorityForIntuitiveCreation() {\n\t\treturn null;\n\t}",
"void stageApplicationWithDefaultResourceLimits(File stagingDir);",
"interface DefinitionStages {\n /** The first stage of the Lab definition. */\n interface Blank extends WithLocation {\n }\n /** The stage of the Lab definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location The geo-location where the resource lives.\n * @return the next definition stage.\n */\n WithResourceGroup withRegion(String location);\n }\n /** The stage of the Lab definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the Lab definition which contains all the minimum required properties for the resource to be\n * created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }\n /** The stage of the Lab definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Resource tags..\n *\n * @param tags Resource tags.\n * @return the next definition stage.\n */\n WithCreate withTags(Map<String, String> tags);\n }\n /** The stage of the Lab definition allowing to specify networkProfile. */\n interface WithNetworkProfile {\n /**\n * Specifies the networkProfile property: The network profile for the lab, typically applied via a lab plan.\n * This profile cannot be modified once a lab has been created..\n *\n * @param networkProfile The network profile for the lab, typically applied via a lab plan. This profile\n * cannot be modified once a lab has been created.\n * @return the next definition stage.\n */\n WithCreate withNetworkProfile(LabNetworkProfile networkProfile);\n }\n /** The stage of the Lab definition allowing to specify autoShutdownProfile. */\n interface WithAutoShutdownProfile {\n /**\n * Specifies the autoShutdownProfile property: The resource auto shutdown configuration for the lab. This\n * controls whether actions are taken on resources that are sitting idle..\n *\n * @param autoShutdownProfile The resource auto shutdown configuration for the lab. This controls whether\n * actions are taken on resources that are sitting idle.\n * @return the next definition stage.\n */\n WithCreate withAutoShutdownProfile(AutoShutdownProfile autoShutdownProfile);\n }\n /** The stage of the Lab definition allowing to specify connectionProfile. */\n interface WithConnectionProfile {\n /**\n * Specifies the connectionProfile property: The connection profile for the lab. This controls settings such\n * as web access to lab resources or whether RDP or SSH ports are open..\n *\n * @param connectionProfile The connection profile for the lab. This controls settings such as web access to\n * lab resources or whether RDP or SSH ports are open.\n * @return the next definition stage.\n */\n WithCreate withConnectionProfile(ConnectionProfile connectionProfile);\n }\n /** The stage of the Lab definition allowing to specify virtualMachineProfile. */\n interface WithVirtualMachineProfile {\n /**\n * Specifies the virtualMachineProfile property: The profile used for creating lab virtual machines..\n *\n * @param virtualMachineProfile The profile used for creating lab virtual machines.\n * @return the next definition stage.\n */\n WithCreate withVirtualMachineProfile(VirtualMachineProfile virtualMachineProfile);\n }\n /** The stage of the Lab definition allowing to specify securityProfile. */\n interface WithSecurityProfile {\n /**\n * Specifies the securityProfile property: The lab security profile..\n *\n * @param securityProfile The lab security profile.\n * @return the next definition stage.\n */\n WithCreate withSecurityProfile(SecurityProfile securityProfile);\n }\n /** The stage of the Lab definition allowing to specify rosterProfile. */\n interface WithRosterProfile {\n /**\n * Specifies the rosterProfile property: The lab user list management profile..\n *\n * @param rosterProfile The lab user list management profile.\n * @return the next definition stage.\n */\n WithCreate withRosterProfile(RosterProfile rosterProfile);\n }\n /** The stage of the Lab definition allowing to specify labPlanId. */\n interface WithLabPlanId {\n /**\n * Specifies the labPlanId property: The ID of the lab plan. Used during resource creation to provide\n * defaults and acts as a permission container when creating a lab via labs.azure.com. Setting a labPlanId\n * on an existing lab provides organization...\n *\n * @param labPlanId The ID of the lab plan. Used during resource creation to provide defaults and acts as a\n * permission container when creating a lab via labs.azure.com. Setting a labPlanId on an existing lab\n * provides organization..\n * @return the next definition stage.\n */\n WithCreate withLabPlanId(String labPlanId);\n }\n /** The stage of the Lab definition allowing to specify title. */\n interface WithTitle {\n /**\n * Specifies the title property: The title of the lab..\n *\n * @param title The title of the lab.\n * @return the next definition stage.\n */\n WithCreate withTitle(String title);\n }\n /** The stage of the Lab definition allowing to specify description. */\n interface WithDescription {\n /**\n * Specifies the description property: The description of the lab..\n *\n * @param description The description of the lab.\n * @return the next definition stage.\n */\n WithCreate withDescription(String description);\n }\n }",
"interface WithCreate\n extends DefinitionStages.WithTags,\n DefinitionStages.WithNetworkProfile,\n DefinitionStages.WithAutoShutdownProfile,\n DefinitionStages.WithConnectionProfile,\n DefinitionStages.WithVirtualMachineProfile,\n DefinitionStages.WithSecurityProfile,\n DefinitionStages.WithRosterProfile,\n DefinitionStages.WithLabPlanId,\n DefinitionStages.WithTitle,\n DefinitionStages.WithDescription {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n Lab create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n Lab create(Context context);\n }",
"public CStage() {\r\n\t\tkeysDown = new HashSet<Integer>();\r\n\t}",
"interface Definition\n extends DefinitionStages.Blank,\n DefinitionStages.WithResourceGroup,\n DefinitionStages.WithLevel,\n DefinitionStages.WithCreate {\n }",
"public void createStage(String name, int maxViewers) throws FileNotFoundException, IOException, ClassNotFoundException {\r\n\t\tgetOldFile();\r\n\t\tboolean stageTest = false;\r\n\t\tfor (int i = 0; i <stages.size();i++){\r\n\t\t\tif (name.equals(stages.get(i).getName())){\r\n\t\t\t\tstageTest = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (stageTest == true){\r\n\t\t\tmain.dubStage();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\t stages.add(new Stage(name, maxViewers));\r\n\t\t\t\t\tmain.noDubStage();\r\n\t\t\t\t}\r\n\t\tupdate();\r\n\t}",
"OperationalizingSoftgoal createOperationalizingSoftgoal();",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }",
"public Stage getPrimaryStage() {\n return primaryStage;\n }"
] | [
"0.572877",
"0.52146095",
"0.5017",
"0.4962895",
"0.4927009",
"0.4898425",
"0.4853137",
"0.4839596",
"0.48201838",
"0.48163256",
"0.4791236",
"0.47763327",
"0.4726843",
"0.46849948",
"0.46383747",
"0.46211022",
"0.45972043",
"0.45886526",
"0.45691797",
"0.45569167",
"0.453282",
"0.4494422",
"0.4481691",
"0.44739926",
"0.44652358",
"0.43765622",
"0.43685013",
"0.43619487",
"0.43605527",
"0.43310317",
"0.43132406",
"0.43131885",
"0.431053",
"0.4306115",
"0.43030152",
"0.4301806",
"0.4265944",
"0.42521885",
"0.4245501",
"0.424255",
"0.4240944",
"0.42405888",
"0.42391336",
"0.42181322",
"0.42090893",
"0.41974238",
"0.41961032",
"0.419488",
"0.41947818",
"0.41854966",
"0.41686383",
"0.4157355",
"0.41533056",
"0.41452795",
"0.4134287",
"0.41284958",
"0.41219237",
"0.41151583",
"0.4112881",
"0.41110387",
"0.4105028",
"0.4102843",
"0.40966648",
"0.4093996",
"0.40816823",
"0.40774733",
"0.406941",
"0.4063707",
"0.4043739",
"0.4043632",
"0.40430403",
"0.40354443",
"0.40307564",
"0.40215358",
"0.40193793",
"0.40154693",
"0.40154693",
"0.4009715",
"0.40070128",
"0.4006399",
"0.4005409",
"0.40052533",
"0.40048167",
"0.40040997",
"0.400216",
"0.39991894",
"0.39960817",
"0.3986289",
"0.39830434",
"0.39824295",
"0.39709368",
"0.39642206",
"0.3961982",
"0.3961525",
"0.3961525",
"0.3961525",
"0.3961525",
"0.3961525",
"0.3961525",
"0.3961525"
] | 0.62506104 | 0 |
Returns a completion stage, which is complete when all the completion stages are complete. The lists of each stage are flat mapped into one list, so that the returned stage has one accumulated list. | public static <T> CompletionStage<List<T>> allOf(final Collection<? extends CompletionStage<List<T>>> stages) {
// First convert the list of stages to an array of CompletableFuture.
// Then use CompletableFuture.allOf to combine them all.
return CompletableFuture.allOf(stages.stream().map(CompletionStage::toCompletableFuture).collect(Collectors.toList()).toArray(new CompletableFuture[stages.size()]))
.thenApply(result ->
stages.stream()
// Get the result of each future (List<T>)
.map(stage -> stage.toCompletableFuture().join())
// Map the List<List<T>> to one stream
.flatMap(Collection::stream)
// Collect all items into one list.
.collect(Collectors.toList()));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<com.google.container.v1beta1.OperationProgress> getStagesList();",
"private Optional<List<Stage>> toStages(Holder.Stage stage) {\n if (stage.isSyntheticStage()) {\n log.debug(\"Discarding synthetic stage\");\n return Optional.empty();\n }\n\n Status stageStatus =\n Status.valueOf(parseEnum(Status.getDescriptor(), stage.getStatus().toUpperCase()));\n Stage.Builder stageBuilder = Stage.newBuilder().setType(stage.getType()).setStatus(stageStatus);\n\n List<Stage> returnList = new ArrayList<>();\n String cloudProvider = stage.getContext().getCloudProvider();\n if (StringUtils.isNotEmpty(cloudProvider)) {\n stageBuilder.setCloudProvider(toCloudProvider(cloudProvider));\n returnList.add(stageBuilder.build());\n } else if (StringUtils.isNotEmpty(stage.getContext().getNewState().getCloudProviders())) {\n // Create and Update Application operations can specify multiple cloud providers in 1\n // operation.\n String[] cloudProviders = stage.getContext().getNewState().getCloudProviders().split(\",\");\n for (String cp : cloudProviders) {\n returnList.add(stageBuilder.clone().setCloudProvider(toCloudProvider(cp)).build());\n }\n } else {\n returnList.add(stageBuilder.build());\n }\n\n return Optional.of(returnList);\n }",
"public Collection<String> get_stages() {\r\n\t\t// Get all available stages\r\n\t\tFunctionalGroup g = controller.getSelectedFunctionalGroup();\r\n\t\tif (g != null) {\r\n\t\t\tCollection<String> stages = g.getStageNames();\r\n\t\t\tArrayList<String> stage_names = new ArrayList<String>();\r\n\t\t\tfor (String s : stages) {\r\n\t\t\t\tstage_names.add(s);\r\n\t\t\t}\r\n\t\t\t// Alphabetise them\r\n\t\t\tCollections.sort(stage_names);\r\n\t\t\treturn stage_names;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public List<Set<FlowTableOperation>> stages() {\n return stages;\n }",
"java.util.List<? extends com.google.container.v1beta1.OperationProgressOrBuilder>\n getStagesOrBuilderList();",
"public static <T> CompletionStage<T> combine(\n Function<CombinedFutures, T> function, List<? extends CompletionStage<?>> stages) {\n @SuppressWarnings(\"unchecked\") // generic array creation\n final CompletableFuture<?>[] all = new CompletableFuture[stages.size()];\n for (int i = 0; i < stages.size(); i++) {\n all[i] = stages.get(i).toCompletableFuture();\n }\n return CompletableFuture.allOf(all).thenApply(ignored -> function.apply(new CombinedFutures(stages)));\n }",
"public static <T> CompletionStage<List<T>> all(List<CompletionStage<T>> futures) {\n return CompletableFuture\n .allOf(futures\n .stream()\n .map(CompletionStage::toCompletableFuture)\n .collect(Collectors.toList())\n .toArray(new CompletableFuture[0]))\n .thenApply(done -> futures.stream()\n .map(CompletionStage::toCompletableFuture)\n .map(f -> {\n try {\n return (T) f.get();\n } catch (Exception e) {\n return null;\n }\n })\n .filter(Objects::nonNull)\n .collect(Collectors.toList()));\n }",
"public Structure[] getBuildingsOnStage(){\n\t\treturn this.buildings;\n\t}",
"@Override\n public CompletionStage<T> minimalCompletionStage() {\n return context.withContextCapture(f.minimalCompletionStage());\n }",
"public int getStagesCompleted() {\r\n\t\treturn stagesCompleted;\r\n\t}",
"private void closeStage() {\n ImmutableSet<FlowTableOperation> stage = currentStage.build();\n if (!stage.isEmpty()) {\n listBuilder.add(stage);\n }\n }",
"public static <T> CompletionStage<T> combine(\n Function<CombinedFutures, T> function, CompletionStage<?>... stages) {\n return combine(function, Arrays.asList(stages));\n }",
"public int getNumberCompletedStages() {\r\n\t\treturn this.stagesCompleted;\r\n\t}",
"com.google.container.v1beta1.OperationProgress getStages(int index);",
"com.google.container.v1beta1.OperationProgressOrBuilder getStagesOrBuilder(int index);",
"public ReportResult validateStages() {\n\t\tReportResult report = new ReportResult(scriptName + \" Script Report\");\n\n\t\tLocation lastApplicableLocation; // The last location that the entity was moved to\n\t\tif (getActionsForStage(1).containsKey(StageAction.START)) {\n\t\t\treport.addCheckMessage(\"Stage 1 contains a starting point for the entity\", ResultType.SUCCESS);\n\t\t\tlastApplicableLocation = ((LocationComponent) getActionsForStage(1).get(StageAction.START)).getValue();\n\t\t} else {\n\t\t\treport.addCheckMessage(\"Stage 1 does NOT contain a starting point for the entity\", ResultType.ERROR);\n\t\t\treturn report; // Further validation requires a starting position as reference\n\t\t}\n\n\t\tfor (int i = 1; i <= amountOfStages; i++) {\n\t\t\tMap<StageAction, StageComponent> actions = getActionsForStage(i);\n\n\t\t\tif (actions.isEmpty()) {\n\t\t\t\treport.addCheckMessage(\"Stage \" + i + \" is redundant: Has no actions\", ResultType.WARN);\n\t\t\t\tcontinue; // Without any actions, there is nothing more to validate here\n\t\t\t}\n\n\t\t\tint stopActionOccurrences = 0;\n\t\t\tfor (StageAction action : actions.keySet()) {\n\t\t\t\tif (action.equals(StageAction.WALK_TO)) {\n\t\t\t\t\tLocation location = ((LocationComponent) actions.get(action)).getValue();\n\t\t\t\t\tif (location.distance(lastApplicableLocation) > 20) {\n\t\t\t\t\t\treport.addCheckMessage(\"A \" + StageAction.WALK_TO.name()\n\t\t\t\t\t\t\t\t\t\t+ \" (Stage \" + i + \") action is more than 20 blocks from the last location, \"\n\t\t\t\t\t\t\t\t\t\t+ \"which will cause an execution error\",\n\t\t\t\t\t\t\t\tResultType.ERROR);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport.addCheckMessage(\n\t\t\t\t\t\t\t\t\"The entity at Stage \" + i + \" walks no more than 20 blocks from the last location\",\n\t\t\t\t\t\t\t\tResultType.SUCCESS);\n\t\t\t\t\t}\n\n\t\t\t\t\tlastApplicableLocation = location;\n\t\t\t\t} else if (action.equals(StageAction.STOP)) {\n\t\t\t\t\tstopActionOccurrences++;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (stopActionOccurrences == 0) {\n\t\t\t\treport.addCheckMessage(\"The script has no stop action meaning the entity won't despawn\",\n\t\t\t\t\t\tResultType.WARN);\n\t\t\t} else if (stopActionOccurrences > 1) {\n\t\t\t\treport.addCheckMessage(\"The script has a redundant stop action: More than 1 stop action found\",\n\t\t\t\t\t\tResultType.WARN);\n\t\t\t} else {\n\t\t\t\treport.addCheckMessage(\"There is a single stop action to end the script properly\", ResultType.SUCCESS);\n\t\t\t}\n\t\t}\n\n\t\treturn report;\n\t}",
"private List<StepResult> resolveStepResultList() {\n List<ScenarioRun> scenarioRuns = returnLastScenarioDefinition().getScenarioRunList();\n ScenarioRun lastRun = Iterables.getLast(scenarioRuns);\n\n if (lastRun.getBackgroundStepResults().size() < backgroundStepsCount) {\n return lastRun.getBackgroundStepResults();\n }\n\n return lastRun.getScenarioStepResults();\n }",
"private static List<TypeName> allVisitorBuilderStages(\n ClassName enclosingClass, Map<FieldDefinition, TypeName> memberTypeMap, TypeVariableName visitResultType) {\n return Stream.concat(sortedStageNameTypePairs(memberTypeMap).map(p -> p.memberName), Stream.of(COMPLETED))\n .map(stageName -> visitorStageInterfaceName(enclosingClass, stageName))\n .map(stageType -> ParameterizedTypeName.get(stageType, visitResultType))\n .collect(Collectors.toList());\n }",
"public ArrayList getStages();",
"private static URI findCancelableLeafStage(StageInfo stage)\n {\n if (stage.getLatestAttemptExecutionInfo().getState().isDone()) {\n return null;\n }\n\n // attempt to find a cancelable sub stage\n // check in reverse order since build side of a join will be later in the list\n for (StageInfo subStage : Lists.reverse(stage.getSubStages())) {\n URI leafStage = findCancelableLeafStage(subStage);\n if (leafStage != null) {\n return leafStage;\n }\n }\n\n // no matching sub stage, so return this stage\n return stage.getSelf();\n }",
"public final CountedCompleter<?> nextComplete()\n/* */ {\n/* */ CountedCompleter localCountedCompleter;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 675 */ if ((localCountedCompleter = this.completer) != null) {\n/* 676 */ return localCountedCompleter.firstComplete();\n/* */ }\n/* 678 */ quietlyComplete();\n/* 679 */ return null;\n/* */ }",
"@DISPID(18)\r\n\t// = 0x12. The runtime will prefer the VTID if present\r\n\t@VTID(20)\r\n\tjava.lang.String completionStatus();",
"public final CountedCompleter<?> firstComplete()\n/* */ {\n/* */ int i;\n/* */ \n/* */ \n/* */ do\n/* */ {\n/* 649 */ if ((i = this.pending) == 0)\n/* 650 */ return this;\n/* 651 */ } while (!U.compareAndSwapInt(this, PENDING, i, i - 1));\n/* 652 */ return null;\n/* */ }",
"public boolean canBuildNextStage() {\r\n\t\tSystem.out.print(\"Checking if \" + stages[stagesCompleted]\r\n\t\t\t\t+ \" can be built:\");\r\n\t\tSimpleResList costSRL = SimpleResList\r\n\t\t\t\t.buildCostList(stages[stagesCompleted]);\r\n\t\tSystem.out\r\n\t\t\t\t.println((canBuildStage(stages[stagesCompleted], costSRL) ? \" true \"\r\n\t\t\t\t\t\t: \" false \"));\r\n\t\t// TODO needs code to see if there is enough money to buy the goods from\r\n\t\t// the neighbors(if they have the goods).....look buildCommandOptions\r\n\t\treturn canBuildStage(stages[stagesCompleted], costSRL); // this is only\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// checking to\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// see if this\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// board can\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// afford it\r\n\t}",
"public final void tryComplete()\n/* */ {\n/* 574 */ CountedCompleter localCountedCompleter1 = this;CountedCompleter localCountedCompleter2 = localCountedCompleter1;\n/* */ int i;\n/* 576 */ do { while ((i = localCountedCompleter1.pending) == 0) {\n/* 577 */ localCountedCompleter1.onCompletion(localCountedCompleter2);\n/* 578 */ if ((localCountedCompleter1 = (localCountedCompleter2 = localCountedCompleter1).completer) == null) {\n/* 579 */ localCountedCompleter2.quietlyComplete();\n/* 580 */ return;\n/* */ }\n/* */ }\n/* 583 */ } while (!U.compareAndSwapInt(localCountedCompleter1, PENDING, i, i - 1));\n/* */ }",
"public SPResponse completeAction(User user, Object[] params) {\n final SPResponse resp = new SPResponse();\n \n final String actionPlanId = (String) params[0];\n final String stepId = (String) params[1];\n final String uid = (String) params[2];\n final boolean completed = (boolean) params[3];\n \n Assert.hasText(actionPlanId, \"Organization Plan id is required.\");\n Assert.hasText(uid, \"UID uinique id is required.\");\n \n // get the users action plan\n UserActionPlan userActionPlan = actionPlanFactory.getUserActionPlan(user);\n \n // Removing this check as with action plans they can now complet any action plan\n // validate if the action plan is what the user is working on\n // final String selectedActionPlan = userActionPlan.getSelectedActionPlan();\n // if (!StringUtils.equals(selectedActionPlan, actionPlanId)) {\n // throw new DashboardRedirectException(\"Organization Plan not currently selected by user.\");\n // }\n \n // validate the action plan\n ActionPlanDao actionPlan = getActionPlan(actionPlanId);\n \n // validate if the uid is still applicable\n if (completed) {\n if (!actionPlan.validateUID(stepId, uid)) {\n throw new DashboardRedirectException(MessagesHelper.getMessage(\"service.growl.message5\"));\n }\n }\n \n // Marking the action complete or removing it from the completion list\n ActionPlanProgress actionPlanProgress = userActionPlan.addCompletion(actionPlanId, stepId, uid,\n completed);\n \n UserTodoRequests userTodoRequests = todoFactory.getUserTodoRequests(user);\n if (actionPlan.getStepType() == StepType.TimeBasedWithCompletion) {\n final Set<String> completedActions = actionPlanProgress.getCompletedActions(stepId);\n boolean noActionLeft = checkIfAllStepActionsCompleted(stepId, completedActions);\n TodoRequest todoRequest = userTodoRequests.findRequest(stepId, actionPlanId);\n if (noActionLeft || todoRequest == null) {\n int sizeBefore = actionPlanProgress.getCompletedActionsForStep().size();\n actionPlanFactory.addUpdateActionPlanProgress(user, userActionPlan, actionPlan,\n Operation.UPDATE);\n int sizeAfter = actionPlanProgress.getCompletedActionsForStep().size();\n if (sizeAfter != sizeBefore) {\n resp.add(Constants.PARAM_ACTION_PLAN_ENABLE_NEXT_STEP, true);\n }\n userTodoRequests = todoFactory.getUserTodoRequests(user);\n }\n } else {\n if (actionPlanProgress.getCompletedCount() == actionPlan.getActionCount()) {\n todoFactory.removeAllTasksWithParentId(user, actionPlanId, userTodoRequests);\n } else {\n ParentTodoTaskRequests parentTodoTaskRequest = userTodoRequests\n .getParentTodoTaskRequest(actionPlanId);\n if (parentTodoTaskRequest == null) {\n actionPlanFactory.addUpdateActionPlanProgress(user, userActionPlan, actionPlan,\n Operation.UPDATE);\n userTodoRequests = todoFactory.getUserTodoRequests(user);\n }\n }\n }\n \n // update the changed data to the repository\n actionPlanFactory.updateUserActionPlan(userActionPlan);\n \n // update the tasks\n ParentTodoTaskRequests parentTodoTaskRequest = userTodoRequests\n .getParentTodoTaskRequest(actionPlanId);\n if (parentTodoTaskRequest != null) {\n todoFactory.updateTask(user, actionPlanId);\n }\n \n // update the badge\n badgeFactory.updateBadgeProgress(user, actionPlanId, BadgeType.OrgPlan, actionPlan);\n return resp.isSuccess();\n }",
"public List<Step> getCompletedSteps() {\n List<Step> completed = new ArrayList<>();\n for (Step step : m_steps) {\n if (step.isCompleted()) {\n completed.add(step);\n }\n }\n return completed;\n }",
"private boolean isCompleted(final String stage) {\n return mRegistrationResponse != null && mRegistrationResponse.completed != null && mRegistrationResponse.completed.contains(stage);\n }",
"public void chooseOptionMarkAsCompleteOnBulkActionsDropDown() {\n try {\n getLogger().info(\"Choose option: Mark as complete\");\n optionMarkAsComplete.click();\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.PASSED, null);\n } catch (Exception ex) {\n getLogger().info(ex);\n AbstractService.sStatusCnt++;\n NXGReports.addStep(\"Choose option: Mark as complete.\", LogAs.FAILED, new CaptureScreen(CaptureScreen.ScreenshotOf.BROWSER_PAGE));\n }\n\n }",
"private List<OrganizationStage> extractOrganizationStagesFromResult(ResultSet resultSet) throws Exception {\n\t\tList<OrganizationStage> result = new ArrayList<OrganizationStage>();\n\t\t// process the groups\n\t\t//\n\t\t\n\t\t// extract the main data about the organization\n\t\twhile (resultSet.next()) {\n\t\t\tOrganizationStage organizationStage = new OrganizationStage();\n\n\t\t\tlong id = resultSet.getLong(\"id\");\n\t\t\tString stageName = resultSet.getString(\"name\");\n\t\t\tString stageValue = resultSet.getString(\"value\");\n\t\t\tString stageColorHexValue = resultSet.getString(\"color_hex_code\");\n\t\t\tint orderIndex = resultSet.getInt(\"order_index\");\n\t\t\tlong organizationId = resultSet.getInt(\"org_id\");\n \n // Populate the entity\n //\n \n // populate Stage Data\n organizationStage.setId(id);\n organizationStage.setName(stageName);\n organizationStage.setValue(stageValue);\n organizationStage.setColorHexCode(stageColorHexValue);\n organizationStage.setOrderIndex(orderIndex);\n organizationStage.setOrgID(organizationId);\n \n // add the user to the list\n result.add(organizationStage);\n }\n\t\treturn result;\n\t}",
"public java.util.List<WorldUps.UFinished> getCompletionsList() {\n return completions_;\n }",
"public boolean isComplete() {\r\n for (GoalInterface g: goals) {\r\n if (type == GoalType.AND && !g.isComplete()) {\r\n return false;\r\n } else if (type == GoalType.OR && g.isComplete()) {\r\n return true;\r\n }\r\n }\r\n\r\n if (type == GoalType.AND) {\r\n return true;\r\n } else if (type == GoalType.OR) {\r\n return false;\r\n }\r\n return false;\r\n }",
"public Builder newStage() {\n closeStage();\n currentStage = ImmutableSet.builder();\n return this;\n }",
"private static <T> CompletableFuture<List<T>> flatten(List<CompletableFuture<T>> futures) {\n return CompletableFuture\n .allOf(futures.toArray(new CompletableFuture[futures.size()]))\n .thenApply(value -> futures.stream()\n .map(CompletableFuture::join)\n .collect(Collectors.toList()));\n }",
"public java.util.List<WorldUps.UFinished> getCompletionsList() {\n if (completionsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(completions_);\n } else {\n return completionsBuilder_.getMessageList();\n }\n }",
"public List<E> results() throws Exception {\n List<E> result = new ArrayList<>(futures.size());\n for (CompletionStage<E> f : futures) {\n result.add(f.toCompletableFuture().get());\n }\n return result;\n }",
"public ListOfStepList refine_StepList()\n { //When the inside stepList is a non-empty stepList\n if(!this.isEmptyStepList())\n { //If it is a Unknown structure, or a UnknownRest structure\n if(!this.step.sim().isComplete())\n { //If there is still some steps after, for example it is a Unknown structure\n //Refine this step and combine each of them to the rest steps\n // newStep1----+ \n // | \n // newStep2----+----this.rest \n // | \n // newStep3----+ \n if(!this.rest.isEmptyStepList())\n { return this.rest.combine_StepList(this.step.refine());}\n //If there is no any step after\n else\n { if(!(this.step instanceof UnknownRest))\n { return this.rest.combine_StepList(this.step.refine());} \n else{ return release(this.step.refine());} \n }\n }\n //If it is a deletion or insertion\n //It will be kept as the first step in this stepList\n //and it will be added to be the first step of each stepList generated by this.rest.refine_StepList()\n // +----restStepList1\n // |\n //this.step---+----restStepList2\n // |\n // +----restStepList3\n else{ return extend_StepList(this.step, this.rest.refine_StepList());}\n }\n else return new ListOfStepList(); \n }",
"public int getNumberOfStages() {\r\n\t\treturn stages.length;\r\n\t}",
"public void addNewStage() {\n\t\tif (stage != 0 && getCurrentActions().isEmpty()) { // This should be validated by the command\n\t\t\tthrow new IllegalStateException(\"Cannot progress stage without actions\");\n\t\t}\n\n\t\tstage = amountOfStages\n\t\t\t\t+ 1; // The stage that is being edited may not be the latest so make sure not to duplicate\n\t\tamountOfStages++;\n\t\tstagesOfActions.putIfAbsent(stage, new LinkedHashMap<>());\n\t\tstageJsons.putIfAbsent(stage, new JsonObject());\n\t}",
"private void updateCompletionTime()\n\t{\n\t\tfor (Map.Entry<Tab, Set<FarmingPatch>> tab : farmingWorld.getTabs().entrySet())\n\t\t{\n\t\t\tlong extremumCompletionTime = config.preferSoonest() ? Long.MAX_VALUE : 0;\n\t\t\tboolean allUnknown = true;\n\t\t\tboolean allEmpty = true;\n\n\t\t\tfor (FarmingPatch patch : tab.getValue())\n\t\t\t{\n\t\t\t\tPatchPrediction prediction = predictPatch(patch);\n\t\t\t\tif (prediction == null || prediction.getProduce().getItemID() < 0)\n\t\t\t\t{\n\t\t\t\t\tcontinue; // unknown state\n\t\t\t\t}\n\n\t\t\t\tallUnknown = false;\n\n\t\t\t\tif (prediction.getProduce() != Produce.WEEDS && prediction.getProduce() != Produce.SCARECROW)\n\t\t\t\t{\n\t\t\t\t\tallEmpty = false;\n\n\t\t\t\t\t// update max duration if this patch takes longer to grow\n\t\t\t\t\tif (config.preferSoonest())\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.min(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\textremumCompletionTime = Math.max(extremumCompletionTime, prediction.getDoneEstimate());\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfinal SummaryState state;\n\t\t\tfinal long completionTime;\n\n\t\t\tif (allUnknown)\n\t\t\t{\n\t\t\t\tstate = SummaryState.UNKNOWN;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (allEmpty)\n\t\t\t{\n\t\t\t\tstate = SummaryState.EMPTY;\n\t\t\t\tcompletionTime = -1L;\n\t\t\t}\n\t\t\telse if (extremumCompletionTime <= Instant.now().getEpochSecond())\n\t\t\t{\n\t\t\t\tstate = SummaryState.COMPLETED;\n\t\t\t\tcompletionTime = 0;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tstate = SummaryState.IN_PROGRESS;\n\t\t\t\tcompletionTime = extremumCompletionTime;\n\t\t\t}\n\t\t\tsummaries.put(tab.getKey(), state);\n\t\t\tcompletionTimes.put(tab.getKey(), completionTime);\n\t\t}\n\t}",
"public List<String> getSequentialPlan() {\n // ==========================================\n // Computing the (cheapest) sequence of steps\n // ==========================================\n \n // Maps of steps and cost from the global state s to the others\n Map<GlobalState,List<Step>> steps = new HashMap();\n steps.put(current,new ArrayList());\n Map<GlobalState,Integer> costs = new HashMap();\n costs.put(current,0);\n // List of visited states\n List<GlobalState> visited = new ArrayList();\n visited.add(current);\n\n // List of global states still to be visited\n List<GlobalState> toBeVisited = new ArrayList();\n \n // Adding the states reachable from start to \"toBeVisited\"\n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations towards \"next\" \n List<Step> stepSeq = new ArrayList();\n stepSeq.add(step);\n steps.put(next,stepSeq);\n // Adding the cost of the sequence of operation towards \"next\"\n costs.put(next,step.getCost());\n toBeVisited.add(next);\n }\n \n // Exploring the graph of global states by exploiting \"toBeVisited\"\n while(toBeVisited.size() > 0) {\n // Removing the first global state to be visited and marking it\n // as visited\n GlobalState current = toBeVisited.remove(0);\n visited.add(current);\n \n for(Step step : current.getSteps()) {\n GlobalState next = step.getNextGlobalState();\n // Adding the sequence of operations from \"start\" to \"next\"\n // (if more convenient)\n int nextCost = costs.get(current) + step.getCost();\n if(visited.contains(next)) {\n // If current path is cheaper, updates \"steps\" and \"costs\"\n if(costs.get(next) > nextCost) {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next,nextCost);\n }\n } else {\n List<Step> stepSeq = new ArrayList();\n stepSeq.addAll(steps.get(current));\n stepSeq.add(step);\n steps.put(next,stepSeq);\n costs.put(next, nextCost);\n if(!(toBeVisited.contains(next))) toBeVisited.add(next);\n }\n }\n }\n \n // ====================================================\n // Computing the sequence of operations from \"s\" to \"t\"\n // ====================================================\n // If no plan is available, return null\n if(steps.get(target) == null) \n return null;\n // Otherwise, return the corresponding sequence of operations\n List<String> opSequence = new ArrayList();\n for(Step step : steps.get(target)) {\n if(!(step.getReason().contains(Step.handling))) {\n opSequence.add(step.getReason());\n }\n }\n return opSequence;\n }",
"public static <R, A, B, C, D, E, F> CompletionStage<R> combine(\n CompletionStage<A> a, CompletionStage<B> b, CompletionStage<C> c,\n CompletionStage<D> d, CompletionStage<E> e, CompletionStage<F> f,\n Function6<A, B, C, D, E, F, R> function) {\n final CompletableFuture<A> af = a.toCompletableFuture();\n final CompletableFuture<B> bf = b.toCompletableFuture();\n final CompletableFuture<C> cf = c.toCompletableFuture();\n final CompletableFuture<D> df = d.toCompletableFuture();\n final CompletableFuture<E> ef = e.toCompletableFuture();\n final CompletableFuture<F> ff = f.toCompletableFuture();\n\n return CompletableFuture.allOf(af, bf, cf, df, ef, ff)\n .thenApply(ignored ->\n function.apply(af.join(),\n bf.join(),\n cf.join(),\n df.join(),\n ef.join(),\n ff.join()));\n }",
"public boolean isComplete() {\n return addedFrontWork.size() == 0 && addedBackWork.size() == 0 && sawAllDone.get();\n }",
"public ListOfStepList combine_StepList(CandidatesList cands)\n { if(!cands.isEmptyCandidatesList())\n { return combine_StepList(cands.restCands()).insert(new StepList(cands.fstDelta(),this));} \n else{ return new ListOfStepList();}\n }",
"@Override public final void onCompletion( CountedCompleter caller ) {\n // Reduce results into 'this' so they collapse going up the execution tree.\n // NULL out child-references so we don't accidentally keep large subtrees\n // alive since each one may be holding large partial results.\n reduce2(_left); _left = null;\n reduce2(_rite); _rite = null;\n // Only on the top local call, have more completion work\n if( _topLocal ) postLocal();\n }",
"public LinkedBlockingQueue<Run> getCompletedRuns() {\n\t\treturn new LinkedBlockingQueue<Run>(completedRuns);\n\t}",
"void complete();",
"void complete();",
"public Boolean isComplete() {\n return true;\n }",
"java.util.List<WorldUps.UFinished> \n getCompletionsList();",
"public final void propagateCompletion()\n/* */ {\n/* 598 */ CountedCompleter localCountedCompleter1 = this;CountedCompleter localCountedCompleter2 = localCountedCompleter1;\n/* */ int i;\n/* 600 */ do { while ((i = localCountedCompleter1.pending) == 0) {\n/* 601 */ if ((localCountedCompleter1 = (localCountedCompleter2 = localCountedCompleter1).completer) == null) {\n/* 602 */ localCountedCompleter2.quietlyComplete();\n/* 603 */ return;\n/* */ }\n/* */ }\n/* 606 */ } while (!U.compareAndSwapInt(localCountedCompleter1, PENDING, i, i - 1));\n/* */ }",
"public abstract Collection<Node> getAllSuccessors();",
"public void reportCompletion(NodeT completed) {\n completed.setPreparer(true);\n String dependency = completed.key();\n for (String dependentKey : nodeTable.get(dependency).dependentKeys()) {\n DAGNode<DataT, NodeT> dependent = nodeTable.get(dependentKey);\n dependent.lock().lock();\n try {\n dependent.onSuccessfulResolution(dependency);\n if (dependent.hasAllResolved()) {\n queue.add(dependent.key());\n }\n } finally {\n dependent.lock().unlock();\n }\n }\n }",
"@Issue(\"JENKINS-38536\")\n @Test\n public void testPartlyCompletedParallels() throws Exception {\n String jobScript = \"\"+\n \"echo 'first stage'\\n\" +\n \"parallel 'long' : { sleep 60; }, \\n\" + // Needs to be in-progress\n \" 'short': { sleep 2; }\"; // Needs to have completed, and SemaphoreStep alone doesn't cut it\n\n // This must be amateur science fiction because the exposition for the setting goes on FOREVER\n ForkScanner scan = new ForkScanner();\n TestVisitor tv = new TestVisitor();\n WorkflowJob job = r.jenkins.createProject(WorkflowJob.class, \"parallelTimes\");\n job.setDefinition(new CpsFlowDefinition(jobScript, true));\n WorkflowRun run = job.scheduleBuild2(0).getStartCondition().get();\n Thread.sleep(4000); // Allows enough time for the shorter branch to finish and write its BlockEndNode\n FlowExecution exec = run.getExecution();\n List<FlowNode> heads = exec.getCurrentHeads();\n scan.setup(heads);\n scan.visitSimpleChunks(tv, new NoOpChunkFinder());\n FlowNode endNode = exec.getNode(tv.filteredCallsByType(TestVisitor.CallType.PARALLEL_END).get(0).getNodeId().toString());\n Assert.assertEquals(\"sleep\", endNode.getDisplayFunctionName());\n sanityTestIterationAndVisiter(heads);\n run.doKill(); // Avoid waiting for long branch completion\n }",
"public java.util.List<WorldUps.UFinished.Builder> \n getCompletionsBuilderList() {\n return getCompletionsFieldBuilder().getBuilderList();\n }",
"public CascadeAccumulator[] executeInitialStage() {\n int indexCntKeptDocs = 0;\n\n // Clear priority queue.\n mSortedAccumulators.clear();\n\n // Cliques associated with the MRF.\n List<Clique> cliques = mMRF.getCliques();\n\n if (cliques.size() == 0) {\n throw new RetrievalException(\"Shouldn't have size 0!\");\n }\n\n // Current accumulator.\n CascadeAccumulator a = mAccumulators[0];\n\n // Maximum possible score that this MRF can achieve.\n float mrfMaxScore = 0.0f;\n for (Clique c : cliques) {\n if (!((((CascadeClique) c).getParamID()).equals(\"termWt\"))) {\n System.out\n .println(\"In this faster cascade implementation, first stage must be term in order to get positions[] values! \"\n + ((CascadeClique) c).getParamID());\n System.exit(-1);\n }\n mrfMaxScore += c.getMaxScore();\n }\n\n // Sort cliques according to their max scores.\n Collections.sort(cliques, maxScoreComparator);\n\n // Score that must be achieved to enter result set.\n double scoreThreshold = Double.NEGATIVE_INFINITY;\n\n // Offset into document set we're currently at (if applicable).\n int docsetOffset = 0;\n\n int docno = 0;\n if (mDocSet != null) {\n docno = docsetOffset < mDocSet.length ? mDocSet[docsetOffset++] : Integer.MAX_VALUE;\n } else {\n docno = mMRF.getNextCandidate();\n }\n\n boolean firstTime = true;\n\n while (docno < Integer.MAX_VALUE) {\n for (DocumentNode documentNode : mDocNodes) {\n documentNode.setDocno(docno);\n }\n\n // Document-at-a-time scoring.\n float docMaxScore = mrfMaxScore;\n boolean skipped = false;\n\n float score = 0.0f;\n\n // Lidan: accumulate document scores across the cascade stages\n// if (mDocSet != null && cascadeStage != 0) {\n// score = accumulated_scores[docsetOffset - 1];\n// }\n\n // for each query term, its position in a document\n int[][] termPositions = new int[cliques.size()][];\n int doclen = -1;\n\n for (int i = 0; i < cliques.size(); i++) {\n // Current clique that we're scoring.\n CascadeClique c = (CascadeClique) cliques.get(i);\n\n if (firstTime) {\n termToCliqueNumber.put(c.getConcept().trim().toLowerCase(), i);\n cf.put(c.getConcept().trim().toLowerCase(), c.termCollectionCF());\n df.put(c.getConcept().trim().toLowerCase(), c.termCollectionDF());\n }\n\n if (score + docMaxScore <= scoreThreshold) {\n // Advance postings readers (but don't score).\n for (int j = i; j < cliques.size(); j++) {\n cliques.get(j).setNextCandidate(docno + 1);\n }\n skipped = true;\n\n break;\n }\n\n // Document independent cliques do not affect the ranking.\n if (!c.isDocDependent()) {\n continue;\n }\n\n // Update document score.\n float cliqueScore = c.getPotential();\n score += c.getWeight() * cliqueScore;\n\n // Update the max score for the rest of the cliques.\n docMaxScore -= c.getMaxScore();\n\n // stuff needed for document evaluation in the next stage\n int[] p = c.getPositions();\n\n if (p != null) {\n termPositions[i] = Arrays.copyOf(p, p.length);\n doclen = c.getDocLen();\n }\n }\n\n firstTime = false;\n\n // Keep track of mNumResults best accumulators.\n if (!skipped && score > scoreThreshold) {\n a.docno = docno;\n a.score = score;\n a.index_into_keptDocs = indexCntKeptDocs;\n keptDocLengths[indexCntKeptDocs] = doclen;\n\n mSortedAccumulators.add(a);\n\n // save positional information for each query term in the document\n for (int j = 0; j < termPositions.length; j++) {\n\n if (termPositions[j] != null) {\n keptDocs[indexCntKeptDocs][j] = Arrays.copyOf(termPositions[j], termPositions[j].length);\n }\n }\n\n if (mSortedAccumulators.size() == mNumResults + 1) {\n a = mSortedAccumulators.poll(); // Re-use the accumulator of the removed document\n\n // After maximum # docs been put into queue, each time a new document is added, an old\n // document will be ejected, use the spot freed by the ejected document to store the new\n // document positional info in keptDocs\n\n indexCntKeptDocs = a.index_into_keptDocs;\n keptDocs[indexCntKeptDocs] = new int[numQueryTerms][];\n\n scoreThreshold = mSortedAccumulators.peek().score;\n\n } else {\n a = mAccumulators[mSortedAccumulators.size()]; // Next non-used accumulator in the\n // accumulator pool\n indexCntKeptDocs++;\n }\n\n }\n\n if (mDocSet != null) {\n docno = docsetOffset < mDocSet.length ? mDocSet[docsetOffset++] : Integer.MAX_VALUE;\n } else {\n docno = mMRF.getNextCandidate();\n }\n }\n\n // Grab the accumulators off the stack, in (reverse) order.\n CascadeAccumulator[] results_tmp = new CascadeAccumulator[Math.min(mNumResults,\n mSortedAccumulators.size())];\n\n for (int i = 0; i < results_tmp.length; i++) {\n results_tmp[results_tmp.length - 1 - i] = mSortedAccumulators.poll();\n meanScore += results_tmp[results_tmp.length - 1 - i].score;\n }\n\n meanScore /= results_tmp.length;\n\n CascadeAccumulator[] results = results_tmp;\n\n return results;\n }",
"@DISPID(36)\r\n\t// = 0x24. The runtime will prefer the VTID if present\r\n\t@VTID(35)\r\n\tasci.activebatch.enumJobFlags jobStepsCompleted();",
"public void complete() {\n\t}",
"public void printAllStages() {\n printIndex();\n printRemoval();\n }",
"public List<Set<String>> getOptionalAssetsComplete(Player p){\n \n return null;\n }",
"public TypeOffreDTO getStage(){\n\t\tstage = null;\n\t\tList<TypeOffreDTO> l = getNomenclatureDomainService().getTypesOffre();\n\t\tfor(TypeOffreDTO t : l){\n\t\t\tif(t.getCodeCtrl().equalsIgnoreCase(DonneesStatic.TYPE_OFFRE_CODE_CTRL_STAGE)){\n\t\t\t\tstage=t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn stage;\n\t}",
"public java.util.List<? extends WorldUps.UFinishedOrBuilder> \n getCompletionsOrBuilderList() {\n if (completionsBuilder_ != null) {\n return completionsBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(completions_);\n }\n }",
"@Override\n public boolean isCompleted() {\n return isAllChildCompleted() || this.completion == 1;\n }",
"public java.util.List<? extends WorldUps.UFinishedOrBuilder> \n getCompletionsOrBuilderList() {\n return completions_;\n }",
"public Stage returnStage() {\n\t\t\treturn stage;\n\t\t}",
"@Test\n\tpublic void testComplete1() {\n\t\tString input = \"\";\n\t\twhile (true) {\n\t\t\tGfServiceResultComplete result = null;\n\t\t\ttry {\n\t\t\t\tresult = GF_SERVICE.complete(null, input, FROM, 1);\n\t\t\t} catch (GfServiceException e) {\n\t\t\t\tfail(Constants.MSG_GF_SERVICE_EXCEPTION);\n\t\t\t}\n\t\t\tSet<String> completions = result.getCompletions(FROM);\n\t\t\tif (completions.isEmpty()) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tinput += completions.iterator().next() + \" \";\n\t\t\t}\n\t\t}\n\t\tassertEquals(T_COMPLETE_1_OUT + \" \", input);\n\t}",
"public static <R, A, B, C, D> CompletionStage<R> combine(\n CompletionStage<A> a, CompletionStage<B> b, CompletionStage<C> c, CompletionStage<D> d,\n Function4<A, B, C, D, R> function) {\n final CompletableFuture<A> af = a.toCompletableFuture();\n final CompletableFuture<B> bf = b.toCompletableFuture();\n final CompletableFuture<C> cf = c.toCompletableFuture();\n final CompletableFuture<D> df = d.toCompletableFuture();\n\n return CompletableFuture.allOf(af, bf, cf, df)\n .thenApply(ignored -> function.apply(af.join(), bf.join(), cf.join(), df.join()));\n }",
"public WorldUps.UFinished.Builder addCompletionsBuilder() {\n return getCompletionsFieldBuilder().addBuilder(\n WorldUps.UFinished.getDefaultInstance());\n }",
"interface DefinitionStages {\n /** The first stage of the JobResponse definition. */\n interface Blank extends WithResourceGroup {\n }\n /** The stage of the JobResponse definition allowing to specify parent resource. */\n interface WithResourceGroup {\n /**\n * Specifies resourceGroupName.\n *\n * @param resourceGroupName The resource group name uniquely identifies the resource group within the user\n * subscription.\n * @return the next definition stage.\n */\n WithCreate withExistingResourceGroup(String resourceGroupName);\n }\n /**\n * The stage of the JobResponse definition which contains all the minimum required properties for the resource\n * to be created, but also allows for any other optional properties to be specified.\n */\n interface WithCreate\n extends DefinitionStages.WithLocation,\n DefinitionStages.WithTags,\n DefinitionStages.WithProperties,\n DefinitionStages.WithClientTenantId {\n /**\n * Executes the create request.\n *\n * @return the created resource.\n */\n JobResponse create();\n\n /**\n * Executes the create request.\n *\n * @param context The context to associate with this operation.\n * @return the created resource.\n */\n JobResponse create(Context context);\n }\n /** The stage of the JobResponse definition allowing to specify location. */\n interface WithLocation {\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(Region location);\n\n /**\n * Specifies the region for the resource.\n *\n * @param location Specifies the supported Azure location where the job should be created.\n * @return the next definition stage.\n */\n WithCreate withRegion(String location);\n }\n /** The stage of the JobResponse definition allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job..\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n WithCreate withTags(Object tags);\n }\n /** The stage of the JobResponse definition allowing to specify properties. */\n interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }\n /** The stage of the JobResponse definition allowing to specify clientTenantId. */\n interface WithClientTenantId {\n /**\n * Specifies the clientTenantId property: The tenant ID of the client making the request..\n *\n * @param clientTenantId The tenant ID of the client making the request.\n * @return the next definition stage.\n */\n WithCreate withClientTenantId(String clientTenantId);\n }\n }",
"public List<AllocatableAction> getSuccessors() {\n return this.resourceSuccessors;\n }",
"interface UpdateStages {\n /** The stage of the JobResponse update allowing to specify tags. */\n interface WithTags {\n /**\n * Specifies the tags property: Specifies the tags that will be assigned to the job.\n *\n * @param tags Specifies the tags that will be assigned to the job.\n * @return the next definition stage.\n */\n Update withTags(Object tags);\n }\n /** The stage of the JobResponse update allowing to specify cancelRequested. */\n interface WithCancelRequested {\n /**\n * Specifies the cancelRequested property: If specified, the value must be true. The service will attempt to\n * cancel the job. .\n *\n * @param cancelRequested If specified, the value must be true. The service will attempt to cancel the job.\n * @return the next definition stage.\n */\n Update withCancelRequested(Boolean cancelRequested);\n }\n /** The stage of the JobResponse update allowing to specify state. */\n interface WithState {\n /**\n * Specifies the state property: If specified, the value must be Shipping, which tells the Import/Export\n * service that the package for the job has been shipped. The ReturnAddress and DeliveryPackage properties\n * must have been set either in this request or in a previous request, otherwise the request will fail. .\n *\n * @param state If specified, the value must be Shipping, which tells the Import/Export service that the\n * package for the job has been shipped. The ReturnAddress and DeliveryPackage properties must have been\n * set either in this request or in a previous request, otherwise the request will fail.\n * @return the next definition stage.\n */\n Update withState(String state);\n }\n /** The stage of the JobResponse update allowing to specify returnAddress. */\n interface WithReturnAddress {\n /**\n * Specifies the returnAddress property: Specifies the return address information for the job..\n *\n * @param returnAddress Specifies the return address information for the job.\n * @return the next definition stage.\n */\n Update withReturnAddress(ReturnAddress returnAddress);\n }\n /** The stage of the JobResponse update allowing to specify returnShipping. */\n interface WithReturnShipping {\n /**\n * Specifies the returnShipping property: Specifies the return carrier and customer's account with the\n * carrier..\n *\n * @param returnShipping Specifies the return carrier and customer's account with the carrier.\n * @return the next definition stage.\n */\n Update withReturnShipping(ReturnShipping returnShipping);\n }\n /** The stage of the JobResponse update allowing to specify deliveryPackage. */\n interface WithDeliveryPackage {\n /**\n * Specifies the deliveryPackage property: Contains information about the package being shipped by the\n * customer to the Microsoft data center..\n *\n * @param deliveryPackage Contains information about the package being shipped by the customer to the\n * Microsoft data center.\n * @return the next definition stage.\n */\n Update withDeliveryPackage(DeliveryPackageInformation deliveryPackage);\n }\n /** The stage of the JobResponse update allowing to specify logLevel. */\n interface WithLogLevel {\n /**\n * Specifies the logLevel property: Indicates whether error logging or verbose logging is enabled..\n *\n * @param logLevel Indicates whether error logging or verbose logging is enabled.\n * @return the next definition stage.\n */\n Update withLogLevel(String logLevel);\n }\n /** The stage of the JobResponse update allowing to specify backupDriveManifest. */\n interface WithBackupDriveManifest {\n /**\n * Specifies the backupDriveManifest property: Indicates whether the manifest files on the drives should be\n * copied to block blobs..\n *\n * @param backupDriveManifest Indicates whether the manifest files on the drives should be copied to block\n * blobs.\n * @return the next definition stage.\n */\n Update withBackupDriveManifest(Boolean backupDriveManifest);\n }\n /** The stage of the JobResponse update allowing to specify driveList. */\n interface WithDriveList {\n /**\n * Specifies the driveList property: List of drives that comprise the job..\n *\n * @param driveList List of drives that comprise the job.\n * @return the next definition stage.\n */\n Update withDriveList(List<DriveStatus> driveList);\n }\n }",
"@Override\n\tpublic void complete()\n\t{\n\t}",
"public final void quietlyCompleteRoot()\n/* */ {\n/* 687 */ Object localObject = this;\n/* 688 */ for (;;) { CountedCompleter localCountedCompleter; if ((localCountedCompleter = ((CountedCompleter)localObject).completer) == null) {\n/* 689 */ ((CountedCompleter)localObject).quietlyComplete();\n/* 690 */ return;\n/* */ }\n/* 692 */ localObject = localCountedCompleter;\n/* */ }\n/* */ }",
"public void nextStage() {\n\t\tcurrentStage.setActive(false);\n\t\tcurrentStageNumber++;\n\t\tchildren.add(currentStage = new Stage(this, StageLocations.mesta2, currentStageNumber));\n\t}",
"boolean complete();",
"public boolean isComplete() {\n boolean value = true;\n\n Iterator<Context> itr = surveyContext.values().iterator();\n\n while(itr.hasNext() && value) {\n Context element = itr.next();\n if (!element.isComplete()) {\n value = false;\n }\n }\n\n return value;\n }",
"@Override\r\n public void updateExit() {\r\n if (((CompositeGoal) compositeGoal).allOtherGoalsComplete()) {\r\n goalCompleted = true;\r\n compositeGoal.processGoal();\r\n } else {\r\n System.out.println(\"Need to complete other goals first\");\r\n }\r\n }",
"interface DefinitionStages {\n /**\n * The first stage of a Job definition.\n */\n interface Blank extends GroupableResourceCore.DefinitionWithRegion<WithGroup> {\n }\n\n /**\n * The stage of the Job definition allowing to specify the resource group.\n */\n interface WithGroup extends GroupableResourceCore.DefinitionStages.WithGroup<WithCluster> {\n }\n\n /**\n * The stage of the job definition allowing to specify Cluster.\n */\n interface WithCluster {\n /**\n * Specifies cluster.\n * @param cluster the cluster parameter value\n * @return the next definition stage\n*/\n WithNodeCount withCluster(ResourceId cluster);\n }\n\n /**\n * The stage of the job definition allowing to specify NodeCount.\n */\n interface WithNodeCount {\n /**\n * Specifies nodeCount.\n * @param nodeCount The job will be gang scheduled on that many compute nodes\n * @return the next definition stage\n*/\n WithStdOutErrPathPrefix withNodeCount(int nodeCount);\n }\n\n /**\n * The stage of the job definition allowing to specify StdOutErrPathPrefix.\n */\n interface WithStdOutErrPathPrefix {\n /**\n * Specifies stdOutErrPathPrefix.\n * @param stdOutErrPathPrefix The path where the Batch AI service will upload stdout and stderror of the job\n * @return the next definition stage\n*/\n WithCreate withStdOutErrPathPrefix(String stdOutErrPathPrefix);\n }\n\n /**\n * The stage of the job definition allowing to specify Caffe2Settings.\n */\n interface WithCaffe2Settings {\n /**\n * Specifies caffe2Settings.\n * @param caffe2Settings the caffe2Settings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffe2Settings(Caffe2Settings caffe2Settings);\n }\n\n /**\n * The stage of the job definition allowing to specify CaffeSettings.\n */\n interface WithCaffeSettings {\n /**\n * Specifies caffeSettings.\n * @param caffeSettings the caffeSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCaffeSettings(CaffeSettings caffeSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify ChainerSettings.\n */\n interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CntkSettings.\n */\n interface WithCntkSettings {\n /**\n * Specifies cntkSettings.\n * @param cntkSettings the cntkSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCntkSettings(CNTKsettings cntkSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify Constraints.\n */\n interface WithConstraints {\n /**\n * Specifies constraints.\n * @param constraints Constraints associated with the Job\n * @return the next definition stage\n */\n WithCreate withConstraints(JobBasePropertiesConstraints constraints);\n }\n\n /**\n * The stage of the job definition allowing to specify ContainerSettings.\n */\n interface WithContainerSettings {\n /**\n * Specifies containerSettings.\n * @param containerSettings If the container was downloaded as part of cluster setup then the same container image will be used. If not provided, the job will run on the VM\n * @return the next definition stage\n */\n WithCreate withContainerSettings(ContainerSettings containerSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify CustomToolkitSettings.\n */\n interface WithCustomToolkitSettings {\n /**\n * Specifies customToolkitSettings.\n * @param customToolkitSettings the customToolkitSettings parameter value\n * @return the next definition stage\n */\n WithCreate withCustomToolkitSettings(CustomToolkitSettings customToolkitSettings);\n }\n\n /**\n * The stage of the job definition allowing to specify EnvironmentVariables.\n */\n interface WithEnvironmentVariables {\n /**\n * Specifies environmentVariables.\n * @param environmentVariables Batch AI service sets the following environment variables for all jobs: AZ_BATCHAI_INPUT_id, AZ_BATCHAI_OUTPUT_id, AZ_BATCHAI_NUM_GPUS_PER_NODE. For distributed TensorFlow jobs, following additional environment variables are set by the Batch AI Service: AZ_BATCHAI_PS_HOSTS, AZ_BATCHAI_WORKER_HOSTS\n * @return the next definition stage\n */\n WithCreate withEnvironmentVariables(List<EnvironmentSetting> environmentVariables);\n }\n\n /**\n * The stage of the job definition allowing to specify ExperimentName.\n */\n interface WithExperimentName {\n /**\n * Specifies experimentName.\n * @param experimentName Describe the experiment information of the job\n * @return the next definition stage\n */\n WithCreate withExperimentName(String experimentName);\n }\n\n /**\n * The stage of the job definition allowing to specify InputDirectories.\n */\n interface WithInputDirectories {\n /**\n * Specifies inputDirectories.\n * @param inputDirectories the inputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withInputDirectories(List<InputDirectory> inputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify JobPreparation.\n */\n interface WithJobPreparation {\n /**\n * Specifies jobPreparation.\n * @param jobPreparation The specified actions will run on all the nodes that are part of the job\n * @return the next definition stage\n */\n WithCreate withJobPreparation(JobPreparation jobPreparation);\n }\n\n /**\n * The stage of the job definition allowing to specify OutputDirectories.\n */\n interface WithOutputDirectories {\n /**\n * Specifies outputDirectories.\n * @param outputDirectories the outputDirectories parameter value\n * @return the next definition stage\n */\n WithCreate withOutputDirectories(List<OutputDirectory> outputDirectories);\n }\n\n /**\n * The stage of the job definition allowing to specify Priority.\n */\n interface WithPriority {\n /**\n * Specifies priority.\n * @param priority Priority associated with the job. Priority values can range from -1000 to 1000, with -1000 being the lowest priority and 1000 being the highest priority. The default value is 0\n * @return the next definition stage\n */\n WithCreate withPriority(Integer priority);\n }\n\n /**\n * The stage of the job definition allowing to specify TensorFlowSettings.\n */\n interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<Job>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCaffe2Settings, DefinitionStages.WithCaffeSettings, DefinitionStages.WithChainerSettings, DefinitionStages.WithCntkSettings, DefinitionStages.WithConstraints, DefinitionStages.WithContainerSettings, DefinitionStages.WithCustomToolkitSettings, DefinitionStages.WithEnvironmentVariables, DefinitionStages.WithExperimentName, DefinitionStages.WithInputDirectories, DefinitionStages.WithJobPreparation, DefinitionStages.WithOutputDirectories, DefinitionStages.WithPriority, DefinitionStages.WithTensorFlowSettings {\n }\n }",
"public void complete()\n {\n isComplete = true;\n }",
"public Builder addAllCompletions(\n java.lang.Iterable<? extends WorldUps.UFinished> values) {\n if (completionsBuilder_ == null) {\n ensureCompletionsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, completions_);\n onChanged();\n } else {\n completionsBuilder_.addAllMessages(values);\n }\n return this;\n }",
"@Override\n\tpublic Map<String, Object> doComplete() {\n\t\treturn null;\n\t}",
"public void complete(T paramT)\n/* */ {\n/* 632 */ setRawResult(paramT);\n/* 633 */ onCompletion(this);\n/* 634 */ quietlyComplete();\n/* 635 */ CountedCompleter localCountedCompleter; if ((localCountedCompleter = this.completer) != null) {\n/* 636 */ localCountedCompleter.tryComplete();\n/* */ }\n/* */ }",
"public static <T> CompletionStage<T> exceptionallyCompleted(Exception e) {\n CompletableFuture<T> result = new CompletableFuture<T>();\n result.completeExceptionally(e);\n return result;\n }",
"public void completeNext()\n {\n\tTask t = toDo.get(0);\n\tt.complete();\n\ttoDo.remove(0);\n\tcompleted.add(t);\n }",
"public void makeComplete(Order order) {}",
"@Test\n\tpublic void testStageProceed() {\n\t\t\n\t\tSystem.out.println(\"\\nTest case : Next stage\");\n\t\t\n\t\tStageScene test = new StageScene() ;\n\t\t\n\t\tassertEquals(0 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 1's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal1 = new Goal(10,105) ;\n\t\t\n\t\tAnimal animal = new Animal(\"file:Resources/Frog/frogUp1.png\") ;\n\t\tanimal.setX(10) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal1) ;\n\t\ttest.add(animal) ;\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\ttest.createStageTimer();\n\t\t\n\t\tassertEquals(1 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 1's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 1 is completed , proceed to stage 2\") ;\n\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 2's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal2 = new Goal(140,105) ;\n\t\t\n\t\tanimal.setX(140) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal2);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(2 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 2's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 2 is completed , proceed to stage 3\") ;\n\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 3's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal3 = new Goal(265,105) ;\n\t\t\n\t\tanimal.setX(265) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal3);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(3 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 3's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 3 is completed , proceed to stage 4\") ;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 4's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal4 = new Goal(393,105) ;\n\t\t\n\t\tanimal.setX(393) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal4);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(4 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 4's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 4 is completed , proceed to stage 5\") ;\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Before frog reach stage 5's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\t\n\t\tGoal goal5 = new Goal(520,105) ;\n\t\t\n\t\tanimal.setX(520) ;\n\t\tanimal.setY(105) ;\n\t\t\n\t\ttest.add(goal5);\n\t\t\n\t\tanimal.act(0);\n\t\t\n\t\tassertEquals(5 , StageScene.stageCompleted) ;\n\t\t\n\t\tSystem.out.println(\"After frog reached stage 5's goal :\") ;\n\t\tSystem.out.println(\"end : \" + StageScene.stageCompleted);\n\t\tSystem.out.println(\"Stage 5 is completed , end game\") ;\n\t}",
"public boolean isComplete();",
"public boolean isComplete( ) {\n\t\treturn complete;\n\t}",
"public boolean isComplete()\n {\n return getStatus() == STATUS_COMPLETE;\n }",
"OptionalUserMiniJobsSpecBuilder completed(Date timeCompleted);",
"@Override\n public List<JobTrackingWorkerDependency> reportJobTaskComplete(final String jobTaskId) throws JobReportingException\n {\n LOG.debug(\"Reporting completion of job task {}...\", jobTaskId);\n\n final JobTaskId jobTaskIdObj = JobTaskId.fromMessageId(jobTaskId);\n\n try (final Connection conn = getConnection()) {\n try (final CallableStatement stmt = conn.prepareCall(\"{call report_complete(?,?)}\")) {\n stmt.setString(1, jobTaskIdObj.getPartitionId());\n stmt.setString(2, jobTaskIdObj.getId());\n\n return executeToJobDependencyList(stmt);\n }\n } catch (final SQLTransientException te) {\n throw new JobReportingTransientException(\n MessageFormat.format(FAILED_TO_REPORT_COMPLETION, jobTaskId, te.getMessage()), te);\n } catch (final SQLException se) {\n if (isSqlStateIn(se, POSTGRES_UNABLE_TO_EXECUTE_READ_ONLY_TRANSACTION_FAILURE_CODE,\n POSTGRES_OPERATOR_FAILURE_CODE_PREFIX)) {\n throw new JobReportingTransientException(\n MessageFormat.format(FAILED_TO_REPORT_COMPLETION, jobTaskId, se.getMessage()), se);\n }\n throw new JobReportingException(\n MessageFormat.format(FAILED_TO_REPORT_COMPLETION, jobTaskId, se.getMessage()), se);\n }\n }",
"public List<Configuration> solve(){\n int group = 0;\n for(List<Configuration> set : input){\n minimize(set);\n\n for(Configuration root : set) {\n root.setGroup(group);\n }\n group++;\n\n }\n\n // Step 2: Preprocess\n sortBySize(input);\n\n // Step 5: Initialize set of partial solutions\n List<Configuration> partialSolutions;\n if(input.size()==0){\n return null;\n }\n else {\n partialSolutions = input.get(0);\n input.remove(partialSolutions);\n }\n\n // Step 6: The compositional computations\n for(List<Configuration> set : input) {\n filter(partialSolutions, setCutoff);\n filter(set, setCutoff);\n partialSolutions = combine(partialSolutions, set, constraints);\n }\n\n // Step 7: Postprocessing\n //greedyPostProcessing(partialSolutions);\n\n return partialSolutions;\n }",
"public abstract void completeIteration();",
"public void completePendingOps() throws JournalException {\n while (!this.pendingOps.isEmpty()) {\n Serializable op = this.pendingOps.poll();\n execute(op);\n complete();\n }\n }",
"interface DefinitionStages {\n /**\n * The first stage of a JobTargetGroup definition.\n */\n interface Blank extends WithJobAgent {\n }\n\n /**\n * The stage of the jobtargetgroup definition allowing to specify JobAgent.\n */\n interface WithJobAgent {\n /**\n * Specifies resourceGroupName, serverName, jobAgentName.\n * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal\n * @param serverName The name of the server\n * @param jobAgentName The name of the job agent\n * @return the next definition stage\n */\n WithMembers withExistingJobAgent(String resourceGroupName, String serverName, String jobAgentName);\n }\n\n /**\n * The stage of the jobtargetgroup definition allowing to specify Members.\n */\n interface WithMembers {\n /**\n * Specifies members.\n * @param members Members of the target group\n * @return the next definition stage\n */\n WithCreate withMembers(List<JobTarget> members);\n }\n\n /**\n * The stage of the definition which contains all the minimum required inputs for\n * the resource to be created (via {@link WithCreate#create()}), but also allows\n * for any other optional settings to be specified.\n */\n interface WithCreate extends Creatable<JobTargetGroup> {\n }\n }",
"public void complete() {\n this.totalCompactingKVs = this.currentCompactedKVs;\n }",
"@Test\n public void shouldSequenceListOfSuccessValidations() {\n\n final List<Validation<Failure, String>> validations = Arrays.asList(success(\"a\"), success(\"b\"), success(\"c\"));\n final Validation<Failure, List<String>> sequenced = Validation.sequence(validations);\n\n assertThat(sequenced, isSuccessOf(Arrays.asList(\"a\", \"b\", \"c\")));\n }",
"final Stage getLocalStage() {\n\t\t// retrnamos la etapa actual\n\t\treturn this.localStage;\n\t}",
"public void waitAllNodesCompleteProcessingTask() {\n // check coordinator finished task\n while (!txnCoordinator.hasNoRunningJobs()) {\n Thread.yield();\n }\n // check each participant finished task and resolve unfinished task\n for (Participant p : txnCoordinator.getParticipants()) {\n while (!((Node) p).hasNoRunningJobs()) {\n Thread.yield();\n }\n p.resolveUnfinishedTask();\n }\n }",
"List<StepGroup> stepGroups();"
] | [
"0.5837679",
"0.5645021",
"0.5539508",
"0.5367172",
"0.52342606",
"0.5201069",
"0.51342803",
"0.50983167",
"0.507764",
"0.5069465",
"0.50622106",
"0.49433917",
"0.49376568",
"0.49327648",
"0.48567003",
"0.4783736",
"0.47558677",
"0.47424185",
"0.46964237",
"0.46866223",
"0.46417177",
"0.4604255",
"0.4596462",
"0.4574212",
"0.45680004",
"0.45658588",
"0.45468417",
"0.45406395",
"0.45376316",
"0.44928914",
"0.4475243",
"0.44707322",
"0.4468618",
"0.44680834",
"0.44525716",
"0.44296837",
"0.44242337",
"0.44225138",
"0.44123924",
"0.44118813",
"0.44024077",
"0.43719316",
"0.43654165",
"0.43547595",
"0.43467936",
"0.43432733",
"0.43427724",
"0.43427724",
"0.4337834",
"0.4334102",
"0.4327335",
"0.43250844",
"0.43240628",
"0.43201807",
"0.43018034",
"0.42853034",
"0.42818797",
"0.42704052",
"0.42674658",
"0.42631984",
"0.4260231",
"0.42459446",
"0.42412585",
"0.42363548",
"0.4207446",
"0.42064637",
"0.42062795",
"0.42048192",
"0.4203602",
"0.41947472",
"0.41802266",
"0.41782588",
"0.41716585",
"0.4170102",
"0.41616943",
"0.4156373",
"0.4152359",
"0.41499332",
"0.41460466",
"0.41452202",
"0.4141336",
"0.4137327",
"0.41332296",
"0.41296935",
"0.41294423",
"0.41275847",
"0.41154382",
"0.41128728",
"0.4110058",
"0.4102686",
"0.40934387",
"0.4089436",
"0.40870413",
"0.4078925",
"0.4075582",
"0.4074259",
"0.40740672",
"0.40725875",
"0.40694413",
"0.40663812"
] | 0.5985533 | 0 |
Creates a completion stage, which times out after the specified time, i.e. it completes exceptionally with the supplied exception. | public static <T> CompletionStage<T> timeoutAfter(final long delay, final TimeUnit unit, final Supplier<Throwable> throwableSupplier) {
CompletableFuture<T> completableFuture = new CompletableFuture<>();
TIMEOUT_EXECUTOR.schedule(() ->
completableFuture.completeExceptionally(throwableSupplier.get())
, delay, unit);
return completableFuture;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public TimeoutException(long time) {\n\t\tduration = time;\n\t}",
"public TimeoutException(long time, String message) {\n\t\tsuper(message);\n\t\tduration = time;\n\t}",
"public static <T> CompletionStage<T> exceptionallyCompleted(Exception e) {\n CompletableFuture<T> result = new CompletableFuture<T>();\n result.completeExceptionally(e);\n return result;\n }",
"public TimeoutException()\n {\n super(\"TimeoutExeption\");\n }",
"Builder withHardTimeout(int timeout);",
"public long timeout(long timeout);",
"void timeout(ServiceExecutionEvent e) {\n }",
"@SneakyThrows\n\tpublic static void de(long timeout) {\n\t\tTimeUnit.MILLISECONDS.sleep(timeout);\n\t}",
"Future timeoutIn(long timeout, TimeUnit timeUnit);",
"private static void timeout(String user, int time) { sendMessage(\"/timeout \" + user + \" \" + time); }",
"void await(long timeout, TimeUnit timeUnit)\n throws InterruptedException;",
"protected abstract void timed() throws Throwable;",
"public void handleTimeout();",
"void await(long timeout, TimeUnit timeUnit) throws InterruptedException;",
"@Override\n public void timeout(CellPath path)\n {\n retry(task, SMALL_DELAY);\n }",
"void awaitNanos(final long timeout) throws InterruptedException;",
"public LWTRTPdu timeout() throws IncorrectTransitionException;",
"void timedOut();",
"@Override\n public void timeout(CellPath path) {\n retry(task, SMALL_DELAY);\n }",
"int hardTimeout();",
"public Builder timeoutAfter(long timeout) {\n if (timeout <= 0) {\n throw new IllegalArgumentException(\"timeout must be positive\");\n }\n this.timeout = timeout;\n return this;\n }",
"public static void aroundForTime(Task t, long time) {\n\t\ttry {\n\t\t\tThread.sleep(time);\n\t\t\tt.complete();\n\t\t\tThread.sleep(time);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void await(long timeout, TimeUnit unit) throws InterruptedException;",
"public final void rule__ComplexWait__Group_5__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4350:1: ( ( 'timeout' ) )\r\n // InternalDroneScript.g:4351:1: ( 'timeout' )\r\n {\r\n // InternalDroneScript.g:4351:1: ( 'timeout' )\r\n // InternalDroneScript.g:4352:2: 'timeout'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getComplexWaitAccess().getTimeoutKeyword_5_1()); \r\n }\r\n match(input,57,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getComplexWaitAccess().getTimeoutKeyword_5_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__ComplexWait__Group_2__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4269:1: ( ( 'timeout' ) )\r\n // InternalDroneScript.g:4270:1: ( 'timeout' )\r\n {\r\n // InternalDroneScript.g:4270:1: ( 'timeout' )\r\n // InternalDroneScript.g:4271:2: 'timeout'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getComplexWaitAccess().getTimeoutKeyword_2_0()); \r\n }\r\n match(input,57,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getComplexWaitAccess().getTimeoutKeyword_2_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void setTimeout(int timeout);",
"Future<T> onTimeout(Consumer<Throwable> timeoutHandler);",
"public void setTimeout(final long timeout);",
"void setTimeout(long timeout) {\n if(timeout < 0) {\n throw new RuntimeException(buildMessage(\"Timeout value must be positive, not \" + timeout));\n }\n this.timeout = timeout;\n }",
"@Override\n public CompletionStage<V> apply(InvocationContext<CompletionStage<V>> ctx) {\n CompletableFuture<V> result = new CompletableFuture<>();\n\n executor.execute(() -> {\n TimeoutExecution timeoutExecution = new TimeoutExecution(Thread.currentThread(),\n timeoutInMillis, () -> result.completeExceptionally(timeoutException(description)));\n TimeoutWatch watch = watcher.schedule(timeoutExecution);\n\n CompletionStage<V> originalResult;\n try {\n originalResult = delegate.apply(ctx);\n } catch (Exception e) {\n // this comes first, so that when the future is completed, the timeout watcher is already cancelled\n // (this isn't exactly needed, but makes tests easier to write)\n timeoutExecution.finish(watch::cancel);\n if (!result.isDone()) {\n result.completeExceptionally(timeoutExecution.hasTimedOut() ? timeoutException(description) : e);\n }\n return;\n }\n\n if (result.isDone()) {\n return;\n }\n\n originalResult.whenComplete((value, exception) -> {\n // if the execution timed out, this will be a noop\n //\n // this comes first, so that when the future is completed, the timeout watcher is already cancelled\n // (this isn't exactly needed, but makes tests easier to write)\n timeoutExecution.finish(watch::cancel);\n\n if (timeoutExecution.hasTimedOut()) {\n result.completeExceptionally(timeoutException(description));\n } else if (exception != null) {\n result.completeExceptionally(exception);\n } else {\n result.complete(value);\n }\n });\n });\n\n return result;\n }",
"@Test\n public void testTimeout() throws Exception {\n ProduceRequestResult request = new ProduceRequestResult(topicPartition);\n FutureRecordMetadata future = new FutureRecordMetadata(request, relOffset,\n RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertFalse(future.isDone(), \"Request is not completed\");\n try {\n future.get(5, TimeUnit.MILLISECONDS);\n fail(\"Should have thrown exception.\");\n } catch (TimeoutException e) { /* this is good */\n }\n\n request.set(baseOffset, RecordBatch.NO_TIMESTAMP, null);\n request.done();\n assertTrue(future.isDone());\n assertEquals(baseOffset + relOffset, future.get().offset());\n }",
"void handleTimeoutTask();",
"public TimeoutException(String message) {\n\t\tsuper(message);\n\t}",
"@Test\r\n void timeoutNotExceeded() {\n assertTimeout(ofMinutes(2), () -> {\r\n // Perform task that takes less than 2 minutes.\r\n });\r\n }",
"@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}",
"@Override\n\t\t\tpublic void doTimeOutWork() {\n\t\t\t\tthis.exit();\n\t\t\t}",
"public WriteTimeoutException()\n {\n super();\n }",
"@Override\n public void onTimeout(TimeValue timeout) {\n run();\n }",
"int timeout();",
"void setTimeout(@Nullable Duration timeout);",
"void shutdown(final Duration timeout);",
"private static void interruptWithException () {\n\n Thread thread = new Thread(() -> {\n try {\n System.out.println(\"start sleeping ...\");\n Thread.sleep(5000000);\n } catch (InterruptedException e) {\n System.out.println(\"interrupted from outside !\");\n }\n });\n\n thread.start();\n }",
"@Nonnull \r\n\tpublic static <T> Observable<T> timeoutFinish(\r\n\t\t\t@Nonnull final Observable<? extends T> source, \r\n\t\t\tfinal long time, \r\n\t\t\t@Nonnull final TimeUnit unit) {\r\n\t\treturn timeout(source, time, unit, Reactive.<T>empty());\r\n\t}",
"@Test\n public void testLongBackoffTime() throws Exception {\n runJob(3, 2, 5, false);\n\n // Fail 3 times with a 3 second backoff factor. Wait 10 seconds. Should fail\n // because 3 + 9 = 12 > 10\n try {\n runJob(3, 3, 10, false);\n Assert.fail(\"Excepted exception\");\n } catch (AssertionError e) {\n // expected;\n }\n\n // Fail 3 times with a 3 second backoff factor. Wait 15 seconds. Should\n // succeed\n // because 3 + 9 = 12 < 15\n runJob(3, 3, 15, false);\n }",
"public static void waitFor(int timeSecond) {\n try {\n Thread.sleep(timeSecond * 1000L);\n } catch (Exception e) {\n log.error(e.toString());\n }\n }",
"@Override\n\tpublic void ActuatorBTimeOutEvent(ActuatorBTimeOutObjectEvent e, int time) {\n\t\t\n\t}",
"public void setTimeout(double timeout){\n this.timeout = timeout;\n }",
"public boolean awaitTermination(long timeout, TimeUnit unit) throws InterruptedException {\r\n return dead;\r\n }",
"public E take(long timeout, TimeUnit timeUnit) throws InterruptedException,FileQueueClosedException;",
"public void setTimeout(final String timeout);",
"public IndicesShrink timeout(long timeout) {\n\t\taddParams(\"timeout\", timeout);\n\t\treturn this;\n\t}",
"void taskFinished(Throwable t);",
"void close(int timeout);",
"@Test\n public void testTimeOutOver() {\n // set up the world\n World world = makeWorld();\n \n // make the projectile\n ProjectileDefinition projectileDefinition = new ProjectileDefinition(0,\n \"testProjectileBaseCase\", \"resources/projectiles/test.png\", 0,\n 0, 1, 30, true, 10000, false, 0);\n\n Entity projectile = ProjectileEntities.createProjectile(world,\n projectileDefinition, 30, 30, null);\n \n world.getComponent(projectile, ProjectileComponent.class).get();\n \n // Go just below the 10\n for (double total = 0; Math.abs(total - 10) > 0.01 && total < 10;\n total += 0.3) {\n // run the world\n world.process(total, 0.3);\n \n // the projectile should be there\n assertTrue(\"There should be a projectile that's alive\", \n isProjectileAlive(world, projectile));\n }\n \n world.process(10.2, 0.3);\n \n assertTrue(\"The projectile should be destroyed\", \n isProjectileDestroyed(world, projectile));\n }",
"public MockOutgoing<P> awaitComplete(Duration timeout) {\n whenComplete().await(timeout);\n return this;\n }",
"@Nonnull \r\n\tpublic static <T> Observable<T> timeoutFinish(\r\n\t\t\t@Nonnull final Observable<? extends T> source, \r\n\t\t\tfinal long time, \r\n\t\t\t@Nonnull final TimeUnit unit,\r\n\t\t\t@Nonnull final Scheduler scheduler) {\r\n\t\treturn timeout(source, time, unit, Reactive.<T>empty(scheduler), scheduler);\r\n\t}",
"Builder makeTemporary(int timeout);",
"public void setTimeout(int timeout) {\r\n this.timeout = timeout;\r\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> timeout(\r\n\t\t\t@Nonnull final Observable<? extends T> source,\r\n\t\t\tfinal long time,\r\n\t\t\t@Nonnull final TimeUnit unit,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\tObservable<T> other = throwException(new TimeoutException());\r\n\t\treturn timeout(source, time, unit, other, pool);\r\n\t}",
"public abstract void onTimeout();",
"public final void rule__SimpleWait__Group_3__0__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:4026:1: ( ( 'timeout' ) )\r\n // InternalDroneScript.g:4027:1: ( 'timeout' )\r\n {\r\n // InternalDroneScript.g:4027:1: ( 'timeout' )\r\n // InternalDroneScript.g:4028:2: 'timeout'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSimpleWaitAccess().getTimeoutKeyword_3_0()); \r\n }\r\n match(input,57,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSimpleWaitAccess().getTimeoutKeyword_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"V get(long timeout, TimeUnit timeUnit) throws PromiseBrokenException, TimeoutException, InterruptedException;",
"private CompletableFuture<Response> getExceptionalCF(Throwable t) {\n if ((t instanceof CompletionException) || (t instanceof ExecutionException)) {\n if (t.getCause() != null) {\n t = t.getCause();\n }\n }\n if (cancelled && t instanceof IOException) {\n t = new HttpTimeoutException(\"request timed out\");\n }\n return MinimalFuture.failedFuture(t);\n }",
"public static void catchSleep(int time) {\n try {\n Thread.sleep(time);\n } catch (InterruptedException e) {}\n }",
"public void setTimeout(long timeout)\r\n\t{\r\n\t\tthis.timeout = timeout;\r\n\t}",
"void setTimeout(long timeoutInNanos);",
"public void setTimeout(long timeout) {\n this.timeout = timeout;\n }",
"public void setTimeout(long timeout) {\n this.timeout = timeout;\n }",
"public void setTimeout(int timeout) {\n this.timeout = timeout;\n }",
"double time() throws Throwable;",
"public void onTimeout();",
"public void finishSimulation(double time)\n {\n if (time > 0) {\n super.sim_pause(time);\n }\n super.shutdownUserEntity();\n super.terminateIOEntities();\n }",
"@Override\n protected void checkCanceled() {\n long l = System.currentTimeMillis();\n if (l >= myTime) {\n throw new ProcessCanceledException();\n }\n }",
"T setStartTimeout(Integer timeout);",
"public void setTimeout( int timeout ) {\n this.timeout = timeout;\n }",
"@Override\n protected void handleExecuteTimeoutException(final TimeoutException timeoutEx) {\n officeProcessManager.restartDueToTaskTimeout();\n }",
"public void setFinishTime() {\r\n\t\t\tthis.finishTime = RNG.MAXINT;\r\n\t\t}",
"private void setEndTimer() {\n vertx.setTimer(10, id -> testComplete());\n }",
"@Override\n\tpublic void timeout(Door d) {\n\t\t\n\t}",
"void afterThrow(T resource, Exception exception);",
"public WaitForDigitCommand(long timeout) {\n super();\n this.timeout = timeout;\n }",
"public void setCompletionTime(double aTime)\n\t{\n\t\tif(aTime<0) //invalid\n\t\t\tthis.completionTime = 0.0;\n\t\telse \n\t\t\tthis.completionTime=aTime;\n\t}",
"public void testTimedOffer() {\n final SynchronousQueue q = new SynchronousQueue();\n Thread t = new Thread(new Runnable() {\n public void run() {\n try {\n\n threadAssertFalse(q.offer(new Object(), SHORT_DELAY_MS, TimeUnit.MILLISECONDS));\n q.offer(new Object(), LONG_DELAY_MS, TimeUnit.MILLISECONDS);\n\t\t\tthreadShouldThrow();\n } catch (InterruptedException success){}\n }\n });\n\n try {\n t.start();\n Thread.sleep(SMALL_DELAY_MS);\n t.interrupt();\n t.join();\n } catch (Exception e){\n unexpectedException();\n }\n }",
"@Test\n public void testTakeWillWaitTillSubmitCompletes() {\n final BoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n final int delaySecs = 1;\n try {\n Assert.assertNull(ecs.poll());\n Thread t = new Thread() {\n @Override\n public void run() {\n ecs.submit(new StringDelayableCallable(\"String delayab\", delaySecs));\n }\n };\n t.start();\n long t1 = System.nanoTime();\n Future<String> f = ecs.take();\n Assert.assertNotNull(f);\n Assert.assertTrue(f.isDone());\n long t2 = System.nanoTime();\n System.out.println(t2 - t1);\n Assert.assertTrue(t2 > t1 + delaySecs * 100000000L); // Need to check that take will wait till submit completes\n } catch (Exception ex) {\n unexpectedException();\n }\n }",
"public void awaitTermination(long timeout) throws InterruptedException {\n\t\tthis.controller.awaitTermination(timeout);\n\t}",
"public void setTimeout(Integer timeout) {\n\t\tthis.timeout = timeout;\n\t}",
"public Builder after(long delay) {\n/* 410 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"protected void addExperience(double time) {\n\t\t// This task adds no experience.\n\t}",
"public void setTimeout(long timeout) {\n\t\tthis.timeout = timeout;\n\t}",
"private LastCheckResult(Throwable t, long completedAt) {\n this.result = null;\n this.exception = t;\n this.completedAt = completedAt;\n }",
"long getTimeout();",
"protected void setTimeout() {\r\n\t\tTimeout timeout = new Timeout();\r\n\t\tt.schedule(timeout, TIMEOUT);\r\n\t}",
"@Override\r\n\tpublic void exit(long dateTime) {\n\t\t\r\n\t}",
"@Override\n\tpublic void waitTimedOut() {\n\t\t\n\t\tif( busylinetimer == null )\n\t\t\treturn;\n\t\t\n\t\tbusylinetimer.stop();\n\t\tbusylinetimer = null;\n\t\t\n\t\tlog.info(\"linea ocupada por mas de 120 segundos, iniciando proceso para colgar llamada.......\");\n\t\t\n\t\tnew CellPhoneHandUpCall(modem,false);\n\t}",
"@Test\n @Timeout(1)\n void testTimeout() throws InterruptedException {\n TimeUnit.SECONDS.sleep(10);\n }",
"public void checkTime() throws InterruptedByTimeoutException\n {\n if (System.currentTimeMillis() - this.start > TIME)\n throw new InterruptedByTimeoutException();\n }",
"public void setTimeout(int _timeout) {\n if (timeout < 0)\n return;\n timeout = _timeout;\n }",
"public Time (long elapseTime) {\r\n\t\tsetTime(elapseTime);\r\n\t}",
"public void completeExceptionally(Throwable exception) {\n messageFuture.completeExceptionally(exception);\n futures.remove(this.correlationId);\n }",
"private static void waiting(int time) {\r\n\t\ttry {\r\n\t\t\tThread.sleep(time);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}"
] | [
"0.6439347",
"0.6024863",
"0.55310196",
"0.5487768",
"0.54015493",
"0.5336058",
"0.5177344",
"0.50969315",
"0.50657654",
"0.5051165",
"0.5039629",
"0.50266325",
"0.5013172",
"0.50030655",
"0.499446",
"0.49813482",
"0.49224362",
"0.48731753",
"0.48681402",
"0.48677424",
"0.48660308",
"0.48627564",
"0.4862391",
"0.48562598",
"0.48493022",
"0.4843863",
"0.48206908",
"0.48141068",
"0.48085943",
"0.48050684",
"0.48013902",
"0.48005426",
"0.47843546",
"0.47774497",
"0.47592974",
"0.47592974",
"0.4741656",
"0.47310188",
"0.47134274",
"0.47117525",
"0.46950394",
"0.4694135",
"0.46935207",
"0.46800324",
"0.46652514",
"0.4655644",
"0.46496964",
"0.46481708",
"0.46432838",
"0.46381634",
"0.4624797",
"0.4622688",
"0.46054277",
"0.46007928",
"0.4589195",
"0.4557333",
"0.45568871",
"0.453761",
"0.4536049",
"0.45358956",
"0.4535195",
"0.4534751",
"0.45291668",
"0.45284674",
"0.4528056",
"0.45203394",
"0.45186922",
"0.45186922",
"0.45143813",
"0.4511305",
"0.44958735",
"0.44919792",
"0.44898942",
"0.44809532",
"0.44804052",
"0.4475661",
"0.44647196",
"0.4464525",
"0.44532657",
"0.4450785",
"0.44465292",
"0.44350234",
"0.44265592",
"0.44244465",
"0.4421743",
"0.44191483",
"0.4418538",
"0.44129673",
"0.43995228",
"0.43949252",
"0.43937394",
"0.43893883",
"0.43865532",
"0.43710116",
"0.43671206",
"0.43650848",
"0.43560278",
"0.43448928",
"0.43289185",
"0.43286228"
] | 0.5464451 | 4 |
Creates an instance of IntegerSummary with a given starting value. | public IntegerSummary(final int value) {
value_ = value;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private IntegerSummary(final int value, final Mode mode) {\n value_ = value;\n mode_ = mode;\n }",
"public ElasticInteger(int valueAtStart, long duration) {\n super(valueAtStart, duration);\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public ElasticInteger(int valueAtStart, long duration, Easing easing) {\n super(valueAtStart, duration, easing);\n }",
"IntValue createIntValue();",
"IntValue createIntValue();",
"public IntegerSummary(final Mode mode) {\n mode_ = mode;\n switch (mode) {\n case Sum:\n value_ = 0;\n break;\n case Min:\n value_ = Integer.MAX_VALUE;\n break;\n case Max:\n value_ = Integer.MIN_VALUE;\n break;\n case AlwaysOne:\n value_ = 1;\n break;\n }\n }",
"public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }",
"public myCounter(int startValue) {\n\t\tcounter = startValue;\n\t}",
"public MyInteger(int value)\n\t{\n\t\tthis.value = value;\n\t}",
"public MutableInteger(int value) {\n m_value = value;\n }",
"public IntHolder( final int value ) {\r\n\t\tthis.value = value;\r\n\t}",
"public NestedInteger(int value) {\n this.value = value;\n this.list = new ArrayList<>();\n\n }",
"public Int(int v) {\n value = v;\n }",
"public NestedInteger(int value) {\n\t\tthis.integer = value;\n\t}",
"public Int(int value) {\n super(Expression.X_IS_UNDEFINED);\n this.value = value;\n }",
"public NestedInteger(int value) { }",
"public Builder setIntValue(int value) {\n bitField0_ |= 0x00000010;\n intValue_ = value;\n onChanged();\n return this;\n }",
"public NestedInteger(int value) {\n this.nestedIntegers = new ArrayList<>();\n this.value = value;\n }",
"public MyInteger( int x )\n {\n value = x;\n }",
"public SettableIntField(final SettableIntValue value) {\r\n this.value = value;\r\n this.addStyleName(\"settableInt\");\r\n updateDisplay();\r\n disposer.observe(value, new Observer() {\r\n public void onChange() {\r\n updateDisplay();\r\n }\r\n });\r\n addValueChangeHandler(new ValueChangeHandler<String>() {\r\n public void onValueChange(ValueChangeEvent<String> event) {\r\n try {\r\n int newValue = Integer.parseInt(event.getValue());\r\n value.setValue(newValue);\r\n } catch(NumberFormatException err) {\r\n Window.alert(\"Got number format exception. value was \" + event.getValue());\r\n updateDisplay();\r\n }\r\n }\r\n });\r\n }",
"public static ImageItem createItem(CustomInteger tile) {\n\t\treturn new IntegerValueItem(tile);\r\n\t}",
"public IntLit createIntLit(int val) {\n try {\n return (IntLit) xnf.IntLit(Position.COMPILER_GENERATED, IntLit.INT, val).typeCheck(this);\n } catch (SemanticException e) {\n throw new InternalCompilerError(\"Int literal with value \"+val+\" would not typecheck\", e);\n }\n }",
"static SibillaValue of(int v) {\n return new SibillaInteger(v);\n }",
"public Counter(int val) {\r\n value = val;\r\n }",
"public ElementConstantInteger(int value) {\r\n\t\tsuper();\r\n\t\tthis.value = value;\r\n\t}",
"public Counter(int init){\n \tvalue = init;\n }",
"public Builder setCounter(io.dstore.values.IntegerValue value) {\n if (counterBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n counter_ = value;\n onChanged();\n } else {\n counterBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public static IntegerPreference create(String category, String key, String name, String desc, Integer defaultValue)\n\t{\n\t\treturn new IntegerPreference(category,key,name,desc,defaultValue,true);\n\t}",
"public ElementConstantInteger(int value) {\n\t\tsuper();\n\t\tthis.value = value;\n\t}",
"public DataInt(Integer b) {\n this.i = b;\n }",
"public IntPar(int val) { value = val; }",
"Int(int v){\n val = v;\n }",
"public LiteralIntNode(Location location, int value) {\r\n\t\tthis(location, value, LiteralIntTokenBase.DECIMAL);\r\n\t}",
"public IntegerIdentifier(String name, int type, int value) {\n super(name, type); //String and integer declaration\n this.value = value;//set this.value to value\n }",
"public Builder mergeCounter(io.dstore.values.IntegerValue value) {\n if (counterBuilder_ == null) {\n if (counter_ != null) {\n counter_ =\n io.dstore.values.IntegerValue.newBuilder(counter_).mergeFrom(value).buildPartial();\n } else {\n counter_ = value;\n }\n onChanged();\n } else {\n counterBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public static IntObservable toIntObservable(@Nonnull final Observable<Integer> source) {\r\n\t\treturn new ToPrimitive.ToInt(source);\r\n\t}",
"public MyInteger( )\n {\n this( 0 );\n }",
"public IntegerSimpleUnionModel(Integer value) {\n this.value = value;\n }",
"public static Integer i (int val) {\n return Integer.valueOf(val);\n }",
"public MutableInt(int newval) {\n value = newval;\n }",
"public Int() {\n super(Expression.X_IS_UNDEFINED);\n this.value = 0;\n }",
"public static VariableValue createValueObject(int value) {\n\t\treturn new IntegerValue(value);\n\t}",
"public IntHolder() {\r\n\t}",
"public MutableInt() {}",
"public Builder addItem(int value) {\n ensureItemIsMutable();\n item_.addInt(value);\n onChanged();\n return this;\n }",
"@Nonnull\r\n\tpublic static Observable<Integer> sumInt(\r\n\t\t\t@Nonnull final Observable<Integer> source) {\r\n\t\treturn aggregate(source, Functions.sumInteger(), Functions.<Integer, Integer>identityFirst());\r\n\t}",
"public static IntValueSelector min_value_selector() {\n return new IntDomainMin();\n }",
"public PrimeCounter(long startValue) {\n\t\t\tnum = startValue;\n\t\t}",
"public Int(int value) { \n this.value = value; \n }",
"public void setIntValue(int value) {\n setValueIndex(getPool().findIntEntry(value, true));\n }",
"public static FinalIntegerNode finalIntegerNodeFactory(DataInputStream in) throws IOException {\n FinalIntegerNode n = new FinalIntegerNode();\n int edgeCount = in.readInt();\n n.edges = new long[edgeCount];\n for (int i=0; i<edgeCount; i++) n.edges[i] = in.readLong();\n int positionsCnt = in.readInt();\n if (positionsCnt > 0) {\n n.positions = new int[positionsCnt];\n for (int i=0; i<positionsCnt; i++) n.positions[i] = in.readInt();\n }\n return n;\n }",
"public ElementDefinitionDt setMin(IntegerDt theValue) {\n\t\tmyMin = theValue;\n\t\treturn this;\n\t}",
"public IntegerValidator(int minimalValue, int maximalValue) {\r\n this.minimalValue = minimalValue;\r\n this.maximalValue = maximalValue;\r\n }",
"public Int() {\n this(0);\n }",
"public static PropertyDescriptionBuilder<Integer> integerProperty(String name) {\n return PropertyDescriptionBuilder.start(name, Integer.class, Parsers::parseInteger);\n }",
"public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }",
"public Counter(int min, int max) {\n this.min = min;\n this.max = max;\n value = min;\n }",
"public LabelFactory(int start) {\n assert start >= 0;\n index = start;\n }",
"private static int startInt(int gridSize) {\n StringBuilder sb = new StringBuilder();\n for (int i = 1; i <= gridSize; i++) {\n sb.append(i);\n }\n return Integer.parseInt(sb.toString());\n }",
"public IntegerParserTest() {\n super(new IntegerParser());\n }",
"public Builder setIntSize(fi.kapsi.koti.jpa.nanopb.Nanopb.IntSize value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n intSize_ = value;\n onChanged();\n return this;\n }",
"public IntegerKey(final int number) {\n super(Integer.class);\n this.number = number;\n }",
"public Ingredient(Integer key, Integer value) {\n super(key, value);\n assert value > 0 : \"Value should never be 0 or negative\";\n }",
"public ResourceRange withMin(Integer min) {\n this.min = min;\n return this;\n }",
"public SummaryRanges() {\n S.add(new MyPair(-INF, -INF)); S.add(new MyPair(INF, INF));\n }",
"public TumpukanInteger(){\r\n this(KAPASITAS_DEFAULT);\r\n }",
"org.hl7.fhir.Integer getStart();",
"public void setInteger(int value) {\n\t\tthis.integer = value;\n\t}",
"public Builder putInfo(\n int key,\n int value) {\n \n \n getMutableInfo().put(key, value);\n return this;\n }",
"public void setMinInteger(final int minInteger) {\n\t\tthis.minInteger = minInteger;\n\t}",
"public void setInteger(int value) {\n this.value = value;\n }",
"public void setInteger(int value) {\n this.value = value;\n }",
"public Counter(int initial, String name, String comment, String date){\n value = initial;\n this.name = name;\n this.comment = comment;\n this.date = date;\n this.inital_value=initial;\n\n }",
"public Builder addRequestedValues(int value) {\n ensureRequestedValuesIsMutable();\n requestedValues_.add(value);\n onChanged();\n return this;\n }",
"public void setIntValue(int intValueIn) {\n\t\tthis.intValue = intValueIn;\n\t}",
"public UnsignedInteger(int i) {\n\t\tvalue = new Integer(i);\n\t}",
"private void valueOfInt(Instruction o, Type value){\n\t\tif (! value.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'value' is not of type int but of type \"+value+\".\");\n\t}",
"public IntVector prefix (int i) {\n return new ConstructedVector(i,this);\n }",
"public ElementDefinitionDt setMin( int theInteger) {\n\t\tmyMin = new IntegerDt(theInteger); \n\t\treturn this; \n\t}",
"public Builder setFromValue(int value) {\n from_ = value;\n onChanged();\n return this;\n }",
"public void setIncrement( final int value ) {\n checkWidget();\n if( value >= 1 && value <= maximum - minimum ) {\n increment = value;\n }\n }",
"public Item(String n, int value) {\n\t\tname = n;\n\t\tmaxValue = value;\n\t}",
"public static final SourceModel.Expr showInt(SourceModel.Expr i) {\n\t\t\treturn \n\t\t\t\tSourceModel.Expr.Application.make(\n\t\t\t\t\tnew SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.showInt), i});\n\t\t}",
"public int addValue(int i) {\n return foldIn(i);\n }",
"private Accumulator(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}",
"public void setId(Integer value) {\n set(0, value);\n }",
"public Builder setI10(int value) {\n bitField0_ |= 0x00000200;\n i10_ = value;\n onChanged();\n return this;\n }",
"@Nonnull \r\n\tpublic static Observable<Integer> range(\r\n\t\t\tfinal int start,\r\n\t\t\tfinal int count,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Range.AsInt(start, count, pool);\r\n\t}",
"private Index(int value) {\n this.value = value;\n }",
"public void setInteger(Integer value) {\r\n\t\ttype(ConfigurationItemType.INTEGER);\r\n\t\tthis.integerValue = value;\r\n\t}",
"IntConstant createIntConstant();",
"public Builder clearIntValue() {\n bitField0_ = (bitField0_ & ~0x00000010);\n intValue_ = 0;\n onChanged();\n return this;\n }",
"protected synchronized void setIntegerValue(String tag, int value) {\n if (actualProperties != null) {\n actualProperties.put(tag, Integer.toString(value));\n }\n }",
"private void streamsMinDemoOptimized() {\n IntSummaryStatistics stats = IntStream.of(numbers).summaryStatistics();\n System.out.println(stats.getMin());\n System.out.println(stats.getMax());\n System.out.println(stats.getAverage());\n System.out.println(stats.getCount());\n System.out.println(stats.getSum());\n }",
"public DataPrimitive(int value) {\n\t\tsuper();\n\t\tthis.value = Integer.toString(value);\n\t}",
"public Builder mergePageNo(io.dstore.values.IntegerValue value) {\n if (pageNoBuilder_ == null) {\n if (pageNo_ != null) {\n pageNo_ =\n io.dstore.values.IntegerValue.newBuilder(pageNo_).mergeFrom(value).buildPartial();\n } else {\n pageNo_ = value;\n }\n onChanged();\n } else {\n pageNoBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public static final Placeholder<Integer> anInteger(String name) {\n return new Placeholder<>(Integer.class, name);\n }",
"public ex75DecreasingCounter(int valueAtStart) {\n this.value = valueAtStart;\n }"
] | [
"0.66736495",
"0.63688594",
"0.6046939",
"0.6046939",
"0.59617984",
"0.5824126",
"0.5824126",
"0.5779904",
"0.5709782",
"0.5675967",
"0.5673154",
"0.55678254",
"0.55597633",
"0.5558263",
"0.55304945",
"0.5504114",
"0.54262835",
"0.5418862",
"0.5398018",
"0.5383592",
"0.5382678",
"0.53788304",
"0.5311565",
"0.52957845",
"0.5198927",
"0.51822937",
"0.5166114",
"0.51483047",
"0.514708",
"0.51374",
"0.51083726",
"0.50553757",
"0.5014672",
"0.5014259",
"0.50119376",
"0.49989408",
"0.49964076",
"0.49894047",
"0.49858767",
"0.49767193",
"0.49680254",
"0.4965632",
"0.49590385",
"0.4950541",
"0.49343234",
"0.49239367",
"0.49236947",
"0.48984766",
"0.4890279",
"0.48871115",
"0.4848625",
"0.48097602",
"0.47945255",
"0.47926515",
"0.4790559",
"0.47845122",
"0.47840324",
"0.47603098",
"0.47472268",
"0.4744774",
"0.4742559",
"0.4724227",
"0.47035417",
"0.46973273",
"0.46960974",
"0.46933964",
"0.4692925",
"0.46896842",
"0.46649414",
"0.4660543",
"0.46534747",
"0.46465263",
"0.4644094",
"0.4644094",
"0.46424535",
"0.4639658",
"0.4628184",
"0.46189842",
"0.46172205",
"0.46093425",
"0.46057853",
"0.46057248",
"0.46048638",
"0.46022227",
"0.45959556",
"0.45950338",
"0.4594539",
"0.45797318",
"0.45704105",
"0.4565964",
"0.45636493",
"0.4555658",
"0.45537826",
"0.4549994",
"0.4547843",
"0.45459458",
"0.45343632",
"0.45234776",
"0.45213708",
"0.45057526"
] | 0.77705485 | 0 |
Creates an instance of the IntegerSummary given a serialized representation | public static DeserializeResult<IntegerSummary> fromMemory(final Memory mem) {
return new DeserializeResult<>(new IntegerSummary(mem.getInt(VALUE_INDEX)), SERIALIZED_SIZE_BYTES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public IntegerSummary(final int value) {\n value_ = value;\n }",
"private IntegerSummary(final int value, final Mode mode) {\n value_ = value;\n mode_ = mode;\n }",
"IntegerValue createIntegerValue();",
"IntegerValue createIntegerValue();",
"public static FinalIntegerNode finalIntegerNodeFactory(DataInputStream in) throws IOException {\n FinalIntegerNode n = new FinalIntegerNode();\n int edgeCount = in.readInt();\n n.edges = new long[edgeCount];\n for (int i=0; i<edgeCount; i++) n.edges[i] = in.readLong();\n int positionsCnt = in.readInt();\n if (positionsCnt > 0) {\n n.positions = new int[positionsCnt];\n for (int i=0; i<positionsCnt; i++) n.positions[i] = in.readInt();\n }\n return n;\n }",
"public Value(int i) {\n integer = i;\n itemClass = Integer.class;\n type = DataType.INT;\n }",
"public static DeserializeResult<IntegerSummary> fromMemory(final Memory mem) {\n return new DeserializeResult<>(new IntegerSummary(mem.getInt(VALUE_INDEX),\n Mode.values()[mem.getByte(MODE_BYTE_INDEX)]), SERIALIZED_SIZE_BYTES);\n }",
"public static _int parse(javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n _int object = new _int();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n object.set_int(java.lang.Integer.MIN_VALUE);\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"int\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.set_int(org.apache.axis2.databinding.utils.ConverterUtil.convertToInt(\n content));\n } else {\n object.set_int(java.lang.Integer.MIN_VALUE);\n\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public IntegerSummary(final Mode mode) {\n mode_ = mode;\n switch (mode) {\n case Sum:\n value_ = 0;\n break;\n case Min:\n value_ = Integer.MAX_VALUE;\n break;\n case Max:\n value_ = Integer.MIN_VALUE;\n break;\n case AlwaysOne:\n value_ = 1;\n break;\n }\n }",
"@Override\n public PrimitiveSegment createFromParcel(Parcel in) {\n in.readInt();\n return new PrimitiveSegment(in);\n }",
"public IntegerParserTest() {\n super(new IntegerParser());\n }",
"public static UnsignedInt parse(\n javax.xml.stream.XMLStreamReader reader)\n throws java.lang.Exception {\n UnsignedInt object = new UnsignedInt();\n\n int event;\n javax.xml.namespace.QName currentQName = null;\n java.lang.String nillableValue = null;\n java.lang.String prefix = \"\";\n java.lang.String namespaceuri = \"\";\n\n try {\n while (!reader.isStartElement() && !reader.isEndElement())\n reader.next();\n\n currentQName = reader.getName();\n\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (\"true\".equals(nillableValue) ||\n \"1\".equals(nillableValue)) {\n // Skip the element and report the null value. It cannot have subelements.\n while (!reader.isEndElement())\n reader.next();\n\n return object;\n }\n\n // Note all attributes that were handled. Used to differ normal attributes\n // from anyAttributes.\n java.util.Vector handledAttributes = new java.util.Vector();\n\n while (!reader.isEndElement()) {\n if (reader.isStartElement()) {\n if (reader.isStartElement() &&\n new javax.xml.namespace.QName(\n \"http://schemas.microsoft.com/2003/10/Serialization/\",\n \"unsignedInt\").equals(reader.getName())) {\n nillableValue = reader.getAttributeValue(\"http://www.w3.org/2001/XMLSchema-instance\",\n \"nil\");\n\n if (!\"true\".equals(nillableValue) &&\n !\"1\".equals(nillableValue)) {\n java.lang.String content = reader.getElementText();\n\n object.setUnsignedInt(org.apache.axis2.databinding.utils.ConverterUtil.convertToUnsignedInt(\n content));\n } else {\n reader.getElementText(); // throw away text nodes if any.\n }\n } // End of if for expected property start element\n\n else {\n // 3 - A start element we are not expecting indicates an invalid parameter was passed\n throw new org.apache.axis2.databinding.ADBException(\n \"Unexpected subelement \" +\n reader.getName());\n }\n } else {\n reader.next();\n }\n } // end of while loop\n } catch (javax.xml.stream.XMLStreamException e) {\n throw new java.lang.Exception(e);\n }\n\n return object;\n }",
"public NestedInteger() {\n this.list = new ArrayList<>();\n }",
"public NestedInteger() {\n\t\tthis.list = new ArrayList<>();\n\t}",
"protected Object readIntance(Object val) throws IOException, SerializeException {\r\n\t\treturn AdvancedDeserializerUtil.readIntance(super.readInstance(val));\r\n\t}",
"public ItemSummary() {\n }",
"IntValue createIntValue();",
"IntValue createIntValue();",
"public MutableInteger(String s) throws NumberFormatException {\n m_value = Integer.parseInt(s, 10);\n }",
"@Override\n\tpublic ILogType parse(IFileStream stream) throws IOException{\n\t\tInteger value = stream.getInteger();\n\t\tLogType4Integer type = new LogType4Integer(value);\n\t\ttype.setTimestamp(stream.getInteger());\n\t\treturn type;\n\t}",
"private void readObject(ObjectInputStream in)\n/* */ throws IOException\n/* */ {\n/* 912 */ String description = in.readUTF();\n/* */ ULocale loc;\n/* */ try\n/* */ {\n/* 916 */ loc = (ULocale)in.readObject();\n/* */ } catch (Exception e) {\n/* 918 */ loc = ULocale.getDefault(ULocale.Category.FORMAT);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 925 */ RuleBasedNumberFormat temp = new RuleBasedNumberFormat(description, loc);\n/* 926 */ this.ruleSets = temp.ruleSets;\n/* 927 */ this.defaultRuleSet = temp.defaultRuleSet;\n/* 928 */ this.publicRuleSetNames = temp.publicRuleSetNames;\n/* 929 */ this.decimalFormatSymbols = temp.decimalFormatSymbols;\n/* 930 */ this.decimalFormat = temp.decimalFormat;\n/* 931 */ this.locale = temp.locale;\n/* */ }",
"public NestedInteger(int value) { }",
"public NestedInteger() { }",
"public DataInt(Integer b) {\n this.i = b;\n }",
"public NestedInteger deserialize(String s) {\n\t\tif (s.isEmpty())\n\t\t\treturn null;\n\t\tStack<NestedInteger> stack = new Stack<>();\n\t\tNestedInteger cur = new NestedInteger();\n\t\tint sign = 1;\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\t\tchar ch = s.charAt(i);\n\t\t\tif (ch == '[') {\n\t\t\t\tstack.push(cur);\n\t\t\t\tcur = new NestedInteger();\n\t\t\t\tsign = 1;\n\t\t\t} else if (ch == ',') {\n\n\t\t\t} else if (Character.isDigit(ch)) {\n\t\t\t\tint num = ch - '0';\n\t\t\t\twhile (i + 1 < s.length() && Character.isDigit(s.charAt(i + 1))) {\n\t\t\t\t\tnum = num * 10 + s.charAt(i + 1) - '0';\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tcur.getList().add(new NestedInteger(num * sign));\n\t\t\t\tsign = 1;\n\t\t\t} else if (ch == ']') {\n\t\t\t\tNestedInteger top = stack.pop();\n\t\t\t\ttop.getList().add(cur);\n\t\t\t\tcur = top;\n\t\t\t} else if (ch == '+') {\n\t\t\t\tsign = 1;\n\t\t\t} else if (ch == '-') {\n\t\t\t\tsign = -1;\n\t\t\t} else {\n\n\t\t\t}\n\t\t}\n\t\treturn cur.getList().get(0);\n\t}",
"public static final DataType<Long> createInteger(final String format) {\r\n return new ARXInteger(format);\r\n }",
"public static ImageItem createItem(CustomInteger tile) {\n\t\treturn new IntegerValueItem(tile);\r\n\t}",
"public NestedInteger() {\n this.nestedIntegers = new ArrayList<>();\n }",
"public DataInt() {\n }",
"public UnsignedInteger(String i) {\n\t\tvalue = Integer.parseUnsignedInt(i);\n\t}",
"private void readObject(ObjectInputStream in)\n\tthrows IOException, ClassNotFoundException\n {\n\tin.defaultReadObject();\n\tservID = new ServiceID(in);\n }",
"private ARXInteger(String format){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null; \r\n this.locale = null;\r\n } else {\r\n this.format = new DecimalFormat(format);\r\n this.string = format;\r\n this.locale = null;\r\n }\r\n }",
"public static final DataType<Long> createInteger(final String format, Locale locale) {\r\n return new ARXInteger(format, locale);\r\n }",
"@Test\n public void testParseInt() {\n IntegerSpec integerSpec = new IntegerSpec();\n integerSpec.setDefaultValue(0);\n dataTypeParser.setDataTypeSpec(integerSpec);\n dataTypeParser.parse();\n IntegerSpec parsedIntegerSpec = (IntegerSpec) dataTypeParser.getDataTypeSpec();\n\n assertNull(parsedIntegerSpec.getMinValue());\n assertNull(parsedIntegerSpec.getMaxValue());\n }",
"public NestedInteger(int value) {\n\t\tthis.integer = value;\n\t}",
"public PersonSummary() {}",
"public IntHolder() {\r\n\t}",
"public NestedInteger(int value) {\n this.value = value;\n this.list = new ArrayList<>();\n\n }",
"public DataPrimitive(int value) {\n\t\tsuper();\n\t\tthis.value = Integer.toString(value);\n\t}",
"public ElasticInteger(int valueAtStart, long duration) {\n super(valueAtStart, duration);\n }",
"public IntegerEditor() {\r\n\t super();\r\n\t}",
"T deserialize(InputStream stream) throws IOException;",
"ExpressionExperimentDetailsValueObject generateSummary( Long id );",
"public TumpukanInteger(){\r\n this(KAPASITAS_DEFAULT);\r\n }",
"PriceSummaryModel createInstanceOfPriceSummaryModel();",
"private static Hashtable<Integer, ScoreCount<Integer>> deserializeHastableIntScoreCount(String path) {\n\t\tHashtable<Integer, ScoreCount<Integer>> result = null;\n\n\t\tFileInputStream file = ExceptHandler.createFileInputStream(path);\n\t\tObjectInputStream objStream = ExceptHandler.createObjectInputStream(file);\n\t\tresult = readHashtableObject(objStream);\n\n\t\treturn result;\n\t}",
"SummaryRecordType createSummaryRecordType();",
"public IntegerSimpleUnionModel(Integer value) {\n this.value = value;\n }",
"public NestedInteger(int value) {\n this.nestedIntegers = new ArrayList<>();\n this.value = value;\n }",
"public Scan(ObjectInputStream ois) throws IOException, ClassNotFoundException\n\t{\n\t\t_type = TYPE;\n\t\tdeserialize(ois);\n\t}",
"public Node(Integer intdata) {\n\t\tdata = new IntData();\n\t\tsetData(intdata);\n\t\tnext=null;\n\t}",
"public void testSerialization() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = (XIntervalDataItem) TestUtilities.serialised(item1);\n }",
"public static ViewEntryIdentificator valueOf( final Serializable ser ) {\r\n ViewEntryIdentificator result = null;\r\n if ( null != ser ) {\r\n final String id = ser.toString();\r\n if ( id.startsWith( ViewEntryIdentificator.PREFIX ) ) {\r\n final int idxUnid = ViewEntryIdentificator.PREFIX.length();\r\n final int idxSeparator = id.indexOf( ViewEntryIdentificator.SEPARATOR );\r\n final String unid = id.substring( idxUnid, idxSeparator );\r\n final int idxDb = idxSeparator + ViewEntryIdentificator.SEPARATOR.length();\r\n final String db = id.length() > idxDb ? id.substring( idxDb, id.length() ) : null;\r\n result = new ViewEntryIdentificator( unid, ViewIdentificator.valueOf( db ) );\r\n }\r\n }\r\n return result;\r\n\r\n }",
"private void readObject(java.io.ObjectInputStream stream)\r\n throws IOException, ClassNotFoundException {\r\n scoreNumber = stream.readInt();\r\n highScores = new Score[scoreNumber];\r\n \r\n for (int i = 0; i < scoreNumber; i++)\r\n \thighScores[i] = (Score) stream.readObject();\r\n }",
"public static JSONNumber Integer(int intVal) {\n\t\tJSONNumber number = new JSONNumber( Integer.toString( intVal ) );\n\t\tnumber.intVal = intVal;\n\t\treturn number;\n\t}",
"public void readObject (ObjectInputStream in)\n throws IOException\n {\n int topSlots = in.readByte();\n long flips = in.readLong();\n long balls = in.readLong();\n long holes = in.readLong();\n\n populate(topSlots, flips, balls, holes);\n }",
"@Override\n public Integer fromString(String value) {\n if (value == null) {\n return null;\n }\n\n // Take off the spaces\n value = value.trim();\n\n // If it's 0 (Was full of spaces) return 0\n if (value.length() < 1) {\n return null;\n }\n int valueConverted = 0;\n try {\n valueConverted = Integer.valueOf(value);\n } catch (NumberFormatException e) {\n System.err.println(\"[ERROR-INFO (IntegerString Converter)] - \" + e);\n }\n return valueConverted;\n }",
"public ItemSerializer(int size) {\n this(size, SerializerOutputType.RAW);\n }",
"@Test\n public void testReflectionInteger() {\n assertEquals(baseStr + \"[value=5]\", ToStringBuilder.reflectionToString(base));\n }",
"public MutableInteger createScalar(String line) throws VectorException {\r\n\t\tMutableInteger scalar = new MutableInteger();\r\n\t\ttry {\r\n\t\t\tvalidateInteger(line);\t\t\t\r\n\t\t\tscalar.setValue(Integer.parseInt(line));\r\n\t\t\t\r\n\t\t}catch(NumberFormatException e) {\r\n\t\t\tthrow new VectorException(\"Value must be a numeric integer type\");\r\n\t\t}\r\n\t\t\r\n\t\treturn scalar;\r\n\t}",
"public IntegerField() {\r this(3, 0, 0, 0);\r }",
"Object deserialize(Class objClass, InputStream stream) throws IOException;",
"public MyInteger(){\n //initialize to 0\n Integer myint = new Integer(0);\n }",
"void readObject(InputSerializer in) throws java.io.IOException;",
"private ARXInteger(String format, Locale locale){\r\n if (format == null || format.equals(\"Default\")){\r\n this.format = null;\r\n this.string = null;\r\n this.locale = locale;\r\n } else {\r\n this.format = new DecimalFormat(format, new DecimalFormatSymbols(locale));\r\n this.string = format;\r\n this.locale = locale;\r\n }\r\n }",
"public int getIntegerValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not an integer.\");\n }",
"private void readObject(ObjectInputStream s) throws IOException,\n\t\t\tClassNotFoundException {\n\t\ts.defaultReadObject();\n\t\t// Read in size\n\t\tint size = s.readInt();\n\t\t// Read in all elements\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tadd((Statement) s.readObject());\n\t\t}\n\t}",
"public APISummary(Map<String,Object> jsonValues) {\n\t\tthis.id = (String) jsonValues.get( \"id\" );\n\t\tthis.name = (String) jsonValues.get( \"name\" );\n\t\tthis.version = (String) jsonValues.get( \"version\" );\n\t\tthis.context = (String) jsonValues.get( \"context\" );\n\t\tthis.provider = (String) jsonValues.get( \"provider\" );\n\t\tthis.description = (String) jsonValues.get( \"description\" );\n\t\tthis.status = (String) jsonValues.get( \"status\" );\n\t}",
"static SibillaValue of(int v) {\n return new SibillaInteger(v);\n }",
"public static int deserializeInteger(ByteBuffer bb) {\n return bb.getInt();\n }",
"public SparseDataset parse(InputStream stream) throws IOException, ParseException {\n return parse(\"Sparse Dataset\", stream);\n }",
"InputStream deserialize(InputStream toDeserialize);",
"BigInteger getInteger() {\n\n\t\t\tif (this.type != DerParser.INTEGER) {\n\t\t\t\tthrow new IllegalStateException(String.format(\"Invalid DER: object (%d) is not integer.\", this.type));\n\t\t\t}\n\n\t\t\treturn new BigInteger(this.value);\n\t\t}",
"public ElasticInteger(int valueAtStart, long duration, Easing easing) {\n super(valueAtStart, duration, easing);\n }",
"IntegerValue getValueObject();",
"public static void main(String[] args) {\n\t\tint i = 100;\r\n\t\tInteger ii = new Integer(i);\r\n\t\tSystem.out.println(ii);\r\n\r\n\t\tString s = \"100\";\r\n\t\t// String s = \"abc\";//NumberFormatException\r\n\t\tInteger iii = new Integer(s);\r\n\t\tSystem.out.println(iii);\r\n\t}",
"protected UniqueID(BinaryInput input, BinarySerializator serializator) throws IOException {\n this.mostSigBits = serializator.readLong(input);\n this.leastSigBits = serializator.readLong(input);\n }",
"public UnsignedInteger(int i) {\n\t\tvalue = new Integer(i);\n\t}",
"ObjectInputStream newObjectInputStream(InputStream in) throws Exception;",
"public Integer fromString(String s) {\n if (s == null || s.trim().length() == 0)\n return 0;\n try {\n return Integer.parseInt(s);\n }\n catch (NumberFormatException e) {\n return null;\n }\n }",
"private void readObject(java.io.ObjectInputStream s)\r\n throws java.io.IOException, ClassNotFoundException {\r\n // Read in any hidden serialization magic\r\n s.defaultReadObject();\r\n\r\n // Read in size\r\n int size = s.readInt();\r\n\r\n // Initialize header\r\n//INSTRUMENTATION BEGIN\r\n //header = new Entry(null, null, null);\r\n header = new Entry(null, null, null, this);\r\n//INSTRUMENTATION END\r\n header.next = header.previous = header;\r\n\r\n // Read in all elements in the proper order.\r\n for (int i = 0; i < size; i++)\r\n add(s.readObject());\r\n }",
"public final Integer _parseInteger(JsonParser jVar, DeserializationContext gVar) throws IOException {\n int m = jVar.mo29329m();\n if (m == 3) {\n return (Integer) _deserializeFromArray(jVar, gVar);\n }\n if (m == 11) {\n return (Integer) _coerceNullToken(gVar, this._primitive);\n }\n switch (m) {\n case 6:\n String trim = jVar.mo29334t().trim();\n int length = trim.length();\n if (length == 0) {\n return (Integer) _coerceEmptyString(gVar, this._primitive);\n }\n if (_hasTextualNull(trim)) {\n return (Integer) _coerceTextualNull(gVar, this._primitive);\n }\n _verifyStringForScalarCoercion(gVar, trim);\n if (length <= 9) {\n return Integer.valueOf(NumberInput.m23779a(trim));\n }\n try {\n long parseLong = Long.parseLong(trim);\n if (!_intOverflow(parseLong)) {\n return Integer.valueOf((int) parseLong);\n }\n return (Integer) gVar.mo31517b(this._valueClass, trim, String.format(\"Overflow: numeric value (%s) out of range of Integer (%d - %d)\", trim, Integer.MIN_VALUE, Integer.MAX_VALUE), new Object[0]);\n } catch (IllegalArgumentException unused) {\n return (Integer) gVar.mo31517b(this._valueClass, trim, \"not a valid Integer value\", new Object[0]);\n }\n case 7:\n return Integer.valueOf(jVar.mo29247C());\n case 8:\n if (!gVar.mo31509a(DeserializationFeature.ACCEPT_FLOAT_AS_INT)) {\n _failDoubleToIntCoercion(jVar, gVar, \"Integer\");\n }\n return Integer.valueOf(jVar.mo29296K());\n default:\n return (Integer) gVar.mo31493a(this._valueClass, jVar);\n }\n }",
"private IntegerListMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private PaymentSummary fromBeanToObject(BaseOracleBean baseBean)\n throws SQLException {\n RkPaySumOracleBean bean = (RkPaySumOracleBean)baseBean;\n CMSPaymentSummary object = new CMSPaymentSummary();\n object.doSetId(bean.getId());\n object.doSetDate(bean.getPaymentDate());\n object.doSetEmployeeId(bean.getIdEm());\n object.doSetStoreId(bean.getIdStrRt());\n object.doSetRegisterId(bean.getRegisterId());\n object.doSetPaymentType(bean.getPaymentType());\n object.doSetPaymentTotal(bean.getPaymentTotal());\n object.doSetMediaCount(bean.getMediaCount().intValue());\n return object;\n }",
"@Override\n\tpublic void parse(InputStream iStream) throws LearningpodException {\n\t\tXStream xs = new XStream();\t\t\n\t\txs.autodetectAnnotations(true);\n\t\txs.ignoreUnknownElements();\n\t\t// set aliases\t\n\t\txs.alias(\"learningpod\",ExplanationBean.class);\n\t\texplanation = (ExplanationBean)xs.fromXML(iStream);\n\t\t\n\t}",
"@Override\n\t\tpublic Integer convert(String s) {\n\t\t\treturn Integer.parseInt(s);\n\t\t}",
"public void setIntegerInternal(FastJsonResponse.Field<?, ?> field, String str, int i) {\n zab(field);\n SafeParcelWriter.writeInt(this.zarb, field.getSafeParcelableFieldId(), i);\n }",
"public InfiniteInteger(String s)\n\t{\n\t\t// TO DO: Constructor\t\t\t\t\t\t\t\t\n\t\tif(s.charAt(0) == '-')\n\t\t{\t\t\t\n\t\t\tthis.isNeg = true;\n\t\t\ts = s.substring(1);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.isNeg = false;\n\t\t}\n\t\t\n\t\t\n\t\twhile(s.charAt(0) == '0')\n\t\t{\n\t\t\tif(s.length() == 1)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\t\t\n\t\t\ts = s.substring(1);\n\t\t}\n\t\t\n\t\tinfNumber = new int[s.length()];\t\t\n\t\t\n\t\tfor(int i = 0; i < s.length(); i++)\n\t\t{\n\t\t\tinfNumber[i] = Character.getNumericValue(s.charAt(i));\n\t\t}\t\t\t\n\t}",
"void deserialize(@NotNull InputStream in) throws IOException;",
"public MutableInt() {}",
"public IntegerLiteral(Integer number)\n {\n this.literal = number; \n }",
"public BigInteger getInteger() throws IOException {\n if ( type != DerParser.INTEGER ) {\n throw new IOException(\n BaseMessages.getString( MQTTPublisherMeta.PKG, \"MQTTClientSSL.Error.InvalidDERObjectIsNotAnInteger\" ) );\n }\n\n return new BigInteger( value );\n }",
"io.dstore.values.IntegerValueOrBuilder getCounterOrBuilder();",
"@SuppressWarnings(\"unchecked\")\r\n private void readObject(java.io.ObjectInputStream s)\r\n throws java.io.IOException, ClassNotFoundException {\r\n // Read in any hidden serialization magic\r\n s.defaultReadObject();\r\n\r\n // Read in HashMap capacity and load factor and create backing HashMap\r\n // int capacity = s.readInt();\r\n // float loadFactor = s.readFloat();\r\n this.map = new HashMap<Integer, E>();\r\n\r\n // Read in size\r\n int size = s.readInt();\r\n\r\n // Read in all elements in the proper order.\r\n for (int i = 0; i < size; i++) {\r\n E e = (E) s.readObject();\r\n this.map.put(e.hashCode(), e);\r\n }\r\n }",
"public MyInteger(int value)\n\t{\n\t\tthis.value = value;\n\t}",
"public static int readInt() {\n return Integer.parseInt(readString());\n }",
"private void readObject(ObjectInputStream ois)\n throws IOException, ClassNotFoundException {\n ois.defaultReadObject();\n myhash = -1;\n timestamp = new Date(timestamp.getTime());\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic static Hashtable<Integer, ScoreCount<Integer>> readHashtableObject(ObjectInputStream stream) {\n\t\tHashtable<Integer, ScoreCount<Integer>> result = null;\n\t\ttry {\n\t\t\tresult = (Hashtable<Integer, ScoreCount<Integer>>) stream.readObject();\n\t\t} catch(IOException|ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}",
"public IntegerValidator() {\r\n }",
"public IntegerKey(final int number) {\n super(Integer.class);\n this.number = number;\n }"
] | [
"0.6093963",
"0.5515506",
"0.52685684",
"0.52685684",
"0.5251756",
"0.5230547",
"0.5212796",
"0.5161814",
"0.50878406",
"0.49806654",
"0.49805218",
"0.49489594",
"0.49285015",
"0.49211672",
"0.49114978",
"0.49099222",
"0.4830618",
"0.4830618",
"0.48139206",
"0.48128614",
"0.48112386",
"0.48052847",
"0.47480056",
"0.4724831",
"0.4714854",
"0.4697058",
"0.46946654",
"0.46776813",
"0.46716803",
"0.4650441",
"0.46107805",
"0.46056658",
"0.45734647",
"0.45719865",
"0.45689103",
"0.4565114",
"0.4555296",
"0.45456332",
"0.4543506",
"0.45248148",
"0.44796297",
"0.44773486",
"0.4471479",
"0.4467094",
"0.4460728",
"0.44255298",
"0.4424416",
"0.44154933",
"0.44146368",
"0.44083259",
"0.44019887",
"0.4371203",
"0.43612492",
"0.43532923",
"0.43480706",
"0.4347112",
"0.43386185",
"0.4335642",
"0.4331358",
"0.43232012",
"0.43191352",
"0.4318584",
"0.4317987",
"0.43074793",
"0.429923",
"0.42830765",
"0.42806607",
"0.42774758",
"0.42769083",
"0.4257518",
"0.42378986",
"0.42284903",
"0.422719",
"0.42262164",
"0.42238322",
"0.42230937",
"0.42197308",
"0.4218202",
"0.42176214",
"0.42115036",
"0.41997603",
"0.419448",
"0.4190022",
"0.41879445",
"0.41854838",
"0.41784975",
"0.4166045",
"0.4164575",
"0.41635838",
"0.41609398",
"0.41509342",
"0.41471186",
"0.4146296",
"0.41460952",
"0.41406918",
"0.41384473",
"0.4137917",
"0.41338825",
"0.41268668",
"0.41200876"
] | 0.54294604 | 2 |
esto es de otro ejercicio | public static void enumm(int n, List<Integer> l, Set<String> set) {
if (evaluar(l)) {
System.out.println("-----");
} else {
for (int i = 0; i < l.size(); i++) {
if (l.get(i) <= 1)continue;
int x = l.get(i);
l.remove(i);
for (int j = 1; j <= n / 2; j++) {
int d = x - (j);
if (d < 1)
continue;
ArrayList<Integer> it = new ArrayList<>(l);
it.add(d);
it.add(j);
Collections.sort(it);
// it.sort((s1,s2)->s1.compareTo(s2));
set.add(it.toString());
enumm(n, it, set);
}
l.add(i, x);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void limpiarDatos() {\n\t\t\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tpublic void iniciar() {\n\t\t\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"public void Ordenamiento() {\n\n\t}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"public void selecao () {}",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"public contrustor(){\r\n\t}",
"private static void cajas() {\n\t\t\n\t}",
"protected void accionUsuario() {\n\t\t\r\n\t}",
"protected void agregarUbicacion(){\n\n\n\n }",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private void remplirUtiliseData() {\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\tprotected void getExras() {\n\n\t}",
"private void inizia() throws Exception {\n }",
"@Override\n\tvoid geraDados() {\n\n\t}",
"@Override\r\n\tpublic void stehReagieren() {\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}",
"private void mostrarEmenta (){\n }",
"public void inicializar();",
"public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }",
"public void ejecucion() throws Exception {\n\t\t//Activamos las trazas\n\t\tsetTrazaFichero();\n\t\n\t\ttry{\n\t\t\t//Sacamos la acción a realizar y ejecutamos la acción correspondiente\n\t\t\tString accion = conectorParametro(PARAMETRO_GENERICO_ACCION);\n\t\t\tString origen = conectorParametro(PARAMETRO_GENERICO_ORIGEN);\n\t\t\t\n\t\t\t//Caragamos los elemetnos en la pagina\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ACCION,accion);\n\t\t\tasignar(\"VAR\",PARAMETRO_GENERICO_ORIGEN,origen);\n\t\n\t\t\t//Ejecutamos la acción indicada\n\t\t\tif(accion.equals(ACCION_CREATE)) cmdCreate();\n\t\t\tif(accion.equals(ACCION_UPDATE)) cmdUpdate();\n\t\t\tif(accion.equals(ACCION_REMOVE)) cmdRemove();\n\t\t}catch(Exception e){\n\t\t\thandleException(e);\n\t\t}\n }",
"@Override\n protected void getExras() {\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"protected void aktualisieren() {\r\n\r\n\t}",
"public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}",
"public void datos_elegidos(){\n\n\n }",
"public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }",
"@Override\r\n\tprotected void initVentajas() {\n\r\n\t}",
"@Override\n\tpublic void dibuja() {\n\t\t\n\t}",
"@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void iniciarSesion() {\n\t\tthis.contextoOrdenMenosUno = new Contexto();\r\n\t\t//Obtengo el orden del xml de configuración\r\n\t\tthis.orden = Constantes.ORDER_MAX_PPMC;\r\n\t\t//Creo tantos Ordenes como dice el XML\r\n\t\tthis.listaOrdenes = new ArrayList<Orden>(this.orden+1);\r\n\t\tthis.inicializarListas();\r\n\t\tthis.compresorAritmetico = new LogicaAritmetica();\r\n\t\tthis.initSession = true;\r\n\t\tthis.tiraBits = \"\";\r\n\t\tthis.bitsBuffer = new StringBuffer();\r\n\t\tthis.finalizada = false;\r\n\t\tthis.contextoPrevio = false;\r\n\t\tthis.contextoActual = new String();\r\n\t}",
"@Override\n\tpublic void trabajar() {\n\n\t}",
"public void mantenimiento(){\n\t}",
"@Override\r\n public void salir() {\n }",
"@Override\n public void perish() {\n \n }",
"public void reiniciar() {\n // TODO implement here\n }",
"public void sendeSpielStarten();",
"public void trenneVerbindung();",
"@Override\n\tpublic void recreo() {\n\n\t}",
"protected abstract void iniciarModo();",
"@Override\n public void alRechazarOperacion() {\n }",
"public void sendeSpielfeld();",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"@Override\r\n\tpublic void mostrar() {\n\t\t\r\n\t}",
"public void verarbeite() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tpublic void mostrarDados() {\n\t\t\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"public void aplicarDescuento();",
"@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}",
"public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }",
"public void asetaTeksti(){\n }",
"public Final_parametre() {\r\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n public void parar(Conexion conexion){\n }",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"@Override\n\tpublic void iniciarLabores() {\n\t\t\n\t}",
"public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}",
"@Override\n\tvoid postarComentario() {\n\n\t}",
"@Override\n\tpublic void pausaParaComer() {\n\n\t}",
"public void recibir_estado_partida(){\n\n }",
"void berechneFlaeche() {\n\t}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private void reposicionarPersonajes() {\n // TODO implement here\n }",
"public void ejecutaMetodo() {\n\t\r\n}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"private void inizia() throws Exception {\n }",
"public void iniciar()\n {\n }",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}",
"public void ejecutar() {\r\n\t\tmediador.irInicioInsert(true);\r\n\t}",
"public void listar() {\n\t\t\n\t}",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"private void inizia() throws Exception {\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }",
"@Override\n\tpublic void erstellen() {\n\t\t\n\t}",
"private void remplirMaterielData() {\n\t}",
"public void miseAJour();",
"private UsineJoueur() {}",
"public void generTirarDados() {\n\r\n\t}",
"Reserva Obtener();",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"public Ficha_Ingreso_Egreso() {\n initComponents();\n limpiar();\n bloquear();\n \n }",
"private void remplirPrestaraireData() {\n\t}",
"public void mostrarInformacion(){\n mostrarInformacionP();\n }",
"public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }"
] | [
"0.72049356",
"0.71882623",
"0.7022609",
"0.67398155",
"0.6696468",
"0.6649128",
"0.6625912",
"0.6573842",
"0.6531404",
"0.6525658",
"0.6421327",
"0.640522",
"0.6393346",
"0.63916224",
"0.6371776",
"0.6371195",
"0.6348163",
"0.6344026",
"0.631932",
"0.6298623",
"0.62754554",
"0.6268158",
"0.62664133",
"0.62633187",
"0.62603027",
"0.62403834",
"0.62403834",
"0.62302536",
"0.6224092",
"0.62095827",
"0.62095827",
"0.6205327",
"0.6194292",
"0.6193384",
"0.6180406",
"0.617926",
"0.6169635",
"0.6168783",
"0.61660403",
"0.61657655",
"0.6163308",
"0.6155124",
"0.611675",
"0.6103647",
"0.6102847",
"0.60976434",
"0.6082293",
"0.60777485",
"0.6077331",
"0.6071288",
"0.6055917",
"0.6050924",
"0.6049064",
"0.60488576",
"0.6040318",
"0.6038384",
"0.60342586",
"0.60318977",
"0.60055614",
"0.6000028",
"0.59980893",
"0.59959733",
"0.59955245",
"0.5991606",
"0.5987736",
"0.59870404",
"0.5964829",
"0.59604126",
"0.59604126",
"0.5956971",
"0.5947651",
"0.59451497",
"0.5942053",
"0.5932437",
"0.5928559",
"0.59275645",
"0.592382",
"0.5921171",
"0.59202534",
"0.59202534",
"0.59202534",
"0.59202534",
"0.59202534",
"0.59194463",
"0.5917782",
"0.5907499",
"0.5904724",
"0.5904147",
"0.5901981",
"0.5901383",
"0.5892127",
"0.58901834",
"0.5886104",
"0.58842653",
"0.58830786",
"0.58819515",
"0.58742225",
"0.58725303",
"0.58689004",
"0.58684736",
"0.5865018"
] | 0.0 | -1 |
Get a list of all online player (nick)names. | public static List<String> getOnlinePlayerNames() {
Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();
return StreamSupport.stream(onlineUsers.spliterator(), false)
.map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.getNickname())
.collect(Collectors.toList());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<String> nicknames();",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }",
"public List<String> listPlayerNames() {\n return this.playersNames;\n }",
"public static Collection<? extends Player> getOnlinePlayers() {\n return Bukkit.getServer().getOnlinePlayers();\n }",
"List<Player> listPlayers();",
"List<Player> getPlayers();",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"public String ListOnlineUsers(){\r\n StringBuilder listUsers = new StringBuilder();\r\n for (Utente u: utenti) { // crea la lista degli utenti registrati al servizio e online\r\n if(u.getStatus().equals(\"ONLINE\")) {\r\n \tlistUsers.append(u.getUsername()).append(\" \");\r\n \tlistUsers.append(u.getStatus()).append(\"\\n\");\r\n }\r\n }\r\n return listUsers.toString(); \r\n }",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"void showWaitingPlayerList(List<String> waitingPlayerUsernames);",
"public ArrayList<UserBean> listOnlineUsers()\n\t{\n\t\ttry{\n\t\t\tSocket toServer = new Socket(server,directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\t\t\t\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LIST);\n\t\t\t\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\t\t\tObjectInputStream serverInput = new ObjectInputStream(toServer.getInputStream());\n\t\t\tonlineUsers = (ArrayList<UserBean>) serverInput.readObject();\n\t\t\t\n\t\t\toutToServer.close();\n\t\t\tserverInput.close();\n\t\t\ttoServer.close();\n\t\t}catch(UnknownHostException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn onlineUsers;\n\t}",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"String getOnlineUsers(String senderName)\n {\n List<String> users = new ArrayList<>();\n for (CommunicationLink node : allNodes.values())\n {\n NodeInfo currentNodeInfo = node.getInfo();\n if (currentNodeInfo.getName().equals(senderName))\n {\n users.add(senderName);\n } else\n {\n node.sendMessage(new Message(\"Checking if you are alive\", currentNodeInfo, myInfo, NAME));\n try\n {\n users.add(node.readMessage().getContent());\n } catch (IOException e)\n {\n handleNodeDeath(currentNodeInfo);\n logger.error(\"Node \" + myInfo + \"\\n - \" + currentNodeInfo.getName() + \" disconnected unexpectedly.\");\n }\n }\n }\n users.add(0, myInfo.getName());\n return String.join(\", \", users);\n }",
"public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"public String[] getPlayersUsername(){\n String[] usernames = new String[players.size()];\n Iterator it = players.entrySet().iterator();\n int i = 0;\n while(it.hasNext()){\n Map.Entry pair = (Map.Entry)it.next();\n usernames[i] = (String)pair.getKey();\n i++;\n }\n return usernames;\n }",
"public static ArrayList<Player> getAccountOnlineUsers(String accountno) {\n\t\tArrayList<String> allUsers = getAccountUsers(accountno);\n\t\tArrayList<Player> onlineUsers = new ArrayList<Player>();\n\t\tif (!allUsers.isEmpty()) {\n\t\t\tfor (int i=0; i < allUsers.size(); i++) {\n\t\t\t\tPlayer player = GPP.server.getPlayerExact(allUsers.get(i));\n\t\t\t\tif (player!=null) onlineUsers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn onlineUsers;\n\t}",
"public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}",
"public List<String> getRankingPlayer() throws IOException, ClassNotFoundException {\r\n return ctrlDomain.getRankingPlayer();\r\n }",
"public void getRecentNames() {\r\n try {\r\n URLConnection conn = new URL(\"http://example.com/recent?ssid=\" + session_slot_id).openConnection();\r\n conn.setConnectTimeout(5000);\r\n conn.setReadTimeout(5000);\r\n BufferedReader in = new BufferedReader(new InputStreamReader(conn.getInputStream()));\r\n String line;\r\n while ((line = in.readLine()) != null) {\r\n if (line.contains(\",\")) {\r\n names = line.split(\",\");\r\n }\r\n }\r\n in.close();\r\n } catch (MalformedURLException e) {\r\n System.out.println(\"MalformedURLException while fetching list\");\r\n } catch (SocketTimeoutException e) {\r\n System.out.println(\"SocketTimeoutException while fetching list\");\r\n } catch (IOException e) {\r\n System.out.println(\"IOException while fetching list\");\r\n e.printStackTrace();\r\n }\r\n }",
"ArrayList<Player> getAllPlayer();",
"List<String> loadAllUserNames();",
"private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }",
"List<Player> findAllPlayers();",
"Collection<String> getUsernames();",
"private int getOnlinePlayers()\n {\n return (int) Bukkit.getOnlinePlayers().stream().filter( p -> p != null && p.isOnline() ).count();\n }",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"@RequestMapping(\"/playernames\")\n public List<String> getAllPlayerNames(){\n return playerService.getPlayerNames();\n }",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public ArrayList<String> getUsersOnline(){\n if(usersOnline != null)\n return usersOnline;\n return new ArrayList<>();\n }",
"public Set<String> getOnlinePlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayersWhereOnline(true))\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"public String[] getPlayers() {\r\n return playerIds;\r\n }",
"public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}",
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"Set<String> getPlayers();",
"public List<SkungeePlayer> getPlayers(String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }",
"public void getGameList() {\n try {\n write(\"get gamelist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:getGameList\");\n }\n }",
"public List<String> listUsers() \n\t{\n\t\treturn this.userList.keys();\n\t\t\n\t}",
"public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }",
"public List<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}",
"@SuppressWarnings(\"unused\")\n public static List<String> getDiscordChatMutedPlayers() {\n return DiscordListener.chatMuted;\n }",
"protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}",
"public List<String> getAllUserNames()\n\t{\n\t\treturn userDao.findUserNames();\n\t}",
"public String memberList() {\n\treturn roomMembers.stream().map(id -> {\n\t try {\n\t\treturn api.getUserById(id).get().getNicknameMentionTag();\n\t } catch (InterruptedException | ExecutionException e) {\n\t\te.printStackTrace();\n\t }\n\t return \"\";\n\t}).collect(Collectors.joining(\"\\n\"));\n }",
"public List<SkungeePlayer> getPlayers(SkungeeServer server, String... usernames) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setNames(usernames);\n\t\tpacket.setServers(server);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public List<Player> getPlayerList()\n\t{\n\t\treturn playerList;\n\t}",
"Collection<User> players();",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}",
"java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();",
"public static List<String> getNearbyPlayers(Location loc, double radius) {\n\t\tList<String> playerNames = new ArrayList<String>();\n\t\tfor (Player player : Bukkit.getOnlinePlayers()) {\n\t\t\tif (player.getLocation().getWorld().equals(loc.getWorld())) {\n\t\t\t\tif (loc.distanceSquared(player.getLocation()) < Math.pow(radius, 2)) {\n\t\t\t\t\tplayerNames.add(player.getName());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn playerNames;\n\t}",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public List<LobbyPlayer> getPlayers(String code) throws NoDocumentException {\n return Firebase.requestDocument(\"lobbies/\" + code).toObject(LobbyDTO.class).toModel().getPlayers();\n }",
"java.util.List<com.orange.network.game.protocol.model.ZhaJinHuaProtos.PBZJHUserPlayInfo> \n getUsersInfoList();",
"@Override\n\tpublic List<String> findAllUsername() {\n\t\treturn userDao.findAllUsername();\n\t}",
"public List<User> list(String currentUsername);",
"List<Integer> getUsersByNickName(String nick_name);",
"java.util.List<online_info>\n getInfoList();",
"public boolean hasOnlinePlayers() {\n for (Player p : players) {\n if (p.isOnline())\n return true;\n }\n return false;\n }",
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"public ArrayList<Player> getPlayerList() {\n ArrayList<Player> ret = new ArrayList<>();\n ret.addAll(playerList);\n return ret;\n }",
"@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}",
"public List<Player> getDisplayList(){\n\t\tList<Player> dis = new ArrayList<>(1);\n\t\tif(!playersFinished.isEmpty()){\n\t\t\tdis.add(playersFinished.get(tempNumber -1));//last to finish\n\t\t}\n\t\treturn dis;\n\t}",
"public String getPlayerListName ( ) {\n\t\treturn handleOptional ( ).map ( Player :: getPlayerListName ).orElse ( name );\n\t}",
"public List<String> getToggledPlayers() {\n return toggledPlayers;\n }",
"public String[] listUsers();",
"public static ArrayList<Player> getWinners(){return winners;}",
"@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}",
"public static String[] getlistofUser() {\n\t\tString[] names = new String[workers.size()];\n\t\tfor (int i = 0; i < names.length; i++)\n\t\t\tnames[i] = workers.get(i).getUser();\n\t\treturn names;\n\t}",
"public ArrayList<Character> getMembers() {\n\t\tArrayList<Character> lista = new ArrayList<Character>();\r\n\t\tfor(Character chr : guildArray) {\r\n\t\t\tlista.add(chr);\r\n\t\t}\r\n\t\treturn lista;\r\n\t}",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"List<GroupUser> getConnectedClients();",
"public void onlineUsers(ArrayList<String> users);",
"public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }",
"public List<Game> getFullGameList() {\n List<Game> listOfGames = null;\n Session session = sessionFactory.openSession();\n // Try to return the user by the given nickname\n try {\n session.beginTransaction();\n // if mode equals ALL then get full list of games\n listOfGames = session.createCriteria(Game.class).list();\n \n session.getTransaction().commit();\n session.flush();\n } \n catch (HibernateException e) { return null; } \n finally { session.close(); }\n // Return userID if seted\n return listOfGames;\n }",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"void updateOnlinePlayers(String skipone) { \r\n DynmapPlayer[] players = server.getOnlinePlayers();\r\n DynmapPlayer[] pl = new DynmapPlayer[players.length];\r\n System.arraycopy(players, 0, pl, 0, pl.length);\r\n if(skipone != null) {\r\n for(int i = 0; i < pl.length; i++)\r\n if(pl[i].getName().equals(skipone))\r\n pl[i] = null;\r\n }\r\n online = pl;\r\n }",
"public Set<String> getFriends(String nickname) throws NoSuchElementException {\n // Not using containsKey for concurrency safety,\n // really not needed in this particular case but as a good practice.\n if (nickname == null) throw new NoSuchElementException(\"The user must be a valid one\");\n User user = this.onlineUsers.get(nickname);\n if (user != null) {\n return user.getFriends();\n }\n throw new NoSuchElementException(\"The user is not currently online\");\n }",
"public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}",
"public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}",
"public String[] getGamingUsers() {\n connect();\n\n String data[] = null;\n try {\n doStream.writeUTF(\"GAMING_USERS\");\n doStream.writeUTF(currentUser.getUserName());\n int aux = diStream.readInt();\n data = new String[aux];\n\n for (int i = 0 ; i < aux; i++){\n data[i] = diStream.readUTF();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n disconnect();\n\n return data;\n }",
"public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public ArrayList<String> getAllUserNames() {\n return allUserNames;\n }",
"public List<String> getPublicDnsNames() {\n return getInstances(Running).stream().map(Instance::getPublicDnsName).collect(Collectors.toList());\n }",
"public List<Player> getPlayerList(){\n return this.players;\n }"
] | [
"0.7481402",
"0.74191046",
"0.71065694",
"0.70900935",
"0.69726896",
"0.69106674",
"0.68388695",
"0.68317825",
"0.6766974",
"0.67152286",
"0.6673878",
"0.659135",
"0.65225375",
"0.6509785",
"0.6498536",
"0.6485341",
"0.6463601",
"0.64554566",
"0.6448661",
"0.6382346",
"0.62875146",
"0.6256851",
"0.62516606",
"0.6249471",
"0.62485844",
"0.6243013",
"0.62414837",
"0.6237452",
"0.6222714",
"0.6200348",
"0.6187419",
"0.6175535",
"0.616442",
"0.6161252",
"0.6144472",
"0.61353946",
"0.6123734",
"0.6114282",
"0.61134785",
"0.61064065",
"0.60994214",
"0.60850066",
"0.6083844",
"0.60833544",
"0.60761935",
"0.60574174",
"0.6047053",
"0.6047053",
"0.60396475",
"0.6022755",
"0.6022469",
"0.6015597",
"0.5999906",
"0.5988146",
"0.5960758",
"0.59577143",
"0.59545004",
"0.594819",
"0.5935846",
"0.59285945",
"0.5927107",
"0.59059",
"0.59038794",
"0.5902485",
"0.58996415",
"0.5898437",
"0.5898039",
"0.58976454",
"0.58920765",
"0.5889915",
"0.5873233",
"0.5851504",
"0.5847555",
"0.5846094",
"0.5843014",
"0.584037",
"0.58342105",
"0.58293825",
"0.58200556",
"0.58193135",
"0.58168375",
"0.58151466",
"0.581167",
"0.579981",
"0.5797803",
"0.5790819",
"0.57896656",
"0.57651377",
"0.57551306",
"0.57461387",
"0.5736992",
"0.57170284",
"0.5708803",
"0.5705291",
"0.5696947",
"0.5685662",
"0.5683489",
"0.5676897",
"0.56738335",
"0.5672498"
] | 0.84435236 | 0 |
Send a "Bad" message to the player indicating they did something wrong. | public static void badMsg(CommandSender sender, String msg) {
if (sender instanceof Player) {
sender.sendMessage(ChatColor.RED + msg);
} else {
sender.sendMessage(msg);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public synchronized void sendInvalid() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_INVALID);\r\n\t\tendMessage();\r\n\t}",
"public void playerError(Player player, String message){\n\t\tplayer.sendMessage(ChatColor.RED + message);\n\t}",
"@Override\n\tpublic void OnFailCommand() {\n\t\tSoundManage.playSound(failSound);\n\t\tsuper.OnFailCommand();\n\t}",
"@Override\r\n public void playGame() {\r\n printInvalidCommandMessage();\r\n }",
"private void invalidMove(){\n setMsgText(\"That's a invalid move\");\n playSound(WRONG_SOUND);\n }",
"public void failedMultiPlayer() {\r\n\t\tmultiplayer.setEnabled(true);\r\n\t\tToast.makeText(this, R.string.con_err, Toast.LENGTH_LONG)\r\n\t\t .show();\r\n\t}",
"private void fail(String message) {\n\t\t// we're pretty dramatic here, if a resource isn't available\n\t\t// we dump the message and exit the game\n\t\tLogger.severe(message);\n\t\tSystem.exit(0);\n\t}",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"public abstract void fail(Player p);",
"private void invalidTry(){\n setButtons(false);\n setMsgText(\"There are 2 players in game, you cannot join in now.\");\n }",
"public void reportsInvalidMessage(FakeAuctionServer auction, String message) {\n\t}",
"private void badMove(HttpServletResponse response) throws IOException {\r\n // Handle a bad request\r\n response.setStatus(400);\r\n try (PrintWriter out = response.getWriter()) {\r\n out.println(\"<!DOCTYPE html>\");\r\n out.println(\"<html>\");\r\n out.println(\"<head>\");\r\n out.println(\"<title>Tic Tac Toe</title>\"); \r\n out.println(\"</head>\");\r\n out.println(\"<body>\");\r\n out.println(\"<h1>400 Bad Request</h1>\");\r\n out.println(\"</html>\"); \r\n }\r\n }",
"void illegalCommand(final String reason);",
"public InvalidPlayExcepcion(String msg) {\n super(msg);\n }",
"public void bad(){\n\t\tSystem.out.println(\"you mom's a beautiful woman\");\r\n\t}",
"private void fail() {\n mFails++;\n if(mFails > MAX_NUMBER_OF_FAILS) {\n gameOver();\n }\n }",
"public void sendError()\n {\n \tString resultText = Integer.toString(stdID);\n \tresultText += \": \";\n\t\tfor(int i = 0; i<registeredCourses.size();i++)\n\t\t{\n\t\t\tresultText += registeredCourses.get(i);\n\t\t\tresultText += \" \";\n\t\t}\n\t\tresultText += \"--\";\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(semesterNum);\n\t\tresultText += \" \";\n\t\tresultText += Integer.toString(0); \n\t\tresultText += \" \";\n\t\tprintResults.writeResult(resultText);\n \tSystem.exit(1);\n }",
"public void doError (int status, String message) {\n\tthis.statusCode = Integer.toString (status);\n\tHttpHeader header = responseHandler.getHeader (\"HTTP/1.0 400 Bad Request\");\n\tStringBuilder error = \n\t new StringBuilder (HtmlPage.getPageHeader (this, \"400 Bad Request\") +\n\t\t\t \"Unable to handle request:<br><b>\" + \n\t\t\t message +\n\t\t\t \"</b></body></html>\\n\");\n\theader.setContent (error.toString ());\n\tsendAndClose (header);\n }",
"public void alertInvalid(){\n Alert alert = new Alert(Alert.AlertType.WARNING);\n alert.setTitle(\"Herencia invalida\");\n alert.setHeaderText(\"Un hijo no puede ser hijo de su padre o un padre no puede ser padre de su padre,\"\n + \"No puede crear herencia con entidades debiles.\");\n alert.showAndWait();\n }",
"@Override\r\n public void mainGameLoop() {\r\n printInvalidCommandMessage();\r\n }",
"protected void sendFailureMessage(Request request, IOException e) {\n\t\tsendMessage(obtainMessage(HttpConsts.REQUEST_FAIL, new Object[] {request, e}));\n\t}",
"public void warn(Player player, String message) {\n\t\tplayer.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"public void fail( String reason );",
"public void wrongGuess()\r\n\t{\r\n\t\tSystem.out.println(\"Sorry, your guess is wrong\");\r\n\t\tif(userRanPan.getValue() == -1)\r\n\t\t\tnewGame.getUserHand().addDash(true,userRanPan);\r\n\t\telse\r\n\t\t\tnewGame.getUserHand().addPanel(userRanPan,true);\r\n\r\n\t\tif(userWon() == false)\r\n\t\t\tcompTurn(false);\r\n\t\telse if(userWon())\r\n\t\t{\r\n\t\t\tSystem.out.println(PLAYER_WIN);\r\n\t\t\tSystem.exit(0);\r\n\t\t}\r\n\t}",
"public void invalidClubs() {\r\n\t\tJOptionPane.showMessageDialog(null,\r\n\t\t\t\t\"A club can not play against itself\");\r\n\t}",
"private void sendError() throws IOException {\n System.out.println(\"Error Message\");\n DataOutputStream dos = new DataOutputStream(os);\n dos.writeInt(1);\n dos.writeByte(Message.MSG_ERROR_STATUS);\n }",
"private void onMakeCoffeeFail(){\n\t\t// ui\n\t\tmMakeCoffeeProgress.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeSuccess.setVisibility(View.INVISIBLE);\n\t\tmMakeCoffeeProgressTip.setText(getString(R.string.make_coffee_failed));\n\t\tmMakeCoffeeFailed.setVisibility(View.VISIBLE);\n\t\tmMakeCoffeeRetry.setVisibility(View.INVISIBLE);\n\t\t// sound tip\n\t\tAudioPlayer.getInstance().play(this, R.raw.sound_coffee_make_fail);\n\t}",
"public void playSoundFail() {\n\t\tfailSound.play();\n\t}",
"public static void hitWrong()\n\t{\n\t\troundEnd();\n\t\tlblUpdate.setText(\"You have answer incorrectly. You lose.\");\n\t}",
"@GetAction(\"e500\")\n public static String backendServerError() {\n return Act.crypto().decrypt(\"bad-crypted-msg\");\n }",
"public void handleFailure(AndesMessageMetadata metadata) throws AndesException {\n long messageId = metadata.getMessageID();\n UUID channelId = metadata.getChannelId();\n if(log.isDebugEnabled()) {\n log.debug(\"message was rejected by client id= \" + messageId + \" channel= \" + channelId);\n }\n stampMessageAsRejected(channelId, messageId);\n //re-queue the message to send again\n reQueueMessage(metadata);\n }",
"public void sendErr() {\n Datagram errDatagram = makeFIN(datagram);\n PayLoad payLoad = (PayLoad) (errDatagram.getData());\n payLoad.setERR(true);\n payLoad.setActualData(\"File not found on server.\".getBytes());\n errDatagram.setChecksum(CheckSumService.generateCheckSum(errDatagram));\n\n try {\n ttpService.sendDatagram(errDatagram);\n } catch (IOException i) {\n i.printStackTrace();\n }\n System.out.println(\"TTPServer: ERR datagram sent to client.\");\n if (connections.containsKey(curKey)) {\n ttpService.closeConnection(connections, curKey);\n }\n System.out.println(\"TTPServer: Connection with client closed\");\n }",
"public void unsuccessfulReservation()\n {\n showToastMessage(getResources().getString(R.string.unsuccessfulReservation));\n }",
"@RequestMapping(\"/fail\")\n public void punishCurrentPlayer() {\n playerService.punishCurrentPlayer();\n }",
"private void ensureNoWinner() throws CommandException {\n\t\tif (this.playerWon) {\n\t\t\tthrow new CommandException(\"the game is over\");\n\t\t}\n\t}",
"private static void onFailure(@Nullable final Entity entity, @NotNull final ServerWorld world, @NotNull final Hand hand, @NotNull final BlockPos blockPos, @Nullable final Direction blockFace) {\n BlockState blockState = world.getBlockState(blockPos);\n if (entity instanceof ServerPlayerEntity player) {\n // Send a packet to stop mining\n NetworkingUtils.send(player, new CancelMinePacket(blockPos));\n \n // Resend the current entity state\n if (EntityUtils.hasClientBlockData(blockState)) {\n BlockEntity blockEntity = world.getBlockEntity(blockPos);\n if (blockEntity != null)\n player.networkHandler.sendPacket(blockEntity.toUpdatePacket());\n }\n }\n }",
"public void warn(CommandSender sender, String message) {\n\t\tsender.sendMessage(ChatColor.GRAY + \"[\" + ChatColor.GOLD + \"BattleKits\" + ChatColor.GRAY + \"] \" + ChatColor.RED + message);\n\t}",
"public void sendFailed(LinkLayerMessage message) {\n\t\t\n\t}",
"public boolean steamFailure() {\n double steam = this.steamMessage.getDoubleParameter();\n if (steam < 0) {\n return true;\n }\n if (steam > this.configuration.getMaximualSteamRate()) {\n return true;\n }\n return false;\n }",
"@Test\n void invalidLOST() {\n die();\n getGame().move(getPlayer(), Direction.EAST);\n getGame().stop();\n getGame().start();\n assertThat(getGame().isInProgress()).isFalse();\n verifyNoMoreInteractions(observer);\n }",
"SendFailure() {\n super(ACLMessage.FAILURE);\n }",
"protected void onBadServer(Throwable e) {\n log.warn(\"Caught exception (maybe server is bad)\", e);\n }",
"public void msgKitIsBad(AgentKit kit) {\n\t\tfor(MyKit mk: myKits){\n\t\t\tif(mk.kit.equals(kit)){\n\t\t\t\tmk.status = KitStatus.Bad_Kit;\n\t\t\t\tGuiKit k = mk.kit.guikit;\n\t\t\t\tk.clearKit();\n\t\t\t\tmk.kit = new AgentKit(mk.kit.config, mk.kit.position,mk.kit.name);\n\t\t\t\tmk.kit.guikit = k;\n\t\t\t\tstateChanged();\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"void messageSendFailed(IMSession session, String messageId, ReasonInfo reason);",
"private void signalInvalidUser() {\r\n userText.setBackgroundColor(ContextCompat.getColor(this, R.color.errorBackground));\r\n Toast.makeText(this, \"The username was incorrect!\", Toast.LENGTH_SHORT).show();\r\n }",
"public static void printInvalidDoneIndexError() {\n botSpeak(Message.INVALID_DONE_INDEX_ERROR);\n }",
"private void failTheWebSocketConnection() {\n failed = true;\n }",
"public void failedWithdraw(){\n\t\tstate = ATM_State.WITHDRAWALNOTIFICATION;\n\t\tgui.setDisplay(\"Invalid withdrawal amount.\");\n\t}",
"public void invalidMovePrompt() {\n\t\tinvalidPrompted = true;\n\t\tSystem.out.println(\"Invalid move. Please try again\");\n\t}",
"private void fail(int code, String message) {\n // Error object\n JSONObject errorObj = new JSONObject();\n try {\n errorObj.put(\"code\", code);\n errorObj.put(\"message\", message);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n PluginResult err = new PluginResult(PluginResult.Status.ERROR, errorObj);\n err.setKeepCallback(true);\n callbackContext.sendPluginResult(err);\n }",
"public void invalid() {\r\n\t\tSystem.out.println(\"Please enter a valid input\");\r\n\t}",
"@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}",
"private void checkDeath() {\n\t\tif (player.getLives() == 0) {\n shooty.setIv(new Image(\"/img/shipdeath.png\"));\n\t\t\tdie();\n\t\t}\n\t\t// another way to die: the blocks hit you\n\t\tif(btnList.get(0).getLayoutY() >= FATAL_BUTTON_DIST) {\n\t\t\tendGame.play();\n\t\t\tdie();\n\t\t}\n\t}",
"public void showBadInputMessage() {\n\t\tJOptionPane.showMessageDialog(frame, \"Vänligen skriv siffror mellan 1 och \" + size);\n\t}",
"@Override\r\n\t\t\t\t\t\t\tpublic void onFail(String msg) {\n\t\t\t\t\t\t\t}",
"public void onBattleError(BattleErrorEvent e) {\n System.out.println(\"Err> \" + e.getError());\n }",
"private void throwExceptionOnBadResponse(Response response) throws DoiHttpException {\n if (!response.isSuccessful()) {\n throw new DoiHttpException(response.code(), response.message(), getErrorBody(response));\n }\n }",
"public static void incorrectAnswer() throws UnsupportedAudioFileException, IOException, LineUnavailableException {\n File file = new File(\"Audio/fail.wav\");\n playAudio(file, volume);\n }",
"public void invalidMove() {\n JOptionPane.showMessageDialog(frame, \"Invalid move\", \"Invalid move\", JOptionPane.ERROR_MESSAGE);\n }",
"public final void invalidInput() {\n\t\tout.println(\"Command not recognized. Please try again.\");\n\t}",
"public void sendError(int i) throws IOException {\n\t\t\n\t}",
"public void createFailure() {\n\t\tgetController().changeFree(true);\t\t\n\t\tdisplayAdvertisement(\"opponent failure\");\n\t\tvalidate();\n\t}",
"public void reportIrreversibleChange() {\r\n Assert.isTrue(isReceiving());\r\n irreversibleChangeReported = true;\r\n }",
"protected void serverError() throws IOException {\n cleanup();\n throw new IOException(\"Recieved error message from server:\\n\" + new String(_text_buffer));\n }",
"public static void unknownPlayer(Command command, String player) {\n\t\tString str = command.getSender().getAsMention() + \",\\n\";\n\t\t\n\t\tstr += ConfigManager.getMessage(\"unknown player\").replace(\"%player%\", player);\n\t\tcommand.getChannel().sendMessage(str).complete();\n\t}",
"public void sendError(String message) { \r\n this.send(\"Error:\" + message);\t//remember a String IS-A Object!\r\n }",
"public void error(String message) {\n ui.say(\"ERROR: \" + message);\n }",
"public void failedLogin(){\n\t\tstate = ATM_State.LOGINID;\n\t\tgui.setDisplay(\"ID does not exist. \\n\"\n\t\t\t\t+ \"Enter your account ID: \\n\");\n\t}",
"public void fail(Object msgId) {\n\t\t//on a failure, push the message from pending to flume channel;\n\t\t\n\t\tEvent ev = this.pendingMessages.get(msgId);\n\t\tif(null != ev){\n\t\t\tthis.channel.put(ev);\n\t\t}\n\t}",
"@Override\n\tpublic void fail(Handle msg) {\n\t\t\n\t}",
"private void bust() {\n //Dialog box pop-up\n JOptionPane.showMessageDialog(this, this.getPlayerName() + \" busted with a value of: \" + this.getValue(), \"BUSTED!\", JOptionPane.INFORMATION_MESSAGE);\n busted = true; //Hand busted\n }",
"@Override\n public void failure(RetrofitError error) {\n Log.d(TAG, String.valueOf(error));\n WearSocket.getInstance().sendMessage(Values.MESSAGE_PATH, \"Error: \" + phrase + \" didn't work\");\n }",
"static String drop(Player player, String what) {\n if (player.drop(what)) {\n return \"-Charlie Bot: You have dropped the \" + what;\n } else {\n return \"-Charlie Bot: You aren't carrying \" + what + \", 525.\\n\" +\n \"Has the cryostasis affected your sense of weight?\";\n }\n }",
"public void sendError(String message) { \n\t\tthis.send(\"Error:\" + message); //remember a String IS-A Object!\n\t}",
"public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}",
"public void fail(String message)\n {\n fail(message);\n }",
"public void onCooldownError(CommandEvent e);",
"public void scemess() {\n\t\tUserExcep ue = new UserExcep();\n\t\t\n\t\ttry {\n\t\t\t\tthrow new UserExcep(\"Try different ID\");\n\t\t\t\t\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"@Test\n public void testInvalidPlayer() {\n RiskPlayer player = new RiskPlayer(UUID.randomUUID());\n RiskPlayer player2 = new RiskPlayer(UUID.randomUUID());\n RiskBoard board = new RiskBoard();\n player.conqueredTerritory(TerritoryEnum.GREENLAND);\n board.getTerritory(TerritoryEnum.GREENLAND).changePlayer(player, 3);\n player2.conqueredTerritory(TerritoryEnum.ICELAND);\n board.getTerritory(TerritoryEnum.ICELAND).changePlayer(player2, 6);\n ValidDieDefendAction action = new ValidDieDefendAction(player, board,\n TerritoryEnum.GREENLAND);\n AttackAction attack = new AttackAction(player2, TerritoryEnum.ICELAND,\n TerritoryEnum.GREENLAND, 3);\n DefendAction defend = new DefendAction(player2, board, attack, 2);\n assertFalse(action.validateDefendMove(defend));\n }",
"public void throwBait() {\n\t\tpokemon.eatBait();;\n\t}",
"@Override\n boolean canFail() {\n return true;\n }",
"public abstract void showBadMoveAlert(GameStateInterface state, Move mv);",
"public Message generateInvalidMoveMessage() {\n Message moveMessage = new Message(false, -1,\n \"ERROR: It is not your turn or the space you have chosen is full.\");\n return moveMessage; \n }",
"public void sendError(int i, String s) throws IOException {\n\t\t\n\t}",
"public static void badUsage(Command command, String message) {\n\t\tString str = command.getSender().getAsMention() + \",\\n\";\n\t\t\n\t\tstr += ConfigManager.getMessage(\"bad usage\").replace(\"%command%\", message);\n\t\tcommand.getChannel().sendMessage(str).complete();\n\t}",
"protected void handleFailMessage(Request request, IOException e) {\n\t\tonRequestFailure(request, e);\n\t}",
"@Test\n @SuppressWarnings({\"PMD.JUnitTestsShouldIncludeAssert\"})\n public void testDestroyRoomBadResponse() {\n // given\n final DestroyRoomRequest destroyRoomRequest =\n DestroyRoomRequest.builder().name(TEST_ROOM).build();\n given(clientResponseProvider.sendPostRequest(\n MultiUserChatConstants.MULTI_USER_CHAT_DESTROY_ROOM_COMMAND, destroyRoomRequest))\n .willReturn(BAD_RESPONSE);\n\n // when\n multiUserChatService.destroyRoom(TEST_ROOM);\n\n // then\n }",
"public void wrong()\n\t{\n\t\tMediaPlayer wrong = MediaPlayer.create(this, R.raw.wrong);\n\t\twrong.start();\n\t}",
"public void cantPlayGoNext() {\n\t switchTurn();\n }",
"void invalid() {\n\t\tSystem.out.println(\"falsche Eingabe...\");\n\t}",
"private void doInvalidUpdateBlock(int red, int green, int blue, int points, String subject, int lowerBound,\n\t\t\tint upperBound) {\n\t\tString errorIllegalBlock = subject + \" must be between \" + lowerBound + \" and \" + upperBound + \".\";\n\t\ttry {\n\t\t\tBlock223Controller.updateBlock(testBlock.getId(), red, green, blue, points);\n\t\t\tfail(MISSING_EXPECTED_EXCEPTION + errorIllegalBlock);\n\t\t} catch (InvalidInputException e) {\n\t\t\tassertEquals(errorIllegalBlock, e.getMessage().trim());\n\t\t}\n\t}",
"public void testNegativeBid(){\n try {\n Bid bid = new Bid(new Thing(new User()), new User(), -20);\n fail();\n } catch (BidNegativeException e){\n // ok!\n } catch (Exception e){\n //ok\n }\n\n }",
"public void halt(final String errorMessage);",
"private void Dead() {\n\t\thunger -= 5;\n\t\tthirst -= 5;\n\t\tif ((thirst < 25) && (hunger < 25)){\t\t\t// Player is very weak\n\t\t\thealth -= 15;\n\t\t}else if ((thirst < 25) || (hunger < 25)){\t\t// Player is kinda weak\n\t\t\thealth -= 5;\n\t\t}\n\t\tif (health <= 0){\t\t\t\t\t\t\t\t// Player is dead\n\t\t\taddMessage(\"Overcome by your weakness you succumb.\", \"AI\");\n\t \t\taddMessage(\"You have died\", \"AI\");\n\t \t\tmenu = MENU.GAME_OVER;\n\t\t}\n\t}",
"@Override\n public void gotUsersError(String message) {\n disableButton.setEnabled(true);\n Toast.makeText(this, message, Toast.LENGTH_SHORT).show();\n }",
"public static void printInvalidTaskType() {\n botSpeak(Message.INVALID_TASK_TYPE_ERROR);\n }",
"public static void illegalArgument(Object errorMessage) {\n throw new IllegalArgumentException(\"\" + errorMessage);\n }",
"public void loseTheGame(int wrongLetters, boolean userGuessed) {\n if (wrongLetters == 10 && !userGuessed) { //checking if number of wrong trials reaches ten and users didn't guess the movie\n //displaying messages to the user with total number of wrong trials and the correct picked movie name\n getAllWrongLetters();\n System.out.println(\"You have guessed \" + wrongLetters + \" wrong letter(s):\" + allWrongLetters);\n System.out.println(\"Sorry you loose...You run out of points :(\");\n System.out.println(\"The movie is '\" + this.pickedMovie + \"'\");\n }\n\n }",
"public void loadLossMessage() {\n\n\t\tmessageToDisplay.add(ArtemisCalendar.getMonthName(ArtemisCalendar.getCalendar().get(2)) + \", \"\n\t\t\t\t+ ArtemisCalendar.getCalendar().get(1) + \".\");\n\t\tmessageToDisplay.add(String.format(\"On %s The Artemis Project has failed at %.1f%s completion.\\n\\nMission Debrief:\\n\",\n\t\t\t\tArtemisCalendar.getCalendar().getTime(), GameStatistics.missionProgress(GameLauncher.board), \"%\"));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.ORION));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.SLS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.EGS));\n\t\tmessageToDisplay.add(systemCompletion(SystemType.GATEWAY));\n\t\tGameLauncher.displayMessage();\n\t}",
"public void doSayGoodBye(){\n try {\n UtilityMethods.print(\"Hope you have enjoyed the day...\");\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }"
] | [
"0.6904836",
"0.67850655",
"0.6603684",
"0.64714366",
"0.6456416",
"0.6450518",
"0.64016384",
"0.63534474",
"0.6347826",
"0.6279274",
"0.6226517",
"0.62204224",
"0.6192679",
"0.6004355",
"0.5999241",
"0.5989082",
"0.5983419",
"0.5973272",
"0.59139585",
"0.58941114",
"0.5888261",
"0.5863503",
"0.5860749",
"0.5844217",
"0.58315426",
"0.58203125",
"0.5815969",
"0.5787024",
"0.5775754",
"0.574837",
"0.56815344",
"0.5668981",
"0.5647735",
"0.56399786",
"0.56322813",
"0.5627715",
"0.56257737",
"0.5621937",
"0.56089437",
"0.5608746",
"0.5603178",
"0.5595001",
"0.55885977",
"0.55722386",
"0.5565142",
"0.55639964",
"0.55592906",
"0.5558821",
"0.5553726",
"0.55510473",
"0.55365187",
"0.553488",
"0.5534751",
"0.552843",
"0.55212647",
"0.55191535",
"0.55169266",
"0.55117804",
"0.55044794",
"0.55035883",
"0.55008334",
"0.5498171",
"0.549181",
"0.54909915",
"0.54814965",
"0.54798687",
"0.5476731",
"0.54742515",
"0.5472037",
"0.5464545",
"0.5462627",
"0.5461574",
"0.5460714",
"0.54595816",
"0.5459425",
"0.54592526",
"0.5456307",
"0.5452457",
"0.5447605",
"0.54453045",
"0.5445293",
"0.54440355",
"0.54438704",
"0.5437553",
"0.5434043",
"0.5433662",
"0.54291195",
"0.54256",
"0.5420112",
"0.541605",
"0.5414175",
"0.5411205",
"0.5407144",
"0.54066944",
"0.53949535",
"0.5384445",
"0.5378225",
"0.5377868",
"0.5376472",
"0.53724074"
] | 0.6824105 | 1 |
Send a message to all players with the specified permission | public static void messagePermissionHolders(String permission, String message) {
for (Player p : Bukkit.getOnlinePlayers()) {
if (testPermission(p, permission)) {
p.sendMessage(message);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public void messageToAll(String s) {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"MESSAGE\",s));\n\t\t}\n\t\t\n\t}",
"public void sendChat(String s) {\n ACLMessage m = new ACLMessage(briscola.common.ACLCodes.ACL_CHAT);\n m.setConversationId(getChatID());\n m.setContent(s);\n if (players == null) {\n say(\"Nessun giocatore in lista\");\n } else {\n for (Player p : players) {\n m.addReceiver(p.getAID());\n }\n send(m);\n }\n }",
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"@Override\n public void sendChatMessage(EntityPlayer player) {\n }",
"public static void playerBroadcast(Player sender, final String message, boolean webchat, boolean console) {\n\t\tfor (StandardPlayer player : instance.getOnlinePlayers()) {\n\t\t\tif (player != sender && player.isOnline()) {\n\t\t\t\ttry {\n\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Can happen if a player leaves as this handler is running\n\t\t\t\t\tinstance.getLogger().severe(\"Exception while broadcasting\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tBukkit.getConsoleSender().sendMessage(webchatConsoleGate(message, webchat, console));\n\t}",
"private void sendGroupMessage(String message){\n\n\t\tObject[] userIDs = chatInstanceMap.keySet().toArray();\n\n\t\tfor(int i = 0; i < userIDs.length; i++ ){\n\n\t\t\tsendMessage((String) userIDs[i], message);\n\t\t}\n\t}",
"private void sendMessageToAll(String message){\n for(Session s : sessions){\n try {\n s.getBasicRemote().sendText(message);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }",
"private void sendMessage(CommandSender p, String msg) {\n\t\tif (p instanceof Player) {\n\t\t\tif (!((Player) p).isOnline()) return;\n\t\t}\n\t\t_.msg(p, GameMode.Sonic, msg);\n\t}",
"public void notifyAdmins(){\n \tfor(PlayerHandler player : players){\n \t\tif(player.isAdmin()){\n \t\t\tplayer.notify(1);\n \t\t}\n \t}\n }",
"public void sendMessages(String[] messages)\r\n\t{\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tplayer.sendMessages(messages);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\n }",
"boolean send(String message, PlayerID from, PlayerID to) {\n\t\tfor (Player player : players) {\n\t\t\tif (player.id().equals(to)) {\n\t\t\t\tplayer.sendMsg(\"P\" + from.toString() + \": \" + message);\n\t\t\t\tlog.add(new String[] { from.toString(), message, String.valueOf(System.currentTimeMillis()) });\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static void broadcastFormattedMessage(String message, World world) {\r\n for (Player p : world.getPlayers()) {\r\n sendFormattedMessage(p, message);\r\n }\r\n }",
"void sendPacketToPlayer(Player player, Object packet);",
"public void sendMessage(Player player, MessageType type, Object... args){\r\n player.sendMessage(type.format(args));\r\n }",
"private void sendMessagetoRespectivePlayer(int num) {\n Message msg1;\n if(flag == \"player1\"){\n prevP1 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p1Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p1Handler.obtainMessage(4);\n }\n else{\n msg1 = p1Handler.obtainMessage(5);\n }\n p1Handler.sendMessage(msg1);\n }\n else{\n prevP2 = num;\n int newPositionGroup = num / 10;\n if(winningHoleGroup == newPositionGroup){\n msg1 = p2Handler.obtainMessage(3);\n }\n else if((winningHoleGroup == newPositionGroup-1) || (winningHoleGroup == newPositionGroup+1)){\n msg1 = p2Handler.obtainMessage(4);\n }\n else{\n msg1 = p2Handler.obtainMessage(5);\n }\n p2Handler.sendMessage(msg1);\n }\n }",
"public void broadcastmsg(String msg){\r\n Server.getUsers().forEach((user) -> {\r\n user.sendmsg(msg);\r\n });\r\n }",
"void onPrivMsg(TwitchUser sender, TwitchMessage message);",
"private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }",
"public void broadcastInfo(String msg){\n\t\tfor (User u : Servidor.users) {\n\t\t\ttry {\t\t\t\t\n\t\t\t\tDataOutputStream o = new DataOutputStream(u.getSocket().getOutputStream());\n\t\t\t\to.writeUTF(msg);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void sendPlantToAll(int x ,int y){\r\n\t\tfor(PrintWriter p : players){\r\n\t\t\tif(p != null){\r\n\t\t\t\tsendPlant(p,x,y);\r\n\t\t\t\tp.flush();\r\n\t\t\t}else{\r\n\t\t\t\treturn;\r\n\t\t\t}\t\r\n\t\t}\t\r\n\t}",
"public void sendMessage() {\n\t\tString myPosition=this.agent.getCurrentPosition();\n\t\tif (myPosition!=null){\n\t\t\t\n\t\t\tList<String> wumpusPos = ((CustomAgent)this.myAgent).getStenchs();\n\t\t\t\n\t\t\tif(!wumpusPos.isEmpty()) {\n\t\t\t\tList<String> agents =this.agent.getYellowpage().getOtherAgents(this.agent);\n\t\t\t\t\n\t\t\t\tACLMessage msg=new ACLMessage(ACLMessage.INFORM);\n\t\t\t\tmsg.setSender(this.myAgent.getAID());\n\t\t\t\tmsg.setProtocol(\"WumpusPos\");\n\t\t\t\tmsg.setContent(wumpusPos.get(0)+\",\"+myPosition);\n\t\t\t\t\n\t\t\t\tfor(String a:agents) {\n\t\t\t\t\tif(this.agent.getConversationID(a)>=0) {\n\t\t\t\t\t\tif(a!=null) msg.addReceiver(new AID(a,AID.ISLOCALNAME));\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.agent.sendMessage(msg);\n\t\t\t\tthis.lastPos=myPosition;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}",
"public void serverSendMessageToAllUsers(String message) {\r\n \t\tServerCommand serverCommand = new MessageServerCommand(message, \"server\", null);\r\n \r\n \t\tthis.sendCommandToClient(this.clients.getClients(), serverCommand);\r\n \t}",
"public static void broadcastPermissionMessage(String message, String permission)\n {\n if (haveBridge)\n {\n bridge.broadcastMessage(message, permission, true);\n }\n else\n {\n //standard broadcast\n server.broadcast(message, permission);\n }\n }",
"public synchronized void sendPrivateMessageToPlayer(Player player, String message) {\n SlackUser user;\n if (isTestingMode) {\n user = session.findUserByUserName(testingModeUserName);\n } else {\n user = session.findUserByUserName(player.getUserName());\n }\n SlackMessageHandle<SlackChannelReply> openDirectHandle = session.openDirectMessageChannel(user);\n SlackChannel directChannel = openDirectHandle.getReply().getSlackChannel();\n session.sendMessage(directChannel, message, null);\n }",
"protected abstract void sendMessage(UUID[] players, String[] messages, IntConsumer response);",
"@Override\n public void broadcast(T msg) {\n for (Integer i : activeUsers.keySet()) {\n this.send(Integer.valueOf(i), msg);\n }\n\n }",
"public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }",
"private void broadcast(ArrayList<Integer> update){\n for (Player p : players.values()){\n p.sendModel(update);\n }\n }",
"private void sendActionBar(@NonNull final String message) {\n for(UUID playerID : getNewsRecipient()) {\n if(isOnline(playerID)) {\n @NonNull final CraftPlayer player = (CraftPlayer) Bukkit.getPlayer(playerID);\n final String actionMsg = \"{\\\"text\\\":\\\"\" + message + \"\\\"}\";\n final PacketPlayOutChat PACKET = new PacketPlayOutChat(IChatBaseComponent.ChatSerializer.a(actionMsg), (byte) 2);\n player.getHandle().playerConnection.sendPacket(PACKET);\n } else {\n getNewsRecipient().remove(playerID);\n }}\n\n }",
"public void broadcast(String msg, TBGPCommand command) {\n\t\tplayers.forEach((k,v) -> k.sendMessage(new TBGPMessage(command,msg)));\n\t}",
"@Override\n\tpublic void sendMessageGroup(Client cm, String msg) throws RemoteException {\n\t\tif(!users.contains(cm)) {\n\t\t\tusers.add(cm); \n\t\t\t} \t\t\t\n\t\t//envoyes les message vers tous les utilisateur\n\t\ttry {\n\t\t\tfor (Client c : users) {\n\t\t\n\t\t\t// 回调远程客户端方法\n\t\t\tString user=cm.getName(); \n\t if(user==null || user==\"\") {\n\t \t user = \"anonymous\";\n\t }\t \n\t c.afficherMessage(user + \" : \" + msg);\n\t //c.showDialog(msg);\n\t\t\t}\n\t\t} catch (RemoteException ex) {\n\t\t\tusers.remove(cm);\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t/*\n\t\t for(int i=0;i<users.size();i++)\n\t\t {\n\t\t String user=c.getName(); \n\t\t if(user==null || user==\"\")\n\t\t user = \"anonymous\";\n\t\t ( (Client) users.get(i)).sendMessage(user + \" : \" + msg);\n\t\t }*/\n }",
"@Override\n public void sendMessage(String to, String content)\n {\n if (to.equals(\"all\"))\n {\n agent.sendBroadcast(content);\n return;\n }\n agent.sendMessage(to, content);\n }",
"protected abstract void sendMessage(UUID[] players, BaseComponent[][] messages, IntConsumer response);",
"private void sendMessage() {\n\n // Get the right Prefix\n String prefix = null;\n\n if ( !messageGroup.getPrefix().equalsIgnoreCase(\"\") ) {\n prefix = messageGroup.getPrefix();\n } else {\n prefix = Announcer.getInstance().getConfig().getString(\"Settings.Prefix\");\n }\n\n Announcer.getInstance().getCaller().sendAnnouncment( messageGroup, prefix, counter);\n\n counter();\n\n }",
"public static void broadcastPacket(@NonNull Iterable<Player> players, @NonNull PacketContainer packet) {\n for (Player player : players) {\n sendPacket(player, packet);\n }\n }",
"public void action() {\n for (int i = 0; i < myAgent.friends.size(); ++i) {\n SendRequestToFriend(myAgent.friends.get(i));\n }\n\n // Crée un filtre pour lire d'abord les messages des amis et des leaders des amis\n MessageTemplate temp = MessageTemplate.MatchReceiver(myfriends);\n MessageTemplate temp2 = MessageTemplate.MatchReceiver(friendsLeader);\n MessageTemplate tempFinal = MessageTemplate.or(temp, temp2);\n\n // Réception des messages\n ACLMessage messageFriendly = myAgent.receive(tempFinal);\n // si on n'est pas dans un groupe\n if (messageFriendly != null && !inGroup) {\n \t// s'il reçoit une proposition d'un amis/ leader d'un ami, il accepte, peu importe le poste et s econsidère dans le groupe\n if (messageFriendly.getPerformative() == ACLMessage.PROPOSE) {\n AcceptProposal(messageFriendly, Group.Role.valueOf(messageFriendly.getContent()));\n inGroup = true;\n }\n // s'il reçoit un CONFIRM, il enregistre le leader\n else if (messageFriendly.getPerformative() == ACLMessage.CONFIRM) {\n myLeader = messageFriendly.getSender();\n }\n // s'il reçoit un INFORM, il enregistre l'AID du leader de son ami afin de recevoir ses messages et lui demande son poste préféré\n else if (messageFriendly.getPerformative() == ACLMessage.INFORM) {\n AddFriendsLeaderToList(messageFriendly);\n AnswerByAskingPreferedJob(messageFriendly);\n }\n // sinon, il renvoie une erreur\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFriendly );\n }\n }\n // si on est dans un groupe\n else if (messageFriendly != null && inGroup) { \n \t// s'il reçoit une requete et qu'il est déjà dans un groupe, il renvoir l'AID de son leader à son ami\n if (messageFriendly.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFriendly);\n }\n // s'il reçoit un DISCONFIRM, il se remet en quete de job\n else if (messageFriendly.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFriendly);\n }\n else {\n \t// sinon, il refuse tout offre\n RefuseOffer(messageFriendly);\n }\n }\n else {\n \t// on check ensuite les messages des inconnus, une fois ceux des amis triés\n ACLMessage messageFromInconnu = myAgent.receive();\n \n // si on n'est pas dans un groupe\n if (messageFromInconnu != null && !inGroup) {\n \n boolean offerPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent().equals((\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\"));\n boolean offerNotPreferedJob = messageFromInconnu.getPerformative() == ACLMessage.PROPOSE && messageFromInconnu.getContent() != (\"\\\"\" + myAgent.preferedRole.toString() + \"\\\"\" );\n \n //on accepte l offre s'il s'agit de notre role préféré\n if (offerPreferedJob){\n AcceptProposal(messageFromInconnu, myAgent.preferedRole);\n }\n // on refuse s'il ne s'agit pas de notre offre favorite en redemandant notre job préféré\n else if (offerNotPreferedJob){\n RefuseOffer(messageFromInconnu);\n }\n // si on reçoit une confimation, on se considère dans un groupe et on enregistre notre leader\n else if (messageFromInconnu.getPerformative() == ACLMessage.CONFIRM){\n inGroup = true;\n myLeader = messageFromInconnu.getSender();\n }\n // sinon, il s'agit d'une erreure\n else {\n System.out.println( \"Friendly received unexpected message: \" + messageFromInconnu );\n }\n }\n // si on est dans un groupe\n else if (messageFromInconnu != null && inGroup) {\n \t// si on reçoit une requete, on renvoie à notre leader\n if (messageFromInconnu.getPerformative() == ACLMessage.REQUEST) {\n SendLeaderAID(messageFromInconnu);\n }\n // si on reçoit un DISCONFIRM, on repart en quete de job\n else if (messageFromInconnu.getPerformative() == ACLMessage.DISCONFIRM) {\n inGroup = false;\n AnswerByAskingPreferedJob(messageFromInconnu);\n }\n // sinon on refuse\n else {\n RefuseOffer(messageFromInconnu);\n }\n }\n // si le message est vide, on bloque le flux\n else {\n block();\n }\n }\n }",
"public static void broadcastFormattedMessage(List<String> messageList, World world) {\r\n for (Player p : world.getPlayers()) {\r\n sendFormattedMessage(p, messageList);\r\n }\r\n sendFormattedMessage(Bukkit.getConsoleSender(), messageList);\r\n }",
"public void apply() {\n for (Player player : Bukkit.getOnlinePlayers())\n if (player.getName().equalsIgnoreCase(getName())) {\n for (PermissionAttachmentInfo attachmentInfo : player.getEffectivePermissions())\n if (attachmentInfo.getAttachment().getPlugin().getName().equalsIgnoreCase(\"rpermissions\")) {\n player.removeAttachment(attachmentInfo.getAttachment());\n break;\n }\n PermissionAttachment attachment = player.addAttachment(rPermissions.getInstance());\n for (Map.Entry<String, Boolean> entry : calculatePerms().entrySet())\n attachment.setPermission(entry.getKey(), entry.getValue());\n }\n }",
"public void sendPacket() throws IOException {\n\t\tbyte[] buf = playerList.toString().getBytes();\n\n\t\t// send the message to the client to the given address and port\n\t\tInetAddress address = packet.getAddress();\n\t\tint port = packet.getPort();\n\t\tpacket = new DatagramPacket(buf, buf.length, address, port);\n\t\tsocket.send(packet);\n\t}",
"@Override\n\tpublic void execute() {\n\t\tif (!(messageText == null || messageText.isEmpty())) {\n\n\t\t\tMessage message = new Message();\n\t\t\tMessage.Type messageType;\n\t\t\tif (recipientsIds.isEmpty())\n\t\t\t\tmessageType = Type.USER_BROADCAST;\n\t\t\telse\n\t\t\t\tmessageType = Type.USER_PERSONAL;\n\n\t\t\tmessage.setSender(PlayersRegister.getInstance().getPlayerById(getUserId()));\n\t\t\tmessage.setText(messageText);\n\t\t\tmessage.setType(messageType);\n\n\t\t\tArrayList<Player> recipients = PlayersRegister.getInstance().getPlayersById(recipientsIds);\n\t\t\tif (!recipientsIds.isEmpty())\n\t\t\t\trecipients.add(message.getSender()); // echo the message to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sender as well\n\n\t\t\tmessage.setRecipients(recipients);\n\t\t\tmessage.send();\n\n\t\t}\n\n\t}",
"public void tellEveryone(String message) \r\n\t{\r\n\t\tIterator it = Output_Streams_Client.iterator();\r\n\t\twhile (it.hasNext()) \r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tPrintWriter writer = (PrintWriter) it.next();\r\n\t\t\t\twriter.println(message);\r\n\t\t\t\tChat.append(\"Sending : \" + message + \"\\n\");\r\n\t\t\t\twriter.flush();\r\n\t\t\t\tChat.setCaretPosition(Chat.getDocument().getLength());\r\n\r\n\t\t\t} \r\n\t\t\tcatch (Exception ex) \r\n\t\t\t{\r\n\t\t\t\tChat.append(\"Mistake to tell everyone \\n\");\r\n\t\t\t}\r\n\t\t} \r\n\t}",
"@Override\n\t\t\tpublic void onMessage(Connect connect, MessageEvent event){\n\t\t\t\tif(!event.getChannel().equalsIgnoreCase(\"AdminChat\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Get the message */\n\t\t\t\tString message = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tmessage = event.getMessageAsString();\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t/* Something went wrong, don't broadcast */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Broadcast it! */\n\t\t\t\tfor(Player player : plugin.getServer().getOnlinePlayers()){\n\t\t\t\t\tif(player.hasPermission(\"adminchat.use\")) player.sendMessage(message);\n\t\t\t\t}\n\t\t\t}",
"public void sendChat(String message) {\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch \"+message);\n\t}",
"public static void privateMessage(Player fromPlayer, Player toPlayer, String[] message) {\n PlayerDataObject fromPDO = PlayerManager.getPlayerDataObject(fromPlayer);\n PlayerDataObject toPDO = PlayerManager.getPlayerDataObject(toPlayer);\n //target.sendMessage(ChatColor.DARK_GRAY + \"[\" + player.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n //player.sendMessage(ChatColor.DARK_GRAY + \"[You > \" + target.getDisplayName() + ChatColor.DARK_GRAY + \"]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n ComponentBuilder toComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[\" + fromPDO.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]\" + ChatColor.WHITE + \":\");\n toComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + fromPDO.getPlainNick()).create()));\n toComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + fromPDO.getName() + \" \"));\n toComp.append(\" \").reset();\n \n ComponentBuilder fromComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[You > \" + toPDO.getDisplayName() + ChatColor.DARK_GRAY + \"]\" + ChatColor.WHITE + \":\");\n fromComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + toPDO.getPlainNick()).create()));\n fromComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + toPDO.getName() + \" \"));\n fromComp.append(\" \").reset();\n \n TextComponent messageComp = new TextComponent();\n for (String part : message) {\n if (part.matches(\"^.*(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|].*$\")) {\n messageComp.addExtra(assembleURLComponent(part));\n messageComp.addExtra(\" \");\n } else {\n messageComp.addExtra(part + \" \");\n }\n }\n \n BaseComponent[] toMSG = toComp\n .append(messageComp)\n .create();\n BaseComponent[] fromMsg = fromComp\n .append(messageComp)\n .create();\n \n toPDO.sendMessageIf(toMSG);\n fromPDO.sendMessageIf(fromMsg);\n }",
"public abstract void sendPrivateMessage(String nickname, String message);",
"@Override\n public void notifyUsers(String authorName, String messageContent) {\n if (!messageContent.equals(IChat.SEND_MESSAGE_COMMAND)) {\n Message message = new Message(authorName, messageContent);\n this.chatMessages.add(message);\n for (Socket socket : getChatUsers()) {\n try {\n PrintWriter messageOut = new PrintWriter(socket.getOutputStream(), true);\n messageOut.println(message.toString());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }",
"public void send(String raw_msg, AbstractVisitor sender) {\n\n for(AbstractVisitor user : users) {\n if(sender != user) {\n user.receive(\"From \" + sender.getName() + \" to \" + user.getName() + \": \" + raw_msg);\n }\n }\n\n }",
"public void sendMatch() {\n for (int i = 0; i < numberOfPlayers; i++) {\n try {\n // s = ss.accept();\n oos = new ObjectOutputStream(sockets.get(i).getOutputStream());\n oos.writeObject(game);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"private void sendMessage(String content, String room) {\n }",
"public void sendMessage(String msg) {\n Player player = RegionOwn.server.getPlayer(name);\n if (player != null) {\n player.sendMessage(msg);\n } else if (RegionOwn.pm.isPluginEnabled(\"TextPlayer\")) {\n User user = TextPlayer.findUser(name);\n user.sendText(\"Region Security System\", msg);\n }\n }",
"public static void sendMessage(String s) {\r\n sendRaw(\"PRIVMSG \" + channel + \" :\" + s + \"\\n\");\r\n Console.writeLine(nick + \": \" + s);\r\n }",
"public synchronized void sendPublicMessageToPlayer(Player recipient, String message) {\n session.sendMessage(gameChannel, recipient.getUserName() + \", \" + message,null);\n }",
"@Override\n\tpublic void sendMessage() {\n\t\t\n\t}",
"public void sendMessage(String[] messages) {}",
"void sendPacket(Player player, Object packet);",
"public static void notify(String name, String msg) {\n\n\t\tPlayer player = Bukkit.getServer().getPlayerExact(name);\n\n\t\tfor (Player test : Bukkit.getServer().getOnlinePlayers()) {\n\t\t\tif (!test.equals(player)) {\n\t\t\t\tif (test.hasPermission(\"groupmanager.notify.other\"))\n\t\t\t\t\ttest.sendMessage(\"§7[ §aGizemliOyuncu §7] §e\" + ChatColor.YELLOW + name + \" §eAdlı Oyuncunun Yeni Yetki Grubu: §b\" + msg);\n\t\t\t} else if ((player != null) && ((player.hasPermission(\"groupmanager.notify.self\")) || (player.hasPermission(\"groupmanager.notify.other\"))))\n\t\t\t\tplayer.sendMessage(\"§7[ §aGizemliOyuncu §7] §eYetki Grubun: §b\" + msg);\n\t\t}\n\n\t}",
"private void sendMessage(String mPos) {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"adapter action\");\n // You can also include some extra data.\n intent.putExtra(\"song position\", mPos);\n LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent);\n }",
"private static void sendMessageToAll(Message msg) throws IOException, EncodeException {\n String jsonStr = JSON.toJSONString(msg);\n\n for (String key : onlineSessions.keySet()) {\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" sent to client with username \" + key + \" and session \" + onlineSessions.get(key));\n System.out.println(key + \" : \" + onlineSessions.get(key));\n try {\n onlineSessions.get(key).getBasicRemote().sendObject(msg);\n } catch (IOException | EncodeException error) {\n error.printStackTrace();\n }\n }\n }",
"public void sendMessage(final List<ProxiedPlayer> players, final SoundType sound, String message) {\r\n\t\t//message = ChatColor.translateHexColorCodes(message);\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(TextComponent.fromLegacyText(message));\r\n\t\t\tKaranteeniCore.getSoundHandler().playSound(player, sound);\r\n\t\t}\r\n\t}",
"public static void sendAdminChatMessage(ServerPlayer player, Component textComponent) {\n if (ServerUtil.checkIfAdminSilenced(player)) return; // Don't send if admin silenced\n String text = textComponent.getString();\n\n text = \"[\" + player.getName() + \": \" + text + \"]\";\n TextComponent newtext = getText(ChatFormatting.GRAY + \"\" + ChatFormatting.ITALIC + text);\n List<ServerPlayer> players = ServerPlayerUtil.getOnlinePlayers();\n LogHelper.info(text);\n\n for (ServerPlayer serverPlayer : players) {\n if (ServerPlayerUtil.isOperator(serverPlayer) && !serverPlayer.getName().equals(player.getName())) {\n sendMessage(serverPlayer, newtext, false);\n }\n }\n\n }",
"public void announceToPlayers(String message)\n\t{\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\t((PlayerInstance) temp).sendMessage(message);\n\t\t\t}\n\t\t}\n\t}",
"public void sendMessage(final List<ProxiedPlayer> players, final BaseComponent component) {\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(component);\r\n\t\t}\r\n\t}",
"public void serverSendMessageToUser(String username, String message) {\r\n \t\tServerCommand serverCommand = new PrivateMessageServerCommand(message, \"server\", username, null);\r\n \r\n \t\tRoMClient userClient = this.clients.getClientByUsername(username);\r\n \r\n \t\tthis.sendCommandToClient(userClient, serverCommand);\r\n \t}",
"public abstract void sendConfirmationMessage(Player player);",
"public void sendMessageToUsers(JSONObject json, SSLSocketChannel channel) {\n\t\t\tsendMessageToUsers(json.toString(), channel);\n\t\t}",
"public void broadcastToChannelMembers(L2GameServerPacket gsp) \r\n\t{\r\n\t\tif (_partys != null)\r\n\t\t\tfor (L2Party party : _partys)\r\n\t\t\t\tif (party != null)\r\n\t\t\t\t\tparty.broadcastToPartyMembers(gsp);\r\n\t}",
"public void sendMessage(final List<ProxiedPlayer> players, final SoundType sound, final String prefix, String message) {\r\n\t\t//message = ChatColor.translateHexColorCodes(message);\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(TextComponent.fromLegacyText(prefix + message));\r\n\t\t\tKaranteeniCore.getSoundHandler().playSound(player, sound);\r\n\t\t}\r\n\t}",
"private void broadcast(String msg) {\n\t\tIterator i = onlineUsers.entrySet().iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry p = (Map.Entry)i.next();\n\t\t\tUser u = (User)p.getValue();\n\t\t\t\n\t\t\tu.output.println(msg);\n\t\t}\n\t}",
"public void sendChat(String client, String message) {\n\t\t//enqueue(\"PRIVMSG #\"+myself+\" :.w \"+client + \" imGlitch \" + message); //whisper\n\t\tenqueue(\"PRIVMSG #\"+Executable.targetChannel+\" :imGlitch (@\"+client + \") \" + message);\n\t}",
"@Override\n public void sendOrder(List<AbstractPlayer> playersOrderList) {\n List<Integer> orderList = new ArrayList<>();\n for (AbstractPlayer player : playersOrderList) {\n orderList.add(player.getIdPlayer());\n }\n try {\n if (getClientInterface() != null)\n getClientInterface().notifyTurnOrder(orderList);\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending order error\");\n }\n }",
"public void clientShout(String message) {\n\t\tfor (final Player player : this.players) {\n\t\t\tplayer.sendMessage(message);\n\t\t}\n\t}",
"@Override\n public void sendMessage(String from, String to, Message message){\n this.sendingPolicy.sendViaPolicy(from, to, message);\n //local persistence\n updateMessage(message);\n }",
"public void sendTo(P2PUser dest, Object msg) throws IOException;",
"public void sendAll(String message) {\n for (String id : sessions.keySet()) {\n send(id, message);\n }\n }",
"@Override\n\tprotected final void sendMessage(Object content, Performative performative, AgentAddress to){\n\n\t\tACLMessage message = new ACLMessage(content, performative);\n\t\t\n\t\tmessage.setProtocol(EnumFipaProtocol.FIPA_REQUEST);\n\t\tmessage.setConversationId( getConversationId() );\n\t\t\n\t\tgetRefAclAgent().sendACLMessage(message, to);\n\t\t\n\t\t//System.out.println(\"\\n=> MESSAGE envoyé via REQUEST PROTOCOL : \\n\" + message.toString());\n\t}",
"void sendChat(SendChatParam param);",
"public static void generalChat(Player player, String message) {\n BaseComponent[] baseComp = assembleChatMessage(createNamePredicate(player.getName(), player.getDisplayName(), \"\", \":\", ChatColor.WHITE), message);\n broadcast(baseComp);\n }",
"public void handleSendPlayers(long id, List<Player> players){\r\n\t\t//convert arraylist to array\r\n\t\tPlayer[] playerArray = players.toArray(new Player[players.size()]);\r\n\t\t\r\n\t\tsuper.handleSendPlayers(id, playerArray);\r\n\t}",
"@Override\n\tpublic void procesareMesajChat(MesajChat mesaj) {\n\t\tif(mesaj.getDestinatie(). isEmpty() || mesaj.getDestinatie().equals(\"@Everyoane\")) {\n\t\t\tif(this.next!=null)\n\t\t\t\tthis.next.procesareMesajChat(mesaj);\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//procesare mesaj privat\n\t\t\tSystem.out.println(String.format(\"Mesaj privat pentru %s = %s\",\n\t\t\t\t\tmesaj.getDestinatie(), mesaj.getContinut()));\n\t\t}\n\t}",
"public void sendMsgToPermissionDialogService(int what, Bundle data) {\n if (this.mPermissioinDialogService == null) {\n if (DEBUG) {\n Log.e(TAG, \"dialog Service is null\");\n }\n sRecordedMsgWhat = what;\n sRecordedData = data;\n if (!bindPermissionDialogService()) {\n if (DEBUG) {\n Log.e(TAG, \"bind false\");\n }\n sRecordedMsgWhat = 0;\n sRecordedData = null;\n return;\n }\n return;\n }\n if (DEBUG) {\n Log.e(TAG, \"dialog Service is not null, what = \" + what);\n }\n try {\n Message msg = Message.obtain((Handler) null, what);\n if (data != null) {\n msg.setData(data);\n }\n this.mPermissioinDialogService.send(msg);\n } catch (RemoteException e) {\n Log.e(TAG, \"\");\n }\n }",
"@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }",
"private void permisosContactos() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_CONTACTS) != PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.READ_CONTACTS, Manifest.permission.WRITE_CONTACTS\n }, CONTACTS_REQUEST_CODE);\n\n }\n\n else{\n llenarLista();\n }\n }",
"public void sendSc(CommandSender sender, String message) {\n StringPlaceholders stringPlaceholders = StringPlaceholders.builder(\"sender\", sender.getName())\n .addPlaceholder(\"message\", message)\n .addPlaceholder(\"prefix\", this.messageConfig.getString(\"prefix\")).build();\n\n Bukkit.getOnlinePlayers().stream()\n .filter(player -> player.hasPermission(\"eternalsc.use\"))\n .forEach(player -> {\n this.sendSCMessage(sender, player, stringPlaceholders);\n\n if (ConfigManager.Setting.STAFFCHAT_SOUND_ENABLED.getBoolean()) {\n player.playSound(player.getLocation(), Sound.valueOf(ConfigManager.Setting.STAFFCHAT_SOUND.getString()), ConfigManager.Setting.STAFFCHAT_SOUND_VOLUME.getInt(), 0);\n }\n });\n }",
"@Override\n public void Send(PacketDatagram packet) {\n try {\n //For Group Message\n if (packet.getSendMSG().isUDPMulticastMode()) {\n for (Network sendNetwork : networkManager.getNetworks().values()) {\n MakeSourceProfile(packet, sendNetwork);\n sendNetwork.sendAllNodes(packet);\n }\n } //For private message\n else {\n NetworkType nnodetype = packet.getNextNode().getNetworkType();\n Network sendNetwork = networkManager.getNetworks().get(nnodetype);\n MakeSourceProfile(packet, sendNetwork);\n sendNetwork.send(packet);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }",
"private void sendPermissions(final WebDriver driver, final String unAssignedPermission) {\n\n clickPermissionsTab();\n isDisplayedById(driver, roleConfig.get(UNASSIGNED_PERMISSIONS), MEDIUM_TIMEOUT);\n\n final String[] unAssignedPermissionList = unAssignedPermission.split(\",\");\n for (final String permissionText : unAssignedPermissionList) {\n\n int lastIndexOfSplit = permissionText.lastIndexOf(\"-\") + 1;\n\n final String property = permissionText.substring(0, lastIndexOfSplit - 1);\n final String permissionButton = permissionText.substring(lastIndexOfSplit,\n permissionText.length());\n\n final Permission permission = Permission.valueOf(permissionButton);\n int selectedPermission = 0;\n switch (permission) {\n case R:\n selectedPermission = 1;\n DriverConfig.setLogString(\"Read Only Permissions.\", true);\n break;\n case RW:\n selectedPermission = 2;\n DriverConfig.setLogString(\"Read/Write Permissions.\", true);\n break;\n case RWD:\n selectedPermission = 3;\n DriverConfig.setLogString(\"Read/Write/Delete Permissions.\", true);\n break;\n default:\n break;\n }\n final Select permissionSelect = new Select(driver.findElement(By.id(roleConfig\n .get(UNASSIGNED_PERMISSIONS))));\n permissionSelect.selectByVisibleText(property);\n DriverConfig.setLogString(\"Permissions Granted for :\" + property, true);\n logger.info(\"select required permission.\");\n driver.findElement(By.id(\"add\" + selectedPermission)).click();\n }\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n if (sender instanceof Player) {\n final Player player = (Player) sender;\n // PLAYER COMMANDS\n for(Map.Entry<String, CommandAction> entry : commands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n entry.getValue().run(sender, cmd, label, args, player);\n }\n }\n\n // MODERATOR COMMANDS\n for(Map.Entry<String, CommandAction> entry : modCommands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n if (isModerator(player)) {\n entry.getValue().run(sender, cmd, label, args, player);\n } else {\n sender.sendMessage(\"You don't have enough permissions to execute this command!\");\n }\n }\n }\n }\n return true;\n }",
"void sendMessage() {\n\n\t}",
"public void sendJoiningPlayer() {\r\n Player p = nui.getPlayerOne();\r\n XferJoinPlayer xfer = new XferJoinPlayer(p);\r\n nui.notifyJoinConnected();\r\n networkPlayer.sendOutput(xfer);\r\n }",
"void broadCastMessageLocal(Message message) {\n/* 1691 */ if (this.creatures != null)\n/* 1692 */ for (Iterator<Creature> it = this.creatures.iterator(); it.hasNext(); ) {\n/* */ \n/* 1694 */ Creature creature = it.next();\n/* 1695 */ if (!creature.getCommunicator().isInvulnerable()) {\n/* 1696 */ creature.getCommunicator().sendMessage(message);\n/* */ }\n/* */ } \n/* */ }",
"@Override\n public void sendMessage(Token token) throws JSimSecurityException, JSimInvalidParametersException {\n double random_number = uniform(0.5, 2.5);\n switch((int) Math.round(random_number)){\n //Notificar\n case 1:{\n //this.PE9.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE9\");\n token.setSender(this.getName());\n token.setPosting(\"PE9\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n //Llamar a emergencias\n case 2:{\n //this.PE8.receiveMessage(token);\n System.out.println(\"** Enviando mensaje desde PE7 hacia PE8\");\n token.setSender(this.getName());\n token.setPosting(\"PE8\");\n JSimLink link = new JSimLink(token);\n link.into(this.getProcessor().getQueue());\n break;\n }\n \n }\n \n }",
"private synchronized void sendAdvance(){\r\n\t\t\tfor(PrintWriter p : players){\r\n\t\t\t\tif(p != null){\r\n\t\t\t\t\tp.println(\"5\");\r\n\t\t\t\t\tp.println(Integer.toString(x));\r\n\t\t\t\t\tp.println(Integer.toString(y));\r\n\t\t\t\t\tp.flush();\r\n\t\t\t\t}else{\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\t\r\n\t\t\t}\t\r\n\t\t}",
"public void broadcast(int cacheIndex) {\n for (Player online : Sponge.getServer().getOnlinePlayers())\n online.sendMessage(messageCache.get(cacheIndex));\n }",
"private void broadcast(String msg) {\n\t\tfor (PrintWriter out : clients) {\n\t\t\tout.println(msg);\n\t\t\tout.flush();\n\t\t}\n\t}",
"public void sendMessage(int value, String uname, String msg) {\n\t\t\tif (value == 1) {\n\t\t\t\toutput.println(uname + \" : \" + msg);\n\t\t\t} else if (value == 3) {\n\t\t\t\toutput.println(\"Server: The User \" + msg + \" does not Exis!!\");\n\t\t\t} else if (value == 5) {\n\t\t\t\toutput.println(\"Server: Private Message to yourself!\");\n\t\t\t} else {\n\t\t\t\toutput.println(uname + \"(Private)\" + \" : \" + msg);\n\t\t\t}\n\t\t}",
"private void sendTextToAllClients(String text) {\n\t\tfor (ClientManager cm : serverHolder.findAllClientManagers()) {\n\t\t\tcm.sendText(name, text);\n\t\t}\n\t}",
"public synchronized void broadcast(String message, String username)\r\n {\r\n\r\n\r\n if (username == \"server\")\r\n {\r\n\r\n }\r\n //this was for private chat\r\n else\r\n {\r\n int k = 0;\r\n while (k < clientList.size())\r\n {\r\n if(clientList.get(k).username.equals(username))\r\n {\r\n try \r\n {\r\n OutputStream os = clientList.get(k).socket.getOutputStream();\r\n OutputStreamWriter osw = new OutputStreamWriter(os);\r\n BufferedWriter bw = new BufferedWriter(osw);\r\n bw.write(message);\r\n bw.flush();\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Error setting up private chat\");\r\n }\r\n }\r\n }\r\n }\r\n String messageLf = \" \" + message + \"\\n\";\r\n\r\n\r\n System.out.print(messageLf);\r\n for(int i = clientList.size(); --i >= 0;)\r\n {\r\n ClientProcess ct = clientList.get(i);\r\n\r\n if(!ct.writeMessage(messageLf))\r\n {\r\n clientList.remove(i);\r\n displayMessage(\"Disconnected Client \" + ct.username + \" removed from list.\");\r\n }\r\n }\r\n }",
"void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }"
] | [
"0.65606385",
"0.6458323",
"0.6349462",
"0.6225352",
"0.6077561",
"0.6041061",
"0.601192",
"0.5991024",
"0.59603286",
"0.5913042",
"0.58745056",
"0.581606",
"0.57561547",
"0.5735566",
"0.573116",
"0.5729364",
"0.5711508",
"0.5709781",
"0.5698927",
"0.569474",
"0.5678595",
"0.5677318",
"0.5670938",
"0.565619",
"0.5652287",
"0.5643164",
"0.5632861",
"0.5632576",
"0.5621028",
"0.56047535",
"0.559952",
"0.55991113",
"0.55773884",
"0.5572908",
"0.5570952",
"0.556257",
"0.5550229",
"0.5544353",
"0.5532497",
"0.5521882",
"0.55137014",
"0.55127496",
"0.5507538",
"0.5499266",
"0.54861283",
"0.5465468",
"0.5463601",
"0.5420747",
"0.5417677",
"0.54112995",
"0.5408951",
"0.53923625",
"0.5385687",
"0.53708625",
"0.53344136",
"0.5330963",
"0.53258383",
"0.53174627",
"0.53042454",
"0.5304173",
"0.53018945",
"0.52918565",
"0.528688",
"0.5265036",
"0.52638406",
"0.5245536",
"0.52408624",
"0.52364",
"0.52329093",
"0.5231797",
"0.52305067",
"0.52295214",
"0.521763",
"0.5203225",
"0.519961",
"0.5193938",
"0.5188109",
"0.51654625",
"0.51619244",
"0.5155185",
"0.51532745",
"0.51488805",
"0.51475626",
"0.51446104",
"0.51408815",
"0.51391435",
"0.5124957",
"0.51242673",
"0.5122122",
"0.5117829",
"0.5115004",
"0.511046",
"0.5105421",
"0.51034814",
"0.509958",
"0.5097713",
"0.5096675",
"0.50933194",
"0.508521",
"0.50830066"
] | 0.7706496 | 0 |
Broadcast a message to all players. | public static void broadcast(String message) {
Bukkit.broadcastMessage(message);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void broadcast(String message)\n \t{\n \t\tfor(int i = 0; i < players.length; i++)\n \t\t{\n // PROTOCOL\n \t\t\tplayers[i].sendMessage(message);\n // PROTOCOL\n \t\t}\n \t}",
"public void broadcast() {\n for (int i = 1; i <= nbMessagesToBroadcast; i++) {\n Message broadcastMsg = new Message(pid, pid, i,false, null);\n lcb.broadcast(broadcastMsg);\n logs.add(String.format(\"b %d\\n\",i));\n }\n }",
"private void broadcast(ArrayList<Integer> update){\n for (Player p : players.values()){\n p.sendModel(update);\n }\n }",
"@Override\n public void broadcast(T msg) {\n for (Integer i : activeUsers.keySet()) {\n this.send(Integer.valueOf(i), msg);\n }\n\n }",
"public void messageToAll(String s) {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.send(new Package(\"MESSAGE\",s));\n\t\t}\n\t\t\n\t}",
"public void broadcastMsg(String msg) {\n for (Client c : sockets) {\n c.sendMessage(msg);\n }\n }",
"public void broadcastmsg(String msg){\r\n Server.getUsers().forEach((user) -> {\r\n user.sendmsg(msg);\r\n });\r\n }",
"private void broadcast(String msg) {\n\t\tfor (PrintWriter out : clients) {\n\t\t\tout.println(msg);\n\t\t\tout.flush();\n\t\t}\n\t}",
"public void broadcast(String msg, TBGPCommand command) {\n\t\tplayers.forEach((k,v) -> k.sendMessage(new TBGPMessage(command,msg)));\n\t}",
"public void broadcast(String message){\n Iterator it = subscribedClientsOutputStreams.iterator(); \n while(it.hasNext()){\n try{\n PrintWriter writer = (PrintWriter) it.next();\n writer.println(message);\n writer.flush();\n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n }",
"public static void playerBroadcast(Player sender, final String message, boolean webchat, boolean console) {\n\t\tfor (StandardPlayer player : instance.getOnlinePlayers()) {\n\t\t\tif (player != sender && player.isOnline()) {\n\t\t\t\ttry {\n\t\t\t\t\tplayer.sendMessage(message);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// Can happen if a player leaves as this handler is running\n\t\t\t\t\tinstance.getLogger().severe(\"Exception while broadcasting\");\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tBukkit.getConsoleSender().sendMessage(webchatConsoleGate(message, webchat, console));\n\t}",
"public static void broadcastPacket(@NonNull Iterable<Player> players, @NonNull PacketContainer packet) {\n for (Player player : players) {\n sendPacket(player, packet);\n }\n }",
"private void broadcast() {\n for (int key : bootstrapMap.keySet()) {\n bootstrapMap.get(key).getBroadcastView().show(Colors.BLUE + gameService.getCurrentPlayer().getName() + Colors.NOCOLOR, lastAnswer);\n }\n gameService.upDateCurrentPlayer();\n }",
"public void broadcast(Object msg);",
"public void broadcastMessage(String message) throws IOExceptionFromController {\n for (PlayerController controller : playerControllers) {\n if (controller == null) continue;\n try {\n controller.getClient().displayMessage(message);\n } catch (IOException e) {\n checkDisconnection(e, controller);\n }\n }\n }",
"public final void broadcast()\n\t{\n\t\ttopic.broadcast(originalMessage);\n\t}",
"private void broadcast(String msg) {\n\t\tIterator i = onlineUsers.entrySet().iterator();\n\t\t\n\t\twhile (i.hasNext()) {\n\t\t\tMap.Entry p = (Map.Entry)i.next();\n\t\t\tUser u = (User)p.getValue();\n\t\t\t\n\t\t\tu.output.println(msg);\n\t\t}\n\t}",
"public void broadcast(String user, String message) {\n\t\tfor (HandleClient c : clients)\n\t\t\tif (!c.getUserName().equals(user)) {\n\t\t\t\tc.sendMessage(1, user, message);\n\t\t\t}\n\t}",
"public void broadcastInfo(String msg){\n\t\tfor (User u : Servidor.users) {\n\t\t\ttry {\t\t\t\t\n\t\t\t\tDataOutputStream o = new DataOutputStream(u.getSocket().getOutputStream());\n\t\t\t\to.writeUTF(msg);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void sendMessages(String[] messages)\r\n\t{\r\n\t\tfor(Player player: this.players)\r\n\t\t{\r\n\t\t\tif(player != null)\r\n\t\t\t{\r\n\t\t\t\tplayer.sendMessages(messages);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public synchronized void broadcast(String message, String username)\r\n {\r\n\r\n\r\n if (username == \"server\")\r\n {\r\n\r\n }\r\n //this was for private chat\r\n else\r\n {\r\n int k = 0;\r\n while (k < clientList.size())\r\n {\r\n if(clientList.get(k).username.equals(username))\r\n {\r\n try \r\n {\r\n OutputStream os = clientList.get(k).socket.getOutputStream();\r\n OutputStreamWriter osw = new OutputStreamWriter(os);\r\n BufferedWriter bw = new BufferedWriter(osw);\r\n bw.write(message);\r\n bw.flush();\r\n }\r\n catch(IOException e)\r\n {\r\n System.out.println(\"Error setting up private chat\");\r\n }\r\n }\r\n }\r\n }\r\n String messageLf = \" \" + message + \"\\n\";\r\n\r\n\r\n System.out.print(messageLf);\r\n for(int i = clientList.size(); --i >= 0;)\r\n {\r\n ClientProcess ct = clientList.get(i);\r\n\r\n if(!ct.writeMessage(messageLf))\r\n {\r\n clientList.remove(i);\r\n displayMessage(\"Disconnected Client \" + ct.username + \" removed from list.\");\r\n }\r\n }\r\n }",
"public void broadcast(int cacheIndex) {\n for (Player online : Sponge.getServer().getOnlinePlayers())\n online.sendMessage(messageCache.get(cacheIndex));\n }",
"public void broadcast(User sender, String string)\n {\n byte[] bytesToSend = string.getBytes();\n for (User user : m_users)\n {\n if (user != sender) user.sendBroadcast(bytesToSend);\n }\n }",
"public void sendGameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDGM\" + lobby.getGameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public static void broadcastFormattedMessage(String message, World world) {\r\n for (Player p : world.getPlayers()) {\r\n sendFormattedMessage(p, message);\r\n }\r\n }",
"public void broadcastMessage(ArrayList<Client> clients, String message) {\n\t\tfor (Client client : clients) {\n\t\t\tsendClientMsg(client, message);\n\t\t}\n\t}",
"@Override\n\tpublic void BroadcastMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tfor(Socket s : clients)\n\t\t{\n\t\t\tprintWriters.get(s).println(message);\n\t\t}\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void sendNameInfoToAll(){\r\n\t\t\r\n\t\tVector<Player> players = lobby.getLobbyPlayers();\t\r\n\t\tString message = \"UDNM\" + lobby.getNameString();\r\n\t\t\r\n\t\tif(!players.isEmpty()){\r\n\t \tfor(int i=0; i<players.size(); i++){\t \t\t\r\n\t \t\tsendOnePlayer(players.get(i), message);\t \t\t\r\n\t \t}\r\n\t\t}\r\n\t}",
"public void broadcastToChannelMembers(L2GameServerPacket gsp) \r\n\t{\r\n\t\tif (_partys != null)\r\n\t\t\tfor (L2Party party : _partys)\r\n\t\t\t\tif (party != null)\r\n\t\t\t\t\tparty.broadcastToPartyMembers(gsp);\r\n\t}",
"public void broadcast(DefinedPacket packet)\n {\n for (UserConnection con : connections.values())\n {\n con.packetQueue.add(packet);\n }\n }",
"public void broadcastMessage(String message) {\n for (WebSocket conn : reverseMap.keySet()) {\n conn.send(message);\n }\n }",
"public static void opBroadcast(String message){\n JawaChat.opsOnline.values().forEach((target) -> {\n target.sendMessage(message);\n });\n logMessage(message, \"op channel\");\n }",
"public void broadcast(byte[] data)\n\t{\n\t\tfor(Connection c : CLIENTS)\n\t\t{\n\t\t\tsend(new Packet(data, c.getAddress(), c.getPort()));\n\t\t}\n\t}",
"public static void broadcastFormattedMessage(List<String> messageList, World world) {\r\n for (Player p : world.getPlayers()) {\r\n sendFormattedMessage(p, messageList);\r\n }\r\n sendFormattedMessage(Bukkit.getConsoleSender(), messageList);\r\n }",
"public void clientShout(String message) {\n\t\tfor (final Player player : this.players) {\n\t\t\tplayer.sendMessage(message);\n\t\t}\n\t}",
"synchronized void broadcastMessage(Message message) throws InterruptedException {\n for (Neighbor neighbor : node.getNeighbors()) {\n if (!neighbor.getAddress().equals(message.getSender())) {\n neighbor.sendMessage(message);\n }\n }\n }",
"private void send(Iterable<T> aMessages) {\n for (Listener<T> myL : _listeners)\n myL.arrived(aMessages);\n }",
"@Override\n\tpublic void onBroadcast(EventMessage message) {\n\t\tif (message.tag == C.Tag.TO_SELF) {\n\t\t\tif (message.msg == C.Msg.SOUND_WIN) {\n\t\t\t\tplaySoundGameWon();\n\t\t\t} else if (message.msg == C.Msg.SOUND_LOST) {\n\t\t\t\tplaySoundGameLost();\n\t\t\t} else if (message.msg == C.Msg.SOUND_SUCCEED) {\n\t\t\t\tplaySoundSuccess();\n\t\t\t} else if (message.msg == C.Msg.SOUND_FAIL) {\n\t\t\t\tplaySoundFail();\n\t\t\t}\n\t\t}\n\n\t}",
"public void broadcast(UUID userId, String message, MessageColor color) {\n User user = UserManager.getInstance().getUser(userId);\n if (user != null) {\n for (ChatSession chat: chatSessions.values()) {\n if (chat.hasUser(userId)) {\n chat.broadcast(user.getName(), message, color);\n }\n }\n }\n }",
"private void sendMessageToAll(String message){\n for(Session s : sessions){\n try {\n s.getBasicRemote().sendText(message);\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n }",
"public static void broadcastFormattedMessage(List<String> messageList) {\r\n for (String s : messageList) {\r\n Bukkit.broadcastMessage(formatMessage(s));\r\n }\r\n }",
"public void serverSendMessageToAllUsers(String message) {\r\n \t\tServerCommand serverCommand = new MessageServerCommand(message, \"server\", null);\r\n \r\n \t\tthis.sendCommandToClient(this.clients.getClients(), serverCommand);\r\n \t}",
"public synchronized void broadcastMessage(String message) throws RemoteException {\n\t\tSystem.out.println(\"Server: Message > \" + \"broadcastMessage() invoked\");\n\n\t\tint i = 0;\n\t\twhile (i < chatClients.size()) {\n\t\t\t// Retrieve notification\n\t\t\tRemCalendar client = chatClients.get(i++);\n\t\t\tString name = client.getPosterName();\n\t\t\t//System.out.println(\"POSTER: \"+name);\n\t\t\tif (!message.contains(name))\n\t\t\t\tclient.retrieveMessage(message);\n\t\t}\n\n\t}",
"public void broadcast(String message) throws BroadcastException {\n\t\t\n\t}",
"public void sendAll(String message) {\n for (String id : sessions.keySet()) {\n send(id, message);\n }\n }",
"private void sendToAll(final byte[] data) {\n for (ServerClient client : clients) {\n send(data, client.getAddress(), client.getPort());\n }\n }",
"public void notifyAllFriends(PresenceModel presence);",
"@Override\n public void sendMessage(String to, String content)\n {\n if (to.equals(\"all\"))\n {\n agent.sendBroadcast(content);\n return;\n }\n agent.sendMessage(to, content);\n }",
"public void sendMessage(final List<ProxiedPlayer> players, final BaseComponent component) {\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(component);\r\n\t\t}\r\n\t}",
"public void announceToPlayers(String message)\n\t{\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\t((PlayerInstance) temp).sendMessage(message);\n\t\t\t}\n\t\t}\n\t}",
"public void sendMessageToAllClients(MessageWrapper message) {\n sendMessageToServer(message);\n\n for (SendenDevice device : clientsConnected.values()) {\n if (!device.getDeviceMac().equals(wiFiP2PInstance.getThisDevice().getDeviceMac())) {\n sendMessage(device, message);\n }\n }\n }",
"private synchronized void broadcastMessage(String body) {\n logger.debug(\"Broadcasting message: \" + body);\n Message message = ConfigurationPacket.createMessage(body);\n message.setFrom(serverId);\n this.sessionManager.broadcast(message);\n }",
"protected abstract void sendMessage(UUID[] players, String[] messages, IntConsumer response);",
"public void broadcast(String message, UserThread excludeUser) {\n\t\t\n\t\tfor (UserThread aUser : userThreads) {\n\t\t\tif (aUser != excludeUser) {\n\t\t\t\taUser.sendMessage(message);\n\t\t\t}\n\t\t}\n\t}",
"public void handleSendPlayers(long id, List<Player> players){\r\n\t\t//convert arraylist to array\r\n\t\tPlayer[] playerArray = players.toArray(new Player[players.size()]);\r\n\t\t\r\n\t\tsuper.handleSendPlayers(id, playerArray);\r\n\t}",
"private static void multicast(String msg) {\n \tfor(int id : IPs.keySet()) {\n \t\ttry {\n \t\t\tunicast_send(id, msg);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n \t}\n }",
"public void sendMatch() {\n for (int i = 0; i < numberOfPlayers; i++) {\n try {\n // s = ss.accept();\n oos = new ObjectOutputStream(sockets.get(i).getOutputStream());\n oos.writeObject(game);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }",
"private synchronized void broadcast(String message){\n //add dd-MM-yyyy HH:mm:ss to the message, each starting on a new line\n String messageLf = sdf.format(new Date()) + \" \" + message + \"\\n\";\n // display message in GUI\n displayMsg(messageLf);\n //loop in reverse order in case a client disconnects & needs to be removed\n for (int i = al.size(); --i >= 0;){\n ClientThread ct = al.get(i);\n // try to write to the client, if fail, remove client from the list\n if (!ct.writeMsg(messageLf)) {\n al.remove(i);\n displayEvent(\"Disconnected Client \" + ct.username +\n \" removed from list.\");\n }\n }\n }",
"public void cardToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tcardToOne(player);\n\t\t\ttry {Thread.sleep(200);}catch(Exception exc) {exc.printStackTrace();}\n\t\t}\n\t}",
"protected abstract void sendMessage(UUID[] players, BaseComponent[][] messages, IntConsumer response);",
"@SuppressWarnings(\"WeakerAccess\")\n\tpublic void sendMessage(@NonNull BroadcastMessage message) {\n\t\tmDelegate.sendMessage(message);\n\t}",
"public void broadcastExceptMe(Client client, String msg) {\n for (Client c : sockets) {\n if (c == client) {\n continue;\n }\n c.sendMessage(msg);\n }\n }",
"@Override\n\tpublic void execute() {\n\t\tif (!(messageText == null || messageText.isEmpty())) {\n\n\t\t\tMessage message = new Message();\n\t\t\tMessage.Type messageType;\n\t\t\tif (recipientsIds.isEmpty())\n\t\t\t\tmessageType = Type.USER_BROADCAST;\n\t\t\telse\n\t\t\t\tmessageType = Type.USER_PERSONAL;\n\n\t\t\tmessage.setSender(PlayersRegister.getInstance().getPlayerById(getUserId()));\n\t\t\tmessage.setText(messageText);\n\t\t\tmessage.setType(messageType);\n\n\t\t\tArrayList<Player> recipients = PlayersRegister.getInstance().getPlayersById(recipientsIds);\n\t\t\tif (!recipientsIds.isEmpty())\n\t\t\t\trecipients.add(message.getSender()); // echo the message to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// sender as well\n\n\t\t\tmessage.setRecipients(recipients);\n\t\t\tmessage.send();\n\n\t\t}\n\n\t}",
"public void sendMessages(List<String> messages) {\n if (!this.isConnectedToClientServer){return;}\n for (String message : messages){\n try {\n outputQueue.put(message);\n break;\n //board is sending a ball message about this ball, which means this ball is leaving the board\n } catch (InterruptedException e) {\n //don't do anything --> queue to server is interrupted, but single-machine play still happens\n }\n }\n }",
"@Override\n\t\t\tpublic void onMessage(Connect connect, MessageEvent event){\n\t\t\t\tif(!event.getChannel().equalsIgnoreCase(\"AdminChat\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Get the message */\n\t\t\t\tString message = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tmessage = event.getMessageAsString();\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t/* Something went wrong, don't broadcast */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Broadcast it! */\n\t\t\t\tfor(Player player : plugin.getServer().getOnlinePlayers()){\n\t\t\t\t\tif(player.hasPermission(\"adminchat.use\")) player.sendMessage(message);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@Override\n\tpublic synchronized void sendBroadcast(Broadcast b) {\n\t\tif (typesQueue != null && !typesQueue.isEmpty())\n\t\t{\n\t\t\tif(typesQueue.containsKey(b.getClass()) && !typesQueue.get(b.getClass()).isEmpty())\n\t\t\t{\n\t\t\t\tif(subscribersMessages!=null)\n\t\t\t\t{\n\t\t\t\t\tfor (Subscriber s : typesQueue.get(b.getClass())) {\n\t\t\t\t\t\tsubscribersMessages.get(s).add(b);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnotifyAll();\n\t}",
"@Override\n\tpublic void sendBroadcast(Broadcast b) {\n\t\tArrayList<MicroService> a = registrationHashMap.get(b);\n\t\t// adding the broadcast message to the queue of each microservice on the subscribed list\n\t\tfor (Object o : a) {\n\t\t\tint index = registeredMicroservice.indexOf(o);\n\t\t\tmicroserviceMessageQueue.get(index).add(b);\n\t\t}\n\t}",
"public void sendBroadcast(byte[] bytesToSend)\n {\n if (m_name != null)\n {\n m_socket.write(bytesToSend);\n }\n\n }",
"public int publishToAll(Message message);",
"public void sendUpdate() {\n int i = 1;\n\n Deque<ProxiedPlayer> removePlayers = new LinkedList<>();\n\n for (ProxiedPlayer player : playersQueue) {\n Server playerServer = player.getServer();\n\n // Player is not connected OR Player Server is not the Queue Server\n if (!player.isConnected() || !playerServer.getInfo().getName().equals(Config.queue)) {\n removePlayers.add(player);\n continue;\n }\n\n player.sendMessage(TextComponent.fromLegacyText(ChatColor.translateAlternateColorCodes('&', Config.messagePosition.replaceAll(\"%position%\", Integer.toString(i))) + \"§r\"));\n\n i++;\n }\n\n for (ProxiedPlayer player : removePlayers) {\n try {\n // Remove Player from the queue\n mutex.acquire();\n playersQueue.remove(player);\n\n Main.log(\"sendUpdate\", \"§3§b\" + player.toString() + \"§3 was removed from §b\" + Config.queue + \"§3 (wrong server or disconnected). Queue count is \" + playersQueue.size() + \".\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n mutex.release();\n }\n }\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\n }",
"public static void broadcastFormattedMessage(String message) {\r\n Bukkit.broadcastMessage(formatMessage(message));\r\n }",
"boolean send(String message, PlayerID from, PlayerID to) {\n\t\tfor (Player player : players) {\n\t\t\tif (player.id().equals(to)) {\n\t\t\t\tplayer.sendMsg(\"P\" + from.toString() + \": \" + message);\n\t\t\t\tlog.add(new String[] { from.toString(), message, String.valueOf(System.currentTimeMillis()) });\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public static void sendBroadcast(){\n Intent intent = new Intent(CUSTOM_BROADCAST_ACTION);\n context.sendBroadcast(intent);\n }",
"public void sendMessage(final List<ProxiedPlayer> players, final SoundType sound, String message) {\r\n\t\t//message = ChatColor.translateHexColorCodes(message);\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(TextComponent.fromLegacyText(message));\r\n\t\t\tKaranteeniCore.getSoundHandler().playSound(player, sound);\r\n\t\t}\r\n\t}",
"public void notifyAdmins(){\n \tfor(PlayerHandler player : players){\n \t\tif(player.isAdmin()){\n \t\t\tplayer.notify(1);\n \t\t}\n \t}\n }",
"private void sendMessage(String mPos) {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"adapter action\");\n // You can also include some extra data.\n intent.putExtra(\"song position\", mPos);\n LocalBroadcastManager.getInstance(mContext).sendBroadcast(intent);\n }",
"public void broadcast(String accountId, Object messageObject) {\n\t\tUserGroup group = authenticatedUserGroupsByAccountId.get(accountId);\n\t\tif (group != null) {\n\t\t\ttry {\n\t\t\t\tString messageJsonString = objectMapper.writeValueAsString(messageObject);\n\t\t\t\tgroup.userSessions.stream().filter(Session::isOpen).forEach(session -> {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsession.getRemote().sendString(messageJsonString);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlogger.error(\"Unable to send message JSON to session: {}\", session);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t} catch (JsonProcessingException e) {\n\t\t\t\tlogger.error(\"Unable to transform POJO to JSON\", e);\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }",
"public void actionPerformed(ActionEvent arg0) {\r\n\t\tsynchronized (this.messages) {\r\n\t\t\tif (this.messages.size() == 0) {\r\n\t\t\t\tif (!this.sendMessages) {\r\n\t\t\t\t\tthis.messageTimer.stop();\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tMessage msg = this.messages.remove();\r\n\t\t\tthis.println(\"Our Message: \" + msg.getMessage());\r\n\r\n\t\t\t// Messages are either to the entire server or to individual clients\r\n\t\t\tif (msg.getPlayerNo() == Message.ALL_CLIENTS) {\r\n\t\t\t\t// Send the message to every client at the same time\r\n\t\t\t\tsynchronized (this.allClients) {\r\n\t\t\t\t\tfor (Client client : this.allClients) {\r\n\t\t\t\t\t\t// Send the message only to clients who are not ignored\r\n\t\t\t\t\t\tif (client.getPlayerNo() != msg.getIgnoredPlayer()) {\r\n\t\t\t\t\t\t\tclient.sendMessage(msg.getMessage());\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} else {\r\n\t\t\t\t// Send the message to a specific client\r\n\t\t\t\tClient temp = this.players.get(msg.getPlayerNo());\r\n\t\t\t\tif (temp != null) {\r\n\t\t\t\t\ttemp.sendMessage(msg.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void broadcastPacket(@NonNull PacketContainer packet) {\n manager().broadcastServerPacket(packet);\n }",
"public void sendMessage ( UUID sender , String... messages ) {\n\t\texecute ( handle -> handle.sendMessage ( sender , messages ) );\n\t}",
"private void broadcastData(String data, User currentUser) throws IOException {\n Set<User> keySet = connectedUsers.keySet();\n int count = 0;\n\n for (User temp : keySet) {\n if (temp.equals(currentUser)) {\n continue;\n }\n\n SocketChannel socketChannel = connectedUsers.get(temp);\n OperationHandler.sendData(socketChannel, currentUser.getUserName() + \": \" + data);\n count++;\n }\n\n // Send feedback to the user.\n SocketChannel socketChannel = connectedUsers.get(currentUser);\n OperationHandler.sendData(socketChannel, String.format(Constants.MESSAGE_SENT, count));\n }",
"private void sendGMToAll(String msg){\r\n for(ClientHandler ch: clientThreads){\r\n try{\r\n //Get the client's ObjectOutputStream\r\n ObjectOutputStream oos = ch.getOOS();\r\n //Print the message to the client\r\n oos.writeObject(new DataWrapper(0, msg, true));\r\n } catch(IOException ioe) {\r\n System.out.println(\"IOException occurred: \" + ioe.getMessage());\r\n ioe.printStackTrace();\r\n }\r\n }\r\n }",
"private void sendUpdates() {\n\n List<PeerUpdateMessage.Part> parts = new ArrayList<PeerUpdateMessage.Part>();\n for (ActivePlayer peer : player.getSavedNeighbors()) {\n PeerUpdateMessage.Part part = new PeerUpdateMessage.Part(\n peer.character.id, peer.character.getExtrapolatedMotionState());\n parts.add(part);\n }\n\n if (!parts.isEmpty()) {\n PeerUpdateMessage msg = new PeerUpdateMessage(parts);\n new ToClientMessageSink(player.session).sendWithoutConfirmation(msg);\n }\n }",
"public void notifyPlayer(String playername){\n \tfor(PlayerHandler player : players){\n \t\tif(player.getPlayerName().equalsIgnoreCase(playername)){\n \t\t\tplayer.notify(1);\n \t\t}\n \t}\n }",
"public void sendPeerListToAll() {\r\n\t\tPacket packet = new Packet();\r\n\t\tpacket.eventCode = 1;\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\tPeer peer = new Peer();\r\n\t\t\tpeer.peerID = peerClientNodeConnectionList.get(i).peerClientID;\r\n\t\t\tpeer.peerIP = peerClientNodeConnectionList.get(i).peerClientIP;\r\n\t\t\tpeer.peerPort = peerClientNodeConnectionList.get(i).peerClientListeningPort;\r\n\t\t\tpacket.peerList.add(peer);\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i < peerClientNodeConnectionList.size(); i++) {\r\n\t\t\ttry {\r\n\t\t\t\tpeerClientNodeConnectionList.get(i).outStream.writeObject(packet);\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t}",
"@Override\n\t\tpublic void onMessage(String msg) {\n\t\t\tif(msg.equals(\"update\")) {\n\t\t\t\tAuctionList al = new AuctionList();\n\t\t\t\tal.refreshAuction();\n\t\t\t}\n\t\t\tfor (ChatWebSocket member : webSockets) {\n\t\t try {\n\t\t member.connection.sendMessage(msg);\n\t\t \n\t\t } catch(IOException e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t\t }\n\t\t}",
"public final void broadcastMessage(String message) {\n mExtensionContext.broadcastMessage(this, message);\n }",
"public void broadcast(CommonPacket packet) {\n super.broadcast(packet);\n }",
"public static void broadcast(BaseComponent[] baseComp){\n Bukkit.getServer().getOnlinePlayers().forEach((target) -> {\n target.spigot().sendMessage(baseComp);\n });\n String logmsg = \"\";\n for (BaseComponent comp : baseComp){\n logmsg += comp.toPlainText();\n }\n logMessage(logmsg, \"general\");\n }",
"public void sendMessage(final List<ProxiedPlayer> players, final SoundType sound, final String prefix, String message) {\r\n\t\t//message = ChatColor.translateHexColorCodes(message);\r\n\t\tfor(ProxiedPlayer player : players) {\r\n\t\t\tplayer.sendMessage(TextComponent.fromLegacyText(prefix + message));\r\n\t\t\tKaranteeniCore.getSoundHandler().playSound(player, sound);\r\n\t\t}\r\n\t}",
"public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}",
"private void sendMessage() {\n Log.d(\"sender\", \"Broadcasting message\");\n Intent intent = new Intent(\"custom-event-name\");\n // You can also include some extra data.\n double[] destinationArray = {getDestination().latitude,getDestination().longitude};\n intent.putExtra(\"destination\", destinationArray);\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"private synchronized void flushMessageQueue() {\n\t\tif(peers.size() > 0) {\n\t\t\twhile(!noPeersMessageQueue.isEmpty()) {\n\t\t\t\tpropagateToAllPeers(noPeersMessageQueue.poll());\n\t\t\t}\n\t\t}\n\t}",
"public void sendMessage ( String... messages ) {\n\t\texecute ( handle -> handle.sendMessage ( messages ) );\n\t}",
"private static void send() {\n Map<String, ArrayList<Event>> eventsByStream = new HashMap<>();\n for (Event event : QUEUE) {\n String stream = event.getStream();\n if (!eventsByStream.containsKey(stream) || eventsByStream.get(stream) == null) {\n eventsByStream.put(stream, new ArrayList<>());\n }\n eventsByStream.get(stream).add(event);\n }\n for (String stream : eventsByStream.keySet()) {\n if (Prefs.INSTANCE.isEventLoggingEnabled()) {\n sendEventsForStream(STREAM_CONFIGS.get(stream), eventsByStream.get(stream));\n }\n }\n }",
"public void askToAll() {\n\t\tfor(ClientThread player: players) {\n\t\t\tif(player != dealer)\n\t\t\t\tplayer.send(new Package(\"ASK\",null));\n\t\t\telse {\n\t\t\t\tdealer.send(new Package(\"MESSAGE\",\"As dealer, you'll wait for other players...\"));\n\t\t\t}\n\t\t}\n\t}",
"public void send(String raw_msg, AbstractVisitor sender) {\n\n for(AbstractVisitor user : users) {\n if(sender != user) {\n user.receive(\"From \" + sender.getName() + \" to \" + user.getName() + \": \" + raw_msg);\n }\n }\n\n }"
] | [
"0.77389324",
"0.74205834",
"0.7121333",
"0.70147735",
"0.699261",
"0.6926037",
"0.6863096",
"0.6785842",
"0.6606499",
"0.6603655",
"0.6590527",
"0.6581277",
"0.6538427",
"0.6521681",
"0.651778",
"0.647494",
"0.64553416",
"0.645011",
"0.63864475",
"0.6378161",
"0.635685",
"0.6352735",
"0.6307526",
"0.62688786",
"0.62625563",
"0.62039435",
"0.6180092",
"0.6134493",
"0.6075036",
"0.6002849",
"0.5978146",
"0.5978066",
"0.597114",
"0.5909218",
"0.589037",
"0.5885739",
"0.5862178",
"0.58456486",
"0.5844426",
"0.5776242",
"0.575504",
"0.57486284",
"0.57241666",
"0.5682444",
"0.56760633",
"0.56603396",
"0.5633574",
"0.5606283",
"0.559407",
"0.5593122",
"0.5591036",
"0.55712724",
"0.5569253",
"0.55662084",
"0.5554392",
"0.5540785",
"0.5526595",
"0.5522468",
"0.5521067",
"0.5517784",
"0.5515884",
"0.55038846",
"0.5487965",
"0.547466",
"0.546159",
"0.54563826",
"0.5455276",
"0.54434955",
"0.54394597",
"0.5421572",
"0.5419493",
"0.5412783",
"0.5399182",
"0.53973657",
"0.5396614",
"0.5391233",
"0.5377897",
"0.53678447",
"0.5366114",
"0.5363572",
"0.53586596",
"0.5347029",
"0.53371406",
"0.53338677",
"0.5333232",
"0.5332189",
"0.5329287",
"0.5328712",
"0.5285631",
"0.5285231",
"0.52811116",
"0.5280632",
"0.52739906",
"0.5264606",
"0.52616",
"0.52577287",
"0.52472466",
"0.52436036",
"0.5242885",
"0.5224887"
] | 0.6135282 | 27 |
Test if a CommandSender has a certain permission. Prepend SlapPlugin.[perm] | public static boolean testPermission(CommandSender sender, String perm) {
return !(sender instanceof Player) || sender.hasPermission("SlapPlugin." + perm);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasPermission(CommandSender sender, String pNode) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }",
"public boolean handlePerm(Player player, String perm);",
"boolean hasPermission(final Player sniper, final String permission);",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n\t{\n\t\tif ((sender instanceof Player && !allowPlayer) || (!(sender instanceof Player) && !allowConsole))\n\t\t{\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You can't do that from here\");\n\t\t\treturn false;\n\t\t}\n\t\tif (permission == null || sender.hasPermission(permission))\n\t\t\tonInvoked(sender, args);\n\t\telse\n\t\t\tsender.sendMessage(ChatUtility.getSettings().nickMessage + \"You don't have permission to do this\");\n\t\treturn true;\n\t}",
"public boolean canCommandSenderUseCommand(ICommandSender sender)\n {\n\t\treturn FMLCommonHandler.instance().getMinecraftServerInstance().getConfigurationManager().canSendCommands(((EntityPlayerMP) sender).getGameProfile());\n }",
"public boolean attempt(CommandSender sender) {\n boolean allowed = test(sender);\n if (!allowed) {\n sender.sendMessage(NO_PERMISSION);\n }\n return allowed;\n }",
"@Override\n @Deprecated\n public boolean hasPermission(CommandSender sender, String pNode, boolean defaultValue) {\n if (!(sender instanceof Player)) return true;\n return hasPermission((Player) sender, pNode);\n }",
"public boolean test(CommandListenerWrapper wrapper) {\n/* 48 */ return this.command.testPermissionSilent(wrapper.getBukkitSender());\n/* */ }",
"@Override\n public boolean onCommand(final CommandSender sender, final Command cmd, final String label, final String[] args) {\n\n // If the sender is a PLAYER\n if (sender instanceof Player) {\n final Player p = (Player) sender;\n\n // If there are arguments and not the main command alone\n if (args.length > 0) {\n boolean cont = false;\n CmdProperties cmdClass = null;\n\n // Assign all commands to their name in the hashmap\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (!cont) {\n if (entry.getKey().equalsIgnoreCase(args[0])) {\n cont = true;\n cmdClass = entry.getValue();\n }\n }\n }\n\n // check for permission i think? idk whats entirely going on here, review later\n if (cont) {\n final int argsNeeded = cmdClass.getLength();\n if (args.length - 1 >= argsNeeded) {\n if (p.hasPermission(cmdClass.getPermission())) {\n if (args[argsNeeded] == null) {\n args[argsNeeded] = \"Nothing\";\n }\n final StringBuilder sb = new StringBuilder();\n for (int i = argsNeeded; i < args.length; i++) {\n sb.append(args[i]).append(\" \");\n }\n\n final String allArgs = sb.toString().trim();\n if (cmdClass.isAlias())\n cmdClass.getAlias().perform(p, allArgs, args);\n else\n cmdClass.perform(p, allArgs, args);\n return true;\n } else {\n // D: no permission!\n MsgUtils.error (sender, \"(no permission)\");\n return true;\n }\n } else {\n // Not the right amount of arguments for the command. Maybe put something like cmdClass.getUsage() here to show the player how to use the command\n MsgUtils.error (sender, cmdClass.getUsage());\n return true;\n }\n } else {\n // The argument doesn't exist.\n MsgUtils.error (sender, \"/ca \" + MsgUtils.Colors.VARIABLE + args[0] + MsgUtils.Colors.ERROR + \" is not a command\");\n return true;\n }\n } else {\n // Not enough arguments (show help here)\n MsgUtils.raw(p, \"&e-=-=-=- &7Availible &bClanArena &7Commands: &e-=-=-=-\");\n for (final Map.Entry<String, CmdProperties> entry : commandClasses.entrySet()) {\n if (p.hasPermission(entry.getValue().getPermission())) {\n MsgUtils.sendMessage(p, \"/ca \" + MsgUtils.Colors.VARIABLE + entry.getKey() + MsgUtils.Colors.INFO + \": \" + entry.getValue().getHelpMessage());\n }\n }\n return true;\n }\n } else {\n // Sender isn't a player\n MsgUtils.error (sender, \"Sorry! No console commands are available yet :(\");\n return true;\n }\n }",
"public boolean canCommandSenderUseCommand(int p_70003_1_, String p_70003_2_)\n {\n return true;\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n if (sender instanceof Player) {\n final Player player = (Player) sender;\n // PLAYER COMMANDS\n for(Map.Entry<String, CommandAction> entry : commands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n entry.getValue().run(sender, cmd, label, args, player);\n }\n }\n\n // MODERATOR COMMANDS\n for(Map.Entry<String, CommandAction> entry : modCommands.entrySet()) {\n if (cmd.getName().equalsIgnoreCase(entry.getKey())) {\n if (isModerator(player)) {\n entry.getValue().run(sender, cmd, label, args, player);\n } else {\n sender.sendMessage(\"You don't have enough permissions to execute this command!\");\n }\n }\n }\n }\n return true;\n }",
"@Override\n public boolean containsPermission(Class<? extends AeroCommandBase<?>> command, String permission) {\n if (!containsPermissions(command)) {\n return false;\n }\n\n return permissions.get(command).contains(permission.toLowerCase());\n }",
"@Override\n public boolean testPermission(CommandSource source) {\n return source.hasPermission(\"core.tps\");\n }",
"public boolean subCommandProcess(CommandSender sender, Command command, String string, String[] args) {\n\n\t\tif ((consoleOnly && sender instanceof Player) || (permission != null && !sender.hasPermission(permission))) {\n\n\t\t\tsender.sendMessage(errorPrefix + noPermissionError);\n\t\t\treturn true;\n\t\t}\n\n\t\treturn execute(sender, command, string, args);\n\t}",
"public boolean hasPermission(CommandSender sender) {\n return this.reason == Reason.PROPERTY_NOT_FOUND ||\n this.property.hasPermission(sender, this.name);\n }",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"public static boolean hasPermission(Player player, String permission){\n \t\tif (player.hasPermission(permission)){\n \t\t\treturn true;\n \t\t}\n \t\tString permWithWild = \"\";\n \t\tString[] nodes = permission.split(\"\\\\.\");\n \t\tSystem.out.println(nodes.length);\n \t\tfor (int i = 0; i + 1 <= nodes.length; i++){\n \t\t\tif (i + 1 == nodes.length){\n \t\t\t\tpermWithWild += \"*\";\n \t\t\t\tif (player.hasPermission(permWithWild)){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t} else {\n \t\t\t\tpermWithWild += nodes[i] + \".\";\n \t\t\t\tif (player.hasPermission(permWithWild + \"*\")){\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}",
"boolean memberHasPermission(String perm, Member m);",
"@Override\n\tpublic boolean onCommand(CommandSender sender, Command cmd, String commandLabel, String[] args) {\n\n\t\tboolean playerCanDo = false;\n\t\tboolean isConsole = false;\n\t\tPlayer senderPlayer = null, targetPlayer = null;\n\t\tGroup senderGroup = null;\n\t\tUser senderUser = null;\n\t\tboolean isOpOverride = config.isOpOverride();\n\t\tboolean isAllowCommandBlocks = config.isAllowCommandBlocks();\n\t\t\n\t\t// PREVENT GM COMMANDS BEING USED ON COMMANDBLOCKS\n\t\tif (sender instanceof BlockCommandSender && !isAllowCommandBlocks) {\n\t\t\tBlock block = ((BlockCommandSender)sender).getBlock();\n\t\t\tGroupManager.logger.warning(ChatColor.RED + \"GM Commands can not be called from CommandBlocks\");\n\t\t\tGroupManager.logger.warning(ChatColor.RED + \"Location: \" + ChatColor.GREEN + block.getWorld().getName() + \", \" + block.getX() + \", \" + block.getY() + \", \" + block.getZ());\n\t\t \treturn true;\n\t\t}\n\n\t\t// DETERMINING PLAYER INFORMATION\n\t\tif (sender instanceof Player) {\n\t\t\tsenderPlayer = (Player) sender;\n\n\t\t\tif (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase(\"manload\")) {\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tsenderUser = worldsHolder.getWorldData(senderPlayer).getUser(senderPlayer.getUniqueId().toString());\n\t\t\tsenderGroup = senderUser.getGroup();\n\t\t\tisOpOverride = (isOpOverride && (senderPlayer.isOp() || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, \"groupmanager.op\")));\n\n\t\t\tif (isOpOverride || worldsHolder.getWorldPermissions(senderPlayer).has(senderPlayer, \"groupmanager.\" + cmd.getName())) {\n\t\t\t\tplayerCanDo = true;\n\t\t\t}\n\t\t} else {\n\n\t\t\tif (!lastError.isEmpty() && !commandLabel.equalsIgnoreCase(\"manload\")) {\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tisConsole = true;\n\t\t}\n\n\t\t// PERMISSIONS FOR COMMAND BEING LOADED\n\t\tdataHolder = null;\n\t\tpermissionHandler = null;\n\n\t\tif (senderPlayer != null) {\n\t\t\tdataHolder = worldsHolder.getWorldData(senderPlayer);\n\t\t}\n\n\t\tString selectedWorld = selectedWorlds.get(sender.getName());\n\t\tif (selectedWorld != null) {\n\t\t\tdataHolder = worldsHolder.getWorldData(selectedWorld);\n\t\t}\n\n\t\tif (dataHolder != null) {\n\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t}\n\n\t\t// VARIABLES USED IN COMMANDS\n\n\t\tint count;\n\t\tPermissionCheckResult permissionResult = null;\n\t\tArrayList<User> removeList = null;\n\t\tString auxString = null;\n\t\tList<String> match = null;\n\t\tUser auxUser = null;\n\t\tGroup auxGroup = null;\n\t\tGroup auxGroup2 = null;\n\n\t\tGroupManagerPermissions execCmd = null;\n\t\ttry {\n\t\t\texecCmd = GroupManagerPermissions.valueOf(cmd.getName());\n\t\t} catch (Exception e) {\n\t\t\t// this error happened once with someone. now im prepared... i think\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= ERROR REPORT START =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= COPY AND PASTE THIS TO A GROUPMANAGER DEVELOPER =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(this.getDescription().getName());\n\t\t\tGroupManager.logger.severe(this.getDescription().getVersion());\n\t\t\tGroupManager.logger.severe(\"An error occured while trying to execute command:\");\n\t\t\tGroupManager.logger.severe(cmd.getName());\n\t\t\tGroupManager.logger.severe(\"With \" + args.length + \" arguments:\");\n\t\t\tfor (String ar : args) {\n\t\t\t\tGroupManager.logger.severe(ar);\n\t\t\t}\n\t\t\tGroupManager.logger.severe(\"The field '\" + cmd.getName() + \"' was not found in enum.\");\n\t\t\tGroupManager.logger.severe(\"And could not be parsed.\");\n\t\t\tGroupManager.logger.severe(\"FIELDS FOUND IN ENUM:\");\n\t\t\tfor (GroupManagerPermissions val : GroupManagerPermissions.values()) {\n\t\t\t\tGroupManager.logger.severe(val.name());\n\t\t\t}\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tGroupManager.logger.severe(\"= ERROR REPORT ENDED =\");\n\t\t\tGroupManager.logger.severe(\"===================================================\");\n\t\t\tsender.sendMessage(\"An error occurred. Ask the admin to take a look at the console.\");\n\t\t}\n\n\t\tif (isConsole || playerCanDo) {\n\t\t\tswitch (execCmd) {\n\t\t\tcase manuadd:\n\n\t\t\t\t// Validating arguments\n\t\t\t\tif ((args.length != 2) && (args.length != 3)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuadd <player> <group> | optional [world])\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Select the relevant world (if specified)\n\t\t\t\tif (args.length == 3) {\n\t\t\t\t\tdataHolder = worldsHolder.getWorldData(args[2]);\n\t\t\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t\t\t}\n\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\t// Validating permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify a player with the same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed player '\" + auxUser.getLastName() + \"' group to '\" + auxGroup.getName() + \"' in world '\" + dataHolder.getName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudel <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tdataHolder.removeUser(auxUser.getUUID());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed player '\" + auxUser.getLastName() + \"' to default settings.\");\n\n\t\t\t\t// If the player is online, this will create new data for the user.\n\t\t\t\tif(auxUser.getUUID() != null) {\n\t\t\t\t\ttargetPlayer = this.getServer().getPlayer(UUID.fromString(auxUser.getUUID()));\n\t\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddsub:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Couldn't retrieve your world. World selection is needed.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Use /manselect <world>\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddsub <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The sub-group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (auxUser.addSubGroup(auxGroup))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added subgroup '\" + auxGroup.getName() + \"' to player '\" + auxUser.getLastName() + \"'.\");\n\t\t\t\telse\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The subgroup '\" + auxGroup.getName() + \"' is already available to '\" + auxUser.getLastName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelsub:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelsub <user> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.removeSubGroup(auxGroup);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed subgroup '\" + auxGroup.getName() + \"' from player '\" + auxUser.getLastName() + \"' list.\");\n\n\t\t\t\t// targetPlayer = this.getServer().getPlayer(auxUser.getName());\n\t\t\t\t// if (targetPlayer != null)\n\t\t\t\t// BukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangadd:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangadd <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group already exists!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup = dataHolder.createGroup(args[0]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You created a group named: \" + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdel <group>)\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tdataHolder.removeGroup(auxGroup.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You deleted a group named \" + auxGroup.getName() + \", it's users are default group now.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddp <player> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Validating your permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify player with same group than you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't add a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkUserOnlyPermission(auxUser, auxString);\n\t\t\t\t\tif (checkPermissionExists(sender, auxString, permissionResult, \"user\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems Ok\n\t\t\t\t\tauxUser.addPermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added '\" + auxString + \"' to player '\" + auxUser.getLastName() + \"' permissions.\");\n\t\t\t\t}\n\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelp <player> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same group as you, or higher.\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't remove a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkUserOnlyPermission(auxUser, auxString);\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The user doesn't have direct access to that permission: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (!auxUser.hasSamePermissionNode(auxString)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"This permission node doesn't match any node.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"But might match node: \" + permissionResult.accessLevel);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tauxUser.removePermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed '\" + auxString + \"' from player '\" + auxUser.getLastName() + \"' permissions.\");\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase manuclearp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuclearp <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating your permissions\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same group as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tfor (String perm : auxUser.getPermissionList()) {\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't remove a permission you don't have: '\" + perm + \"'.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tauxUser.removePermission(perm);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed all permissions from player '\" + auxUser.getLastName() + \"'.\");\n\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\tif (targetPlayer != null)\n\t\t\t\t\tBukkitPermissions.updatePermissions(targetPlayer);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manulistp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif ((args.length == 0) || (args.length > 2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manulistp <player> (+))\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String perm : auxUser.getPermissionList()) {\n\t\t\t\t\tauxString += perm + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player '\" + auxUser.getLastName() + \"' has following permissions: \" + ChatColor.WHITE + auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from group: \" + auxUser.getGroupName());\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from subgroups: \" + auxString);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player '\" + auxUser.getLastName() + \"' has no specific permissions.\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Only all permissions from group: \" + auxUser.getGroupName());\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from subgroups: \" + auxString);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// bukkit perms\n\t\t\t\tif ((args.length == 2) && (args[1].equalsIgnoreCase(\"+\"))) {\n\t\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\t\tif (targetPlayer != null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Superperms reports: \");\n\t\t\t\t\t\tfor (String line : BukkitPermissions.listPerms(targetPlayer))\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + line);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manucheckp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manucheckp <player> <permission>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = args[1].replace(\"'\", \"\");\n\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\ttargetPlayer = this.getServer().getPlayer(auxUser.getLastName());\n\t\t\t\t// Validating permission\n\t\t\t\tpermissionResult = permissionHandler.checkFullGMPermission(auxUser, auxString, false);\n\n\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t// No permissions found in GM so fall through and check Bukkit.\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The player doesn't have access to that permission\");\n\n\t\t\t\t} else {\n\t\t\t\t\t// This permission was found in groupmanager.\n\t\t\t\t\tif (permissionResult.owner instanceof User) {\n\t\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly a negation node for that permission.\");\n\t\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly an Exception node for that permission.\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user has directly this permission.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\t\t\t\t\t} else if (permissionResult.owner instanceof Group) {\n\t\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits a negation permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits an Exception permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user inherits the permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// superperms\n\t\t\t\tif (targetPlayer != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"SuperPerms reports Node: \" + targetPlayer.hasPermission(args[1]) + ((!targetPlayer.hasPermission(args[1]) && targetPlayer.isPermissionSet(args[1])) ? \" (Negated)\": \"\"));\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddp <group> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't add a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkGroupOnlyPermission(auxGroup, auxString);\n\t\t\t\t\tif (checkPermissionExists(sender, auxString, permissionResult, \"group\")) \n\t\t\t\t\t{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems OK\n\t\t\t\t\tauxGroup.addPermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You added '\" + auxString + \"' to group '\" + auxGroup.getName() + \"' permissions.\");\n\t\t\t\t}\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdelp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdelp <group> <permission> [permission2] [permission3]...)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tfor (int i = 1; i < args.length; i++)\n\t\t\t\t{\n\t\t\t\t\tauxString = args[i].replace(\"'\", \"\");\n\t\t\t\t\n\t\t\t\t\t// Validating your permissions\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, auxString);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't remove a permission you don't have: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Validating permissions of user\n\t\t\t\t\tpermissionResult = permissionHandler.checkGroupOnlyPermission(auxGroup, auxString);\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group doesn't have direct access to that permission: '\" + auxString + \"'\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tif (!auxGroup.hasSamePermissionNode(auxString)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"This permission node doesn't match any node.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"But might match node: \" + permissionResult.accessLevel);\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// Seems OK\n\t\t\t\t\tauxGroup.removePermission(auxString);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed '\" + auxString + \"' from group '\" + auxGroup.getName() + \"' permissions.\");\n\t\t\t\t}\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase mangclearp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangclearp <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor (String perm : auxGroup.getPermissionList()) {\n\t\t\t\t\tpermissionResult = permissionHandler.checkFullUserPermission(senderUser, perm);\n\t\t\t\t\tif (!isConsole && !isOpOverride && (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND) || permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION))) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't remove a permission you don't have: '\" + perm + \"'.\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tauxGroup.removePermission(perm);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You removed all permissions from group '\" + auxGroup.getName() + \"'.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manglistp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manglistp <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String perm : auxGroup.getPermissionList()) {\n\t\t\t\t\tauxString += perm + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group '\" + auxGroup.getName() + \"' has following permissions: \" + ChatColor.WHITE + auxString);\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And all permissions from groups: \" + auxString);\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group '\" + auxGroup.getName() + \"' has no specific permissions.\");\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t\t}\n\t\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Only all permissions from groups: \" + auxString);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase mangcheckp:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangcheckp <group> <permission>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = args[1];\n\t\t\t\tif (auxString.startsWith(\"'\") && auxString.endsWith(\"'\"))\n\t\t\t\t{\n\t\t\t\t\tauxString = auxString.substring(1, auxString.length() - 1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tpermissionResult = permissionHandler.checkGroupPermissionWithInheritance(auxGroup, auxString);\n\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NOTFOUND)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group doesn't have access to that permission\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\t// auxString = permissionHandler.checkUserOnlyPermission(auxUser, args[1]);\n\t\t\t\tif (permissionResult.owner instanceof Group) {\n\t\t\t\t\tif (permissionResult.resultType.equals(PermissionCheckResult.Type.NEGATION)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits the negation permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t} else if (permissionResult.resultType.equals(PermissionCheckResult.Type.EXCEPTION)) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits an Exception permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The group inherits the permission from group: \" + permissionResult.owner.getLastName());\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Permission Node: \" + permissionResult.accessLevel);\n\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddi:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddi <group1> <group2>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup2 = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support inheritance.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (permissionHandler.hasGroupInInheritance(auxGroup, auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" already inherits \" + auxGroup2.getName() + \" (might not be directly)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.addInherits(auxGroup2);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group \" + auxGroup2.getName() + \" is now in \" + auxGroup.getName() + \" inheritance list.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdeli:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdeli <group1> <group2>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup2 = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support inheritance.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\n\t\t\t\t// Validating permission\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxGroup, auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" does not inherit \" + auxGroup2.getName() + \".\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!auxGroup.getInherits().contains(auxGroup2.getName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Group \" + auxGroup.getName() + \" does not inherit \" + auxGroup2.getName() + \" directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.removeInherits(auxGroup2.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group \" + auxGroup2.getName() + \" was removed from \" + auxGroup.getName() + \" inheritance list.\");\n\n\t\t\t\tBukkitPermissions.updateAllPlayers();\n\n\t\t\t\treturn true;\n\n\t\t\tcase manuaddv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 3) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manuaddv <user> <variable> <value>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 2; i < args.length; i++) {\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tauxString = auxString.replace(\"'\", \"\");\n\t\t\t\tauxUser.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \":'\" + ChatColor.GREEN + auxString + ChatColor.YELLOW + \"' added to the user \" + auxUser.getLastName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manudelv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manudelv <user> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!auxUser.getVariables().hasVar(args[1])) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The user doesn't have directly that variable!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.getVariables().removeVar(args[1]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \" removed from the user \" + ChatColor.GREEN + auxUser.getLastName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manulistv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manulistv <user>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String varKey : auxUser.getVariables().getVarKeyList()) {\n\t\t\t\t\tObject o = auxUser.getVariables().getVarObject(varKey);\n\t\t\t\t\tauxString += ChatColor.GOLD + varKey + ChatColor.WHITE + \":'\" + ChatColor.GREEN + o.toString() + ChatColor.WHITE + \"', \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variables of user \" + auxUser.getLastName() + \": \");\n\t\t\t\tsender.sendMessage(auxString + \".\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Plus all variables from group: \" + auxUser.getGroupName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manucheckv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manucheckv <user> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tauxGroup = auxUser.getGroup();\n\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(auxGroup, args[1]);\n\n\t\t\t\tif (!auxUser.getVariables().hasVar(args[1])) {\n\t\t\t\t\t// Check sub groups\n\t\t\t\t\tif (!auxUser.isSubGroupsEmpty() && auxGroup2 == null)\n\t\t\t\t\t\tfor (Group subGroup : auxUser.subGroupListCopy()) {\n\t\t\t\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(subGroup, args[1]);\n\t\t\t\t\t\t\tif (auxGroup2 != null)\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The user doesn't have access to that variable!\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (auxUser.getVariables().hasVar(auxString)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxUser.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"This user own directly the variable\");\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxGroup2.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\tif (!auxGroup.equals(auxGroup2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And the value was inherited from group: \" + ChatColor.GREEN + auxGroup2.getName());\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangaddv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length < 3) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangaddv <group> <variable> <value>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 2; i < args.length; i++) {\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = auxString.replace(\"'\", \"\");\n\t\t\t\tauxGroup.getVariables().addVar(args[1], Variables.parseVariableValue(auxString));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \":'\" + ChatColor.GREEN + auxString + ChatColor.YELLOW + \"' added to the group \" + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangdelv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangdelv <group> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!auxGroup.getVariables().hasVar(args[1])) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The group doesn't have directly that variable!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxGroup.getVariables().removeVar(args[1]);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variable \" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \" removed from the group \" + ChatColor.GREEN + auxGroup.getName());\n\n\t\t\t\treturn true;\n\n\t\t\tcase manglistv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manglistv <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\t// Seems OK\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String varKey : auxGroup.getVariables().getVarKeyList()) {\n\t\t\t\t\tObject o = auxGroup.getVariables().getVarObject(varKey);\n\t\t\t\t\tauxString += ChatColor.GOLD + varKey + ChatColor.WHITE + \":'\" + ChatColor.GREEN + o.toString() + ChatColor.WHITE + \"', \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Variables of group \" + auxGroup.getName() + \": \");\n\t\t\t\tsender.sendMessage(auxString + \".\");\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String grp : auxGroup.getInherits()) {\n\t\t\t\t\tauxString += grp + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Plus all variables from groups: \" + auxString);\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase mangcheckv:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mangcheckv <group> <variable>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[0]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[0] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"GlobalGroups do NOT support Info Nodes.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tauxGroup2 = permissionHandler.nextGroupWithVariable(auxGroup, args[1]);\n\t\t\t\tif (auxGroup2 == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The group doesn't have access to that variable!\");\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The value of variable '\" + ChatColor.GOLD + args[1] + ChatColor.YELLOW + \"' is: '\" + ChatColor.GREEN + auxGroup2.getVariables().getVarObject(args[1]).toString() + ChatColor.WHITE + \"'\");\n\t\t\t\tif (!auxGroup.equals(auxGroup2)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"And the value was inherited from group: \" + ChatColor.GREEN + auxGroup2.getName());\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manwhois:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manwhois <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Name: \" + ChatColor.GREEN + auxUser.getLastName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Group: \" + ChatColor.GREEN + auxUser.getGroup().getName());\n\t\t\t\t// Compile a list of subgroups\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (String subGroup : auxUser.subGroupListStringCopy()) {\n\t\t\t\t\tauxString += subGroup + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"subgroups: \" + auxString);\n\t\t\t\t}\n\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Overloaded: \" + ChatColor.GREEN + dataHolder.isOverloaded(auxUser.getUUID()));\n\t\t\t\tauxGroup = dataHolder.surpassOverload(auxUser.getUUID()).getGroup();\n\t\t\t\tif (!auxGroup.equals(auxUser.getGroup())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Original Group: \" + ChatColor.GREEN + auxGroup.getName());\n\t\t\t\t}\n\t\t\t\t// victim.permissions.add(args[1]);\n\t\t\t\treturn true;\n\n\t\t\tcase tempadd:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/tempadd <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Can't modify player with same permissions than you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\tdataHolder.overloadUser(auxUser.getUUID());\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).add(dataHolder.getUser(auxUser.getUUID()));\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Player set to overload mode!\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase tempdel:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/tempdel <player>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\tdataHolder.removeOverload(auxUser.getUUID());\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()).contains(auxUser)) {\n\t\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).remove(auxUser);\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Player overload mode is now disabled.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase templist:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tauxString = \"\";\n\t\t\t\tremoveList = new ArrayList<User>();\n\t\t\t\tcount = 0;\n\t\t\t\tfor (User u : overloadedUsers.get(dataHolder.getName().toLowerCase())) {\n\t\t\t\t\tif (!dataHolder.isOverloaded(u.getUUID())) {\n\t\t\t\t\t\tremoveList.add(u);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tauxString += u.getLastName() + \", \";\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There are no users in overload mode.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).removeAll(removeList);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \" \" + count + \" Users in overload mode: \" + ChatColor.WHITE + auxString);\n\n\t\t\t\treturn true;\n\n\t\t\tcase tempdelall:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tremoveList = new ArrayList<User>();\n\t\t\t\tcount = 0;\n\t\t\t\tfor (User u : overloadedUsers.get(dataHolder.getName().toLowerCase())) {\n\t\t\t\t\tif (dataHolder.isOverloaded(u.getUUID())) {\n\t\t\t\t\t\tdataHolder.removeOverload(u.getUUID());\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (count == 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There are no users in overload mode.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (overloadedUsers.get(dataHolder.getName().toLowerCase()) == null) {\n\t\t\t\t\toverloadedUsers.put(dataHolder.getName().toLowerCase(), new ArrayList<User>());\n\t\t\t\t}\n\t\t\t\toverloadedUsers.get(dataHolder.getName().toLowerCase()).clear();\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \" \" + count + \"All users in overload mode are now normal again.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mansave:\n\n\t\t\t\tboolean forced = false;\n\n\t\t\t\tif ((args.length == 1) && (args[0].equalsIgnoreCase(\"force\")))\n\t\t\t\t\tforced = true;\n\n\t\t\t\ttry {\n\t\t\t\t\tworldsHolder.saveChanges(forced);\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"All changes were saved.\");\n\t\t\t\t} catch (IllegalStateException ex) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + ex.getMessage());\n\t\t\t\t}\n\t\t\t\treturn true;\n\n\t\t\tcase manload:\n\n\t\t\t\t/**\n\t\t\t\t * Attempt to reload a specific world\n\t\t\t\t */\n\t\t\t\tif (args.length > 0) {\n\n\t\t\t\t\tif (!lastError.isEmpty()) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"All commands are locked due to an error. \" + ChatColor.BOLD + \"\" + ChatColor.UNDERLINE + \"Check plugins/groupmanager/error.log or console\" + ChatColor.RESET + \"\" + ChatColor.RED + \" and then try a '/manload'.\");\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\t\tauxString += args[i];\n\t\t\t\t\t\tif ((i + 1) < args.length) {\n\t\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tisLoaded = false; // Disable Bukkit Perms update and event triggers\n\n\t\t\t\t\tglobalGroups.load();\n\t\t\t\t\tworldsHolder.loadWorld(auxString);\n\n\t\t\t\t\tsender.sendMessage(\"The request to reload world '\" + auxString + \"' was attempted.\");\n\n\t\t\t\t\tisLoaded = true;\n\n\t\t\t\t\tBukkitPermissions.reset();\n\n\t\t\t\t} else {\n\n\t\t\t\t\t/**\n\t\t\t\t\t * Reload all settings and data as no world was specified.\n\t\t\t\t\t */\n\n\t\t\t\t\t/*\n\t\t\t\t\t * Attempting a fresh load.\n\t\t\t\t\t */\n\t\t\t\t\tonDisable(true);\n\t\t\t\t\tonEnable(true);\n\n\t\t\t\t\tsender.sendMessage(\"All settings and worlds were reloaded!\");\n\t\t\t\t}\n\n\t\t\t\t/**\n\t\t\t\t * Fire an event as none will have been triggered in the reload.\n\t\t\t\t */\n\t\t\t\tif (GroupManager.isLoaded())\n\t\t\t\t\tGroupManager.getGMEventHandler().callEvent(GMSystemEvent.Action.RELOADED);\n\n\t\t\t\treturn true;\n\n\t\t\tcase listgroups:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// WORKING\n\t\t\t\tauxString = \"\";\n\t\t\t\tString auxString2 = \"\";\n\t\t\t\tfor (Group g : dataHolder.getGroupList()) {\n\t\t\t\t\tauxString += g.getName() + \", \";\n\t\t\t\t}\n\t\t\t\tfor (Group g : getGlobalGroups().getGroupList()) {\n\t\t\t\t\tauxString2 += g.getName() + \", \";\n\t\t\t\t}\n\t\t\t\tif (auxString.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString = auxString.substring(0, auxString.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tif (auxString2.lastIndexOf(\",\") > 0) {\n\t\t\t\t\tauxString2 = auxString2.substring(0, auxString2.lastIndexOf(\",\"));\n\t\t\t\t}\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Groups Available: \" + ChatColor.WHITE + auxString);\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"GlobalGroups Available: \" + ChatColor.WHITE + auxString2);\n\n\t\t\t\treturn true;\n\n\t\t\tcase manpromote:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manpromote <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxUser.getGroup(), auxGroup.getName()) && !permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player using groups with different heritage line.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The new group must be a higher rank.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed \" + auxUser.getLastName() + \" group to \" + auxGroup.getName() + \".\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mandemote:\n\t\t\t\t// Validating state of sender\n\t\t\t\tif (dataHolder == null || permissionHandler == null) {\n\t\t\t\t\tif (!setDefaultWorldHandler(sender))\n\t\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating arguments\n\t\t\t\tif (args.length != 2) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mandemote <player> <group>)\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif ((validateOnlinePlayer) && ((match = validatePlayer(args[0], sender)) == null)) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tif (match != null) {\n\t\t\t\t\tauxUser = dataHolder.getUser(match.get(0));\n\t\t\t\t} else {\n\t\t\t\t\tauxUser = dataHolder.getUser(args[0]);\n\t\t\t\t}\n\t\t\t\tauxGroup = dataHolder.getGroup(args[1]);\n\t\t\t\tif (auxGroup == null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"'\" + args[1] + \"' Group doesnt exist!\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (auxGroup.isGlobal()) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Players may not be members of GlobalGroups directly.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Validating permission\n\t\t\t\tif (!isConsole && !isOpOverride && (senderGroup != null ? permissionHandler.inGroup(auxUser.getUUID(), senderGroup.getName()) : false)) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player with same permissions as you, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (permissionHandler.hasGroupInInheritance(auxGroup, senderGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The destination group can't be the same as yours, or higher.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!isConsole && !isOpOverride && (!permissionHandler.inGroup(senderUser.getUUID(), auxUser.getGroupName()) || !permissionHandler.inGroup(senderUser.getUUID(), auxGroup.getName()))) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player involving a group that you don't inherit.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (!permissionHandler.hasGroupInInheritance(auxUser.getGroup(), auxGroup.getName()) && !permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"You can't modify a player using groups with different inheritage line.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif (permissionHandler.hasGroupInInheritance(auxGroup, auxUser.getGroupName())) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"The new group must be a lower rank.\");\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\t// Seems OK\n\t\t\t\tauxUser.setGroup(auxGroup);\n\t\t\t\tif (!sender.hasPermission(\"groupmanager.notify.other\") || (isConsole))\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You changed \" + auxUser.getLastName() + \" group to \" + auxGroup.getName() + \".\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase mantogglevalidate:\n\t\t\t\tvalidateOnlinePlayer = !validateOnlinePlayer;\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Validate if player is online, now set to: \" + Boolean.toString(validateOnlinePlayer));\n\t\t\t\tif (!validateOnlinePlayer) {\n\t\t\t\t\tsender.sendMessage(ChatColor.GOLD + \"From now on you can edit players that are not connected... BUT:\");\n\t\t\t\t\tsender.sendMessage(ChatColor.LIGHT_PURPLE + \"From now on you should type the whole name of the player, correctly.\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase mantogglesave:\n\t\t\t\tif (scheduler == null) {\n\t\t\t\t\tenableScheduler();\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The auto-saving is enabled!\");\n\t\t\t\t} else {\n\t\t\t\t\tdisableScheduler();\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"The auto-saving is disabled!\");\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\tcase manworld:\n\t\t\t\tauxString = selectedWorlds.get(sender.getName());\n\t\t\t\tif (auxString != null) {\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have the world '\" + dataHolder.getName() + \"' in your selection.\");\n\t\t\t\t} else {\n\t\t\t\t\tif (dataHolder == null) {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"There is no world selected. And no world is available now.\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You don't have a world in your selection..\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Working with the direct world where your player is.\");\n\t\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Your world now uses permissions of world name: '\" + dataHolder.getName() + \"' \");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn true;\n\n\t\t\tcase manselect:\n\t\t\t\tif (args.length < 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/manselect <world>)\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Worlds available: \");\n\t\t\t\t\tArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList();\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < worlds.size(); i++) {\n\t\t\t\t\t\tauxString += worlds.get(i).getName();\n\t\t\t\t\t\tif ((i + 1) < worlds.size()) {\n\t\t\t\t\t\t\tauxString += \", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + auxString);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\tif (args[i] == null) {\n\t\t\t\t\t\tlogger.warning(\"Bukkit gave invalid arguments array! Cmd: \" + cmd.getName() + \" args.length: \" + args.length);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif (i < (args.length - 1)) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdataHolder = worldsHolder.getWorldData(auxString);\n\t\t\t\tpermissionHandler = dataHolder.getPermissionsHandler();\n\t\t\t\tselectedWorlds.put(sender.getName(), dataHolder.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have selected world '\" + dataHolder.getName() + \"'.\");\n\n\t\t\t\treturn true;\n\n\t\t\tcase manclear:\n\t\t\t\tif (args.length != 0) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count!\");\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tselectedWorlds.remove(sender.getName());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have removed your world selection. Working with current world(if possible).\");\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\tcase mancheckw:\n\t\t\t\tif (args.length < 1) {\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Review your arguments count! (/mancheckw <world>)\");\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Worlds available: \");\n\t\t\t\t\tArrayList<OverloadedWorldHolder> worlds = worldsHolder.allWorldsDataList();\n\t\t\t\t\tauxString = \"\";\n\t\t\t\t\tfor (int i = 0; i < worlds.size(); i++) {\n\t\t\t\t\t\tauxString += worlds.get(i).getName();\n\t\t\t\t\t\tif ((i + 1) < worlds.size()) {\n\t\t\t\t\t\t\tauxString += \", \";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsender.sendMessage(ChatColor.YELLOW + auxString);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tauxString = \"\";\n\t\t\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\t\t\tif (args[i] == null) {\n\t\t\t\t\t\tlogger.warning(\"Bukkit gave invalid arguments array! Cmd: \" + cmd.getName() + \" args.length: \" + args.length);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tauxString += args[i];\n\t\t\t\t\tif (i < (args.length - 1)) {\n\t\t\t\t\t\tauxString += \" \";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tdataHolder = worldsHolder.getWorldData(auxString);\n\t\t\t\t\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"You have selected world '\" + dataHolder.getName() + \"'.\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"This world is using the following data files..\");\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Groups:\" + ChatColor.GREEN + \" \" + dataHolder.getGroupsFile().getAbsolutePath());\n\t\t\t\tsender.sendMessage(ChatColor.YELLOW + \"Users:\" + ChatColor.GREEN + \" \" + dataHolder.getUsersFile().getAbsolutePath());\n\n\t\t\t\treturn true;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tsender.sendMessage(ChatColor.RED + \"You are not allowed to use that command.\");\n\t\treturn true;\n\t}",
"private boolean checkPermissionExists(CommandSender sender, String newPerm, PermissionCheckResult oldPerm, String type) {\n\t\t\n\t\t\n\t\tif (newPerm.startsWith(\"+\"))\n\t\t{\n\t\t\tif (oldPerm.resultType.equals(PermissionCheckResult.Type.EXCEPTION))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has direct access to that permission.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse if (newPerm.startsWith(\"-\"))\n\t\t{\n\t\t\tif (oldPerm.resultType.equals(PermissionCheckResult.Type.EXCEPTION))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has an exception for this node.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (oldPerm.resultType.equals(PermissionCheckResult.Type.NEGATION))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has a matching negated node.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (oldPerm.resultType.equals(PermissionCheckResult.Type.EXCEPTION))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has an exception for this node.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t}\n\t\t\telse if (oldPerm.resultType.equals(PermissionCheckResult.Type.NEGATION))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has a matching negated node.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t}\n\t\t\telse if (oldPerm.resultType.equals(PermissionCheckResult.Type.FOUND))\n\t\t\t{\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"The \" + type + \" already has direct access to that permission.\");\n\t\t\t\tsender.sendMessage(ChatColor.RED + \"Node: \" + oldPerm.accessLevel);\n\t\t\t\t\n\t\t\t\t// Since not all plugins define wildcard permissions, allow setting the permission anyway if the permissions dont match exactly.\n\t\t\t\treturn (oldPerm.accessLevel.equalsIgnoreCase(newPerm));\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void checkPermission(Permission perm) {\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(\"Command needs to be run by a player.\");\n return true;\n }\n\n return doCommand(sender, null, ((Player) sender).getUniqueId().toString(), sender.getName());\n }",
"public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n\t\tif (label.equalsIgnoreCase(\"truth\")) {\n\t\t\tif (sender instanceof Player) {\n\t\t\t\t//player (not console)\n\t\t\t\tPlayer player = (Player) sender;\n\t\t\t\tif (player.hasPermission(\"stinky.use\")) { \n\t\t\t\t\tplayer.sendMessage(ChatColor.LIGHT_PURPLE+\"\"+ChatColor.BOLD+\"Alex Stinks\");\n\t\t\t\t\tplayer.sendMessage(ChatColor.translateAlternateColorCodes('&', \"&ehe really Does\"));\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tplayer.sendMessage(ChatColor.DARK_RED+\"\"+ChatColor.BOLD+\"You don't Have permission to use this!\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//console (not player)\n\t\t\t\tsender.sendMessage(\"hey Console\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkServerPermission(String player, String permission) {\n\t\tswitch(permission) {\r\n\t\t\tcase \"join\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[0])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"invite\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[1])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"kick\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[2])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"kick-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[3])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"leave\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[4])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"create\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[5])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"disband\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[6])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"disband-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[7])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[8])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info-general\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[9])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"info-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[10])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"promote\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[11])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"promote-other\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[12])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\tcase \"use\":\r\n\t\t\t\tif(doesPlayerHavePermission(player, Permissions[13])) \r\n\t\t\t\t\treturn true;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\t\t\r\n\t\t}\r\n\t\treturn false;\t\t\r\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] arguments) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(Constants.PLUGIN_NAME + \" commands can only be run by a player\");\n return true;\n }\n\n // Now we know that the sender was a player\n Player player = (Player) sender;\n String commandName = command.getName();\n\n if (commandName.equalsIgnoreCase(PLUGIN_COMMAND_LONG_NAME) || commandName\n .equalsIgnoreCase(PLUGIN_COMMAND_SHORT_NAME)) {\n if (arguments.length < 1) {\n MessageHelper.pluginMessage(player, \"Not enough arguments\");\n return false;\n }\n\n if (arguments.length > 2) {\n MessageHelper.pluginMessage(player, \"Too many arguments\");\n return false;\n }\n\n String commandArgument, otherPlayerName;\n\n commandArgument = arguments[0];\n if (arguments.length == 2) {\n // TODO: Add permission for allowing players to add/remove other players\n otherPlayerName = arguments[1];\n }\n\n // Handle the plugin command arguments here to allow players to add, remove, etc. themselves from the queue\n // TODO: Add, remove, start, stop, score, players\n // TODO: Teleport to source block option?\n switch (commandArgument) {\n case \"a\":\n case \"add\":\n mPlugin.getPlayerQueue().addPlayer(player);\n MessageHelper.pluginMessage(player, \"Added yourself to the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're already in a queue\n return true;\n case \"r\":\n case \"remove\":\n mPlugin.getPlayerQueue().removePlayer(player);\n MessageHelper.pluginMessage(player, \"Removed yourself from the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're not in the queue\n return true;\n case \"start\":\n break;\n case \"stop\":\n break;\n case \"p\":\n case \"players\":\n case \"s\":\n case \"scores\":\n MessageHelper.pluginMessage(player, \"Player count: \" + mPlugin.getPlayerQueue().getPlayerCount());\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().getScoreStrings());\n return true;\n default:\n return false;\n }\n }\n\n return false;\n }",
"void setPermission(String perm, boolean add);",
"public boolean hasPermissions(Player player) {\n\t\tif (!m_bHasPermissions && player.isOp())\n\t\t\treturn true;\n\t\telse if (m_bHasPermissions && m_PermissionHandler.has(player, \"lord.orbitalstrike\"))\n\t\t\treturn true;\n\t\telse {\n\t\t\tOrbitalStrike.sendMessage(player, \"You do not have permission to use this plugin.\");\n\t\t\tOrbitalStrike.logInfo(\"Player \" + player + \" does not have permission.\", 1);\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean checkPermission(Permission permission);",
"@Override\n\tpublic boolean isCommandAuthorized(){\n\t\treturn true;\n\t}",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] args) {\n if (sender instanceof Player) {\n Player p = (Player) sender;\n return executeGamemodeCommand(p, aliasMap.get(label.toLowerCase()), args);\n } else if (sender instanceof ConsoleCommandSender){\n ConsoleCommandSender console = Bukkit.getServer().getConsoleSender();\n return executeGamemodeCommand(console, aliasMap.get(label.toLowerCase()), args);\n }\n return false;\n }",
"public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command command, String alias, String[] args) {\n if (sender instanceof Player)\n switch (args.length) {\n case 0 -> {\n //send to all players\n Bukkit.broadcastMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n return true;\n }\n case 1 -> {\n //send to one player\n try {\n Objects.requireNonNull(Bukkit.getPlayer(args[0])).sendMessage(WorldUtils.Messages.positionMessage(\n sender.getName(), ((Player) sender).getLocation()));\n } catch (NullPointerException e) {\n WorldUtils.Messages.playerNotFound(sender);\n }\n return true;\n }\n }\n else {\n WorldUtils.Messages.notConsole(sender);\n return true;\n }\n return false;\n }",
"@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}",
"public boolean addPermission(Permission permission);",
"public Boolean setFloodPerm(String floodPerm) throws PermissionDeniedException;",
"private static boolean isPermissionGranted(Context context, String permission) {\n if (ContextCompat.checkSelfPermission(context, permission)\n == PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG, permission + \" granted\");\n return true;\n }\n Log.i(TAG, permission + \" not granted yet\");\n return false;\n }",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }",
"public boolean hasPermission(Player player, String pNode) {\n if (player == null) return true;\n\n // If the player has the permission directly, use that\n boolean hasPermission = player.hasPermission(pNode);\n if (player.isPermissionSet(pNode)) {\n return hasPermission;\n }\n\n // Check for wildcards, this is particularly important for lists\n // Only going to look up one level though, and hope the perm system handles it from there\n if (pNode.contains(\".\")) {\n String parentNode = pNode.substring(0, pNode.lastIndexOf('.') + 1) + \"*\";\n // We will use the wildcard default as the default\n // this lets me make lists that default to true or false by controlling the default wildcard perm\n // This should never fall back to using an unset default, so we should always have a wildcard set for\n // any lists in plugin.yml\n return player.hasPermission(parentNode);\n }\n\n // Use default permission\n return hasPermission;\n }",
"private boolean hasPermission(String permission) {\n if (canMakeSmores()) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n return (checkSelfPermission(permission) == PackageManager.PERMISSION_GRANTED);\n }\n }\n return true;\n }",
"private void showUsage(Command cmd, CommandSender sender, boolean prefix) {\n CommandInfo info = cmd.getClass().getAnnotation(CommandInfo.class);\n if(!PermHandler.hasPerm(sender, info.permission())) return;\n\n sender.sendMessage((prefix ? \"Usage: \" : \"\") + info.usage() + \" \" + ChatColor.YELLOW + info.desc());\n }",
"public boolean test(CommandSender sender, MCommand command);",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args) throws ArrayIndexOutOfBoundsException{\n\t\n\t\ttry {\n\t\tString cmd = command.getName().toLowerCase();\n\t\t if (cmd.equals(\"stat\")) {\n\t\t\tif (args[0] == \"\" || args[1] == \"\" || args[0] == \"null\" || args[1] == \"null\"){\n\t\t\t\tthrow new ArrayIndexOutOfBoundsException(\"type /stat reg to register or /stat view playerName to view stats\");\n\t\t\t\t\n\t\t\t}\n\t\t\treturn statsMethod(sender,args);\n\t\t}\n\t\t\tif (args[0].equalsIgnoreCase(\"armor\")) {\n\t\t\t\tItem.class.getMethods();\n\n\t\t\t\tPlayer p = (Player)sender;\n\t\t\t\tPlayerInventory inventory = p.getInventory();\n\t\t\t\t//give the player an iron set of armor \n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_CHESTPLATE, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_LEGGINGS, 1));\n\t\t\t\tinventory.addItem(new ItemStack(Material.IRON_HELMET, 1));\n\n\t\t\t\t//send a message to inform player they received a set of armor\n\t\t\t\tp.sendMessage(ChatColor.RED + \"Armorset is in Inventory... \");\n\t\t\t\t\n\n\t\t\t\treturn true;\n\t\t\t\t\n\t\t\t}\n\telse {\n\t\t\treturn false;\n\t\t}\n\t\t}\n\t\tcatch(ArrayIndexOutOfBoundsException ie){\n\t\t\tie.printStackTrace();\n\t\t\t//System.out.println(\"type /stat view playerName to view your statistics\");\n\t\t\tsender.sendMessage(\"type /stat view playerName to view your statistics or /stat reg playerName to register \");\n\t\t}\n\t\treturn true;\n\t}",
"String getPermission();",
"private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"@Override\n\tpublic boolean hasPermission(String string) {\n\t\treturn true;\n\t}",
"public boolean onCommand(CommandSender sender, Command command, String label, String[] args)\n {\n // get the player from the server.\n String playerName = sender.getName(); \n Player player = this.getServer().getPlayerExact(playerName);\n \n if (player != null)\n {\n String name = command.getName();\n if (name.equals(\"afk\")) \n {\n this.handleAFKCommand(player, playerName);\n return true;\n }\n else if (name.equals(\"list\"))\n {\n this.handleListCommand(player);\n return true;\n }\n }\n\n return false;\n }",
"public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }",
"private void checkVoiceCommandPermission()\n {\n // Android 6 er uporer version gula te voice neoar capability ache, and they require permissions.\n // that's why we check first the SDK version is above 6 or not\n if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.M)\n {\n // jodi persmission pai voice er then\n if(!(ContextCompat.checkSelfPermission(SmartPlayerActivity.this, Manifest.permission.RECORD_AUDIO) == PackageManager.PERMISSION_GRANTED))\n {\n // we can start the activity\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse(\"package:\" + getPackageName()));\n startActivity(intent);\n finish();\n }\n }\n }",
"public boolean execute(CommandSender sender, Command command, String string, String[] args) {\n\n\t\treturn true;\n\t}",
"public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }",
"@Override\n public void addPermission(Class<? extends AeroCommandBase<?>> command, String permission) {\n\n Set<String> requires = permissions.get(command);\n\n if (requires == null) {\n requires = new HashSet<String>();\n }\n\n requires.add(permission.toLowerCase());\n permissions.put(command, requires);\n }",
"public abstract boolean isAdminPacket();",
"public boolean has(Player player, String permission)\n {\n if (player == null)\n {\n return true;\n }\n\n if (handler != null)\n {\n if (handler.has(player, \"preciousstones.blacklist\") && !handler.has(player, \"preciousstones.admintest\"))\n {\n return false;\n }\n\n return handler.has(player, permission);\n }\n else\n {\n return player.hasPermission(permission);\n }\n }",
"public boolean execute(CommandSender sender, String alias, String[] args) {\r\n\t\tif (sender instanceof Player) {\r\n\t\t\tPlayer player = (Player) sender;\r\n\t\t\tif (player.hasPermission(\"corefunctionality.utility.setxp\")) {\r\n\r\n\t\t\t\tif (args.length == 1) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\tplayer.setLevel(amount);\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + \"Your xp level has been set.\");\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (args.length == 2) {\r\n\r\n\t\t\t\t\tif (player.hasPermission(\"server.utility.setxp.other\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tint amount = Integer.parseInt(args[0]);\r\n\t\t\t\t\t\t\tPlayer target = Bukkit.getPlayer(args[1]);\r\n\t\t\t\t\t\t\tif (target != null) {\r\n\t\t\t\t\t\t\t\ttarget.setLevel(amount);\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.GREEN + target.getName() + \"'s xp level has been set.\");\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Could not find specified player.\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"Invalid amount specified.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsender.sendMessage(ChatColor.RED + \"Syntax Error: /setxp <amount> [player]\");\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tplayer.sendMessage(ChatColor.RED + \"You do not have the power to do this.\");\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tsender.sendMessage(\"You must be a player to use this command\");\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"boolean ignoresPermission();",
"boolean isHasPermissions();",
"void setPremiumSmsPermission(String packageName, int permission);",
"public boolean handlesExclusively(Permission pond) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean execute(RPGEssentials plugin, CommandSender sender, String... args) {\n String base = (args.length > 0 ? args[0] : \"\");\n String last = (args.length > 0 ? args[args.length - 1] : \"\");\n \n // If there's no base argument, show a helpful message.\n if (base.equals(\"\")) {\n Messenger.sendMessage(sender, \"/karma help|?\");\n return true;\n }\n \n // The help command is a little special\n if (base.equals(\"?\") || base.equalsIgnoreCase(\"help\")) {\n showHelp(sender);\n return true;\n }\n \n // Get all commands that match the base.\n List<Command> matches = getMatchingCommands(base);\n \n // If there's more than one match, display them.\n if (matches.size() > 1) {\n Messenger.sendMessage(sender, \"Multiple command matches\");\n for (Command cmd : matches) {\n showUsage(cmd, sender, false);\n }\n return true;\n }\n \n // If there are no matches at all, notify.\n if (matches.size() == 0 && args.length > 0) {\n \tif(sender instanceof Player) {\n \t\tplugin.getKarma();\n\t\t\t\tMessenger.sendMessage(sender, ChatColor.GRAY+\"Karma von \"+sender.getName()+\": \"+ChatColor.WHITE+Karma.getPlayerHandler().getKarma(sender.getName()));\n \t} else\n \t\tMessenger.sendMessage(sender, \"Command not found\");\n \treturn true;\n }\n \n // Grab the only match.\n Command command = matches.get(0);\n CommandInfo info = command.getClass().getAnnotation(CommandInfo.class);\n \n // First check if the sender has permission.\n if (!PermHandler.hasPerm(sender, info.permission())) {\n \tMessenger.sendMessage(sender, \"No Permission\");\n return true;\n }\n \n // Check if the last argument is a ?, in which case, display usage and description\n if (last.equals(\"?\") || last.equals(\"help\")) {\n showUsage(command, sender, true);\n return true;\n }\n \n // Otherwise, execute the command!\n String[] params = trimFirstArg(args);\n if (!command.execute(plugin, sender, params)) {\n showUsage(command, sender, true);\n }\n return true;\n }",
"public boolean bindPermissionDialogService() {\n try {\n Intent intent = new Intent(DCIMPROTECT_SERVICE);\n intent.setPackage(PERMISSION_PACKGE_NAME);\n return this.mContext.bindService(intent, this.mServConnection, 1);\n } catch (Exception e) {\n Log.e(TAG, \"bind service err !\");\n return DEBUG;\n }\n }",
"private void sendFormattedHelpLine(CommandSender sender, String title, String command, String perm) {\n StringBuilder message = new StringBuilder(\" §7 \");\n StringBuilder hiddenCommand = new StringBuilder(\"§c§k\");\n\n message.append(title).append(\": \");\n\n for (int i = 0; i < command.length(); i++)\n hiddenCommand.append(\"-\");\n\n if (EUtil.senderHasPerm(sender, perm))\n message.append(command);\n else\n message.append(hiddenCommand);\n\n sender.sendMessage(message.toString());\n }",
"@Override\n\tpublic boolean execute(AdrundaalGods plugin, CommandSender sender, String... args) {\n\t String arg1 = (args.length > 0 ? args[0] : \"\");\n\t\t\n\t if(Bukkit.getPlayer(arg1) == null && !arg1.isEmpty()) {\n\t \tMessenger.sendMessage(sender, Message.playerNotFound);\n\t \treturn true;\n\t }\n\t \n\t Player p = (Bukkit.getPlayer(arg1) != null ? Bukkit.getPlayer(arg1) : (Player) sender);\n\t AGPlayer agp = AGManager.getPlayerHandler().getAGPlayer(p.getName());\n\t\tif(agp == null) {\n\t\t\tMessenger.sendMessage(sender, Message.playerNotFound);\n\t\t\treturn true;\t\n\t\t}\t\n\t\tMessenger.sendMessage(sender, Message.shrinesFound, \"%found%\", agp.getFoundShrines().size()+\"\", \"%max%\", AGManager.getShrineHandler().getShrines().size()+\"\");\n\t\treturn true;\n\t}",
"public String getFloodPerm() throws PermissionDeniedException;",
"private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }",
"public boolean notificationPermissionEnabled() throws android.os.RemoteException;",
"public static void messagePermissionHolders(String permission, String message) {\n for (Player p : Bukkit.getOnlinePlayers()) {\n if (testPermission(p, permission)) {\n p.sendMessage(message);\n }\n }\n }",
"public boolean hasPermission(String sid, Permission p) {\n\t\tfor (; p != null; p = p.impliedBy) {\n\t\t\tSet<String> set = grantedPermissions.get(p);\n\t\t\tif (set != null && set.contains(sid))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean hasPermission ( Permission perm ) {\n\t\treturn extract ( handle -> handle.hasPermission ( perm ) );\n\t}",
"private boolean isAllowed(String who){\n Boolean result = settings.containsKey(who)\n || settings.getProperty(\"components\").contentEquals(\"\");\n return result;\n }",
"@Override\n public boolean onCommand(CommandSender sender, Command arg1, String arg2, String[] args) {\n if(sender instanceof Player) {\n Player p = (Player)sender;\n if(p.hasPermission(\"pixel.build\")) {\n\n if(args.length == 0) {\n if(OnJoin.build.contains(p)) {\n OnJoin.build.remove(p);\n p.sendMessage(MLGWars.prefix+\"§7Du bist nun nicht mehr im §cBuild modus\");\n p.setGameMode(GameMode.SURVIVAL);\n p.playSound(p.getLocation(), Sound.FIREWORK_BLAST, 2, 3);\n } else {\n OnJoin.build.add(p);\n p.sendMessage(MLGWars.prefix+\"§7Du bist nun im §cBuild modus\");\n p.getInventory().clear();\n p.playSound(p.getLocation(), Sound.FIREWORK_BLAST, 2, 3);\n p.setGameMode(GameMode.CREATIVE);\n }\n } else {\n p.sendMessage(MLGWars.prefix+\"§7Nutze: §c/build\");\n }\n\n } else {\n p.sendMessage(MLGWars.prefix+\"§cDazu hast du keine Berechtigung!\");\n }\n }\n return true;\n }",
"protected boolean isPlayer(final CommandSender sender) {\n\t\tif (sender instanceof Player) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\tChatUtil.sendBrandingMessage(sender, this.mustBePlayerMessage);\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean onCommand(CommandSender arg0, Command arg1, String arg2,\n\t\t\tString[] arg3) {\n\t\treturn false;\n\t}",
"boolean commandUse(CommandSender sender, String[] args);",
"public boolean implies(ProtectionDomain domain, Permission permission)\n{\n\tPermissionCollection pc = getPermissions(domain);\n//\tSystem.out.println(\"pc = \" + pc);\n\treturn pc.implies(permission);\n}",
"public Boolean setFloodPerm(String dpidStr, String floodPerm) throws PermissionDeniedException;",
"@Override\npublic boolean onCommand(CommandSender arg0, Command arg1, String arg2, String[] arg3) {\n\treturn false;\n}",
"public boolean canEnterDestination(CommandSender sender, MVDestination d) {\n if (!(sender instanceof Player)) {\n return true;\n }\n Player p = (Player) sender;\n if (d == null || d.getLocation(p) == null) {\n return false;\n }\n String worldName = d.getLocation(p).getWorld().getName();\n if (!this.worldMgr.isMVWorld(worldName)) {\n return false;\n }\n if (!canEnterLocation(p, d.getLocation(p))) {\n return false;\n }\n return this.hasPermission(p, d.getRequiredPermission(), false);\n }",
"@Override\n public boolean hasPermission(Permission permission) {\n // FacesContext context = FacesContext.getCurrentInstance();\n String imp = (String)ADFContext.getCurrent().getSessionScope().get(\"isImpersonationOn\");\n// String imp = (String)context.getExternalContext().getSessionMap().get(\"isImpersonationOn\");\n if(imp == null || !imp.equals(\"Y\")){\n return super.hasPermission(permission);\n }\n else{\n return true;\n \n }\n \n }",
"int getPremiumSmsPermission(String packageName);",
"boolean hasSendPlayerName();",
"@Override\n public int onStartCommand(Intent intent, int flags, int startId) {\n\n boolean permissions_ok = true;\n for (String p : REQUIRED_PERMISSIONS) {\n if (ContextCompat.checkSelfPermission(this, p) != PackageManager.PERMISSION_GRANTED) {\n permissions_ok = false;\n break;\n }\n }\n\n if (permissions_ok) {\n //Check if the user has toggled the debug messages\n DEBUG = Aware.getSetting(this, Aware_Preferences.DEBUG_FLAG).equals(\"true\");\n\n //Initialize our plugin's settings\n Aware.setSetting(this, Settings.STATUS_PLUGIN_TEMPLATE, true);\n\n } else {\n Intent permissions = new Intent(this, PermissionsHandler.class);\n permissions.putExtra(PermissionsHandler.EXTRA_REQUIRED_PERMISSIONS, REQUIRED_PERMISSIONS);\n permissions.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(permissions);\n }\n\n return super.onStartCommand(intent, flags, startId);\n }",
"public boolean hasPermission(String username, MenuComponent menuComponent) {\r\n return username != null;\r\n }",
"private boolean addPermission(List<String> permissionsList, String permission) {\n if (ContextCompat.checkSelfPermission(BecomeHostActivity.this, permission) != PackageManager.PERMISSION_GRANTED) {\n permissionsList.add(permission);\n // Check for Rationale Option\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (!shouldShowRequestPermissionRationale(permission))\n return false;\n }\n }\n return true;\n }",
"public boolean execute(ChatClient sender, String[] args) {\n\t\t\n\t\tif (args.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\t\n\t\tString[] snoopArgs = args[1].split(\" \");\n\t\n\t\tif (snoopArgs.length < 2) {\n\t\t\tsender.serverChat(usage());\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\tString command = snoopArgs[0].toLowerCase();\n\t\t\t\t\n\t\tChatClient target = ChatServer.getClientByName(snoopArgs[1]);\n\t\t\n\t\tif (target == null) {\n\t\t\tsender.sendChat(\"I could not locate anyone by that name\");\n\t\t}\n\t\t\n\t\tif (command.compareTo(\"start\") == 0) {\n\t\t\ttarget.startSnoop(sender);\n\t\t\t\n\t\t} else if (command.compareTo(\"stop\") == 0) {\n\t\t\ttarget.stopSnoop(sender);\n\t\t//} else if (command.compareTo(\"enable\") == 0) {\n\t\t\t\n\t\t} else\n\t\t\tsender.serverChat(usage());\n\t\t\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCommand(CommandSender cs, Command arg1, String arg2,\n\t\t\tString[] args) {\n\t\treturn false;\n\t}",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }",
"@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }",
"public boolean hasPermission ( String name ) {\n\t\treturn extract ( handle -> handle.hasPermission ( name ) );\n\t}",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"boolean hasSender();",
"private void askForPermission(){\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG,\"don't have permission\");\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)) {\n Log.i(TAG,\"Asking for permission with explanation\");\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n } else {\n Log.i(TAG,\"Asking for permission without explanation\");\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n Log.i(TAG,\"Already had permission\");\n }\n\n }",
"public String getPermission()\r\n {\r\n return permission;\r\n }",
"private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }",
"public boolean selfPermissionGranted(String permission) {\n boolean result = true;\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n // targetSdkVersion >= Android M, we can\n // use Context#checkSelfPermission\n result = checkSelfPermission(permission)\n == PackageManager.PERMISSION_GRANTED;\n } else {\n // targetSdkVersion < Android M, we have to use PermissionChecker\n result = PermissionChecker.checkSelfPermission(this, permission)\n == PermissionChecker.PERMISSION_GRANTED;\n }\n }\n\n return result;\n }",
"public boolean checkPermissions(String check)\n {\n Log.d(TAG,\"check single PErmission\");\n int permissionRequest= ActivityCompat.checkSelfPermission(UploadActivity.this,check);\n if(permissionRequest!= PackageManager.PERMISSION_GRANTED)\n {\n Log.d(TAG,\"check PErmission\\nPermission was not granted for:\"+check);\n return false;\n }\n else\n {\n Log.d(TAG,\"check PErmission\\nPermission was granted for:\"+check);\n return true;\n }\n\n }"
] | [
"0.7104701",
"0.6981933",
"0.69255334",
"0.6763745",
"0.6590335",
"0.65155464",
"0.6416701",
"0.63301206",
"0.6129254",
"0.60893565",
"0.6082688",
"0.6058193",
"0.6047015",
"0.60333747",
"0.60312086",
"0.60261834",
"0.602348",
"0.59742963",
"0.5951645",
"0.58885163",
"0.5847236",
"0.58144844",
"0.57960325",
"0.5775718",
"0.57536674",
"0.5752736",
"0.5669974",
"0.56585944",
"0.56435275",
"0.5627525",
"0.56107503",
"0.55970514",
"0.557159",
"0.55671805",
"0.5563883",
"0.555549",
"0.552316",
"0.5517075",
"0.5511399",
"0.55047363",
"0.5487128",
"0.5481618",
"0.547195",
"0.54632014",
"0.5444782",
"0.5441009",
"0.5411508",
"0.53924304",
"0.538721",
"0.5386244",
"0.5385278",
"0.53820425",
"0.53353095",
"0.5317774",
"0.531193",
"0.53115535",
"0.53086716",
"0.52962655",
"0.5283127",
"0.5282538",
"0.52778494",
"0.52761275",
"0.52718425",
"0.5262948",
"0.52581453",
"0.52485603",
"0.5231537",
"0.5223834",
"0.5211066",
"0.52046955",
"0.5201027",
"0.5197174",
"0.51962626",
"0.5184535",
"0.51706797",
"0.516828",
"0.514812",
"0.51453084",
"0.5134343",
"0.5134168",
"0.5114902",
"0.5114736",
"0.5107772",
"0.5097946",
"0.50946534",
"0.5088981",
"0.50839376",
"0.5083489",
"0.5071932",
"0.50717515",
"0.50717515",
"0.50717515",
"0.50717515",
"0.50717515",
"0.50717515",
"0.50666857",
"0.50665915",
"0.50567347",
"0.5056312",
"0.50515854"
] | 0.80073994 | 0 |
Build a string from a string array. | public static String buildString(String[] split, String splitChar, int begin) {
return buildString(split, splitChar, begin, Integer.MAX_VALUE);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(String[] array)\n {\n if( array.length == 0 ) return Constants.BLANK;\n StringBuilder sb = new StringBuilder();\n for( String s : array )\n sb.append(s);\n return sb.toString();\n }",
"public static String createString(char[] charArray) {\r\n return String.copyValueOf(charArray);\r\n }",
"public static final <T> StrBuilder ARRAY_TO_STRING(T[][] ar){\n\t\tStrBuilder ret = new StrBuilder(50);\n\t\tfor(int row=0; row<ar.length; row++){ //TODO not null save\n\t\t\tif(ar[row]==null){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: null\");\n\t\t\t}\n\t\t\telse if(ar[row].length==0){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: 0\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int col=0; col<ar[row].length; col++){\n\t\t\t\t\tret.append(\"[\").append(row).append(\"][\").append(col).append(\"]: \");\n\t\t\t\t\tif(ar[row][col]==null){\n\t\t\t\t\t\tret.appendln(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(\"\".equals(ar[row][col])){\n\t\t\t\t\t\tret.appendln(\"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tret.appendln(ar[row][col]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public static String debugString(String[] arr) {\n return debugString(Arrays.asList(arr));\n }",
"public static String joinStrings(String[] a){\n String js=\"\";\n for (int i=0;i<a.length;i++){\n if (i==0){\n js = a[i];\n } else{\n js = js + \" \" + a[i];\n }\n }\n return js;\n }",
"private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \" \";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String deCharArrayAString(char[] array) {\r\n\t\tString aux = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\taux = aux + array[i];\r\n\t\t}\r\n\t\treturn aux;\r\n\t}",
"private static void buildString(String[] array, Calendar calendar,\r\n\t\t\tBoolean[] bArray) {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tbuilder.append(trueFormat.format(calendar.getTime()));\r\n\t\tbuilder.append(\" \");\r\n\t\tbuilder.append(array[0]);\r\n\t\tbuilder.append(\" \");\r\n\t\tbuilder.append(array[3]);\r\n\t\tsubBuild(array[4], builder);\r\n\t\tswitch (array[1]) {\r\n\t\tcase \"1\":\r\n\t\t\tif (bArray[0]) {\r\n\t\t\t\tbuilder.append(\"Получение уровня \");\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"2\":\r\n\t\t\tif (bArray[1]) {\r\n\t\t\t\tbuilder.append(\"Принятие в клан \");\r\n\t\t\t\tsubBuild(array[10], builder);\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"3\":\r\n\t\t\tif (bArray[2]) {\r\n\t\t\t\tsubBuild(array[10], builder);\r\n\t\t\t\tsubBuild(array[11], builder);\r\n\t\t\t\tbuilder.append(\"Смена статуса в клане \");\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"4\":\r\n\t\t\tif (bArray[3]) {\r\n\t\t\t\tbuilder.append(\"Исключение из клана\");\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"5\":\r\n\t\t\tif (bArray[4]) {\r\n\t\t\t\tbuilder.append(\"Принятие склонности \");\r\n\t\t\t\tsubBuild(getFaction(array[array.length - 1]), builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static String toString(char[] a) {\n String string = new String(a);\n return string;\n }",
"public static String m36404a(String[] strArr, String str) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < strArr.length; i++) {\n if (i != 0) {\n stringBuffer.append(str);\n }\n stringBuffer.append(strArr[i]);\n }\n return stringBuffer.toString();\n }",
"public static String toByteString(byte[] array) {\n StringBuilder sb = new StringBuilder(\"{\");\n for (int i = 0; i < array.length; i++) {\n if (i > 0)\n sb.append(\" \");\n sb.append(toByteString(array[i]));\n }\n return sb.append(\"}\").toString();\n }",
"private static String compileArray(float[] array) {\n String arrayString = \"\\\"\";\n for (float number : array) {\n arrayString += Model.formatFloat(number) + \", \";\n }\n arrayString = arrayString.substring(0, arrayString.length() - 2);\n arrayString += \"\\\"\";\n return arrayString;\n }",
"public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public JsArrayString generateArray(String[] array){\r\n\t\tif ( array==null||array.length==0)\r\n\t\t\treturn null ;\r\n\t\t\r\n\t\tJsArrayString retval = (JsArrayString)JavaScriptObject.createArray();\r\n\t\tfor ( String scn : array){\r\n\t\t\tretval.push(scn);\r\n\t\t}\r\n\t\treturn retval;\r\n\t\t\r\n\t}",
"public static String ToString(Object[] s) {\n\t\tString ret = \"\";\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\tret += s[i];\n\t\treturn ret;\n\t}",
"public static String toString(boolean[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\tstr += \"1\" + \"\";\r\n\t\t\telse\r\n\t\t\t\tstr += \"0\" + \"\";\r\n\t\treturn str + \"]\";\r\n\t}",
"private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }",
"public static String byteArrayToString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\t\n\t\t//iterate through whole array, convert each element from the array to hexadecimal string form, put a space between elements\n\t\tfor(byte b : array) {\n\t\t\tstr.append(String.format(\"%02X\", b));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}",
"public static String arrayToString(String[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"\"))\n\t\t\t\ta[i] = \"<-_->\";\n\t\t\toutput=output+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\t//what the fuck is this a java bug????????\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"<-_->\"))\n\t\t\t\ta[i] = \"\";\n\t\t}\n\t\treturn output;\n\t}",
"public static String join(String[] array, char split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String byteArrayToBinaryString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tfor(byte b : array) {\n\t\t\tstr.append((\"00000000\"+Integer.toBinaryString(b)).substring(Integer.toBinaryString(b).length()));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}",
"public static String buildString(Collection<String> strings, String splitChar) {\n StringBuilder combined = new StringBuilder();\n for (String s : strings) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(s);\n }\n return combined.toString();\n }",
"public static String arrayToCommaSeparatedString(String[] arr) {\n return arrayToSeparatedString(arr, ',');\n }",
"public static <T> String arrayToString(T[] list, Function<T,String> stringer) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[\");\n\t\tfor (T i : list) {\n\t\t\tsb.append(stringer.apply(i));\n\t\t\tsb.append(\",\");\n\t\t}\n\t\tif (list.length>0)\n\t\t\tsb.deleteCharAt(sb.length()-1);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static String arrayAsString(int array[]) {\n\tString ret = \"\";\n\tfor(int i = 0; i < array.length; i++) {\n\t if(i == array.length-1) {\n\t\tret += array[i];\n\t } else {\n\t\tret += array[i] + \" \";\n\t }\n\t}\n\treturn ret;\n }",
"public static String join(String[] input)\n {\n StringBuilder sb = new StringBuilder();\n for(String value : input)\n {\n sb.append(value);\n sb.append(\" \");\n }\n return sb.toString();\n }",
"private String createReadinString(char[] array, int start, int len)\r\n\t{\r\n\t\tint idx1 = start;\r\n\t\tint idx2 = start + len - 1;\r\n\r\n\t\twhile((idx1 <= idx2) && (!Character.isLetterOrDigit(array[idx1])))\r\n\t\t\tidx1++;\r\n\r\n\t\twhile((idx1 <= idx2) && (!Character.isLetterOrDigit(array[idx2])))\r\n\t\t\tidx2--;\r\n\r\n\t\treturn new String(array, idx1, idx2 - idx1 + 1);\r\n\t}",
"public static String toString(String format, double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public static String joinArray(String[] strs, String splitter){\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < strs.length; i++) {\n if (i>0){\n buf.append(splitter);\n }\n buf.append(strs[i]);\n }\n return buf.toString();\n }",
"public String makeIpFromArray(String[] ipArr) {\n\t\treturn ipArr[0] + \".\" + ipArr[1] + \".\" + ipArr[2] + \".\" + ipArr[3];\n\t}",
"public static String serializeForSQL(String arr[]){\n\t\t\n\t\tString ret = \"\";\n\t\tif (arr != null){\n\t\t\tfor (int i = 0; i < arr.length; i++){\n\t\t\tif (i != 0){\n\t\t\t\tret += \",\";\n\t\t\t}\n\t\t\tret += \"'\"+arr[i]+\"'\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }",
"public static String join(String[] array, String split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }",
"public static String implodeArray(String[] inputArray, String glueString) {\n\n\t/** Output variable */\n\tString output = \"\";\n\n\tif (inputArray.length > 0) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(inputArray[0]);\n\n\t\tfor (int i=1; i<inputArray.length; i++) {\n\t\t\tsb.append(glueString);\n\t\t\tsb.append(inputArray[i]);\n\t\t}\n\n\t\toutput = sb.toString();\n\t}\n\n\treturn output;\n\t}",
"static String join(CharSequence separator, String[] strings) {\n\t\t// Ideally we don't have to duplicate the code here if array is\n\t\t// iterable.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static String join(String[] array, String separator) {\n int len = array.length;\n if (len == 0) return \"\";\n\n StringBuilder out = new StringBuilder();\n out.append(array[0]);\n for (int i = 1; i < len; i++) {\n out.append(separator).append(array[i]);\n }\n return out.toString();\n }",
"public static String stringArrayToString(String[] strA, String delimiter) {\r\n StringBuffer str = new StringBuffer();\r\n if (null == strA || strA.length == 0)\r\n return null;\r\n for (int i = 0; i < strA.length; i++) {\r\n str.append(strA[i]);\r\n if (i < strA.length - 1)\r\n str.append(delimiter);\r\n }\r\n return str.toString();\r\n }",
"public static String assemblePhrase(String[] words) {\n String result = \"\";\n for( String str : words )\n\t\t\tresult = result + str + \" \";\n\t\tresult = result.trim();\n\t\treturn result;\n }",
"String arryToSinglelineString(int[] array,int N) {\n\t\tString str=\"\"; \n\t\tfor(int i=0;i<N;i++)\n\t\t\tstr=str+String.valueOf(array[i])+\" \";\n\t\treturn \"{\"+str+ \"}\";\n\t}",
"private static String getToString(Object[] arr, String delim) {\n\t\tif (arr.length == 0) return \"\"; \n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i > 0) sb.append(delim);\n\t\t\tsb.append(arr[i] == null ? \"\" : arr[i]);\n\t\t}\n\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static String toString(String format, int[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }",
"private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }",
"public static String arrayToString(int[] arr){\n\t\tStringBuffer ans = new StringBuffer();\n\t\tfor(int i=0;i<arr.length;i++)ans.append(arr[i]);\n\t\treturn ans.toString();\n\t}",
"public static <T> String arrayToString(T[] list) {\n\t\treturn arrayToString(list, o->o.toString());\n\t}",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"private String longsToStr(int[] longs) { // convert array of longs back to string\n String result = \"\";\n// int[] a = new int[longs.length];\n for (int i = 0; i < longs.length; i++) {\n // a[i] = longToStr(longs[i]);\n // result += a[i];\n result += longToStr(longs[i]);\n }\n return result; // use Array.join() rather than repeated string appends for efficiency\n }",
"public static String buildString(String[] split, String splitChar, int begin, int end) {\n StringBuilder combined = new StringBuilder();\n while (begin <= end && begin < split.length) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(split[begin]);\n begin++;\n }\n return combined.toString();\n }",
"public static String arrayToString(boolean[] a){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i])\n\t\t\t\toutput=output+\"1\";\n\t\t\telse\n\t\t\t\toutput=output+\"0\";\n\t\t}\n\t\treturn output;\n\t}",
"public static String arrayToBinaryString(final byte[] bytes)\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tbuilder.append(Long.toBinaryString((char)bytes[0]));\n\t\tfor(int i = 1; i < bytes.length; i ++)\n\t\t\tbuilder.append(BYTE_DELIMITER+Long.toBinaryString((char)bytes[i]));\n\t\treturn builder.toString();\n\t}",
"public static String arrayToSeparatedString(String[] arr, char separator) {\n return String.join(Character.toString(separator), arr);\n }",
"public static byte[] concatenate(String[] strs) {\n StringBuilder sb = new StringBuilder();\n \n for (int i=0; i<strs.length; i++) {\n sb.append(strs[i]);\n if (i != strs.length-1) {\n sb.append(\"*.*\"); //concatenate by this splitter\n }\n }\n return sb.toString().getBytes();\n }",
"public static <E> String[] toStringArray(final E[] array) {\n String[] stringList = null;\n if (array != null) {\n stringList = new String[array.length];\n for (int i = 0; i < array.length; i++) {\n if (array[i] != null) {\n stringList[i] = array[i].toString();\n } else {\n stringList[i] = null;\n }\n }\n }\n return stringList;\n }",
"protected String random(String array[]) {\n\t\tRandom generator = new Random();\n\t\tint randomIndex = generator.nextInt(array.length);\n\t\treturn array[randomIndex];\n\t}",
"public static PropertyDescriptionBuilder<String[]> arrayOfStringsProperty(String name) {\n return PropertyDescriptionBuilder.start(name, String[].class, Parsers.parseArray(String.class, Parsers::parseString));\n }",
"private static TriNode buildTri(String[] str) {\r\n TriNode n = new TriNode();\r\n for (String s : str) {\r\n n.append(s);\r\n }\r\n return n;\r\n }",
"public void fixmetestPositiveStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n final String[] stringArray1 = { \"abc\" };\n final String[] stringArray2 = { \"abc\", \"de,f\" };\n\n value = LocaleConvertUtils.convert(\"\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\" \", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{}\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{ }\", stringArray.getClass());\n checkStringArray(value, stringArray);\n\n value = LocaleConvertUtils.convert(\"abc\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{abc}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"'abc'\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{'abc'}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n\n value = LocaleConvertUtils.convert(\"abc 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{abc, 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\",\\\"de,f\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\" 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"'abc' 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{'abc', \\\"de,f\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n\n }",
"public static String join(String[] array, String sep) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < (len - 1); i++) {\n sb.append(array[i]).append(sep);\n }\n sb.append(array[len - 1]);\n return sb.toString();\n }",
"private String fill(String[] chain) {\r\n\t\tString result = new String();\r\n\t\tfor (int i = 0; i < chain.length; i++) {\r\n\t\t\tresult += chain[i];\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static String combine(String[] s, String glue) {\n int k = s.length;\n if (k == 0) {\n return null;\n }\n StringBuilder out = new StringBuilder();\n out.append(s[0]);\n for (int x = 1; x < k; ++x) {\n out.append(glue).append(s[x]);\n }\n return out.toString();\n }",
"static String m23274a(String str, Object... objArr) {\n String valueOf = String.valueOf(str);\n StringBuilder sb = new StringBuilder(valueOf.length() + (objArr.length * 16));\n int i = 0;\n int i2 = 0;\n while (i < objArr.length) {\n int indexOf = valueOf.indexOf(\"%s\", i2);\n if (indexOf == -1) {\n break;\n }\n sb.append(valueOf.substring(i2, indexOf));\n int i3 = i + 1;\n sb.append(objArr[i]);\n int i4 = i3;\n i2 = indexOf + 2;\n i = i4;\n }\n sb.append(valueOf.substring(i2));\n if (i < objArr.length) {\n sb.append(\" [\");\n int i5 = i + 1;\n sb.append(objArr[i]);\n while (i5 < objArr.length) {\n sb.append(\", \");\n int i6 = i5 + 1;\n sb.append(objArr[i5]);\n i5 = i6;\n }\n sb.append(']');\n }\n return sb.toString();\n }",
"public static String byteArrayToString(byte[] ba, int offset, int length) {\n return new String(Arrays.copyOfRange(ba, offset, offset + length), Charset.forName(CommonDefs.CHARSET)).trim();\n\n }",
"private String createInput(int[] input){\n\t\tString inputString = \"\";\n\t\tfor(int index = 0; index < input.length; index++)\n\t\t\tinputString += input[index] + \"\\n\";\n\t\treturn inputString;\n\t}",
"public static String join(String[] strings, String separator) {\n StringBuffer sb = new StringBuffer();\n int max = strings.length;\n for (int i = 0; i < max; i++) {\n if (i != 0)\n sb.append(separator);\n sb.append(strings[i]);\n }\n return sb.toString();\n }",
"public static String convertGregorianDateIntArrayToShortString(int[] dateArray) {\n String date;\n String[] months = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n date = months[dateArray[1]] + \" \" + Integer.toString(dateArray[0]);\n\n return date;\n }",
"public String RoutesArrayToString(ArrayList<Route> arrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < arrayToConvert.size(); i++) {\n if (arrayToConvert.get(i).getAirlineID() >= 0) {\n String routeString =\n arrayToConvert.get(i).getSourceAirport()\n + \" to \"\n + arrayToConvert.get(i).getDestinationAirport();\n if (i == arrayToConvert.size() - 1) {\n resultStringBuilder.append(routeString);\n } else {\n resultStringBuilder.append(routeString).append(\", \");\n }\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }",
"private static String remix(String str, int[] arr){\n StringBuilder sb = new StringBuilder();\n char[] charArray = new char[arr.length];\n for (int i=0; i< arr.length;i++){\n charArray[i] = str.charAt(arr[i]);\n sb.append(charArray[i]);\n }\n// String returnString = charArray.toString();\n// return returnString;\n return sb.toString();\n\n }",
"static String createString(byte b[]) {\n\treturn StringConverter.byteToHex(b);\n }",
"String[] translate(String[] input);",
"public static void showStringArray(String[] arr)\n {\n System.out.println(\"...........................................\");\n\n for (int i = 0; i < arr.length; i++) {\n System.out.print(arr[i] + \" \");\n }\n System.out.println();\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString charArray = \"Benjamin\";\r\n\t\t\r\n\t\tchar[] myChar = charArray.toCharArray(); //string returns to char\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(myChar));\r\n\t\t\r\n\t\tSystem.out.println(\"elements in myChar: \"+myChar.length);\r\n\t\t\r\n\r\n\t\t\r\n\t\tString str =\"\";\r\n\t\tchar mychar[] = {'a', 'b', 'c'};\r\n\t\t\r\n\t\tfor(int i=0; i<mychar.length; i++) {\r\n\t\t\tchar c= mychar[i];\r\n\t\t\tstr+=c;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"char to string result is: \"+str);\r\n\t}",
"public static String toString(int[] theArray) {\n String str = \"{\";\n\n for (int i = 0; i < theArray.length; i++) {\n str+=theArray[i];\n //adds a comma after every number except the last one\n if(i+1 < theArray.length) {\n str += \",\";\n }\n }\n str += \"}\";\n return str;\n }",
"public static String joinStrings(String[] strings, int startIndex) {\n return joinStrings(strings, startIndex, strings.length);\n }",
"public String CombineAirportsToOneString(ArrayList<String> airportArrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < airportArrayToConvert.size(); i++) {\n if (i == airportArrayToConvert.size() - 1) {\n resultStringBuilder.append(airportArrayToConvert.get(i));\n } else {\n resultStringBuilder.append(airportArrayToConvert.get(i)).append(\", \");\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }",
"public static final DataType<String> createOrderedString(final String[] format) {\r\n return new ARXOrderedString(format);\r\n }",
"public static String implode(char separator, String[] strings) {\n\t if (strings == null) return \"\";\n\t int len = -1;\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t boolean first = true;\n\t for (String string: strings) {\n\t\t if (first) first = false;\n\t\t else buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }",
"public static String arrayToString(double[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\toutput=output+\"\"+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\treturn output;\n\t}",
"final static String makeName(Object[] names) {\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < names.length; i++) {\n if (i != 0) {\n buf.append(\".\");\n }\n buf.append(names[i]);\n }\n return buf.toString();\n }",
"public static String[] toStringArray(int arr[])\n {\n String[] sArray = new String[arr.length];\n for(int i=0;i< arr.length;i++){\n sArray[i]=arr[i]+\"\";\n }\n return sArray;\n }",
"public void writeStringArrayNullable(String[] array) throws IOException {\n\t\tif (array == null) {\n\t\t\twriteVInt(0);\n\t\t} else {\n\t\t\twriteVInt(array.length);\n\t\t\tfor (String s : array) {\n\t\t\t\twriteString(s);\n\t\t\t}\n\t\t}\n\t}",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"public static String toHexString(byte[] array) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"0x\").append(DatatypeConverter.printHexBinary(array));\n return sb.toString();\n }",
"private String byteToString(byte[] bytes) {\n String bytesInStringForm = \"\";\n for (int byteChecked = 0; byteChecked < bytes.length; byteChecked++) {\n bytesInStringForm += (Integer.toString(bytes[byteChecked]));\n bytesInStringForm += (\",\");\n }\n return bytesInStringForm;\n }",
"private String getQuote(String[] i_StringArray) {\n Random random = new Random();\n int randomNumber = random.nextInt(i_StringArray.length + 1); // a random number indicating some index in the array.\n String randomString = i_StringArray[randomNumber]; // a string corresponding to the random index chosen.\n\n return randomString;\n }",
"public static String toHexString(byte[] array) {\n return DatatypeConverter.printHexBinary(array).toUpperCase();\n }",
"private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }",
"public static <T> String toString(T[] collection) {\n return toString(Arrays.asList(collection));\n }",
"public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"public static String byteArrayToString(byte[] value) {\r\n String ret = \"\";\r\n\r\n for (int i = 0; i < value.length; i++) {\r\n if (value[i] >= 32 && value[i] <= 126) ret = ret + ((char) value[i]);\r\n else ret = ret.concat(\".\");\r\n }\r\n\r\n return ret;\r\n }",
"public static String implode ( final String glue, final String[] pieces )\n {\n final StringBuilder sb;\n\n if (null == glue || null == pieces) return null;\n if (pieces.length == 0) return \"\";\n\n sb = new StringBuilder();\n for (final String s : pieces) sb.append(s).append(glue);\n return sb.toString().substring(0, sb.length() - glue.length());\n }",
"public static String[] bytesToStringArray(byte[] array, char start, char... separators) {\n List<String> retVal = new ArrayList<String>();\n\n StringBuilder token = new StringBuilder();\n\n boolean isStarted = false;\n\n Character end = separators[separators.length - 1];\n\n List<Character> separator = new ArrayList<Character>();\n \n for(int i = 0; i < (separators.length - 1); i++) {\n separator.add(separators[i]);\n }\n \n for (byte b : array) {\n if (b == end) {\n if (token.length() > 0) {\n retVal.add(token.toString());\n }\n break;\n }\n\n if (isStarted) {\n\n if (separator.contains((Character) (char) b)) {\n retVal.add(token.toString());\n token = new StringBuilder();\n continue;\n }\n\n token.append((char) b);\n }\n\n if (b == start) {\n isStarted = true;\n }\n }\n\n\n return retVal.toArray(new String[]{});\n }",
"public static synchronized Vector<String> getStringArrayAsVector(String[] strArray) {\n\n\tVector<String> vector = new Vector<String>();\n\tfor (int i = 0; i < strArray.length; i++) {\n\n\t vector.add(strArray[i]);\n\n\t}\n\n\treturn vector;\n\n }",
"public static char[][] arrayStringAmatrizChar(String[] array) {\n\tchar[][] matriz = new char[array.length][];\n\tfor (int i = 0; i < array.length; i++) {\n\t matriz[i] = array[i].toCharArray();\n\t}\n\treturn matriz;\n }",
"@Test\n public void stringFromBytesArray() {\n byte[] input = new byte[]{\n 12,\n -68,\n 102,\n 17,\n -11,\n 84,\n 11,\n -48,\n -128,\n -102,\n 56,\n -115,\n -55,\n 90,\n 97,\n 91\n };\n\n assertEquals(\n \"0cbc6611f5540bd0809a388dc95a615b\",\n JdkHashTools.getStringFromByteArray(input)\n );\n }",
"public static String cardsToString(int[] cards){\n //check for null array\n if(cards == null){\n return \"[]\";\n }\n //string buffer with open brackets\n StringBuffer sb = new StringBuffer(\"[\");\n //add the individual string cards to the string buffer\n for(int i = 0; i < cards.length; i++){\n sb.append(cardToString(cards[i]));\n //add a comma after all of the cards except the last one\n if(i != cards.length - 1){\n sb.append(\", \");\n }\n }\n //add close bracket\n sb.append(\"]\");\n return sb.toString();\n }",
"private String bytesToString(byte[] someBytes) {\n String retStr = \"\";\n\n for (int i = 0; i < someBytes.length; ++i) {\n retStr += \" \" + someBytes[i];\n }\n\n return retStr;\n }",
"private static String m2627a(String str, Object... objArr) {\n return String.format(Locale.ENGLISH, str, objArr);\n }"
] | [
"0.64940256",
"0.6478611",
"0.63456255",
"0.6322211",
"0.625692",
"0.62547874",
"0.61514825",
"0.6123989",
"0.60833603",
"0.58831817",
"0.580581",
"0.579534",
"0.5782368",
"0.5715675",
"0.5674481",
"0.56689847",
"0.56241035",
"0.5606291",
"0.55817753",
"0.5577534",
"0.5546521",
"0.5519576",
"0.5506838",
"0.5488981",
"0.54673",
"0.5440574",
"0.5439547",
"0.5437892",
"0.54363",
"0.543558",
"0.5428751",
"0.54097897",
"0.5389982",
"0.53749466",
"0.5362742",
"0.5341388",
"0.53190744",
"0.5316618",
"0.53061956",
"0.5295206",
"0.52918315",
"0.5289555",
"0.5288839",
"0.52606076",
"0.5259961",
"0.5254266",
"0.5249807",
"0.5247166",
"0.5242706",
"0.5186575",
"0.5162634",
"0.5145809",
"0.51428586",
"0.5131676",
"0.5124501",
"0.5106922",
"0.5080923",
"0.5074376",
"0.5067612",
"0.5061882",
"0.50604516",
"0.5027969",
"0.5015981",
"0.5000356",
"0.49973002",
"0.49939823",
"0.498919",
"0.4989015",
"0.49877048",
"0.49830362",
"0.4976091",
"0.49513197",
"0.49457368",
"0.49447802",
"0.49431786",
"0.4933398",
"0.49288595",
"0.4927777",
"0.49006784",
"0.48765722",
"0.48671675",
"0.48670566",
"0.48670566",
"0.48668694",
"0.48507926",
"0.484321",
"0.48349357",
"0.4828772",
"0.48281398",
"0.48248658",
"0.4821038",
"0.4819266",
"0.48183957",
"0.4815769",
"0.48136994",
"0.48130018",
"0.48004398",
"0.4800139",
"0.47922504",
"0.4784378"
] | 0.53628814 | 34 |
Build a string from a string array. | public static String buildString(String[] split, String splitChar, int begin, int end) {
StringBuilder combined = new StringBuilder();
while (begin <= end && begin < split.length) {
if (combined.length() > 0) {
combined.append(splitChar);
}
combined.append(split[begin]);
begin++;
}
return combined.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String join(String[] array)\n {\n if( array.length == 0 ) return Constants.BLANK;\n StringBuilder sb = new StringBuilder();\n for( String s : array )\n sb.append(s);\n return sb.toString();\n }",
"public static String createString(char[] charArray) {\r\n return String.copyValueOf(charArray);\r\n }",
"public static final <T> StrBuilder ARRAY_TO_STRING(T[][] ar){\n\t\tStrBuilder ret = new StrBuilder(50);\n\t\tfor(int row=0; row<ar.length; row++){ //TODO not null save\n\t\t\tif(ar[row]==null){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: null\");\n\t\t\t}\n\t\t\telse if(ar[row].length==0){\n\t\t\t\tret.append(\"[\").append(row).appendln(\"]: 0\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfor(int col=0; col<ar[row].length; col++){\n\t\t\t\t\tret.append(\"[\").append(row).append(\"][\").append(col).append(\"]: \");\n\t\t\t\t\tif(ar[row][col]==null){\n\t\t\t\t\t\tret.appendln(\"null\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(\"\".equals(ar[row][col])){\n\t\t\t\t\t\tret.appendln(\"0\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tret.appendln(ar[row][col]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"public static String debugString(String[] arr) {\n return debugString(Arrays.asList(arr));\n }",
"public static String joinStrings(String[] a){\n String js=\"\";\n for (int i=0;i<a.length;i++){\n if (i==0){\n js = a[i];\n } else{\n js = js + \" \" + a[i];\n }\n }\n return js;\n }",
"private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \" \";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String deCharArrayAString(char[] array) {\r\n\t\tString aux = \"\";\r\n\t\tfor (int i = 0; i < array.length; i++) {\r\n\t\t\taux = aux + array[i];\r\n\t\t}\r\n\t\treturn aux;\r\n\t}",
"private static void buildString(String[] array, Calendar calendar,\r\n\t\t\tBoolean[] bArray) {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tbuilder.append(trueFormat.format(calendar.getTime()));\r\n\t\tbuilder.append(\" \");\r\n\t\tbuilder.append(array[0]);\r\n\t\tbuilder.append(\" \");\r\n\t\tbuilder.append(array[3]);\r\n\t\tsubBuild(array[4], builder);\r\n\t\tswitch (array[1]) {\r\n\t\tcase \"1\":\r\n\t\t\tif (bArray[0]) {\r\n\t\t\t\tbuilder.append(\"Получение уровня \");\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"2\":\r\n\t\t\tif (bArray[1]) {\r\n\t\t\t\tbuilder.append(\"Принятие в клан \");\r\n\t\t\t\tsubBuild(array[10], builder);\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"3\":\r\n\t\t\tif (bArray[2]) {\r\n\t\t\t\tsubBuild(array[10], builder);\r\n\t\t\t\tsubBuild(array[11], builder);\r\n\t\t\t\tbuilder.append(\"Смена статуса в клане \");\r\n\t\t\t\tsubBuild(array[array.length - 1], builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"4\":\r\n\t\t\tif (bArray[3]) {\r\n\t\t\t\tbuilder.append(\"Исключение из клана\");\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase \"5\":\r\n\t\t\tif (bArray[4]) {\r\n\t\t\t\tbuilder.append(\"Принятие склонности \");\r\n\t\t\t\tsubBuild(getFaction(array[array.length - 1]), builder);\r\n\t\t\t\tSystem.out.println(builder.toString());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static String toString(char[] a) {\n String string = new String(a);\n return string;\n }",
"public static String m36404a(String[] strArr, String str) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < strArr.length; i++) {\n if (i != 0) {\n stringBuffer.append(str);\n }\n stringBuffer.append(strArr[i]);\n }\n return stringBuffer.toString();\n }",
"public static String toByteString(byte[] array) {\n StringBuilder sb = new StringBuilder(\"{\");\n for (int i = 0; i < array.length; i++) {\n if (i > 0)\n sb.append(\" \");\n sb.append(toByteString(array[i]));\n }\n return sb.append(\"}\").toString();\n }",
"private static String compileArray(float[] array) {\n String arrayString = \"\\\"\";\n for (float number : array) {\n arrayString += Model.formatFloat(number) + \", \";\n }\n arrayString = arrayString.substring(0, arrayString.length() - 2);\n arrayString += \"\\\"\";\n return arrayString;\n }",
"public static String toString(double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.valueOf(array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public JsArrayString generateArray(String[] array){\r\n\t\tif ( array==null||array.length==0)\r\n\t\t\treturn null ;\r\n\t\t\r\n\t\tJsArrayString retval = (JsArrayString)JavaScriptObject.createArray();\r\n\t\tfor ( String scn : array){\r\n\t\t\tretval.push(scn);\r\n\t\t}\r\n\t\treturn retval;\r\n\t\t\r\n\t}",
"public static String ToString(Object[] s) {\n\t\tString ret = \"\";\n\t\tfor (int i = 0; i < s.length; i++)\n\t\t\tret += s[i];\n\t\treturn ret;\n\t}",
"public static String toString(boolean[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tif (array[i])\r\n\t\t\t\tstr += \"1\" + \"\";\r\n\t\t\telse\r\n\t\t\t\tstr += \"0\" + \"\";\r\n\t\treturn str + \"]\";\r\n\t}",
"private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }",
"public static String byteArrayToString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\t\n\t\t//iterate through whole array, convert each element from the array to hexadecimal string form, put a space between elements\n\t\tfor(byte b : array) {\n\t\t\tstr.append(String.format(\"%02X\", b));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}",
"public static String arrayToString(String[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"\"))\n\t\t\t\ta[i] = \"<-_->\";\n\t\t\toutput=output+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\t//what the fuck is this a java bug????????\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"<-_->\"))\n\t\t\t\ta[i] = \"\";\n\t\t}\n\t\treturn output;\n\t}",
"public static String join(String[] array, char split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String byteArrayToBinaryString(byte[] array) {\n\t\tStringBuilder str = new StringBuilder();\n\t\tfor(byte b : array) {\n\t\t\tstr.append((\"00000000\"+Integer.toBinaryString(b)).substring(Integer.toBinaryString(b).length()));\n\t\t\tstr.append(\" \");\n\t\t}\n\t\treturn str.toString();\n\t}",
"public static String buildString(Collection<String> strings, String splitChar) {\n StringBuilder combined = new StringBuilder();\n for (String s : strings) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(s);\n }\n return combined.toString();\n }",
"public static String arrayToCommaSeparatedString(String[] arr) {\n return arrayToSeparatedString(arr, ',');\n }",
"public static <T> String arrayToString(T[] list, Function<T,String> stringer) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[\");\n\t\tfor (T i : list) {\n\t\t\tsb.append(stringer.apply(i));\n\t\t\tsb.append(\",\");\n\t\t}\n\t\tif (list.length>0)\n\t\t\tsb.deleteCharAt(sb.length()-1);\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static String arrayAsString(int array[]) {\n\tString ret = \"\";\n\tfor(int i = 0; i < array.length; i++) {\n\t if(i == array.length-1) {\n\t\tret += array[i];\n\t } else {\n\t\tret += array[i] + \" \";\n\t }\n\t}\n\treturn ret;\n }",
"public static String join(String[] input)\n {\n StringBuilder sb = new StringBuilder();\n for(String value : input)\n {\n sb.append(value);\n sb.append(\" \");\n }\n return sb.toString();\n }",
"private String createReadinString(char[] array, int start, int len)\r\n\t{\r\n\t\tint idx1 = start;\r\n\t\tint idx2 = start + len - 1;\r\n\r\n\t\twhile((idx1 <= idx2) && (!Character.isLetterOrDigit(array[idx1])))\r\n\t\t\tidx1++;\r\n\r\n\t\twhile((idx1 <= idx2) && (!Character.isLetterOrDigit(array[idx2])))\r\n\t\t\tidx2--;\r\n\r\n\t\treturn new String(array, idx1, idx2 - idx1 + 1);\r\n\t}",
"public static String toString(String format, double[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"public static String joinArray(String[] strs, String splitter){\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < strs.length; i++) {\n if (i>0){\n buf.append(splitter);\n }\n buf.append(strs[i]);\n }\n return buf.toString();\n }",
"public String makeIpFromArray(String[] ipArr) {\n\t\treturn ipArr[0] + \".\" + ipArr[1] + \".\" + ipArr[2] + \".\" + ipArr[3];\n\t}",
"public static String serializeForSQL(String arr[]){\n\t\t\n\t\tString ret = \"\";\n\t\tif (arr != null){\n\t\t\tfor (int i = 0; i < arr.length; i++){\n\t\t\tif (i != 0){\n\t\t\t\tret += \",\";\n\t\t\t}\n\t\t\tret += \"'\"+arr[i]+\"'\";\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}",
"private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }",
"public static String join(String[] array, String split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }",
"public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }",
"public static String buildString(String[] split, String splitChar, int begin) {\n return buildString(split, splitChar, begin, Integer.MAX_VALUE);\n }",
"public static String implodeArray(String[] inputArray, String glueString) {\n\n\t/** Output variable */\n\tString output = \"\";\n\n\tif (inputArray.length > 0) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(inputArray[0]);\n\n\t\tfor (int i=1; i<inputArray.length; i++) {\n\t\t\tsb.append(glueString);\n\t\t\tsb.append(inputArray[i]);\n\t\t}\n\n\t\toutput = sb.toString();\n\t}\n\n\treturn output;\n\t}",
"static String join(CharSequence separator, String[] strings) {\n\t\t// Ideally we don't have to duplicate the code here if array is\n\t\t// iterable.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static String join(String[] array, String separator) {\n int len = array.length;\n if (len == 0) return \"\";\n\n StringBuilder out = new StringBuilder();\n out.append(array[0]);\n for (int i = 1; i < len; i++) {\n out.append(separator).append(array[i]);\n }\n return out.toString();\n }",
"public static String stringArrayToString(String[] strA, String delimiter) {\r\n StringBuffer str = new StringBuffer();\r\n if (null == strA || strA.length == 0)\r\n return null;\r\n for (int i = 0; i < strA.length; i++) {\r\n str.append(strA[i]);\r\n if (i < strA.length - 1)\r\n str.append(delimiter);\r\n }\r\n return str.toString();\r\n }",
"public static String assemblePhrase(String[] words) {\n String result = \"\";\n for( String str : words )\n\t\t\tresult = result + str + \" \";\n\t\tresult = result.trim();\n\t\treturn result;\n }",
"String arryToSinglelineString(int[] array,int N) {\n\t\tString str=\"\"; \n\t\tfor(int i=0;i<N;i++)\n\t\t\tstr=str+String.valueOf(array[i])+\" \";\n\t\treturn \"{\"+str+ \"}\";\n\t}",
"private static String getToString(Object[] arr, String delim) {\n\t\tif (arr.length == 0) return \"\"; \n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i > 0) sb.append(delim);\n\t\t\tsb.append(arr[i] == null ? \"\" : arr[i]);\n\t\t}\n\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}",
"public static String toString(String format, int[] array)\r\n\t{\r\n\t\tString str = \"[ \";\r\n\t\tfor (int i = 0; i < array.length; i++)\r\n\t\t\tstr += String.format(format, array[i]) + \" \";\r\n\t\treturn str + \"]\";\r\n\t}",
"@Override\n public String toString() {\n if (arrayLen != 1) {\n setLength(stringArray, arrayLen);\n String s = join(stringArray);\n // Create a new array to allow everything to get GC'd.\n stringArray = new String[] {s};\n arrayLen = 1;\n }\n return stringArray[0];\n }",
"private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }",
"public static String arrayToString(int[] arr){\n\t\tStringBuffer ans = new StringBuffer();\n\t\tfor(int i=0;i<arr.length;i++)ans.append(arr[i]);\n\t\treturn ans.toString();\n\t}",
"public static <T> String arrayToString(T[] list) {\n\t\treturn arrayToString(list, o->o.toString());\n\t}",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"private String longsToStr(int[] longs) { // convert array of longs back to string\n String result = \"\";\n// int[] a = new int[longs.length];\n for (int i = 0; i < longs.length; i++) {\n // a[i] = longToStr(longs[i]);\n // result += a[i];\n result += longToStr(longs[i]);\n }\n return result; // use Array.join() rather than repeated string appends for efficiency\n }",
"public static String arrayToString(boolean[] a){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i])\n\t\t\t\toutput=output+\"1\";\n\t\t\telse\n\t\t\t\toutput=output+\"0\";\n\t\t}\n\t\treturn output;\n\t}",
"public static String arrayToBinaryString(final byte[] bytes)\n\t{\n\t\tfinal StringBuilder builder = new StringBuilder();\n\t\tbuilder.append(Long.toBinaryString((char)bytes[0]));\n\t\tfor(int i = 1; i < bytes.length; i ++)\n\t\t\tbuilder.append(BYTE_DELIMITER+Long.toBinaryString((char)bytes[i]));\n\t\treturn builder.toString();\n\t}",
"public static String arrayToSeparatedString(String[] arr, char separator) {\n return String.join(Character.toString(separator), arr);\n }",
"public static byte[] concatenate(String[] strs) {\n StringBuilder sb = new StringBuilder();\n \n for (int i=0; i<strs.length; i++) {\n sb.append(strs[i]);\n if (i != strs.length-1) {\n sb.append(\"*.*\"); //concatenate by this splitter\n }\n }\n return sb.toString().getBytes();\n }",
"public static <E> String[] toStringArray(final E[] array) {\n String[] stringList = null;\n if (array != null) {\n stringList = new String[array.length];\n for (int i = 0; i < array.length; i++) {\n if (array[i] != null) {\n stringList[i] = array[i].toString();\n } else {\n stringList[i] = null;\n }\n }\n }\n return stringList;\n }",
"protected String random(String array[]) {\n\t\tRandom generator = new Random();\n\t\tint randomIndex = generator.nextInt(array.length);\n\t\treturn array[randomIndex];\n\t}",
"public static PropertyDescriptionBuilder<String[]> arrayOfStringsProperty(String name) {\n return PropertyDescriptionBuilder.start(name, String[].class, Parsers.parseArray(String.class, Parsers::parseString));\n }",
"private static TriNode buildTri(String[] str) {\r\n TriNode n = new TriNode();\r\n for (String s : str) {\r\n n.append(s);\r\n }\r\n return n;\r\n }",
"public void fixmetestPositiveStringArray() {\n\n fail(\"Array conversions not implemented yet.\");\n\n Object value;\n final String[] stringArray = {};\n final String[] stringArray1 = { \"abc\" };\n final String[] stringArray2 = { \"abc\", \"de,f\" };\n\n value = LocaleConvertUtils.convert(\"\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\" \", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{}\", stringArray.getClass());\n checkStringArray(value, stringArray);\n value = LocaleConvertUtils.convert(\"{ }\", stringArray.getClass());\n checkStringArray(value, stringArray);\n\n value = LocaleConvertUtils.convert(\"abc\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{abc}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"'abc'\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n value = LocaleConvertUtils.convert(\"{'abc'}\", stringArray.getClass());\n checkStringArray(value, stringArray1);\n\n value = LocaleConvertUtils.convert(\"abc 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{abc, 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"\\\"abc\\\",\\\"de,f\\\"\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{\\\"abc\\\" 'de,f'}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"'abc' 'de,f'\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n value = LocaleConvertUtils.convert(\"{'abc', \\\"de,f\\\"}\", stringArray.getClass());\n checkStringArray(value, stringArray2);\n\n }",
"public static String join(String[] array, String sep) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < (len - 1); i++) {\n sb.append(array[i]).append(sep);\n }\n sb.append(array[len - 1]);\n return sb.toString();\n }",
"private String fill(String[] chain) {\r\n\t\tString result = new String();\r\n\t\tfor (int i = 0; i < chain.length; i++) {\r\n\t\t\tresult += chain[i];\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static String combine(String[] s, String glue) {\n int k = s.length;\n if (k == 0) {\n return null;\n }\n StringBuilder out = new StringBuilder();\n out.append(s[0]);\n for (int x = 1; x < k; ++x) {\n out.append(glue).append(s[x]);\n }\n return out.toString();\n }",
"static String m23274a(String str, Object... objArr) {\n String valueOf = String.valueOf(str);\n StringBuilder sb = new StringBuilder(valueOf.length() + (objArr.length * 16));\n int i = 0;\n int i2 = 0;\n while (i < objArr.length) {\n int indexOf = valueOf.indexOf(\"%s\", i2);\n if (indexOf == -1) {\n break;\n }\n sb.append(valueOf.substring(i2, indexOf));\n int i3 = i + 1;\n sb.append(objArr[i]);\n int i4 = i3;\n i2 = indexOf + 2;\n i = i4;\n }\n sb.append(valueOf.substring(i2));\n if (i < objArr.length) {\n sb.append(\" [\");\n int i5 = i + 1;\n sb.append(objArr[i]);\n while (i5 < objArr.length) {\n sb.append(\", \");\n int i6 = i5 + 1;\n sb.append(objArr[i5]);\n i5 = i6;\n }\n sb.append(']');\n }\n return sb.toString();\n }",
"public static String byteArrayToString(byte[] ba, int offset, int length) {\n return new String(Arrays.copyOfRange(ba, offset, offset + length), Charset.forName(CommonDefs.CHARSET)).trim();\n\n }",
"private String createInput(int[] input){\n\t\tString inputString = \"\";\n\t\tfor(int index = 0; index < input.length; index++)\n\t\t\tinputString += input[index] + \"\\n\";\n\t\treturn inputString;\n\t}",
"public static String join(String[] strings, String separator) {\n StringBuffer sb = new StringBuffer();\n int max = strings.length;\n for (int i = 0; i < max; i++) {\n if (i != 0)\n sb.append(separator);\n sb.append(strings[i]);\n }\n return sb.toString();\n }",
"public static String convertGregorianDateIntArrayToShortString(int[] dateArray) {\n String date;\n String[] months = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n date = months[dateArray[1]] + \" \" + Integer.toString(dateArray[0]);\n\n return date;\n }",
"public String RoutesArrayToString(ArrayList<Route> arrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < arrayToConvert.size(); i++) {\n if (arrayToConvert.get(i).getAirlineID() >= 0) {\n String routeString =\n arrayToConvert.get(i).getSourceAirport()\n + \" to \"\n + arrayToConvert.get(i).getDestinationAirport();\n if (i == arrayToConvert.size() - 1) {\n resultStringBuilder.append(routeString);\n } else {\n resultStringBuilder.append(routeString).append(\", \");\n }\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }",
"private static String remix(String str, int[] arr){\n StringBuilder sb = new StringBuilder();\n char[] charArray = new char[arr.length];\n for (int i=0; i< arr.length;i++){\n charArray[i] = str.charAt(arr[i]);\n sb.append(charArray[i]);\n }\n// String returnString = charArray.toString();\n// return returnString;\n return sb.toString();\n\n }",
"static String createString(byte b[]) {\n\treturn StringConverter.byteToHex(b);\n }",
"String[] translate(String[] input);",
"public static void showStringArray(String[] arr)\n {\n System.out.println(\"...........................................\");\n\n for (int i = 0; i < arr.length; i++) {\n System.out.print(arr[i] + \" \");\n }\n System.out.println();\n\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tString charArray = \"Benjamin\";\r\n\t\t\r\n\t\tchar[] myChar = charArray.toCharArray(); //string returns to char\r\n\t\t\r\n\t\tSystem.out.println(Arrays.toString(myChar));\r\n\t\t\r\n\t\tSystem.out.println(\"elements in myChar: \"+myChar.length);\r\n\t\t\r\n\r\n\t\t\r\n\t\tString str =\"\";\r\n\t\tchar mychar[] = {'a', 'b', 'c'};\r\n\t\t\r\n\t\tfor(int i=0; i<mychar.length; i++) {\r\n\t\t\tchar c= mychar[i];\r\n\t\t\tstr+=c;\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"char to string result is: \"+str);\r\n\t}",
"public static String toString(int[] theArray) {\n String str = \"{\";\n\n for (int i = 0; i < theArray.length; i++) {\n str+=theArray[i];\n //adds a comma after every number except the last one\n if(i+1 < theArray.length) {\n str += \",\";\n }\n }\n str += \"}\";\n return str;\n }",
"public static String joinStrings(String[] strings, int startIndex) {\n return joinStrings(strings, startIndex, strings.length);\n }",
"public String CombineAirportsToOneString(ArrayList<String> airportArrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < airportArrayToConvert.size(); i++) {\n if (i == airportArrayToConvert.size() - 1) {\n resultStringBuilder.append(airportArrayToConvert.get(i));\n } else {\n resultStringBuilder.append(airportArrayToConvert.get(i)).append(\", \");\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }",
"public static final DataType<String> createOrderedString(final String[] format) {\r\n return new ARXOrderedString(format);\r\n }",
"public static String implode(char separator, String[] strings) {\n\t if (strings == null) return \"\";\n\t int len = -1;\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t boolean first = true;\n\t for (String string: strings) {\n\t\t if (first) first = false;\n\t\t else buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }",
"public static String arrayToString(double[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\toutput=output+\"\"+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\treturn output;\n\t}",
"final static String makeName(Object[] names) {\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < names.length; i++) {\n if (i != 0) {\n buf.append(\".\");\n }\n buf.append(names[i]);\n }\n return buf.toString();\n }",
"public static String[] toStringArray(int arr[])\n {\n String[] sArray = new String[arr.length];\n for(int i=0;i< arr.length;i++){\n sArray[i]=arr[i]+\"\";\n }\n return sArray;\n }",
"public void writeStringArrayNullable(String[] array) throws IOException {\n\t\tif (array == null) {\n\t\t\twriteVInt(0);\n\t\t} else {\n\t\t\twriteVInt(array.length);\n\t\t\tfor (String s : array) {\n\t\t\t\twriteString(s);\n\t\t\t}\n\t\t}\n\t}",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"private String arrayToString(double[] a) {\n StringBuffer buffy = new StringBuffer();\n for (int i=0; i<a.length; i++) {\n buffy.append(a[i]+\"\\t\");\n }\n return buffy.toString();\n }",
"public static String toHexString(byte[] array) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"0x\").append(DatatypeConverter.printHexBinary(array));\n return sb.toString();\n }",
"private String byteToString(byte[] bytes) {\n String bytesInStringForm = \"\";\n for (int byteChecked = 0; byteChecked < bytes.length; byteChecked++) {\n bytesInStringForm += (Integer.toString(bytes[byteChecked]));\n bytesInStringForm += (\",\");\n }\n return bytesInStringForm;\n }",
"private String getQuote(String[] i_StringArray) {\n Random random = new Random();\n int randomNumber = random.nextInt(i_StringArray.length + 1); // a random number indicating some index in the array.\n String randomString = i_StringArray[randomNumber]; // a string corresponding to the random index chosen.\n\n return randomString;\n }",
"public static String toHexString(byte[] array) {\n return DatatypeConverter.printHexBinary(array).toUpperCase();\n }",
"private static String bytes2String(byte[] bytes) {\n StringBuffer stringBuffer = new StringBuffer();\n for (int i = 0; i < bytes.length; i++) {\n stringBuffer.append((char) bytes[i]);\n }\n return stringBuffer.toString();\n }",
"public static <T> String toString(T[] collection) {\n return toString(Arrays.asList(collection));\n }",
"public String ArrayToString(ArrayList<Card> Arr){\n String ArrayContents1 = \"\"; //contents of array\n for(int i =0; i< Arr.size(); i++){\n Card card = Arr.get(i);\n\n String cardNameString = card.getCardName();\n ArrayContents1= ArrayContents1 + \", \" + cardNameString;\n }\n return ArrayContents1;\n }",
"public String toString() {\n\t\tString str = new String ();\n\t\tfor (int i = 0; i <size; i++)\n\t\t{\n\t\t\tstr +=\"(\" + i +\")\" + arr[i] + \"\\n\";\n\t\t}\n\t\treturn str;\n\t}",
"public static String byteArrayToString(byte[] value) {\r\n String ret = \"\";\r\n\r\n for (int i = 0; i < value.length; i++) {\r\n if (value[i] >= 32 && value[i] <= 126) ret = ret + ((char) value[i]);\r\n else ret = ret.concat(\".\");\r\n }\r\n\r\n return ret;\r\n }",
"public static String implode ( final String glue, final String[] pieces )\n {\n final StringBuilder sb;\n\n if (null == glue || null == pieces) return null;\n if (pieces.length == 0) return \"\";\n\n sb = new StringBuilder();\n for (final String s : pieces) sb.append(s).append(glue);\n return sb.toString().substring(0, sb.length() - glue.length());\n }",
"public static String[] bytesToStringArray(byte[] array, char start, char... separators) {\n List<String> retVal = new ArrayList<String>();\n\n StringBuilder token = new StringBuilder();\n\n boolean isStarted = false;\n\n Character end = separators[separators.length - 1];\n\n List<Character> separator = new ArrayList<Character>();\n \n for(int i = 0; i < (separators.length - 1); i++) {\n separator.add(separators[i]);\n }\n \n for (byte b : array) {\n if (b == end) {\n if (token.length() > 0) {\n retVal.add(token.toString());\n }\n break;\n }\n\n if (isStarted) {\n\n if (separator.contains((Character) (char) b)) {\n retVal.add(token.toString());\n token = new StringBuilder();\n continue;\n }\n\n token.append((char) b);\n }\n\n if (b == start) {\n isStarted = true;\n }\n }\n\n\n return retVal.toArray(new String[]{});\n }",
"public static synchronized Vector<String> getStringArrayAsVector(String[] strArray) {\n\n\tVector<String> vector = new Vector<String>();\n\tfor (int i = 0; i < strArray.length; i++) {\n\n\t vector.add(strArray[i]);\n\n\t}\n\n\treturn vector;\n\n }",
"public static char[][] arrayStringAmatrizChar(String[] array) {\n\tchar[][] matriz = new char[array.length][];\n\tfor (int i = 0; i < array.length; i++) {\n\t matriz[i] = array[i].toCharArray();\n\t}\n\treturn matriz;\n }",
"@Test\n public void stringFromBytesArray() {\n byte[] input = new byte[]{\n 12,\n -68,\n 102,\n 17,\n -11,\n 84,\n 11,\n -48,\n -128,\n -102,\n 56,\n -115,\n -55,\n 90,\n 97,\n 91\n };\n\n assertEquals(\n \"0cbc6611f5540bd0809a388dc95a615b\",\n JdkHashTools.getStringFromByteArray(input)\n );\n }",
"public static String cardsToString(int[] cards){\n //check for null array\n if(cards == null){\n return \"[]\";\n }\n //string buffer with open brackets\n StringBuffer sb = new StringBuffer(\"[\");\n //add the individual string cards to the string buffer\n for(int i = 0; i < cards.length; i++){\n sb.append(cardToString(cards[i]));\n //add a comma after all of the cards except the last one\n if(i != cards.length - 1){\n sb.append(\", \");\n }\n }\n //add close bracket\n sb.append(\"]\");\n return sb.toString();\n }",
"private String bytesToString(byte[] someBytes) {\n String retStr = \"\";\n\n for (int i = 0; i < someBytes.length; ++i) {\n retStr += \" \" + someBytes[i];\n }\n\n return retStr;\n }",
"private static String m2627a(String str, Object... objArr) {\n return String.format(Locale.ENGLISH, str, objArr);\n }"
] | [
"0.64940256",
"0.6478611",
"0.63456255",
"0.6322211",
"0.625692",
"0.62547874",
"0.61514825",
"0.6123989",
"0.60833603",
"0.58831817",
"0.580581",
"0.579534",
"0.5782368",
"0.5715675",
"0.5674481",
"0.56689847",
"0.56241035",
"0.5606291",
"0.55817753",
"0.5577534",
"0.5546521",
"0.5519576",
"0.5506838",
"0.5488981",
"0.54673",
"0.5440574",
"0.5439547",
"0.5437892",
"0.54363",
"0.543558",
"0.5428751",
"0.54097897",
"0.5389982",
"0.53749466",
"0.53628814",
"0.5362742",
"0.5341388",
"0.53190744",
"0.5316618",
"0.53061956",
"0.5295206",
"0.52918315",
"0.5289555",
"0.5288839",
"0.52606076",
"0.5259961",
"0.5254266",
"0.5249807",
"0.5247166",
"0.5186575",
"0.5162634",
"0.5145809",
"0.51428586",
"0.5131676",
"0.5124501",
"0.5106922",
"0.5080923",
"0.5074376",
"0.5067612",
"0.5061882",
"0.50604516",
"0.5027969",
"0.5015981",
"0.5000356",
"0.49973002",
"0.49939823",
"0.498919",
"0.4989015",
"0.49877048",
"0.49830362",
"0.4976091",
"0.49513197",
"0.49457368",
"0.49447802",
"0.49431786",
"0.4933398",
"0.49288595",
"0.4927777",
"0.49006784",
"0.48765722",
"0.48671675",
"0.48670566",
"0.48670566",
"0.48668694",
"0.48507926",
"0.484321",
"0.48349357",
"0.4828772",
"0.48281398",
"0.48248658",
"0.4821038",
"0.4819266",
"0.48183957",
"0.4815769",
"0.48136994",
"0.48130018",
"0.48004398",
"0.4800139",
"0.47922504",
"0.4784378"
] | 0.5242706 | 49 |
Build a string from a string collection | public static String buildString(Collection<String> strings, String splitChar) {
StringBuilder combined = new StringBuilder();
for (String s : strings) {
if (combined.length() > 0) {
combined.append(splitChar);
}
combined.append(s);
}
return combined.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected final String collectionString(final Collection c) {\n assert c != null;\n String result = \"{\"; //$NON-NLS-1$\n for (Iterator i = c.iterator(); i.hasNext();) {\n Object item = i.next();\n result = result + item.getClass().getName()\n + \"@\" + item.hashCode(); //$NON-NLS-1$\n if (i.hasNext()) {\n result = result + \", \"; //$NON-NLS-1$\n }\n }\n result = result + \"}\"; //$NON-NLS-1$\n return result;\n }",
"private String collectionToString(Collection<String> terms) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"(\");\n\t\tint counter = 0;\n\t\tfor (String term : terms) {\n\t\t\t// Escape single quotes\n\t\t\tterm = term.replace(\"'\", \"''\");\n\t\t\tbuilder.append(\"'\" + term + \"'\");\n\t\t\tif (counter < terms.size() - 1) {\n\t\t\t\tbuilder.append(\",\");\n\t\t\t}\n\t\t\tcounter++;\n\t\t}\n\t\tbuilder.append(\")\");\n\t\treturn builder.toString();\n\t}",
"private String collectionToString(Collection<String> terms) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append(\"(\");\n\t\t\t\t\n\t\tint counter = 0;\n\t\tfor (String term : terms) {\n\t\t\tif (term != null) {\n\t\t\t\tif (counter > 0) {\n\t\t\t\t\tbuilder.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Escape single quotes\n\t\t\t\tterm = term.replace(\"'\", \"''\");\n\t\t\t\tbuilder.append(\"'\" + term + \"'\");\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\tbuilder.append(\")\");\n\t\treturn builder.toString();\n\t}",
"public static String join(Collection<String> collection) {\n\t\treturn join(collection, \"\");\n\t}",
"public String stringJoin(Collection<? extends CharSequence> strings) {\n return EasonString.join(strings);\n }",
"public static String formStringOfTags(ArrayList<String> tags) {\n String stringOfTags = \"\";\n\n for (int i = 0; i < tags.size(); i++) {\n stringOfTags += tags.get(i);\n if (i < tags.size() - 1) {\n stringOfTags += \" | \";\n }\n }\n return stringOfTags;\n }",
"public static String join(Collection<String> collection, String join) {\n\t\tString r = \"\";\n\t\tboolean first = true;\n\t\t\n\t\tfor (String e : collection) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t\tr = e;\n\t\t\t} else {\n\t\t\t\tr += join + e;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn r;\n\t}",
"public static String commaDelimitedStringFromCollection(final Collection<?> set) {\n\t\treturn delimitedStringFromCollection(set, \",\");\n\t}",
"public static <T> Collection<String> toString(Collection<T> collection) {\n\t\tCollection<String> strings = new ArrayList<String>();\n\t\tfor (T item : collection)\n\t\t\tstrings.add(item.toString());\n\t\treturn strings;\n\t}",
"public static <E> String concatElements(Collection<E> collection) {\n return concatElements(collection, EMPTY);\n }",
"public static <T> String createDelimitedString(Collection<T> collection, String delimiter) {\n\t\tif (collection == null)\n\t\t\treturn null;\n\t\tif (collection.isEmpty())\n\t\t\treturn \"\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (T element : collection) {\n\t\t\tsb.append(element.toString());\n\t\t\tsb.append(delimiter);\n\t\t}\n\t\treturn StringUtil.removeSuffix(sb.toString(), delimiter);\n\t}",
"ListString createListString();",
"public static String join(Collection<?> s, String delimiter) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tIterator<?> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuffer.append(iter.next());\n\t\t\tif (iter.hasNext())\n\t\t\t\tbuffer.append(delimiter);\n\t\t}\n\t\treturn buffer.toString();\n\t}",
"public static <T> String toString(T[] collection) {\n return toString(Arrays.asList(collection));\n }",
"private static <T> String join(final Collection<T> s, final String delimiter) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tIterator<T> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuilder.append(iter.next());\n\t\t\tif (!iter.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }",
"private <T> String populateInClause(Collection<T> elements) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"(\");\n for (Iterator<T> it = elements.iterator(); it.hasNext();) {\n sb.append(it.next());\n if (it.hasNext()) { sb.append(\", \"); }\n }\n sb.append(\")\");\n return sb.toString();\n }",
"public static String makeStringFromList(ArrayList<String> L) {\r\n String result = \"\";\r\n for(int i = 0; i < L.size(); i++) {\r\n result += L.get(i);\r\n }\r\n return result;\r\n }",
"CollectionLiteralExp createCollectionLiteralExp();",
"public static <E> String concatElements(Collection<E> collection, Function<E, String> mapper) {\n return concatElements(collection, mapper, EMPTY);\n }",
"public String stringJoin(Collection<? extends CharSequence> strings, CharSequence delimiter) {\n return EasonString.join(strings, delimiter);\n }",
"public static <T> String toString(Iterable<T> collection) {\n return toString(collection.iterator());\n }",
"protected abstract Set<String> _addToSet(String key, Collection<String> str);",
"public static <E> String concatElements(Collection<E> collection, String joinText) {\n return concatElements(collection, Object::toString, joinText);\n }",
"public static String collectionToCommaSeparatedString(Collection<String> elementCollection) {\n return String.join(\",\", elementCollection);\n }",
"public CollectionFacadeSet(java.util.Collection<java.lang.String> collection) {\n this.collection = collection;\n for (String str : collection) {\n if (contains(str) || str == null) {\n continue;\n }\n add(str);\n }\n }",
"public Builder setCollection(\n java.lang.String value) {\n copyOnWrite();\n instance.setCollection(value);\n return this;\n }",
"private String constructAuthorsString (List<Author> authors) {\n \tif (authors == null || authors.isEmpty()) {\n \t\treturn \"\";\n \t}\n \t\n \tStringBuilder builder = new StringBuilder();\n \tif (authors.size() > 1) {\n \t\tfor (int i = 0; i < authors.size() - 1; i++) {\n \t\tbuilder.append(authors.get(i).getName());\n \t\tbuilder.append(STRING_SEPARATOR);\n \t}\n \t}\n\t\tbuilder.append(authors.get(authors.size() - 1).getName());\n \treturn builder.toString();\n }",
"String buildFrom(T t);",
"public static String buildString(List<String> strings, String splitChar, String finalSplitChar) {\n StringBuilder combined = new StringBuilder();\n //Length of the list of strings\n int nrOfStrings = strings.size();\n //Loop through strings\n for (int i = 0; i < nrOfStrings; i++) {\n if (i == (nrOfStrings - 1) && i != 0) { //Last one, add the finalSplitChar\n combined.append(finalSplitChar);\n } else if (i > 0) { //If not the first nor the last, add the splitChar\n combined.append(splitChar);\n }\n combined.append(strings.get(i)); //Add the String\n }\n return combined.toString();\n }",
"static public Collection<String> convertCollection(Collection<Language> langs) {\r\n\t\tCollection<String> stringCollection = new ArrayList<>();\r\n\r\n\t\tfor (Language l : langs) {\r\n\t\t\tstringCollection.add(l.getName());\r\n\t\t}\r\n\r\n\t\treturn stringCollection;\r\n\t}",
"String getStringList();",
"public static <E> String concatElements(Collection<E> collection, Function<E, String> mapper, String joinText) {\n return concatElements(EMPTY, collection, (t) -> true, mapper, joinText, EMPTY);\n }",
"public static String implode(Collection<? extends Object> parts, String separator) {\r\n\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\tfor (Object part : parts) {\r\n\t\t\t\tbuilder.append(separator + part);\r\n\t\t\t}\r\n\r\n\t\t\tif (builder.length() > separator.length()) {\r\n\t\t\t\treturn builder.substring(separator.length());\r\n\t\t\t}\r\n\r\n\t\t\treturn builder.toString();\r\n\t\t}",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"public static void main(String[] args) {\n Set<String>list=new LinkedHashSet<>();\n list.add(\"Work\");\n list.add(\" smart\");\n list.add(\" not\");\n list.add(\" hard\");\n\n String str2=\"\";\n\n for(String str:list){\n str2+=str;\n }\n System.out.println(str2);\n }",
"public static PropertyDescriptionBuilder<Set<String>> setOfStringsProperty(String name) {\n // Trick to work-around type erasure\n // https://stackoverflow.com/a/30754982/2535153\n @SuppressWarnings(\"unchecked\")\n Class<Set<String>> clazz = (Class<Set<String>>)(Class<?>)Set.class;\n return PropertyDescriptionBuilder.start(name, clazz, Parsers.parseSet(Parsers::parseString));\n }",
"protected String createEmailString(Set emails) {\n StringBuffer commaDelimitedString = new StringBuffer();\n Iterator emailIterator = emails.iterator();\n \n while (emailIterator.hasNext()) {\n String mappedUser = (String) emailIterator.next();\n // append default suffix if need to\n if (mappedUser.indexOf(\"@\") < 0) {\n mappedUser += defaultSuffix;\n }\n \n commaDelimitedString.append(mappedUser);\n if (emailIterator.hasNext()) {\n commaDelimitedString.append(\",\");\n }\n } \n \n LOG.debug(\"List of emails: \" + commaDelimitedString);\n \n return commaDelimitedString.toString();\n }",
"<C> CollectionLiteralExp<C> createCollectionLiteralExp();",
"public void genericStringArray() {\n\t\tArrayList<String> b1 = new ArrayList<String>();\n\t\tb1.add(\"ABC\");\n\t\tb1.add(\"sdfsdfs\");\n\t\tSystem.out.println(\"String generic ArrayList b1: \" + b1);\n\n\t}",
"public static String buildCommaSeperatedValues(ArrayList input) throws Exception{\r\n\t\tString retString = \"\";\r\n\t\tif(input != null){\r\n\t\tfor(int i=0; i<input.size(); i++){\r\n\t\t\tretString = retString + \",\" +input.get(i);\r\n\t\t}\r\n\t\tretString = retString.substring(1);\r\n\t\t}\r\n\t\treturn retString;\t\t\r\n\t}",
"public static String join(Iterable<String> strings) {\n StringBuilder builder = new StringBuilder();\n for (String s : strings) {\n builder.append(s).append(\", \");\n }\n String result = builder.toString();\n return result.substring(1, result.length() - 2);\n }",
"public static String buildString(String[] split, String splitChar, int begin, int end) {\n StringBuilder combined = new StringBuilder();\n while (begin <= end && begin < split.length) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(split[begin]);\n begin++;\n }\n return combined.toString();\n }",
"public StringSetFieldBuilder value(final String... value) {\n this.value = new ArrayList<>(Arrays.asList(value));\n return this;\n }",
"private String buildTagString(ArrayList<String> tagList) {\n String tags = \"\";\n\n for (int i = 0; i < tagList.size(); i++) {\n tags += tagList.get(i);\n\n if (i != tagList.size() - 1)\n tags += \", \";\n }\n\n return tags;\n }",
"public static <T> String join(char delim, Iterable<T> parts, Function<T, String> stringConvert) {\n StringBuilder sb = new StringBuilder(256);\n for (Iterator<T> it = parts.iterator(); it.hasNext();) {\n String sv = stringConvert.apply(it.next());\n if (sv != null && !sv.isEmpty()) {\n if (sb.length() > 0) {\n sb.append(delim);\n }\n sb.append(sv);\n }\n }\n return sb.toString();\n }",
"public static String joinSorted(Collection elements)\n {\n if (elements == null || elements.isEmpty())\n return \"(none)\";\n \n List<String> list = CollectionFactory.newList();\n \n for (Object o : elements)\n list.add(String.valueOf(o));\n \n Collections.sort(list);\n \n return join(list);\n }",
"public static String buildString(String[] split, String splitChar, int begin) {\n return buildString(split, splitChar, begin, Integer.MAX_VALUE);\n }",
"private static String list(Iterable iterable, String initialString, String delimiter) {\n Iterator iterator = iterable.iterator();\n if (!iterator.hasNext()) return \"\"; // empty?\n StringBuilder buffer = new StringBuilder(initialString + iterator.next().toString());\n while (iterator.hasNext()) buffer.append(delimiter).append(iterator.next().toString());\n return buffer.toString();\n }",
"StringList createStringList();",
"public static Value makeStringsAndSymbols(Collection<PKey> properties) {\n Value rSymb = new Value(join(properties.stream().map(PKey::toValue).collect(Collectors.toSet())));\n Value rStr = makeStrings(properties.stream().filter(x -> x instanceof PKey.StringPKey).map(x -> ((PKey.StringPKey) x).getStr()).collect(Collectors.toList()));\n return rSymb.join(rStr);\n }",
"private static String formatStrings(Set<String> strings) {\n\t\tif (strings != null && !strings.isEmpty()) {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\n\t\t\tfor (String str : strings) {\n\t\t\t\tsb.append(':').append(escape(str, \"=;:\"));\n\t\t\t}\n\n\t\t\treturn sb.substring(1);\n\t\t}\n\t\telse {\n\t\t\treturn \"\";\n\t\t}\n\t}",
"public MultiStringColl() {\n c = null;\n how_many = 0;\n }",
"String first(String collection);",
"public static String joinStrings(String[] a){\n String js=\"\";\n for (int i=0;i<a.length;i++){\n if (i==0){\n js = a[i];\n } else{\n js = js + \" \" + a[i];\n }\n }\n return js;\n }",
"public static String serializeListString(List<String> s) {\r\n System.out.println(\"EncodeJSON - method serializeListString\" + s);\r\n return gson.toJson(s);\r\n }",
"public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}",
"static String join(CharSequence separator, String[] strings) {\n\t\t// Ideally we don't have to duplicate the code here if array is\n\t\t// iterable.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public String toString(String sp){\n StringBuffer sb=new StringBuffer();\n \n for(int i=0;i<items.size();i++){\n if(i==0)\n sb.append(items.get(i));\n else{\n sb.append(sp);\n sb.append(items.get(i));\n }\n }\n return sb.toString();\n\n }",
"public static String convertArrayListIntoString (ArrayList inputList){\n\n // convert exercisesList to string\n String resultString = \"(\";\n for (int i = 0; i < inputList.size(); i ++) {\n if (i != inputList.size() - 1) {\n resultString = resultString + inputList.get(i) + \", \";\n } else {\n resultString = resultString + inputList.get(i) + \")\";\n }\n }\n\n return resultString;\n }",
"public static String combineStrings(String... strings) {\n if(CMAppGlobals.DEBUG)Logger.i(TAG, \":: StringHelper.combineStrings \");\n\n StringBuilder stringBuilder = new StringBuilder();\n if(strings != null && strings.length > 0) {\n for (String itemString :\n strings) {\n stringBuilder.append(itemString);\n }\n }\n\n return stringBuilder.toString();\n\n }",
"java.lang.String getCollection();",
"public String buildOutputFromCollection(Collection<ShippingOrder> orders){\r\n if (orders != null) {\r\n StringBuilder result = new StringBuilder();\r\n for (ShippingOrder order : orders) {\r\n result.append(order.toString() + \"\\n\");\r\n }\r\n return result.toString();\r\n } else {\r\n return null;\r\n }\r\n }",
"public Builder addAllStrValues(\n java.lang.Iterable<java.lang.String> values) {\n ensureStrValuesIsMutable();\n super.addAll(values, strValues_);\n onChanged();\n return this;\n }",
"public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }",
"private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }",
"private void convertString(AssignStatContext c, List<String> ssa) {\n\t\tString content = c.StringLiteral().getText();\n\t\tcontent = content.substring(1, content.length() - 1);\n\t\tString id = c.ID().getText();\n\t\tString newId = this.generateNewName(id);\n\t\tStringRepresentation rep = new StringRepresentation(newId, content);\n\t\tssa.addAll(rep.getConstraints());\n\t\t\n\t}",
"InternationalString createInternationalString(Map<Locale,String> strings);",
"public String listToString(ArrayList<Character> sequence) {\n \tchar[] cs = new char[sequence.size()];\n \tfor(int i = 0; i < cs.length; i++) {\n \t\tcs[i] = sequence.get(i);\n \t}\n \treturn new String(cs);\n }",
"private String buildUrlQueryString(final Collection<String> parameters) {\n\n // List to hold the encoded parameters\n final List<String> encodedParameters = new ArrayList<String>();\n\n for (final String parameter : parameters) {\n\n // Step #1 - break apart the parameter-pairs (because we don't want\n // to encode the \"=\" character)\n final String[] splitParameters = parameter.split(\"=\");\n\n // List to hold each individually encoded parameter item\n final List<String> encodedItems = new ArrayList<String>();\n for (final String item : splitParameters) {\n try {\n // Step #2 - encode each individual parameter item add the\n // encoded item to its corresponding list\n\n encodedItems.add(encodeValue(item));\n\n } catch (final Exception e) {\n // do nothing\n // because we are \"hard-coding\" the encoding type, there is\n // a 0% chance that this will fail.\n }\n\n }\n\n // Step #3 - reunite the previously separated parameter items and\n // add them to the corresponding list\n encodedParameters.add(StringUtils.join(encodedItems, \"=\"));\n }\n\n return StringUtils.join(encodedParameters, \"&\");\n }",
"private String generateString() {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\r\n\t\twhile (currentIndex < expression.length\r\n\t\t\t\t&& (Character.isLetterOrDigit(expression[currentIndex]) || expression[currentIndex] == '_')) {\r\n\t\t\tsb.append(expression[currentIndex]);\r\n\t\t\tcurrentIndex++;\r\n\t\t}\r\n\r\n\t\treturn sb.toString().toLowerCase();\r\n\t}",
"public StringSetFieldBuilder value(final java.util.List<String> value) {\n this.value = value;\n return this;\n }",
"private static void subBuild(String string, StringBuilder builder) {\r\n\t\tbuilder.append(\"[\");\r\n\t\tbuilder.append(string);\r\n\t\tbuilder.append(\"] \");\r\n\t}",
"public static Collection valueOf(String next) {\n\t\treturn null;\n\t}",
"public String encode(List<String> strs) {\n String res = \"\";\n for(String s : strs)\n {\n int len = s.length();\n res += len + \"/\" + s;\n }\n return res;\n }",
"public String encode(List<String> strs) {\n StringBuilder b = new StringBuilder();\n for (String s : strs) {\n b.append(s.length()).append(\"#\").append(s);\n }\n return b.toString();\n }",
"private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsBuffer.toString().substring(0, idsBuffer.length() - 1);\n }",
"public String encode(List<String> strs) {\n StringBuilder sb = new StringBuilder();\n for(String str : strs){\n \tsb.append(str.length());\n \t sb.append(\"[\");\n sb.append(str);\n sb.append(\"]\");\n }\n return sb.toString();\n }",
"protected static void usingACollector() {\n String string = Stream.of(\"this\", \"is\", \"a\", \"list\")\n .collect(() -> new StringBuilder(), // result Supplier\n (sb, str) -> sb.append(str), // add a single value to the result\n (sb1, sb2) -> sb1.append(sb2)) // combine two results\n .toString();\n\n // Using method reference\n string = Stream.of(\"this\", \"is\", \"a\", \"list\")\n .collect(StringBuilder::new, // result Supplier\n StringBuilder::append, // add a single value to the result\n StringBuilder::append) // combine two results\n .toString();\n\n // Using joining method\n string = Stream.of(\"this\", \"is\", \"a\", \"list\").collect(Collectors.joining());\n }",
"public static <E> String concatElementsSkipNulls(Collection<E> collection) {\n return concatElementsSkipNulls(collection, EMPTY);\n }",
"public String build();",
"public String build();",
"public StringSetFieldBuilder plusValue(final String... value) {\n if (this.value == null) {\n this.value = new ArrayList<>();\n }\n this.value.addAll(Arrays.asList(value));\n return this;\n }",
"public static <E> String concatElements(String textPrefix, Collection<E> collection,\n String joinText, String textSuffix) {\n return concatElements(textPrefix, collection, (t) -> true, Objects::toString, joinText, textSuffix);\n }",
"public static\n\tString anyOf(Iterable<String> strings)\n\t{\n\t\tboolean first=true;\n\t\tStringBuffer sb=new StringBuffer(\"(\");\n\t\tfor (String str : strings)\n\t\t{\n\t\t\tif (!first)\n\t\t\t{\n\t\t\t\tsb.append('|');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfirst=false;\n\t\t\t}\n\t\t\tsb.append(Pattern.quote(str));\n\t\t}\n\t\tsb.append(')');\n\t\treturn sb.toString();\n\t}",
"public static String toString(final Collection<?> objs) {\r\n\t\treturn objs != null ? toString(objs.toArray()) : toString(new Object[]{});\r\n\t}",
"public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }",
"private String joinNameList(List<String> names) {\n String bldr;\n\n if ( names != null ) {\n bldr = uniquifyNames(names)\n .stream()\n .collect(Collectors.joining(\"','\"));\n }\n else {\n throw new IllegalArgumentException( \"Null name list not allowed.\" );\n }\n\n return bldr;\n }",
"private String constructCategoryFilterString(\n Collection<Integer> predefinedCategories, Collection<String> customIncludedCategories) {\n HashSet<String> categoriesSet = new HashSet<String>();\n for (int predefinedCategoriesIndex : predefinedCategories) {\n categoriesSet.addAll(PREDEFINED_CATEGORIES_LIST.get(predefinedCategoriesIndex));\n }\n for (String categoryPattern : customIncludedCategories) {\n if (isValidPattern(categoryPattern)) {\n categoriesSet.add(categoryPattern);\n } else {\n throw new IllegalArgumentException(\n \"category patterns starting with '-' or containing ',' are not allowed\");\n }\n }\n if (categoriesSet.isEmpty()) {\n // when no categories are specified -- exclude everything\n categoriesSet.add(\"-*\");\n }\n return TextUtils.join(\",\", categoriesSet);\n }",
"public static String timesToString(Collection<Long> startTimes) {\n\t\tif (startTimes == null || startTimes.size() == 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tCompacter starttimesCompressor = new Compacter(startTimes.size());\n\t\tfor (Long l : startTimes) {\n\t\t\tstarttimesCompressor.appendData(l.toString());\n\t\t}\n\t\treturn starttimesCompressor.compact();\n\t}",
"private static final String toString(\r\n Set<MappableItem> mappableItemSet,\r\n Object object\r\n )\r\n {\r\n if(object.getClass().isArray()) {\r\n StringBuilder sb = new StringBuilder();\r\n Object[] array = (Object[])object;\r\n boolean first = true;\r\n Object[] arr$ = array;\r\n int len$ = arr$.length;\r\n\r\n for(int i$ = 0; i$ < len$; i$++) {\r\n Object o = arr$[i$];\r\n\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n sb.append( toString(mappableItemSet, o) );\r\n }\r\n\r\n return (new StringBuilder())\r\n .append('[')\r\n .append(sb)\r\n .append(']')\r\n .toString();\r\n }\r\n\r\n if(mappableItemSet.contains(MappableItem.DO_ITERATOR)) {\r\n if(object instanceof java.util.Iterator) {\r\n Iterator<?> iter = (Iterator<?>)object;\r\n StringBuilder sb = new StringBuilder();\r\n boolean first = true;\r\n\r\n for(; iter.hasNext(); sb.append(toString(mappableItemSet, iter.next()))) {\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n }\r\n\r\n return (new StringBuilder())\r\n .append(\"Iterator[\")\r\n .append(sb)\r\n .append(']')\r\n .toString();\r\n }\r\n }\r\n else if(mappableItemSet.contains(MappableItem.DO_ENUMERATION) && (object instanceof java.util.Enumeration)) {\r\n Enumeration<?> enum0 = (Enumeration<?>)object;\r\n StringBuilder sb = new StringBuilder();\r\n boolean first = true;\r\n\r\n for(; enum0.hasMoreElements(); sb.append( toString(mappableItemSet, enum0.nextElement()))) {\r\n if(first) {\r\n first = false;\r\n }\r\n else {\r\n sb.append(',');\r\n }\r\n }\r\n\r\n return (new StringBuilder())\r\n .append(\"Enumeration[\")\r\n .append(sb.toString())\r\n .append(']')\r\n .toString();\r\n }\r\n\r\n return object.toString();\r\n }",
"private String commaDelimited(String strs[]) {\n StringBuffer sb = new StringBuffer();\n if (strs.length > 0) {\n sb.append(Utils.encToURL(strs[0]));\n for (int i=1;i<strs.length;i++) sb.append(\",\" + Utils.encToURL(strs[i]));\n }\n return sb.toString();\n }",
"public StringBag(){\n\n list = new ArrayList();\n\n\t}",
"public Builder addStrValues(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureStrValuesIsMutable();\n strValues_.add(value);\n onChanged();\n return this;\n }",
"public static String implode ( final String glue, final String[] pieces )\n {\n final StringBuilder sb;\n\n if (null == glue || null == pieces) return null;\n if (pieces.length == 0) return \"\";\n\n sb = new StringBuilder();\n for (final String s : pieces) sb.append(s).append(glue);\n return sb.toString().substring(0, sb.length() - glue.length());\n }",
"@Test\n public void test_range_String_Collection1() {\n populate_s1();\n Collection<String> actual = Selector.range(s1, \"B\", \"C\", new CompareStringAscending());\n Collection<String> expected = new ArrayList<String>();\n expected.add(\"B\");\n expected.add(\"C\");\n Assert.assertEquals(\"Did not find range correctly\", expected, actual);\n }",
"public static String constructFilterFromListValue(String filterItem,\r\n\t\t\tString[] listString, String operator) {\r\n\t\tString result = \"\";\r\n\t\tresult = filterItem + \"=\" + listString[0] + \" \";\r\n\t\tfor (int i = 1; i < listString.length; i++) {\r\n\t\t\tresult += operator + \" \" + filterItem + \"=\" + listString[i] + \" \";\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"private void setCollection(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n collection_ = value;\n }",
"public static <E> String concatElements(String textPrefix, Collection<E> collection, Function<E, String> mapper,\n String joinText, String textSuffix) {\n return concatElements(textPrefix, collection, (e) -> true, mapper, joinText, textSuffix);\n }",
"abstract CharArraySet build();"
] | [
"0.63792354",
"0.63014597",
"0.6278262",
"0.624085",
"0.61677784",
"0.58476436",
"0.58251286",
"0.58024764",
"0.58000916",
"0.5781576",
"0.5731483",
"0.57030725",
"0.5613173",
"0.5563825",
"0.55169874",
"0.5503219",
"0.54818064",
"0.5466658",
"0.54424816",
"0.5425062",
"0.5405466",
"0.53347397",
"0.5262594",
"0.52553123",
"0.5252046",
"0.5216402",
"0.5215265",
"0.52060986",
"0.51657695",
"0.5146764",
"0.51304555",
"0.51059777",
"0.5096084",
"0.50911134",
"0.5034015",
"0.5021119",
"0.50204724",
"0.50069284",
"0.50051516",
"0.49991873",
"0.49634355",
"0.49617818",
"0.49609074",
"0.49604374",
"0.49546322",
"0.49416903",
"0.49410647",
"0.49404022",
"0.4926307",
"0.49250743",
"0.49219722",
"0.49187133",
"0.48853686",
"0.4882879",
"0.48815086",
"0.4863106",
"0.48628345",
"0.48605534",
"0.4857653",
"0.48543495",
"0.4852021",
"0.4843554",
"0.4840376",
"0.4838082",
"0.4820813",
"0.48125878",
"0.4805302",
"0.47993383",
"0.47896135",
"0.47729295",
"0.4771747",
"0.4771205",
"0.4762317",
"0.47575098",
"0.47568595",
"0.4755891",
"0.47556922",
"0.47544658",
"0.47516835",
"0.4746849",
"0.47401282",
"0.47401282",
"0.47297758",
"0.47289187",
"0.47163776",
"0.470104",
"0.46955994",
"0.46941307",
"0.469401",
"0.46786854",
"0.46746495",
"0.46673894",
"0.46616855",
"0.4657904",
"0.46420103",
"0.4634314",
"0.46200714",
"0.46175322",
"0.4614124",
"0.4612548"
] | 0.6596235 | 0 |
Build a string from a List of strings This one can be used if there last splitChar should be different. Example: buildString(list, ", ", " and "); Will return: "One, Two, Three and Four" | public static String buildString(List<String> strings, String splitChar, String finalSplitChar) {
StringBuilder combined = new StringBuilder();
//Length of the list of strings
int nrOfStrings = strings.size();
//Loop through strings
for (int i = 0; i < nrOfStrings; i++) {
if (i == (nrOfStrings - 1) && i != 0) { //Last one, add the finalSplitChar
combined.append(finalSplitChar);
} else if (i > 0) { //If not the first nor the last, add the splitChar
combined.append(splitChar);
}
combined.append(strings.get(i)); //Add the String
}
return combined.toString();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static String buildString(Collection<String> strings, String splitChar) {\n StringBuilder combined = new StringBuilder();\n for (String s : strings) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(s);\n }\n return combined.toString();\n }",
"public static String joinList(List<String> list) {\r\n //could use String.join or Stream but I found this approach to consistantly be 150-500ns faster\r\n StringBuilder sb = new StringBuilder(list.size());\r\n for (int z = 0; z < list.size() - 1; z++) {\r\n sb.append(list.get(z));\r\n sb.append(',').append(' ');\r\n }\r\n sb.append(list.get(list.size() - 1));\r\n return sb.toString();\r\n }",
"public static String buildString(String[] split, String splitChar, int begin, int end) {\n StringBuilder combined = new StringBuilder();\n while (begin <= end && begin < split.length) {\n if (combined.length() > 0) {\n combined.append(splitChar);\n }\n combined.append(split[begin]);\n begin++;\n }\n return combined.toString();\n }",
"private String buildTagString(ArrayList<String> tagList) {\n String tags = \"\";\n\n for (int i = 0; i < tagList.size(); i++) {\n tags += tagList.get(i);\n\n if (i != tagList.size() - 1)\n tags += \", \";\n }\n\n return tags;\n }",
"public static String concat(List<String> list, String seperator) {\n StringBuilder builder = new StringBuilder();\n\n for (String elem : list) {\n builder.append(elem);\n builder.append(seperator);\n }\n\n if (builder.length() > 0)\n builder.delete(builder.length() - seperator.length(), builder.length());\n\n return builder.toString();\n }",
"public static String makeStringFromList(ArrayList<String> L) {\r\n String result = \"\";\r\n for(int i = 0; i < L.size(); i++) {\r\n result += L.get(i);\r\n }\r\n return result;\r\n }",
"public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }",
"public static String join(List<String> strings) {\n\t\tString result = \"\";\n\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (!first)\n\t\t\t\tresult += \", \";\n\n\t\t\tresult += s;\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn result;\n\t}",
"public static String join(List elements, String separator)\n {\n switch (elements.size())\n {\n case 0:\n return \"\";\n \n case 1:\n return String.valueOf(elements.get(0));\n \n default:\n \n StringBuilder buffer = new StringBuilder();\n boolean first = true;\n \n for (Object o : elements)\n {\n if (!first)\n buffer.append(separator);\n \n String string = String.valueOf(o);\n \n if (string.equals(\"\"))\n string = \"(blank)\";\n \n buffer.append(string);\n \n first = false;\n }\n \n return buffer.toString();\n }\n }",
"private String convertListToCommaDelimitedString(List<String> list) {\n\n\t\tString result = \"\";\n\t\tif (list != null) {\n\t\t\tresult = StringUtils.arrayToCommaDelimitedString(list.toArray());\n\t\t}\n\t\treturn result;\n\n\t}",
"public static String buildString(String[] split, String splitChar, int begin) {\n return buildString(split, splitChar, begin, Integer.MAX_VALUE);\n }",
"public static String getAsString(List<String> words, String delimiter) {\n /*StringBuilder result = new StringBuilder();\n for(int i = 0; i < words.size() - 1; i++) {\n result.append(words.get(i)).append(delimiter);\n }\n result.append(words.get(words.size() - 1));\n return result.toString();*/\n return ListArrayUtil.listToString(words, delimiter, \"\", \"\");\n }",
"public static String buildCommaSeperatedValues(ArrayList input) throws Exception{\r\n\t\tString retString = \"\";\r\n\t\tif(input != null){\r\n\t\tfor(int i=0; i<input.size(); i++){\r\n\t\t\tretString = retString + \",\" +input.get(i);\r\n\t\t}\r\n\t\tretString = retString.substring(1);\r\n\t\t}\r\n\t\treturn retString;\t\t\r\n\t}",
"private String joinNameList(List<String> names) {\n String bldr;\n\n if ( names != null ) {\n bldr = uniquifyNames(names)\n .stream()\n .collect(Collectors.joining(\"','\"));\n }\n else {\n throw new IllegalArgumentException( \"Null name list not allowed.\" );\n }\n\n return bldr;\n }",
"public static String toCommaSeparatedValues(final List<String> list) {\n if (list == null || list.isEmpty()) {\n return \"\";\n }\n final int listSize = list.size();\n final StringBuilder builder = new StringBuilder();\n for (int i=0; i<listSize; i++) {\n if (i>0) {\n builder.append(',');\n }\n builder.append(list.get(i));\n }\n return builder.toString();\n }",
"public String nameString(ArrayList<String> nameList) {\n String nameStore = nameList.get(0) + \", \";\n for (int i = 1; i < nameList.size(); i++) {\n if (i == nameList.size() - 1) {\n nameStore += nameList.get(i);\n } else {\n nameStore += nameList.get(i) + \", \";\n }\n }\n return nameStore;\n }",
"public static String listToSeparatedString(List<String> list, char separator) {\n return String.join(Character.toString(separator), list);\n }",
"public String listToString(List<String> list) {\n return TextUtils.join(\", \", list);\n }",
"private String constructList(String[] elements) throws UnsupportedEncodingException {\n if (null == elements || 0 == elements.length)\n return null;\n StringBuffer elementList = new StringBuffer();\n\n for (int i = 0; i < elements.length; i++) {\n if (0 < i)\n elementList.append(\",\");\n elementList.append(elements[i]);\n }\n return elementList.toString();\n }",
"public static String join(List<String> s, String delimiter) {\n if (s.isEmpty()) return \"\";\n Iterator<String> iter = s.iterator();\n StringBuffer buffer = new StringBuffer(iter.next());\n while (iter.hasNext())\n buffer.append(delimiter).append(iter.next());\n return buffer.toString();\n }",
"public static String join(List elements)\n {\n return InternalCommonsUtils.join(elements, \", \");\n }",
"public static void stringsJoining() {\n\n StringJoiner joiner = new StringJoiner(\" \", \"{\", \"}\");\n String result = joiner.add(\"Dorota\").add(\"is\").add(\"ill\").add(\"and\").add(\"stays\").add(\"home\").toString();\n System.out.println(result);\n }",
"ListString createListString();",
"public static String join(Iterable<String> strings) {\n StringBuilder builder = new StringBuilder();\n for (String s : strings) {\n builder.append(s).append(\", \");\n }\n String result = builder.toString();\n return result.substring(1, result.length() - 2);\n }",
"public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }",
"public String join(String conjunction, Iterable<String> list) {\n\t\treturn join(conjunction, list.iterator());\n\t}",
"public static String debugString(List<String> stringList) {\n StringBuilder result = new StringBuilder(\"[\");\n Iterator<String> listIter = stringList.iterator();\n if (listIter.hasNext()) {\n result.append('\"'); // Opening quote for the first string\n result.append(listIter.next());\n while (listIter.hasNext()) {\n result.append(\"\\\", \\\"\");\n result.append(listIter.next());\n }\n result.append('\"'); // Closing quote for the last string\n }\n result.append(']');\n return result.toString();\n }",
"public static String formStringOfTags(ArrayList<String> tags) {\n String stringOfTags = \"\";\n\n for (int i = 0; i < tags.size(); i++) {\n stringOfTags += tags.get(i);\n if (i < tags.size() - 1) {\n stringOfTags += \" | \";\n }\n }\n return stringOfTags;\n }",
"public static String getAsList(final List<String> strings) {\n final StringBuilder sb = new StringBuilder();\n\n if (strings.size() == 0) {\n return \"\";\n }\n\n if (strings.size() == 1) {\n sb.append(strings.get(0));\n } else {\n for (final String string : strings.subList(0, strings.size() - 1)) {\n sb.append(string).append(\", \");\n }\n\n sb.setLength(sb.length() - 2);\n sb.append(\" and \").append(strings.get(strings.size() - 1));\n }\n\n return sb.toString();\n }",
"private String constructAuthorsString (List<Author> authors) {\n \tif (authors == null || authors.isEmpty()) {\n \t\treturn \"\";\n \t}\n \t\n \tStringBuilder builder = new StringBuilder();\n \tif (authors.size() > 1) {\n \t\tfor (int i = 0; i < authors.size() - 1; i++) {\n \t\tbuilder.append(authors.get(i).getName());\n \t\tbuilder.append(STRING_SEPARATOR);\n \t}\n \t}\n\t\tbuilder.append(authors.get(authors.size() - 1).getName());\n \treturn builder.toString();\n }",
"public static String convertArrayListIntoString (ArrayList inputList){\n\n // convert exercisesList to string\n String resultString = \"(\";\n for (int i = 0; i < inputList.size(); i ++) {\n if (i != inputList.size() - 1) {\n resultString = resultString + inputList.get(i) + \", \";\n } else {\n resultString = resultString + inputList.get(i) + \")\";\n }\n }\n\n return resultString;\n }",
"private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }",
"public static String stringJoin(CharSequence delimiter, CharSequence... args) {\n StringBuilder builder = new StringBuilder();\n boolean first = true;\n for (CharSequence cs : args) {\n if (first) {\n first = false;\n } else {\n builder.append(delimiter);\n }\n builder.append(cs);\n }\n return builder.toString();\n }",
"public String stringJoin(Collection<? extends CharSequence> strings, CharSequence delimiter) {\n return EasonString.join(strings, delimiter);\n }",
"static public String getListAsCSV(List<String> list) {\r\n\t\tStringBuffer sb = new StringBuffer();\r\n\r\n\t\tif (list != null) {\r\n\t\t\tfor (Iterator<String> i = list.iterator(); i.hasNext();) {\r\n\t\t\t\tString str = i.next();\r\n\r\n\t\t\t\t// If the string contains a slash make it appear as \\\\ in the\r\n\t\t\t\t// protocol\r\n\t\t\t\t// 1 slash in Java/regex is \\\\\\\\\r\n\t\t\t\tstr = str.replaceAll(\"\\\\\\\\\", \"\\\\\\\\\\\\\\\\\");\r\n\t\t\t\tstr = str.replaceAll(\",\", \"\\\\\\\\,\");\r\n\t\t\t\tsb.append(str);\r\n\r\n\t\t\t\tif (i.hasNext()) {\r\n\t\t\t\t\tsb.append('\\\\');\r\n\t\t\t\t\tsb.append(',');\r\n\t\t\t\t\tsb.append(\" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn sb.toString();\r\n\t}",
"public String join(String conjunction, String[] list) {\n\t\treturn join(conjunction, Arrays.asList(list));\n\t}",
"public String wordListToSimpleString(List<Word> words) {\n StringBuilder stringBuilder = new StringBuilder();\n for (Word w : words) {\n //do not include things that the tokenizer eats anyway\n if (!tokenisationDelimiters.contains(w.getWord()) && !tokenisationDelimitersPOSTags.contains(w.getPosTag())) {\n stringBuilder.append(w.getWord().replaceAll(\" \", \"_\").replaceAll(tokenisationDelimitersRegex, \"\"));\n stringBuilder.append(\"_\");\n stringBuilder.append(w.getPosTag());\n stringBuilder.append(\" \");\n }\n }\n return stringBuilder.toString();\n }",
"static String join(CharSequence separator, String[] strings) {\n\t\t// Ideally we don't have to duplicate the code here if array is\n\t\t// iterable.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"private String listToString(StringLinkedList list) {\n\t\t\n\t\tString first = list.removeLast();\n\t\tif(first == null) return \"[]\";\n\t\tString output = first + \"]\";\n\t\twhile(true) {\n\t\t\tString current = list.removeLast();\n\t\t\tif(current == null) {\n\t\t\t\treturn \"[\" + output;\n\t\t\t} else {\n\t\t\t\toutput = current + \",\" + output;\n\t\t\t}\n\t\t}\n\t}",
"public String stringJoin(Collection<? extends CharSequence> strings) {\n return EasonString.join(strings);\n }",
"public static <T> String join(char delim, Iterable<T> parts, Function<T, String> stringConvert) {\n StringBuilder sb = new StringBuilder(256);\n for (Iterator<T> it = parts.iterator(); it.hasNext();) {\n String sv = stringConvert.apply(it.next());\n if (sv != null && !sv.isEmpty()) {\n if (sb.length() > 0) {\n sb.append(delim);\n }\n sb.append(sv);\n }\n }\n return sb.toString();\n }",
"public static String join(Object[] list, String sep)\r\n {\r\n if (list == null)\r\n return null;\r\n \r\n if (sep == null)\r\n sep = \"\";\r\n \r\n StringBuffer buf = new StringBuffer();\r\n if (list.length > 0)\r\n buf.append(list[0]);\r\n \r\n for (int n = 1; n < list.length; n++)\r\n buf.append(sep).append(list[n]);\r\n \r\n return buf.toString();\r\n }",
"private static String join(String prefix, String delimiter, Iterable<?> items) {\n if (items == null) return (\"\");\n if (prefix == null) prefix = \"\";\n\n StringBuilder sb = new StringBuilder();\n int i = 0;\n for (Object x : items) {\n if (!prefix.isEmpty()) sb.append(prefix);\n sb.append(x != null ? x.toString() : x).append(delimiter);\n i++;\n }\n if (i == 0) return \"\";\n sb.delete(sb.length() - delimiter.length(), sb.length());\n\n return sb.toString();\n }",
"public static String conocidosToString(List<String> conocidos){\r\n String s = \"\"; \r\n for(int i= 0; i<conocidos.size(); i++){\r\n String c = conocidos.get(i);\r\n s = s + c + \" \";\r\n }\r\n return s;\r\n \r\n}",
"public static String constructFilterFromListValue(String filterItem,\r\n\t\t\tString[] listString, String operator) {\r\n\t\tString result = \"\";\r\n\t\tresult = filterItem + \"=\" + listString[0] + \" \";\r\n\t\tfor (int i = 1; i < listString.length; i++) {\r\n\t\t\tresult += operator + \" \" + filterItem + \"=\" + listString[i] + \" \";\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static String getFullString(String divider, String... strings) {\n String finalString = \"\";\n for (String str : strings) {\n if (!isNullOrEmpty(str)) {\n if (finalString.isEmpty()) {\n finalString += str;\n } else {\n finalString += divider + str;\n }\n }\n }\n\n return finalString;\n }",
"public static String join(String glue, String... strings) {\n StringBuilder sb = new StringBuilder();\n for (String string : strings) {\n if (sb.length() > 0 && !string.isEmpty()) {\n sb.append(glue);\n }\n sb.append(string);\n }\n return sb.toString();\n }",
"private String commaDelimited(String strs[]) {\n StringBuffer sb = new StringBuffer();\n if (strs.length > 0) {\n sb.append(Utils.encToURL(strs[0]));\n for (int i=1;i<strs.length;i++) sb.append(\",\" + Utils.encToURL(strs[i]));\n }\n return sb.toString();\n }",
"public static String joinArray(String[] strs, String splitter){\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < strs.length; i++) {\n if (i>0){\n buf.append(splitter);\n }\n buf.append(strs[i]);\n }\n return buf.toString();\n }",
"private static String listOfTokensToString(List<Token> tokenList) {\n\n StringBuilder stringBuilder = new StringBuilder();\n for (Token token : tokenList) {\n stringBuilder.append(String.format(\"%s\", token.getPattern()));\n }\n return stringBuilder.toString().trim();\n }",
"public static String formatTagString(final List<Tag> tagList) {\r\n\t\tfinal StringBuilder s = new StringBuilder(\"\");\r\n\t\tIterator<Tag> tagI = tagList.iterator();\r\n\t\twhile (tagI.hasNext())\r\n\t\t\ts.append((tagI.next().getName()) + (tagI.hasNext() ? \", \" : \"\"));\r\n\r\n\t\treturn s.toString();\r\n\t}",
"public String parameterListToString(){\n StringBuilder sb = new StringBuilder();\n for (String parameter : parameterList){\n sb.append(parameter);\n if (!parameter.equals(parameterList.get(parameterList.size() - 1))){\n sb.append(\", \");\n }\n }\n return sb.toString();\n }",
"public static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) {\n final Iterator<?> it = tokens.iterator();\n if (!it.hasNext()) {\n return \"\";\n }\n final StringBuilder sb = new StringBuilder();\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n return sb.toString();\n }",
"public static String listString(Iterable<?> list, String before, String separator, String after,\n String singletonTerminator, char quotationMark) {\n return printList(new StringBuilder(), list, before, separator, after, singletonTerminator,\n quotationMark).toString();\n }",
"public static String toCsv(List<String> list) {\r\n\t\tString res = \"\";\r\n\t\tIterator<String> it = list.iterator();\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tres += it.next();\r\n\t\t\tif (it.hasNext()) {\r\n\t\t\t\tres += \", \";\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}",
"public static String join(String delimiter, Collection<String> elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"protected String finalizarGenerateStringCamposFiltro(String listCamposFiltro){\r\n\t\t//Eliminamos la ultima coma y espacio introducidos.\r\n\t\tif(listCamposFiltro != \"\"){\r\n\t\t\tlistCamposFiltro = listCamposFiltro.substring(0, listCamposFiltro.length()-2);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tlistCamposFiltro = null; //Devolvemos null si no hay ningun filtro introducido\r\n\t\t}\r\n\r\n\t\tsetCamposFiltro(listCamposFiltro);\r\n\t\treturn listCamposFiltro;\r\n\t}",
"public static String join(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n Iterator<?> it = tokens.iterator();\n if (it.hasNext()) {\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n }\n return sb.toString();\n }",
"@Test\n\tpublic void NotExamtestListToString() {\n\t\t\n\t\tassertEquals(\"[a,b,c]\",listToString(list));\n\t\tassertEquals(\"[a,b,c,aaa,a,a,d,a]\",listToString(list2));\n\t\tassertEquals(\"[]\",listToString(empty));\n\t\tassertEquals(\"[hello]\",listToString(onlyOne));\n\n\t}",
"@SuppressWarnings(\"rawtypes\")\r\n\tpublic static String join(CharSequence delimiter, Iterable tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"public static String formatCommaString(String text){\r\n\t\tString[] arr = text.split(\",\");\r\n\t\tString result=\"\";\r\n\t\tfor(String s: arr){\r\n\t\t\tif(!\"\".equalsIgnoreCase(s.trim())){\r\n\t\t\t\tresult+=s+\",\";\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(result.endsWith(\",\")){\r\n\t\t\tresult=result.substring(0,result.length()-1);\r\n\t\t}\r\n\t\treturn result;\r\n\t}",
"public static void main(String[] args) {\n\t\tStringJoiner joiner=new StringJoiner(\" and \",\"{\",\"}\");\n\t\tjoiner.add(\"python\");\n\t\tjoiner.add(\"java\");\n\t\tjoiner.add(\"c\");\n\t\tjoiner.add(\"c++\").add(\"html\").add(\"css\").add(\"js\");\n\t\tString s=joiner.toString();\n\t\tSystem.out.println(s);\n\t\tString s1=\"asd ad ad vxczvz\";\n\t\tSystem.out.println(s1.lastIndexOf(\" \"));\n\t\tSystem.out.println(s1.substring(s1.lastIndexOf(\" \")));\n\t\t\n\t\tStringJoiner joiner1=new StringJoiner(\" and \",\"[\",\"]\");\n\t\tjoiner1.add(\"asdsa\").add(\"rgrg\").add(\"grger\");\n\t\tSystem.out.println(joiner1);\n\t\tjoiner.merge(joiner1);\n\t\tSystem.out.println(joiner);\n\t}",
"public static final String join(final String delimiter, final List<?> value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tIterator<?> it = value.iterator();\n\t\tif (!it.hasNext()) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (;;) {\n\t\t\tObject val = it.next();\n\t\t\tbuilder.append(val == null ? EMPTY_STRING : val.toString());\n\t\t\tif (!it.hasNext())\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\t}",
"public static String arrayListToCSV(List<String> list) {\n StringBuilder csv = new StringBuilder();\n for (String str : list) {\n csv.append(str);\n csv.append(\",\");\n }\n int lastIndex = csv.length() - 1;\n char last = csv.charAt(lastIndex);\n if (last == ',') {\n return csv.substring(0, lastIndex);\n }\n return csv.toString();\n }",
"public String outputString(List list) {\r\n StringWriter out = new StringWriter();\r\n try {\r\n output(list, out); // output() flushes\r\n } catch (IOException e) { }\r\n return out.toString();\r\n }",
"public static String join(String delimiter, String... elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}",
"public static String join(char delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"private String securityListToString(List<String> securityList) {\n return securityList.stream().collect(Collectors.joining(SECURITY_SEPARATOR));\n }",
"public abstract Builder zza(List<String> list);",
"private String mergeStringsLists(String string1, String string2) {\n if (string1==null || string1.isEmpty()) return string2;\n else if (string2==null || string2.isEmpty()) return string1;\n else {\n String[] elements1=string1.split(\"\\\\s*,\\\\s*\");\n String[] elements2=string2.split(\"\\\\s*,\\\\s*\");\n ArrayList<String> result=new ArrayList<String>(elements1.length);\n for (String e:elements1) result.add(e.trim());\n for (String e:elements2) if (!result.contains(e.trim())) result.add(e.trim());\n StringBuilder builder=new StringBuilder(string1.length()+string2.length());\n builder.append(result.get(0));\n for (int i=1;i<result.size();i++) {builder.append(\",\");builder.append(result.get(i));}\n return builder.toString();\n }\n }",
"public static String implode(char separator, String[] strings) {\n\t if (strings == null) return \"\";\n\t int len = -1;\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t boolean first = true;\n\t for (String string: strings) {\n\t\t if (first) first = false;\n\t\t else buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }",
"public static void exampleStringJoiner() {\n\t\tStringJoiner example1 = new StringJoiner(\",\"); // passing comma(,) as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample1.add(\"Rohini Example1\");\r\n\t\texample1.add(\"Alex Example1\");\r\n\t\texample1.add(\"Peter Example1\");\r\n\r\n\t\tSystem.out.println(\"Example 1 - passing comma(,) as delimiter ... \\n\" + example1);\r\n\t\t\r\n\t\t// Example 2 - passing comma(,) and square-brackets (adding prefix and suffix) as delimiter\r\n\t\tStringJoiner example2 = new StringJoiner(\":\", \"[\", \"]\"); // passing comma(,) and square-brackets as delimiter\r\n\r\n\t\t// Adding values to StringJoiner\r\n\t\texample2.add(\"Rohini Example2\");\r\n\t\texample2.add(\"Raheem Example2\");\r\n\t\tSystem.out.println(\"\\nExample 2 - passing comma(:) and square-brackets (adding prefix and suffix) as delimiter ... \\n\" + example2);\r\n\r\n\t\t// Example 3 - Merge Two StringJoiner\r\n\t\tStringJoiner merge = example1.merge(example2);\r\n\t\tSystem.out.println(\"\\nExample 3 - Merge Two StringJoiner ... \\n\" + merge);\r\n\t}",
"public String SerializeColToString(ArrayList<String> list){ \n if(!list.isEmpty()){\n return String.join(\", \", list); \n }\n return null; \n }",
"private static String list(Iterable iterable, String initialString, String delimiter) {\n Iterator iterator = iterable.iterator();\n if (!iterator.hasNext()) return \"\"; // empty?\n StringBuilder buffer = new StringBuilder(initialString + iterator.next().toString());\n while (iterator.hasNext()) buffer.append(delimiter).append(iterator.next().toString());\n return buffer.toString();\n }",
"private static String formStringFromList(List<Long> ids)\n {\n if (ids == null || ids.size() == 0)\n return null;\n\n StringBuilder idsBuffer = new StringBuilder();\n for (Long id : ids)\n {\n idsBuffer.append(id).append(\",\");\n }\n\n return idsBuffer.toString().substring(0, idsBuffer.length() - 1);\n }",
"public static String join(String[] strings, String separator) {\n StringBuffer sb = new StringBuffer();\n int max = strings.length;\n for (int i = 0; i < max; i++) {\n if (i != 0)\n sb.append(separator);\n sb.append(strings[i]);\n }\n return sb.toString();\n }",
"protected String createEmailString(Set emails) {\n StringBuffer commaDelimitedString = new StringBuffer();\n Iterator emailIterator = emails.iterator();\n \n while (emailIterator.hasNext()) {\n String mappedUser = (String) emailIterator.next();\n // append default suffix if need to\n if (mappedUser.indexOf(\"@\") < 0) {\n mappedUser += defaultSuffix;\n }\n \n commaDelimitedString.append(mappedUser);\n if (emailIterator.hasNext()) {\n commaDelimitedString.append(\",\");\n }\n } \n \n LOG.debug(\"List of emails: \" + commaDelimitedString);\n \n return commaDelimitedString.toString();\n }",
"public static String join(String delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }",
"static public List<String> formatString(List<String> strings)\n\t{\n\t\tList<String> new_strings = new ArrayList<String>();\n\t\tfor(String s : strings)\n\t\t{\n\t\t\tnew_strings.add(StringUtilities.formatString(s));\n\t\t}\n\t\treturn new_strings;\n\t}",
"public static String join(String[] input)\n {\n StringBuilder sb = new StringBuilder();\n for(String value : input)\n {\n sb.append(value);\n sb.append(\" \");\n }\n return sb.toString();\n }",
"public static <T> String createDelimitedString(Collection<T> collection, String delimiter) {\n\t\tif (collection == null)\n\t\t\treturn null;\n\t\tif (collection.isEmpty())\n\t\t\treturn \"\";\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (T element : collection) {\n\t\t\tsb.append(element.toString());\n\t\t\tsb.append(delimiter);\n\t\t}\n\t\treturn StringUtil.removeSuffix(sb.toString(), delimiter);\n\t}",
"public void buildList(ArrayList<String> arrayList) {\n\t\t// write your code for buildList using the specification above\n\t\tfor(int counter=arrayList.size()-1; counter >= 0 ; counter--){\n\t\t\tString temp = arrayList.get(counter);\n\t\t\tadd(temp);\n\t\t}\n\t}",
"public String generate(List<BasketSeriesItemBean> seriesItems){\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint size = seriesItems.size();\n\t\tfor(int i=0; i < size ; i++) {\n\t\t\tBasketSeriesItemBean bsib = seriesItems.get(i);\n\t\t\tsb.append(bsib.getSeriesId());\n\t\t\tsb.append(\",\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tint lastComma = sb.lastIndexOf(\",\");\n\t\t\n\t\t//System.out.println(\"char at length - 1: \" + sb.charAt(sb.length() - 1) + \" length: \" + sb.length() + \" lastComma: \" + lastComma);\n\t\tsb.replace(lastComma, lastComma, \"\");\n\t\tsb.trimToSize();\n\t\t//System.out.println(\"length: \" + sb.length());\n\t\treturn sb.toString();\n\t}",
"public void removeSpaceFromEndOfString(ArrayList<String> list) {\n\t\t\n\t\tfor(int i = 0; i < list.size(); ++i) {\n\t\t\tif(list.get(i).charAt(list.get(i).length()-1) == ' ') {\n\t\t\t\tlist.set(i, list.get(i).substring(0, list.get(i).length()-1));\n\t\t\t}\n\t\t}\n\t}",
"public static String join(CharSequence delimiter, Object[] tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}",
"private void createString(){\n for(int i=0;i<this.textPalindrome.length;i++){\n this.joinedTextPalindrome=this.joinedTextPalindrome.concat(this.textPalindrome[i]);\n }\n }",
"public static String serialize( List<String> selectedValues, String delimiter )\n {\n return selectedValues == null ? \"\" : TextUtils.join( delimiter, selectedValues );\n }",
"private static <T> String join(final Collection<T> s, final String delimiter) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tIterator<T> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuilder.append(iter.next());\n\t\t\tif (!iter.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\treturn builder.toString();\n\t}",
"private static String nationalParks(List<String> list, String separator) {\n\t\tStringBuilder sb = new StringBuilder(32);\n\t\tboolean first = true;\n\t\t\n\t\tfor(String el : list) {\n\t\t\tif (first)\n\t\t\t\tfirst = false;\n\t\t\telse {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(el);\n\t\t}\n\t\treturn sb.toString();\n\t}",
"public static void main(String[] args) {\n List<Character> charachterList = Arrays.asList('T', 'h', 'i', 's', ' ', 'i', 's', ' ', 'S', 'p', 'a', 'r', 't', 'a', '!');\n String strings = charachterList.stream()\n .map(c -> c.toString())\n .collect(Collectors.joining());\n\n System.out.println(strings);\n }",
"public static String join(Collection<String> collection) {\n\t\treturn join(collection, \"\");\n\t}",
"public static String implode(char separator, String addedString, String[] strings) {\n\t if (strings == null) return addedString;\n\t int len = addedString.length();\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t buf.append(addedString);\n\t for (String string: strings) {\n\t\t buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }",
"public static String joinMultipleChoices(ArrayList<String> choices) {\n return String.join(ANSWER_DELIMITER, choices);\n }",
"public static String commas(Iterable<?> parts) {\n return join(\", \", parts);\n }",
"default String separate(final String... args) {\n final List<String> argList = new ArrayList<>();\n for (final String arg : args) {\n if (!arg.isEmpty()) {\n argList.add(arg);\n }\n }\n return String.join(\" \", argList);\n }",
"public static String listToParagraph(List<String> list) {\n return listToParagraph(list, \", \", \" and \");\n }",
"public static String implode ( final String glue, final String[] pieces )\n {\n final StringBuilder sb;\n\n if (null == glue || null == pieces) return null;\n if (pieces.length == 0) return \"\";\n\n sb = new StringBuilder();\n for (final String s : pieces) sb.append(s).append(glue);\n return sb.toString().substring(0, sb.length() - glue.length());\n }",
"public static String combineStrings(String... strings) {\n if(CMAppGlobals.DEBUG)Logger.i(TAG, \":: StringHelper.combineStrings \");\n\n StringBuilder stringBuilder = new StringBuilder();\n if(strings != null && strings.length > 0) {\n for (String itemString :\n strings) {\n stringBuilder.append(itemString);\n }\n }\n\n return stringBuilder.toString();\n\n }",
"public static String serializeListString(List<String> s) {\r\n System.out.println(\"EncodeJSON - method serializeListString\" + s);\r\n return gson.toJson(s);\r\n }",
"public static String implode(Collection<? extends Object> parts, String separator) {\r\n\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\tfor (Object part : parts) {\r\n\t\t\t\tbuilder.append(separator + part);\r\n\t\t\t}\r\n\r\n\t\t\tif (builder.length() > separator.length()) {\r\n\t\t\t\treturn builder.substring(separator.length());\r\n\t\t\t}\r\n\r\n\t\t\treturn builder.toString();\r\n\t\t}"
] | [
"0.74541485",
"0.65914565",
"0.6336941",
"0.63097847",
"0.63086945",
"0.6160893",
"0.6159215",
"0.6157247",
"0.60278225",
"0.6013727",
"0.5917067",
"0.5906423",
"0.5817392",
"0.5814418",
"0.58118075",
"0.5811476",
"0.57870877",
"0.5786617",
"0.57266617",
"0.5670259",
"0.56658494",
"0.56166196",
"0.56138396",
"0.5594979",
"0.5593312",
"0.55634",
"0.5535715",
"0.5448306",
"0.5434563",
"0.5426888",
"0.5389461",
"0.5384373",
"0.53481776",
"0.533093",
"0.53303194",
"0.53246105",
"0.52998435",
"0.52941",
"0.5277901",
"0.5265361",
"0.52207667",
"0.5207973",
"0.5204068",
"0.51923114",
"0.51745355",
"0.5168319",
"0.5158414",
"0.5140178",
"0.5098696",
"0.50980043",
"0.50955623",
"0.5084378",
"0.5079436",
"0.50758845",
"0.50676996",
"0.50661206",
"0.5055655",
"0.5050847",
"0.503368",
"0.50288635",
"0.50223213",
"0.5015847",
"0.4982324",
"0.4975334",
"0.49729875",
"0.49717176",
"0.49522462",
"0.49513724",
"0.4932264",
"0.4922613",
"0.49183798",
"0.4901522",
"0.4892075",
"0.48880553",
"0.48876068",
"0.48873472",
"0.48770523",
"0.48691404",
"0.4845468",
"0.4838848",
"0.482489",
"0.48004645",
"0.4792243",
"0.4791383",
"0.4790311",
"0.47806314",
"0.47782308",
"0.4774399",
"0.47732762",
"0.4763862",
"0.4760885",
"0.47578695",
"0.47561696",
"0.47543877",
"0.47523704",
"0.47416672",
"0.47276288",
"0.4698764",
"0.46899477",
"0.46891636"
] | 0.7661787 | 0 |
Get all the online players | public static Collection<? extends Player> getOnlinePlayers() {
return Bukkit.getServer().getOnlinePlayers();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"List<Player> getPlayers();",
"static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}",
"List<Player> listPlayers();",
"public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}",
"ArrayList<Player> getAllPlayer();",
"@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}",
"public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }",
"List<Player> findAllPlayers();",
"@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }",
"private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }",
"public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"public List<Player> getPlayers() {\r\n return players;\r\n }",
"@Override\n public List<Player> getPlayers() {\n return players;\n }",
"public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }",
"public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}",
"public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}",
"@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }",
"public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}",
"protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}",
"public List<PlayerItem> getAll();",
"public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}",
"public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}",
"@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}",
"private int getOnlinePlayers()\n {\n return (int) Bukkit.getOnlinePlayers().stream().filter( p -> p != null && p.isOnline() ).count();\n }",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }",
"public List<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}",
"public ArrayList<Player> getPlayers() {\n return players;\n }",
"public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }",
"@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }",
"Collection<User> players();",
"public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }",
"public Player[] getPlayers() {\r\n return players;\r\n }",
"public static ArrayList<Player> getWinners(){return winners;}",
"public boolean hasOnlinePlayers() {\n for (Player p : players) {\n if (p.isOnline())\n return true;\n }\n return false;\n }",
"public static List<String> getOnlinePlayerNames() {\n Iterable<User> onlineUsers = SlapPlugin.getInstance().getEssentials().getOnlineUsers();\n return StreamSupport.stream(onlineUsers.spliterator(), false)\n .map(user -> StringUtils.isEmpty(user.getNickname()) ? user.getName() : user.getNickname())\n .collect(Collectors.toList());\n }",
"@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}",
"public List<Player> getPlayerList(){\n return this.players;\n }",
"public Player[] getPlayers() {\n return players;\n }",
"public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public Player[] getPlayers() {\n return this.players;\n }",
"public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}",
"public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}",
"private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public String[] getPlayers() {\r\n return playerIds;\r\n }",
"public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}",
"public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}",
"public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}",
"public Set<Player> getPlayers() {\n return players;\n }",
"public static Map<String, PlayerConfig> getPlayers() {\n return players;\n }",
"public CompactPlayer[] getPlayers()\n {\n return players;\n }",
"public static void updatePlayerCaches() {\n\t\tfor (Player player : getOnlinePlayers()) {\n\t\t\tPlayerCache cache = getCache(player);\n\n\t\t\tcache.reloadCache();\n\t\t}\n\t}",
"public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }",
"public List<OpenPlayer> getOpenPlayers() {\r\n if(actuelAktionators.isEmpty()){\r\n throw new IllegalStateException(\"In der Liste der Spieler muss mindestens ein Spieler sein (der Hoechtbietende)\");\r\n }\r\n return actuelAktionators;\r\n }",
"public List<PlayerItem> getAllPlayerItemById(Player player);",
"public List<Player> getPlayerList()\n\t{\n\t\treturn playerList;\n\t}",
"public boolean allPlayersReady() {\n // Si un jugador esta offline, lo ignora\n for (Player p : players) {\n if (p.isOnline() && !p.isReady())\n return false;\n }\n return true;\n }",
"public ArrayList<Player> getPlayerList() {\n ArrayList<Player> ret = new ArrayList<>();\n ret.addAll(playerList);\n return ret;\n }",
"public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }",
"public ArrayList<Player> getPlayersInGame() {\n return playersInGame;\n }",
"public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}",
"public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}",
"@Override public GameList getAllGamesFromServer() throws RemoteException, SQLException {\r\n return gameListClientModel.getGamesFromServer();\r\n }",
"@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}",
"public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}",
"private Set<SteamUserNode> bindGames(Set<SteamUserNode> players) {\n\t\tString dest = \"http://api.steampowered.com/IPlayerService/GetOwnedGames/v0001/?\" +\r\n\t\t\t\t\"key=%s&steamid=%d&include_appinfo=1&include_played_free_games=1&format=json\";\r\n\t\tString response = \"\";\r\n\t\tfor (SteamUserNode p : players) {\r\n\t\t\ttry {\r\n\t\t\t\tthis.apiCalls += 1;\r\n\t\t\t\tString query = String.format(dest, key, p.getId());\r\n\t\t\t\tURL url = new URL(query);\r\n\t\t\t\tHttpURLConnection con = (HttpURLConnection) url.openConnection();\r\n\t\t\t\tcon.setRequestMethod(\"GET\");\r\n\t\t\t\tcon.setConnectTimeout(3000);\r\n\t\t\t\tcon.connect();\r\n\t\t\t\tint respCode = con.getResponseCode();\r\n\t\t\t\tif (respCode != 200)\r\n\t\t\t\t\tSystem.out.println(\"Status code: \" + respCode + \"\\nFor request: \" + query);\r\n\t\t\t\telse {\r\n\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(con.getInputStream()));\r\n\t\t\t\t\tresponse = reader.lines().collect(Collectors.joining());\r\n\t\t\t\t\tint numGames = new JSONObject(response).getJSONObject(\"response\").getInt(\"game_count\");\r\n\t\t\t\t\tif (numGames > 0) {\r\n\t\t\t\t\t\tJSONArray ownedGames = new JSONObject(response).getJSONObject(\"response\").getJSONArray(\"games\");\r\n\t\t\t\t\t\tfor (int i=0;i<ownedGames.length();++i) {\r\n\t\t\t\t\t\t\tJSONObject g = ownedGames.getJSONObject(i);\r\n\t\t\t\t\t\t\tlong appId = g.getLong(\"appid\");\r\n\t\t\t\t\t\t\tString name = g.getString(\"name\");\r\n\t\t\t\t\t\t\tString logoHash = g.getString(\"img_logo_url\");\r\n\t\t\t\t\t\t\tint playForever = g.getInt(\"playtime_forever\");\r\n\t\t\t\t\t\t\tint play2Wks = g.has(\"playtime_2weeks\") ? g.getInt(\"playtime_2weeks\") : 0;\r\n\t\t\t\t\t\t\tPlayedGame game = new PlayedGame(appId, name, logoHash, play2Wks, playForever);\r\n\t\t\t\t\t\t\tp.addPlayedGame(game);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tif (!knownGames.contains(game)) {\r\n\t\t\t\t\t\t\t\tknownGames.add((SteamGame) game);\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\tif (localWrite) {\r\n\t\t\t\t\t\t\tjsonWriter.writeOwnedGames(response, p);\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} catch (JSONException jse) {\r\n\t\t\t\tSystem.err.println(jse.getMessage());\r\n\t\t\t\tSystem.out.println(response);\r\n\t\t\t} catch (MalformedURLException mue) {\r\n\t\t\t\t//once again, this better not happen...\r\n\t\t\t\tSystem.err.println(mue.getMessage());\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tSystem.err.println(ioe.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn players;\r\n\t}",
"public static ArrayList<Player> getAllPlayingPlayers() {\n // Anton fix: Would copy the list itself, we want just the items.\n // Remove/add manipulations would affect original list\n /*\n * ArrayList<Player> all = players; for (Player player: all) { if\n * (!player.isPlaying()) { all.remove(player); } }\n */\n\n ArrayList<Player> all = new ArrayList<Player>();\n for (Player player : players) {\n if (player.isPlaying()) all.add(player);\n }\n\n return all;\n }",
"public List<Player> getPassengers() {\n\t\tList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\tfor (Player p : Bukkit.getOnlinePlayers()) {\n\t\t\tif (isPassenger(p))\n\t\t\t\tret.add(p);\n\t\t}\n\t\treturn ret;\n\t}",
"Set<String> getPlayers();",
"public static ArrayList<Player> getOtherPlayers() {\n ArrayList<Player> all = getAllPlayingPlayers();\n all.remove(getCurrentPlayer());\n\n return all;\n }",
"public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}",
"private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }",
"public Integer[] getAllPlayerVisible() {\n\t\treturn playerVisible.toArray(new Integer[playerVisible.size()]);\n\t}",
"public List<LobbyPlayer> getPlayers(String code) throws NoDocumentException {\n return Firebase.requestDocument(\"lobbies/\" + code).toObject(LobbyDTO.class).toModel().getPlayers();\n }",
"public Set<String> getOnlinePlayersInFaction(String factionTag)\n \t{\n \t\tSet<String> players = new HashSet<String>();\n \t\tFaction faction = Factions.i.getByTag(factionTag);\n \t\tif (faction != null)\n \t\t{\n \t\t\tfor (FPlayer fplayer : faction.getFPlayersWhereOnline(true))\n \t\t\t{\n \t\t\t\tplayers.add(fplayer.getName());\n \t\t\t}\n \t\t}\n \t\treturn players;\n \t}",
"public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}",
"@GetMapping(\"/getPendingMultiplayerGames\")\n public List<MultiplayerGame> getPendingMultiplayerGames() {\n return getAllMultiplayerGames()\n .stream()\n .filter(g -> g.getStatus().equals(\"pending\"))\n .collect(Collectors.toList());\n }",
"public List<OnlineObject> getOnlineObjects() {\n\t\tsynchronized (this.onlineObjects) {\n\t\t\treturn getOnlineObjects(this.onlineObjects.size());\n\t\t}\n\t}",
"public ArrayList<Player> getPlayers() {\n return players;\n}",
"@Override\n\tpublic int getOnlinePlayerSum() {\n\t\treturn PlayerManager.getInstance().getOnlinePlayers().size();\n\t}",
"public List<Player> loadAll() throws SQLException {\n\t\tfinal Connection connection = _database.getConnection();\n\t\tfinal String sql = \"SELECT * FROM \" + table_name + \" ORDER BY id ASC \";\n\t\tfinal List<Player> searchResults = listQuery(connection.prepareStatement(sql));\n\n\t\treturn searchResults;\n\t}",
"public List<SkungeePlayer> getPlayers(SkungeeServer... servers) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setServers(servers);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public ArrayList<UserBean> listOnlineUsers()\n\t{\n\t\ttry{\n\t\t\tSocket toServer = new Socket(server,directorySocket);\n\t\t\tObjectOutputStream outToServer = new ObjectOutputStream(toServer.getOutputStream());\n\t\t\t\n\t\t\tServerMessage m = new ServerMessage();\n\t\t\tm.setCommand(LIST);\n\t\t\t\n\t\t\toutToServer.writeObject(m);\n\t\t\t\n\t\t\tObjectInputStream serverInput = new ObjectInputStream(toServer.getInputStream());\n\t\t\tonlineUsers = (ArrayList<UserBean>) serverInput.readObject();\n\t\t\t\n\t\t\toutToServer.close();\n\t\t\tserverInput.close();\n\t\t\ttoServer.close();\n\t\t}catch(UnknownHostException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn onlineUsers;\n\t}",
"public void printAllPlayers(){\n for (Player player : players){\n player.printPlayerInfo();\n }\n }",
"public void saveAllPlayers() {\n for (Player player : bukkitService.getOnlinePlayers()) {\n savePlayer(player);\n }\n }",
"public static ArrayList<Player> getPlayerAry(){\n\t\treturn players;\n\t}",
"List<Player> getViewers();",
"public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }",
"public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }",
"public Map<String, Player> getPlayersMap(){\n return this.players;\n }",
"public int loadedPlayers(){\n return playerMap.size();\n }",
"private List<String> receiveConnectedPlayers(@NotNull String data) {\n ConnectedPlayersDto result = GameGraphics.gson.fromJson(data, ConnectedPlayersDto.class);\n if (result.players != null) {\n players = result.players.stream()\n .filter(Objects::nonNull)\n .map(player -> player.name)\n .collect(Collectors.toList());\n return players;\n }\n return null;\n }",
"public List<SkungeePlayer> getPlayers(UUID... uuids) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setUniqueIds(uuids);\n\t\treturn japson.sendPacket(packet);\n\t}",
"public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}",
"ArrayList<IPlayer> buildPlayerList();"
] | [
"0.780341",
"0.7696315",
"0.7567485",
"0.7522397",
"0.7444994",
"0.74057394",
"0.7403971",
"0.73925954",
"0.7218694",
"0.7210024",
"0.7207206",
"0.7180795",
"0.7180795",
"0.7146364",
"0.71336377",
"0.7117877",
"0.70934546",
"0.70736706",
"0.7071047",
"0.70419294",
"0.7005787",
"0.6997841",
"0.69928664",
"0.6968745",
"0.6958823",
"0.6951029",
"0.6916361",
"0.69114184",
"0.6903627",
"0.68952674",
"0.68915325",
"0.68360525",
"0.68355614",
"0.6806904",
"0.6800396",
"0.6786974",
"0.67761743",
"0.6771619",
"0.6764761",
"0.6760409",
"0.6759099",
"0.6756063",
"0.6725933",
"0.6714822",
"0.6714822",
"0.6701826",
"0.66998893",
"0.66832584",
"0.66657495",
"0.6657009",
"0.6639977",
"0.66294134",
"0.6627572",
"0.66170573",
"0.6615409",
"0.6599616",
"0.65879315",
"0.65778774",
"0.65482163",
"0.65439796",
"0.65399957",
"0.65294415",
"0.65226406",
"0.64997333",
"0.6487103",
"0.64812434",
"0.64743996",
"0.6447132",
"0.6438832",
"0.6434738",
"0.64168364",
"0.6413887",
"0.6411101",
"0.6406177",
"0.63990134",
"0.6398459",
"0.6392199",
"0.63919073",
"0.6363275",
"0.63623345",
"0.6356913",
"0.6334933",
"0.6334684",
"0.63331896",
"0.6331614",
"0.6330799",
"0.63276124",
"0.63244426",
"0.6322773",
"0.6312913",
"0.6300096",
"0.62899286",
"0.6259414",
"0.62423277",
"0.6209734",
"0.62080204",
"0.62057376",
"0.62010455",
"0.61887914",
"0.61842364"
] | 0.78118664 | 0 |
Safely teleport to another player | public static boolean safeTeleport(Player toBeTeleported, Location toTeleport, boolean isFlying, boolean registerBackLocation, boolean... ignoreCooldown) throws CommandException {
//Get SlapPlayer
// SlapPlayer sp = PlayerControl.getPlayer(toBeTeleported);
//
// if ((ignoreCooldown.length > 0 && !ignoreCooldown[0]) || ignoreCooldown.length == 0) {
// if (!sp.getTeleporter().canTeleport()) { //Check if able to teleport if cooldown
// if (!Util.testPermission(toBeTeleported, "tp.cooldownoverride")) {
// throw new CommandException("You'll need to wait a bit before teleporting agian!");
// }
// }
// }
Location teleportTo = null;
boolean tpUnder = false;
Location fromLocation = toBeTeleported.getLocation();
if (isFlying && !toBeTeleported.isFlying()) { //Target is flying while the player is not flying -> Find first block under target
tpUnder = true;
boolean creative = (toBeTeleported.getGameMode() == GameMode.CREATIVE); //Check if in creative
for (Location loc = toTeleport; loc.getBlockY() > 0; loc.add(0, -1, 0)) { //Loop thru all blocks under target's location
Material m = loc.getBlock().getType();
if (m == Material.AIR) continue; //Looking for first solid
if (m == Material.LAVA && !creative) { //If teleporting into lava && not in creative
throw new CommandException("You would be teleported into Lava!");
}
teleportTo = loc.add(0, 1, 0); //Set loc + 1 block above
break;
}
} else { //Not flying
teleportTo = toTeleport;
}
if (teleportTo == null) { //Check if location found
throw new CommandException("Cannot teleport! Player above void!");
}
toBeTeleported.teleport(teleportTo); //Teleport
toBeTeleported.setVelocity(new Vector(0, 0, 0)); //Reset velocity
// if (registerBackLocation) { //If registering back location
// sp.getTeleporter().setBackLocation(fromLocation); //Set back location
// }
//Register teleport
// sp.getTeleporter().teleported();
return tpUnder;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean teleport(Player p1, Player p2, boolean change);",
"public boolean teleport(Entity destination) {\n/* 571 */ return teleport(destination.getLocation());\n/* */ }",
"private static void goThroughPassage(Player player) {\n int x = player.getAbsX();\n player.getMovement().teleport(x == 2970 ? x + 4 : 2970, 4384, player.getHeight());\n }",
"public void sendTeleport(final Player player) {\r\n player.lock();\r\n World.submit(new Pulse(1) {\r\n\r\n int delay = 0;\r\n\r\n @Override\r\n public boolean pulse() {\r\n if (delay == 0) {\r\n player.getActionSender().sendMessage(\"You've been spotted by an elemental and teleported out of its garden.\");\r\n player.graphics(new Graphics(110, 100));\r\n player.getInterfaceState().openComponent(8677);\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 2));\r\n face(player);\r\n } else if (delay == 6) {\r\n player.getProperties().setTeleportLocation(Location.create(getRespawnLocation()));\r\n PacketRepository.send(MinimapState.class, new MinimapStateContext(player, 0));\r\n player.getInterfaceState().close();\r\n face(null);\r\n player.unlock();\r\n return true;\r\n }\r\n delay++;\r\n return false;\r\n }\r\n });\r\n }",
"@Override\r\n\tpublic boolean canTeleport() {\n\t\treturn false;\r\n\t}",
"public boolean teleport(Location location) {\n/* 508 */ return teleport(location, PlayerTeleportEvent.TeleportCause.PLUGIN);\n/* */ }",
"private void teleport(Player player, ClanPlayerImpl clanPlayer, Location<World> teleportLocation) {\n player.setLocation(teleportLocation);\n clanPlayer.setLastClanHomeTeleport(new LastClanHomeTeleport());\n }",
"public static void teleportAway(ClientContext ctx) {\n Item sceptre = ctx.inventory.select().id(Items.SKULL_SCEPTRE_I_21276).poll();\n\n if (sceptre.valid()) {\n sceptre.interact(\"Invoke\", sceptre.name());\n sleep(3000);\n } else {\n // Teletab\n Item tab = ctx.inventory.select().select(new Filter<Item>() {\n @Override\n public boolean accept(Item item) {\n return item.name().toLowerCase().contains(\"teleport\");\n }\n }).poll();\n\n if (tab.valid()) {\n tab.click();\n } else {\n // Glory Teleport\n ctx.game.tab(Game.Tab.EQUIPMENT);\n Item ammy = ctx.equipment.itemAt(Equipment.Slot.NECK);\n if (ammy.name().toLowerCase().contains(\"glory\")) {\n ammy.interact(\"Edgeville\");\n sleep(4000);\n }\n }\n }\n }",
"public static void teleportPlayer(final Player player,\n \t\t\tfinal Location toLocation) {\n \t\tfinal Object networkManager = getNetServerHandler(getHandle(player));\n \t\ttry {\n \t\t\tnetworkManager.getClass().getMethod(\"teleport\", Location.class)\n \t\t\t\t\t.invoke(networkManager, toLocation);\n \t\t} catch (final Exception e) {\n \t\t\tthrow new RuntimeException(\"Can't teleport the player \" + player\n \t\t\t\t\t+ \" to \" + toLocation, e);\n \t\t}\n \t}",
"public boolean teleport ( Entity destination ) {\n\t\treturn invokeSafe ( \"teleport\" , destination );\n\t}",
"public boolean teleport ( Entity destination , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , destination , cause );\n\t}",
"@EventHandler(priority = EventPriority.LOWEST)\n\tpublic void onPlayerTeleport(PlayerTeleportEvent event)\n\t{\n\t Player player = event.getPlayer();\n\t\tPlayerData playerData = this.dataStore.getPlayerData(player.getUniqueId());\n\t\t\n\t\t//FEATURE: prevent players from using ender pearls to gain access to secured claims\n\t\tTeleportCause cause = event.getCause();\n\t\tif(cause == TeleportCause.CHORUS_FRUIT || (cause == TeleportCause.ENDER_PEARL && instance.config_claims_enderPearlsRequireAccessTrust))\n\t\t{\n\t\t\tClaim toClaim = this.dataStore.getClaimAt(event.getTo(), false, playerData.lastClaim);\n\t\t\tif(toClaim != null)\n\t\t\t{\n\t\t\t\tplayerData.lastClaim = toClaim;\n\t\t\t\tString noAccessReason = toClaim.allowAccess(player);\n\t\t\t\tif(noAccessReason != null)\n\t\t\t\t{\n\t\t\t\t\tinstance.sendMessage(player, TextMode.Err, noAccessReason);\n\t\t\t\t\tevent.setCancelled(true);\n\t\t\t\t\tif(cause == TeleportCause.ENDER_PEARL)\n\t\t\t\t\t player.getInventory().addItem(new ItemStack(Material.ENDER_PEARL));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void teleportPlayer(GamePlayer player, List<Location> spawnpoint) {\r\n\t\tRandom rand = new Random();\r\n\t\tLocation spawn = spawnpoint.get(rand.nextInt(spawnpoint.size()));\r\n\t\t\r\n\t\tplayer.getPlayer().setSaturation(100000);\r\n\t\tplayer.getPlayer().setHealth(20);\r\n\t\tplayer.getPlayer().teleport(spawn);\r\n\t\tgiveStuff(player);\r\n\t}",
"public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }",
"public boolean teleport ( Location location , PlayerTeleportEvent.TeleportCause cause ) {\n\t\treturn invokeSafe ( \"teleport\" , location , cause );\n\t}",
"@Override\n public void run() {\n BlockPos cachePosition = teleportee.getPosition();\n while (cachePosition.equals(teleportee.getPosition()) || pendingTeleports.containsKey(originalSender)) {/*block execution until move or teleport*/}\n if (pendingTeleports.containsKey(originalSender)) { //has not teleported\n pendingTeleports.remove(sender.getName(), originalSender);\n sender.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.RED + \"Teleport canceled.\"));\n }\n }",
"public static void teleport(ServerPlayer player, ServerLevel world, BlockPos targetPos) {\n player.teleportTo(world, targetPos.getX() + 0.5, targetPos.getY() + 0.1, targetPos.getZ() + 0.5, player.yRotO, player.xRotO);\n }",
"@Override\n\tpublic boolean teleport(final Location location) {\n\t\tGuard.ArgumentNotNull(location, \"location\");\n\t\t\n\t\tif (isOnline()) {\n\t\t\treturn bukkitPlayer.teleport(location);\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public void run() {\n if (pendingTeleports.containsKey(sender.getName())) {\n pendingTeleports.remove(sender.getName(),originalSender);\n if (senderPlayer.dimension != teleportee.dimension) {\n TeleportHelper.transferPlayerToDimension(teleportee,senderPlayer.dimension,server.getPlayerList());\n }\n teleportee.setPositionAndUpdate(senderPlayer.posX,senderPlayer.posY,senderPlayer.posZ);\n sender.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n teleportee.addChatMessage(new TextComponentString(TextFormatting.GREEN+\"Teleport successful.\"));\n } //if not, the teleportee moved\n }",
"public void teleportToAlien() {\n\t\tAlien a;\n\t\tSpaceship sp;\n\t\tif(roamingAliens > 0){\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAlien();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an alien\");\n\t\t}\n\t\telse\n\t\t\tSystem.out.println(\"Error: There were no aliens to jump to.\");\n\t}",
"public Point performTeleport(String name, Point oldPos, boolean safeTeleport) {\n\t\tPoint newPos \t= new Point();\n\t\tif(safeTeleport)\n\t\t\tnewPos = getSafeTeleportPosition();\n\t\telse\n\t\t\tnewPos = getUnsafeTeleportPosition();\n\t\t\n\t\tmovePlayer(name, oldPos, newPos, true);\n\t\treturn newPos;\n\t}",
"public void teleport(boolean penalty) { \n\t\tPublisher teleport_h = new Publisher(\"/ariac_human/go_home\", \"std_msgs/Bool\", bridge);\n\t\tif(penalty)\t\n\t\t\tteleport_h.publish(new Bool(true));\t\n\t\telse\n\t\t\tteleport_h.publish(new Bool(false));\t\n\n\t\t// Reset \"smart\" orientation variables\n\t\tlastHumanState_MsgT = System.currentTimeMillis();\n\t\tlastUnsafeD_MsgT = System.currentTimeMillis();\n\t\tpreviousDistance = 50.0;\n\t\tisAproximating = false;\n\t}",
"public void teleportation(Vector2 posTp) {\n int distance = (int) Math.sqrt(Math.pow(posTp.x - position.x, 2) + Math.pow(posTp.y - position.y, 2));\n int coef = 50;\n if (wallet.getMoney() >= coef*distance) {\n position.set(posTp);\n position.x += WIDTH/2;\n resetMiner();\n wallet.withdraw(coef * distance);\n }\n }",
"public static void teleportWithChunkCheck(final Player player, final Location loc) {\n\t\tDebugLog.beginInfo(\"Teleport player (\" + player.getName() + \")\");\n\t\tDebugLog.addInfo(\"[TO] \" + loc);\n\t\ttry {\n\t\t\tfinal PlayerTeleportEvent event = new ACTeleportEvent(player, player.getLocation(), loc, TeleportCause.PLUGIN);\n\t\t\tBukkit.getPluginManager().callEvent(event);\n\t\t\tif (event.isCancelled()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfinal Location toLocation = event.getTo();\n\t\t\tfinal int x = toLocation.getBlockX() >> 4;\n\t\t\tfinal int z = toLocation.getBlockZ() >> 4;\n\t\t\tif (!toLocation.getWorld().isChunkLoaded(x, z)) {\n\t\t\t\ttoLocation.getWorld().loadChunk(x, z);\n\t\t\t}\n\t\t\tfinal Location playerLoc = player.getLocation();\n\t\t\tACPluginManager.runTaskLaterAsynchronously(new Runnable() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\n\t\t\t\t\tACPlayer.getPlayer(player).setLastLocation(playerLoc);\n\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tTeleportCommand.teleport(player, toLocation);\n\t\t} finally {\n\t\t\tDebugLog.endInfo();\n\t\t}\n\n\t}",
"public boolean teleport ( Location location ) {\n\t\treturn invokeSafe ( \"teleport\" , location );\n\t}",
"private void handleTeleport(GameGUI gui) {\r\n\t\tif (gui.isTeleportPressed()) {\r\n\t\t\tteleport();\r\n\t\t}\r\n\t}",
"public static boolean performTeleport(PlayerEntity player, TeleportDestination dest, int bad, int good, boolean boosted) {\n BlockPos c = dest.getCoordinate();\n\n BlockPos old = new BlockPos((int)player.getX(), (int)player.getY(), (int)player.getZ());\n RegistryKey<World> oldId = player.getCommandSenderWorld().dimension();\n\n if (!TeleportationTools.allowTeleport(player, oldId, old, dest.getDimension(), dest.getCoordinate())) {\n return false;\n }\n\n if (!oldId.equals(dest.getDimension())) {\n mcjty.lib.varia.TeleportationTools.teleportToDimension(player, dest.getDimension(), c.getX() + 0.5, c.getY() + 1.5, c.getZ() + 0.5);\n } else {\n player.teleportTo(c.getX()+0.5, c.getY()+1, c.getZ()+0.5);\n }\n\n if (TeleportConfiguration.whooshMessage.get()) {\n Logging.message(player, \"Whoosh!\");\n }\n // @todo achievements\n// Achievements.trigger(player, Achievements.firstTeleport);\n\n boolean boostNeeded = false;\n int severity = consumeReceiverEnergy(player, dest.getCoordinate(), dest.getDimension());\n if (severity > 0 && boosted) {\n boostNeeded = true;\n severity = 1;\n }\n\n severity = applyBadEffectIfNeeded(player, severity, bad, good, boostNeeded);\n if (severity <= 0) {\n if (TeleportConfiguration.teleportVolume.get() >= 0.01) {\n SoundTools.playSound(player.getCommandSenderWorld(), ModSounds.whoosh, player.getX(), player.getY(), player.getZ(), TeleportConfiguration.teleportVolume.get(), 1.0f);\n }\n }\n if (TeleportConfiguration.logTeleportUsages.get()) {\n Logging.log(\"Teleport: Player \" + player.getName() + \" from \" + old + \" (dim \" + oldId + \") to \" + dest.getCoordinate() + \" (dim \" + dest.getDimension() + \") with severity \" + severity);\n }\n return boostNeeded;\n }",
"public void teleportToAstronaut() {\n\t\tAstronaut a;\n\t\tSpaceship sp;\n\t\tif(roamingAstronauts > 0) {\n\t\t\tsp = getTheSpaceship();\n\t\t\ta = getRandomAstronaut();\n\t\t\tsp.setLocation(a.getLocation());\n\t\t\tSystem.out.println(\"You've teleported to an astronaut. \\n Hope you didn't hit them.\");\n\t\t}\n\t\telse \n\t\t\tSystem.out.println(\"Error: Ther were no astronauts to jump to.\");\n\t}",
"public Player getToTeleportTo(){\n\t\treturn toTeleportTo;\n\t}",
"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 }",
"public static void sendTo(Player player, OwnedWarp warp) {\n if(warp == null)\n return;\n try {\n Points.teleportTo(player, warp.getTarget(), warp.getName());\n } catch (InvalidDestinationException ex) {\n player.sendMessage(ex.getMessage());\n Stdout.println(ex.getMessage(), Level.ERROR);\n }\n }",
"@Override\n public void landedOn(Player player) {}",
"@Override\n public void execute() {\n vars.setState(\"Teleporting...\");\n Methods.teleToFlameKing();\n }",
"public void respawnPlayer() {\n \tboard.swapTile(board.getTile(player.getPos()), board.getTile(new Point(8,0)));\n player.setPlayerPos(new Point(8,0));\n resetAmmo();\n }",
"public static void tpr(String world, Player player) {\n String msg = MessageManager.getMessageYml().getString(\"Tpr.Teleporting\");\n player.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', msg));\n Location originalLocation = player.getLocation();\n Random random = new Random();\n Location teleportLocation;\n int maxDistance = Main.plugin.getConfig().getInt(\"TPR.Max\");\n World w = Bukkit.getServer().getWorld(world);\n int x = random.nextInt(maxDistance) + 1;\n int y = 150;\n int z = random.nextInt(maxDistance) + 1;\n boolean isOnLand = false;\n teleportLocation = new Location(w, x, y, z);\n while (!isOnLand) {\n teleportLocation = new Location(w, x, y, z);\n if (teleportLocation.getBlock().getType() != Material.AIR) {\n isOnLand = true;\n } else {\n y--;\n }\n }\n player.teleport(new Location(w, teleportLocation.getX(), teleportLocation.getY() + 1.0D, teleportLocation.getZ()));\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Tpr\").equalsIgnoreCase(\"True\")) {\n int dis = (int) teleportLocation.distance(originalLocation);\n String dist = String.valueOf(dis);\n String original = (MessageManager.getMessageYml().getString(\"Tpr.Distance\").replaceAll(\"%distance%\", dist));\n String distance = (ChatColor.translateAlternateColorCodes('&', original));\n player.sendMessage(MessageManager.getPrefix() + distance);\n }\n }",
"public Location teleport(LivingEntity entity, boolean safe, boolean centerEntity, boolean allowWater, TeleportCause tpCause) {\r\n\t\t// get the safe tp location\r\n\t\tLocation tpLocation = destination.clone();\r\n\t\t\r\n\t\tif(centerEntity)\r\n\t\t\ttpLocation = new Location(\r\n\t\t\t\t\ttpLocation.getWorld(), \r\n\t\t\t\t\ttpLocation.getBlockX() + 0.5, \r\n\t\t\t\t\ttpLocation.getBlockY(), \r\n\t\t\t\t\ttpLocation.getBlockZ() + 0.5, \r\n\t\t\t\t\ttpLocation.getYaw(), \r\n\t\t\t\t\ttpLocation.getPitch());\r\n\t\t\r\n\t\t// if we want the tp to be safe, get the safe location\r\n\t\tif(safe)\r\n\t\t\ttpLocation = getSafePoint(tpLocation, allowWater, (int)entity.getEyeHeight());\r\n\t\t\r\n\t\t// if null, no safe location found, return null\r\n\t\tif(tpLocation == null)\r\n\t\t\treturn null;\r\n\t\tHashMap<Entity, List<Entity>> ridingEntities = new HashMap<Entity, List<Entity>>();\r\n\t\t\r\n\t\t// loop all the passengers\r\n\t\tLinkedList<Entity> passengers = new LinkedList<Entity>();\r\n\t\tpassengers.add(entity);\r\n\t\t\r\n\t\t// add all the entities into the hashmap\r\n\t\tEntity passenger_ = null;\r\n\t\twhile(!passengers.isEmpty()) {\r\n\t\t\tpassenger_ = passengers.pop();\r\n\t\t\tpassengers.addAll(passenger_.getPassengers());\r\n\t\t\t\r\n\t\t\tridingEntities.put(passenger_, passenger_.getPassengers());\r\n\t\t\t// unseat the riding entites\r\n\t\t\tentity.eject();\r\n\t\t}\r\n\t\t\r\n\t\t// entities to remove from the riding thing\r\n\t\tList<Entity> toRemove = new ArrayList<Entity>();\r\n\t\t\r\n\t\t// teleport all players to the new location\r\n\t\tfor(Entity entity_ : ridingEntities.keySet()) {\r\n\t\t\tif(!entity_.teleport(tpLocation, tpCause))\r\n\t\t\t\ttoRemove.add(entity_);\r\n\t\t}\r\n\t\t\r\n\t\t// remove any mounts that may have failed to teleport\r\n\t\tfor(Entity ent : toRemove)\r\n\t\t\tridingEntities.remove(ent);\r\n\t\t\r\n\t\t// mount the entities\r\n\t\tfor(Entry<Entity, List<Entity>> entry : ridingEntities.entrySet()) {\r\n\t\t\t// seat all the passengers except those which failed to teleport\r\n\t\t\tfor(Entity ent : entry.getValue()) {\r\n\t\t\t\tif(toRemove.contains(ent))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tentry.getKey().addPassenger(ent);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn tpLocation;\r\n\t}",
"@Override\n public CommandResult execute(CommandSource src, CommandContext commandContext) throws CommandException {\n return CommandResult.success();\n\n /*if (src instanceof Player) {\n Player sender = (Player) src;\n if(!commandContext.hasAny(\"target\")) {\n src.sendMessage(Text.of(new Object[]{TextColors.RED, \"Invalid arguments\"}));\n return CommandResult.success();\n } else {\n User user = commandContext.<User>getOne(\"target\").get();\n if (user.isOnline()) {\n sender.sendMessage(Text.of(TextColors.RED, \"Player is online, Please use /teleport\"));\n } else {\n GameProfileManager gameProfileManager = Sponge.getGame().getServer().getGameProfileManager();\n Optional<UserStorageService> userStorage = Sponge.getServiceManager().provide(UserStorageService.class);\n UUID uuid = null;\n try {\n uuid = userStorage.get().getOrCreate(gameProfileManager.get(user.getName(), false).get()).getUniqueId();\n } catch (InterruptedException | ExecutionException e) {\n e.printStackTrace();\n }\n if (userStorage.isPresent()) {\n UserStorageService userStorage2 = userStorage.get();\n Optional<User> userOptional = userStorage2.get(uuid);\n if (userOptional.isPresent()) {\n User user2 = userOptional.get();\n double x = user2.getPlayer().get().getLocation().getX();\n double y = user2.getPlayer().get().getLocation().getY();\n double z = user2.getPlayer().get().getLocation().getZ();\n sender.sendMessage(Text.of(\"Loc: x:\", x, \" y:\", y, \" z:\", z));\n Vector3d vector = new Vector3d(x, y, z);\n sender.setLocation(sender.getLocation().setPosition(vector));\n } else {\n // error?\n }\n }\n }\n return CommandResult.success();\n }\n } else {\n src.sendMessage(Text.of(\"Only a player Can run this command!\"));\n return CommandResult.success();\n }*/\n }",
"public void throwAt(Player target);",
"public Player getTeleporter(){\n\t\treturn teleporter;\n\t}",
"public void moveEveryoneExcept(Player player) throws IOException, InterruptedException { }",
"@EventHandler\n\tpublic void onTravelToNether(PlayerPortalEvent e) {\n\t\tPlayerTR trPlayer = TaskRun.getPlayer(e.getPlayer());\n\t\tif (e.getTo().getWorld().getEnvironment() == Environment.NETHER) {\n\t\t\ttrPlayer.completeTask(1);\n\t\t}\n\t}",
"private void resendPosition(Player player) {\r\n\t\tPacketContainer positionPacket = protocolManager.createPacket(PacketType.Play.Server.POSITION);\r\n\t\tLocation location = player.getLocation();\r\n\r\n\t\tpositionPacket.getDoubles().write(0, location.getX());\r\n\t\tpositionPacket.getDoubles().write(1, location.getY());\r\n\t\tpositionPacket.getDoubles().write(2, location.getZ());\r\n\t\tpositionPacket.getFloat().write(0, 0f); // No change in yaw\r\n\t\tpositionPacket.getFloat().write(1, 0f); // No change in pitch\r\n\t\tgetFlagsModifier(positionPacket).write(0, EnumSet.of(PlayerTeleportFlag.X_ROT, PlayerTeleportFlag.Y_ROT)); // Mark pitch and yaw as relative\r\n\r\n\t\tPacketContainer velocityPacket = protocolManager.createPacket(PacketType.Play.Server.ENTITY_VELOCITY);\r\n\t\tvelocityPacket.getIntegers().write(0, player.getEntityId());\r\n\t\tvelocityPacket.getIntegers().write(1, 0).write(2, 0).write(3, 0); // Set velocity to 0,0,0\r\n\r\n\t\ttry {\r\n\t\t\tprotocolManager.sendServerPacket(player, positionPacket);\r\n\t\t\tprotocolManager.sendServerPacket(player, velocityPacket);\r\n\t\t} catch (Exception e) {\r\n\t\t\tthrow new RuntimeException(\"Failed to send position and velocity packets\", e);\r\n\t\t}\r\n\t}",
"int remoteTp(Player p1, Player p2);",
"public static void teleport(PlayerEntity player, BlockPos pos, int dim) {\n teleport(player, pos, dim, p -> {\n });\n }",
"default void interactWith(Teleporter tp) {\n\t}",
"public static void teleport(LivingEntity ent, Location to) {\n\t\tteleport(ent, to, true, true);\n\t}",
"public void takeOut(final StandardPlayer p) {\n if (p == firstPlayerOnPos[p.getPosR()][p.getPosC()]) {\n firstPlayerOnPos[p.getPosR()][p.getPosC()]\n = secondPlayerOnPos[p.getPosR()][p.getPosC()];\n }\n secondPlayerOnPos[p.getPosR()][p.getPosC()] = null;\n deadPlayers[p.getPosR()][p.getPosC()].add(p);\n }",
"private boolean try2GetYellowPlayerFromHome(Player player)\n {\n try\n {\n YellowPlayer yellowPlayer = (YellowPlayer) player;\n if (YellowPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //YellowPlayer.setNumber_of_buttons_allowed(YellowPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }",
"@Test\n void invalidPAUSED() {\n getGame().start();\n getGame().stop();\n // this has no effect (sneak paths)\n getGame().move(getPlayer(), Direction.EAST);\n getGame().move(getPlayer(), Direction.EAST);\n getGame().stop();\n }",
"protected boolean teleportTo(double x, double y, double z) {\n double xI = this.posX;\n double yI = this.posY;\n double zI = this.posZ;\n this.posX = x;\n this.posY = y;\n this.posZ = z;\n boolean canTeleport = false;\n int blockX = (int)Math.floor(this.posX);\n int blockY = (int)Math.floor(this.posY);\n int blockZ = (int)Math.floor(this.posZ);\n Block block;\n if (this.worldObj.blockExists(blockX, blockY, blockZ)) {\n boolean canTeleportToBlock = false;\n while (!canTeleportToBlock && blockY > 0) {\n block = this.worldObj.getBlock(blockX, blockY - 1, blockZ);\n if (block != null && block.getMaterial().blocksMovement()) {\n canTeleportToBlock = true;\n }\n else {\n --this.posY;\n --blockY;\n }\n }\n if (canTeleportToBlock) {\n this.setPosition(this.posX, this.posY, this.posZ);\n if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox)) {\n canTeleport = true;\n }\n }\n }\n if (!canTeleport) {\n this.setPosition(xI, yI, zI);\n return false;\n }\n for (int i = 0; i < 128; i++) {\n double posRelative = i / 127.0;\n float vX = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vY = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vZ = (this.rand.nextFloat() - 0.5F) * 0.2F;\n double dX = xI + (this.posX - xI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n double dY = yI + (this.posY - yI) * posRelative + this.rand.nextDouble() * this.height;\n double dZ = zI + (this.posZ - zI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n this.worldObj.spawnParticle(\"portal\", dX, dY, dZ, vX, vY, vZ);\n }\n this.worldObj.playSoundEffect(xI, yI, zI, \"mob.endermen.portal\", 1.0F, 1.0F);\n this.worldObj.playSoundAtEntity(this, \"mob.endermen.portal\", 1.0F, 1.0F);\n return true;\n }",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean Jump(Player arg0) {\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic void transferTo(Player player) {\n\t\tSystem.out.println(\"Hey you are in snake mouth, Now got to tail\");\n\t\tplayer.move(getTransferFactor()); \n\t\t\n\t\t\n\t}",
"public void movePlayer(String nomeArq, int px, int py) {\r\n if(Main.player1.Vez()) {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)){\r\n \tMain.player1.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player1.MudaLado(false,true);\r\n } \r\n pos = Main.player1.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0.1;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false) {\r\n \tMain.player1.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player1.Size()[0]+1,Main.player1.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player1.Size()[0],Main.player1.Size()[1])==false)\r\n {\r\n \tMain.player1.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n Main.Fase.repinta(); \r\n }\r\n else {\r\n if(nomeArq.equals(Main.PLAYER_LEFT)) {\r\n \tMain.player2.MudaLado(true,false);\r\n }\r\n else {\r\n \tMain.player2.MudaLado(false,true);\r\n } \r\n pos = Main.player2.Position();\r\n int x = pos[0]+px;\r\n int y = pos[1];\r\n double t = 0;\r\n int OrigemY = y;\r\n double g=10;\r\n if(andar.BatidaFrente(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false) {\r\n \tMain.player2.NovaPosition(x,y); \r\n }\r\n Main.Fase.repinta(); \r\n while(andar.temChao(x,y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false && andar.Paredao((int)x,(int)y,Main.player2.Size()[0]+1,Main.player2.Size()[1]+1)==false)\r\n {\r\n \tMain.player2.NovaPosition(x,y);\r\n \tMain.Fase.repinta(); \r\n y = (int)(OrigemY - (0-(g * (t*t))/2.0));\r\n t = t + 0.1; \r\n }\r\n }\r\n }",
"public abstract void attackPlayer(Player p);",
"@EventHandler(ignoreCancelled = true)\n public void onEntityTeleport(EntityTeleportEvent event) {\n if (Util.isTrackable(event.getEntity())) {\n AbstractHorse abstractHorse = (AbstractHorse) event.getEntity();\n Entity passenger = Util.getPassenger(abstractHorse);\n if (passenger instanceof Player) {\n Player player = (Player) passenger;\n getState(player).clearHorseDistance();\n }\n }\n }",
"private void switchPlayer() {\n Player player;\n playerManager.switchPlayer();\n\n if(playerManager.getCurrentPlayer() == 1)\n player = playerManager.getPlayer(1);\n else if(playerManager.getCurrentPlayer() == 2)\n player = playerManager.getPlayer(2);\n else\n player = new Player(\"No Player exists\");\n\n updateLiveComment(\"Turn : \" + player.getName());\n }",
"public boolean teleportTo(Projectile p, Level l) {\r\n\t\tRectangle landingZone = new Rectangle(p.x+(p.width/2)-(width/2),p.y+(p.height/2)-(height/2),width,height);\r\n\t\tRectangle[] walls = l.getWalls();\r\n\t\tRectangle[] enemies = l.getAliveEnemies();\r\n\t\tboolean enoughRoom = true;\r\n\t\tfor(int i=0; i<walls.length;i++){\r\n\t\t\tif(landingZone.intersects(walls[i])){\r\n\t\t\t\tenoughRoom = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(int i=0; i<enemies.length;i++){\r\n\t\t\tif(landingZone.intersects(enemies[i])){\r\n\t\t\t\tenoughRoom = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(landingZone.x < 0 || landingZone.x > 600-landingZone.width || landingZone.y < l.getHudLength() \r\n\t\t\t\t|| landingZone.y > 400 + l.getHudLength() - landingZone.height){\r\n\t\t\tenoughRoom = false;\r\n\t\t}\r\n\t\tif(enoughRoom){\r\n\t\t\tsetLocation(landingZone.x, landingZone.y);\r\n\t\t\tinTeleportCooldown = true;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public abstract void changePlayerAt(ShortPoint2D pos, Player player);",
"public final void turnOver() {\r\n\t\tif (inPlay() == player1())\r\n\t\t\tsetInPlay(player2());\r\n\t\telse if (inPlay() == player2())\r\n\t\t\tsetInPlay(player1());\r\n\t\telse\r\n\t\t\tthrow new IllegalStateException(\"Can`t swap players for game! \"\r\n\t\t\t\t\t+ this);\r\n\t}",
"public void setSecondTrustedPlayer(@Nullable AnimalTamer player);",
"public abstract void teleport(TeleportSpell spell);",
"public void switchPlayer() {\n \tisWhitesTurn = !isWhitesTurn;\n }",
"void killPlayerByPlayerMove()\n {\n movePlayerToCell(getMonsterCell());\n }",
"public void callOnTeleport() {\n\t\tif (summonedFamiliar != null && c.getInstance().summoned != null) {\n\t\t\tc.getInstance().summoned.killerId = 0;\n\t\t\tc.getInstance().summoned.underAttackBy = 0;\n\t\t\tc.getInstance().summoned.npcTeleport(0, 0, 0);\n\t\t\tc.getInstance().summoned.updateRequired = true;\n\t\t\tc.getInstance().summoned = Server.npcHandler.summonNPC(c, summonedFamiliar.npcId, c.getX(),\n\t\t\t\t\tc.getY() + (summonedFamiliar.large ? 2 : 1), c.heightLevel, 0, c.getInstance().summoned.HP, 1, 1,\n\t\t\t\t\t1);\n\t\t\tcallFamiliar();\n\t\t} else {\n\t\t\tc.getPA().sendSummOrbDetails(false, \"\");\n\t\t}\n\t}",
"private void suspend()\n {\n Player target = p.getServer().getPlayer(targetID);\n if (target == null)\n {\n kill();\n return;\n }\n\n addAdditionalEffects();\n\n // suspend them in the air\n originalLocation = target.getLocation();\n Location newLoc = target.getEyeLocation();\n Location suspendLoc = new Location(newLoc.getWorld(), newLoc.getX(), newLoc.getY(), newLoc.getZ(), originalLocation.getYaw(), 45);\n target.teleport(suspendLoc);\n\n suspended = true;\n }",
"void playerTurn(Player actualPlayer) {\n aiPlayer.chooseAction(actualPlayer);\n actualPlayer.setTheirTurn(false);\n }",
"private void spawnPlayer() {\n\t\tplayer.show(true);\n\t\tplayer.resetPosition();\n\t\tplayerDead = false;\n\t\tplayerDeadTimeLeft = 0.0;\n\t}",
"public static void teleport(LivingEntity ent, Location to, boolean saveYaw, boolean savePitch) {\n\t\tLocation tp = to.clone();\n\t\tif(saveYaw) tp.setYaw(ent.getLocation().getYaw());\n\t\tif(savePitch) tp.setPitch(ent.getLocation().getPitch());\n\t\tent.teleport(tp);\n\t}",
"protected boolean teleportRandomly() {\n double x = this.posX + (this.rand.nextDouble() - 0.5) * 64.0;\n double y = this.posY + (this.rand.nextInt(64) - 32);\n double z = this.posZ + (this.rand.nextDouble() - 0.5) * 64.0;\n return this.teleportTo(x, y, z);\n }",
"@Override\n public void run() {\n if (time == 0) {\n // wait has ended time to teleport\n if (!Utils.homeExists(homeOwner, homeName)) {\n // the has since been deleted whilst waiting\n p.sendMessage(\"There was an error teleporting you.\");\n cancel();\n return;\n }\n Utils.teleportPlayer((Player) sender, homeOwner, homeName);\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"teleport-color\") + plugin.getConfig().getString(\"teleport-message\")));\n cancel();\n return;\n }\n Location currentLocation = ((Player) sender).getLocation();\n if (initialLocation.getX() != currentLocation.getX() ||\n initialLocation.getY() != currentLocation.getY() ||\n initialLocation.getZ() != currentLocation.getZ()) {\n // they've moved and the config says to cancel on move\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"move-cancel-message\")));\n cancel();\n }\n else {\n sender.sendMessage(Utils.chat(plugin.getConfig().getString(\"countdown-message\").replace(\"<time>\", Integer.toString(time))));\n time--;\n }\n }",
"@Override\n public boolean interact(EntityPlayer player)\n {\n if (!super.interact(player)) return false;\n \n targetHelicopter = null; // inactivate ai\n \n return true;\n }",
"private boolean try2GetGreenPlayerFromHome(Player player)\n {\n try\n {\n GreenPlayer greenPlayer = (GreenPlayer) player;\n if (GreenPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //GreenPlayer.setNumber_of_buttons_allowed(GreenPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }",
"public static void teleportPlayersToArena(Arena a, Player... players) {\n for (Player p : players) {\n p.teleport(a.getSpawnInPoint());\n }\n }",
"public void teleportTo(int y, int x){\n\t\tthis.position[y][x] = 1;//makes the position here, used for other object room\n\t}",
"public void switchPlayer() {\r\n\t\tif (player == player1) {\r\n\t\t\tplayer = player2;\r\n\t\t} else {\r\n\t\t\tplayer = player1;\r\n\t\t}\r\n\t}",
"private void notWorthy(final Player player) {\n\t\tplayer.getInterfaceManager().closeChatBoxInterface();\n\t\tplayer.lock(15);\n\t\tplayer.setNextFaceWorldTile(new WorldTile(3084, 3483, 0));\n\t\tWorldTasksManager.schedule(new WorldTask() {\n\t\t\tint phase = 0;\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tfinal int[] randomNPC = { 6935, 3283, 4344, 6966 };\n\t\t\t\tswitch (phase) {\n\t\t\t\tcase 0:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 1:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(915));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tplayer.setNextAnimation(new Animation(857));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(randomNPC[Utils.random(randomNPC.length - 1)]);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4:\n\t\t\t\t\tplayer.setNextForceTalk(new ForceTalk(\".... what in Helwyr is going on..!?\"));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tplayer.setNextGraphics(new Graphics(86));\n\t\t\t\t\tplayer.getGlobalPlayerUpdater().transformIntoNPC(-1);\n\t\t\t\t\tplayer.setNextAnimation(new Animation(10070));\n\t\t\t\t\t//player.setNextForceMovement(new ForceMovement(new WorldTile(3084, 3485, 0), 0, 2));\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\t//player.setNextWorldTile(new WorldTile(3084, 3485, 0)); TODO find out why force movement doesn't work <.>\n\t\t\t\t\tNPC guard = World.findNPC(5941);\n\t\t\t\t\tsendNPCDialogue(4405, GOOFY_LAUGH, \"Looks like Dahmaroc had a sense of humour!\");\n\t\t \t // player.faceEntity(guard);\n\t\t \t // guard.faceEntity(player);\n\t\t\t\t\tplayer.unlock();\n\t\t\t\t\tstage = 99;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tphase++;\n\t\t\t}\n\t\t}, 0, 2);\n\t}",
"void onRespawned(Need need, NeedLevel level, PlayerEntity player, PlayerEntity oldPlayer);",
"@Override\n\tpublic boolean canRespawnHere()\n\t{\n\t\treturn false;\n\t}",
"void movePlayerInDirection(Direction direction) throws\r\n PlayerKilledException, RecoverableException;",
"private boolean try2GetBluePlayerFromHome(Player player)\n {\n try\n {\n BluePlayer bluePlayer = (BluePlayer) player;\n if (BluePlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //BluePlayer.setNumber_of_buttons_allowed(BluePlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }",
"public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }",
"public void ensureTeleportBreathable(Entity e) {\r\n\r\n // Not if in spectator mode\r\n if(e instanceof Player) {\r\n if(((Player)e).getGameMode() == GameMode.SPECTATOR)\r\n return;\r\n }\r\n\r\n Location loc = e.getLocation();\r\n int x = loc.getBlockX();\r\n int z = loc.getBlockZ();\r\n int height = (int)Math.ceil(e.getHeight());\r\n\r\n // Check for sufficient air before teleporting player\r\n for(int i = 0; i < height; i++) {\r\n\r\n // Calculate y level\r\n int y = (worldToIsBelow)\r\n ? yTo - i - 1\r\n : yTo + i + 1;\r\n\r\n // Get block\r\n Block block = worldTo.getBlockAt(x, y, z);\r\n\r\n // Determine if breathable and make breathable if not\r\n if(!BreathableBlocks.isBreathable(block.getType()))\r\n block.setType(Material.AIR);\r\n }\r\n }",
"private boolean try2GetRedPlayerFromHome(Player player)\n {\n try\n {\n RedPlayer redPlayer = (RedPlayer) player;\n if (RedPlayer.getNumber_of_buttons_allowed() > 0)\n {\n ludo.getPlayerFromHome(player);\n //RedPlayer.setNumber_of_buttons_allowed(RedPlayer.decrementNumberOfAllowedPlayers());\n return true;\n }\n return false;\n }\n catch (Exception e)\n {\n return false;\n }\n }",
"public Object call() throws Exception {\n player.setX(sendPosition.getX());\r\n player.setY(sendPosition.getY());\r\n return null;\r\n }",
"public boolean canTeleport(Entity t) {\r\n if (getDirection() == Direction.EAST && (t.getLocation().getX() - getLocation().getX()) < 4 && (t.getLocation().getX() - getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.WEST && (getLocation().getX() - t.getLocation().getX()) < 4 && (getLocation().getX() - t.getLocation().getX()) > -1 && (t.getLocation().getY() - getLocation().getY()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.NORTH && (t.getLocation().getY() - getLocation().getY()) < 4 && (t.getLocation().getY() - getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n if (getDirection() == Direction.SOUTH && (getLocation().getY() - t.getLocation().getY()) < 4 && (getLocation().getY() - t.getLocation().getY()) > -1 && (t.getLocation().getX() - getLocation().getX()) == 0) {\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean canRespawnHere()\n {\n return false;\n }",
"public static Boolean run(CommandSender sender, String alias, String[] args) {\r\n \t\tif (PlayerHelper.checkIsPlayer(sender)) {\r\n \t\t\tPlayer player = (Player)sender;\r\n \r\n \t\t\tif (!Utils.checkCommandSpam(player, \"tp-tploc\")) {\r\n \t\t\t\t// first of all, check permissions\r\n \t\t\t\tif (Permissions.checkPerms(player, \"cex.tploc\")) {\r\n \t\t\t\t\t// alternative usage, all 3 coords separated by comma in 1 argument\r\n \t\t\t \tif (args.length == 1) {\r\n \t\t\t \tif (args[0].contains(\",\")) {\r\n \t\t\t \t\targs = args[0].split(\",\");\r\n \t\t\t \t} else {\r\n\t\t\t \t\tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n\t\t\t \t\treturn true;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t \t\r\n \t\t\t if (args.length <= 0) {\r\n \t\t\t \t// no coordinates\r\n \t\t\t \tCommands.showCommandHelpAndUsage(sender, \"cex_tploc\", alias);\r\n \t\t\t } else if (!(args.length == 3 || args.length == 4)) {\r\n \t\t\t \t// too few or too many arguments\r\n \t\t\t \tLogHelper.showWarning(\"tpMissingCoords\", sender);\r\n \t\t\t \treturn false;\r\n \t\t\t } else if (!args[0].matches(CommandsEX.intRegex) || !args[1].matches(CommandsEX.intRegex) || !args[2].matches(CommandsEX.intRegex)) {\r\n \t\t\t \t// one of the coordinates is not a number\r\n \t\t\t \tLogHelper.showWarning(\"tpCoordsMustBeNumeric\", sender);\r\n \t\t\t } else {\r\n \t\t\t \ttry {\r\n \t\t\t \t\tPlayer target = null;\r\n \t\t\t \t\tif (args.length == 4){\r\n \t\t\t \t\t\tif (Bukkit.getPlayer(args[3]) != null){\r\n \t\t\t\t \t\t\ttarget = Bukkit.getPlayer(args[3]);\r\n \t\t\t\t \t\t} else {\r\n \t\t\t\t \t\t\tLogHelper.showInfo(\"invalidPlayer\", player, ChatColor.RED);\r\n \t\t\t\t \t\t\treturn true;\r\n \t\t\t\t \t\t}\r\n \t\t\t \t\t} else {\r\n \t\t\t \t\t\ttarget = player;\r\n \t\t\t \t\t}\r\n \r\n \t\t\t \t\tdelayedTeleport(target, new Location(player.getWorld(), new Double(args[0]), new Double(args[1]), new Double(args[2])));\r\n \t\t\t \t\t\r\n \t\t\t \t\tLogHelper.showInfo(\"tpLocMsgToTarget#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.AQUA);\r\n \t\t\t \t\tif (player != target){\r\n \t\t\t \t\t\tLogHelper.showInfo(\"tpLocSuccess#####[\" + target.getName() + \" #####tpLocToCoords#####[\" + args[0].toString() + \" \" + args[1].toString() + \" \" + args[2].toString(), sender, ChatColor.GREEN);\r\n \t\t\t \t\t}\r\n \t\t\t \t} catch (Throwable e) {\r\n \t\t\t \t\tLogHelper.showWarning(\"internalError\", sender);\r\n \t\t\t \t\tLogHelper.logSevere(\"[CommandsEX]: TPLOC returned an unexpected error for player \" + player.getName() + \".\");\r\n \t\t\t \t\tLogHelper.logDebug(\"Message: \" + e.getMessage() + \", cause: \" + e.getCause());\r\n \t\t\t \t\te.printStackTrace();\r\n \t\t\t \t\treturn false;\r\n \t\t\t \t}\r\n \t\t\t }\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n return true;\r\n \t}",
"public abstract boolean attemptMove(Player currentPlayerObj, Coordinate move);",
"public void tick() {\n super.tick();\n BlockPos blockpos = this.dataManager.get(ATTACHED_BLOCK_POS).orElse((BlockPos)null);\n if (blockpos == null && !this.world.isRemote) {\n blockpos = this.getPosition();\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n }\n\n if (this.isPassenger()) {\n blockpos = null;\n float f = this.getRidingEntity().rotationYaw;\n this.rotationYaw = f;\n this.renderYawOffset = f;\n this.prevRenderYawOffset = f;\n this.clientSideTeleportInterpolation = 0;\n } else if (!this.world.isRemote) {\n BlockState blockstate = this.world.getBlockState(blockpos);\n if (!blockstate.isAir(this.world, blockpos)) {\n if (blockstate.isIn(Blocks.MOVING_PISTON)) {\n Direction direction = blockstate.get(PistonBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction))) {\n blockpos = blockpos.offset(direction);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else if (blockstate.isIn(Blocks.PISTON_HEAD)) {\n Direction direction3 = blockstate.get(PistonHeadBlock.FACING);\n if (this.world.isAirBlock(blockpos.offset(direction3))) {\n blockpos = blockpos.offset(direction3);\n this.dataManager.set(ATTACHED_BLOCK_POS, Optional.of(blockpos));\n } else {\n this.tryTeleportToNewPosition();\n }\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n\n Direction direction4 = this.getAttachmentFacing();\n if (!this.func_234298_a_(blockpos, direction4)) {\n Direction direction1 = this.func_234299_g_(blockpos);\n if (direction1 != null) {\n this.dataManager.set(ATTACHED_FACE, direction1);\n } else {\n this.tryTeleportToNewPosition();\n }\n }\n }\n\n float f1 = (float)this.getPeekTick() * 0.01F;\n this.prevPeekAmount = this.peekAmount;\n if (this.peekAmount > f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount - 0.05F, f1, 1.0F);\n } else if (this.peekAmount < f1) {\n this.peekAmount = MathHelper.clamp(this.peekAmount + 0.05F, 0.0F, f1);\n }\n\n if (blockpos != null) {\n if (this.world.isRemote) {\n if (this.clientSideTeleportInterpolation > 0 && this.currentAttachmentPosition != null) {\n --this.clientSideTeleportInterpolation;\n } else {\n this.currentAttachmentPosition = blockpos;\n }\n }\n\n this.forceSetPosition((double)blockpos.getX() + 0.5D, (double)blockpos.getY(), (double)blockpos.getZ() + 0.5D);\n double d2 = 0.5D - (double)MathHelper.sin((0.5F + this.peekAmount) * (float)Math.PI) * 0.5D;\n double d0 = 0.5D - (double)MathHelper.sin((0.5F + this.prevPeekAmount) * (float)Math.PI) * 0.5D;\n if (this.isAddedToWorld() && this.world instanceof net.minecraft.world.server.ServerWorld) ((net.minecraft.world.server.ServerWorld)this.world).chunkCheck(this); // Forge - Process chunk registration after moving.\n Direction direction2 = this.getAttachmentFacing().getOpposite();\n this.setBoundingBox((new AxisAlignedBB(this.getPosX() - 0.5D, this.getPosY(), this.getPosZ() - 0.5D, this.getPosX() + 0.5D, this.getPosY() + 1.0D, this.getPosZ() + 0.5D)).expand((double)direction2.getXOffset() * d2, (double)direction2.getYOffset() * d2, (double)direction2.getZOffset() * d2));\n double d1 = d2 - d0;\n if (d1 > 0.0D) {\n List<Entity> list = this.world.getEntitiesWithinAABBExcludingEntity(this, this.getBoundingBox());\n if (!list.isEmpty()) {\n for(Entity entity : list) {\n if (!(entity instanceof ShulkerEntity) && !entity.noClip) {\n entity.move(MoverType.SHULKER, new Vector3d(d1 * (double)direction2.getXOffset(), d1 * (double)direction2.getYOffset(), d1 * (double)direction2.getZOffset()));\n }\n }\n }\n }\n }\n\n }",
"private boolean attempt2GetPlayerFromHomeSucceds(Player player)\n {\n boolean blu = false;\n boolean red = false;\n boolean green = false;\n boolean yellow = false;\n if (player.getSteps_moved() == 0 && getValue_from_die() == 6)\n {\n if (getPerson_to_play() == 1)\n {\n blu = try2GetBluePlayerFromHome(player);\n if (blu)\n {\n BlueEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 2)\n {\n red = try2GetRedPlayerFromHome(player);\n if (red)\n {\n RedEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 3)\n {\n green = try2GetGreenPlayerFromHome(player);\n if (green)\n {\n GreenEatsPlayer(player);\n }\n }\n else if (getPerson_to_play() == 4)\n {\n yellow = try2GetYellowPlayerFromHome(player);\n if (yellow)\n {\n YellowEatsPlayer(player);\n }\n }\n\n\n if (blu || red || green || yellow)\n {\n value_from_die = 0;\n ludo.setDrawScoreAllowed(false);\n playPlayerHasMovedMusic();\n return true;\n }\n }\n return false;\n }",
"public boolean movePlayer(Player p, Direction d) {\n\n\t\tLocation playerLoc = p.getLocation();\n\t\tTile playerTil = p.getTile();\n\t\tPosition playerPos = playerTil.getPos();\n\n\t\tTile newTile = null;\n\n\t\tswitch (d) {\n\n\t\tcase NORTH:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.NORTH);\n\t\t\tp.setFacing(Direction.NORTH);\n\t\t\tbreak;\n\t\tcase EAST:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.EAST);\n\t\t\tp.setFacing(Direction.EAST);\n\t\t\tbreak;\n\t\tcase WEST:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.WEST);\n\t\t\tp.setFacing(Direction.WEST);\n\t\t\tbreak;\n\t\tcase SOUTH:\n\t\t\tnewTile = playerLoc.getTileInDirection(playerPos, Direction.SOUTH);\n\t\t\tp.setFacing(Direction.SOUTH);\n\t\t\tbreak;\n\t\t}\n\n\t\tif (newTile != null) {\n\t\t\tif (newTile.getGameObject() == null) {\n\t\t\t\tif (newTile instanceof WaterTile) {\n\t\t\t\t\tif (!p.getHasFloatingDevice()) {\n\t\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\t\"It's deep blue and cold as ice, perhaps you require something to float on\", p);\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (newTile instanceof DoorOutTile) {\n\t\t\t\t\tDoorOutTile dot = (DoorOutTile) newTile;\n\n\t\t\t\t\tif (board.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos())\n\t\t\t\t\t\t\t.getGameObject() != null) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t\tplayerTil.setGameObject(null);\n\n\t\t\t\t\tp.setLocation(dot.getOutLocationID());\n\t\t\t\t\tp.setTile(board.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos()));\n\n\t\t\t\t\tboard.getLocationById(dot.getOutLocationID()).getTileAtPosition(dot.getDoorPos()).setGameObject(p);\n\t\t\t\t\tp.setFacing(Direction.SOUTH);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tplayerTil.setGameObject(null);\n\t\t\t\tnewTile.setGameObject(p);\n\t\t\t\tp.setTile(newTile);\n\t\t\t\tp.setLocation(board.getLocationById(newTile.getLocationID()));\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\ttriggerInteraction(p, newTile);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"@Listener\n public void onPlayerRespawnPost(final RespawnPlayerEvent.Post event)\n {\n ServerPlayer serverPlayer = event.entity();\n if (HOME_TELEPORT_PLAYER_UUIDS.contains(serverPlayer.uniqueId()))\n {\n HOME_TELEPORT_PLAYER_UUIDS.remove(serverPlayer.uniqueId());\n Faction faction = getPlugin().getFactionLogic().getFactionByPlayerUUID(serverPlayer.uniqueId())\n .orElse(null);\n\n if(faction == null)\n return;\n\n FactionHome factionHome = faction.getHome();\n if (factionHome == null)\n {\n serverPlayer.sendMessage(PluginInfo.ERROR_PREFIX.append(messageService.resolveComponentWithMessage(\"error.home.could-not-spawn-at-faction-home-it-may-not-be-set\")));\n return;\n }\n\n ServerWorld world = WorldUtil.getWorldByUUID(factionHome.getWorldUUID()).orElse(null);\n if (world != null)\n {\n ServerLocation safeLocation = Sponge.server().teleportHelper().findSafeLocation(ServerLocation.of(world, factionHome.getBlockPosition()))\n .orElse(ServerLocation.of(world, factionHome.getBlockPosition()));\n serverPlayer.setLocation(safeLocation);\n }\n else\n {\n serverPlayer.sendMessage(PluginInfo.ERROR_PREFIX.append(messageService.resolveComponentWithMessage(\"error.home.could-not-spawn-at-faction-home-it-may-not-be-set\")));\n }\n }\n }",
"public void giveUp() {\n if (!finished)\n player.kill();\n }",
"@Override\n\tpublic boolean canRespawnHere() {\n\t\treturn true;\n\t}",
"public boolean canRespawnHere() {\n\t\treturn false;\n\t}",
"public void randomTeleport() {\n Random random = new Random(seed);\n seed = random.nextInt(10000);\n int randomY = RandomUtils.uniform(random, 0, worldHeight);\n int randomX = RandomUtils.uniform(random, 0, worldWidth);\n int randomDirection = RandomUtils.uniform(random, 0, 4);\n move(randomX, randomY);\n turn(randomDirection);\n }",
"@Command(\n aliases = { \"waypoints\", \"waypoint\", \"wp\" },\n usage = \"disableteleport\",\n desc = \"Disables teleportation when stuck (temporary command)\",\n modifiers = { \"disableteleport\" },\n min = 1,\n max = 1,\n permission = \"citizens.waypoints.disableteleport\")\n public void disableTeleporting(CommandContext args, CommandSender sender, NPC npc) throws CommandException {\n npc.getNavigator().getDefaultParameters().stuckAction(null);\n Messaging.sendTr(sender, Messages.WAYPOINT_TELEPORTING_DISABLED);\n }",
"static void pickup(Player player, String what) {\n if (player.getLocation().contains(what)) {\n Thing thing = player.pickup(what);\n if (thing != null) {\n System.out.println(\"You now have \" + thing);\n }\n else {\n System.out.println(\"You can't carry that. You may need to drop something first.\");\n }\n }\n else {\n System.out.println(\"I don't see a \" + what);\n }\n }",
"public abstract boolean doComputerMove(Player player);"
] | [
"0.76997197",
"0.71504825",
"0.6882174",
"0.68065476",
"0.67839545",
"0.67223567",
"0.6711288",
"0.669607",
"0.66434395",
"0.6611102",
"0.6597856",
"0.65810806",
"0.65140986",
"0.64137894",
"0.6334881",
"0.62953496",
"0.62780786",
"0.6252449",
"0.6248191",
"0.62175447",
"0.6216834",
"0.6181684",
"0.6171357",
"0.6130234",
"0.6130008",
"0.6111172",
"0.6045089",
"0.60209936",
"0.60053253",
"0.5994575",
"0.59685236",
"0.59161973",
"0.59107643",
"0.5906173",
"0.5893543",
"0.58514136",
"0.58460736",
"0.584597",
"0.5844821",
"0.58346426",
"0.57992816",
"0.577643",
"0.5755455",
"0.5747575",
"0.57452875",
"0.5743029",
"0.57345337",
"0.5727197",
"0.570077",
"0.5697917",
"0.5664227",
"0.5664227",
"0.5654076",
"0.5653333",
"0.5645775",
"0.56430274",
"0.56401026",
"0.56357664",
"0.56339425",
"0.56075615",
"0.5607096",
"0.5602585",
"0.5598368",
"0.5589324",
"0.5584038",
"0.55606127",
"0.55588627",
"0.55402005",
"0.55305403",
"0.5529712",
"0.5525443",
"0.55215216",
"0.5517843",
"0.55022734",
"0.5501098",
"0.5498229",
"0.54965216",
"0.5489682",
"0.54820275",
"0.546899",
"0.5465426",
"0.54636115",
"0.5462397",
"0.5461482",
"0.54558283",
"0.5451277",
"0.54506767",
"0.54336214",
"0.54314506",
"0.54238355",
"0.5411514",
"0.53938705",
"0.538307",
"0.53825724",
"0.5372694",
"0.53716",
"0.53690153",
"0.5361325",
"0.5360499",
"0.5355316"
] | 0.7023411 | 2 |
Get the target block that is NOT air in the line of sight of a player | public static Block getTargetBlock(LivingEntity entity, int maxDistance) throws CommandException {
BlockIterator iterator = new BlockIterator(entity, maxDistance);
while (iterator.hasNext()) {
Block foundBlock = iterator.next();
if (foundBlock.getType() != Material.AIR) {
return foundBlock;
}
}
throw new CommandException("You aren't looking at a block (or out of range)");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void scanForBlockFarAway() {\r\n\t\tList<MapLocation> locations = gameMap.senseNearbyBlocks();\r\n\t\tlocations.removeAll(stairs);\r\n\t\tif (locations.size() == 0) {\r\n\t\t\tblockLoc = null;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/* remove blocks that can be sensed */\r\n\t\tIterator<MapLocation> iter = locations.iterator();\r\n\t\twhile(iter.hasNext()) {\r\n\t\t\tMapLocation loc = iter.next();\r\n\t\t\tif (myRC.canSenseSquare(loc))\r\n\t\t\t\titer.remove();\r\n\t\t} \r\n\t\t\r\n\t\tlocations = navigation.sortLocationsByDistance(locations);\r\n\t\t//Collections.reverse(locations);\r\n\t\tfor (MapLocation block : locations) {\r\n\t\t\tif (gameMap.get(block).robotAtLocation == null){\r\n\t\t\t\t/* this location is unoccupied */\r\n\t\t\t\tblockLoc = block;\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tblockLoc = null;\r\n\t}",
"private Location getPlayersLightBlockLocation(final Player player) {\r\n final Location location = player.getLocation();\r\n final World world = location.getWorld();\r\n\r\n // the block to be replaced is beneath the player's feet\r\n location.setY(location.getY() - 1);\r\n\r\n // skip undesirable blocks, e.g. air, fences, etc\r\n while (config.getIgnoredBlocks().contains(world.getBlockAt(location).getType())) {\r\n location.setY(location.getY() - 1);\r\n }\r\n return location;\r\n }",
"public List < Block > getLineOfSight ( Set < Material > transparent , int maxDistance ) {\n\t\treturn invokeSafe ( \"getLineOfSight\" ,\n\t\t\t\t\t\t\tnew Class[] { Set.class , int.class } , transparent , maxDistance );\n\t}",
"private BlockPos stuckInBlock(AltoClef mod) {\n BlockPos p = mod.getPlayer().getBlockPos();\n if (isAnnoying(mod, p)) return p;\n if (isAnnoying(mod, p.up())) return p.up();\n BlockPos[] toCheck = generateSides(p);\n for (BlockPos check : toCheck) {\n if (isAnnoying(mod, check)) {\n return check;\n }\n }\n BlockPos[] toCheckHigh = generateSides(p.up());\n for (BlockPos check : toCheckHigh) {\n if (isAnnoying(mod, check)) {\n return check;\n }\n }\n return null;\n }",
"private boolean UpdateWithoutCarriedBlock()\r\n {\r\n if ( rand.nextInt(20) == 0 )\r\n {\r\n int i = MathHelper.floor_double( ( posX - 3D ) + rand.nextDouble() * 6D );\r\n int j = MathHelper.floor_double( posY - 1D + rand.nextDouble() * 7D );\r\n int k = MathHelper.floor_double( ( posZ - 3D ) + rand.nextDouble() * 6D );\r\n \r\n int l1 = worldObj.getBlockId( i, j, k );\r\n\r\n if ( CanPickUpBlock( i, j, k ) )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockCollectAuxFXID, i, j, k, l1 + ( worldObj.getBlockMetadata( i, j, k ) << 12 ) );\r\n\t\t \r\n setCarried( worldObj.getBlockId( i, j, k ) );\r\n setCarryingData( worldObj.getBlockMetadata( i, j, k ) );\r\n worldObj.setBlockToAir( i, j, k );\r\n }\r\n }\r\n else if ( worldObj.provider.dimensionId == 1 )\r\n {\r\n \t// Endermen in the end without a block in hand will eventually teleport back to the overworld\r\n \t\r\n \t\tif ( rand.nextInt( 9600 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n }\r\n \r\n return true;\r\n }",
"private boolean isTargetTerritoryOneBlockAway() {\n for(Territory territory:getCurrentPlayerTerritories()) {\n if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == 1) {\n int minID = Math.min(territory.getID(),selectedTerritoryByPlayer.getID());\n int maxID = Math.max(territory.getID(),selectedTerritoryByPlayer.getID());\n if(maxID % gameDescriptor.getColumns() == 0)\n return true;\n if((minID % gameDescriptor.getColumns() != 0 )\n && (minID / gameDescriptor.getColumns() == maxID / gameDescriptor.getColumns())) {\n return true;\n }\n }\n else if(Math.abs(territory.getID()-selectedTerritoryByPlayer.getID()) == gameDescriptor.getColumns())\n return true;\n }\n return false;\n }",
"@SideOnly(Side.CLIENT)\r\n\tpublic EnumWorldBlockLayer getBlockLayer()\r\n\t{\r\n\t\treturn EnumWorldBlockLayer.CUTOUT_MIPPED;\r\n\t}",
"private Cell getSnowballTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n\n for (int i = currentWorm.position.x - 5; i <= currentWorm.position.x + 5; i++) {\n for (int j = currentWorm.position.y - 5; j <= currentWorm.position.y + 5; j++) {\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getSurroundingCells(i, j);\n affectedCells.add(blocks[j][i]);\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.roundsUntilUnfrozen == 0 && enemyWorm.health > 0)\n wormInRange++;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }",
"public Player getOppositePlayer();",
"public Stopper isCellBlocked (int x, int y){\n\t\tif(gameMap[x][y].getTile().isBlocking()) {\n\t\t\tif(gameMap[x][y].getTile() instanceof CrackedWall) {\n\t\t\t\treturn Stopper.C_WALL;\n\t\t\t}\n\t\t\treturn Stopper.WALL;\n\t\t}\n\t\telse if (gameMap[x][y].getObject() instanceof Block) {\n\t\t\treturn Stopper.BLOCK;\n\t\t}\n\t\telse if (gameMap[x][y].getObject() instanceof Unit) {\n\t\t\treturn Stopper.UNIT;\n\t\t}\n\t\telse {\n\t\t\treturn Stopper.NO;\n\t\t}\n\t}",
"abstract public Unit getDefendingUnit(Unit attacker);",
"public Block getTargetBlockExact ( int maxDistance ) {\n\t\treturn extract ( handle -> handle.getTargetBlockExact ( maxDistance ) );\n\t}",
"public Block getBlockBelow() {\r\n\t\tif(onGround) {\r\n\t\t\tVector4f hitbox = getHitBox(worldPos);\r\n\t\t\tfloat x = hitbox.x + (hitbox.z - hitbox.x) / 2f;\r\n\t\t\tfloat y = hitbox.y - 0.1f;\r\n\t\t\tBlock b = BlockManager.getBlock(new Vector2f(x, y));\r\n\t\t\treturn b;\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public boolean blockIsNotSafe(World world, double x, double y, double z) {\r\n if (world.getBlockAt((int) Math.floor(x), (int) Math.floor(y),(int) Math.floor(z)).getType() != Material.AIR \r\n || world.getBlockAt((int) Math.floor(x),(int) Math.floor(y + 1), (int) Math.floor(z)).getType() != Material.AIR)\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.LAVA))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.STATIONARY_LAVA))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.FIRE))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y),(int) Math.floor(z)).getType() == Material.FIRE))\r\n return true;\r\n \r\n if (blockIsAboveAir(world, x, y, z))\r\n return true;\r\n\r\n return false;\r\n }",
"private Cell searchEmptySurrounding(){\n List <Cell> blocks = getSurroundingCells(currentWorm.position.x, currentWorm.position.y);\n for (Cell block : blocks){\n if(!isCellOccupied(block)) return block;\n }\n return null;\n }",
"LocalMaterialData getGroundBlock();",
"public Location getSafePoint(Location location, boolean allowWater, int eyeHeight) {\r\n\t\tChunk chunk = location.getChunk();\r\n\t\tChunkSnapshot chunkShot = chunk.getChunkSnapshot();\r\n\t\t//int x = Math.abs(location.getBlockX() % 16);\r\n\t\tint x = Math.abs(location.getBlockX() - (location.getBlockX() >> 4) * 16);\r\n\t\tint y = Math.min(Math.max(location.getBlockY() + 1, location.getWorld().getMinHeight()), location.getWorld().getMaxHeight() + 1); // by default check block at feet\r\n\t\tint z = Math.abs(location.getBlockZ() - (location.getBlockZ() >> 4) * 16); \r\n\t\t// location is level with block borders, get the block below player\r\n\t\tif(Math.abs(location.getY() - (int)location.getY()) < 0.01) --y;\r\n\t\t\r\n\t\t// If in air, scan below until ground\r\n\t\tfor(int tempY = y; tempY > location.getWorld().getMinHeight(); --tempY) {\r\n\t\t\tif(chunkShot.getBlockType(x, tempY - 1, z).isSolid()) {\r\n\t\t\t\ty = tempY;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// check if the location in the chunk is safe\r\n\t\tSAFENESS safeness = null;\r\n\t\t\r\n\t\tif(y+eyeHeight <= location.getWorld().getMaxHeight())\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, y-1, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, y, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, (y+eyeHeight), z));\r\n\t\telse if(y+eyeHeight > location.getWorld().getMaxHeight() && y <= location.getWorld().getMaxHeight())\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, y-1, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, y, z));\r\n\t\telse\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, y-1, z));\r\n\t\t\r\n\t\t// TODO CHECK IF MAX HEIGHT IS 255 \r\n\t\t// 256 is maxheight + 1\r\n\t\t\r\n\t\t// if safe, return the given location\r\n\t\tif(safeness == SAFENESS.SAFE)\r\n\t\t\treturn location;\r\n\t\t\r\n\t\t// get the highest location to return if previous was unsafe\r\n\t\tint highestY = chunkShot.getHighestBlockYAt(x, z)+1;\r\n\t\t// no blocks at the axis\r\n\t\tif(highestY < 1) {\r\n\t\t\treturn null;\r\n\t\t} else if(highestY + eyeHeight < location.getWorld().getMaxHeight() + 1) {\r\n\t\t\t// normal location in world\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, highestY-1, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, highestY, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, (highestY+eyeHeight), z));\r\n\t\t} else if(highestY+eyeHeight > location.getWorld().getMaxHeight() && highestY <= location.getWorld().getMaxHeight()){\r\n\t\t\t// eye height above build limit, don't check eyeheight\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, highestY-1, z), \r\n\t\t\t\t\tchunkShot.getBlockType(x, highestY, z));\r\n\t\t} else {\r\n\t\t\t// highest block at build limit\r\n\t\t\tsafeness = isSafe(allowWater, chunkShot.getBlockType(x, highestY-1, z));\r\n\t\t}\r\n\t\t\r\n\t\t// a safe location found, return it\r\n\t\tif(safeness == SAFENESS.SAFE)\r\n\t\t\treturn new Location(location.getWorld(), location.getBlockX()+0.5, highestY, location.getBlockZ()+0.5, \r\n\t\t\t\t\tlocation.getYaw(), location.getPitch());\r\n\t\t\r\n\t\t// scan all the blocks below until a safe location is found\r\n\t\twhile(highestY > 1) {\r\n\t\t\t--highestY;\r\n\t\t\t\r\n\t\t\tMaterial blockBelowFeet = chunkShot.getBlockType(x, highestY-1, z);\r\n\t\t\tMaterial blockAtFeet = chunkShot.getBlockType(x, highestY, z);\r\n\t\t\t\r\n\t\t\tif((highestY + eyeHeight) <= location.getWorld().getMaxHeight()) {\r\n\t\t\t\tMaterial blockAtHead = chunkShot.getBlockType(x, (highestY+eyeHeight), z);\r\n\t\t\t\tif(SAFENESS.SAFE == isSafe(allowWater, blockBelowFeet, blockAtFeet, blockAtHead))\r\n\t\t\t\t\treturn new Location(location.getWorld(), location.getBlockX()+0.5, highestY, location.getBlockZ()+0.5, location.getYaw(), location.getPitch());\r\n\t\t\t} else {\r\n\t\t\t\tif(SAFENESS.SAFE == isSafe(allowWater, blockBelowFeet, blockAtFeet))\r\n\t\t\t\t\treturn new Location(location.getWorld(), location.getBlockX()+0.5, highestY, location.getBlockZ()+0.5, location.getYaw(), location.getPitch());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t// no safe location found\r\n\t\treturn null;\r\n\t}",
"public static int isVehicleInSight(Player curr) {\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n if (bodyDir == UP) {\n dirs.add(UP);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(DOWN);\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(LEFT);\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n dirs.add(RIGHT);\n dirs.add(LEFT);\n if (curr.head360())\n dirs.add(UP);\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n dirs.add(UP);\n dirs.add(DOWN);\n if (curr.head360())\n dirs.add(RIGHT);\n }\n\n if (dirs == null || dirs.size() == 0)\n return -1;\n for (int vi = 0; vi < players.length; vi++) {\n if (players[vi] == null || players[vi].getName().equals(\"NONE\") || (players[vi] instanceof Monster)) //we don't want the AI monster to consider itself or other monsters a target\n continue;\n Player veh = players[vi];\n boolean isAir = veh.isFlying();\n int vR = veh.getRow();\n int vC = veh.getCol();\n if (veh.getName().endsWith(\"civilian\"))\n continue;\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 1; r--) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (isAir && r == vR && curr.getCol() == vC)\n return dir + 10;\n if (r == vR && curr.getCol() == vC)\n return dir;\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length - 1; c++) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 1; c--) {\n if (isAir && c == vC && curr.getRow() == vR)\n return dir + 10;\n if (curr.getRow() == vR && c == vC)\n return dir;\n }\n }\n if (skip)\n continue;\n }\n }\n return -1;\n }",
"public Block getTargetBlockExact ( int maxDistance , FluidCollisionMode fluidCollisionMode ) {\n\t\treturn extract ( handle -> handle.getTargetBlockExact ( maxDistance , fluidCollisionMode ) );\n\t}",
"public static Block getTargetedBlock(LivingEntity entity, double range, Collection<Material> transparent) {\r\n\t\tLocation eyeLocation = entity.getEyeLocation();\r\n\t\tVector direction = eyeLocation.getDirection();\r\n\t\tdirection.normalize();\r\n\r\n\t\tLocation loc = eyeLocation.clone();\r\n\t\tfor (double i = 0.0D; i <= range; i += 1.0D) {\r\n\t\t\tloc = eyeLocation.clone().add(direction.clone().multiply(i));\r\n\t\t\tBlock block = loc.getBlock();\r\n\t\t\tif (!transparent.contains(block.getType())) {\r\n\t\t\t\tif ((!transparent.isEmpty()) || (EnvironmentUtils.isSolid(block))) {\r\n\t\t\t\t\treturn block;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"public boolean inLineOfSight(){\n\t\t\n\t\tboolean keepGoing=true;\n\t\t\n\t\tfor (int i=0; i<this._movingTrainers.size(); i++){\n\t\t\tthis._LOSTrainer=i;\n\t\t\tkeepGoing=true;\n\t\t\t//within their line of sight\n\t\t\tif(this._movingTrainers.get(i)!=null && !this._movingTrainers.get(i).isDefeated()){\n\t\t\t\tfor (int j=0; j<this._movingTrainers.get(i).getLOS(); j++){\n\t\t\t\t\tif(keepGoing){\n\t\t\t\t\t\tint tx=this._movingTrainers.get(i).getXIndex();\n\t\t\t\t\t\tint ty=this._movingTrainers.get(i).getYIndex();\n\t\t\t\t\t\tint jx=0;\n\t\t\t\t\t\tint jy=0;\n\t\t\t\t\t\t\n\t\t\t\t\t\t//facing the right way\n\t\t\t\t\t\tswitch(this._movingTrainers.get(i).getDirection()){\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=1*j;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tjx=0;\n\t\t\t\t\t\t\t\tjy=-1*j;\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\tjx=1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tjx=-1*j;\n\t\t\t\t\t\t\t\tjy=0;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//What's in the way? if nothing and they see the player, return true.\n\t\t\t\t\t\tif((tx+jx)>=0 && (ty+jy)>=0){\n\t\t\t\t\t\t\tchar next= this._room._roomGrid[tx + jx][ty + jy];\n\t\t\t\t\t\t\tif(tx+jx==xObs && ty+jy==yObs){\n\t\t\t\t\t\t\t\tthis._interruptedTrainer=this._LOSTrainer;\n\t\t\t\t\t\t\t\tTrainer interrupted = this._movingTrainers.get(this._interruptedTrainer);\n\t\t\t\t\t\t\t\t//_busy=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//These two statements are for moving trainers who can interrupt. \n\t\t\t\t\t\t\t\tif(!interrupted.isStationary() && _gbs.npctick!=0){\n\t\t\t\t\t\t\t\t\treturn false;\n\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\twhile(!interrupted.isStationary() && !this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tinterrupted.setAvoidMethod(\"freeze\");\n\t\t\t\t\t\t\t\t\tinterrupted.setStationary(true);\n\t\t\t\t\t\t\t\t\tSysOut.print(\"Frozen\");\n\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\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif(interrupted.getXIndex()>this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs+1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs+1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getXIndex()<this.xObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(xObs-1==interrupted.getXIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs-1, yObs);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()>this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs+1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs+1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getYIndex()<this.yObs){\n\t\t\t\t\t\t\t\t\tinterrupted.clearDestinations();\n\t\t\t\t\t\t\t\t\tif(yObs-1==interrupted.getYIndex() && _tooCloseTrigger){\n\t\t\t\t\t\t\t\t\t\t_tooCloseWait=true;\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t\t_tooCloseTrigger=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tinterrupted.addDest(xObs, yObs-1);\n\t\t\t\t\t\t\t\t\tinterrupted.setFirstDest();\n\t\t\t\t\t\t\t\t\tinterrupted.setPause(false);\n\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\t////SysOut.print(\"HE SEES YOU WHEN YOU'RE SLEEPING: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//End the loop, return true.\n\t\t\t\t\t\t\t\tif(interrupted.getLOS()==0 || !interrupted.isStationary()){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=false;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse if (interrupted.getLOS()>0){\n\t\t\t\t\t\t\t\t\tthis._paintAlert=true;\n\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\t\n\t\t\t\t\t\t\t\t\n\t\n\t\t\t\t\t\t\t\tif(!this._approachTimer.isRunning()){\n\t\t\t\t\t\t\t\t\tthis._seenByNPC=true;\n\t\t\t\t\t\t\t\t\tif(interrupted.getGender() == 'M' && interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_M);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'F'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.TRAINER_APPROACH_F);\n\t\t\t\t\t\t\t\t\telse if(interrupted.getGender() == 'R'&& interrupted.getBelt()!=null)\n\t\t\t\t\t\t\t\t\t\tM2.playBG(M2.RIVAL_MUSIC);\n\t\t\t\t\t\t\t\t\tthis._approachTimer.start();\n\t\t\t\t\t\t\t\t\tthis._tooCloseTrigger=true;\n\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\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if((next==SURF && !_gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf())|| (next==SURF && _gbs.getSurf() && !this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==SURF && !_gbs.getSurf() && this._movingTrainers.get(this._LOSTrainer).canSurf()) || (next==NO && j!=0) || next==CUT){\n\t\t\t\t\t\t\t\t////SysOut.print(\"Something is in the way: \"+ _interruptedTrainer);\n\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int k=0; k<this._movingTrainers.size(); k++){\n\t\t\t\t\t\t\t\tif(tx+jx==this._movingTrainers.get(k).getXIndex() && ty+jy==this._movingTrainers.get(k).getYIndex() && j>0){\n\t\t\t\t\t\t\t\t\t////SysOut.print(\"Another trainer is in the way:\" + _interruptedTrainer);\n\t\t\t\t\t\t\t\t\t//Stop this iteration, move on.\n\t\t\t\t\t\t\t\t\tif(this._movingTrainers.get(k).isDefeated() && this._movingTrainers.get(k).getVanishing()){\n\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\telse{\n\t\t\t\t\t\t\t\t\t\tkeepGoing = false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t////SysOut.print(\"They don't see you.\");\n\t\treturn false;\n\t}",
"public static Vec3 findRandomTargetBlockTowards(EntityCreature aWaterMob, int xzFleeZoneSize, int yFleeZoneSize, Vec3 aTargetVectorPos, int aMinRangeXZ, int aMinDepth)\r\n{\r\n\r\n Vec3 _fleeingVector = Vec3.createVectorHelper(aTargetVectorPos.xCoord - aWaterMob.posX,aTargetVectorPos.yCoord - aWaterMob.posY,aTargetVectorPos.zCoord - aWaterMob.posZ);\r\n return findRandomTargetBlock(aWaterMob, xzFleeZoneSize, yFleeZoneSize,_fleeingVector,aMinRangeXZ,aMinDepth);\r\n}",
"public boolean tileBlocked(float xTile, float yTile)\r\n/* 117: */ {\r\n/* 118:131 */ return (!tileInBounds(xTile, yTile)) || (this.blocked[((int)xTile)][((int)yTile)] != 0);\r\n/* 119: */ }",
"protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != null && this.canEntityBeSeen(var1) ? var1 : null;\n }",
"public MapLocation getEnemySwarmTarget() {\n\t\tdouble a = Math.sqrt(vecEnemyX * vecEnemyX + vecEnemyY * vecEnemyY) + .001;\n\n\t\treturn new MapLocation((int) (vecEnemyX * 7 / a) + br.curLoc.x,\n\t\t\t\t(int) (vecEnemyY * 7 / a) + br.curLoc.y);\n\n\t}",
"public Character getNotActivePlayer() {\n\t\tif(this.getActivePlayer().equals(this.getPlayer1())) {\n\t\t\treturn this.getPlayer2();\n\t\t} else {\n\t\t\treturn this.getPlayer1();\n\t\t}\n\t}",
"private void cutoutBlocks(MetropolisGenerator generator, Cartesian v, Cartesian s, Material floor) {\n int xdir, ydir, zdir;\n xdir = s.X < 0 ? -1 : 1;\n ydir = s.Y < 0 ? -1 : 1;\n zdir = s.Z < 0 ? -1 : 1;\n \n for (int x = 0; Math.abs(x) < Math.abs(s.X); x += xdir) {\n for (int z = 0; Math.abs(z) < Math.abs(s.Z); z += zdir) {\n for (int y = 0; Math.abs(y) < Math.abs(s.Y); y += ydir) {\n generator.getWorld().getBlockAt(v.X + x, v.Y + y, v.Z + z).setType(Material.AIR);\n }\n Block below = generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z);\n if (!below.isEmpty()) {\n generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z).setType(floor);\n }\n }\n }\n }",
"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 List < Block > getLastTwoTargetBlocks ( Set < Material > transparent , int maxDistance ) {\n\t\treturn invokeSafe ( \"getLastTwoTargetBlocks\" ,\n\t\t\t\t\t\t\tnew Class[] { Set.class , int.class } , transparent , maxDistance );\n\t}",
"public GameEntity getTarget() {\r\n\t\tif(mode == RadarMode.LOCKED) return currentTarget; else return null;\r\n\t}",
"public static void blockMove(Player player) {\n Location location1 = (Location) plugin.getConfig().get(\"region1\");\n Location location2 = (Location) plugin.getConfig().get(\"region2\");\n\n int y = (location1.getBlockY() < location2.getBlockY() ? location2.getBlockY() : location1.getBlockY());\n\n for (Location location : blockPlace.redblockloc) {\n int x = location.getBlockX();\n int z = location.getBlockZ();\n new Location(player.getWorld(), x, y + 1, z).getBlock().setType(location.getBlock().getType());\n player.sendMessage(String.valueOf(location.getBlock().getType()));\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()==Material.WATER) {\n blockPlace.redblock.remove(location.getBlock().getType());\n }\n if(location.getBlock().getType()== Material.IRON_BLOCK) {\n blockPlace.redblock.add(location.getBlock());\n }\n location.getBlock().setType(Material.AIR);\n }\n\n for (Location location : blockPlace.blueblockloc) {\n int xb = location.getBlockX();\n int zb = location.getBlockZ();\n new Location(player.getWorld(), xb, y + 1, zb).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n if(location.getBlock().getType()==Material.AIR) {\n blockPlace.blueblock.remove(location.getBlock().getType());\n }\n }\n\n for (Location location : blockPlace.greenblockloc) {\n int xg = location.getBlockX();\n int zg = location.getBlockZ();\n new Location(player.getWorld(), xg, y + 1, zg).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n for (Location location : blockPlace.yellowblockloc) {\n int xy = location.getBlockX();\n int zy = location.getBlockZ();\n new Location(player.getWorld(), xy, y + 1, zy).getBlock().setType(location.getBlock().getType());\n location.getBlock().setType(Material.AIR);\n }\n }",
"private static boolean isIgnoredByMap(Block block) {\n return block.isPenetrable() && !block.isWater() && !block.getURI().toString().equals(\"engine:unloaded\");\n }",
"public Vector3 negateLocal () {\n return negate(this);\n }",
"@SuppressWarnings(\"unused\")\n\tprivate synchronized void excludePlayer() throws RemoteException\n\t{\n\t\tPlayerInterface pi;\n\t\tData privateData;\n\t\tData data = this.toExecute.data;\n\t\tPlayerInterface playerToExclude = this.toExecute.player;\n\n\t\tplayerToExclude.excludePlayer();\n\t}",
"public Player getOppositePlayer(){\n return this.oppositePlayer;\n }",
"public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int meta, float p_149727_7_, float p_149727_8_, float p_149727_9_)\n\t {\n//\t if (this.blockMaterial == Material.iron)\n//\t {\n//\t return false; //Allow items to interact with the door\n//\t }\n//\t else\n//\t {\t \t\n\t int i1 = this.func_150012_g(world, x, y, z);\n\t int j1 = i1 & 7;\n\t j1 ^= 4;\n\t int i = i1 & 3;\n//\t System.out.print(\" Direction :\");\n\t Block b=null;\n\t int x2=x;\n\t int y2=y;\n\t int z2=z;\n\t switch(i){\n\t case 0:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t}\n//\t \tSystem.out.print(\"WEST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(4, 2));\n\t \tbreak;\n\t case 1:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t}\n//\t \tSystem.out.print(\"NORTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(2, 2));\n\t \tbreak;\n\t case 2:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[3];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[3];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[2];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[2];\n\t \t}\n\t \t\n//\t \tSystem.out.print(\"EAST \"+Integer.toString(i, 2)+\" : \"+Integer.toString(5, 2));\n\t \tbreak;\n\t case 3:\n\t \tif( (i1 & 16)==16){//Left\n\t \t\tx2=x+Facing.offsetsXForSide[4];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[4];\n\t \t\t\n\t \t}else{//Right\n\t \t\tx2=x+Facing.offsetsXForSide[5];\n\t \t\ty2=y;\n\t \t\tz2=z+Facing.offsetsZForSide[5];\n\t \t}\n//\t \tSystem.out.print(\"SOUTH \"+Integer.toString(i, 2)+\" : \"+Integer.toString(3, 2));\n\t \tbreak;\n\t }\n\t b=world.getBlock(x2, y2, z2);\n//\t System.out.print(\" : \"+b+\" : \");\n\t\t\t\t/*\nDirection :SOUTH 11 : 100 Open :Open Y :1 Side :Right\nDirection :NORTH 01 : 010 Open :Open Y :1 Side :Left\nDirection :EAST 10 : 101 Open :Open Y :1 Side :Left\nDirection :WEST 00 : 100 Open :Open Y :1 Side :Left\n\t\t\t\t */\n//\t System.out.print(\" Open :\"+(((j1 & 4) >> 2)==0?\"Closed\":\"Open\"));\n//\t System.out.print(\" Y :\"+Integer.toBinaryString( (i1 & 8) >>3 ));\n//\t System.out.print(\" Side :\"+(((i1 & 16) >> 4)==0?\"Right\":\"Left\"));\n\t \n//\t System.out.println();\n\t \n\n\t if ((i1 & 8) == 0)\n\t {\n\t world.setBlockMetadataWithNotify(x, y, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2, z2, x2, y2, z2);\n\t }\n\t }\n\t else\n\t {\n\t world.setBlockMetadataWithNotify(x, y - 1, z, j1, 2);\n\t world.markBlockRangeForRenderUpdate(x, y - 1, z, x, y, z);\n\t if( b!=null && b==this){\n\t \tworld.setBlockMetadataWithNotify(x2, y2-1, z2, j1, 2);\n\t \t world.markBlockRangeForRenderUpdate(x2, y2-1, z2, x2, y2, z2);\n\t }\n\t }\n\n\t world.playAuxSFXAtEntity(player, 1003, x, y, z, 0);\n\t return true;\n//\t }\n\t }",
"Player getTableUser(Block b) {\n for (Map.Entry<UUID, Block> entry : tableBlocks.entrySet()) {\n if (entry.getValue().equals(b)) {\n return Bukkit.getPlayer(entry.getKey());\n }\n }\n return null; //if the block isnt linked to an enchanter\n }",
"private EntityLivingBase findPlayerToAttack() {\n EntityPlayer player = entity.worldObj.getClosestVulnerablePlayerToEntity(entity, aggroRange);\n if ( player != null && !player.capabilities.isCreativeMode && entity.canEntityBeSeen(player) )\n \treturn player;\n\n EntityLivingBase target = entity.getLastAttacker();\n if ( isTargetValid(target) && entity.canEntityBeSeen(target) )\n \treturn target;\n\n \treturn null;\n }",
"public Vector2f negateLocal ()\n {\n return negate(this);\n }",
"private Worm getFirstWormInRange() {\n\n Set<String> cells = constructFireDirectionLines(currentWorm.weapon.range)\n .stream()\n .flatMap(Collection::stream)\n .map(cell -> String.format(\"%d_%d\", cell.x, cell.y))\n .collect(Collectors.toSet());\n\n for (Worm enemyWorm : opponent.worms) {\n String enemyPosition = String.format(\"%d_%d\", enemyWorm.position.x, enemyWorm.position.y);\n if (cells.contains(enemyPosition) && enemyWorm.health > 0) {\n return enemyWorm;\n }\n }\n\n return null;\n }",
"public ChessBoardBlock findMovedBlock(int x, int y) {\r\n\t\tfor (int i=0; i<board.size(); i++) {\r\n\t\t\tChessBoardBlock b = board.get(order[i]);\r\n\t\t\tif ((x>=b.getX() && x<b.getX()+b.getWidth()) && (y>=b.getY() && y<b.getY()+b.getHeight())) {\r\n\t\t\t\treturn b;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"@Override\n protected Entity findPlayerToAttack() {\n EntityPlayer player = this.worldObj.getClosestVulnerablePlayerToEntity(this, 64.0);\n if (player != null) {\n if (this.shouldAttackPlayer(player)) {\n if (this.lookDelay++ == 5) {\n this.lookDelay = 0;\n return player;\n }\n }\n else {\n this.lookDelay = 0;\n }\n }\n return null;\n }",
"private boolean UpdateWithCarriedBlock()\r\n {\r\n \tint iCarriedBlockID = getCarried();\r\n \t\r\n \tif ( worldObj.provider.dimensionId == 1 ) \r\n \t{\r\n\t\t\t// we're in the end dimension with a block, and should attempt to place it\r\n\t\t\t\r\n int i = MathHelper.floor_double( posX ) + rand.nextInt( 5 ) - 2;\r\n int j = MathHelper.floor_double( posY ) + rand.nextInt( 7 ) - 3;\r\n int k = MathHelper.floor_double( posZ ) + rand.nextInt( 5 ) - 2;\r\n \r\n\t\t\tint iWeight = GetPlaceEndstoneWeight( i, j, k );\r\n\t\t\t\r\n if ( rand.nextInt( m_iMaxEnstonePlaceWeight >> 9 ) < iWeight )\r\n {\r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderBlockPlaceAuxFXID, i, j, k, iCarriedBlockID + ( getCarryingData() << 12 ) );\r\n\t\t \r\n worldObj.setBlockAndMetadataWithNotify( i, j, k, getCarried(), getCarryingData());\r\n \r\n setCarried(0);\r\n }\r\n \t}\r\n \telse\r\n \t{\r\n\t\t\t// \teventually the enderman should teleport away to the end with his block\r\n\t\t\t\r\n \t\tif ( rand.nextInt( 2400 ) == 0 )\r\n \t\t{\r\n \t\t\t// play dimensional travel effects\r\n \t\t\t\r\n int i = MathHelper.floor_double( posX );\r\n int j = MathHelper.floor_double( posY ) + 1;\r\n int k = MathHelper.floor_double( posZ );\r\n \r\n\t\t worldObj.playAuxSFX( FCBetterThanWolves.m_iEnderChangeDimensionAuxFXID, i, j, k, 0 );\r\n\t\t \r\n setDead();\r\n \r\n return false;\r\n \t\t}\r\n \t}\r\n \t\r\n \treturn true;\r\n }",
"@SideOnly(Side.CLIENT)\n\tpublic static RayTraceResult getPlayerMouseOverBlock(double dist, float duringTicks)\n\t{\n\t EntityPlayer player = ClientProxy.getClientPlayer();\n\t\t\n\t\tVec3d vec3 = player.getPositionEyes(duringTicks);\n\t Vec3d vec31 = player.getLook(duringTicks);\n\t Vec3d vec32 = vec3.addVector(vec31.xCoord * dist, vec31.yCoord * dist, vec31.zCoord * dist);\n\t \n\t //參數: entity位置, entity視線最遠位置, 停止在液體方塊上, 忽略沒有AABB的方塊, 回傳距離內最遠的不可碰撞方塊\n\t return player.world.rayTraceBlocks(vec3, vec32, true, false, false);\n\t}",
"@Override\n\tpublic boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int p_149727_6_, float p_149727_7_, float p_149727_8_, float p_149727_9_) {\n\t\tif (player.getHeldItem() != null) {\n\t\t\tif (player.getHeldItem().getItem() == Items.iron_pickaxe) {\n\t\t\t\tplayer.getHeldItem().damageItem(100, player);\n\t\t\t\tfor (int i = -10; i < 10; i++) {// xval\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x + i, y + j, z);\n\t\t\t\t}\n\n\t\t\t\tfor (int i = -10; i < 10; i++) {\n\t\t\t\t\tfor (int j = 0; j < 2; j++)\n\t\t\t\t\t\t// yval\n\t\t\t\t\t\tworld.setBlockToAir(x, y + j, z + i);\n\t\t\t\t}\n\t\t\t\t// player.getHeldItem().damageItem(100, player);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} else {//if hand empty\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"[NausicaaMod]This block digs 10x2x1 mineshafts in all 4 directions\"));\n\t\t\tplayer.addChatMessage(new ChatComponentText(\"**DISTROYS BLOCK WITH NO DROPS**\"));\n\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isPassenger(Player player) {\n\t\tBlock[] blocks = this.blocks.clone();\n\t\tfor (int i = 0; i < blocks.length; i++) {\n\t\t\tBlock block = blocks[i];\n\t\t\tif (block.getType().equals(Material.AIR))\n\t\t\t\tcontinue;\n\t\t\tBlock blockon = player.getWorld().getBlockAt(player.getLocation().add(0, -1, 0));\n\t\t\tBlock blockon2 = player.getWorld().getBlockAt(player.getLocation().add(0, -2, 0));\n\t\t\tif (blockon.getLocation().equals(block.getLocation()) || blockon2.getLocation().equals(block.getLocation()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@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}",
"public Player getWinner(){\r\n if(!hasMovements(model.getPlayerA().getColor()))\r\n return model.getPlayerB();\r\n if(!hasMovements(model.getPlayerB().getColor()))\r\n return model.getPlayerA();\r\n // In case of draw\r\n return null;\r\n }",
"@Override\n /**\n * Check whether a certain tile is blocked for a particular Mover.\n */\n public boolean blocked(Mover mover, int x, int y) {\n if(mPathTiles == null) {\n return true;\n }\n \n // Check bounds\n if( x < 0 || y < 0 || x >= getActualWidthInTiles() || y >= getActualHeightInTiles()) {\n return true;\n }\n \n // Check whether this tile blocks the unit\n return mPathTiles[ (y * getActualWidthInTiles()) + x].isBlocking(mover);\n \n }",
"public Block getBlockNoTransform() {\n return (Block)getChildNoTransform(0);\n }",
"public final JARCollisionInfo getNearestYBelowRect( LibRect2D rect )\n {\n float nearestY = iLevelBoundY;\n JARPlayer nearestPlayer = null;\n JARBlock nearestBlock = null;\n\n //consider player\n if ( iPlayer != null )\n {\n Float blockY = iPlayer.iBlock.getRect().getYonCollisionXrect( rect, LibRect2D.Elevation.ENone );\n if ( blockY != null )\n {\n //check if the block is UNDER the rect\n if ( blockY.floatValue() < nearestY && blockY.floatValue() >= rect.iTop + rect.iHeight )\n {\n nearestY = blockY.floatValue();\n nearestPlayer = iPlayer;\n nearestBlock = iPlayer.iBlock;\n }\n }\n }\n\n //consider blocks\n if ( iWalls != null )\n {\n for ( int i = 0; i < iWalls.length; ++i )\n {\n //if ( iWalls[ i ].block.iPassThrough == PassThrough.ENo )\n {\n //check elevation below player\n Float blockY = iWalls[ i ].iBlock.getRect().getYonCollisionXrect( rect, iWalls[ i ].iBlock.getElevation() );\n if ( blockY != null )\n {\n //check if the block is UNDER the rect\n if ( blockY.floatValue() < nearestY && ( blockY.floatValue() >= rect.iTop + rect.iHeight ) )\n {\n nearestY = blockY.floatValue();\n nearestPlayer = null;\n nearestBlock = iWalls[ i ].iBlock;\n }\n }\n }\n }\n }\n\n //consider enemies\n if ( iEnemies != null )\n {\n for ( int i = 0; i < iEnemies.length; ++i )\n {\n if ( iEnemies[ i ].isAlive() )\n {\n Float blockY = iEnemies[ i ].iBlock.getRect().getYonCollisionXrect( rect, LibRect2D.Elevation.ENone );\n if ( blockY != null )\n {\n //check if the block is UNDER the rect\n if ( blockY.floatValue() < nearestY && blockY.floatValue() >= rect.iTop + rect.iHeight )\n {\n nearestY = blockY.floatValue();\n nearestPlayer = iEnemies[ i ];\n nearestBlock = iEnemies[ i ].iBlock;\n }\n }\n }\n }\n }\n\n //JARDebug.bugfix.info( \"Get Y below: [\" + rect.iTop + \"][\" + ( nearestBlock != null ? nearestBlock.iRect.iTop : \"null\" ) + \"]\" );\n\n JARCollisionInfo ret = new JARCollisionInfo( nearestY, nearestPlayer, nearestBlock );\n return ret;\n }",
"protected boolean isMovementNoisy() {\n/* 1861 */ return (!this.abilities.flying && (!this.onGround || !isDiscrete()));\n/* */ }",
"@Test\n public void isOccupiedAndGetBlockReturnTheSameAnswer() {\n Tetromino tetromino = Tetromino.Z;\n Direction direction = Direction.DOWN;\n\n for (int y = 0; y < tetromino.height; y++) {\n for (int x = 0; x < tetromino.width; x++) {\n String coordinates = String.format(\"Tetromino Z[DOWN] block (x,y) = (%d,%d)\", x, y);\n\n boolean isOccupied = tetromino.isOccupied(direction, x, y);\n Block block = tetromino.getBlock(direction, x, y);\n\n assertEquals(coordinates, isOccupied, (block != null));\n }\n }\n }",
"private void checkBlockAt(int x, int y, int z, World world,\n\t\t\tEntityPlayer entityplayer) {\n\t\tif (world.getBlock(x, y, z) == Blocks.air) {\n\t\t\tworld.playSoundEffect(x + 5.0D, y + 5.0D, z + 5.0D,\n\t\t\t\t\t\"mob.endermen.portal\", 2.0F,\n\t\t\t\t\tworld.rand.nextFloat() * 0.1F + 0.9F);\n\t\t\tentityplayer.setPosition(x, y, z);\n\t\t\tfor (int t = 1; t < 10; t++) {\n\t\t\t\tworld.spawnParticle(\"portal\", x, y, z, 0D + t, 0D + t, 0D + t);\n\t\t\t}\n\t\t} else {\n\t\t\tcheckBlockAt(x, y + 2, z, world, entityplayer);\n\t\t}\n\t}",
"public Player getRightNeigbour() {\n\t\treturn players.get((players.indexOf(current)+1)%players.size());\n\t}",
"private Vector2 findTarget() \r\n\t{\r\n\t\tVector2 tempVector = new Vector2(1,1);\r\n\t\ttempVector.setLength(Constants.RANGEDSPEED); //TODO make so it can be changed when level difficulty increases\r\n\t\ttempVector.setAngle(rotation + 90);\r\n\t\treturn tempVector;\r\n\t}",
"public static int[] isMonsterInSight(Player curr) {\n int[] ans = {-1, -1};\n ArrayList<Integer> dirs = new ArrayList();\n int bodyDir = curr.getBodyDirection();\n String name = curr.getName();\n if (bodyDir == UP) {\n dirs.add(UP);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(DOWN);\n }\n } else if (bodyDir == RIGHT) {\n dirs.add(RIGHT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(LEFT);\n }\n } else if (bodyDir == DOWN) {\n dirs.add(DOWN);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(RIGHT);\n dirs.add(LEFT);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(UP);\n }\n } else //if(curr.getBodyDirection()==LEFT)\n {\n dirs.add(LEFT);\n if (!name.endsWith(\"fighter\")) //figher planes can only see what is in front of them\n {\n if (!name.equals(\"AIR bomber\"))//bombers only see what is in front and behind them for their bombing run\n {\n dirs.add(UP);\n dirs.add(DOWN);\n }\n if (name.startsWith(\"TANK\") || name.endsWith(\"jeep\") || name.endsWith(\"destroyer\") || name.endsWith(\"coastguard\") || name.equals(\"AIR bomber\"))\n dirs.add(RIGHT);\n }\n }\n\n if (dirs == null || dirs.size() == 0)\n return ans; //{-1,-1}\n for (int m = 0; m < players.length; m++) { //skip player if Vehicle is not mind controlled and the player is not a monster\n //skip player if Vehicle is mind controlled and the player is a monster\n if (players[m] == null || players[m].getName().equals(\"NONE\") || curr == players[m] ||\n ((curr instanceof Vehicle && !((Vehicle) (curr)).isMindControlled()) && !(players[m] instanceof Monster)) ||\n ((curr instanceof Vehicle && ((Vehicle) (curr)).isMindControlled()) && (players[m] instanceof Monster)))\n continue;\n int mR = players[m].getRow();\n int mC = players[m].getCol();\n\n for (int i = 0; i < dirs.size(); i++) {\n int dir = dirs.get(i);\n boolean skip = false;\n if (dir == UP) {\n for (int r = curr.getRow(); r >= 0; r--) { //coastguard, destroyer, fighter planes and artillery have the monsters position known - the monster is not hidden by structures\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == DOWN) {\n for (int r = curr.getRow(); r < board.length - 1; r++) {\n if (!MapBuilder.noStructure(r, curr.getCol(), panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (r == mR && curr.getCol() == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n\n }\n } else if (dir == RIGHT) {\n for (int c = curr.getCol(); c < board[0].length; c++) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n } else if (dir == LEFT) {\n for (int c = curr.getCol(); c >= 0; c--) {\n if (!MapBuilder.noStructure(curr.getRow(), c, panel) && !name.endsWith(\"coastguard\") && !name.endsWith(\"destroyer\") && !name.endsWith(\"fighter\") && !name.endsWith(\"artillery\") && !name.endsWith(\"missile\") && !name.equals(\"AIR bomber\") && !players[m].isFlying()) {\n skip = true;\n break;\n }\n if (curr.getRow() == mR && c == mC) {\n ans[0] = dir;\n ans[1] = m;\n return ans;\n }\n }\n }\n if (skip)\n continue;\n }\n }\n return ans;\n }",
"public Block getBlockNoTransform() {\n return (Block) getChildNoTransform(0);\n }",
"private Pit getOppositePitStone(String Owner, int pitNumber) throws NullPointerException {\n\t\ttry {\n\t\t\t// if the owner of pitNumber is Player 1\n\t\t\tif (this.player1Name.equals(Owner)) {\n\t\t\t\t// return player 2's pit that is opposite to player 1's pitNumber\n\t\t\t\treturn Player2Pits[6 - pitNumber];\n\t\t\t}\n\t\t\t// else,... return player 1's pit that is opposite to player 2's pitNumber\n\t\t\treturn Player1Pits[6 - pitNumber];\n\t\t} catch (IndexOutOfBoundsException ie) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public void throwAt(Player target);",
"Optional<Player> getHoldingPlayer();",
"@SideOnly(Side.CLIENT)\n\tpublic BlockRenderLayer getBlockLayer()\n\t{\n\t\treturn BlockRenderLayer.CUTOUT;\n\t}",
"public Town getTargetVertex(Town sourceVertex) {\r\n\t\tfor(Town town: vertices) {\r\n\t\t\tif(!town.equals(sourceVertex)) {\r\n\t\t\t\treturn town;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}",
"@Override\n public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float xOffset, float yOffset, float zOffset)\n {\n Object tileEntity = world.getTileEntity(x, y, z);\n\n if (tileEntity == null || world.isSideSolid(x, y + 1, z, ForgeDirection.DOWN))\n {\n return true;\n }\n\n\n if (TileEntityARChest.isOcelotBlockingChest(world, x, y, z))\n {\n return true;\n }\n if(this.canDoublechest) {\n if (world.getBlock(x - 1, y, z) == this && (world.isSideSolid(x - 1, y + 1, z, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x - 1, y, z)))\n {\n return true;\n }\n if (world.getBlock(x + 1, y, z) == this && (world.isSideSolid(x + 1, y + 1, z, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x + 1, y, z)))\n {\n return true;\n }\n if (world.getBlock(x, y, z - 1) == this && (world.isSideSolid(x, y + 1, z - 1, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x, y, z - 1)))\n {\n return true;\n }\n if (world.getBlock(x, y, z + 1) == this && (world.isSideSolid(x, y + 1, z + 1, ForgeDirection.DOWN) || TileEntityARChest.isOcelotBlockingChest(world, x, y, z + 1)))\n {\n return true;\n }\n\n\n if (isSameBlock(world, x - 1, y, z))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (TileEntityARChest) world.getTileEntity(x - 1, y, z), (IInventory) tileEntity);\n }\n\n if (isSameBlock(world, x + 1, y, z))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (IInventory) tileEntity, (TileEntityARChest) world.getTileEntity(x + 1, y, z));\n }\n\n if (isSameBlock(world, x, y, z - 1))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (TileEntityARChest) world.getTileEntity(x, y, z - 1), (IInventory) tileEntity);\n }\n\n if (isSameBlock(world, x, y, z + 1))\n {\n tileEntity = new InventoryLargeChest(\"container.chestDouble\", (IInventory) tileEntity, (TileEntityARChest) world.getTileEntity(x, y, z + 1));\n }\n }\n\n if (world.isRemote)\n {\n return true;\n }\n else\n {\n player.displayGUIChest((IInventory) tileEntity);\n return true;\n }\n\n }",
"public void blockedAndBlock(){\n\t\tif(player.isAttacking() && random(BASE_BLOCK_PERCENTAJE + ((double)difficulty)/10)){\n\t\t\tplayer.hasBeenBlocked();\n\t\t\tthis.setCurrentAnimation(\"blocked and prepare block_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"blocked and prepare block\", 0, false);\n\t\t} else{\n\t\t\tthis.setCurrentAnimation(\"attack end blocked_\" + orientation, FRAME_DURATION);\n\t\t\tmanageSword(\"attack end blocked\", 0, false);\n\t\t}\n\t}",
"public BBlock getBlockAtXY(int x, int y) {\n for (BBlock block : this) {\n if ((x >= block.getX() && x <= block.getX() + block.getWith()) &&\n (y >= block.getY() && y <= block.getY() + block.getHeight())) {\n return block;\n }\n }\n return null;\n }",
"public int getLineOfSight() {\n return (int)applyModifier((float)getType().getVisibleRadius(),\n \"model.modifier.lineOfSightBonus\");\n }",
"private Cell getBananaTarget() {\n Cell[][] blocks = gameState.map;\n int mostWormInRange = 0;\n Cell chosenCell = null;\n boolean wormAtCenter;\n\n for (int i = currentWorm.position.x - currentWorm.bananaBomb.range; i <= currentWorm.position.x + currentWorm.bananaBomb.range; i++){\n for (int j = currentWorm.position.y - currentWorm.bananaBomb.range; j <= currentWorm.position.y + currentWorm.bananaBomb.range; j++){\n wormAtCenter = false;\n if (isValidCoordinate(i, j)\n && euclideanDistance(i, j, currentWorm.position.x, currentWorm.position.y) <= 5) {\n List<Cell> affectedCells = getBananaAffectedCell(i, j);\n\n int wormInRange = 0;\n for (Cell cell : affectedCells) {\n for (Worm enemyWorm : opponent.worms) {\n if (enemyWorm.position.x == cell.x && enemyWorm.position.y == cell.y\n && enemyWorm.health > 0)\n wormInRange++;\n if (enemyWorm.position.x == i && enemyWorm.position.y == j)\n wormAtCenter = true;\n }\n for (Worm myWorm : player.worms) {\n if (myWorm.position.x == cell.x && myWorm.position.y == cell.y && myWorm.health > 0)\n wormInRange = -5;\n }\n }\n if (wormInRange > mostWormInRange) {\n mostWormInRange = wormInRange;\n chosenCell = blocks[j][i];\n } else if (wormInRange == mostWormInRange && wormAtCenter) {\n chosenCell = blocks[j][i];\n }\n }\n }\n }\n\n return chosenCell;\n }",
"private boolean isStepBlocked(Step step){\n return step.getOverlays().stream().anyMatch( o -> o instanceof Blockable );\n }",
"public LinkedList<Node> getNonTargets(){\n\t\treturn nonTargetNodes;\n\t}",
"@Override\n\tpublic boolean isUseableByPlayer(EntityPlayer player){\n\t return worldObj.getTileEntity(xCoord, yCoord, zCoord) != this ? false : player.getDistanceSq(xCoord + 0.5D, yCoord + 0.5D, zCoord + 0.5D) <= 64.0D;\n\t}",
"private boolean isUnderground(){\n\n if (this.selectedTrain.getGPS().getCurrBlock().isUnderground() == true){return true; }\n else{ return false; }\n }",
"public void onBlockHarvested(World world, int x, int y, int z, int meta, EntityPlayer player)\n\t {\n\t if (player.capabilities.isCreativeMode && (meta & 8) != 0 && world.getBlock(x, y - 1, z) == this)\n\t {\n\t world.setBlockToAir(x, y - 1, z);\n\t }\n\t }",
"private Location verifyLocation(Location location)\n {\n Block playerBlock = location.getBlock();\n World world = location.getWorld();\n\n if (rootC.getStringList(RootNode.WORLDS).contains(world.getName()))\n {\n // Only spawn monsters in normal world. End is crowded with endermen\n // and nether is too extreme anyway, add config later\n int lightLvl = location.getBlock().getLightFromSky();\n if (world.getEnvironment() == Environment.NORMAL\n && (location.getY() < rootC.getInt(RootNode.MORE_MONSTERS_MAX_Y) && lightLvl < 3))\n {\n // the playerBlock should always be air, but if the player stands\n // on a slab he actually is in the slab, checking a few blocks under because player could have jumped etc..\n if (playerBlock.getType().equals(Material.AIR))\n {\n for (int i = 0; i <= 3; i++)\n {\n playerBlock = location.getBlock().getRelative(BlockFace.DOWN, 1);\n\n if (playerBlock.getType().equals(Material.AIR))\n {\n location.subtract(0, 1, 0);\n playerBlock = location.getBlock();\n // the playerBlock is now the block where the monster\n // should spawn on, next up: verify block\n }\n else\n {\n break;\n }\n }\n }\n // no spawning on steps, stairs and transparent blocks\n if (playerBlock.getType().name().endsWith(\"STEP\") || playerBlock.getType().name().endsWith(\"STAIRS\")\n || playerBlock.getType().isTransparent() || !playerBlock.getType().isOccluding() || playerBlock.getType().equals(Material.AIR))\n {\n // don't spawn here\n return null;\n }\n\n if (quickVerify(location))\n return location;\n }\n\n }\n return null;\n }",
"public static int[] getSafeBlockWithinRange(World world, int x, int y, int z, int ranX, int ranY, int ranZ)\n\t{\n\t\tint[] pos = new int[] {x, y, z};\n\n\t\t//find x2,y2,z2 = 0, 1, -1, 2, -2, 3, -3, ...\n\t\t//find block priority: Y > Z > X\n\t\tint xlimit = ranX * 2;\n\t\tint ylimit = ranY * 2;\n\t\tint zlimit = ranZ * 2;\n\t\tint x2 = 0;\n\t\tint y2 = 0;\n\t\tint z2 = 0;\n\t\tint x3, y3, z3;\n\t\tint addx;\n\t\tint addy;\n\t\tint addz;\n\t\t\n\t\tfor (int ix = 0; ix <= xlimit; ix++)\n\t\t{\n\t\t\t//calc sequence number\n\t\t\taddx = (ix & 1) == 0 ? ix * -1 : ix;\n\t\t\tx2 += addx;\n\t\t\t\n\t\t\t//reset z2\n\t\t\tz2 = 0;\n\t\t\t\n\t\t\tfor (int iz = 0; iz <= zlimit; iz++)\n\t\t\t{\n\t\t\t\t//calc sequence number\n\t\t\t\taddz = (iz & 1) == 0 ? iz * -1 : iz;\n\t\t\t\tz2 += addz;\n\t\t\t\t\n\t\t\t\t//reset y2\n\t\t\t\ty2 = 0;\n\t\t\t\t\n\t\t\t\tfor (int iy = 0; iy <= ylimit; iy++)\n\t\t\t\t{\n\t\t\t\t\t//calc sequence number\n\t\t\t\t\taddy = (iy & 1) == 0 ? iy * -1 : iy;\n\t\t\t\t\ty2 += addy;\n\t\t\t\t\t\n\t\t\t\t\t//check block is safe\n\t\t\t\t\tx3 = pos[0] + x2;\n\t\t\t\t\ty3 = pos[1] + y2;\n\t\t\t\t\tz3 = pos[2] + z2;\n\t\t\t\t\t\n\t\t\t\t\tif (checkBlockSafe(world, x3, y3, z3))\n\t\t\t\t\t{\n\t\t\t\t\t\t//check block is safe to stand at\n\t\t\t\t\t\tint decY = 0; //max Y dist below target\n\t\t\t\t\t\t\n\t\t\t\t\t\twhile (decY <= MathHelper.abs(y2))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (checkBlockCanStandAt(world.getBlockState(new BlockPos(x3, y3 - decY - 1, z3))))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tpos[0] = x3;\n\t\t\t\t\t\t\t\tpos[1] = y3 - decY;\n\t\t\t\t\t\t\t\tpos[2] = z3;\n\t\t\t\t\t\t\t\treturn pos;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tdecY++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}//end block is safe\n\t\t\t\t}//end y\n\t\t\t}//end z\n\t\t}//end x\n\t\t\n\t\tLogHelper.info(\"DEBUG : find block fail\");\n\t\treturn null;\n\t}",
"public boolean checkNotDone() {\n boolean notDone = false;\n blocksPut = 0;\n \n for(int y = 0; y < buildHeight+1; y++) {\n for(int z = 0; z < buildSize; z++) {\n for(int x = 0; x < buildSize; x++) {\n if(myIal.lookBlock(x, y, z).equals(\"air\")) {\n notDone = true;\n } else {\n blocksPut++;\n }\n }\n }\n }\n\n return notDone;\n }",
"public Block getBlock(int x, int y){\n\t\tIterator iterator = blocks.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\tBlock b = (Block) iterator.next();\n\t\t\tif ((b.getX()==x)&&(b.getY()==y)) {\n\t\t\t\treturn b;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic String getInspected(Player p) {\n\t\treturn null;\n\t}",
"public void onBlockHarvested(World p_149681_1_, int p_149681_2_, int p_149681_3_, int p_149681_4_, int p_149681_5_, EntityPlayer p_149681_6_)\n {\n if (func_149887_c(p_149681_5_))\n {\n if (p_149681_1_.getBlock(p_149681_2_, p_149681_3_ - 1, p_149681_4_) == this)\n {\n if (!p_149681_6_.capabilities.isCreativeMode)\n {\n int var7 = p_149681_1_.getBlockMetadata(p_149681_2_, p_149681_3_ - 1, p_149681_4_);\n int var8 = func_149890_d(var7);\n\n if (var8 != 3 && var8 != 2)\n {\n p_149681_1_.func_147480_a(p_149681_2_, p_149681_3_ - 1, p_149681_4_, true);\n }\n else\n {\n if (!p_149681_1_.isClient && p_149681_6_.getCurrentEquippedItem() != null && p_149681_6_.getCurrentEquippedItem().getItem() == Items.shears)\n {\n this.func_149886_b(p_149681_1_, p_149681_2_, p_149681_3_, p_149681_4_, var7, p_149681_6_);\n }\n\n p_149681_1_.setBlockToAir(p_149681_2_, p_149681_3_ - 1, p_149681_4_);\n }\n }\n else\n {\n p_149681_1_.setBlockToAir(p_149681_2_, p_149681_3_ - 1, p_149681_4_);\n }\n }\n }\n else if (p_149681_6_.capabilities.isCreativeMode && p_149681_1_.getBlock(p_149681_2_, p_149681_3_ + 1, p_149681_4_) == this)\n {\n p_149681_1_.setBlock(p_149681_2_, p_149681_3_ + 1, p_149681_4_, Blocks.air, 0, 2);\n }\n\n super.onBlockHarvested(p_149681_1_, p_149681_2_, p_149681_3_, p_149681_4_, p_149681_5_, p_149681_6_);\n }",
"private Ship findUnpilotedShip() {\r\n\t\tfor (Ship ship : ships) {\r\n\t\t\tif (ship.getPilot() == null) {\r\n\t\t\t\t// ship has no pilot, so pass it back\r\n\t\t\t\treturn ship;\r\n\t\t\t}\r\n\t\t}\r\n\t\t// no unpiloted ships present\r\n\t\treturn null;\r\n\t}",
"private int Block_Move() {\n\t\tfinal int POSSIBLE_BLOCK = 2;\n\t\tint move = NO_MOVE;\n\t\t\n\t\tif(( gameBoard[TOP_LEFT] + gameBoard[TOP_CENTER] + gameBoard[TOP_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[TOP_CENTER] == EMPTY){\n\t\t\t\tmove = TOP_CENTER;\n\t\t\t}else if (gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[CTR_LEFT] + gameBoard[CTR_CENTER] + gameBoard[CTR_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[CTR_LEFT] == EMPTY){\n\t\t\t\tmove = CTR_LEFT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[CTR_RIGHT] == EMPTY){\n\t\t\t\tmove = CTR_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[BTM_LEFT] + gameBoard[BTM_CENTER] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}else if (gameBoard[BTM_CENTER] == EMPTY){\n\t\t\t\tmove = BTM_CENTER;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_LEFT] + gameBoard[BTM_LEFT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[CTR_LEFT] == EMPTY){\n\t\t\t\tmove = CTR_LEFT;\n\t\t\t}else if (gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_CENTER] + gameBoard[CTR_CENTER] + gameBoard[BTM_CENTER]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_CENTER] == EMPTY){\n\t\t\t\tmove = TOP_CENTER;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_CENTER] == EMPTY){\n\t\t\t\tmove = BTM_CENTER;\n\t\t\t}\t\t\t\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_RIGHT] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}else if (gameBoard[CTR_RIGHT] == EMPTY){\n\t\t\t\tmove = CTR_RIGHT;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_LEFT] + gameBoard[CTR_CENTER] + gameBoard[BTM_RIGHT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_LEFT] == EMPTY){\n\t\t\t\tmove = TOP_LEFT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_RIGHT] == EMPTY){\n\t\t\t\tmove = BTM_RIGHT;\n\t\t\t}\n\t\t}else if((gameBoard[TOP_RIGHT] + gameBoard[CTR_CENTER] + gameBoard[BTM_LEFT]) == POSSIBLE_BLOCK){\n\t\t\tif(gameBoard[TOP_RIGHT] == EMPTY){\n\t\t\t\tmove = TOP_RIGHT;\n\t\t\t}else if (gameBoard[CTR_CENTER] == EMPTY){\n\t\t\t\tmove = CTR_CENTER;\n\t\t\t}else if (gameBoard[BTM_LEFT] == EMPTY){\n\t\t\t\tmove = BTM_LEFT;\n\t\t\t}\n\t\t}\n\t\treturn move;\n\t}",
"public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"@SideOnly(Side.CLIENT)\r\n public BlockRenderLayer getBlockLayer() {\r\n return BlockRenderLayer.CUTOUT;\r\n }",
"public int getBlock(){\n return this.position.getCurrentBlock();\n }",
"public boolean isWallDetected(Block block, Player player) {\n if (TownyAPI.getInstance().getTownBlock(block.getLocation()) == null) {\n if (player != null) {\n player.sendMessage(ChatColor.RED + \"The wall must be built in claimed territory.\");\n }\n return false; // Exit if it's not within a claimed territory\n }\n\n int count = 0;\n int maxCount = 384;\n boolean checked = false;\n while (count <= maxCount) {\n if (block.getY() + count <= 300) {\n Block targetAbove = block.getWorld().getBlockAt(block.getX(), block.getY() + count, block.getZ());\n if (isValidWallBlock(targetAbove)) return true;\n checked = true;\n }\n\n if (block.getY() - count >= -64) {\n Block targetBelow = block.getWorld().getBlockAt(block.getX(), block.getY() - count, block.getZ());\n if (isValidWallBlock(targetBelow)) return true;\n checked = true;\n }\n\n if(!checked) return false;\n count += 2;\n }\n return false;\n }",
"protected Unit target() {\n\t\tUnit closest = null; // this variable will contain the closest Unit\n\t\tDouble min = (double) projectile_range; // this will contain the lowest distance\n\t\tList<Entity> entities = level.getEntities();\n\n\t\tfor (int i = 0; i < entities.size(); i++) {\n\t\t\tEntity e = entities.get(i);\n\t\t\tUnit u = (Unit) e; // casts e to Unit\n\t\t\tif (u.equals(this)) continue; // discounts self\n\t\t\tif (u.UNIT_R != UNIT_G && u.UNIT_G != UNIT_R) continue; // discounts Units from own team\n\t\t\tif (!(e instanceof Unit)) continue; // discounts non-Unit entities\n\n\t\t\tdouble distance = MathMachine.distance((u.getX() - x), (u.getY() - y));\n\t\t\t/*\n\t\t\t * int r = 0; int g = 0; for (int y = 0; y < level.getHeight() * 16; y++) { for (int x = 0; x < level.getWidth() * 16; x++) { if (level.redPixels[x + y * level.getWidth() * 16] == true) r++; if (level.greenPixels[x + y * level.getWidth() * 16] == true )g++; System.out.println(\"r: \" + r + \", \" + g); } }\n\t\t\t */\n\t\t\tif (UNIT_R) { // if it is a red unit\n\t\t\t\tif (distance < min) {\n\t\t\t\t\tint xt = (int) Math.round(u.getX());\n\t\t\t\t\tint yt = (int) Math.round(u.getY());\n\t\t\t\t\tif (level.redPixels[(int) Math.round(xt + level.getWidth() * 16.0 * yt)]) {\n\t\t\t\t\t\tclosest = u;\n\t\t\t\t\t\tmin = distance;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (UNIT_G) { // if it is a green unit\n\t\t\t\tif (distance < min) {\n\t\t\t\t\tSystem.out.println(level.greenPixels[(int) Math.round(u.getX() + level.getWidth() * 16.0 * u.getY())]);\n\n\t\t\t\t\tif (level.greenPixels[(int) Math.round(u.getX() + level.getWidth() * 16.0 * u.getY())]) {\n\t\t\t\t\t\tclosest = u;\n\t\t\t\t\t\tmin = distance;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\treturn closest; // the program is fucked if null happens. just a headsup. hopefully you will remember if you get a null pointer exception.\n\t}",
"boolean outOfSight();",
"public Tile diveBomb() {\n List<Tile> targets = this.findTargets();\n Tile us_tile = this.gb.get(this.us_head_x, this.us_head_y);\n LinkedList<Tile> shortestPath = null;\n\n // Chose the shortest path\n //System.out.println(\"HeadX: \" + this.us_head_x + \" HeadY: \" + this.us_head_y);\n //System.out.println(\"EnemyX: \" + this.enemy_head_x + \" EnemyY: \" + this.enemy_head_y);\n // System.out.println(\"Targets - \" + targets);\n for (Tile target : targets) {\n LinkedList<Tile> path = this.dk.path(us_tile, target, this.gb);\n\n if (path != null) { // means we couldn't reach the desired target\n // System.out.println(\"Path - \" + path);\n if (shortestPath == null) {\n shortestPath = path;\n } else if (path.size() < shortestPath.size()) {\n shortestPath = path;\n }\n }\n }\n // System.out.println(\"Shortest Path - \" + shortestPath);\n if (shortestPath == null) return us_tile;\n return shortestPath.get(1);\n }",
"public Territory almostFullContinent(Player player) {\r\n\t\tfor (int i = 0; i < 6; i++) {\r\n\t\t\tArrayList<Territory> myContinentTers = new ArrayList<Territory>();\r\n\t\t\tfor (int j = 0; j < Board.getContinent(i).getTerritories().size(); j++) {\r\n\t\t\t\tif (!player.getTerritories().contains(\r\n\t\t\t\t\t\tBoard.getContinent(i).getTerritories().get(j))) {\r\n\t\t\t\t\tmyContinentTers.add(Board.getContinent(i).getTerritories()\r\n\t\t\t\t\t\t\t.get(j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (myContinentTers.size() == 1) {\r\n\t\t\t\treturn myContinentTers.get(0);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"protected boolean findDrinkableBlock(Location loc) {\n return findDrinkableSquare(loc) ||\n findDrinkableSquare(loc.clone().add(0, -1, 0)) ||\n findDrinkableSquare(loc.clone().add(0, +1, 0));\n }",
"public Block findAttachedLever(Block block) {\n\t\tBlock lever = null;\n\t\tfor (BlockFace face : REDSTONE_FACES) {\n\t\t\tlever = block.getRelative(face);\n\t\t\tif (lever.getType() == Material.LEVER) {\n\t\t\t BlockFace attached = getAttachedFace(lever);\n\t\t\t if (attached != null && attached == face) {\n\t\t\t\t\treturn lever;\n\t\t\t }\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n }",
"private MoveAction wanderAway(Position target) {\n\t\tDirection targetDirection = position.directionTowards(target);\n\t\tint intDir;\n\n\t\tif (targetDirection != Direction.NONE) {\n\t\t\tintDir = rand.nextInt(7) + 1;\n\t\t\tif (intDir >= targetDirection.ordinal()) intDir++;\n\t\t} else {\n\t\t\tintDir = rand.nextInt(8) + 1;\n\t\t}\n\n\t\tDirection direction = Direction.fromInt(intDir);\n\t\treturn moveInDirection(direction);\n\t}",
"public void printTopBlockers(){\n Player topBlocker1 = players.get(0);\n Player topBlocker2 = players.get(0);\n // Iterates through the players ArrayList and sets the stop blocker as topBlocker1\n for (Player player : players){\n if (player.getBlockStat() > topBlocker1.getBlockStat()){\n topBlocker1 = player;\n }\n }\n\n // If topBlocker1 is the first item in the players ArrayList then topBlocker2 will be\n // initialized with the second item\n if (topBlocker1 == players.get(0)){\n topBlocker2 = players.get(1);\n }\n // Iterates through the players ArrayList and sets the stop attacker as topBlocker2\n for (Player player : players){\n if (player != topBlocker1){\n if (player.getBlockStat() > topBlocker2.getBlockStat()){\n topBlocker2 = player;\n }\n }\n }\n topBlocker1.printPlayerInfo();\n topBlocker2.printPlayerInfo();\n }",
"private Player checkIfEatsYellowPlayer(Player player)\n {\n int x_cord = getMidPoint(player.x_cordinate);\n int y_cord = getMidPoint(player.y_cordinate);\n int yellow_x1 = getMidPoint(ludo.getYellowPlayer1().x_cordinate);\n int yellow_x2 = getMidPoint(ludo.getYellowPlayer2().x_cordinate);\n int yellow_x3 = getMidPoint(ludo.getYellowPlayer3().x_cordinate);\n int yellow_x4 = getMidPoint(ludo.getYellowPlayer4().x_cordinate);\n int yellow_y1 = getMidPoint(ludo.getYellowPlayer1().y_cordinate);\n int yellow_y2 = getMidPoint(ludo.getYellowPlayer2().y_cordinate);\n int yellow_y3 = getMidPoint(ludo.getYellowPlayer3().y_cordinate);\n int yellow_y4 = getMidPoint(ludo.getYellowPlayer4().y_cordinate);\n if (collisionDetection(x_cord, y_cord, yellow_x1, yellow_y1) == 1)\n {\n return yellow_player1;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x2, yellow_y2) == 1)\n {\n return yellow_player2;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x3, yellow_y3) == 1)\n {\n return yellow_player3;\n }\n else if (collisionDetection(x_cord, y_cord, yellow_x4, yellow_y4) == 1)\n {\n return yellow_player4;\n }\n else\n {\n return null;\n }\n }",
"private boolean maybeBelowTracked(Block block) {\n\t\tif (Material.SOIL.equals(block.getType()) || // wheat, carrots, potatoes, beetroot, melon stalk, pumpkin stalk\n\t\t\t\tMaterial.NETHERRACK.equals(block.getType()) || // netherwart\n\t\t\t\tMaterial.SAND.equals(block.getType()) || // cactus, sugarcane\n\t\t\t\tMaterial.END_STONE.equals(block.getType())) { // chorus fruit \n\t\t\treturn true;\n\t\t}\n\t\tBlock up = block.getRelative(BlockFace.UP);\n\t\tif (Material.BROWN_MUSHROOM.equals(up.getType()) || Material.RED_MUSHROOM.equals(up.getType()) || // mushrooms\n\t\t\t\tMaterial.SAPLING.equals(up.getType())) { // saplings\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public static final Coin GetBlockReward(int height)\n {\n int COIN = 1;\n Coin nSubsidy = Coin.valueOf(15, 0);\n return nSubsidy.shiftRight(height / subsidyDecreaseBlockCount);\n }",
"public boolean canTravelFromWorld(Player p, MultiverseWorld w) {\n List<String> blackList = w.getWorldBlacklist();\n \n boolean returnValue = true;\n \n for (String s : blackList) {\n if (s.equalsIgnoreCase(p.getWorld().getName())) {\n returnValue = false;\n break;\n }\n }\n \n return returnValue;\n }",
"@SuppressWarnings(\"static-method\")\n private boolean isFightWon(final LogBlock block)\n {\n for (final String line : block.getBlockLines())\n {\n if (line.endsWith(WINS_THE_FIGHT))\n {\n return true;\n }\n }\n return false;\n }",
"public Player lookForWinner(){\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tif(this.players.get(i).numCards() == 0)\n\t\t\t\treturn this.players.get(i);\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public Player getLeftNeighbor() {\n\t\tif(players.indexOf(current)==0) {\n\t\t\treturn players.get(players.size()-1);\n\t\t}\n\t\telse {\n\t\t\treturn players.get(players.indexOf(current)-1);\n\t\t}\n\t}"
] | [
"0.6072184",
"0.597752",
"0.5911494",
"0.58418125",
"0.5743492",
"0.57418734",
"0.5704916",
"0.5623611",
"0.559265",
"0.55569506",
"0.54886866",
"0.5455359",
"0.54454476",
"0.53784657",
"0.53675884",
"0.535486",
"0.5347421",
"0.53431046",
"0.5330754",
"0.5301434",
"0.5297133",
"0.5286632",
"0.52822995",
"0.52685285",
"0.52434605",
"0.52297425",
"0.5219957",
"0.5200998",
"0.51973486",
"0.5196157",
"0.51944625",
"0.51887053",
"0.5174712",
"0.51558095",
"0.5150319",
"0.5129353",
"0.5122831",
"0.51211834",
"0.5118698",
"0.5100432",
"0.50983137",
"0.5094129",
"0.5087614",
"0.5085371",
"0.5083814",
"0.5077911",
"0.5074405",
"0.50622064",
"0.50610524",
"0.5044988",
"0.50381887",
"0.50379765",
"0.5027517",
"0.502534",
"0.5022177",
"0.5018503",
"0.5014862",
"0.50142163",
"0.50138956",
"0.50119704",
"0.5007281",
"0.5000204",
"0.49964",
"0.49952137",
"0.4987496",
"0.49832717",
"0.49800965",
"0.49705297",
"0.49701717",
"0.49667865",
"0.49475792",
"0.4946137",
"0.49381155",
"0.49305496",
"0.49224728",
"0.492068",
"0.4919352",
"0.49099228",
"0.49014032",
"0.49004745",
"0.4891078",
"0.4889348",
"0.48889476",
"0.48796374",
"0.4874163",
"0.4873324",
"0.4871701",
"0.48698896",
"0.4867963",
"0.48518825",
"0.48503983",
"0.48503298",
"0.4847961",
"0.4847218",
"0.48459914",
"0.48395848",
"0.48347515",
"0.4830412",
"0.48289055",
"0.48277095"
] | 0.60506207 | 1 |
Get all blocks in the line of sight of an entity | public static ArrayList<Block> getBlocksInLineOfSight(LivingEntity entity, int maxDistance) {
BlockIterator iterator = new BlockIterator(entity, maxDistance);
ArrayList<Block> blocks = new ArrayList<>();
while (iterator.hasNext()) {
blocks.add(iterator.next());
}
return blocks;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public List<Block> blocks() {\n int columns = 15, width = 51, height = 30;\n Color darkGreen = new Color(29, 101, 51);\n List<Block> blocks = new ArrayList<>();\n for (int j = 0; j < columns; j++) {\n blocks.add(new Block(new arkanoid.geometry.Rectangle(new Point(20 + width * j, 110 + height),\n width, height), darkGreen));\n }\n return blocks;\n }",
"List<Block> blocks();",
"public List<Block> blocks() {\r\n List<Block> list = new ArrayList<Block>();\r\n double width = 50;\r\n for (int i = 0; i < 7; ++i) {\r\n Color c = new Color(0, 0, 0);\r\n switch (i) {\r\n case 0:\r\n c = Color.gray;\r\n break;\r\n case 1:\r\n c = Color.red;\r\n break;\r\n case 2:\r\n c = Color.yellow;\r\n break;\r\n case 3:\r\n c = Color.green;\r\n break;\r\n case 4:\r\n c = Color.white;\r\n break;\r\n case 5:\r\n c = Color.pink;\r\n break;\r\n default:\r\n c = Color.cyan;\r\n break;\r\n }\r\n for (int j = 0; j < 15; ++j) {\r\n Block b = new Block(new Rectangle(new Point(\r\n 25 + j * width, 100 + i * 20), width, 20));\r\n if (i == 0) {\r\n b.setHitPoints(2);\r\n } else {\r\n b.setHitPoints(1);\r\n }\r\n list.add(b);\r\n }\r\n }\r\n return list;\r\n }",
"public Array<BlockDrawable> getAllBlocksToDraw() {\r\n \tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\r\n\t\tif(isGhostActivated()){\r\n\t\t\tblocksToDraw.addAll(getGhostBlocksToDraw());\r\n\t\t}\r\n\t\tif (hasFalling())\r\n\t\t\tblocksToDraw.addAll(falling.allOuterBlocks());\r\n\t\t\r\n\t\treturn blocksToDraw;\r\n }",
"@Override\r\n public List<Block> blocks() {\r\n List<Block> blockList = new ArrayList<Block>();\r\n java.awt.Color[] colors = new Color[5];\r\n colors[0] = Color.decode(\"#c1b8b2\");\r\n colors[1] = Color.decode(\"#ef1607\");\r\n colors[2] = Color.decode(\"#ffff1e\");\r\n colors[3] = Color.decode(\"#211ed8\");\r\n colors[4] = Color.decode(\"#fffff6\");\r\n int y = 150;\r\n int[] hitPoints = {2, 1, 1, 1, 1};\r\n for (int i = 0; i < colors.length; i++) {\r\n for (int j = i + 5; j < 15; j++) {\r\n blockList.add(new Block(j * 50 + 25, y, 50, 20, colors[i], hitPoints[i]));\r\n }\r\n y += 20;\r\n }\r\n return blockList;\r\n }",
"public ProductionBlock[] getAllProductionBlocks();",
"@NotNull\r\n BlockState[] getTileEntities();",
"public Array<BlockDrawable> getBoardBlocksToDraw() {\r\n\t\tArray<BlockDrawable> blocksToDraw = new Array<BlockDrawable>();\r\n\t\tblocksToDraw.addAll(tablero);\t\t\r\n\t\treturn blocksToDraw;\r\n\t}",
"@Override\n public List<Block> blocks() {\n List<Block> blocksList = new ArrayList<Block>();\n\n //Setting the blocks\n for (int j = 0; j <= 14; j++) {\n if (j == 0 || j == 1) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.CYAN));\n } else if (j == 2 || j == 3) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.PINK));\n } else if (j == 4 || j == 5) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.BLUE));\n } else if (j == 6 || j == 7 || j == 8) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.GREEN));\n } else if (j == 9 || j == 10) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.YELLOW));\n } else if (j == 11 || j == 12) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.ORANGE));\n } else if (j == 13 || j == 14) {\n blocksList.add(new Block(new Rectangle(\n new Point(730 - j * 50.6666667, 215), 51, 25), java.awt.Color.RED));\n }\n }\n\n return blocksList;\n }",
"public ArrayList<Block> getBlocks() {\n ArrayList<Block> blocks = new ArrayList<>();\n\n for (Vector2D pos : template) {\n blocks.add(new Block(pos.addVectorGetNewVector(center), this.color));\n }\n return blocks;\n }",
"public List<Block> blocks() {\n this.blocks = createBlocks();\n return this.blocks;\n }",
"Set<? extends IRBasicBlock> getBlocks();",
"private List<Block> createBlocks() {\n ArrayList<String> listOfBlocksAndSpacers = new ArrayList<String>();\n boolean buffer = false;\n for (int i = 0; i < level.size(); i++) {\n // if it starts with END_BLOCKS\n if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n } // if the buffer is true\n if (buffer) {\n listOfBlocksAndSpacers.add(level.get(i));\n } // if it starts with START_BLOCKS\n if (level.get(i).startsWith(\"START_BLOCKS\")) {\n buffer = true;\n } else if (level.get(i).startsWith(\"END_BLOCKS\")) {\n buffer = false;\n }\n }\n // find the x position where it all starts\n int startX = Integer.parseInt(this.map.get(\"blocks_start_x\"));\n int xForSave = startX;\n // find the y position where it all starts\n int startY = Integer.parseInt(this.map.get(\"blocks_start_y\"));\n List<Block> listOfBlocks = new ArrayList<>();\n String[] s;\n setBlocks();\n // go over the list of blocks of spacers\n for (int i = 0; i < listOfBlocksAndSpacers.size(); i++) {\n // split it with empty lines\n s = listOfBlocksAndSpacers.get(i).split(\"\");\n for (int j = 0; j < s.length; j++) {\n if (s[j].equals(\"\")) {\n continue;\n } // if it is a block symbol\n if (this.factory.isBlockSymbol(s[j])) {\n // add to listOfBlocks a block\n listOfBlocks.add(this.factory.getBlock(s[j], startX, startY));\n // continue to the next block with the next location\n startX += this.factory.getBlock(s[j], startX, startY).getCollisionRectangle().getWidth();\n } else if (this.factory.isSpaceSymbol(s[j])) { // move following\n // spacers\n startX += this.factory.getSpaceWidth(s[j]);\n }\n }\n startX = xForSave;\n startY += Integer.parseInt(this.map.get(\"row_height\"));\n }\n // put the blocks in a new blocks list and return it\n List<Block> listOfBlocksCopy = new ArrayList<>();\n for (int z = 0; z < listOfBlocks.size(); z++) {\n listOfBlocksCopy.add(listOfBlocks.get(z).copyBlock());\n }\n return listOfBlocksCopy;\n }",
"public Block[] getAllBlocks(){\n\t\tBlock[] arr = new Block[tail];\n\t\tfor(int x = 0; x < tail; x++)\n\t\t\tarr[x] = ds[x];\n\t\treturn arr;\n\t}",
"private static List<Element> getXMLBlocks(Model model) {\n Set<Block> blocks = new TreeSet<>(Comparators.objectsById());\n blocks.addAll(model.getBlocks(null));\n List<Element> result = new ArrayList<>(blocks.size());\n for (Block curBlock : blocks) {\n Element blockElement = new Element(\"block\");\n blockElement.setAttribute(\"id\", String.valueOf(curBlock.getId()));\n blockElement.setAttribute(\"name\", curBlock.getName());\n for (TCSResourceReference<?> curRef : curBlock.getMembers()) {\n Element resourceElement = new Element(\"member\");\n resourceElement.setAttribute(\"name\", curRef.getName());\n blockElement.addContent(resourceElement);\n }\n for (Map.Entry<String, String> curEntry\n : curBlock.getProperties().entrySet()) {\n Element propertyElement = new Element(\"property\");\n propertyElement.setAttribute(\"name\", curEntry.getKey());\n propertyElement.setAttribute(\"value\", curEntry.getValue());\n blockElement.addContent(propertyElement);\n }\n result.add(blockElement);\n }\n return result;\n }",
"public Iterator<Map.Entry<Integer, Block>> listBlocks () {\n return this.blockMap.entrySet().iterator();\n }",
"public ArrayList<Block> getBlocks() {\r\n return blocks;\r\n }",
"private void drawBlockLines(Canvas canvas,float offsetX) {\n List<BlockLine> blocks = mSpanner == null ? null : mSpanner.getColors().getBlocks();\n if(blocks == null || blocks.isEmpty()) {\n return;\n }\n int first = getFirstVisibleLine();\n int last = getLastVisibleLine();\n boolean mark = false;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n int mm = binarySearchEndBlock(first,blocks);\n int cursorIdx = mCursorPosition;\n for(int curr = mm;curr < blocks.size();curr++){\n BlockLine block = blocks.get(curr);\n if(hasVisibleRegion(block.startLine,block.endLine,first,last)){\n try{\n prepareLine(block.endLine);\n float offset1 = measureText(mChars,0,block.endColumn);\n prepareLine(block.startLine);\n float offset2 = measureText(mChars,0,block.startColumn);\n float offset = Math.min(offset1,offset2);\n float centerX = offset + offsetX;\n mRect.top = Math.max(0,getLineBottom(block.startLine) - getOffsetY());\n mRect.bottom = Math.min(getHeight(),getLineTop(block.endLine) - getOffsetY());\n mRect.left = centerX - mDpUnit * mBlockLineWidth / 2;\n mRect.right = centerX + mDpUnit * mBlockLineWidth / 2;\n drawColor(canvas,mColors.getColor(curr == cursorIdx ? ColorScheme.BLOCK_LINE_CURRENT :ColorScheme.BLOCK_LINE),mRect);\n }catch(IndexOutOfBoundsException e) {\n e.printStackTrace();\n //Not handled.\n //Because the exception usually occurs when the content changed.\n }\n mark = true;\n }else if(mark) {\n if(jCount >= maxCount)\n break;\n jCount++;\n }\n }\n }",
"public Collection<Block> getBlockCollection() {\n\t\treturn this.blocks.values();\n\t}",
"public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }",
"public Array<BlockDrawable> getFallingBlocksToDraw() {\r\n\t\tif (hasFalling())\r\n\t\t\treturn falling.allOuterBlocks();\r\n\t\treturn new Array<BlockDrawable>();\r\n\t}",
"public Array<BlockDrawable> getGhostBlocksToDraw() {\t\t\r\n\t\tif(hasFalling()){\r\n\t\t\treturn ghost.allOuterBlocks();\r\n\t\t}\t\t\r\n\t\treturn new Array<BlockDrawable>();\r\n\t}",
"public Block[] getBlocks() {\n\t\treturn blocks;\n\t}",
"public List < Block > getLineOfSight ( Set < Material > transparent , int maxDistance ) {\n\t\treturn invokeSafe ( \"getLineOfSight\" ,\n\t\t\t\t\t\t\tnew Class[] { Set.class , int.class } , transparent , maxDistance );\n\t}",
"Collection<BuildingBlock> findAllBuildingBlocks() throws BusinessException;",
"public LinkedList<Point> getAllBlock(Block block) {\n\t\tLinkedList<Point> list = new LinkedList<>();\n\n\t\tfor (int y = 0; y < height; y++)\n\t\t\tfor (int x = 0; x < width; x++)\n\t\t\t\tif (maze[x][y] == block) list.add(new Point(x, y));\n\n\t\treturn list;\n\t}",
"public Map<Long, Block> getBlocks() {\n\t\treturn this.blocks;\n\t}",
"public List<Segment2> verticalLinesinCell() {\n\n\t\tList<Float> boundings = getBoundingsOfCell();\n\t\tint partitionPrecision = 1000;\n\t\tfloat distanceBtwLineSegments = (boundings.get(1) - boundings.get(0))\n\t\t\t\t/ partitionPrecision;\n\n\t\tList<Segment2> segments = new ArrayList<Segment2>();\n\t\tdouble startingPoint = boundings.get(0);\n\t\tint i = 0;\n\n\t\twhile (startingPoint < boundings.get(1)) {\n\n\t\t\tstartingPoint = boundings.get(0) + i\n\t\t\t\t\t* distanceBtwLineSegments;\n\t\t\tPoint2 source = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(2));\n\t\t\tPoint2 target = new Point2(startingPoint,\n\t\t\t\t\tboundings.get(3));\n\n\t\t\tSegment2 segment = new Segment2(source, target);\n\t\t\ti++;\n\t\t\tsegments.add(segment);\n\t\t}\n\n\t\treturn segments;\n\n\t}",
"public BlockType[] getBlocks() {\n return blocks;\n }",
"public BranchGroup blocksScene(){\n\t\t\n\t\tIterator iterator = blocks.iterator();\n\t\t\n\t\twhile(iterator.hasNext()){\n\t\t\tbg.addChild(((Block) iterator.next()).boxGridScene());\n\t\t}\n\t\treturn bg;\n\t}",
"List<Stopsinlinedb> fetchStopsInLines();",
"public void createSideBlocks() {\n Fill fill = new FillColor(Color.darkGray);\n Block topB = new Block(new Rectangle(new Point(0, 0), 800, 45), fill);\n Block rightB = new Block(new Rectangle(new Point(775, 25), 25, 576), fill);\n Block leftB = new Block(new Rectangle(new Point(0, 25), 25, 576), fill);\n //add each screen-side block to game and set 1 hitpoint.\n topB.addToGame(this);\n topB.setHitPoints(1);\n rightB.addToGame(this);\n rightB.setHitPoints(1);\n leftB.addToGame(this);\n leftB.setHitPoints(1);\n }",
"List<MemoryBlockDB> getBlocks(Address start, Address end) {\n\t\tList<MemoryBlockDB> list = new ArrayList<>();\n\n\t\tList<MemoryBlockDB> tmpBlocks = blocks;\n\t\tint index = Collections.binarySearch(tmpBlocks, start, BLOCK_ADDRESS_COMPARATOR);\n\t\tif (index < 0) {\n\t\t\tindex = -index - 2;\n\t\t}\n\t\tif (index >= 0) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.contains(start)) {\n\t\t\t\tlist.add(block);\n\t\t\t}\n\t\t}\n\n\t\twhile (++index < tmpBlocks.size()) {\n\t\t\tMemoryBlockDB block = tmpBlocks.get(index);\n\t\t\tif (block.getStart().compareTo(end) > 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlist.add(block);\n\t\t}\n\n\t\treturn list;\n\t}",
"public BBlock getBlockAtXY(int x, int y) {\n for (BBlock block : this) {\n if ((x >= block.getX() && x <= block.getX() + block.getWith()) &&\n (y >= block.getY() && y <= block.getY() + block.getHeight())) {\n return block;\n }\n }\n return null;\n }",
"phaseI.Hdfs.BlockLocations getBlockLocations(int index);",
"public Fence[] getAllFences() {\n/* 622 */ Set<Fence> fenceSet = new HashSet<>();\n/* 623 */ if (this.fences != null)\n/* */ {\n/* 625 */ for (Fence f : this.fences.values())\n/* */ {\n/* 627 */ fenceSet.add(f);\n/* */ }\n/* */ }\n/* */ \n/* 631 */ VolaTile eastTile = this.zone.getTileOrNull(this.tilex + 1, this.tiley);\n/* 632 */ if (eastTile != null) {\n/* */ \n/* 634 */ Fence[] eastFences = eastTile.getFencesForDir(Tiles.TileBorderDirection.DIR_DOWN);\n/* 635 */ for (int x = 0; x < eastFences.length; x++)\n/* */ {\n/* 637 */ fenceSet.add(eastFences[x]);\n/* */ }\n/* */ } \n/* */ \n/* 641 */ VolaTile southTile = this.zone.getTileOrNull(this.tilex, this.tiley + 1);\n/* 642 */ if (southTile != null) {\n/* */ \n/* 644 */ Fence[] southFences = southTile.getFencesForDir(Tiles.TileBorderDirection.DIR_HORIZ);\n/* 645 */ for (int x = 0; x < southFences.length; x++)\n/* */ {\n/* 647 */ fenceSet.add(southFences[x]);\n/* */ }\n/* */ } \n/* */ \n/* 651 */ if (fenceSet.size() == 0) {\n/* 652 */ return emptyFences;\n/* */ }\n/* 654 */ return fenceSet.<Fence>toArray(new Fence[fenceSet.size()]);\n/* */ }",
"public ArrayList<Block> getWalls() {\n\t\tArrayList<Block> b = new ArrayList<Block>();\n\t\tfor (int i = 0; i <maze.size(); i++) {\n\t\t\tif (maze.get(i).t == 'w') {\n\t\t\t\tb.add(maze.get(i));\n\t\t\t}\n\t\t}\n\t\treturn b;\n\t}",
"java.util.List<phaseI.Hdfs.BlockLocations> \n getBlockLocationsList();",
"public Block[] getCannons() {\n\t\tArrayList<Block> cannons = new ArrayList<Block>();\n\t\tfor (int i = 0; i < this.blocks.length; i++) {\n\t\t\tif (blocks[i].getType().equals(Material.DISPENSER))\n\t\t\t\tcannons.add(blocks[i]);\n\t\t}\n\t\treturn cannons.toArray(new Block[0]);\n\t}",
"public static List<Block> getAdjacentBlocks(Block block) {\n\t\tList<Block> blocks = new ArrayList<Block>();\n\t\tfor (int i = -1; i < 2; i++) {\n\t\t\tfor (int j = -1; j < 2; j++) {\n\t\t\t\tif (!(i == 0 && j == 0)) {\n\t\t\t\t\tblocks.add(block.getRelative(i, 0, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn blocks;\n\t}",
"public List<BlockEle> toBlockEles() {\n List<BlockEle> blockEles = new ArrayList<BlockEle>();\n\n for(Block block : blocks) {\n blockEles.add(block.toBlockEle());\n }\n\n return blockEles;\n }",
"public ArrayList<Block> getMap(){\r\n\t\treturn new ArrayList<Block>(this.blockMap);\r\n\t}",
"private void addBlocksVertices() {\n\n for (Block block :game.getBlocks()) {\n Point3D[] points = block.getPoints();\n for (int i = 0; i < points.length; i++) {\n GraphNode blockNode = new GraphNode(points[i]);\n vertices.add(blockNode);\n }\n }\n }",
"public List<VeinBlock> getAliasedBlocks() {\n\t\treturn new ArrayList<>(blocks);\n\t}",
"abstract public int getNumberOfBlocks();",
"protected List<Block> findItems(IPascalCoinClient client, Integer start, Integer pageSize) {\n Integer blockFirst = start;\r\n Integer blockLast = blockFirst + pageSize - 1;\r\n //pageSize-1 because blockLast is inclusive and we want an exact page size\r\n //#debug\r\n toDLog().pData(\"blockFirst=\" + blockFirst + \" blockLast=\" + blockLast + \" pageSize=\" + pageSize, this, ListTaskBlockRange.class, \"findItems\", LVL_04_FINER, true);\r\n List<Block> blocks = client.getBlocks(blockLastMustBeNull, blockFirst, blockLast);\r\n if (isAscendingOrder()) {\r\n Collections.reverse(blocks);\r\n }\r\n return blocks;\r\n }",
"@Override\n public List<LineEntity> findAll() {\n return null;\n }",
"public DebugInlinedBlock getInlinedConditionBlocks(int i) {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_inlinedConditionBlocks == null)\n jcasType.jcas.throwFeatMissing(\"inlinedConditionBlocks\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n jcasType.jcas.checkArrayBounds(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_inlinedConditionBlocks), i);\n return (DebugInlinedBlock)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefArrayValue(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_inlinedConditionBlocks), i)));}",
"@Override\n public Line[] getLines(){\n Line[] arrayOfLines = new Line[]{topLine, rightLine, bottomLine, leftLine}; //stores the array of lines that form the rectangle\n return arrayOfLines;\n }",
"@SideOnly(Side.CLIENT)\n\tpublic static RayTraceResult getPlayerMouseOverBlock(double dist, float duringTicks)\n\t{\n\t EntityPlayer player = ClientProxy.getClientPlayer();\n\t\t\n\t\tVec3d vec3 = player.getPositionEyes(duringTicks);\n\t Vec3d vec31 = player.getLook(duringTicks);\n\t Vec3d vec32 = vec3.addVector(vec31.xCoord * dist, vec31.yCoord * dist, vec31.zCoord * dist);\n\t \n\t //參數: entity位置, entity視線最遠位置, 停止在液體方塊上, 忽略沒有AABB的方塊, 回傳距離內最遠的不可碰撞方塊\n\t return player.world.rayTraceBlocks(vec3, vec32, true, false, false);\n\t}",
"private List<BlockPoint> getTopPlattforms(BlockType[][] chunk){\n\t// Find the upmost row with atleast one plattform in it\n\t// and save the position of all plattforms in said row.\n\tList<BlockPoint> topPlattforms = new ArrayList<>(boardWidth);\n\tfor(int r = 0; r < chunk.length; r++){\n boolean foundTopRow = false;\n for(int c = 0; c < boardWidth; c++){\n if(chunk[r][c].solid){\n \t\t topPlattforms.add(new BlockPoint(c,r));\n \t\t foundTopRow = true;\n \t\t}\n \t }\n \t if(foundTopRow) break;\n \t}\n return topPlattforms;\n }",
"@Override\n public void getTileEntities(int blockID, Set<Pair<String, Class<? extends TileEntity>>> list)\n {\n\n }",
"@Override\n\tpublic List<Block> identifyBlocks(List<AdaptedArtefact> adaptedArtefacts, IProgressMonitor monitor) {\n\t\tContext fc = new Context();\n\n\t\t// Blocks Empty\n\t\tList<Block> blocks = new ArrayList<Block>();\n\n\t\t// In R we will have, for each element, the indexes of the artefacts\n\t\t// where they appear\n\t\tLinkedHashMap<IElement, List<Integer>> R = new LinkedHashMap<IElement, List<Integer>>();\n\n\t\tMap<Attribute, IElement> attrIElementMap = new HashMap<Attribute, IElement>();\n\n\t\t// A map from IElement to the IElementWrappers that contains similar\n\t\t// IElement\n\t\tMap<IElement, List<ElementWrapper>> eewmap = new HashMap<IElement, List<ElementWrapper>>();\n\t\tfor (int i = 0; i < adaptedArtefacts.size(); i++) {\n\n\t\t\t// Creates an entity.\n\t\t\tEntity ent = new Entity(\"Artefact \" + i);\n\t\t\tfc.addEntity(ent);\n\n\t\t\tmonitor.subTask(\"Block Creation. Preparation step \" + (i + 1) + \"/\" + adaptedArtefacts.size());\n\t\t\tAdaptedArtefact currentList = adaptedArtefacts.get(i);\n\t\t\tEList<ElementWrapper> ownedElementWrappers = currentList.getOwnedElementWrappers();\n\t\t\tfor(int j = 0; j < ownedElementWrappers.size(); ++j) {\n\t\t\t\tElementWrapper ew = ownedElementWrappers.get(j);\n\t\t\t\tmonitor.subTask(\"Block Creation. Preparation step \" + (i + 1) + \"/\" + adaptedArtefacts.size() + \" \" + (j + 1) + \"/\" + ownedElementWrappers.size());\n\n\t\t\t\t// user cancel\n\t\t\t\tif (monitor.isCanceled()) {\n\t\t\t\t\treturn blocks;\n\t\t\t\t}\n\n\t\t\t\tIElement e = (IElement) ew.getElement();\n\t\t\t\tList<ElementWrapper> ews = eewmap.get(e);\n\t\t\t\tif (ews == null) {\n\t\t\t\t\tews = new ArrayList<ElementWrapper>();\n\t\t\t\t}\n\t\t\t\tews.add(ew);\n\t\t\t\teewmap.put(e, ews);\n\n\t\t\t\tList<Integer> artefactIndexes = R.get(e);\n\t\t\t\tif (artefactIndexes == null) {\n\t\t\t\t\tartefactIndexes = new ArrayList<Integer>();\n\t\t\t\t}\n\t\t\t\tartefactIndexes.add(i);\n\t\t\t\tR.put(e, artefactIndexes);\n\t\t\t}\n\t\t}\n\n\t\tmonitor.subTask(\"Block Creation. Creating Blocks\");\n\n\t\t// Iterate on eewmap to create blocks with their block elements\n\t\tint ei = 0;\n\t\twhile (!R.isEmpty()) {\n\t\t\t// get first\n\t\t\tIElement e = R.keySet().iterator().next();\n\n\t\t\t// Creates a binary attribute.\n\t\t\tBinaryAttribute attr = new BinaryAttribute(\"Element \" + ei);\n\t\t\tattrIElementMap.put(attr, e);\n\t\t\tfc.addAttribute(attr);\n\t\t\tei++;\n\n\t\t\tList<Integer> artIndexes = R.get(e);\n\t\t\tfor (Integer ia : artIndexes) {\n\t\t\t\tfc.addPair(fc.getEntity(\"Artefact \" + ia), attr);\n\t\t\t}\n\t\t\tR.remove(e);\n\t\t\tmonitor.subTask(\"Block Creation. Creating Blocks. Creating Formal Context.\" + R.size());\n\t\t}\n\n\t\tmonitor.subTask(\"Block Creation. Creating concept lattice.\");\n\t\t// Generate concept lattice\n\t\tConceptOrder cl = FCAUtils.createConceptLattice(fc);\n\t\t\n\t\t// Add a block for each non empty concept\n\t\tint i = 0;\n\t\tfinal Set<Concept> concepts = cl.getConcepts();\n\t\tfinal int is = concepts.size();\n\t\tfor (Concept c : cl.getConcepts()) {\n\t\t\tmonitor.subTask(\"Block Creation. Creating Blocks.\" + \" \" + ++i + \"/\" + is);\n\t\t\t// getIntent returns also the intent of the parents, we are only\n\t\t\t// interested in the getSimplifiedIntent which is the one that only\n\t\t\t// belongs to this concept\n\t\t\tif (!c.getSimplifiedIntent().isEmpty()) {\n\t\t\t\tBlock block = AdaptedModelFactory.eINSTANCE.createBlock();\n\t\t\t\tSet<Attribute> attrs = c.getSimplifiedIntent();\n\t\t\t\tfor (Attribute attr : attrs) {\n\t\t\t\t\tIElement e = attrIElementMap.get(attr);\n\t\t\t\t\tBlockElement be = AdaptedModelFactory.eINSTANCE.createBlockElement();\n\t\t\t\t\tfor (ElementWrapper ew : eewmap.get(e)) {\n\t\t\t\t\t\tbe.getElementWrappers().add(ew);\n\t\t\t\t\t}\n\t\t\t\t\tblock.getOwnedBlockElements().add(be);\n\t\t\t\t}\n\t\t\t\tblocks.add(block);\n\t\t\t}\n\t\t}\n\n\t\tmonitor.subTask(\"Block Creation. Sorting blocks by descending frequency.\");\n\t\t// Java8's built-in sort produces an ascending order, when using standard compare/compareTo.\n\t\t// We define the compare-method such that b1 is smaller than b0, if b1...size is bigger than b0...size.\n\t\t// (Notice: If b1...size - b0...size > 0, this indicates the need of swapping b1 and b0.)\n\t\t// This leads to the desired descending order of the b...size.\n\t\tblocks.sort((b0, b1) -> b1.getOwnedBlockElements().get(0).getElementWrappers().size() - b0.getOwnedBlockElements().get(0).getElementWrappers().size());\n\n\t\t// finished\n\t\treturn blocks;\n\t}",
"public static List<Hit> getHubHits(Block paramBlock)\r\n/* 55: */ {\r\n/* 56: 83 */ return null;\r\n/* 57: */ }",
"@Override\n public OffsetRange getBlockRange() {\n return blockRange;\n }",
"public List<WrapperEntity> getEntitiesWithin(BoundingBox box){\r\n\t\tList<WrapperEntity> entities = new ArrayList<WrapperEntity>();\r\n\t\tfor(Entity entity : world.getEntitiesWithinAABB(Entity.class, box.convert())){\r\n\t\t\tentities.add(WrapperEntity.getWrapperFor(entity));\r\n\t\t}\r\n\t\treturn entities;\r\n\t}",
"public Collection<BlockPos> getTrackedBlockEntities(Level level) {\n\t\tCollection<BlockPos> blockEntities = trackedBlockEntities.get(level.dimension());\n\n\t\tif (blockEntities == null) {\n\t\t\tblockEntities = ConcurrentHashMap.newKeySet();\n\t\t\ttrackedBlockEntities.put(level.dimension(), blockEntities);\n\t\t}\n\n\t\treturn blockEntities;\n\t}",
"private static EntityIterator getEntityIterator(Schematic schematic, Location location) {\n var iterator = new EntityIterator();\n\n var world = location.getWorld();\n var offset = new Vector3i(location.getBlockX(), location.getBlockY(), location.getBlockZ());\n offset.sub(schematic.getOrigin());\n\n var min = schematic.getMinimumPoint().add(offset, new Vector3i());\n var max = schematic.getMaximumPoint().add(offset, new Vector3i());\n\n for (var entity : world.getEntities()) {\n var eLoc = entity.getLocation();\n if (isInBounds(eLoc, min, max))\n iterator.addEntity(entity);\n }\n\n return iterator;\n }",
"public List<Entity> getEntitiesInArea(BoundingBox area)\n\t{\n\t\tList<Entity> entitiesInArea = new ArrayList<Entity>();\n\t\tEntity currentEntity;\n\t\tfor(int i = 0; i < this.entities.size(); ++i)\n\t\t{\n\t\t\tcurrentEntity = this.entities.get(i);\n\t\t\tif(currentEntity.getBoundingBox().offset(currentEntity.getX(), currentEntity.getY()).intersects(area))\n\t\t\t{\n\t\t\t\tentitiesInArea.add(currentEntity);\n\t\t\t}\n\t\t}\n\t\treturn entitiesInArea;\n\t}",
"Collection<BuildingBlock> findBuildingBlocksbyBranchId(Long branchId) throws BusinessException;",
"public static ArrayList<Block> getBlocksAround(Location center, int radius) {\n \tArrayList<Block> list = new ArrayList<>();\n\t\tfor (double x = center.getX() - radius; x <= center.getX() + radius; x++) {\n\t\t\tfor (double z = center.getZ() - radius; z <= center.getZ() + radius; z++) {\n\t\t\t\tLocation loc = new Location(center.getWorld(), x, center.getY(), z);\n\t\t\t\tif (loc.getBlock().getType().isSolid()) {\n\t\t\t\t\tlist.add(loc.getBlock());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlist.remove(center.getBlock());\n\t\treturn list;\n\t}",
"private void cutoutBlocks(MetropolisGenerator generator, Cartesian v, Cartesian s, Material floor) {\n int xdir, ydir, zdir;\n xdir = s.X < 0 ? -1 : 1;\n ydir = s.Y < 0 ? -1 : 1;\n zdir = s.Z < 0 ? -1 : 1;\n \n for (int x = 0; Math.abs(x) < Math.abs(s.X); x += xdir) {\n for (int z = 0; Math.abs(z) < Math.abs(s.Z); z += zdir) {\n for (int y = 0; Math.abs(y) < Math.abs(s.Y); y += ydir) {\n generator.getWorld().getBlockAt(v.X + x, v.Y + y, v.Z + z).setType(Material.AIR);\n }\n Block below = generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z);\n if (!below.isEmpty()) {\n generator.getWorld().getBlockAt(v.X + x, v.Y - 1, v.Z + z).setType(floor);\n }\n }\n }\n }",
"int getBlocksAmount();",
"Collection<? extends IREdge<? extends IRBasicBlock>> getIncomingEdges(\n IRBasicBlock block);",
"public void breakBlock(World par1World, int par2, int par3, int par4, Block par5, int par6) {\n\t\tTileEntityCobexChest tileentitychest = (TileEntityCobexChest) par1World.getTileEntity(par2, par3, par4);\n\n\t\tif (tileentitychest != null) {\n\t\t\tfor (int j1 = 0; j1 < tileentitychest.getSizeInventory(); ++j1) {\n\t\t\t\tItemStack itemstack = tileentitychest.getStackInSlot(j1);\n\n\t\t\t\tif (itemstack != null) {\n\t\t\t\t\tfloat f = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tfloat f1 = this.random.nextFloat() * 0.8F + 0.1F;\n\t\t\t\t\tEntityItem entityitem;\n\n\t\t\t\t\tfor (float f2 = this.random.nextFloat() * 0.8F + 0.1F; itemstack.stackSize > 0; par1World.spawnEntityInWorld(entityitem)) {\n\t\t\t\t\t\tint k1 = this.random.nextInt(21) + 10;\n\n\t\t\t\t\t\tif (k1 > itemstack.stackSize) {\n\t\t\t\t\t\t\tk1 = itemstack.stackSize;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\titemstack.stackSize -= k1;\n\t\t\t\t\t\tentityitem = new EntityItem(par1World, (double) ((float) par2 + f), (double) ((float) par3 + f1), (double) ((float) par4 + f2),\n\t\t\t\t\t\t\t\tnew ItemStack(itemstack.getItem(), k1, itemstack.getItemDamage()));\n\t\t\t\t\t\tfloat f3 = 0.05F;\n\t\t\t\t\t\tentityitem.motionX = (double) ((float) this.random.nextGaussian() * f3);\n\t\t\t\t\t\tentityitem.motionY = (double) ((float) this.random.nextGaussian() * f3 + 0.2F);\n\t\t\t\t\t\tentityitem.motionZ = (double) ((float) this.random.nextGaussian() * f3);\n\n\t\t\t\t\t\tif (itemstack.hasTagCompound()) {\n\t\t\t\t\t\t\tentityitem.getEntityItem().setTagCompound((NBTTagCompound) itemstack.getTagCompound().copy());\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tpar1World.func_147453_f(par2, par3, par4, par5);\n\t\t}\n\n\t\tsuper.breakBlock(par1World, par2, par3, par4, par5, par6);\n\t}",
"Block getBlockByNumber(long number);",
"public List<Enemy> lowestLine() {\r\n List<Enemy> low = new ArrayList<>();\r\n for (Double x : this.xOfEachCol()) {\r\n List<Enemy> colList = new ArrayList<>();\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getUpperLeft().getX() == x) {\r\n colList.add(e);\r\n }\r\n }\r\n low.add(this.lowestEnemyInCol(colList));\r\n }\r\n return low;\r\n }",
"List<Line> getLines();",
"public WorldImage drawBoard(int blocks) {\r\n return new AboveImage(this.drawRow(blocks), this.bottom.drawBoard(blocks));\r\n }",
"public void SetBlockList() {\r\n int width = ScreenWidth / MatrixWidth;\r\n int hight = ScreenHeight / MatrixHeight;\r\n this.blockList = new BlockList();\r\n Bitmap blocks = Bitmap.createScaledBitmap(BitmapFactory.decodeResource(getResources(), R.drawable.blocks), width * 5, hight * 10, false);\r\n for (int i = 0; i < map.length; i++) {\r\n for (int j = 0; j < map[i].length; j++) {\r\n if(i==0 && j<3){//if its true so its wall or button so the type of block is 0\r\n this.blockList.AddBlock(i, j, 0, j, blocks, width, hight);\r\n }\r\n if (map[i][j] != '0')\r\n this.blockList.AddBlock(i, j, Integer.valueOf(String.valueOf(map[i][j])), 0, blocks, width, hight);\r\n }\r\n }\r\n }",
"public int[][] getBlock(int b){\n\t\tint[][] block = new int[size][size];\n\t\tfor (int i = 0; i < size; i++){\n\t\t\tfor (int j = 0; j < size; j++){\n\t\t\t\tblock[i][j] = numbers[i+size*(b/size)]\n\t\t\t\t\t\t [j+size*(b%size)];\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}",
"private int findCursorBlock(List<BlockLine> blocks) {\n int line = mCursor.getLeftLine();\n int min = binarySearchEndBlock(line,blocks);\n int max = blocks.size() - 1;\n int minDis = Integer.MAX_VALUE;\n int found = -1;\n int jCount = 0;\n int maxCount = Integer.MAX_VALUE;\n if(mSpanner != null) {\n TextColorProvider.TextColors colors = mSpanner.getColors();\n if(colors != null) {\n maxCount = colors.getSuppressSwitch();\n }\n }\n for(int i = min;i <= max;i++) {\n BlockLine block = blocks.get(i);\n if(block.endLine >= line && block.startLine <= line) {\n int dis = block.endLine - block.startLine;\n if(dis < minDis) {\n minDis = dis;\n found = i;\n }\n }else if(minDis != Integer.MAX_VALUE) {\n jCount++;\n if(jCount >= maxCount) {\n break;\n }\n }\n }\n return found;\n }",
"phaseI.Hdfs.BlockLocations getNewBlock();",
"private void updateAffectedBlocks() {\n Location blockLocation = getBlock().getLocation();\n \n affectedBlocks.clear();\n \n for (int x = -(radius / 2); x <= radius / 2; x++) {\n for (int z = -(radius / 2); z <= radius / 2; z++) {\n affectedBlocks.add(blockLocation.getWorld().getBlockAt(blockLocation.getBlockX() + x, blockLocation.getBlockY(), blockLocation.getBlockZ() + z));\n }\n }\n }",
"ArrayList<ArrayList<Double>> heights() {\n ArrayList<ArrayList<Double>> result1 = new ArrayList<ArrayList<Double>>();\n for (int i = 0; i < ForbiddenIslandWorld.ISLAND_SIZE; i = i + 1) {\n ArrayList<Double> result = new ArrayList<Double>();\n for (int j = 0; j < ForbiddenIslandWorld.ISLAND_SIZE; j = j + 1) {\n result.add(ForbiddenIslandWorld.ISLAND_SIZE * 1.0 / 2\n - ((Math.abs(ForbiddenIslandWorld.ISLAND_SIZE * 1.0 / 2 - i))\n + (Math.abs(ForbiddenIslandWorld.ISLAND_SIZE * 1.0 / 2 - j))));\n }\n result1.add(result);\n }\n return result1;\n }",
"public abstract WorldImage drawRow(int blocks);",
"int getBlockNumber(int x, int y);",
"org.tensorflow.proto.profiler.XLine getLines(int index);",
"public void testFetchBlocks() throws IOException {\n\t\tLocalRawDataBlockList list = new LocalRawDataBlockList();\r\n\t\tbyte[] data = new byte[512];\r\n\t\tint offset = 0;\r\n\r\n\t\tLittleEndian.putInt(data, offset, -3); // for the BAT block itself\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 1: is at end of file already; start block = -2\r\n\t\t// document 2: has only one block; start block = 1\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 3: has a loop in it; start block = 2\r\n\t\tLittleEndian.putInt(data, offset, 2);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 4: peeks into document 2's data; start block = 3\r\n\t\tLittleEndian.putInt(data, offset, 4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 5: includes an unused block; start block = 5\r\n\t\tLittleEndian.putInt(data, offset, 6);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -1);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 6: includes a BAT block; start block = 7\r\n\t\tLittleEndian.putInt(data, offset, 8);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, 0);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 7: includes an XBAT block; start block = 9\r\n\t\tLittleEndian.putInt(data, offset, 10);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\t\tLittleEndian.putInt(data, offset, -4);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 8: goes off into space; start block = 11;\r\n\t\tLittleEndian.putInt(data, offset, 1000);\r\n\t\toffset += LittleEndianConsts.INT_SIZE;\r\n\r\n\t\t// document 9: no screw ups; start block = 12;\r\n\t\tint index = 13;\r\n\r\n\t\tfor (; offset < 508; offset += LittleEndianConsts.INT_SIZE) {\r\n\t\t\tLittleEndian.putInt(data, offset, index++);\r\n\t\t}\r\n\t\tLittleEndian.putInt(data, offset, -2);\r\n\t\tlist.add(new RawDataBlock(new ByteArrayInputStream(data)));\r\n\t\tlist.fill(1);\r\n\t\tint[] blocks = { 0 };\r\n\t\tBlockAllocationTableReader table = new BlockAllocationTableReader(\r\n\t\t POIFSConstants.SMALLER_BIG_BLOCK_SIZE_DETAILS, 1, blocks, 0, -2, list);\r\n\t\tint[] start_blocks = { -2, 1, 2, 3, 5, 7, 9, 11, 12 };\r\n\t\tint[] expected_length = { 0, 1, -1, -1, -1, -1, -1, -1, 116 };\r\n\r\n\t\tfor (int j = 0; j < start_blocks.length; j++) {\r\n\t\t\ttry {\r\n\t\t\t\tListManagedBlock[] dataBlocks = table.fetchBlocks(start_blocks[j], -1, list);\r\n\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\t\t\t\t\tfail(\"document \" + j + \" should have failed, but found a length of \"\r\n\t\t\t\t\t\t\t+ dataBlocks.length);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tassertEquals(expected_length[j], dataBlocks.length);\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tif (expected_length[j] == -1) {\r\n\r\n\t\t\t\t\t// no problem, we expected a failure here\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow e;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Collection<Block> getBadBlocks() {\n return badBlocks.asMap().values();\n }",
"@Override\n public void breakBlock(World world, int i, int j, int k, int lol, int meh) {\n byte byte0 = 4;\n int l = byte0 + 1;\n if (world.checkChunksExist(i - l, j - l, k - l, i + l, j + l, k + l)) {\n for (int i1 = -byte0; i1 <= byte0; i1++) {\n for (int j1 = -byte0; j1 <= byte0; j1++) {\n for (int k1 = -byte0; k1 <= byte0; k1++) {\n int l1 = world.getBlockId(i + i1, j + j1, k + k1);\n if (l1 != TropicraftMod.tropicLeaves.blockID) {\n continue;\n }\n int i2 = world.getBlockMetadata(i + i1, j + j1, k + k1);\n if ((i2 & 8) == 0) {\n world.setBlockMetadata(i + i1, j + j1, k + k1, i2 | 8);\n }\n }\n\n }\n\n }\n\n }\n }",
"private void decorate(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t \tif ((xLength - e) - (xStart + s) > 0){\r\n\t \t\tfor(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }",
"@Nullable boolean hasBlockEntity();",
"public List<Integer> getBlockAsList(int b){\n\t\tList<Integer> block = new ArrayList<Integer>(size*size);\n\t\tfor (int i = size*(b/size); i < size*(b/size+1); i++){\n\t\t\tfor (int j = size*(b%size); j < size*(b%size+1); j++){\n\t\t\t\tblock.add(numbers[i][j]);\n\t\t\t}\n\t\t}\n\t\treturn block;\n\t}",
"public ArrayList<Entity> getAdjacentCreature(int row, int col, int type) {\n\t\tint topRow = row-1;\n\t\tint bottomRow = row+1;\n\t\tint leftCol = col-1;\n\t\tint rightCol = col+1;\n\t\tArrayList<Entity> allAround = new ArrayList<Entity>(); \n\t\tArrayList<Entity> adjacentMonsterList = new ArrayList<Entity>();\n\t\tArrayList<Entity> adjacentHeroList = new ArrayList<Entity>();\n\t\t\n\t\ttry {\n\t\t\tQolTile Center = (QolTile)curboard[row][col];\n\t\t\tEntity[] heroTile = Center.getOccupants();\n\t\t\tfor (int i = 0; i < heroTile.length; i++) {\n\t\t\t\tallAround.add(heroTile[i]);\n\t\t\t}\t\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t\ttry {\n\t\t\tQolTile TopLeft = (QolTile)curboard[topRow][leftCol];\n\t\t\tEntity[] monster1 = TopLeft.getOccupants();\n\t\t\tfor (int i = 0; i < monster1.length; i++) {\n\t\t\t\tallAround.add(monster1[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile TopCenter = (QolTile)curboard[topRow][col];\n\t\t\tEntity[] monster2 = TopCenter.getOccupants();\n\t\t\tfor (int i = 0; i < monster2.length; i++) {\n\t\t\t\tallAround.add(monster2[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile TopRight = (QolTile)curboard[topRow][rightCol];\n\t\t\tEntity[] monster3 = TopRight.getOccupants();\n\t\t\tfor (int i = 0; i < monster3.length; i++) {\n\t\t\t\tallAround.add(monster3[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile CenterLeft = (QolTile)curboard[row][leftCol];\n\t\t\tEntity[] monster4 = CenterLeft.getOccupants();\n\t\t\tfor (int i = 0; i < monster4.length; i++) {\n\t\t\t\tallAround.add(monster4[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile CenterRight = (QolTile)curboard[row][col+1];\n\t\t\tEntity[] monster5 = CenterRight.getOccupants();\n\t\t\tfor (int i = 0; i < monster5.length; i++) {\n\t\t\t\tallAround.add(monster5[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile BottomLeft = (QolTile)curboard[bottomRow][leftCol];\n\t\t\tEntity[] monster6 = BottomLeft.getOccupants();\n\t\t\tfor (int i = 0; i < monster6.length; i++) {\n\t\t\t\tallAround.add(monster6[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile BottomCenter = (QolTile)curboard[bottomRow][col];\n\t\t\tEntity[] monster7 = BottomCenter.getOccupants();\n\t\t\tfor (int i = 0; i < monster7.length; i++) {\n\t\t\t\tallAround.add(monster7[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tQolTile BottomRight = (QolTile)curboard[bottomRow][rightCol];\n\t\t\tEntity[] monster8 = BottomRight.getOccupants();\n\t\t\tfor (int i = 0; i < monster8.length; i++) {\n\t\t\t\tallAround.add(monster8[i]);\n\t\t\t}\n\t\t} catch (ArrayIndexOutOfBoundsException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t} catch (ClassCastException e) {\n\t\t\t// TODO: handle exception\n//\t\t\te.printStackTrace();\n\t\t}\t\t\n\t\t\n\t\t\n\t\tfor(Entity e : allAround) {\n\t\t\tif (e instanceof Monster) {\n\t\t\t\tadjacentMonsterList.add(e);\n\t\t\t} else if (e instanceof Hero) {\n\t\t\t\tadjacentHeroList.add(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Negative Type is a hero looking for nearby monster\n\t\t//Positive Type is a monster looking for nearby hero\n\t\t//Return respective list\n\t\t\n\t\tif (type < 0) {\n\t\t\treturn adjacentMonsterList;\n\t\t} else if (type > 0) {\n\t\t\treturn adjacentHeroList;\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"private List<List<Cell>> constructFireDirectionLines(int range) {\n List<List<Cell>> directionLines = new ArrayList<>();\n for (Direction direction : Direction.values()) {\n List<Cell> directionLine = new ArrayList<>();\n for (int directionMultiplier = 1; directionMultiplier <= range; directionMultiplier++) {\n\n int coordinateX = currentWorm.position.x + (directionMultiplier * direction.x);\n int coordinateY = currentWorm.position.y + (directionMultiplier * direction.y);\n\n if (!isValidCoordinate(coordinateX, coordinateY)) {\n break;\n }\n\n if (euclideanDistance(currentWorm.position.x, currentWorm.position.y, coordinateX, coordinateY) > range) {\n break;\n }\n\n Cell cell = gameState.map[coordinateY][coordinateX];\n if (cell.type != CellType.AIR) {\n break;\n }\n\n directionLine.add(cell);\n }\n directionLines.add(directionLine);\n }\n\n return directionLines;\n }",
"List<Tile> getAdjacentTiles();",
"private Set<Line> openLines(Square[][] board) {\n Set<Line> lines = new HashSet<Line>();\n for (int row = 0; row < Util.N; row++) {\n for (int col = 0; col < Util.N; col++) {\n Set<Line> sqLines = board[row][col].openLines();\n lines.addAll(sqLines);\n }\n }\n return lines;\n }",
"public FSArray getInlinedConditionBlocks() {\n if (DebugRuleElementMatch_Type.featOkTst && ((DebugRuleElementMatch_Type)jcasType).casFeat_inlinedConditionBlocks == null)\n jcasType.jcas.throwFeatMissing(\"inlinedConditionBlocks\", \"org.apache.uima.ruta.type.DebugRuleElementMatch\");\n return (FSArray)(jcasType.ll_cas.ll_getFSForRef(jcasType.ll_cas.ll_getRefValue(addr, ((DebugRuleElementMatch_Type)jcasType).casFeatCode_inlinedConditionBlocks)));}",
"private void debugRenderEntityLines() {\n\t\tdebugRenderEntityList(layerNegOneEntities);\n\t\tdebugRenderEntityList(layerZeroEntities);\n\t\tdebugRenderEntityList(layerOneEntities);\n\t}",
"public List<Line> getEdgeLines()\r\n {\r\n final List<Line> lineList = new ArrayList<Line>();\r\n lineList.add(new Line(getUpperLeft(), getLowerLeft()));\r\n lineList.add(new Line(getLowerLeft(), getLowerRight()));\r\n lineList.add(new Line(getLowerRight(), getUpperRight()));\r\n lineList.add(new Line(getUpperRight(), getUpperLeft()));\r\n return lineList;\r\n }",
"void scanblocks() {\n\t\tint oldline, newline;\n\t\tint oldfront = 0; // line# of front of a block in old, or 0\n\t\tint newlast = -1; // newline's value during prev. iteration\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++)\n\t\t\tblocklen[oldline] = 0;\n\t\tblocklen[oldinfo.maxLine + 1] = UNREAL; // starts a mythical blk\n\n\t\tfor (oldline = 1; oldline <= oldinfo.maxLine; oldline++) {\n\t\t\tnewline = oldinfo.other[oldline];\n\t\t\tif (newline < 0)\n\t\t\t\toldfront = 0; /* no match: not in block */\n\t\t\telse { /* match. */\n\t\t\t\tif (oldfront == 0)\n\t\t\t\t\toldfront = oldline;\n\t\t\t\tif (newline != (newlast + 1))\n\t\t\t\t\toldfront = oldline;\n\t\t\t\t++blocklen[oldfront];\n\t\t\t}\n\t\t\tnewlast = newline;\n\t\t}\n\t}",
"public static List<Location> drawCube(Location location1, Location location2, Float density, boolean isBlock) {\n Location loc1 = location1.clone(), loc2 = location2.clone();\n\n loc1.setX(Math.min(location1.getX(),location2.getX()));\n loc1.setY(Math.min(location1.getY(),location2.getY()));\n loc1.setZ(Math.min(location1.getZ(),location2.getZ()));\n loc2.setX(Math.max(location1.getX(),location2.getX()));\n loc2.setY(Math.max(location1.getY(),location2.getY()));\n loc2.setZ(Math.max(location1.getZ(),location2.getZ()));\n\n if (isBlock) {\n loc1 = loc1.getBlock().getLocation();\n loc2 = loc2.getBlock().getLocation();\n loc2.add(1, 1, 1);\n }\n\n double deltaX = Math.abs(loc1.getX() - loc2.getX());\n double deltaY = Math.abs(loc1.getY() - loc2.getY());\n double deltaZ = Math.abs(loc1.getZ() - loc2.getZ());\n\n int dx = (int) Math.ceil(deltaX / density);\n int dy = (int) Math.ceil(deltaY / density);\n int dz = (int) Math.ceil(deltaZ / density);\n\n List<Location> collection = new ArrayList<>();\n int[][] var1 = {{0, 0}, {1, 0}, {0, 1}, {1, 1}};\n for (int[] i : var1) {\n Location locx = loc1.clone().add(i[0] * deltaX, 0, i[1] * deltaZ);\n collection.addAll(drawline(locx, locx.clone().add(0, deltaY, 0),dy));\n\n locx = loc1.clone().add(0, i[0] * deltaY, i[1] * deltaZ);\n collection.addAll(drawline(locx, locx.clone().add(deltaX, 0, 0),dx));\n\n locx = loc1.clone().add(i[0] * deltaX, i[1] * deltaY, 0);\n collection.addAll(drawline(locx, locx.clone().add(0, 0, deltaZ),dz));\n }\n return collection;\n }",
"public List<BE> getBlockEntitiesInRange(Level level, BlockPos pos) {\n\t\treturn getBlockEntitiesInRange(level, new Vec3(pos.getX(), pos.getY(), pos.getZ()));\n\t}",
"public Response getBlock(int row) {\n return blockList.get(row);\n }",
"void buildBlock(Tile t);",
"List<Block> getBlocksByCongName(String congName);",
"@Test\n public void testSafeBlocks() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n /* use 0 and 1 position because the margin blocks are inserted initially*/\n assertEquals(new Position(3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE, \n TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(0).getPosition());\n assertEquals(new Position(TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n 3 * TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE), terrain.getBlocks().get(1).getPosition());\n level.levelUp();\n });\n }",
"private void drawFrozenBlocks(final Graphics2D theG2d, final int theHeight, \r\n final int theWidth) {\r\n final List<Block[]> blocks = myBoard.getFrozenBlocks(); \r\n //Calculates rows\r\n for (int row = 0; row < blocks.size(); row++) { \r\n //Calculates columns\r\n for (int column = 0; column < theWidth; column++) { \r\n \r\n //blocks.get requires (int index) Block[]\r\n final Block piece = blocks.get(row)[column];\r\n if (!piece.toString().equals(EMPTY)) { \r\n theG2d.setColor(PURPLE); \r\n rectangle(theG2d, column * SIZE, \r\n (theHeight * SIZE) - ((row + 1) * SIZE), \r\n SIZE, SIZE, DRAW); \r\n \r\n theG2d.setColor(PURPLE); \r\n rectangle(theG2d, column * SIZE, \r\n (theHeight * SIZE) - ((row + 1) * SIZE), \r\n SIZE, SIZE, COLOR);\r\n \r\n theG2d.setColor(piece.getColor()); \r\n rectangle(theG2d, column * SIZE, \r\n (theHeight * SIZE) - ((row + 1) * SIZE), \r\n SIZE - 1, SIZE - 1, COLOR); \r\n } \r\n } \r\n } \r\n }",
"@RequestMapping(value = \"getBlocks\", method = RequestMethod.GET)\r\n\t@ResponseBody\r\n\tpublic BlockListResponseDTO getBlocks() {\r\n\t\tBlockListResponseDTO response = new BlockListResponseDTO();\r\n\t\ttry {\r\n\t\t\tresponse = blockService.getBlocks();\r\n\t\t} catch (ServiceException e) {\r\n\r\n\t\t\tList<Parameter> parameters = e.getParamList();\r\n\t\t\tErrorDTO error = new ErrorDTO();\r\n\t\t\terror.setErrCode(e.getError().getErrCode());\r\n\t\t\terror.setParams(parameters);\r\n\t\t\terror.setDisplayErrMsg(e.isDisplayErrMsg());\r\n\t\t\tresponse.setError(error);\r\n\t\t\tresponse.setSuccess(false);\r\n\r\n\t\t}\r\n\t\treturn response;\r\n\t}"
] | [
"0.66563284",
"0.6636262",
"0.66151196",
"0.66073257",
"0.65834004",
"0.6187059",
"0.61216384",
"0.61198634",
"0.61103266",
"0.61058986",
"0.60750943",
"0.60682184",
"0.59835535",
"0.596054",
"0.59365255",
"0.57890856",
"0.5781264",
"0.57648194",
"0.5753399",
"0.57442766",
"0.5702412",
"0.5672327",
"0.5672098",
"0.5643557",
"0.56350446",
"0.56297237",
"0.5568964",
"0.5555723",
"0.5545424",
"0.5542814",
"0.5463584",
"0.5451098",
"0.54434425",
"0.544122",
"0.54346985",
"0.54097223",
"0.5379493",
"0.53717184",
"0.53549075",
"0.5346832",
"0.53120345",
"0.5303795",
"0.5264387",
"0.5249083",
"0.52236074",
"0.5222225",
"0.51988417",
"0.519743",
"0.51913697",
"0.5171023",
"0.5157023",
"0.51329947",
"0.5130531",
"0.5121101",
"0.51203644",
"0.510224",
"0.5094353",
"0.50900006",
"0.5089124",
"0.50793743",
"0.50759184",
"0.50746274",
"0.5074265",
"0.5061727",
"0.50516325",
"0.5049693",
"0.5039932",
"0.5033016",
"0.5028533",
"0.5020419",
"0.5016058",
"0.5012958",
"0.49887863",
"0.49851894",
"0.49668345",
"0.49655932",
"0.49649906",
"0.49603248",
"0.49545217",
"0.49523765",
"0.4952249",
"0.49519527",
"0.49514762",
"0.4947104",
"0.49464104",
"0.49455398",
"0.4926002",
"0.4923822",
"0.49192846",
"0.4916348",
"0.49105215",
"0.4909178",
"0.49062252",
"0.49034628",
"0.49028006",
"0.48943827",
"0.48897886",
"0.48869592",
"0.48866305",
"0.48735642"
] | 0.6588859 | 4 |
Inflate the menu; this adds items to the action bar if it is present. | @Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main, menu);
return true;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] | [
"0.7246102",
"0.7201358",
"0.7194834",
"0.7176498",
"0.71066517",
"0.7039537",
"0.7037961",
"0.70112145",
"0.70094734",
"0.69807225",
"0.6944953",
"0.69389373",
"0.6933199",
"0.6916928",
"0.6916928",
"0.6891486",
"0.68831646",
"0.68754137",
"0.68745375",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68621665",
"0.68515885",
"0.68467957",
"0.68194443",
"0.6817494",
"0.6813087",
"0.6813087",
"0.6812847",
"0.6805774",
"0.6801204",
"0.6797914",
"0.6791314",
"0.6789091",
"0.67883503",
"0.6783642",
"0.6759701",
"0.6757412",
"0.67478645",
"0.6744127",
"0.6744127",
"0.67411774",
"0.6740183",
"0.6726017",
"0.6723245",
"0.67226785",
"0.67226785",
"0.67208904",
"0.67113477",
"0.67079866",
"0.6704564",
"0.6699229",
"0.66989094",
"0.6696622",
"0.66952467",
"0.66865396",
"0.6683476",
"0.6683476",
"0.6682188",
"0.6681209",
"0.6678941",
"0.66772443",
"0.6667702",
"0.66673946",
"0.666246",
"0.6657578",
"0.6657578",
"0.6657578",
"0.6656586",
"0.66544783",
"0.66544783",
"0.66544783",
"0.66524047",
"0.6651954",
"0.6650132",
"0.66487855",
"0.6647077",
"0.66467404",
"0.6646615",
"0.66464466",
"0.66449624",
"0.6644209",
"0.6643461",
"0.6643005",
"0.66421187",
"0.6638628",
"0.6634786",
"0.6633529",
"0.6632049",
"0.6632049",
"0.6632049",
"0.66315657",
"0.6628954",
"0.66281766",
"0.6627182",
"0.6626297",
"0.6624309",
"0.6619582",
"0.6618876",
"0.6618876"
] | 0.0 | -1 |
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml. | @Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] | [
"0.79041183",
"0.7805934",
"0.77659106",
"0.7727251",
"0.7631684",
"0.7621701",
"0.75839096",
"0.75300384",
"0.74873656",
"0.7458051",
"0.7458051",
"0.7438486",
"0.742157",
"0.7403794",
"0.7391802",
"0.73870087",
"0.7379108",
"0.7370295",
"0.7362194",
"0.7355759",
"0.73454577",
"0.734109",
"0.73295504",
"0.7327726",
"0.73259085",
"0.73188347",
"0.731648",
"0.73134047",
"0.7303978",
"0.7303978",
"0.7301588",
"0.7298084",
"0.72932935",
"0.7286338",
"0.7283324",
"0.72808945",
"0.72785115",
"0.72597474",
"0.72597474",
"0.72597474",
"0.725962",
"0.7259136",
"0.7249966",
"0.7224023",
"0.721937",
"0.7216621",
"0.72045326",
"0.7200649",
"0.71991026",
"0.71923256",
"0.71851367",
"0.7176769",
"0.7168457",
"0.71675026",
"0.7153402",
"0.71533287",
"0.71352696",
"0.71350807",
"0.71350807",
"0.7129153",
"0.7128639",
"0.7124181",
"0.7123387",
"0.7122983",
"0.71220255",
"0.711715",
"0.711715",
"0.711715",
"0.711715",
"0.7117043",
"0.71169263",
"0.7116624",
"0.71149373",
"0.71123946",
"0.7109806",
"0.7108778",
"0.710536",
"0.7098968",
"0.70981944",
"0.7095771",
"0.7093572",
"0.7093572",
"0.70862055",
"0.7082207",
"0.70808214",
"0.7080366",
"0.7073644",
"0.7068183",
"0.706161",
"0.7060019",
"0.70598614",
"0.7051272",
"0.70374316",
"0.70374316",
"0.7035865",
"0.70352185",
"0.70352185",
"0.7031749",
"0.703084",
"0.7029517",
"0.7018633"
] | 0.0 | -1 |
Get all projects in SonarQube. | public List<String[]> getAllProject() {
String url = Host.getSonar() + "api/projects/index";
String json = null;
try {
Object[] response = HttpUtils.sendGet(url, Authentication.getBasicAuth("sonar"));
if (Integer.parseInt(response[0].toString()) == 200) {
json = response[1].toString();
}
} catch (Exception e) {
logger.error("Get sonar project list: GET request error.", e);
}
if (json == null) {
logger.warn("Get sonar project list: response empty.");
return null;
}
List<Map<String, Object>> projects = JSONArray.fromObject(json);
if (projects.size() == 0) {
logger.warn("Get sonar project list: empty list.");
return null;
}
List<String[]> result = new ArrayList<>();
for (Map<String, Object> oneProject : projects) {
result.add(new String[]{oneProject.get("nm").toString(), oneProject.get("k").toString()});
}
return result;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public List<Project> getAllProjects();",
"@GetMapping(\"/getAll\")\r\n\tpublic List<Project> getAllProjects() {\r\n\t\treturn persistenceService.getAllProjects();\r\n\t}",
"public List<ProjectType> invokeQueryProjects() throws TsResponseException {\n checkSignedIn();\n\n final List<ProjectType> projects = new ArrayList<>();\n\n int currentPage = 1; // Tableau starts counting at 1\n BigInteger totalReturned = BigInteger.ZERO;\n BigInteger totalAvailable;\n\n // Loop over pages\n do {\n // Query the projects page\n final String url = getUriBuilder().path(QUERY_PROJECTS) //\n .queryParam(\"pageNumber\", currentPage) //\n .queryParam(\"pageSize\", PROJECTS_PAGE_SIZE) //\n .build(m_siteId).toString();\n final TsResponse response = get(url);\n\n // Get the projects from the response\n projects.addAll(response.getProjects().getProject());\n\n // Next page\n currentPage++;\n // NOTE: total available is the number of datasources available\n totalAvailable = response.getPagination().getTotalAvailable();\n totalReturned = totalReturned.add(response.getPagination().getPageSize());\n } while (totalReturned.compareTo(totalAvailable) < 0);\n\n return projects;\n }",
"public List<Project> findAllProject() {\n\treturn projectmapper.findProject(null);\n}",
"@Override\n\tpublic List<ProjectInfo> findAllProject() {\n\t\treturn sqlSession.selectList(\"cn.sep.samp2.project.findAllProject\");\n\t}",
"public List<Project> findAllProject() {\n\t\tProject project;\r\n\t\tList<Project> projectList = new ArrayList<Project>();\r\n\t\tString query = \"SELECT * FROM TA_PROJECTS\";\r\n\t\tSqlRowSet srs = jdbcTemplate.queryForRowSet(query);\r\n\t\twhile(srs.next()){\r\n\t\t\tproject = new Project();\r\n\t\t\tproject.setProjectID(srs.getString(1));\r\n\t\t\tproject.setProjectName(srs.getString(2));\r\n\t\t\tproject.setManagerID(srs.getString(3));\r\n\t\t\tprojectList.add(project);\r\n\t\t}\r\n\t\treturn projectList;\r\n\t}",
"@GetMapping(value = \"/projects\", produces = \"application/json\")\n public ResponseEntity<?> listAllProjects()\n {\n List<Project> projectList = projectService.findAllProjects();\n\n return new ResponseEntity<>(projectList, HttpStatus.OK);\n }",
"public List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> getProjects() throws RegistryException {\n return getProjects(-1, -1, null, null);\n }",
"public static List<Project> getGISProjects() {\r\n return Collections.unmodifiableList(ProjectPlugin.getPlugin().getProjectRegistry()\r\n .getProjects());\r\n }",
"public Project[] findAll() throws ProjectDaoException {\n\t\treturn findByDynamicSelect(SQL_SELECT + \" ORDER BY ID\", null);\n\t}",
"public static IProject[] getAllRubyProjects() {\r\n \t\tArrayList<IProject> rubyProjects = new ArrayList<IProject>();\r\n \t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\r\n \t\t\r\n \t\tfor (Project aweProject : ProjectPlugin.getPlugin().getProjectRegistry().getProjects()) {\r\n \t\t\tfor (RubyProject rubyProject : aweProject.getElements(RubyProject.class)) {\r\n \t\t\t\tIProject resourceProject = root.getProject(rubyProject.getName());\r\n \t\t\t\ttry {\t\t\t\t\t\r\n \t\t\t\t\tresourceProject.setPersistentProperty(AWE_PROJECT_NAME, aweProject.getName());\r\n \t\t\t\t}\r\n \t\t\t\tcatch (CoreException e) {\r\n \t\t\t\t\tProjectPlugin.log(null, e);\r\n \t\t\t\t}\r\n \t\t\t\tfinally {\t\t\t\r\n \t\t\t\t\trubyProjects.add(resourceProject);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\treturn rubyProjects.toArray(new IProject[]{});\r\n \t}",
"@GetMapping(\"\")\n\t@CrossOrigin(origins = \"http://localhost:3000\")\n\tpublic List<Project> getProjects()\n\t{\n\t\treturn projectService.findAll();\n\t}",
"@ApiMethod(\n name = \"getProjects\",\n path = \"getProjects\",\n httpMethod = HttpMethod.POST\n )\n public List<Project> getProjects(){\n \tQuery<Project> query = ofy().load().type(Project.class);\n \treturn query.list();\n }",
"private Collection<EclipseProject> allProjects() {\n Collection<EclipseProject> all = new HashSet<EclipseProject>(selectedProjects);\n all.addAll(requiredProjects);\n return all;\n }",
"List<EclipseProject> getProjects() {\n return getFlattenedProjects(selectedProjects);\n }",
"public ArrayList<Project> allProjects() {\n ArrayList<Project> projects = new ArrayList<>();\n for (Role role : this.roles) {\n if (role instanceof Member) {\n projects.add(((Member) role).getProject());\n } else if (role instanceof Leader) {\n projects.add(((Member) role).getProject());\n }\n }\n return projects;\n }",
"public ProjectsList getProjects() {\n return projects.clone();\n }",
"public static List getProjectsUsingConfig(ICheckConfiguration checkConfig)\n throws CheckstylePluginException\n {\n \n List result = new ArrayList();\n \n IWorkspace workspace = ResourcesPlugin.getWorkspace();\n IProject[] projects = workspace.getRoot().getProjects();\n for (int i = 0; (i < projects.length); i++)\n {\n if (ProjectConfigurationFactory.getConfiguration(projects[i])\n .isConfigInUse(checkConfig))\n {\n result.add(projects[i]);\n }\n }\n \n return result;\n }",
"public List getAvailableProjects (){\n\t\tList retValue = new ArrayList ();\n\t\tthis.setProcessing (true);\n\t\ttry {\n\t\t\tfor (Iterator it = getPersistenceManager().getExtent(Project.class, true).iterator();it.hasNext ();){\n\t\t\t\tretValue.add (it.next());\n\t\t\t}\n\t\t} finally {\n\t\t\tthis.setProcessing (false);\n\t\t}\n\t\treturn retValue;\n\t}",
"public IProject [] getProjects(){\n\t\treturn projects;\n\t}",
"@GetMapping(value = \"/getProjectDetails/ongoing\")\n\tpublic List<Project> getOngoingProjects()\n\t{\n\t\treturn integrationClient.getOngoingProjects();\n\t}",
"public List<String> getProjects() {\r\n\t\treturn projects;\r\n\t}",
"public static List<Project> getProjects() throws Exception {\n Multimap<String, File> mapOfAllFiles = null;\n mapOfAllFiles = createMapOfFiles(getProjectsPath());\n mapOfAllFiles = removeEntriesWithoutProjectFile(mapOfAllFiles);\n return convertMapToProjects(mapOfAllFiles);\n }",
"public synchronized List<SampleProject> getAll() {\n\t\tif (samples==null) {\n\t\t\tsamples = new ArrayList<SampleProject>();\n\t\t\tregisterLocalSamples();\n\t\t}\n\t\treturn samples;\n\t}",
"@RequestMapping(value = \"/project\", method = RequestMethod.GET)\n\tpublic Response getProjects() {\n\t\tResponse response = new Response();\n\t\ttry {\n\t\t\tList<Project> projects = projectService.getAllProjects();\n\t\t\tif (!projects.isEmpty()) {\n\t\t\t\tresponse.setCode(CustomResponse.SUCCESS.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.SUCCESS.getMessage());\n\t\t\t\tresponse.setData(transformProjectToPojectDto(projects));\n\t\t\t} else {\n\t\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tresponse.setCode(CustomResponse.ERROR.getCode());\n\t\t\tresponse.setMessage(CustomResponse.ERROR.getMessage());\n\t\t\tlogger.error(\"get all project Failed \", e);\n\t\t}\n\t\treturn response;\n\t}",
"public List<String> getTestLinkProjects() {\r\n\t\tlogger.info(\"Getting TestLink projects...\");\r\n\t\tList<TestLinkMetricMeasurement> measurements = getAllTestLinkMetricObjects();\r\n\t\tList<String> projects = new ArrayList<>();\r\n\t\tfor (TestLinkMetricMeasurement testLinkMetricMeasurement : measurements) {\r\n\t\t\tString project = testLinkMetricMeasurement.getName();\r\n\t\t\tif (!projects.contains(project)) {\r\n\t\t\t\tprojects.add(project);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn projects;\r\n\t}",
"public ArrayList<Project> getProjects(){\n return this.projects;\n }",
"public List<ProjectEntity> getProjectByName() {\n\t\treturn null;\n\t}",
"void getAllProjectList(int id);",
"@Override\n\tpublic List<Project> getProjectsByUserId(int id) {\n\t\treturn projectDao.getProjectsByUserId(id);\n\t}",
"public static List<Project> getProjects(String groupId) {\n try {\n String url = BASE_URL + \"groups/\" + groupId + \"/projects\";\n return extractProjects(sendAuthenticated(new HttpGet(url)));\n } catch (Exception e) {\n e.printStackTrace();\n }\n return new ArrayList<>();\n }",
"@Override\r\n\tpublic List<Project> findProject() {\n\t\treturn iSearchSaleRecordDao.findProject();\r\n\t}",
"List<Project> selectAll();",
"public static IProject[] getAWEProjects() {\r\n \t\tArrayList<IProject> aweProjects = new ArrayList<IProject>();\r\n \t\tIWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();\r\n \t\t\r\n \t\tfor (Project project : ProjectPlugin.getPlugin().getProjectRegistry().getProjects()) {\r\n \t\t\tIProject aweProject = root.getProject(project.getName());\r\n \t\t\taweProjects.add(aweProject);\r\n \t\t}\r\n \t\t\r\n \t\treturn aweProjects.toArray(new IProject[]{});\r\n \t}",
"public abstract KenaiProject[] getDashboardProjects(boolean onlyOpened);",
"public List<GitLabProject> getProjectAlls(Boolean archived, String orderBy, String sort, String search, Boolean ciEnabledFirst) throws IOException {\n return getProjects(\"/all\", archived, orderBy, sort, search, ciEnabledFirst);\n }",
"public List<AbstractProject> getProjectList() {\n\t\tList<AbstractProject> projectList = new ArrayList<AbstractProject>();\n\t\tConnection conn = getConnection();\n\t\tPreparedStatement stmtSelect = null;\n\t\tResultSet rs = null;\n\t\ttry {\n\t\t\tStringBuilder sbSelect = new StringBuilder(SELECT)\n\t\t\t\t.append(projectIdColumnName).append(COMMA)\n\t\t\t\t.append(projectNameColumnName)\n\t\t\t\t.append(FROM).append(projectTableName);\n\n\t\t\tstmtSelect = conn.prepareStatement(sbSelect.toString());\n\t\t\trs = stmtSelect.executeQuery();\n\t\t\t\n\t\t\twhile (rs.next()) { \n\t\t\t\tAbstractProject project = (AbstractProject) ATElementFactory.createITreeComponent(projectType);\n\t\t\t\tproject.setId(rs.getInt(1));\n\t\t\t\tproject.setName(rs.getString(2));\n\t\t\t\tproject.setDescription(rs.getString(3));\n\t\t\t\tprojectList.add(project);\n\t\t\t}\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\tthrow new DAOException(e);\n\t\t\t\n\t\t} finally {\n\t\t\tDbUtils.closeQuietly(conn);\n\t\t\tDbUtils.closeQuietly(stmtSelect);\n\t\t\tDbUtils.closeQuietly(rs);\n\t\t}\n\t\t\n\t\treturn projectList;\n\t}",
"public List<Project> getAllProject(boolean isDeleted) throws EmployeeManagementException;",
"public Project[] getProjectArray()\n throws RedmineException\n {\n getProjects(false);\n return projectMap.values().toArray(new Redmine.Project[projectMap.size()]);\n }",
"@GetMapping(\"/project\")\n public Object doGet(){\n return service.getAllProjects();\n }",
"protected SearchResult getJiraIssues() throws JiraAccessException {\r\n\tAsynchronousJiraRestClientFactory factory = new AsynchronousJiraRestClientFactory();\r\n\ttry {\r\n\t URI jiraServerUri = new URI(getJiraUrl());\r\n\t JiraRestClient restClient = factory.createWithBasicHttpAuthentication(jiraServerUri, getJiraUsername(),\r\n\t\t getJiraPassword());\r\n\t return restClient.getSearchClient().searchJql(\"project = SITEWHERE\", 1000, 0, null).get();\r\n\t} catch (URISyntaxException e) {\r\n\t throw new JiraAccessException(e);\r\n\t} catch (InterruptedException e) {\r\n\t throw new JiraAccessException(e);\r\n\t} catch (ExecutionException e) {\r\n\t throw new JiraAccessException(e);\r\n\t}\r\n }",
"@GetMapping(\"/projects\")\n @Timed\n public ResponseEntity<?> getAllProjects(\n @PageableDefault(size = Integer.MAX_VALUE) Pageable pageable,\n @RequestParam(name = \"minimized\", required = false, defaultValue = \"false\") Boolean\n minimized) throws NotAuthorizedException {\n log.debug(\"REST request to get Projects\");\n checkPermission(token, PROJECT_READ);\n Page<?> page = projectService.findAll(minimized, pageable);\n HttpHeaders headers = PaginationUtil\n .generatePaginationHttpHeaders(page, \"/api/projects\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }",
"@Override\r\n\tpublic List<Project> viewAllProjects(String authToken) throws ManualException{\r\n\t\tfinal\tSession session=sessionFactory.openSession();\r\n\t\tList<Project> projectList =null;\r\n\r\n\t\t/* check for authToken of admin */\r\n\t\tsession.beginTransaction();\r\n\t\ttry{\r\n\t\t\tAuthTable authtable=session.get(AuthTable.class, authToken);\r\n\t\r\n\t\t\tUser user = authtable.getUser();\r\n\t\t\tif(user.getUsertype().equals(\"Admin\")){\r\n\t\t\t\tString hql=\"from project\";\r\n\t\t\t\tQuery q=session.createQuery(hql);\r\n\t\t\t\tprojectList=(List)q.list();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tprojectList=null;\r\n\t\t}\r\n\t\tfinally{\r\n\t\t\tsession.getTransaction().commit();\r\n\t\t\tsession.close();\r\n\t\t\treturn projectList;\r\n\t\t}\r\n\t}",
"public void querySubProjects() {\r\n\t\t// Create a task\r\n\t\tProject master = new Project();\r\n\t\tmaster.setName(\"INFRASTRUCTURE\");\r\n\t\tmaster.setDisplayName(\"Infrastructure\");\r\n\t\tmaster.setDescription(\"Project to setup the new infrastructure\");\r\n\t\tmaster = (Project) aggregateService.create(master, new Settings());\t\r\n\r\n\t\t// Create 2 dependents\r\n\t\tProject A = new Project();\r\n\t\tA.setName(\"SETUP_NETWORK\");\r\n\t\tA.setDisplayName(\"Setup network\");\r\n\t\tA.setDescription(\"Project to lay the network cables and connect to routers\");\r\n\t\tA = (Project) aggregateService.create(A, new Settings());\r\n\r\n\t\tProject B = new Project();\r\n\t\tB.setName(\"SETUP_TELEPHONE\");\r\n\t\tB.setDisplayName(\"Setup telephone\");\r\n\t\tB.setDescription(\"Setup the telephone at each employee desk\");\r\n\t\tB = (Project) aggregateService.create(B, new Settings());\r\n\r\n\t\tMap<String, Project> subProjects = new HashMap<String, Project>();\r\n\t\tsubProjects.put(A.getName(), A);\r\n\t\tsubProjects.put(B.getName(), B);\r\n\t\tmaster.setSubProjects(subProjects);\r\n\t\tmaster = (Project) aggregateService.read(master, getSettings());\t\t\r\n\r\n\t\t// query the task object\r\n\t\tSettings settings = new Settings();\r\n\t\tsettings.setView(aggregateService.getView(\"SUBPROJECTS\"));\t\t\r\n\t\tList<?> toList = aggregateService.query(master, settings);\r\n\r\n\t\tassert(toList.size() == 1);\t\t\r\n\r\n\t\tObject obj = toList.get(0);\r\n\t\tassert(Project.class.isAssignableFrom(obj.getClass()));\r\n\r\n\t\tProject root = (Project) obj;\r\n\t\tassert(root.getSubProjects() != null && root.getSubProjects().size() == 2);\r\n\t\tassert(root.getSubProjects().get(\"SETUP_NETWORK\").getName().equals(\"SETUP_NETWORK\"));\r\n\t\tassert(root.getSubProjects().get(\"SETUP_TELEPHONE\").getName().equals(\"SETUP_TELEPHONE\"));\t\t\r\n\t}",
"@Nonnull\n List<AbstractProject<?,?>> getAllJobs();",
"@GetMapping(value = \"/projectslist\", produces = \"application/json\")\n public ResponseEntity<?> findAllProjectsWithProblemName()\n {\n List<ProblemListGroupedByProject> projectList = projectService.findAllProjectsWithProblemName();\n\n return new ResponseEntity<>(projectList, HttpStatus.OK);\n }",
"@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<Projects> getProjectsForUser(int userId) {\n\t\tQuery q = sessionFactory.getCurrentSession().createQuery(\"Select up.projects from UserProjects up where up.users.userId=\"+userId);\n\t\tList<Projects> projects = q.list();\n\t\t\n\t\treturn projects;\n\t}",
"public List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> getProjects(int limit, int offset, Object orderByIdentifier,\n ResultOrderType resultOrderType) throws RegistryException {\n List<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource> result = new ArrayList<org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource>();\n List<ExperimentCatResource> list = get(ResourceType.PROJECT, limit, offset, orderByIdentifier, resultOrderType);\n for (ExperimentCatResource resource : list) {\n result.add((org.apache.airavata.registry.core.experiment.catalog.resources.ProjectResource) resource);\n }\n return result;\n }",
"@RequestMapping(value = \"/projectreleasesprints\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Projectreleasesprint> getAllProjectreleasesprints() {\n log.debug(\"REST request to get all Projectreleasesprints\");\n List<Projectreleasesprint> projectreleasesprints = projectreleasesprintRepository.findAll();\n return projectreleasesprints;\n }",
"@GetMapping(value=\"/getProjectDetails/completed\")\n\tpublic List<Project> getAllProjectDetails()\n\t{\n\t\treturn integrationClient.getProjectDetiails();\n\t}",
"public List<TaskMaster> retrieveAllTaskOfProject(Long projectId);",
"public abstract List<ProjectBean> getProjectList();",
"public ArrayList<Project> getClients() {\n try {\n ArrayList<Project> clients = new ArrayList<Project>();\n String selectClients = \"SELECT NAME, CLIENT_ID FROM CLIENTS\";\n connection = ConnectionManager.getConnection();\n PreparedStatement ps = connection.prepareStatement(selectClients);\n ResultSet rs = ps.executeQuery();\n while (rs.next()) {\n String client = rs.getString(\"NAME\");\n String clientId = rs.getString(\"CLIENT_ID\");\n Project p = new Project(client, clientId);\n clients.add(p);\n }\n rs.close();\n ps.close();\n return clients;\n } catch (SQLException sqle) {\n sqle.printStackTrace(); // for debugging\n return null;\n }\n }",
"public List<ProjectIdea> showAll(){\n try {\n List<ProjectIdea> result = new ArrayList<ProjectIdea>();\n CloseableIterator<ProjectIdea> itr = super.closeableIterator();\n try {\n while (itr.hasNext()) {\n ProjectIdea tmp = itr.next();\n result.add(tmp);\n }\n } finally {\n itr.close();\n }\n return result;\n }catch (Exception e){\n System.out.println(e.getMessage());\n return null;\n }\n }",
"@GetMapping(\"/api/getLatest\")\n\tpublic List<Project> findlatestProject()\n\t{\n\t\treturn this.integrationClient.findlatestProject();\n\t}",
"public ArrayList<Project> getProjectName() {\n\t\tArrayList<Project> projectDaoList;\n\t\tprojectDaoList = new ArrayList<Project>();\n\t\tConnection con = null;\n\t\tPreparedStatement st = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\ttry {\n\t\t\t\tcon = DBUtility.getConnection();\n\t\t\t\tString sql = \"select * from project_master\";\n\t\t\t\tst = con.prepareStatement(sql);\n\t\t\t\tres = st.executeQuery(sql);\n\t\t\t\twhile (res.next()) {\n\t\t\t\t\tProject pdao = new Project();\n\t\t\t\t\tpdao.setId(res.getString(\"project_id\"));\n\t\t\t\t\tpdao.setPro_name(res.getString(\"project_name\"));\n\t\t\t\t\tpdao.setSite_addr(res.getString(\"project_location\"));\n\t\t\t\t\tpdao.setC_name(res.getString(\"client_name\"));\n\t\t\t\t\tpdao.setMunicipality(res.getString(\"municipality\"));\n\t\t\t\t\tpdao.setWord_no(res.getString(\"word_no\"));\n\t\t\t\t\tpdao.setGar_name(res.getString(\"gar_name\"));\n\t\t\t\t\tpdao.setGar_rel(res.getString(\"gar_rel\"));\n\t\t\t\t\tprojectDaoList.add(pdao);\n\t\t\t\t}\n\t\t\t} catch (SQLException s) {\n\t\t\t\ts.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t\treturn null;\n\t\t\t} catch (NamingException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t\t}\n\t\t} finally {\n\t\t\tDBUtility.closeConnection(con, st, res);\n\t\t}\n\t\treturn projectDaoList;\n\t}",
"public List<Project> getSpecifiedProjects(List<Integer> projectIdList) \n \t\tthrows EmployeeManagementException;",
"void allprojects(Action<? super ProjectPluginDependenciesSpec> configuration);",
"@Override\n public List<ProjectDTO> findProjectListByUserName(String username) {\n\n List<ProjectEntity> projectEntityList = projectRepository.findByAssignedManager(userMapper.convertToUserEntity(userService.findByUserName(username)));\n\n projectEntityList.forEach(each->{\n each.setCompleteTaskCounts(taskService.totalCompletedTasks(each.getProjectCode()));\n each.setUnfinishedTaskCounts(taskService.totalNonCompleteTasks(each.getProjectCode()));\n });\n\n return projectEntityList.stream().map(projectMapper::convertToProjectDto).collect(Collectors.toList());\n }",
"@Override\n\tpublic List<Campus> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}",
"@Override\n public List<ProjectproductDTO> findAll() {\n log.debug(\"Request to get all Projectproducts\");\n List<ProjectproductDTO> result = projectproductRepository.findAll().stream()\n .map(projectproductMapper::projectproductToProjectproductDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }",
"List<ProjectCollectionMember> getMyProjects(String userId,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n PropertyServerException,\n UserNotAuthorizedException;",
"@GetMapping(\"/my_projects\")\n public ResponseEntity<List<ProjectDto>> getMyProjects(){\n\n Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n String currentUserName = authentication.getName();\n User currentUser = userService.findByEmail(currentUserName).orElseThrow(\n () -> {throw new MyNotFoundException(\"User not found\");}\n );\n\n List<String> projects = Arrays.asList(currentUser.getProjects().split(\"#\"));\n\n List<ProjectDto> projectDtos = new ArrayList<>();\n for(String project : projects){\n if (projectService.findByName(project).isPresent()){\n Project temp = projectService.findByName(project).get();\n projectDtos.add(new ProjectDto(temp.getId(), temp.getName(), new CompanyDto(temp.getCompany()), temp.getStart_date(), temp.getStatus()));\n }\n }\n return ResponseEntity.ok(projectDtos);\n }",
"private void loadProjects() {\n\t\tprojectsList.clear();\n\t\t\n\t\tArrayList<Job> projects = jdbc.getProjects();\n\t\tfor (Job j : projects) {\n\t\t\tprojectsList.addElement(j.jobname);\n\t\t}\n\t}",
"@GetMapping(\"/projectMember/getProjectMember\")\n\tpublic List<ProjectMember> getAll()\n\t{\n\t\treturn this.integrationClient.getAll();\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 }",
"@GetMapping(\"/alluser/{i}\")\n\t@ResponseBody\n\tpublic \tList<Project> retrieveAllProjectsIdUser(@PathVariable(\"i\")int i){\n\t\tList<Project> p = (List<Project>) projectservice.retrieveAllProjectsIdUser(i);\n\t\treturn p;\n\t}",
"TrackerProjects getTrackerProjects(final Integer id);",
"@Override\n protected Boolean doInBackground(String... params) {\n com.skrumaz.app.data.Store.Projects db = new com.skrumaz.app.data.Store.Projects(mContext);\n projects.clear();\n projects.addAll(db.getProjects(Preferences.getWorkspaceId(mContext, true)));\n db.close();\n\n return null;\n }",
"@GetMapping(\"/byName\")\r\n\tpublic List<Project> getProject(Principal principal) {\r\n\t\treturn persistenceService.getProject(AppBuilderUtil.getLoggedInUserId());\r\n\t}",
"public List<DevStudio> findAll() {\n return getDevStudioRepository().findAll();\n }",
"@Transactional(readOnly = true)\n public List<ProjectDTO> getProjectsAssignedToUser(String login) {\n User userByLogin = userRepository.findOneWithRolesByLogin(login).get();\n List<Project> projectsOfUser = new ArrayList<>();\n for (Role role : userByLogin.getRoles()) {\n // get all projects for admin\n if (AuthoritiesConstants.SYS_ADMIN.equals(role.getAuthority().getName())) {\n return projectMapper.projectsToProjectDTOs(projectRepository.findAll());\n }\n // get unique project from roles\n if (!projectsOfUser.contains(role.getProject())) {\n projectsOfUser.add(role.getProject());\n }\n }\n return projectMapper.projectsToProjectDTOs(projectsOfUser);\n }",
"@Override\n\tpublic List<Campus> getAllCampus() {\n\t\tEntityManager em = emf.createEntityManager();\n\t\ttry {\n\t\t\tQuery query = em.createQuery(\"SELECT c FROM Campus AS c\");\n\t\t\t\n\t\t\treturn query.getResultList();\n\t\t\t\n\t\t} catch (NoResultException e) {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic List<String> viewAllProjects(String userId) {\n\t\treturn fileDao.getUserAllProjectsName(userId);\n\t}",
"@HTTP(\n method = \"GET\",\n path = \"/apis/config.openshift.io/v1/projects\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ProjectList, Project> listProject();",
"private void displayAllProjects() {\n for(Project projects: Project.totalProjects){\n projects.displayProject();\n System.out.println(\"Popularity\\t\\t: \" + projects.getPopularityCounter());\n }\n }",
"@Override\n\tpublic List<Site> getAllSites() {\n\t\tList<Site> sites = new ArrayList<>();\n\n\t\tString sql = \"SELECT site_id, campground_id, site_number, max_occupancy, accessible, max_rv_length, utilities \"\n\t\t\t\t+ \"FROM site\";\n\n\t\tSqlRowSet results = jdbcTemplate.queryForRowSet(sql);\n\n\t\twhile (results.next()) {\n\t\t\tsites.add(mapRowToSite(results));\n\t\t}\n\t\t// \n\n\t\treturn sites;\n\t}",
"public List<Contest> getContestsForProject(long arg0) throws ContestManagementException {\r\n return null;\r\n }",
"@Test\n public void allWorkspacesTest() throws ApiException {\n List<Workspace> response = api.allWorkspaces();\n\n // TODO: test validations\n }",
"List<CopilotProject> getCopilotProjects(long copilotProfileId) throws CopilotDAOException;",
"public List selectAllFromProjeto() throws IOException {\n erro = false;\n List projetos = null;\n try{\n projetos = con.query(\"Select * from projeto\", new BeanPropertyRowMapper(Projeto.class));\n } catch (CannotGetJdbcConnectionException ex){\n logger.gravarDadosLog(\"ERRO\",\"SELECT\" , \"Não foi possivel realizar a consulta dos projetos cadastrados.\" + Arrays.toString(ex.getStackTrace()));\n erro = true;\n }\n if(!erro){\n logger.gravarDadosLog(\"INFO\", \"SELECT\" , \"A busca por projetos cadastrados foi realizada com sucesso.\");\n }\n erro = false;\n return projetos;\n }",
"@Override\r\n\tpublic List<Project> selectProjectList(String id,int cPage,int numPerpage) {\n\t\treturn dao.selectProjectList(session,id,cPage,numPerpage);\r\n\t}",
"private void fetchProjects(Folder folder) {\n\n logger.atInfo().log(\"Fetching projects from \" + folder.getDisplayName());\n\n Set<Project> projectSet = new HashSet<Project>();\n ListProjectsPagedResponse projectsResponse = projectsClient.listProjects(folder.getName());\n Iterable<Project> iterableProjects = projectsResponse.iterateAll();\n Iterator<Project> projects = iterableProjects.iterator();\n\n while (projects.hasNext()) {\n Project project = projects.next();\n projectSet.add(project);\n }\n folderProjectMap.put(folder, projectSet);\n }",
"@Transactional(readOnly = true) \n public Page<TaskProject> findAll(Pageable pageable) {\n log.debug(\"Request to get all TaskProjects\");\n Page<TaskProject> result = taskProjectRepository.findAll(pageable);\n return result;\n }",
"public List<Build> getBuildsForProject(int projectId);",
"@Override\n @Transactional(readOnly = true)\n public List<ProjectTypeId> findAll() {\n log.debug(\"Request to get all ProjectTypeIds\");\n return projectTypeIdRepository.findAll();\n }",
"void projectsFound( String key ) {\n developer.projects = new ArrayList<>();\n }",
"List<Project> findProjectsOfAccount(String username);",
"List<Project> getWithNonResolvedMessages();",
"@Operation(description = \"Lists all genome sequencing projects.\")\n @GetMapping(value = \"/projects\", produces = APPLICATION_JSON_VALUE)\n public Page<Project> getAllProjects(ProjectSpec projectSpec, Pageable pageable) {\n return repository.findAll(projectSpec, pageable);\n }",
"public static JSONArray getProjects(String pmaControlURL, String pmaCoreSessionID) {\n\t\tString url = PMA.join(pmaControlURL, \"api/Projects?sessionID=\" + pmaQ(pmaCoreSessionID));\n\t\tSystem.out.println(url);\n\t\ttry {\n\t\t\tURL urlResource = new URL(url);\n\t\t\tHttpURLConnection con;\n\t\t\tif (url.startsWith(\"https\")) {\n\t\t\t\tcon = (HttpsURLConnection) urlResource.openConnection();\n\t\t\t} else {\n\t\t\t\tcon = (HttpURLConnection) urlResource.openConnection();\n\t\t\t}\n\t\t\tcon.setRequestMethod(\"GET\");\n\t\t\tcon.setRequestProperty(\"Accept\", \"application/json\");\n\t\t\tString jsonString = PMA.getJSONAsStringBuffer(con).toString();\n\t\t\tJSONArray jsonResponse = PMA.getJSONArrayResponse(jsonString);\n\t\t\treturn jsonResponse;\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.print(e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}",
"@GetMapping(\"/api/getByYear\")\n\tpublic int[] getProjectByYear()\n\t{\n\t\treturn this.integrationClient.getProjectByYear();\n\t}",
"void getAllProjectList(int id, UserType userType);",
"public int getProjectCount(){\n\t\treturn projectRepository.getProjectCount();\n\t}",
"public List<Project> getListOfAuthorizedProjects(\n String username,\n AccessLevel accessLevel,\n Session session ) throws Exception {\n\n String queryStr = AUTHORIZED_FOR_USER_SQL_QUERY;\n\n if ( accessLevel == AccessLevel.View ) {\n queryStr = queryStr.replace( PROJ_GRP_SUBST_STR, VIEW_PROJECT_GROUP_FIELD );\n }\n else {\n queryStr = queryStr.replace( PROJ_GRP_SUBST_STR, EDIT_PROJECT_GROUP_FIELD );\n }\n\n NativeQuery query = session.createNativeQuery( queryStr );\n String queryUsername = username == null ? UNLOGGED_IN_USER : username;\n query.setParameter( USERNAME_PARAM, queryUsername );\n query.addEntity(\"P\", Project.class);\n List<Project> rtnVal = query.list();\n return rtnVal;\n }",
"public List<GitLabProject> getProjects(Boolean archived, String orderBy, String sort, String search, Boolean ciEnabledFirst) throws IOException {\n return getProjects(null, archived, orderBy, sort, search, ciEnabledFirst);\n }",
"@GET\n @Path(\"/admin/list\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response getUserAdminProjects() {\n HttpSession session = request.getSession();\n\n if (session.getAttribute(\"projectAdmin\") == null) {\n throw new ForbiddenRequestException(\"You must be the project's admin.\");\n }\n String username = session.getAttribute(\"user\").toString();\n\n projectMinter project= new projectMinter();\n String response = project.listUserAdminProjects(username);\n project.close();\n\n return Response.ok(response).build();\n }",
"public abstract Collection<RepositoryUser> getProjectMembers(KenaiProject kp) throws IOException;",
"@Test\n\tpublic void testGetAllProjects() throws Exception {\n\t\tmockMvc.perform(MockMvcRequestBuilders.get(\"/projects\")\n\t\t\t\t.accept(APPLICATION_JSON)).andExpect(status().isOk())\n\t\t.andExpect(content().contentType(contentType));\n\t\t// Verifies If projectService.getAllProjects() is invoked at least once\n\t\tMockito.verify(projectService).getAllProjects();\n\t}",
"public java.util.List<Campus> findAll();"
] | [
"0.73370165",
"0.7158966",
"0.6949477",
"0.6892766",
"0.686157",
"0.6742336",
"0.64473104",
"0.64100486",
"0.63189036",
"0.6316529",
"0.62760866",
"0.62619835",
"0.6252336",
"0.6222761",
"0.6166197",
"0.6145193",
"0.61288714",
"0.61198354",
"0.61051625",
"0.61036295",
"0.6076215",
"0.60760313",
"0.6061883",
"0.6060961",
"0.60456145",
"0.6004469",
"0.59890056",
"0.59403074",
"0.59349364",
"0.5904586",
"0.5902812",
"0.5897618",
"0.5874444",
"0.58522576",
"0.58199507",
"0.5818745",
"0.57983655",
"0.57933754",
"0.57853514",
"0.5737579",
"0.57362455",
"0.569379",
"0.56628907",
"0.56419814",
"0.5626535",
"0.5591072",
"0.5572483",
"0.55107445",
"0.550973",
"0.55059433",
"0.55014646",
"0.5499719",
"0.54970497",
"0.5473284",
"0.5404769",
"0.54025716",
"0.53984755",
"0.5389817",
"0.53762513",
"0.5360264",
"0.5359075",
"0.5357464",
"0.5349154",
"0.53475016",
"0.53418803",
"0.5340822",
"0.5324222",
"0.5307467",
"0.530647",
"0.5300288",
"0.5291554",
"0.52855486",
"0.52825093",
"0.5281063",
"0.52756494",
"0.5265023",
"0.52535236",
"0.5251519",
"0.52460504",
"0.52346814",
"0.5213108",
"0.52032113",
"0.5200694",
"0.51998174",
"0.51990765",
"0.51897573",
"0.51839226",
"0.518216",
"0.51730967",
"0.517218",
"0.51503444",
"0.514571",
"0.5143493",
"0.5143114",
"0.51380724",
"0.5127562",
"0.5126279",
"0.511524",
"0.51134104",
"0.5107041"
] | 0.7747356 | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.